]> git.saurik.com Git - wxWidgets.git/blame - configure
regenerated after recent changes to configure.in
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
083508af 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
cfda0ea8 1978 *-*-darwin* )
a848cd7e
SC
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569if test "$wxUSE_GUI" = "yes"; then
2570
2571
2572 enablestring=
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2575 no_cache=0
2576 # Check whether --enable-universal or --disable-universal was given.
2577if test "${enable_universal+set}" = set; then
2578 enableval="$enable_universal"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2582 else
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2596
2597fi;
2598
2599 eval "$ac_cv_use_universal"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_UNIVERSAL" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613# Check whether --with-gtk or --without-gtk was given.
2614if test "${with_gtk+set}" = set; then
2615 withval="$with_gtk"
2616 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-motif or --without-motif was given.
2620if test "${with_motif+set}" = set; then
2621 withval="$with_motif"
2622 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mac or --without-mac was given.
2626if test "${with_mac+set}" = set; then
2627 withval="$with_mac"
c228d3a4 2628 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2629fi;
2630
2631# Check whether --with-cocoa or --without-cocoa was given.
2632if test "${with_cocoa+set}" = set; then
2633 withval="$with_cocoa"
c228d3a4 2634 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2635fi;
2636
2637# Check whether --with-wine or --without-wine was given.
2638if test "${with_wine+set}" = set; then
2639 withval="$with_wine"
2640 wxUSE_WINE="$withval" CACHE_WINE=1
2641fi;
2642
2643# Check whether --with-msw or --without-msw was given.
2644if test "${with_msw+set}" = set; then
2645 withval="$with_msw"
2646 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-pm or --without-pm was given.
2650if test "${with_pm+set}" = set; then
2651 withval="$with_pm"
2652 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655# Check whether --with-mgl or --without-mgl was given.
2656if test "${with_mgl+set}" = set; then
2657 withval="$with_mgl"
2658 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-microwin or --without-microwin was given.
2662if test "${with_microwin+set}" = set; then
2663 withval="$with_microwin"
2664 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-x11 or --without-x11 was given.
2668if test "${with_x11+set}" = set; then
2669 withval="$with_x11"
2670 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2671fi;
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-nanox or --disable-nanox was given.
2678if test "${enable_nanox+set}" = set; then
2679 enableval="$enable_nanox"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_nanox='wxUSE_NANOX=yes'
2683 else
2684 ac_cv_use_nanox='wxUSE_NANOX=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2697
2698fi;
2699
2700 eval "$ac_cv_use_nanox"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_NANOX" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
f34ca037
MW
2714# Check whether --enable-gtk2 or --disable-gtk2 was given.
2715if test "${enable_gtk2+set}" = set; then
2716 enableval="$enable_gtk2"
2717 wxUSE_GTK2="$enableval"
2718fi;
a848cd7e 2719
a848cd7e
SC
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-gpe or --disable-gpe was given.
2725if test "${enable_gpe+set}" = set; then
2726 enableval="$enable_gpe"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_gpe='wxUSE_GPE=yes'
2730 else
2731 ac_cv_use_gpe='wxUSE_GPE=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2744
2745fi;
2746
2747 eval "$ac_cv_use_gpe"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_GPE" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761
2762 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2763echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2764 no_cache=0
2765
2766# Check whether --with-libpng or --without-libpng was given.
2767if test "${with_libpng+set}" = set; then
2768 withval="$with_libpng"
2769
2770 if test "$withval" = yes; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2772 elif test "$withval" = no; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2774 elif test "$withval" = sys; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2776 elif test "$withval" = builtin; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2778 else
2779 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2780echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2794
2795fi;
2796
2797 eval "$ac_cv_use_libpng"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_LIBPNG" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 elif test "$wxUSE_LIBPNG" = no; then
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 elif test "$wxUSE_LIBPNG" = sys; then
2809 echo "$as_me:$LINENO: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
2811 elif test "$wxUSE_LIBPNG" = builtin; then
2812 echo "$as_me:$LINENO: result: builtin version" >&5
2813echo "${ECHO_T}builtin version" >&6
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820
2821 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2822echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2823 no_cache=0
2824
2825# Check whether --with-libjpeg or --without-libjpeg was given.
2826if test "${with_libjpeg+set}" = set; then
2827 withval="$with_libjpeg"
2828
2829 if test "$withval" = yes; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2831 elif test "$withval" = no; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2833 elif test "$withval" = sys; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2835 elif test "$withval" = builtin; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843else
2844
2845 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2853
2854fi;
2855
2856 eval "$ac_cv_use_libjpeg"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_LIBJPEG" = yes; then
2862 echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
2864 elif test "$wxUSE_LIBJPEG" = no; then
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867 elif test "$wxUSE_LIBJPEG" = sys; then
2868 echo "$as_me:$LINENO: result: system version" >&5
2869echo "${ECHO_T}system version" >&6
2870 elif test "$wxUSE_LIBJPEG" = builtin; then
2871 echo "$as_me:$LINENO: result: builtin version" >&5
2872echo "${ECHO_T}builtin version" >&6
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2881echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2882 no_cache=0
2883
2884# Check whether --with-libtiff or --without-libtiff was given.
2885if test "${with_libtiff+set}" = set; then
2886 withval="$with_libtiff"
2887
2888 if test "$withval" = yes; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2890 elif test "$withval" = no; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2892 elif test "$withval" = sys; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2894 elif test "$withval" = builtin; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2912
2913fi;
2914
2915 eval "$ac_cv_use_libtiff"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LIBTIFF" = yes; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 elif test "$wxUSE_LIBTIFF" = no; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926 elif test "$wxUSE_LIBTIFF" = sys; then
2927 echo "$as_me:$LINENO: result: system version" >&5
2928echo "${ECHO_T}system version" >&6
2929 elif test "$wxUSE_LIBTIFF" = builtin; then
2930 echo "$as_me:$LINENO: result: builtin version" >&5
2931echo "${ECHO_T}builtin version" >&6
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938
2939 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2940echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2941 no_cache=0
2942
2943# Check whether --with-libxpm or --without-libxpm was given.
2944if test "${with_libxpm+set}" = set; then
2945 withval="$with_libxpm"
2946
2947 if test "$withval" = yes; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2949 elif test "$withval" = no; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2951 elif test "$withval" = sys; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2953 elif test "$withval" = builtin; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2971
2972fi;
2973
2974 eval "$ac_cv_use_libxpm"
2975 if test "$no_cache" != 1; then
2976 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2977 fi
2978
2979 if test "$wxUSE_LIBXPM" = yes; then
2980 echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6
2982 elif test "$wxUSE_LIBXPM" = no; then
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985 elif test "$wxUSE_LIBXPM" = sys; then
2986 echo "$as_me:$LINENO: result: system version" >&5
2987echo "${ECHO_T}system version" >&6
2988 elif test "$wxUSE_LIBXPM" = builtin; then
2989 echo "$as_me:$LINENO: result: builtin version" >&5
2990echo "${ECHO_T}builtin version" >&6
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997
2998 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2999echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3000 no_cache=0
3001
3002# Check whether --with-libmspack or --without-libmspack was given.
3003if test "${with_libmspack+set}" = set; then
3004 withval="$with_libmspack"
3005
3006 if test "$withval" = yes; then
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3008 else
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3022
3023fi;
3024
3025 eval "$ac_cv_use_libmspack"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_LIBMSPACK" = yes; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032echo "${ECHO_T}yes" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3040echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-sdl or --without-sdl was given.
3044if test "${with_sdl+set}" = set; then
3045 withval="$with_sdl"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3049 else
3050 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3063
3064fi;
3065
3066 eval "$ac_cv_use_sdl"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_LIBSDL" = yes; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077 fi
3078
3079
d1c38808
VZ
3080 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3081echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3082 no_cache=0
3083
3084# Check whether --with-gnomeprint or --without-gnomeprint was given.
3085if test "${with_gnomeprint+set}" = set; then
3086 withval="$with_gnomeprint"
3087
3088 if test "$withval" = yes; then
3089 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3090 else
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3104
3105fi;
3106
3107 eval "$ac_cv_use_gnomeprint"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118 fi
3119
3120
a848cd7e
SC
3121 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3122echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3123 no_cache=0
3124
3125# Check whether --with-opengl or --without-opengl was given.
3126if test "${with_opengl+set}" = set; then
3127 withval="$with_opengl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3131 else
3132 ac_cv_use_opengl='wxUSE_OPENGL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3145
3146fi;
3147
3148 eval "$ac_cv_use_opengl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPENGL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
3162fi
3163
3164
3165 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3166echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3167 no_cache=0
3168
3169# Check whether --with-dmalloc or --without-dmalloc was given.
3170if test "${with_dmalloc+set}" = set; then
3171 withval="$with_dmalloc"
3172
3173 if test "$withval" = yes; then
3174 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3175 else
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3189
3190fi;
3191
3192 eval "$ac_cv_use_dmalloc"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DMALLOC" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for --with-regex" >&5
3207echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3208 no_cache=0
3209
3210# Check whether --with-regex or --without-regex was given.
3211if test "${with_regex+set}" = set; then
3212 withval="$with_regex"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_regex='wxUSE_REGEX=yes'
3216 elif test "$withval" = no; then
3217 ac_cv_use_regex='wxUSE_REGEX=no'
3218 elif test "$withval" = sys; then
3219 ac_cv_use_regex='wxUSE_REGEX=sys'
3220 elif test "$withval" = builtin; then
3221 ac_cv_use_regex='wxUSE_REGEX=builtin'
3222 else
3223 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3224echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3238
3239fi;
3240
3241 eval "$ac_cv_use_regex"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_REGEX" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 elif test "$wxUSE_REGEX" = no; then
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 elif test "$wxUSE_REGEX" = sys; then
3253 echo "$as_me:$LINENO: result: system version" >&5
3254echo "${ECHO_T}system version" >&6
3255 elif test "$wxUSE_REGEX" = builtin; then
3256 echo "$as_me:$LINENO: result: builtin version" >&5
3257echo "${ECHO_T}builtin version" >&6
3258 else
3259 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3260echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264
3265 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3266echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-zlib or --without-zlib was given.
3270if test "${with_zlib+set}" = set; then
3271 withval="$with_zlib"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3275 elif test "$withval" = no; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=no'
3277 elif test "$withval" = sys; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3279 elif test "$withval" = builtin; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3297
3298fi;
3299
3300 eval "$ac_cv_use_zlib"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_ZLIB" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
3308 elif test "$wxUSE_ZLIB" = no; then
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311 elif test "$wxUSE_ZLIB" = sys; then
3312 echo "$as_me:$LINENO: result: system version" >&5
3313echo "${ECHO_T}system version" >&6
3314 elif test "$wxUSE_ZLIB" = builtin; then
3315 echo "$as_me:$LINENO: result: builtin version" >&5
3316echo "${ECHO_T}builtin version" >&6
3317 else
3318 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3319echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3320 { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3325echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-odbc or --without-odbc was given.
3329if test "${with_odbc+set}" = set; then
3330 withval="$with_odbc"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_odbc='wxUSE_ODBC=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_odbc='wxUSE_ODBC=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_odbc='wxUSE_ODBC=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3356
3357fi;
3358
3359 eval "$ac_cv_use_odbc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_ODBC" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_ODBC" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_ODBC" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_ODBC" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-expat" >&5
3384echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-expat or --without-expat was given.
3388if test "${with_expat+set}" = set; then
3389 withval="$with_expat"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_expat='wxUSE_EXPAT=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_expat='wxUSE_EXPAT=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_expat='wxUSE_EXPAT=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3415
3416fi;
3417
3418 eval "$ac_cv_use_expat"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_EXPAT" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_EXPAT" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_EXPAT" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_EXPAT" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442
3443
3444 enablestring=
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3447 no_cache=0
3448 # Check whether --enable-shared or --disable-shared was given.
3449if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_shared='wxUSE_SHARED=yes'
3454 else
3455 ac_cv_use_shared='wxUSE_SHARED=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3468
3469fi;
3470
3471 eval "$ac_cv_use_shared"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_SHARED" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 fi
3483
3484
3485 enablestring=
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3488 no_cache=0
3489 # Check whether --enable-optimise or --disable-optimise was given.
3490if test "${enable_optimise+set}" = set; then
3491 enableval="$enable_optimise"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3495 else
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3509
3510fi;
3511
3512 eval "$ac_cv_use_optimise"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_OPTIMISE" = yes; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523 fi
3524
3525
3526 enablestring=
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3529 no_cache=0
3530 # Check whether --enable-debug or --disable-debug was given.
3531if test "${enable_debug+set}" = set; then
3532 enableval="$enable_debug"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_debug='wxUSE_DEBUG=yes'
3536 else
3537 ac_cv_use_debug='wxUSE_DEBUG=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3550
3551fi;
3552
3553 eval "$ac_cv_use_debug"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DEBUG" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 fi
3565
3566
3567 enablestring=
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3570 no_cache=0
3571 # Check whether --enable-stl or --disable-stl was given.
3572if test "${enable_stl+set}" = set; then
3573 enableval="$enable_stl"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_stl='wxUSE_STL=yes'
3577 else
3578 ac_cv_use_stl='wxUSE_STL=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3591
3592fi;
3593
3594 eval "$ac_cv_use_stl"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_STL" = yes; then
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605 fi
3606
3607if test "$USE_OS2" = "1"; then
69120ee4 3608 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
81f90336
MW
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-arcstream or --disable-arcstream was given.
4660if test "${enable_arcstream+set}" = set; then
4661 enableval="$enable_arcstream"
4662
4663 if test "$enableval" = yes; then
9e8e867f 4664 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4665 else
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4667 fi
4668
4669else
4670
9e8e867f 4671 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
9e8e867f 4678 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4679
4680fi;
4681
4682 eval "$ac_cv_use_arcstream"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4685 fi
4686
9e8e867f 4687 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
a848cd7e 4696 enablestring=
36b6448c
VZ
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4699 no_cache=0
36b6448c
VZ
4700 # Check whether --enable-backtrace or --disable-backtrace was given.
4701if test "${enable_backtrace+set}" = set; then
4702 enableval="$enable_backtrace"
a848cd7e
SC
4703
4704 if test "$enableval" = yes; then
36b6448c 4705 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4706 else
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4708 fi
4709
4710else
4711
36b6448c 4712 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
36b6448c 4719 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4720
4721fi;
4722
36b6448c 4723 eval "$ac_cv_use_backtrace"
a848cd7e 4724 if test "$no_cache" != 1; then
36b6448c 4725 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4726 fi
4727
36b6448c 4728 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
eaff0f0d 4737 enablestring=
36b6448c
VZ
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4740 no_cache=0
36b6448c
VZ
4741 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4742if test "${enable_catch_segvs+set}" = set; then
4743 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4744
4745 if test "$enableval" = yes; then
36b6448c 4746 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4747 else
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4749 fi
4750
4751else
4752
36b6448c 4753 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
36b6448c 4760 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4761
4762fi;
4763
36b6448c 4764 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4765 if test "$no_cache" != 1; then
36b6448c 4766 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4767 fi
4768
36b6448c 4769 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
a848cd7e
SC
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-cmdline or --disable-cmdline was given.
4783if test "${enable_cmdline+set}" = set; then
4784 enableval="$enable_cmdline"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4788 else
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4802
4803fi;
4804
4805 eval "$ac_cv_use_cmdline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-datetime or --disable-datetime was given.
4824if test "${enable_datetime+set}" = set; then
4825 enableval="$enable_datetime"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4829 else
4830 ac_cv_use_datetime='wxUSE_DATETIME=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4843
4844fi;
4845
4846 eval "$ac_cv_use_datetime"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DATETIME" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
36b6448c
VZ
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-debugreport or --disable-debugreport was given.
4865if test "${enable_debugreport+set}" = set; then
4866 enableval="$enable_debugreport"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4870 else
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4884
4885fi;
4886
4887 eval "$ac_cv_use_debugreport"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DEBUGREPORT" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
a848cd7e
SC
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-dialupman or --disable-dialupman was given.
4906if test "${enable_dialupman+set}" = set; then
4907 enableval="$enable_dialupman"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4911 else
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4925
4926fi;
4927
4928 eval "$ac_cv_use_dialupman"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-dynlib or --disable-dynlib was given.
4947if test "${enable_dynlib+set}" = set; then
4948 enableval="$enable_dynlib"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4952 else
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4966
4967fi;
4968
4969 eval "$ac_cv_use_dynlib"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4988if test "${enable_dynamicloader+set}" = set; then
4989 enableval="$enable_dynamicloader"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4993 else
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5007
5008fi;
5009
5010 eval "$ac_cv_use_dynamicloader"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-exceptions or --disable-exceptions was given.
5029if test "${enable_exceptions+set}" = set; then
5030 enableval="$enable_exceptions"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5034 else
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5048
5049fi;
5050
5051 eval "$ac_cv_use_exceptions"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_EXCEPTIONS" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-ffile or --disable-ffile was given.
5070if test "${enable_ffile+set}" = set; then
5071 enableval="$enable_ffile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_ffile='wxUSE_FFILE=yes'
5075 else
5076 ac_cv_use_ffile='wxUSE_FFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_ffile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-file or --disable-file was given.
5111if test "${enable_file+set}" = set; then
5112 enableval="$enable_file"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_file='wxUSE_FILE=yes'
5116 else
5117 ac_cv_use_file='wxUSE_FILE=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5130
5131fi;
5132
5133 eval "$ac_cv_use_file"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FILE" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-filesystem or --disable-filesystem was given.
5152if test "${enable_filesystem+set}" = set; then
5153 enableval="$enable_filesystem"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5157 else
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5171
5172fi;
5173
5174 eval "$ac_cv_use_filesystem"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FILESYSTEM" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-fontmap or --disable-fontmap was given.
5193if test "${enable_fontmap+set}" = set; then
5194 enableval="$enable_fontmap"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5198 else
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5212
5213fi;
5214
5215 eval "$ac_cv_use_fontmap"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_FONTMAP" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5234if test "${enable_fs_inet+set}" = set; then
5235 enableval="$enable_fs_inet"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5239 else
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5253
5254fi;
5255
5256 eval "$ac_cv_use_fs_inet"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_FS_INET" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5275if test "${enable_fs_zip+set}" = set; then
5276 enableval="$enable_fs_zip"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5280 else
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5294
5295fi;
5296
5297 eval "$ac_cv_use_fs_zip"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_FS_ZIP" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-geometry or --disable-geometry was given.
5316if test "${enable_geometry+set}" = set; then
5317 enableval="$enable_geometry"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5321 else
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5335
5336fi;
5337
5338 eval "$ac_cv_use_geometry"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_GEOMETRY" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-log or --disable-log was given.
5357if test "${enable_log+set}" = set; then
5358 enableval="$enable_log"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_log='wxUSE_LOG=yes'
5362 else
5363 ac_cv_use_log='wxUSE_LOG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5376
5377fi;
5378
5379 eval "$ac_cv_use_log"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_LOG" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-longlong or --disable-longlong was given.
5398if test "${enable_longlong+set}" = set; then
5399 enableval="$enable_longlong"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5403 else
5404 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5417
5418fi;
5419
5420 eval "$ac_cv_use_longlong"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_LONGLONG" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-mimetype or --disable-mimetype was given.
5439if test "${enable_mimetype+set}" = set; then
5440 enableval="$enable_mimetype"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5444 else
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5458
5459fi;
5460
5461 eval "$ac_cv_use_mimetype"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MIMETYPE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-mslu or --disable-mslu was given.
5480if test "${enable_mslu+set}" = set; then
5481 enableval="$enable_mslu"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5485 else
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5499
5500fi;
5501
5502 eval "$ac_cv_use_mslu"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_UNICODE_MSLU" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-snglinst or --disable-snglinst was given.
5521if test "${enable_snglinst+set}" = set; then
5522 enableval="$enable_snglinst"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5526 else
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5540
5541fi;
5542
5543 eval "$ac_cv_use_snglinst"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
07158944
VZ
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5560 no_cache=0
07158944
VZ
5561 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5562if test "${enable_std_iostreams+set}" = set; then
5563 enableval="$enable_std_iostreams"
a848cd7e
SC
5564
5565 if test "$enableval" = yes; then
07158944 5566 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5567 else
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5569 fi
5570
5571else
5572
07158944 5573 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
07158944 5580 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5581
5582fi;
5583
07158944 5584 eval "$ac_cv_use_std_iostreams"
a848cd7e 5585 if test "$no_cache" != 1; then
07158944 5586 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5587 fi
5588
07158944 5589 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
59746b65
MW
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-std_string or --disable-std_string was given.
5603if test "${enable_std_string+set}" = set; then
5604 enableval="$enable_std_string"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5608 else
5609 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5622
5623fi;
5624
5625 eval "$ac_cv_use_std_string"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_STD_STRING" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
a848cd7e 5639 enablestring=
07158944
VZ
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5642 no_cache=0
07158944
VZ
5643 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5644if test "${enable_stdpaths+set}" = set; then
5645 enableval="$enable_stdpaths"
a848cd7e
SC
5646
5647 if test "$enableval" = yes; then
07158944 5648 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5649 else
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5651 fi
5652
5653else
5654
07158944 5655 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
07158944 5662 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5663
5664fi;
5665
07158944 5666 eval "$ac_cv_use_stdpaths"
a848cd7e 5667 if test "$no_cache" != 1; then
07158944 5668 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5669 fi
5670
07158944 5671 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5685if test "${enable_stopwatch+set}" = set; then
5686 enableval="$enable_stopwatch"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5690 else
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5704
5705fi;
5706
5707 eval "$ac_cv_use_stopwatch"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_STOPWATCH" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
07158944
VZ
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-streams or --disable-streams was given.
5726if test "${enable_streams+set}" = set; then
5727 enableval="$enable_streams"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_streams='wxUSE_STREAMS=yes'
5731 else
5732 ac_cv_use_streams='wxUSE_STREAMS=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5745
5746fi;
5747
5748 eval "$ac_cv_use_streams"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_STREAMS" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
a848cd7e
SC
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-system_options or --disable-system_options was given.
5767if test "${enable_system_options+set}" = set; then
5768 enableval="$enable_system_options"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5772 else
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5786
5787fi;
5788
5789 eval "$ac_cv_use_system_options"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-textbuf or --disable-textbuf was given.
5808if test "${enable_textbuf+set}" = set; then
5809 enableval="$enable_textbuf"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5813 else
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5827
5828fi;
5829
5830 eval "$ac_cv_use_textbuf"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_TEXTBUFFER" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-textfile or --disable-textfile was given.
5849if test "${enable_textfile+set}" = set; then
5850 enableval="$enable_textfile"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5854 else
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5868
5869fi;
5870
5871 eval "$ac_cv_use_textfile"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_TEXTFILE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-timer or --disable-timer was given.
5890if test "${enable_timer+set}" = set; then
5891 enableval="$enable_timer"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_timer='wxUSE_TIMER=yes'
5895 else
5896 ac_cv_use_timer='wxUSE_TIMER=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5909
5910fi;
5911
5912 eval "$ac_cv_use_timer"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_TIMER" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-unicode or --disable-unicode was given.
5931if test "${enable_unicode+set}" = set; then
5932 enableval="$enable_unicode"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5936 else
5937 ac_cv_use_unicode='wxUSE_UNICODE=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5950
5951fi;
5952
5953 eval "$ac_cv_use_unicode"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_UNICODE" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-sound or --disable-sound was given.
5972if test "${enable_sound+set}" = set; then
5973 enableval="$enable_sound"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_sound='wxUSE_SOUND=yes'
5977 else
5978 ac_cv_use_sound='wxUSE_SOUND=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5991
5992fi;
5993
5994 eval "$ac_cv_use_sound"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_SOUND" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
3b57de8b
RL
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6013if test "${enable_mediactrl+set}" = set; then
6014 enableval="$enable_mediactrl"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6018 else
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6032
6033fi;
6034
6035 eval "$ac_cv_use_mediactrl"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_MEDIACTRL" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e
SC
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6054if test "${enable_wxprintfv+set}" = set; then
6055 enableval="$enable_wxprintfv"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6059 else
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6073
6074fi;
6075
6076 eval "$ac_cv_use_wxprintfv"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-zipstream or --disable-zipstream was given.
6095if test "${enable_zipstream+set}" = set; then
6096 enableval="$enable_zipstream"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6100 else
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6114
6115fi;
6116
6117 eval "$ac_cv_use_zipstream"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_ZIPSTREAM" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
a848cd7e
SC
6131
6132 enablestring=
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6135 no_cache=0
6136 # Check whether --enable-url or --disable-url was given.
6137if test "${enable_url+set}" = set; then
6138 enableval="$enable_url"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_url='wxUSE_URL=yes'
6142 else
6143 ac_cv_use_url='wxUSE_URL=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6156
6157fi;
6158
6159 eval "$ac_cv_use_url"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_URL" = yes; then
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170 fi
6171
6172
6173 enablestring=
6174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6175echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6176 no_cache=0
6177 # Check whether --enable-protocol or --disable-protocol was given.
6178if test "${enable_protocol+set}" = set; then
6179 enableval="$enable_protocol"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6183 else
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6185 fi
6186
6187else
6188
6189 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6197
6198fi;
6199
6200 eval "$ac_cv_use_protocol"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_PROTOCOL" = yes; then
6206 echo "$as_me:$LINENO: result: yes" >&5
6207echo "${ECHO_T}yes" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211 fi
6212
6213
6214 enablestring=
6215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6216echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6217 no_cache=0
6218 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6219if test "${enable_protocol_http+set}" = set; then
6220 enableval="$enable_protocol_http"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6224 else
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6226 fi
6227
6228else
6229
6230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6238
6239fi;
6240
6241 eval "$ac_cv_use_protocol_http"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248echo "${ECHO_T}yes" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255 enablestring=
6256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6257echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6258 no_cache=0
6259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6260if test "${enable_protocol_ftp+set}" = set; then
6261 enableval="$enable_protocol_ftp"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6265 else
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6279
6280fi;
6281
6282 eval "$ac_cv_use_protocol_ftp"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293 fi
6294
6295
6296 enablestring=
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6299 no_cache=0
6300 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6301if test "${enable_protocol_file+set}" = set; then
6302 enableval="$enable_protocol_file"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6306 else
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6320
6321fi;
6322
6323 eval "$ac_cv_use_protocol_file"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334 fi
6335
6336
6337
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-threads or --disable-threads was given.
6345if test "${enable_threads+set}" = set; then
6346 enableval="$enable_threads"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_threads='wxUSE_THREADS=yes'
6350 else
6351 ac_cv_use_threads='wxUSE_THREADS=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6364
6365fi;
6366
6367 eval "$ac_cv_use_threads"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_THREADS" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381if test "$wxUSE_GUI" = "yes"; then
6382
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-docview or --disable-docview was given.
6390if test "${enable_docview+set}" = set; then
6391 enableval="$enable_docview"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6395 else
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6409
6410fi;
6411
6412 eval "$ac_cv_use_docview"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-help or --disable-help was given.
6431if test "${enable_help+set}" = set; then
6432 enableval="$enable_help"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_help='wxUSE_HELP=yes'
6436 else
6437 ac_cv_use_help='wxUSE_HELP=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6450
6451fi;
6452
6453 eval "$ac_cv_use_help"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_HELP" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6472if test "${enable_mshtmlhelp+set}" = set; then
6473 enableval="$enable_mshtmlhelp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6477 else
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6491
6492fi;
6493
6494 eval "$ac_cv_use_mshtmlhelp"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MS_HTML_HELP" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-html or --disable-html was given.
6513if test "${enable_html+set}" = set; then
6514 enableval="$enable_html"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_html='wxUSE_HTML=yes'
6518 else
6519 ac_cv_use_html='wxUSE_HTML=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6532
6533fi;
6534
6535 eval "$ac_cv_use_html"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_HTML" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6554if test "${enable_htmlhelp+set}" = set; then
6555 enableval="$enable_htmlhelp"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6559 else
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6573
6574fi;
6575
6576 eval "$ac_cv_use_htmlhelp"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_WXHTML_HELP" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
9a8f0513
VS
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-xrc or --disable-xrc was given.
6595if test "${enable_xrc+set}" = set; then
6596 enableval="$enable_xrc"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_xrc='wxUSE_XRC=yes'
6600 else
6601 ac_cv_use_xrc='wxUSE_XRC=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6614
6615fi;
6616
6617 eval "$ac_cv_use_xrc"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_XRC" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-constraints or --disable-constraints was given.
6636if test "${enable_constraints+set}" = set; then
6637 enableval="$enable_constraints"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6641 else
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6655
6656fi;
6657
6658 eval "$ac_cv_use_constraints"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_CONSTRAINTS" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-printarch or --disable-printarch was given.
6677if test "${enable_printarch+set}" = set; then
6678 enableval="$enable_printarch"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6682 else
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6696
6697fi;
6698
6699 eval "$ac_cv_use_printarch"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-mdi or --disable-mdi was given.
6718if test "${enable_mdi+set}" = set; then
6719 enableval="$enable_mdi"
6720
6721 if test "$enableval" = yes; then
8a7b1113 6722 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6723 else
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6725 fi
6726
6727else
6728
8a7b1113 6729 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
8a7b1113 6736 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6737
6738fi;
6739
6740 eval "$ac_cv_use_mdi"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6743 fi
6744
8a7b1113
VZ
6745 if test "$wxUSE_MDI" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6759if test "${enable_mdidoc+set}" = set; then
6760 enableval="$enable_mdidoc"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_mdidoc"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6784 fi
6785
a848cd7e
SC
6786 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-loggui or --disable-loggui was given.
6800if test "${enable_loggui+set}" = set; then
6801 enableval="$enable_loggui"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6805 else
6806 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6819
6820fi;
6821
6822 eval "$ac_cv_use_loggui"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_LOGGUI" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-logwin or --disable-logwin was given.
6841if test "${enable_logwin+set}" = set; then
6842 enableval="$enable_logwin"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6846 else
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6860
6861fi;
6862
6863 eval "$ac_cv_use_logwin"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_LOGWINDOW" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-logdialog or --disable-logdialog was given.
6882if test "${enable_logdialog+set}" = set; then
6883 enableval="$enable_logdialog"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6887 else
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6901
6902fi;
6903
6904 eval "$ac_cv_use_logdialog"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_LOGDIALOG" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
646b6ec1
VS
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-webkit or --disable-webkit was given.
6923if test "${enable_webkit+set}" = set; then
6924 enableval="$enable_webkit"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6928 else
6929 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6942
6943fi;
6944
6945 eval "$ac_cv_use_webkit"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WEBKIT" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
a848cd7e
SC
6959
6960 enablestring=
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6963 no_cache=0
6964 # Check whether --enable-postscript or --disable-postscript was given.
6965if test "${enable_postscript+set}" = set; then
6966 enableval="$enable_postscript"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6970 else
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6984
6985fi;
6986
6987 eval "$ac_cv_use_postscript"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_POSTSCRIPT" = yes; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998 fi
6999
7000
7001
7002
7003
7004 enablestring=
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7007 no_cache=0
7008 # Check whether --enable-prologio or --disable-prologio was given.
7009if test "${enable_prologio+set}" = set; then
7010 enableval="$enable_prologio"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7014 else
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7016 fi
7017
7018else
7019
7020 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7028
7029fi;
7030
7031 eval "$ac_cv_use_prologio"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_PROLOGIO" = yes; then
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039 else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042 fi
7043
7044
7045 enablestring=
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7048 no_cache=0
7049 # Check whether --enable-resources or --disable-resources was given.
7050if test "${enable_resources+set}" = set; then
7051 enableval="$enable_resources"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7055 else
7056 ac_cv_use_resources='wxUSE_RESOURCES=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7069
7070fi;
7071
7072 eval "$ac_cv_use_resources"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_RESOURCES" = yes; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
7080 else
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083 fi
7084
7085
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-clipboard or --disable-clipboard was given.
7093if test "${enable_clipboard+set}" = set; then
7094 enableval="$enable_clipboard"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7098 else
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7112
7113fi;
7114
7115 eval "$ac_cv_use_clipboard"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CLIPBOARD" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-dnd or --disable-dnd was given.
7134if test "${enable_dnd+set}" = set; then
7135 enableval="$enable_dnd"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7139 else
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7153
7154fi;
7155
7156 eval "$ac_cv_use_dnd"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-metafile or --disable-metafile was given.
7175if test "${enable_metafile+set}" = set; then
7176 enableval="$enable_metafile"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7180 else
7181 ac_cv_use_metafile='wxUSE_METAFILE=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7194
7195fi;
7196
7197 eval "$ac_cv_use_metafile"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_METAFILE" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-controls or --disable-controls was given.
7219if test "${enable_controls+set}" = set; then
7220 enableval="$enable_controls"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7224 else
7225 ac_cv_use_controls='wxUSE_CONTROLS=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7238
7239fi;
7240
7241 eval "$ac_cv_use_controls"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CONTROLS" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255if test "$wxUSE_CONTROLS" = "yes"; then
7256 DEFAULT_wxUSE_ACCEL=yes
7257 DEFAULT_wxUSE_BMPBUTTON=yes
7258 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7259 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7260 DEFAULT_wxUSE_CARET=yes
7261 DEFAULT_wxUSE_COMBOBOX=yes
7262 DEFAULT_wxUSE_CHECKBOX=yes
7263 DEFAULT_wxUSE_CHECKLISTBOX=yes
7264 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7265 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7266 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7267 DEFAULT_wxUSE_GAUGE=yes
7268 DEFAULT_wxUSE_GRID=yes
7269 DEFAULT_wxUSE_IMAGLIST=yes
7270 DEFAULT_wxUSE_LISTBOOK=yes
7271 DEFAULT_wxUSE_LISTBOX=yes
7272 DEFAULT_wxUSE_LISTCTRL=yes
7273 DEFAULT_wxUSE_NOTEBOOK=yes
7274 DEFAULT_wxUSE_RADIOBOX=yes
7275 DEFAULT_wxUSE_RADIOBTN=yes
7276 DEFAULT_wxUSE_SASH=yes
7277 DEFAULT_wxUSE_SCROLLBAR=yes
7278 DEFAULT_wxUSE_SLIDER=yes
7279 DEFAULT_wxUSE_SPINBTN=yes
7280 DEFAULT_wxUSE_SPINCTRL=yes
7281 DEFAULT_wxUSE_SPLITTER=yes
7282 DEFAULT_wxUSE_STATBMP=yes
7283 DEFAULT_wxUSE_STATBOX=yes
7284 DEFAULT_wxUSE_STATLINE=yes
7285 DEFAULT_wxUSE_STATUSBAR=yes
7286 DEFAULT_wxUSE_TAB_DIALOG=yes
7287 DEFAULT_wxUSE_TOGGLEBTN=yes
7288 DEFAULT_wxUSE_TOOLBAR=yes
7289 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7290 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7291 DEFAULT_wxUSE_TOOLTIPS=yes
7292 DEFAULT_wxUSE_TREECTRL=yes
7293 DEFAULT_wxUSE_POPUPWIN=yes
7294 DEFAULT_wxUSE_TIPWINDOW=yes
7295elif test "$wxUSE_CONTROLS" = "no"; then
7296 DEFAULT_wxUSE_ACCEL=no
7297 DEFAULT_wxUSE_BMPBUTTON=no
7298 DEFAULT_wxUSE_BUTTON=no
7299 DEFAULT_wxUSE_CALCTRL=no
7300 DEFAULT_wxUSE_CARET=no
7301 DEFAULT_wxUSE_COMBOBOX=no
7302 DEFAULT_wxUSE_CHECKBOX=no
7303 DEFAULT_wxUSE_CHECKLISTBOX=no
7304 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7305 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7306 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7307 DEFAULT_wxUSE_GAUGE=no
7308 DEFAULT_wxUSE_GRID=no
7309 DEFAULT_wxUSE_IMAGLIST=no
7310 DEFAULT_wxUSE_LISTBOOK=no
7311 DEFAULT_wxUSE_LISTBOX=no
7312 DEFAULT_wxUSE_LISTCTRL=no
7313 DEFAULT_wxUSE_NOTEBOOK=no
7314 DEFAULT_wxUSE_RADIOBOX=no
7315 DEFAULT_wxUSE_RADIOBTN=no
7316 DEFAULT_wxUSE_SASH=no
7317 DEFAULT_wxUSE_SCROLLBAR=no
7318 DEFAULT_wxUSE_SLIDER=no
7319 DEFAULT_wxUSE_SPINBTN=no
7320 DEFAULT_wxUSE_SPINCTRL=no
7321 DEFAULT_wxUSE_SPLITTER=no
7322 DEFAULT_wxUSE_STATBMP=no
7323 DEFAULT_wxUSE_STATBOX=no
7324 DEFAULT_wxUSE_STATLINE=no
7325 DEFAULT_wxUSE_STATUSBAR=no
7326 DEFAULT_wxUSE_TAB_DIALOG=no
7327 DEFAULT_wxUSE_TOGGLEBTN=no
7328 DEFAULT_wxUSE_TOOLBAR=no
7329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7331 DEFAULT_wxUSE_TOOLTIPS=no
7332 DEFAULT_wxUSE_TREECTRL=no
7333 DEFAULT_wxUSE_POPUPWIN=no
7334 DEFAULT_wxUSE_TIPWINDOW=no
7335fi
7336
a848cd7e
SC
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-accel or --disable-accel was given.
7343if test "${enable_accel+set}" = set; then
7344 enableval="$enable_accel"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_accel='wxUSE_ACCEL=yes'
7348 else
7349 ac_cv_use_accel='wxUSE_ACCEL=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7362
7363fi;
7364
7365 eval "$ac_cv_use_accel"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_ACCEL" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-button or --disable-button was given.
7384if test "${enable_button+set}" = set; then
7385 enableval="$enable_button"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_button='wxUSE_BUTTON=yes'
7389 else
7390 ac_cv_use_button='wxUSE_BUTTON=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7403
7404fi;
7405
7406 eval "$ac_cv_use_button"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_BUTTON" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7425if test "${enable_bmpbutton+set}" = set; then
7426 enableval="$enable_bmpbutton"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7430 else
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7444
7445fi;
7446
7447 eval "$ac_cv_use_bmpbutton"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_BMPBUTTON" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-calendar or --disable-calendar was given.
7466if test "${enable_calendar+set}" = set; then
7467 enableval="$enable_calendar"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7471 else
7472 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7485
7486fi;
7487
7488 eval "$ac_cv_use_calendar"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_CALCTRL" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-caret or --disable-caret was given.
7507if test "${enable_caret+set}" = set; then
7508 enableval="$enable_caret"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_caret='wxUSE_CARET=yes'
7512 else
7513 ac_cv_use_caret='wxUSE_CARET=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7526
7527fi;
7528
7529 eval "$ac_cv_use_caret"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_CARET" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-checkbox or --disable-checkbox was given.
7548if test "${enable_checkbox+set}" = set; then
7549 enableval="$enable_checkbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7553 else
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_checkbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_CHECKBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-checklst or --disable-checklst was given.
7589if test "${enable_checklst+set}" = set; then
7590 enableval="$enable_checklst"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7594 else
7595 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7608
7609fi;
7610
7611 eval "$ac_cv_use_checklst"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_CHECKLST" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-choice or --disable-choice was given.
7630if test "${enable_choice+set}" = set; then
7631 enableval="$enable_choice"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_choice='wxUSE_CHOICE=yes'
7635 else
7636 ac_cv_use_choice='wxUSE_CHOICE=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7649
7650fi;
7651
7652 eval "$ac_cv_use_choice"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_CHOICE" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
92bbdbcd
WS
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-choicebook or --disable-choicebook was given.
7671if test "${enable_choicebook+set}" = set; then
7672 enableval="$enable_choicebook"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7676 else
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7690
7691fi;
7692
7693 eval "$ac_cv_use_choicebook"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_CHOICEBOOK" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
a848cd7e
SC
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-combobox or --disable-combobox was given.
7712if test "${enable_combobox+set}" = set; then
7713 enableval="$enable_combobox"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7717 else
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7731
7732fi;
7733
7734 eval "$ac_cv_use_combobox"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_COMBOBOX" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
da98e9be
VZ
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-datepick or --disable-datepick was given.
7753if test "${enable_datepick+set}" = set; then
7754 enableval="$enable_datepick"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7758 else
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7772
7773fi;
7774
7775 eval "$ac_cv_use_datepick"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_DATEPICKCTRL" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
a848cd7e
SC
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-display or --disable-display was given.
7794if test "${enable_display+set}" = set; then
7795 enableval="$enable_display"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_display='wxUSE_DISPLAY=yes'
7799 else
7800 ac_cv_use_display='wxUSE_DISPLAY=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7813
7814fi;
7815
7816 eval "$ac_cv_use_display"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_DISPLAY" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-gauge or --disable-gauge was given.
7835if test "${enable_gauge+set}" = set; then
7836 enableval="$enable_gauge"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7840 else
7841 ac_cv_use_gauge='wxUSE_GAUGE=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7854
7855fi;
7856
7857 eval "$ac_cv_use_gauge"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_GAUGE" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-grid or --disable-grid was given.
7876if test "${enable_grid+set}" = set; then
7877 enableval="$enable_grid"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_grid='wxUSE_GRID=yes'
7881 else
7882 ac_cv_use_grid='wxUSE_GRID=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7895
7896fi;
7897
7898 eval "$ac_cv_use_grid"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_GRID" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-imaglist or --disable-imaglist was given.
7917if test "${enable_imaglist+set}" = set; then
7918 enableval="$enable_imaglist"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7922 else
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7936
7937fi;
7938
7939 eval "$ac_cv_use_imaglist"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_IMAGLIST" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-listbook or --disable-listbook was given.
7958if test "${enable_listbook+set}" = set; then
7959 enableval="$enable_listbook"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7963 else
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7977
7978fi;
7979
7980 eval "$ac_cv_use_listbook"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_LISTBOOK" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-listbox or --disable-listbox was given.
7999if test "${enable_listbox+set}" = set; then
8000 enableval="$enable_listbox"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8004 else
8005 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8018
8019fi;
8020
8021 eval "$ac_cv_use_listbox"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_LISTBOX" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-listctrl or --disable-listctrl was given.
8040if test "${enable_listctrl+set}" = set; then
8041 enableval="$enable_listctrl"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8045 else
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8059
8060fi;
8061
8062 eval "$ac_cv_use_listctrl"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_LISTCTRL" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-notebook or --disable-notebook was given.
8081if test "${enable_notebook+set}" = set; then
8082 enableval="$enable_notebook"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8086 else
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8100
8101fi;
8102
8103 eval "$ac_cv_use_notebook"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_NOTEBOOK" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-radiobox or --disable-radiobox was given.
8122if test "${enable_radiobox+set}" = set; then
8123 enableval="$enable_radiobox"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8127 else
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8141
8142fi;
8143
8144 eval "$ac_cv_use_radiobox"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_RADIOBOX" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8163if test "${enable_radiobtn+set}" = set; then
8164 enableval="$enable_radiobtn"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8168 else
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8182
8183fi;
8184
8185 eval "$ac_cv_use_radiobtn"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_RADIOBTN" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-sash or --disable-sash was given.
8204if test "${enable_sash+set}" = set; then
8205 enableval="$enable_sash"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_sash='wxUSE_SASH=yes'
8209 else
8210 ac_cv_use_sash='wxUSE_SASH=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8223
8224fi;
8225
8226 eval "$ac_cv_use_sash"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_SASH" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8245if test "${enable_scrollbar+set}" = set; then
8246 enableval="$enable_scrollbar"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8250 else
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8264
8265fi;
8266
8267 eval "$ac_cv_use_scrollbar"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_SCROLLBAR" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-slider or --disable-slider was given.
8286if test "${enable_slider+set}" = set; then
8287 enableval="$enable_slider"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_slider='wxUSE_SLIDER=yes'
8291 else
8292 ac_cv_use_slider='wxUSE_SLIDER=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8305
8306fi;
8307
8308 eval "$ac_cv_use_slider"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_SLIDER" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8327if test "${enable_spinbtn+set}" = set; then
8328 enableval="$enable_spinbtn"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8332 else
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8346
8347fi;
8348
8349 eval "$ac_cv_use_spinbtn"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_SPINBTN" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8368if test "${enable_spinctrl+set}" = set; then
8369 enableval="$enable_spinctrl"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8373 else
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8387
8388fi;
8389
8390 eval "$ac_cv_use_spinctrl"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_SPINCTRL" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-splitter or --disable-splitter was given.
8409if test "${enable_splitter+set}" = set; then
8410 enableval="$enable_splitter"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8414 else
8415 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8428
8429fi;
8430
8431 eval "$ac_cv_use_splitter"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_SPLITTER" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-statbmp or --disable-statbmp was given.
8450if test "${enable_statbmp+set}" = set; then
8451 enableval="$enable_statbmp"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8455 else
8456 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8469
8470fi;
8471
8472 eval "$ac_cv_use_statbmp"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_STATBMP" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-statbox or --disable-statbox was given.
8491if test "${enable_statbox+set}" = set; then
8492 enableval="$enable_statbox"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8496 else
8497 ac_cv_use_statbox='wxUSE_STATBOX=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8510
8511fi;
8512
8513 eval "$ac_cv_use_statbox"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_STATBOX" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-statline or --disable-statline was given.
8532if test "${enable_statline+set}" = set; then
8533 enableval="$enable_statline"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_statline='wxUSE_STATLINE=yes'
8537 else
8538 ac_cv_use_statline='wxUSE_STATLINE=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8551
8552fi;
8553
8554 eval "$ac_cv_use_statline"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_STATLINE" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-stattext or --disable-stattext was given.
8573if test "${enable_stattext+set}" = set; then
8574 enableval="$enable_stattext"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8578 else
8579 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8592
8593fi;
8594
8595 eval "$ac_cv_use_stattext"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_STATTEXT" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-statusbar or --disable-statusbar was given.
8614if test "${enable_statusbar+set}" = set; then
8615 enableval="$enable_statusbar"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8619 else
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8633
8634fi;
8635
8636 eval "$ac_cv_use_statusbar"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_STATUSBAR" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8655if test "${enable_tabdialog+set}" = set; then
8656 enableval="$enable_tabdialog"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8660 else
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8674
8675fi;
8676
8677 eval "$ac_cv_use_tabdialog"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_TABDIALOG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-textctrl or --disable-textctrl was given.
8696if test "${enable_textctrl+set}" = set; then
8697 enableval="$enable_textctrl"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8701 else
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8715
8716fi;
8717
8718 eval "$ac_cv_use_textctrl"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_TEXTCTRL" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8737if test "${enable_togglebtn+set}" = set; then
8738 enableval="$enable_togglebtn"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8742 else
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8756
8757fi;
8758
8759 eval "$ac_cv_use_togglebtn"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_TOGGLEBTN" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-toolbar or --disable-toolbar was given.
8778if test "${enable_toolbar+set}" = set; then
8779 enableval="$enable_toolbar"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8783 else
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8797
8798fi;
8799
8800 eval "$ac_cv_use_toolbar"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLBAR" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8819if test "${enable_tbarnative+set}" = set; then
8820 enableval="$enable_tbarnative"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8824 else
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8838
8839fi;
8840
8841 eval "$ac_cv_use_tbarnative"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8860if test "${enable_tbarsmpl+set}" = set; then
8861 enableval="$enable_tbarsmpl"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8865 else
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8879
8880fi;
8881
8882 eval "$ac_cv_use_tbarsmpl"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-treectrl or --disable-treectrl was given.
8901if test "${enable_treectrl+set}" = set; then
8902 enableval="$enable_treectrl"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8906 else
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8920
8921fi;
8922
8923 eval "$ac_cv_use_treectrl"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_TREECTRL" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8942if test "${enable_tipwindow+set}" = set; then
8943 enableval="$enable_tipwindow"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8947 else
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8961
8962fi;
8963
8964 eval "$ac_cv_use_tipwindow"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_TIPWINDOW" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-popupwin or --disable-popupwin was given.
8983if test "${enable_popupwin+set}" = set; then
8984 enableval="$enable_popupwin"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8988 else
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9002
9003fi;
9004
9005 eval "$ac_cv_use_popupwin"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_POPUPWIN" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-commondlg or --disable-commondlg was given.
9026if test "${enable_commondlg+set}" = set; then
9027 enableval="$enable_commondlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9031 else
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9045
9046fi;
9047
9048 eval "$ac_cv_use_commondlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_COMMONDLGS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9067if test "${enable_choicedlg+set}" = set; then
9068 enableval="$enable_choicedlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9072 else
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_choicedlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_CHOICEDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-coldlg or --disable-coldlg was given.
9108if test "${enable_coldlg+set}" = set; then
9109 enableval="$enable_coldlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9113 else
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_coldlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_COLOURDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-filedlg or --disable-filedlg was given.
9149if test "${enable_filedlg+set}" = set; then
9150 enableval="$enable_filedlg"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9154 else
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9168
9169fi;
9170
9171 eval "$ac_cv_use_filedlg"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_FILEDLG" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-finddlg or --disable-finddlg was given.
9190if test "${enable_finddlg+set}" = set; then
9191 enableval="$enable_finddlg"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9195 else
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9209
9210fi;
9211
9212 eval "$ac_cv_use_finddlg"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_FINDREPLDLG" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9231if test "${enable_fontdlg+set}" = set; then
9232 enableval="$enable_fontdlg"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9236 else
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9250
9251fi;
9252
9253 eval "$ac_cv_use_fontdlg"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_FONTDLG" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9272if test "${enable_dirdlg+set}" = set; then
9273 enableval="$enable_dirdlg"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9277 else
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9291
9292fi;
9293
9294 eval "$ac_cv_use_dirdlg"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_DIRDLG" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9313if test "${enable_msgdlg+set}" = set; then
9314 enableval="$enable_msgdlg"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9318 else
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9332
9333fi;
9334
9335 eval "$ac_cv_use_msgdlg"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MSGDLG" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9354if test "${enable_numberdlg+set}" = set; then
9355 enableval="$enable_numberdlg"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9359 else
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9373
9374fi;
9375
9376 eval "$ac_cv_use_numberdlg"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_NUMBERDLG" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-splash or --disable-splash was given.
9395if test "${enable_splash+set}" = set; then
9396 enableval="$enable_splash"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_splash='wxUSE_SPLASH=yes'
9400 else
9401 ac_cv_use_splash='wxUSE_SPLASH=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9414
9415fi;
9416
9417 eval "$ac_cv_use_splash"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_SPLASH" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-textdlg or --disable-textdlg was given.
9436if test "${enable_textdlg+set}" = set; then
9437 enableval="$enable_textdlg"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9441 else
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9455
9456fi;
9457
9458 eval "$ac_cv_use_textdlg"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TEXTDLG" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9477if test "${enable_tipdlg+set}" = set; then
9478 enableval="$enable_tipdlg"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9482 else
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9496
9497fi;
9498
9499 eval "$ac_cv_use_tipdlg"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_STARTUP_TIPS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9518if test "${enable_progressdlg+set}" = set; then
9519 enableval="$enable_progressdlg"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9523 else
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9537
9538fi;
9539
9540 eval "$ac_cv_use_progressdlg"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PROGRESSDLG" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9559if test "${enable_wizarddlg+set}" = set; then
9560 enableval="$enable_wizarddlg"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9564 else
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9578
9579fi;
9580
9581 eval "$ac_cv_use_wizarddlg"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_WIZARDDLG" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-menus or --disable-menus was given.
9602if test "${enable_menus+set}" = set; then
9603 enableval="$enable_menus"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_menus='wxUSE_MENUS=yes'
9607 else
9608 ac_cv_use_menus='wxUSE_MENUS=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9621
9622fi;
9623
9624 eval "$ac_cv_use_menus"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_MENUS" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-miniframe or --disable-miniframe was given.
9643if test "${enable_miniframe+set}" = set; then
9644 enableval="$enable_miniframe"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9648 else
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9662
9663fi;
9664
9665 eval "$ac_cv_use_miniframe"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_MINIFRAME" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-tooltips or --disable-tooltips was given.
9684if test "${enable_tooltips+set}" = set; then
9685 enableval="$enable_tooltips"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9689 else
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9703
9704fi;
9705
9706 eval "$ac_cv_use_tooltips"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TOOLTIPS" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-splines or --disable-splines was given.
9725if test "${enable_splines+set}" = set; then
9726 enableval="$enable_splines"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_splines='wxUSE_SPLINES=yes'
9730 else
9731 ac_cv_use_splines='wxUSE_SPLINES=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9744
9745fi;
9746
9747 eval "$ac_cv_use_splines"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_SPLINES" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
fbe2ca43
SN
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9766if test "${enable_mousewheel+set}" = set; then
9767 enableval="$enable_mousewheel"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9771 else
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9785
9786fi;
9787
9788 eval "$ac_cv_use_mousewheel"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_MOUSEWHEEL" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
a848cd7e
SC
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-validators or --disable-validators was given.
9807if test "${enable_validators+set}" = set; then
9808 enableval="$enable_validators"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9812 else
9813 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9826
9827fi;
9828
9829 eval "$ac_cv_use_validators"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_VALIDATORS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9848if test "${enable_busyinfo+set}" = set; then
9849 enableval="$enable_busyinfo"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9853 else
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9867
9868fi;
9869
9870 eval "$ac_cv_use_busyinfo"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_BUSYINFO" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-joystick or --disable-joystick was given.
9889if test "${enable_joystick+set}" = set; then
9890 enableval="$enable_joystick"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9894 else
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9908
9909fi;
9910
9911 eval "$ac_cv_use_joystick"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_JOYSTICK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-metafile or --disable-metafile was given.
9930if test "${enable_metafile+set}" = set; then
9931 enableval="$enable_metafile"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9935 else
9936 ac_cv_use_metafile='wxUSE_METAFILE=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9949
9950fi;
9951
9952 eval "$ac_cv_use_metafile"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_METAFILE" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-dragimage or --disable-dragimage was given.
9971if test "${enable_dragimage+set}" = set; then
9972 enableval="$enable_dragimage"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9976 else
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9990
9991fi;
9992
9993 eval "$ac_cv_use_dragimage"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_DRAGIMAGE" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-accessibility or --disable-accessibility was given.
10012if test "${enable_accessibility+set}" = set; then
10013 enableval="$enable_accessibility"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10017 else
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10031
10032fi;
10033
10034 eval "$ac_cv_use_accessibility"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ACCESSIBILITY" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
38b4a946
VZ
10048if test "$wxUSE_MSW" = "1"; then
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dccache or --disable-dccache was given.
10055if test "${enable_dccache+set}" = set; then
10056 enableval="$enable_dccache"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10060 else
10061 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10074
10075fi;
10076
10077 eval "$ac_cv_use_dccache"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DC_CACHEING" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090fi
10091
a848cd7e
SC
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-palette or --disable-palette was given.
10099if test "${enable_palette+set}" = set; then
10100 enableval="$enable_palette"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_palette='wxUSE_PALETTE=yes'
10104 else
10105 ac_cv_use_palette='wxUSE_PALETTE=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10118
10119fi;
10120
10121 eval "$ac_cv_use_palette"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_PALETTE" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-image or --disable-image was given.
10140if test "${enable_image+set}" = set; then
10141 enableval="$enable_image"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_image='wxUSE_IMAGE=yes'
10145 else
10146 ac_cv_use_image='wxUSE_IMAGE=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10159
10160fi;
10161
10162 eval "$ac_cv_use_image"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_IMAGE" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-gif or --disable-gif was given.
10181if test "${enable_gif+set}" = set; then
10182 enableval="$enable_gif"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_gif='wxUSE_GIF=yes'
10186 else
10187 ac_cv_use_gif='wxUSE_GIF=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10200
10201fi;
10202
10203 eval "$ac_cv_use_gif"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_GIF" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-pcx or --disable-pcx was given.
10222if test "${enable_pcx+set}" = set; then
10223 enableval="$enable_pcx"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_pcx='wxUSE_PCX=yes'
10227 else
10228 ac_cv_use_pcx='wxUSE_PCX=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10241
10242fi;
10243
10244 eval "$ac_cv_use_pcx"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_PCX" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-iff or --disable-iff was given.
10263if test "${enable_iff+set}" = set; then
10264 enableval="$enable_iff"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_iff='wxUSE_IFF=yes'
10268 else
10269 ac_cv_use_iff='wxUSE_IFF=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10282
10283fi;
10284
10285 eval "$ac_cv_use_iff"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_IFF" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-pnm or --disable-pnm was given.
10304if test "${enable_pnm+set}" = set; then
10305 enableval="$enable_pnm"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_pnm='wxUSE_PNM=yes'
10309 else
10310 ac_cv_use_pnm='wxUSE_PNM=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10323
10324fi;
10325
10326 eval "$ac_cv_use_pnm"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_PNM" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-xpm or --disable-xpm was given.
10345if test "${enable_xpm+set}" = set; then
10346 enableval="$enable_xpm"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_xpm='wxUSE_XPM=yes'
10350 else
10351 ac_cv_use_xpm='wxUSE_XPM=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10364
10365fi;
10366
10367 eval "$ac_cv_use_xpm"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_XPM" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10386if test "${enable_ico_cur+set}" = set; then
10387 enableval="$enable_ico_cur"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10391 else
10392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10405
10406fi;
10407
10408 eval "$ac_cv_use_ico_cur"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_ICO_CUR" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422fi
10423
10424
10425
ceec2216
RL
10426# Check whether --with-flavour or --without-flavour was given.
10427if test "${with_flavour+set}" = set; then
10428 withval="$with_flavour"
10429 WX_FLAVOUR="$withval"
10430fi;
10431
10432
10433
a848cd7e
SC
10434 enablestring=
10435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10437 no_cache=0
10438 # Check whether --enable-official_build or --disable-official_build was given.
10439if test "${enable_official_build+set}" = set; then
10440 enableval="$enable_official_build"
10441
10442 if test "$enableval" = yes; then
10443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10444 else
10445 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10446 fi
10447
10448else
10449
10450 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10451 if test "x$LINE" != x ; then
10452 eval "DEFAULT_$LINE"
10453 else
10454 no_cache=1
10455 fi
10456
10457 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10458
10459fi;
10460
10461 eval "$ac_cv_use_official_build"
10462 if test "$no_cache" != 1; then
10463 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10464 fi
10465
10466 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 else
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472 fi
10473
10474# Check whether --enable-vendor or --disable-vendor was given.
10475if test "${enable_vendor+set}" = set; then
10476 enableval="$enable_vendor"
10477 VENDOR="$enableval"
10478fi;
10479if test "x$VENDOR" = "x"; then
10480 VENDOR="custom"
10481fi
10482
a848cd7e
SC
10483
10484
10485
10486 echo "saving argument cache $wx_arg_cache_file"
10487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10488
10489
10490
10491echo "$as_me:$LINENO: checking for toolkit" >&5
10492echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10493
10494# In Wine, we need to default to MSW, not GTK or MOTIF
10495if test "$wxUSE_WINE" = "yes"; then
10496 DEFAULT_DEFAULT_wxUSE_GTK=0
10497 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10498 DEFAULT_DEFAULT_wxUSE_MSW=1
10499 wxUSE_SHARED=no
10500fi
10501
f597b41c 10502
a848cd7e
SC
10503if test "$wxUSE_GUI" = "yes"; then
10504
10505 if test "$USE_BEOS" = 1; then
10506 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10507echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511 if test "$TOOLKIT_GIVEN" = 1; then
10512 for toolkit in `echo $ALL_TOOLKITS`; do
10513 var=wxUSE_$toolkit
10514 eval "value=\$${var}"
f34ca037
MW
10515 if test "x$value" = "xno"; then
10516 eval "$var=0"
10517 elif test "x$value" != "x"; then
10518 eval "$var=1"
10519 fi
10520
10521 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10522 eval "wx${toolkit}_VERSION=$value"
10523 fi
a848cd7e
SC
10524 done
10525 else
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 if test "$has_toolkit_in_cache" != 1; then
10528 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10529 else
10530 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10531
10532 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10533 if test "x$version" != "x"; then
10534 eval "wx${toolkit}_VERSION=$version"
10535 fi
a848cd7e
SC
10536 fi
10537 eval "wxUSE_$toolkit=\$${var}"
10538 done
10539 fi
10540
10541 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10542 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10543 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10544
10545 case "${host}" in
10546 *-pc-os2_emx | *-pc-os2-emx )
10547 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10548 esac
10549
10550 case "$NUM_TOOLKITS" in
10551 1)
10552 ;;
10553 0)
10554 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10555echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10556 { (exit 1); exit 1; }; }
10557 ;;
10558 *)
10559 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10560echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10561 { (exit 1); exit 1; }; }
10562 esac
10563
f34ca037
MW
10564 # to be removed when --disable-gtk2 isn't needed
10565 if test "x$wxUSE_GTK2" = "xyes"; then
10566 wxGTK_VERSION=2
10567 elif test "x$wxUSE_GTK2" = "xno"; then
10568 wxGTK_VERSION=1
10569 fi
10570
a848cd7e
SC
10571 for toolkit in `echo $ALL_TOOLKITS`; do
10572 var=wxUSE_$toolkit
10573 eval "value=\$${var}"
10574 if test "x$value" != x; then
10575 cache_var=CACHE_$toolkit
10576 eval "cache=\$${cache_var}"
10577 if test "$cache" = 1; then
10578 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10579 eval "version=\$wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10582 fi
a848cd7e
SC
10583 fi
10584 if test "$value" = 1; then
10585 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10586 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10587echo "${ECHO_T}$toolkit_echo" >&6
10588 fi
10589 fi
10590 done
10591else
10592 if test "x$host_alias" != "x"; then
10593 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10594echo "${ECHO_T}base ($host_alias hosted) only" >&6
10595 else
10596 echo "$as_me:$LINENO: result: base only" >&5
10597echo "${ECHO_T}base only" >&6
10598 fi
10599fi
10600
10601wants_win32=0
10602doesnt_want_win32=0
10603case "${host}" in
10604 *-*-cygwin*)
10605 if test "$wxUSE_MSW" = 1 ; then
10606 wants_win32=1
7275146d 10607 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10608 else
10609 doesnt_want_win32=1
10610 fi
10611 ;;
10612 *-*-mingw*)
10613 wants_win32=1
10614 ;;
10615esac
10616
10617if test "$wxUSE_WINE" = "yes"; then
10618 wants_win32=1
10619 CC=winegcc
10620 CXX=wineg++
10621 RESCOMP=wrc
10622 LDFLAGS_GUI="-mwindows"
10623fi
10624
10625if test "$wants_win32" = 1 ; then
10626 USE_UNIX=0
10627 USE_WIN32=1
10628 cat >>confdefs.h <<\_ACEOF
10629#define __WIN32__ 1
10630_ACEOF
10631
10632 cat >>confdefs.h <<\_ACEOF
10633#define __WIN95__ 1
10634_ACEOF
10635
10636 cat >>confdefs.h <<\_ACEOF
10637#define __WINDOWS__ 1
10638_ACEOF
10639
10640 cat >>confdefs.h <<\_ACEOF
10641#define __GNUWIN32__ 1
10642_ACEOF
10643
10644 cat >>confdefs.h <<\_ACEOF
10645#define STRICT 1
10646_ACEOF
10647
10648 cat >>confdefs.h <<\_ACEOF
10649#define WINVER 0x0400
10650_ACEOF
10651
10652fi
10653if test "$doesnt_want_win32" = 1 ; then
10654 USE_UNIX=1
10655 USE_WIN32=0
10656fi
10657
10658if test "$USE_UNIX" = 1 ; then
10659 wxUSE_UNIX=yes
10660 cat >>confdefs.h <<\_ACEOF
10661#define __UNIX__ 1
10662_ACEOF
10663
10664fi
10665
10666
10667cat >confcache <<\_ACEOF
10668# This file is a shell script that caches the results of configure
10669# tests run on this system so they can be shared between configure
10670# scripts and configure runs, see configure's option --config-cache.
10671# It is not useful on other systems. If it contains results you don't
10672# want to keep, you may remove or edit it.
10673#
10674# config.status only pays attention to the cache file if you give it
10675# the --recheck option to rerun configure.
10676#
10677# `ac_cv_env_foo' variables (set or unset) will be overridden when
10678# loading this file, other *unset* `ac_cv_foo' will be assigned the
10679# following values.
10680
10681_ACEOF
10682
10683# The following way of writing the cache mishandles newlines in values,
10684# but we know of no workaround that is simple, portable, and efficient.
10685# So, don't put newlines in cache variables' values.
10686# Ultrix sh set writes to stderr and can't be redirected directly,
10687# and sets the high bit in the cache file unless we assign to the vars.
10688{
10689 (set) 2>&1 |
10690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10691 *ac_space=\ *)
10692 # `set' does not quote correctly, so add quotes (double-quote
10693 # substitution turns \\\\ into \\, and sed turns \\ into \).
10694 sed -n \
ac1cb8d3
VS
10695 "s/'/'\\\\''/g;
10696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10697 ;;
10698 *)
10699 # `set' quotes correctly as required by POSIX, so do not add quotes.
10700 sed -n \
ac1cb8d3 10701 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10702 ;;
10703 esac;
10704} |
10705 sed '
10706 t clear
10707 : clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 : end' >>confcache
10712if diff $cache_file confcache >/dev/null 2>&1; then :; else
10713 if test -w $cache_file; then
10714 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10715 cat confcache >$cache_file
10716 else
10717 echo "not updating unwritable cache $cache_file"
10718 fi
10719fi
10720rm -f confcache
10721
10722if test "$build" != "$host" ; then
1e9e8aba 10723 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10724 CC=$host_alias-gcc
10725 CXX=$host_alias-c++
10726 AR=$host_alias-ar
10727 RANLIB=$host_alias-ranlib
10728 DLLTOOL=$host_alias-dlltool
10729 RESCOMP=$host_alias-windres
a848cd7e 10730 STRIP=$host_alias-strip
1e9e8aba
DE
10731 elif test "x$CC" '!=' "x"; then
10732 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10733 else
10734 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10735echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738fi
10739
10740CFLAGS=${CFLAGS:=}
6dcfc289
DE
10741
10742
10743 ac_ext=c
a848cd7e
SC
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751echo "$as_me:$LINENO: checking for $ac_word" >&5
10752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10753if test "${ac_cv_prog_CC+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 if test -n "$CC"; then
10757 ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
10773fi
10774fi
10775CC=$ac_cv_prog_CC
10776if test -n "$CC"; then
10777 echo "$as_me:$LINENO: result: $CC" >&5
10778echo "${ECHO_T}$CC" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782fi
10783
10784fi
10785if test -z "$ac_cv_prog_CC"; then
10786 ac_ct_CC=$CC
10787 # Extract the first word of "gcc", so it can be a program name with args.
10788set dummy gcc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$ac_ct_CC"; then
10795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_ac_ct_CC="gcc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813ac_ct_CC=$ac_cv_prog_ac_ct_CC
10814if test -n "$ac_ct_CC"; then
10815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10816echo "${ECHO_T}$ac_ct_CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822 CC=$ac_ct_CC
10823else
10824 CC="$ac_cv_prog_CC"
10825fi
10826
10827if test -z "$CC"; then
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10830set dummy ${ac_tool_prefix}cc; ac_word=$2
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_CC+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 if test -n "$CC"; then
10837 ac_cv_prog_CC="$CC" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_CC="${ac_tool_prefix}cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853fi
10854fi
10855CC=$ac_cv_prog_CC
10856if test -n "$CC"; then
10857 echo "$as_me:$LINENO: result: $CC" >&5
10858echo "${ECHO_T}$CC" >&6
10859else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862fi
10863
10864fi
10865if test -z "$ac_cv_prog_CC"; then
10866 ac_ct_CC=$CC
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$ac_ct_CC"; then
10875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_ac_ct_CC="cc"
10885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889done
10890
10891fi
10892fi
10893ac_ct_CC=$ac_cv_prog_ac_ct_CC
10894if test -n "$ac_ct_CC"; then
10895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10896echo "${ECHO_T}$ac_ct_CC" >&6
10897else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902 CC=$ac_ct_CC
10903else
10904 CC="$ac_cv_prog_CC"
10905fi
10906
10907fi
10908if test -z "$CC"; then
10909 # Extract the first word of "cc", so it can be a program name with args.
10910set dummy cc; ac_word=$2
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_CC+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 if test -n "$CC"; then
10917 ac_cv_prog_CC="$CC" # Let the user override the test.
10918else
10919 ac_prog_rejected=no
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10928 ac_prog_rejected=yes
10929 continue
10930 fi
10931 ac_cv_prog_CC="cc"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935done
10936done
10937
10938if test $ac_prog_rejected = yes; then
10939 # We found a bogon in the path, so make sure we never use it.
10940 set dummy $ac_cv_prog_CC
10941 shift
10942 if test $# != 0; then
10943 # We chose a different compiler from the bogus one.
10944 # However, it has the same basename, so the bogon will be chosen
10945 # first if we set CC to just the basename; use the full file name.
10946 shift
10947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10948 fi
10949fi
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961fi
10962if test -z "$CC"; then
10963 if test -n "$ac_tool_prefix"; then
10964 for ac_prog in cl
10965 do
10966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$CC"; then
10974 ac_cv_prog_CC="$CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992CC=$ac_cv_prog_CC
10993if test -n "$CC"; then
10994 echo "$as_me:$LINENO: result: $CC" >&5
10995echo "${ECHO_T}$CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$CC" && break
11002 done
11003fi
11004if test -z "$CC"; then
11005 ac_ct_CC=$CC
11006 for ac_prog in cl
11007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$ac_ct_CC"; then
11016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_ac_ct_CC="$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034ac_ct_CC=$ac_cv_prog_ac_ct_CC
11035if test -n "$ac_ct_CC"; then
11036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11037echo "${ECHO_T}$ac_ct_CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 test -n "$ac_ct_CC" && break
11044done
11045
11046 CC=$ac_ct_CC
11047fi
11048
11049fi
11050
11051
11052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11053See \`config.log' for more details." >&5
11054echo "$as_me: error: no acceptable C compiler found in \$PATH
11055See \`config.log' for more details." >&2;}
11056 { (exit 1); exit 1; }; }
11057
11058# Provide some information about the compiler.
11059echo "$as_me:$LINENO:" \
11060 "checking for C compiler version" >&5
11061ac_compiler=`set X $ac_compile; echo $2`
11062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11063 (eval $ac_compiler --version </dev/null >&5) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }
11067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11068 (eval $ac_compiler -v </dev/null >&5) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11073 (eval $ac_compiler -V </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files a.out a.exe b.out"
11095# Try to create an executable without -o first, disregard a.out.
11096# It will help us diagnose broken compilers, and finding out an intuition
11097# of exeext.
ac1cb8d3
VS
11098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11102 (eval $ac_link_default) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Find the output, starting from the most likely. This scheme is
11107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11108# resort.
11109
11110# Be careful to initialize this variable, since it used to be cached.
11111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11112ac_cv_exeext=
11113# b.out is created by i960 compilers.
11114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11115do
11116 test -f "$ac_file" || continue
11117 case $ac_file in
11118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11119 ;;
a848cd7e 11120 conftest.$ac_ext )
ac1cb8d3
VS
11121 # This is the source file.
11122 ;;
a848cd7e 11123 [ab].out )
ac1cb8d3
VS
11124 # We found the default executable, but exeext='' is most
11125 # certainly right.
11126 break;;
a848cd7e 11127 *.* )
ac1cb8d3
VS
11128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11129 # FIXME: I believe we export ac_cv_exeext for Libtool,
11130 # but it would be cool to find out if it's true. Does anybody
11131 # maintain Libtool? --akim.
11132 export ac_cv_exeext
11133 break;;
a848cd7e 11134 * )
ac1cb8d3 11135 break;;
a848cd7e
SC
11136 esac
11137done
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11143See \`config.log' for more details." >&5
11144echo "$as_me: error: C compiler cannot create executables
11145See \`config.log' for more details." >&2;}
11146 { (exit 77); exit 77; }; }
11147fi
11148
11149ac_exeext=$ac_cv_exeext
11150echo "$as_me:$LINENO: result: $ac_file" >&5
11151echo "${ECHO_T}$ac_file" >&6
11152
11153# Check the compiler produces executables we can run. If not, either
11154# the compiler is broken, or we cross compile.
11155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11158# If not cross compiling, check that we can run a simple program.
11159if test "$cross_compiling" != yes; then
11160 if { ac_try='./$ac_file'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cross_compiling=no
11167 else
11168 if test "$cross_compiling" = maybe; then
11169 cross_compiling=yes
11170 else
11171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11172If you meant to cross compile, use \`--host'.
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot run C compiled programs.
11175If you meant to cross compile, use \`--host'.
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: yes" >&5
11182echo "${ECHO_T}yes" >&6
11183
11184rm -f a.out a.exe conftest$ac_cv_exeext b.out
11185ac_clean_files=$ac_clean_files_save
11186# Check the compiler produces executables we can run. If not, either
11187# the compiler is broken, or we cross compile.
11188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11190echo "$as_me:$LINENO: result: $cross_compiling" >&5
11191echo "${ECHO_T}$cross_compiling" >&6
11192
11193echo "$as_me:$LINENO: checking for suffix of executables" >&5
11194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; then
11200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11202# work properly (i.e., refer to `conftest.exe'), while it won't with
11203# `rm'.
11204for ac_file in conftest.exe conftest conftest.*; do
11205 test -f "$ac_file" || continue
11206 case $ac_file in
11207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11209 export ac_cv_exeext
11210 break;;
a848cd7e
SC
11211 * ) break;;
11212 esac
11213done
11214else
11215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11216See \`config.log' for more details." >&5
11217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11218See \`config.log' for more details." >&2;}
11219 { (exit 1); exit 1; }; }
11220fi
11221
11222rm -f conftest$ac_cv_exeext
11223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11224echo "${ECHO_T}$ac_cv_exeext" >&6
11225
11226rm -f conftest.$ac_ext
11227EXEEXT=$ac_cv_exeext
11228ac_exeext=$EXEEXT
11229echo "$as_me:$LINENO: checking for suffix of object files" >&5
11230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11231if test "${ac_cv_objext+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.o conftest.obj
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; then
11255 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11256 case $ac_file in
11257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11259 break;;
11260 esac
11261done
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11267See \`config.log' for more details." >&5
11268echo "$as_me: error: cannot compute suffix of object files: cannot compile
11269See \`config.log' for more details." >&2;}
11270 { (exit 1); exit 1; }; }
11271fi
11272
11273rm -f conftest.$ac_cv_objext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11276echo "${ECHO_T}$ac_cv_objext" >&6
11277OBJEXT=$ac_cv_objext
11278ac_objext=$OBJEXT
11279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11281if test "${ac_cv_c_compiler_gnu+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291int
11292main ()
11293{
11294#ifndef __GNUC__
11295 choke me
11296#endif
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11304 (eval $ac_compile) 2>conftest.er1
a848cd7e 11305 ac_status=$?
ac1cb8d3
VS
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
a848cd7e
SC
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
6ebeb4c7 11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_compiler_gnu=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328ac_compiler_gnu=no
11329fi
ac1cb8d3 11330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11331ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332
11333fi
11334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11336GCC=`test $ac_compiler_gnu = yes && echo yes`
11337ac_test_CFLAGS=${CFLAGS+set}
11338ac_save_CFLAGS=$CFLAGS
efdf6afe 11339CFLAGS="-g"
a848cd7e
SC
11340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11342if test "${ac_cv_prog_cc_g+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352int
11353main ()
11354{
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11362 (eval $ac_compile) 2>conftest.er1
a848cd7e 11363 ac_status=$?
ac1cb8d3
VS
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
a848cd7e
SC
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
6ebeb4c7 11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_prog_cc_g=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386ac_cv_prog_cc_g=no
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11392if test "$ac_test_CFLAGS" = set; then
11393 CFLAGS=$ac_save_CFLAGS
11394elif test $ac_cv_prog_cc_g = yes; then
11395 if test "$GCC" = yes; then
11396 CFLAGS="-g -O2"
11397 else
11398 CFLAGS="-g"
11399 fi
11400else
11401 if test "$GCC" = yes; then
11402 CFLAGS="-O2"
11403 else
11404 CFLAGS=
11405 fi
11406fi
11407echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11408echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11409if test "${ac_cv_prog_cc_stdc+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_cv_prog_cc_stdc=no
11413ac_save_CC=$CC
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdarg.h>
11421#include <stdio.h>
11422#include <sys/types.h>
11423#include <sys/stat.h>
11424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11425struct buf { int x; };
11426FILE * (*rcsopen) (struct buf *, struct stat *, int);
11427static char *e (p, i)
11428 char **p;
11429 int i;
11430{
11431 return p[i];
11432}
11433static char *f (char * (*g) (char **, int), char **p, ...)
11434{
11435 char *s;
11436 va_list v;
11437 va_start (v,p);
11438 s = g (p, va_arg (v,int));
11439 va_end (v);
11440 return s;
11441}
ac1cb8d3
VS
11442
11443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11444 function prototypes and stuff, but not '\xHH' hex character constants.
11445 These don't provoke an error unfortunately, instead are silently treated
11446 as 'x'. The following induces an error, until -std1 is added to get
11447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11448 array size at least. It's necessary to write '\x00'==0 to get something
11449 that's true only with -std1. */
11450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11451
a848cd7e
SC
11452int test (int i, double x);
11453struct s1 {int (*f) (int a);};
11454struct s2 {int (*f) (double a);};
11455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11456int argc;
11457char **argv;
11458int
11459main ()
11460{
11461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466# Don't try gcc -ansi; that turns off useful extensions and
11467# breaks some systems' header files.
11468# AIX -qlanglvl=ansi
11469# Ultrix and OSF/1 -std1
11470# HP-UX 10.20 and later -Ae
11471# HP-UX older versions -Aa -D_HPUX_SOURCE
11472# SVR4 -Xc -D__EXTENSIONS__
11473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11474do
11475 CC="$ac_save_CC $ac_arg"
11476 rm -f conftest.$ac_objext
11477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11478 (eval $ac_compile) 2>conftest.er1
a848cd7e 11479 ac_status=$?
ac1cb8d3
VS
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
a848cd7e
SC
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
6ebeb4c7 11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_prog_cc_stdc=$ac_arg
11498break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
ac1cb8d3 11504rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11505done
11506rm -f conftest.$ac_ext conftest.$ac_objext
11507CC=$ac_save_CC
11508
11509fi
11510
11511case "x$ac_cv_prog_cc_stdc" in
11512 x|xno)
11513 echo "$as_me:$LINENO: result: none needed" >&5
11514echo "${ECHO_T}none needed" >&6 ;;
11515 *)
11516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11518 CC="$CC $ac_cv_prog_cc_stdc" ;;
11519esac
11520
11521# Some people use a C++ compiler to compile C. Since we use `exit',
11522# in C++ we need to declare it. In case someone uses the same compiler
11523# for both compiling C and C++ we need to have the C++ compiler decide
11524# the declaration of exit, since it's the most demanding environment.
11525cat >conftest.$ac_ext <<_ACEOF
11526#ifndef __cplusplus
11527 choke me
11528#endif
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 for ac_declaration in \
ac1cb8d3 11552 '' \
a848cd7e
SC
11553 'extern "C" void std::exit (int) throw (); using std::exit;' \
11554 'extern "C" void std::exit (int); using std::exit;' \
11555 'extern "C" void exit (int) throw ();' \
11556 'extern "C" void exit (int);' \
11557 'void exit (int);'
11558do
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
de59c161 11565$ac_declaration
ac1cb8d3 11566#include <stdlib.h>
a848cd7e
SC
11567int
11568main ()
11569{
11570exit (42);
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11577 (eval $ac_compile) 2>conftest.er1
a848cd7e 11578 ac_status=$?
ac1cb8d3
VS
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
a848cd7e
SC
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
6ebeb4c7 11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601continue
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_declaration
11611int
11612main ()
11613{
11614exit (42);
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11621 (eval $ac_compile) 2>conftest.er1
a848cd7e 11622 ac_status=$?
ac1cb8d3
VS
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
a848cd7e
SC
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
6ebeb4c7 11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 break
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647done
11648rm -f conftest*
11649if test -n "$ac_declaration"; then
11650 echo '#ifdef __cplusplus' >>confdefs.h
11651 echo $ac_declaration >>confdefs.h
11652 echo '#endif' >>confdefs.h
11653fi
11654
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
ac1cb8d3 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
6dcfc289 11667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11669if test "${wx_cv_c_exto+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679int
11680main ()
11681{
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest.$ac_ext.o
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; then
11693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11694 case $ac_file in
11695 conftest.$ac_ext.o)
11696 wx_cv_c_exto="-ext o"
11697 ;;
11698 *)
11699 ;;
11700 esac
11701done
11702else
11703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11706See \`config.log' for more details." >&2;}
11707 { (exit 1); exit 1; }; }
11708
11709fi
11710
11711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11715echo "${ECHO_T}$wx_cv_c_exto" >&6
11716if test "x$wx_cv_c_exto" '!=' "x"; then
11717 if test "c" = "c"; then
11718 CFLAGS="$wx_cv_c_exto $CFLAGS"
11719 fi
11720 if test "c" = "cxx"; then
11721 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11722 fi
11723fi
11724
6dcfc289
DE
11725 if test "x$wx_cv_c_exto" '!=' "x"; then
11726 unset ac_cv_prog_cc_g
11727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11728ac_save_CFLAGS=$CFLAGS
efdf6afe 11729CFLAGS="-g"
480ccd21
DE
11730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11732if test "${ac_cv_prog_cc_g+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
6ebeb4c7 11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_prog_cc_g=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_prog_cc_g=no
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11782if test "$ac_test_CFLAGS" = set; then
11783 CFLAGS=$ac_save_CFLAGS
11784elif test $ac_cv_prog_cc_g = yes; then
11785 if test "$GCC" = yes; then
11786 CFLAGS="-g -O2"
11787 else
11788 CFLAGS="-g"
11789 fi
11790else
11791 if test "$GCC" = yes; then
11792 CFLAGS="-O2"
11793 else
11794 CFLAGS=
11795 fi
11796fi
6dcfc289
DE
11797 fi
11798 ac_ext=c
95986553
DE
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11805echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11806if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819#ifndef __MWERKS__
11820 choke me
11821#endif
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
6ebeb4c7 11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_compiler_mwerks=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_compiler_mwerks=no
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11857
11858fi
11859echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11860echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11861
0e6fa1d9 11862MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11863ac_ext=c
11864ac_cpp='$CPP $CPPFLAGS'
11865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869
6dcfc289 11870 ac_ext=c
9273ffba
DE
11871ac_cpp='$CPP $CPPFLAGS'
11872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11877echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11878if test "${wx_cv_c_compiler_xlc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888int
11889main ()
11890{
11891#ifndef __xlC__
11892 choke me
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
6ebeb4c7 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 wx_compiler_xlc=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925wx_compiler_xlc=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11929
11930fi
11931echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11932echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11933
0e6fa1d9 11934XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11935ac_ext=c
11936ac_cpp='$CPP $CPPFLAGS'
11937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
11941
a848cd7e 11942
6dcfc289 11943
a9e5b1f0
MW
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11951echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11952if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
11962int
11963main ()
11964{
11965
11966 #ifndef __SUNPRO_C
11967 choke me
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
6ebeb4c7 11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 bakefile_cv_c_compiler___SUNPRO_C=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000bakefile_cv_c_compiler___SUNPRO_C=no
12001
12002fi
12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005
12006fi
12007echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12008echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12009 ac_ext=c
12010ac_cpp='$CPP $CPPFLAGS'
12011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
12015 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12016 :; SUNCC=yes
12017 else
12018 :;
12019 fi
12020
12021
12022
12023
a848cd7e
SC
12024ac_ext=c
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12031# On Suns, sometimes $CPP names a directory.
12032if test -n "$CPP" && test -d "$CPP"; then
12033 CPP=
12034fi
12035if test -z "$CPP"; then
12036 if test "${ac_cv_prog_CPP+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 # Double quotes because CPP needs to be expanded
12040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12041 do
12042 ac_preproc_ok=false
12043for ac_c_preproc_warn_flag in '' yes
12044do
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
ac1cb8d3 12062 Syntax error
a848cd7e
SC
12063_ACEOF
12064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } >/dev/null; then
12072 if test -s conftest.err; then
12073 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12075 else
12076 ac_cpp_err=
12077 fi
12078else
12079 ac_cpp_err=yes
12080fi
12081if test -z "$ac_cpp_err"; then
12082 :
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether non-existent headers
12093 # can be detected and how.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12113 else
12114 ac_cpp_err=
12115 fi
12116else
12117 ac_cpp_err=yes
12118fi
12119if test -z "$ac_cpp_err"; then
12120 # Broken: success on invalid input.
12121continue
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then
12136 break
12137fi
12138
12139 done
12140 ac_cv_prog_CPP=$CPP
12141
12142fi
12143 CPP=$ac_cv_prog_CPP
12144else
12145 ac_cv_prog_CPP=$CPP
12146fi
12147echo "$as_me:$LINENO: result: $CPP" >&5
12148echo "${ECHO_T}$CPP" >&6
12149ac_preproc_ok=false
12150for ac_c_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
ac1cb8d3 12169 Syntax error
a848cd7e
SC
12170_ACEOF
12171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } >/dev/null; then
12179 if test -s conftest.err; then
12180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12182 else
12183 ac_cpp_err=
12184 fi
12185else
12186 ac_cpp_err=yes
12187fi
12188if test -z "$ac_cpp_err"; then
12189 :
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 # Broken: fails on valid input.
12195continue
12196fi
12197rm -f conftest.err conftest.$ac_ext
12198
12199 # OK, works on sane cases. Now check whether non-existent headers
12200 # can be detected and how.
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207#include <ac_nonexistent.h>
12208_ACEOF
12209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 # Broken: success on invalid input.
12228continue
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Passes both tests.
12234ac_preproc_ok=:
12235break
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238
12239done
12240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12241rm -f conftest.err conftest.$ac_ext
12242if $ac_preproc_ok; then
12243 :
12244else
12245 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12246See \`config.log' for more details." >&5
12247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12248See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12250fi
12251
12252ac_ext=c
12253ac_cpp='$CPP $CPPFLAGS'
12254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258
12259echo "$as_me:$LINENO: checking for egrep" >&5
12260echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12261if test "${ac_cv_prog_egrep+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12265 then ac_cv_prog_egrep='grep -E'
12266 else ac_cv_prog_egrep='egrep'
12267 fi
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12270echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12271 EGREP=$ac_cv_prog_egrep
12272
12273
12274if test $ac_cv_c_compiler_gnu = yes; then
12275 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12276echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12277if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_pattern="Autoconf.*'x'"
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <sgtty.h>
12288Autoconf TIOCGETP
12289_ACEOF
12290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12292 ac_cv_prog_gcc_traditional=yes
12293else
12294 ac_cv_prog_gcc_traditional=no
12295fi
12296rm -f conftest*
12297
12298
12299 if test $ac_cv_prog_gcc_traditional = no; then
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#include <termio.h>
12307Autoconf TCGETA
12308_ACEOF
12309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12311 ac_cv_prog_gcc_traditional=yes
12312fi
12313rm -f conftest*
12314
12315 fi
12316fi
12317echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12318echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12319 if test $ac_cv_prog_gcc_traditional = yes; then
12320 CC="$CC -traditional"
12321 fi
12322fi
12323
12324
12325
12326
12327ac_ext=cc
12328ac_cpp='$CXXCPP $CPPFLAGS'
12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12332
12333
12334CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12335
12336
12337 ac_ext=cc
a848cd7e
SC
12338ac_cpp='$CXXCPP $CPPFLAGS'
12339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342if test -n "$ac_tool_prefix"; then
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344 do
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$CXX"; then
12353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371CXX=$ac_cv_prog_CXX
12372if test -n "$CXX"; then
12373 echo "$as_me:$LINENO: result: $CXX" >&5
12374echo "${ECHO_T}$CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$CXX" && break
12381 done
12382fi
12383if test -z "$CXX"; then
12384 ac_ct_CXX=$CXX
12385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12386do
12387 # Extract the first word of "$ac_prog", so it can be a program name with args.
12388set dummy $ac_prog; ac_word=$2
12389echo "$as_me:$LINENO: checking for $ac_word" >&5
12390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test -n "$ac_ct_CXX"; then
12395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_prog_ac_ct_CXX="$ac_prog"
12405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410
12411fi
12412fi
12413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12414if test -n "$ac_ct_CXX"; then
12415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12416echo "${ECHO_T}$ac_ct_CXX" >&6
12417else
12418 echo "$as_me:$LINENO: result: no" >&5
12419echo "${ECHO_T}no" >&6
12420fi
12421
12422 test -n "$ac_ct_CXX" && break
12423done
12424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12425
12426 CXX=$ac_ct_CXX
12427fi
12428
12429
12430# Provide some information about the compiler.
12431echo "$as_me:$LINENO:" \
12432 "checking for C++ compiler version" >&5
12433ac_compiler=`set X $ac_compile; echo $2`
12434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12435 (eval $ac_compiler --version </dev/null >&5) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12440 (eval $ac_compiler -v </dev/null >&5) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12445 (eval $ac_compiler -V </dev/null >&5) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }
12449
12450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __GNUC__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
6ebeb4c7 12482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_compiler_gnu=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_compiler_gnu=no
12500fi
ac1cb8d3 12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12507GXX=`test $ac_compiler_gnu = yes && echo yes`
12508ac_test_CXXFLAGS=${CXXFLAGS+set}
12509ac_save_CXXFLAGS=$CXXFLAGS
12510CXXFLAGS="-g"
12511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12513if test "${ac_cv_prog_cxx_g+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12533 (eval $ac_compile) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
6ebeb4c7 12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cxx_g=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_prog_cxx_g=no
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12560fi
12561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12563if test "$ac_test_CXXFLAGS" = set; then
12564 CXXFLAGS=$ac_save_CXXFLAGS
12565elif test $ac_cv_prog_cxx_g = yes; then
12566 if test "$GXX" = yes; then
efdf6afe 12567 CXXFLAGS="-g -O2"
a848cd7e 12568 else
efdf6afe 12569 CXXFLAGS="-g"
a848cd7e
SC
12570 fi
12571else
12572 if test "$GXX" = yes; then
12573 CXXFLAGS="-O2"
12574 else
12575 CXXFLAGS=
12576 fi
12577fi
12578for ac_declaration in \
ac1cb8d3 12579 '' \
a848cd7e
SC
12580 'extern "C" void std::exit (int) throw (); using std::exit;' \
12581 'extern "C" void std::exit (int); using std::exit;' \
12582 'extern "C" void exit (int) throw ();' \
12583 'extern "C" void exit (int);' \
12584 'void exit (int);'
12585do
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
de59c161 12592$ac_declaration
ac1cb8d3 12593#include <stdlib.h>
a848cd7e
SC
12594int
12595main ()
12596{
12597exit (42);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12604 (eval $ac_compile) 2>conftest.er1
a848cd7e 12605 ac_status=$?
ac1cb8d3
VS
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
a848cd7e
SC
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
6ebeb4c7 12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 :
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628continue
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_declaration
12638int
12639main ()
12640{
12641exit (42);
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12648 (eval $ac_compile) 2>conftest.er1
a848cd7e 12649 ac_status=$?
ac1cb8d3
VS
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
a848cd7e
SC
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
6ebeb4c7 12655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 break
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674done
12675rm -f conftest*
12676if test -n "$ac_declaration"; then
12677 echo '#ifdef __cplusplus' >>confdefs.h
12678 echo $ac_declaration >>confdefs.h
12679 echo '#endif' >>confdefs.h
12680fi
12681
12682ac_ext=cc
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
6dcfc289 12688 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12689echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12690if test "${wx_cv_cxx_exto+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext conftest.$ac_ext.o
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12715 case $ac_file in
12716 conftest.$ac_ext.o)
12717 wx_cv_cxx_exto="-ext o"
12718 ;;
12719 *)
12720 ;;
12721 esac
12722done
12723else
12724 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729
12730fi
12731
12732rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12733
12734fi
12735echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12736echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12737if test "x$wx_cv_cxx_exto" '!=' "x"; then
12738 if test "cxx" = "c"; then
12739 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12740 fi
12741 if test "cxx" = "cxx"; then
12742 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12743 fi
12744fi
12745
6dcfc289
DE
12746 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12747 unset ac_cv_prog_cxx_g
12748 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12749ac_save_CXXFLAGS=$CXXFLAGS
12750CXXFLAGS="-g"
12751echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12752echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12753if test "${ac_cv_prog_cxx_g+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763int
12764main ()
12765{
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
6ebeb4c7 12780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_prog_cxx_g=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797ac_cv_prog_cxx_g=no
12798fi
12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12803if test "$ac_test_CXXFLAGS" = set; then
12804 CXXFLAGS=$ac_save_CXXFLAGS
12805elif test $ac_cv_prog_cxx_g = yes; then
12806 if test "$GXX" = yes; then
efdf6afe 12807 CXXFLAGS="-g -O2"
480ccd21 12808 else
efdf6afe 12809 CXXFLAGS="-g"
480ccd21
DE
12810 fi
12811else
12812 if test "$GXX" = yes; then
12813 CXXFLAGS="-O2"
12814 else
12815 CXXFLAGS=
12816 fi
12817fi
6dcfc289
DE
12818 fi
12819 ac_ext=cc
95986553
DE
12820ac_cpp='$CXXCPP $CPPFLAGS'
12821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12824
12825echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12826echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12827if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837int
12838main ()
12839{
12840#ifndef __MWERKS__
12841 choke me
12842#endif
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
6ebeb4c7 12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bakefile_compiler_mwerks=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874bakefile_compiler_mwerks=no
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12878
12879fi
12880echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12881echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12882
0e6fa1d9 12883MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12884ac_ext=cc
12885ac_cpp='$CXXCPP $CPPFLAGS'
12886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889
12890
6dcfc289 12891 ac_ext=cc
9273ffba
DE
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896
12897echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12898echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12899if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909int
12910main ()
12911{
12912#ifndef __xlC__
12913 choke me
12914#endif
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
6ebeb4c7 12929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 wx_compiler_xlc=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946wx_compiler_xlc=no
12947fi
12948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12950
12951fi
12952echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12953echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12954
0e6fa1d9 12955XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12956ac_ext=cc
12957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961
12962
95986553 12963
6dcfc289 12964
a9e5b1f0
MW
12965 ac_ext=cc
12966ac_cpp='$CXXCPP $CPPFLAGS'
12967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970
12971 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12972echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12973if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983int
12984main ()
12985{
12986
12987 #ifndef __SUNPRO_CC
12988 choke me
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
6ebeb4c7 13004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021bakefile_cv_cxx_compiler___SUNPRO_CC=no
13022
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026
13027fi
13028echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13029echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13030 ac_ext=cc
13031ac_cpp='$CXXCPP $CPPFLAGS'
13032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035
13036 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13037 :; SUNCXX=yes
13038 else
13039 :;
13040 fi
13041
13042
13043
13044
a848cd7e
SC
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
a848cd7e
SC
13052if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_RANLIB+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$RANLIB"; then
13061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
13077fi
13078fi
13079RANLIB=$ac_cv_prog_RANLIB
13080if test -n "$RANLIB"; then
13081 echo "$as_me:$LINENO: result: $RANLIB" >&5
13082echo "${ECHO_T}$RANLIB" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
13088fi
13089if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092set dummy ranlib; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13116fi
13117fi
13118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119if test -n "$ac_ct_RANLIB"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13121echo "${ECHO_T}$ac_ct_RANLIB" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 RANLIB=$ac_ct_RANLIB
13128else
13129 RANLIB="$ac_cv_prog_RANLIB"
13130fi
13131
13132
13133# Extract the first word of "ar", so it can be a program name with args.
13134set dummy ar; ac_word=$2
13135echo "$as_me:$LINENO: checking for $ac_word" >&5
13136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13137if test "${ac_cv_prog_AR+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 if test -n "$AR"; then
13141 ac_cv_prog_AR="$AR" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_AR="ar"
13151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155done
13156
13157fi
13158fi
13159AR=$ac_cv_prog_AR
13160if test -n "$AR"; then
13161 echo "$as_me:$LINENO: result: $AR" >&5
13162echo "${ECHO_T}$AR" >&6
13163else
13164 echo "$as_me:$LINENO: result: no" >&5
13165echo "${ECHO_T}no" >&6
13166fi
13167
13168if test "x$AR" = "x" ; then
77ffb593
JS
13169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13171 { (exit 1); exit 1; }; }
13172fi
13173
13174# Find a good install program. We prefer a C program (faster),
13175# so one script is as good as another. But avoid the broken or
13176# incompatible versions:
13177# SysV /etc/install, /usr/sbin/install
13178# SunOS /usr/etc/install
13179# IRIX /sbin/install
13180# AIX /bin/install
13181# AmigaOS /C/install, which installs bootblocks on floppy discs
13182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13186# ./install, which can be erroneously created by make from ./install.sh.
13187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13189if test -z "$INSTALL"; then
13190if test "${ac_cv_path_install+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 # Account for people who put trailing slashes in PATH elements.
13199case $as_dir/ in
13200 ./ | .// | /cC/* | \
13201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13203 /usr/ucb/* ) ;;
13204 *)
13205 # OSF1 and SCO ODT 3.0 have their own names for install.
13206 # Don't use installbsd from OSF since it installs stuff as root
13207 # by default.
13208 for ac_prog in ginstall scoinst install; do
13209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13211 if test $ac_prog = install &&
13212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13213 # AIX install. It has an incompatible calling convention.
13214 :
13215 elif test $ac_prog = install &&
13216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13217 # program-specific install script used by HP pwplus--don't use.
13218 :
13219 else
13220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13221 break 3
13222 fi
13223 fi
a848cd7e
SC
13224 done
13225 done
13226 ;;
13227esac
13228done
13229
13230
13231fi
13232 if test "${ac_cv_path_install+set}" = set; then
13233 INSTALL=$ac_cv_path_install
13234 else
13235 # As a last resort, use the slow shell script. We don't cache a
13236 # path for INSTALL within a source directory, because that will
13237 # break other packages using the cache if that directory is
13238 # removed, or if the path is relative.
13239 INSTALL=$ac_install_sh
13240 fi
13241fi
13242echo "$as_me:$LINENO: result: $INSTALL" >&5
13243echo "${ECHO_T}$INSTALL" >&6
13244
13245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13246# It thinks the first close brace ends the variable substitution.
13247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13248
13249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13250
13251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13252
13253
13254case ${INSTALL} in
13255 /* ) # Absolute
13256 ;;
13257 ?:* ) # Drive letter, considered as absolute.
13258 ;;
13259 *)
13260 INSTALL=`pwd`/${INSTALL} ;;
13261esac
13262
a848cd7e
SC
13263
13264case "${host}" in
13265
cfda0ea8 13266 *-*-darwin* )
a848cd7e
SC
13267 INSTALL_PROGRAM="cp -fp"
13268 INSTALL_DATA="cp -fp"
13269 ;;
13270 *)
13271 ;;
13272esac
13273
13274# Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_STRIP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_STRIP="strip"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13299fi
13300fi
13301STRIP=$ac_cv_prog_STRIP
13302if test -n "$STRIP"; then
13303 echo "$as_me:$LINENO: result: $STRIP" >&5
13304echo "${ECHO_T}$STRIP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310
13311echo "$as_me:$LINENO: checking if make is GNU make" >&5
13312echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13313if test "${wx_cv_prog_makeisgnu+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316
13317 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13318 egrep -s GNU > /dev/null); then
13319 wx_cv_prog_makeisgnu="yes"
13320 else
13321 wx_cv_prog_makeisgnu="no"
13322 fi
13323
13324fi
13325echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13326echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13327
13328if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13329 IF_GNU_MAKE=""
13330else
13331 IF_GNU_MAKE="#"
13332fi
13333
13334
13335
13336if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13337echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13338echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13339if test "${wx_cv_prog_makevpath+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342
13343cat - << EOF > confMake
13344check : file
13345 cp \$? \$@
13346 cp \$? final_file
13347EOF
13348
13349if test ! -d sub ; then
13350 mkdir sub
13351fi
13352echo dummy > sub/file
13353${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13354RESULT=$?
13355rm -f sub/file check final_file confMake
13356rmdir sub
13357if test "$RESULT" = 0; then
13358 wx_cv_prog_makevpath="yes"
13359else
13360 wx_cv_prog_makevpath="no"
13361fi
13362
13363fi
13364echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13365echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13366
13367if test "x$wx_cv_prog_makevpath" != "xyes"; then
13368{ { echo "$as_me:$LINENO: error:
13369You need a make-utility that is able to use the variable
13370VPATH correctly.
13371If your version of make does not support VPATH correctly,
13372please install GNU-make (possibly as gmake), and start
13373configure with the following command:
13374export MAKE=gmake; ./configure for sh-type shells
13375setenv MAKE gmake; ./configure for csh-type shells
13376Also please do remember to use gmake in this case every time
13377you are trying to compile.
13378" >&5
13379echo "$as_me: error:
13380You need a make-utility that is able to use the variable
13381VPATH correctly.
13382If your version of make does not support VPATH correctly,
13383please install GNU-make (possibly as gmake), and start
13384configure with the following command:
13385export MAKE=gmake; ./configure for sh-type shells
13386setenv MAKE gmake; ./configure for csh-type shells
13387Also please do remember to use gmake in this case every time
13388you are trying to compile.
13389" >&2;}
13390 { (exit 1); exit 1; }; }
13391fi fi
13392echo "$as_me:$LINENO: checking whether ln -s works" >&5
13393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13394LN_S=$as_ln_s
13395if test "$LN_S" = "ln -s"; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397echo "${ECHO_T}yes" >&6
13398else
13399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13400echo "${ECHO_T}no, using $LN_S" >&6
13401fi
13402
13403
13404
2113bc77 13405if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13406 CXXFLAGS="$CXXFLAGS -qunique"
13407fi
13408
13409
4d7ec9f1
DE
13410case "${host}" in
13411 powerpc-*-darwin* )
13412 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13413echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424#ifndef __POWERPC__
13425 choke me for lack of PowerPC
13426#endif
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
6ebeb4c7 13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 echo "$as_me:$LINENO: result: yes" >&5
13454echo "${ECHO_T}yes" >&6
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 cat >>confdefs.h <<\_ACEOF
13462#define __POWERPC__ 1
13463_ACEOF
13464
13465
13466fi
13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13468 ;;
13469esac
13470
13471case "${host}" in
13472 *-*-darwin* )
4d7ec9f1
DE
13473 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13474echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481#include <CoreFoundation/CFBase.h>
13482
13483int
13484main ()
13485{
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
6ebeb4c7 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518echo "$as_me:$LINENO: result: no" >&5
13519echo "${ECHO_T}no" >&6
13520 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13521echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13522 cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528#define __CF_USE_FRAMEWORK_INCLUDES__
13529#include <CoreFoundation/CFBase.h>
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
6ebeb4c7 13548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 echo "$as_me:$LINENO: result: yes" >&5
13561echo "${ECHO_T}yes" >&6
13562 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13568See \`config.log' for more details." >&5
13569echo "$as_me: error: no. CoreFoundation not available.
13570See \`config.log' for more details." >&2;}
13571 { (exit 1); exit 1; }; }
13572
13573fi
13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 ;;
13580esac
13581
a848cd7e
SC
13582case "${host}" in
13583 *-pc-os2_emx | *-pc-os2-emx )
13584 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13585 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13586echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13587if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 ac_check_lib_save_LIBS=$LIBS
13591LIBS="-lcExt $LIBS"
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599/* Override any gcc2 internal prototype to avoid an error. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char drand48 ();
13606int
13607main ()
13608{
13609drand48 ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13616 (eval $ac_link) 2>conftest.er1
a848cd7e 13617 ac_status=$?
ac1cb8d3
VS
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
a848cd7e
SC
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
6ebeb4c7 13623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_lib_cExt_drand48=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640ac_cv_lib_cExt_drand48=no
13641fi
ac1cb8d3
VS
13642rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13644LIBS=$ac_check_lib_save_LIBS
13645fi
13646echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13647echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13648if test $ac_cv_lib_cExt_drand48 = yes; then
13649 LIBS="$LIBS -lcExt"
13650fi
13651
13652 else
13653 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13654 fi
69120ee4
VZ
13655 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13656echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13657if test "${wx_cv_gccversion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660
391a765e
VS
13661 if test "$cross_compiling" = yes; then
13662 wx_cv_gccversion="EMX2"
13663
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671
391a765e 13672 #include <stdio.h>
a848cd7e 13673
391a765e
VS
13674 int main()
13675 {
13676 FILE *f=fopen("conftestval", "w");
13677 if (!f) exit(1);
13678 fprintf(f,
a848cd7e 13679 #if (__GNUC__ < 3)
391a765e
VS
13680 "EMX2"
13681 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13682 "EMX3"
13683 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13684 "Innotek5"
13685 #else
13686 "Innotek6"
a848cd7e 13687 #endif
391a765e
VS
13688 );
13689 exit(0);
13690 }
a848cd7e 13691
a848cd7e 13692_ACEOF
391a765e
VS
13693rm -f conftest$ac_exeext
13694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
ac1cb8d3
VS
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
391a765e 13704 wx_cv_gccversion=`cat conftestval`
a848cd7e 13705else
391a765e
VS
13706 echo "$as_me: program exited with status $ac_status" >&5
13707echo "$as_me: failed program was:" >&5
a848cd7e
SC
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
391a765e
VS
13710( exit $ac_status )
13711wx_cv_gccversion="EMX2"
a848cd7e 13712fi
391a765e 13713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13714fi
a848cd7e
SC
13715
13716fi
13717echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13718echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13719 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13720 LIBS="$LIBS -lstdcpp"
13721 LDFLAGS="$LDFLAGS -Zsysv-signals"
13722 else
391a765e 13723 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13724 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13725 LDFLAGS="$LDFLAGS -Zsysv-signals"
13726 else
13727 LIBS="$LIBS -lstdc++"
13728 fi
13729 fi
94acd38e
DE
13730 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13731 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13732echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13733 wxUSE_OMF=yes
2da0c077 13734 enable_omf=yes
a848cd7e
SC
13735 fi
13736 ;;
13737 *)
13738
13739
13740
13741 ac_ext=cc
13742ac_cpp='$CXXCPP $CPPFLAGS'
13743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13746
13747
95986553 13748 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13749echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13750if test "${ac_cv_string_strcasecmp+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753
13754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760
13761 #include <string.h>
13762
13763int
13764main ()
13765{
13766
13767 strcasecmp("foo", "bar");
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext conftest$ac_exeext
13774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13775 (eval $ac_link) 2>conftest.er1
a848cd7e 13776 ac_status=$?
ac1cb8d3
VS
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
a848cd7e
SC
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
6ebeb4c7 13782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_string_strcasecmp=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_cv_string_strcasecmp=no
13800
13801fi
ac1cb8d3
VS
13802rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13804
13805fi
13806echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13807echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13808
13809 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13810 cat >>confdefs.h <<\_ACEOF
13811#define HAVE_STRCASECMP_IN_STRING_H 1
13812_ACEOF
13813
13814 else
13815 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13816echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13817if test "${ac_cv_strings_strcasecmp+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828 #include <strings.h>
13829
13830int
13831main ()
13832{
13833
13834 strcasecmp("foo", "bar");
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13842 (eval $ac_link) 2>conftest.er1
a848cd7e 13843 ac_status=$?
ac1cb8d3
VS
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
a848cd7e
SC
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
6ebeb4c7 13849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_strings_strcasecmp=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866ac_cv_strings_strcasecmp=no
13867
13868fi
ac1cb8d3
VS
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13871
13872fi
13873echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13874echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13875
0c3c69fc 13876 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13877 cat >>confdefs.h <<\_ACEOF
13878#define HAVE_STRCASECMP_IN_STRINGS_H 1
13879_ACEOF
13880
13881 else
13882 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13883echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13884 { (exit 1); exit 1; }; }
13885 fi
13886 fi
13887
13888 ac_ext=c
13889ac_cpp='$CPP $CPPFLAGS'
13890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893
13894 ;;
13895esac
13896
13897
13898echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13900if test "${ac_cv_header_stdc+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <stdlib.h>
13910#include <stdarg.h>
13911#include <string.h>
13912#include <float.h>
13913
13914int
13915main ()
13916{
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13924 (eval $ac_compile) 2>conftest.er1
a848cd7e 13925 ac_status=$?
ac1cb8d3
VS
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
a848cd7e
SC
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
6ebeb4c7 13931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_header_stdc=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_header_stdc=no
13949fi
ac1cb8d3 13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13951
13952if test $ac_cv_header_stdc = yes; then
13953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960#include <string.h>
13961
13962_ACEOF
13963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "memchr" >/dev/null 2>&1; then
13965 :
13966else
13967 ac_cv_header_stdc=no
13968fi
13969rm -f conftest*
13970
13971fi
13972
13973if test $ac_cv_header_stdc = yes; then
13974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <stdlib.h>
13982
13983_ACEOF
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "free" >/dev/null 2>&1; then
13986 :
13987else
13988 ac_cv_header_stdc=no
13989fi
13990rm -f conftest*
13991
13992fi
13993
13994if test $ac_cv_header_stdc = yes; then
13995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13996 if test "$cross_compiling" = yes; then
13997 :
13998else
13999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005#include <ctype.h>
14006#if ((' ' & 0x0FF) == 0x020)
14007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14009#else
14010# define ISLOWER(c) \
ac1cb8d3
VS
14011 (('a' <= (c) && (c) <= 'i') \
14012 || ('j' <= (c) && (c) <= 'r') \
14013 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14015#endif
14016
14017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14018int
14019main ()
14020{
14021 int i;
14022 for (i = 0; i < 256; i++)
14023 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14024 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14025 exit(2);
14026 exit (0);
14027}
14028_ACEOF
14029rm -f conftest$ac_exeext
14030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
14041else
14042 echo "$as_me: program exited with status $ac_status" >&5
14043echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046( exit $ac_status )
14047ac_cv_header_stdc=no
14048fi
ac1cb8d3 14049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14050fi
14051fi
14052fi
14053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14054echo "${ECHO_T}$ac_cv_header_stdc" >&6
14055if test $ac_cv_header_stdc = yes; then
14056
14057cat >>confdefs.h <<\_ACEOF
14058#define STDC_HEADERS 1
14059_ACEOF
14060
14061fi
14062
14063# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14074 inttypes.h stdint.h unistd.h
a848cd7e
SC
14075do
14076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14077echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
14089
14090#include <$ac_header>
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14094 (eval $ac_compile) 2>conftest.er1
a848cd7e 14095 ac_status=$?
ac1cb8d3
VS
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
a848cd7e
SC
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
6ebeb4c7 14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 eval "$as_ac_Header=yes"
14114else
14115 echo "$as_me: failed program was:" >&5
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
14118eval "$as_ac_Header=no"
14119fi
ac1cb8d3 14120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130
14131done
14132
14133
14134
14135for ac_header in stdlib.h
14136do
14137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146else
14147 # Is the header compilable?
14148echo "$as_me:$LINENO: checking $ac_header usability" >&5
14149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157#include <$ac_header>
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14161 (eval $ac_compile) 2>conftest.er1
a848cd7e 14162 ac_status=$?
ac1cb8d3
VS
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
a848cd7e
SC
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
6ebeb4c7 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
ac1cb8d3 14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
ac1cb8d3
VS
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
a848cd7e
SC
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
a848cd7e 14239 ;;
ac1cb8d3 14240 no:yes:* )
a848cd7e
SC
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14253 (
14254 cat <<\_ASBOX
ac1cb8d3
VS
14255## ----------------------------------------- ##
14256## Report this to wx-dev@lists.wxwidgets.org ##
14257## ----------------------------------------- ##
a848cd7e
SC
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
ac1cb8d3 14268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
14284for ac_header in malloc.h
14285do
14286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo "$as_me:$LINENO: checking for $ac_header" >&5
14289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14290if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292fi
14293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14295else
14296 # Is the header compilable?
14297echo "$as_me:$LINENO: checking $ac_header usability" >&5
14298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14299cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306#include <$ac_header>
14307_ACEOF
14308rm -f conftest.$ac_objext
14309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14310 (eval $ac_compile) 2>conftest.er1
a848cd7e 14311 ac_status=$?
ac1cb8d3
VS
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
a848cd7e
SC
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
6ebeb4c7 14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_header_compiler=yes
14330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_header_compiler=no
14335fi
ac1cb8d3 14336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14338echo "${ECHO_T}$ac_header_compiler" >&6
14339
14340# Is the header present?
14341echo "$as_me:$LINENO: checking $ac_header presence" >&5
14342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14343cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349#include <$ac_header>
14350_ACEOF
14351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev/null; then
14359 if test -s conftest.err; then
14360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14362 else
14363 ac_cpp_err=
14364 fi
14365else
14366 ac_cpp_err=yes
14367fi
14368if test -z "$ac_cpp_err"; then
14369 ac_header_preproc=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_header_preproc=no
14375fi
14376rm -f conftest.err conftest.$ac_ext
14377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14378echo "${ECHO_T}$ac_header_preproc" >&6
14379
14380# So? What about this header?
ac1cb8d3
VS
14381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 yes:no: )
a848cd7e
SC
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14387 ac_header_preproc=yes
a848cd7e 14388 ;;
ac1cb8d3 14389 no:yes:* )
a848cd7e
SC
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14402 (
14403 cat <<\_ASBOX
ac1cb8d3
VS
14404## ----------------------------------------- ##
14405## Report this to wx-dev@lists.wxwidgets.org ##
14406## ----------------------------------------- ##
a848cd7e
SC
14407_ASBOX
14408 ) |
14409 sed "s/^/$as_me: WARNING: /" >&2
14410 ;;
14411esac
14412echo "$as_me:$LINENO: checking for $ac_header" >&5
14413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
ac1cb8d3 14417 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14421
14422fi
14423if test `eval echo '${'$as_ac_Header'}'` = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14426_ACEOF
14427
14428fi
14429
14430done
14431
14432
14433for ac_header in unistd.h
14434do
14435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo "$as_me:$LINENO: checking for $ac_header" >&5
14438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444else
14445 # Is the header compilable?
14446echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <$ac_header>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14459 (eval $ac_compile) 2>conftest.er1
a848cd7e 14460 ac_status=$?
ac1cb8d3
VS
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
a848cd7e
SC
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
6ebeb4c7 14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_header_compiler=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_header_compiler=no
14484fi
ac1cb8d3 14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487echo "${ECHO_T}$ac_header_compiler" >&6
14488
14489# Is the header present?
14490echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
14498#include <$ac_header>
14499_ACEOF
14500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null; then
14508 if test -s conftest.err; then
14509 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14511 else
14512 ac_cpp_err=
14513 fi
14514else
14515 ac_cpp_err=yes
14516fi
14517if test -z "$ac_cpp_err"; then
14518 ac_header_preproc=yes
14519else
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_header_preproc=no
14524fi
14525rm -f conftest.err conftest.$ac_ext
14526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14527echo "${ECHO_T}$ac_header_preproc" >&6
14528
14529# So? What about this header?
ac1cb8d3
VS
14530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 yes:no: )
a848cd7e
SC
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14536 ac_header_preproc=yes
a848cd7e 14537 ;;
ac1cb8d3 14538 no:yes:* )
a848cd7e
SC
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14551 (
14552 cat <<\_ASBOX
ac1cb8d3
VS
14553## ----------------------------------------- ##
14554## Report this to wx-dev@lists.wxwidgets.org ##
14555## ----------------------------------------- ##
a848cd7e
SC
14556_ASBOX
14557 ) |
14558 sed "s/^/$as_me: WARNING: /" >&2
14559 ;;
14560esac
14561echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14563if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
ac1cb8d3 14566 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14567fi
14568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14570
14571fi
14572if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578
14579done
14580
14581
14582for ac_header in wchar.h
14583do
14584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585if eval "test \"\${$as_ac_Header+set}\" = set"; then
14586 echo "$as_me:$LINENO: checking for $ac_header" >&5
14587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14588if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590fi
14591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593else
14594 # Is the header compilable?
14595echo "$as_me:$LINENO: checking $ac_header usability" >&5
14596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14597cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603$ac_includes_default
14604#include <$ac_header>
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14608 (eval $ac_compile) 2>conftest.er1
a848cd7e 14609 ac_status=$?
ac1cb8d3
VS
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
a848cd7e
SC
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
6ebeb4c7 14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_header_compiler=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_header_compiler=no
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14636echo "${ECHO_T}$ac_header_compiler" >&6
14637
14638# Is the header present?
14639echo "$as_me:$LINENO: checking $ac_header presence" >&5
14640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14641cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647#include <$ac_header>
14648_ACEOF
14649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } >/dev/null; then
14657 if test -s conftest.err; then
14658 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14660 else
14661 ac_cpp_err=
14662 fi
14663else
14664 ac_cpp_err=yes
14665fi
14666if test -z "$ac_cpp_err"; then
14667 ac_header_preproc=yes
14668else
14669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_header_preproc=no
14673fi
14674rm -f conftest.err conftest.$ac_ext
14675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676echo "${ECHO_T}$ac_header_preproc" >&6
14677
14678# So? What about this header?
ac1cb8d3
VS
14679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
a848cd7e
SC
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
a848cd7e 14686 ;;
ac1cb8d3 14687 no:yes:* )
a848cd7e
SC
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14700 (
14701 cat <<\_ASBOX
ac1cb8d3
VS
14702## ----------------------------------------- ##
14703## Report this to wx-dev@lists.wxwidgets.org ##
14704## ----------------------------------------- ##
a848cd7e
SC
14705_ASBOX
14706 ) |
14707 sed "s/^/$as_me: WARNING: /" >&2
14708 ;;
14709esac
14710echo "$as_me:$LINENO: checking for $ac_header" >&5
14711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14712if eval "test \"\${$as_ac_Header+set}\" = set"; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
ac1cb8d3 14715 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14716fi
14717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14719
14720fi
14721if test `eval echo '${'$as_ac_Header'}'` = yes; then
14722 cat >>confdefs.h <<_ACEOF
14723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727
14728done
14729
14730
14731if test "$ac_cv_header_wchar_h" != "yes"; then
14732
14733for ac_header in wcstr.h
14734do
14735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14739if eval "test \"\${$as_ac_Header+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741fi
14742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14744else
14745 # Is the header compilable?
14746echo "$as_me:$LINENO: checking $ac_header usability" >&5
14747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14748cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755#include <$ac_header>
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
6ebeb4c7 14766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_header_compiler=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_header_compiler=no
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787echo "${ECHO_T}$ac_header_compiler" >&6
14788
14789# Is the header present?
14790echo "$as_me:$LINENO: checking $ac_header presence" >&5
14791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14792cat >conftest.$ac_ext <<_ACEOF
14793/* confdefs.h. */
14794_ACEOF
14795cat confdefs.h >>conftest.$ac_ext
14796cat >>conftest.$ac_ext <<_ACEOF
14797/* end confdefs.h. */
14798#include <$ac_header>
14799_ACEOF
14800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null; then
14808 if test -s conftest.err; then
14809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14811 else
14812 ac_cpp_err=
14813 fi
14814else
14815 ac_cpp_err=yes
14816fi
14817if test -z "$ac_cpp_err"; then
14818 ac_header_preproc=yes
14819else
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_header_preproc=no
14824fi
14825rm -f conftest.err conftest.$ac_ext
14826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827echo "${ECHO_T}$ac_header_preproc" >&6
14828
14829# So? What about this header?
ac1cb8d3
VS
14830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
a848cd7e
SC
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
a848cd7e 14837 ;;
ac1cb8d3 14838 no:yes:* )
a848cd7e
SC
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14851 (
14852 cat <<\_ASBOX
ac1cb8d3
VS
14853## ----------------------------------------- ##
14854## Report this to wx-dev@lists.wxwidgets.org ##
14855## ----------------------------------------- ##
a848cd7e
SC
14856_ASBOX
14857 ) |
14858 sed "s/^/$as_me: WARNING: /" >&2
14859 ;;
14860esac
14861echo "$as_me:$LINENO: checking for $ac_header" >&5
14862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865else
ac1cb8d3 14866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14867fi
14868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14870
14871fi
14872if test `eval echo '${'$as_ac_Header'}'` = yes; then
14873 cat >>confdefs.h <<_ACEOF
14874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14875_ACEOF
14876
14877fi
14878
14879done
14880
14881fi
14882
14883
14884for ac_header in fnmatch.h
14885do
14886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo "$as_me:$LINENO: checking for $ac_header" >&5
14889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14890if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892fi
14893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14895else
14896 # Is the header compilable?
14897echo "$as_me:$LINENO: checking $ac_header usability" >&5
14898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14899cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
14906#include <$ac_header>
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14910 (eval $ac_compile) 2>conftest.er1
a848cd7e 14911 ac_status=$?
ac1cb8d3
VS
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
a848cd7e
SC
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
6ebeb4c7 14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_header_compiler=yes
14930else
14931 echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934ac_header_compiler=no
14935fi
ac1cb8d3 14936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938echo "${ECHO_T}$ac_header_compiler" >&6
14939
14940# Is the header present?
14941echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949#include <$ac_header>
14950_ACEOF
14951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14962 else
14963 ac_cpp_err=
14964 fi
14965else
14966 ac_cpp_err=yes
14967fi
14968if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_header_preproc=no
14975fi
14976rm -f conftest.err conftest.$ac_ext
14977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6
14979
14980# So? What about this header?
ac1cb8d3
VS
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
a848cd7e
SC
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
a848cd7e 14988 ;;
ac1cb8d3 14989 no:yes:* )
a848cd7e
SC
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15002 (
15003 cat <<\_ASBOX
ac1cb8d3
VS
15004## ----------------------------------------- ##
15005## Report this to wx-dev@lists.wxwidgets.org ##
15006## ----------------------------------------- ##
a848cd7e
SC
15007_ASBOX
15008 ) |
15009 sed "s/^/$as_me: WARNING: /" >&2
15010 ;;
15011esac
15012echo "$as_me:$LINENO: checking for $ac_header" >&5
15013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15014if eval "test \"\${$as_ac_Header+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
ac1cb8d3 15017 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15018fi
15019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15021
15022fi
15023if test `eval echo '${'$as_ac_Header'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15026_ACEOF
15027
15028fi
15029
15030done
15031
15032
a848cd7e
SC
15033
15034for ac_header in langinfo.h
15035do
15036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042fi
15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15045else
15046 # Is the header compilable?
15047echo "$as_me:$LINENO: checking $ac_header usability" >&5
15048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
15056#include <$ac_header>
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15060 (eval $ac_compile) 2>conftest.er1
a848cd7e 15061 ac_status=$?
ac1cb8d3
VS
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
a848cd7e
SC
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
6ebeb4c7 15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_header_compiler=yes
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_header_compiler=no
15085fi
ac1cb8d3 15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15088echo "${ECHO_T}$ac_header_compiler" >&6
15089
15090# Is the header present?
15091echo "$as_me:$LINENO: checking $ac_header presence" >&5
15092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15093cat >conftest.$ac_ext <<_ACEOF
15094/* confdefs.h. */
15095_ACEOF
15096cat confdefs.h >>conftest.$ac_ext
15097cat >>conftest.$ac_ext <<_ACEOF
15098/* end confdefs.h. */
15099#include <$ac_header>
15100_ACEOF
15101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
15126rm -f conftest.err conftest.$ac_ext
15127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15128echo "${ECHO_T}$ac_header_preproc" >&6
15129
15130# So? What about this header?
ac1cb8d3
VS
15131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 yes:no: )
a848cd7e
SC
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15137 ac_header_preproc=yes
a848cd7e 15138 ;;
ac1cb8d3 15139 no:yes:* )
a848cd7e
SC
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15152 (
15153 cat <<\_ASBOX
ac1cb8d3
VS
15154## ----------------------------------------- ##
15155## Report this to wx-dev@lists.wxwidgets.org ##
15156## ----------------------------------------- ##
a848cd7e
SC
15157_ASBOX
15158 ) |
15159 sed "s/^/$as_me: WARNING: /" >&2
15160 ;;
15161esac
15162echo "$as_me:$LINENO: checking for $ac_header" >&5
15163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15164if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
ac1cb8d3 15167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171
15172fi
15173if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176_ACEOF
15177
15178fi
15179
15180done
15181
15182
15183case "${host}" in
15184 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15185 if test $ac_cv_header_langinfo_h = "yes" \
15186 -a \( "$wx_cv_gccversion" = "EMX2" \
15187 -o "$wx_cv_gccversion" = "EMX3" \
15188 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15189 LIBS="$LIBS -lintl"
15190 fi
15191 ;;
15192esac
15193
a848cd7e
SC
15194
15195echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15196echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15197if test "${ac_cv_c_const+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200 cat >conftest.$ac_ext <<_ACEOF
15201/* confdefs.h. */
15202_ACEOF
15203cat confdefs.h >>conftest.$ac_ext
15204cat >>conftest.$ac_ext <<_ACEOF
15205/* end confdefs.h. */
15206
15207int
15208main ()
15209{
15210/* FIXME: Include the comments suggested by Paul. */
15211#ifndef __cplusplus
15212 /* Ultrix mips cc rejects this. */
15213 typedef int charset[2];
15214 const charset x;
15215 /* SunOS 4.1.1 cc rejects this. */
15216 char const *const *ccp;
15217 char **p;
15218 /* NEC SVR4.0.2 mips cc rejects this. */
15219 struct point {int x, y;};
15220 static struct point const zero = {0,0};
15221 /* AIX XL C 1.02.0.0 rejects this.
15222 It does not let you subtract one const X* pointer from another in
15223 an arm of an if-expression whose if-part is not a constant
15224 expression */
15225 const char *g = "string";
15226 ccp = &g + (g ? g-g : 0);
15227 /* HPUX 7.0 cc rejects these. */
15228 ++ccp;
15229 p = (char**) ccp;
15230 ccp = (char const *const *) p;
15231 { /* SCO 3.2v4 cc rejects this. */
15232 char *t;
15233 char const *s = 0 ? (char *) 0 : (char const *) 0;
15234
15235 *t++ = 0;
15236 }
15237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15238 int x[] = {25, 17};
15239 const int *foo = &x[0];
15240 ++foo;
15241 }
15242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15243 typedef const int *iptr;
15244 iptr p = 0;
15245 ++p;
15246 }
15247 { /* AIX XL C 1.02.0.0 rejects this saying
15248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15249 struct s { int j; const int *ap[3]; };
15250 struct s *b; b->j = 5;
15251 }
15252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15253 const int foo = 10;
15254 }
15255#endif
15256
15257 ;
15258 return 0;
15259}
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15263 (eval $ac_compile) 2>conftest.er1
a848cd7e 15264 ac_status=$?
ac1cb8d3
VS
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
a848cd7e
SC
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
6ebeb4c7 15270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_c_const=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287ac_cv_c_const=no
15288fi
ac1cb8d3 15289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15290fi
15291echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15292echo "${ECHO_T}$ac_cv_c_const" >&6
15293if test $ac_cv_c_const = no; then
15294
15295cat >>confdefs.h <<\_ACEOF
15296#define const
15297_ACEOF
15298
15299fi
15300
15301echo "$as_me:$LINENO: checking for inline" >&5
15302echo $ECHO_N "checking for inline... $ECHO_C" >&6
15303if test "${ac_cv_c_inline+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305else
15306 ac_cv_c_inline=no
15307for ac_kw in inline __inline__ __inline; do
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314#ifndef __cplusplus
15315typedef int foo_t;
15316static $ac_kw foo_t static_foo () {return 0; }
15317$ac_kw foo_t foo () {return 0; }
15318#endif
15319
15320_ACEOF
15321rm -f conftest.$ac_objext
15322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15323 (eval $ac_compile) 2>conftest.er1
a848cd7e 15324 ac_status=$?
ac1cb8d3
VS
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
a848cd7e
SC
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
6ebeb4c7 15330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_c_inline=$ac_kw; break
15343else
15344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347fi
ac1cb8d3 15348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15349done
15350
15351fi
15352echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15353echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15354
15355
a848cd7e
SC
15356case $ac_cv_c_inline in
15357 inline | yes) ;;
ac1cb8d3
VS
15358 *)
15359 case $ac_cv_c_inline in
15360 no) ac_val=;;
15361 *) ac_val=$ac_cv_c_inline;;
15362 esac
15363 cat >>confdefs.h <<_ACEOF
15364#ifndef __cplusplus
15365#define inline $ac_val
15366#endif
de59c161 15367_ACEOF
ac1cb8d3 15368 ;;
a848cd7e
SC
15369esac
15370
15371
15372echo "$as_me:$LINENO: checking for char" >&5
15373echo $ECHO_N "checking for char... $ECHO_C" >&6
15374if test "${ac_cv_type_char+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376else
15377 cat >conftest.$ac_ext <<_ACEOF
15378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
15382/* end confdefs.h. */
15383$ac_includes_default
15384int
15385main ()
15386{
15387if ((char *) 0)
15388 return 0;
15389if (sizeof (char))
15390 return 0;
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext
15396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15397 (eval $ac_compile) 2>conftest.er1
a848cd7e 15398 ac_status=$?
ac1cb8d3
VS
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
a848cd7e
SC
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
6ebeb4c7 15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_cv_type_char=yes
15417else
15418 echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421ac_cv_type_char=no
15422fi
ac1cb8d3 15423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15424fi
15425echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15426echo "${ECHO_T}$ac_cv_type_char" >&6
15427
15428echo "$as_me:$LINENO: checking size of char" >&5
15429echo $ECHO_N "checking size of char... $ECHO_C" >&6
15430if test "${ac_cv_sizeof_char+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432else
15433 if test "$ac_cv_type_char" = yes; then
15434 # The cast to unsigned long works around a bug in the HP C Compiler
15435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15437 # This bug is HP SR number 8606223364.
15438 if test "$cross_compiling" = yes; then
15439 # Depending upon the size, compute the lo and hi bounds.
15440cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446$ac_includes_default
15447int
15448main ()
15449{
15450static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15451test_array [0] = 0
15452
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext
15458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15459 (eval $ac_compile) 2>conftest.er1
a848cd7e 15460 ac_status=$?
ac1cb8d3
VS
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
a848cd7e
SC
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
6ebeb4c7 15466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_lo=0 ac_mid=0
15479 while :; do
15480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487int
15488main ()
15489{
15490static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15491test_array [0] = 0
15492
15493 ;
15494 return 0;
15495}
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15499 (eval $ac_compile) 2>conftest.er1
a848cd7e 15500 ac_status=$?
ac1cb8d3
VS
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
a848cd7e
SC
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
6ebeb4c7 15506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_hi=$ac_mid; break
15519else
15520 echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15524 if test $ac_lo -le $ac_mid; then
15525 ac_lo= ac_hi=
15526 break
15527 fi
15528 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15529fi
ac1cb8d3 15530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15531 done
15532else
15533 echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542$ac_includes_default
15543int
15544main ()
15545{
15546static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15547test_array [0] = 0
15548
15549 ;
15550 return 0;
15551}
15552_ACEOF
15553rm -f conftest.$ac_objext
15554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15555 (eval $ac_compile) 2>conftest.er1
a848cd7e 15556 ac_status=$?
ac1cb8d3
VS
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
a848cd7e
SC
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
6ebeb4c7 15562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_hi=-1 ac_mid=-1
15575 while :; do
15576 cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582$ac_includes_default
15583int
15584main ()
15585{
15586static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15587test_array [0] = 0
15588
15589 ;
15590 return 0;
15591}
15592_ACEOF
15593rm -f conftest.$ac_objext
15594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15595 (eval $ac_compile) 2>conftest.er1
a848cd7e 15596 ac_status=$?
ac1cb8d3
VS
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
a848cd7e
SC
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
6ebeb4c7 15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_lo=$ac_mid; break
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15620 if test $ac_mid -le $ac_hi; then
15621 ac_lo= ac_hi=
15622 break
15623 fi
15624 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15625fi
ac1cb8d3 15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15627 done
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632ac_lo= ac_hi=
15633fi
ac1cb8d3 15634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15635fi
ac1cb8d3 15636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15637# Binary search between lo and hi bounds.
15638while test "x$ac_lo" != "x$ac_hi"; do
15639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15640 cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646$ac_includes_default
15647int
15648main ()
15649{
15650static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15651test_array [0] = 0
15652
15653 ;
15654 return 0;
15655}
15656_ACEOF
15657rm -f conftest.$ac_objext
15658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15659 (eval $ac_compile) 2>conftest.er1
a848cd7e 15660 ac_status=$?
ac1cb8d3
VS
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
a848cd7e
SC
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
6ebeb4c7 15666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_hi=$ac_mid
15679else
15680 echo "$as_me: failed program was:" >&5
15681sed 's/^/| /' conftest.$ac_ext >&5
15682
15683ac_lo=`expr '(' $ac_mid ')' + 1`
15684fi
ac1cb8d3 15685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15686done
15687case $ac_lo in
15688?*) ac_cv_sizeof_char=$ac_lo;;
15689'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15690See \`config.log' for more details." >&5
15691echo "$as_me: error: cannot compute sizeof (char), 77
15692See \`config.log' for more details." >&2;}
15693 { (exit 1); exit 1; }; } ;;
15694esac
15695else
15696 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15697 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15698echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15699 { (exit 1); exit 1; }; }
15700else
15701 cat >conftest.$ac_ext <<_ACEOF
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707$ac_includes_default
15708long longval () { return (long) (sizeof (char)); }
15709unsigned long ulongval () { return (long) (sizeof (char)); }
15710#include <stdio.h>
15711#include <stdlib.h>
15712int
15713main ()
15714{
15715
15716 FILE *f = fopen ("conftest.val", "w");
15717 if (! f)
15718 exit (1);
15719 if (((long) (sizeof (char))) < 0)
15720 {
15721 long i = longval ();
15722 if (i != ((long) (sizeof (char))))
15723 exit (1);
15724 fprintf (f, "%ld\n", i);
15725 }
15726 else
15727 {
15728 unsigned long i = ulongval ();
15729 if (i != ((long) (sizeof (char))))
15730 exit (1);
15731 fprintf (f, "%lu\n", i);
15732 }
15733 exit (ferror (f) || fclose (f) != 0);
15734
15735 ;
15736 return 0;
15737}
15738_ACEOF
15739rm -f conftest$ac_exeext
15740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_char=`cat conftest.val`
15751else
15752 echo "$as_me: program exited with status $ac_status" >&5
15753echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756( exit $ac_status )
15757{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15758See \`config.log' for more details." >&5
15759echo "$as_me: error: cannot compute sizeof (char), 77
15760See \`config.log' for more details." >&2;}
15761 { (exit 1); exit 1; }; }
15762fi
ac1cb8d3 15763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15764fi
15765fi
15766rm -f conftest.val
15767else
15768 ac_cv_sizeof_char=0
15769fi
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15772echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15773cat >>confdefs.h <<_ACEOF
15774#define SIZEOF_CHAR $ac_cv_sizeof_char
15775_ACEOF
15776
15777
15778echo "$as_me:$LINENO: checking for short" >&5
15779echo $ECHO_N "checking for short... $ECHO_C" >&6
15780if test "${ac_cv_type_short+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789$ac_includes_default
15790int
15791main ()
15792{
15793if ((short *) 0)
15794 return 0;
15795if (sizeof (short))
15796 return 0;
15797 ;
15798 return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext
15802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15803 (eval $ac_compile) 2>conftest.er1
a848cd7e 15804 ac_status=$?
ac1cb8d3
VS
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
a848cd7e
SC
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
6ebeb4c7 15810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_short=yes
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827ac_cv_type_short=no
15828fi
ac1cb8d3 15829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15830fi
15831echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15832echo "${ECHO_T}$ac_cv_type_short" >&6
15833
15834echo "$as_me:$LINENO: checking size of short" >&5
15835echo $ECHO_N "checking size of short... $ECHO_C" >&6
15836if test "${ac_cv_sizeof_short+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838else
15839 if test "$ac_cv_type_short" = yes; then
15840 # The cast to unsigned long works around a bug in the HP C Compiler
15841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15843 # This bug is HP SR number 8606223364.
15844 if test "$cross_compiling" = yes; then
15845 # Depending upon the size, compute the lo and hi bounds.
15846cat >conftest.$ac_ext <<_ACEOF
15847/* confdefs.h. */
15848_ACEOF
15849cat confdefs.h >>conftest.$ac_ext
15850cat >>conftest.$ac_ext <<_ACEOF
15851/* end confdefs.h. */
15852$ac_includes_default
15853int
15854main ()
15855{
15856static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15857test_array [0] = 0
15858
15859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest.$ac_objext
15864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15865 (eval $ac_compile) 2>conftest.er1
a848cd7e 15866 ac_status=$?
ac1cb8d3
VS
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
a848cd7e
SC
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
6ebeb4c7 15872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_lo=0 ac_mid=0
15885 while :; do
15886 cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893int
15894main ()
15895{
15896static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15897test_array [0] = 0
15898
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15905 (eval $ac_compile) 2>conftest.er1
a848cd7e 15906 ac_status=$?
ac1cb8d3
VS
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
a848cd7e
SC
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
6ebeb4c7 15912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_hi=$ac_mid; break
15925else
15926 echo "$as_me: failed program was:" >&5
15927sed 's/^/| /' conftest.$ac_ext >&5
15928
15929ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15930 if test $ac_lo -le $ac_mid; then
15931 ac_lo= ac_hi=
15932 break
15933 fi
15934 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15935fi
ac1cb8d3 15936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15937 done
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942cat >conftest.$ac_ext <<_ACEOF
15943/* confdefs.h. */
15944_ACEOF
15945cat confdefs.h >>conftest.$ac_ext
15946cat >>conftest.$ac_ext <<_ACEOF
15947/* end confdefs.h. */
15948$ac_includes_default
15949int
15950main ()
15951{
15952static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15953test_array [0] = 0
15954
15955 ;
15956 return 0;
15957}
15958_ACEOF
15959rm -f conftest.$ac_objext
15960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15961 (eval $ac_compile) 2>conftest.er1
a848cd7e 15962 ac_status=$?
ac1cb8d3
VS
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
a848cd7e
SC
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
6ebeb4c7 15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_hi=-1 ac_mid=-1
15981 while :; do
15982 cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
15988$ac_includes_default
15989int
15990main ()
15991{
15992static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15993test_array [0] = 0
15994
15995 ;
15996 return 0;
15997}
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16001 (eval $ac_compile) 2>conftest.er1
a848cd7e 16002 ac_status=$?
ac1cb8d3
VS
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
a848cd7e
SC
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
6ebeb4c7 16008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_lo=$ac_mid; break
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16026 if test $ac_mid -le $ac_hi; then
16027 ac_lo= ac_hi=
16028 break
16029 fi
16030 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16031fi
ac1cb8d3 16032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16033 done
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038ac_lo= ac_hi=
16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16041fi
ac1cb8d3 16042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16043# Binary search between lo and hi bounds.
16044while test "x$ac_lo" != "x$ac_hi"; do
16045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16046 cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053int
16054main ()
16055{
16056static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16057test_array [0] = 0
16058
16059 ;
16060 return 0;
16061}
16062_ACEOF
16063rm -f conftest.$ac_objext
16064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16065 (eval $ac_compile) 2>conftest.er1
a848cd7e 16066 ac_status=$?
ac1cb8d3
VS
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
a848cd7e
SC
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
6ebeb4c7 16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_hi=$ac_mid
16085else
16086 echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089ac_lo=`expr '(' $ac_mid ')' + 1`
16090fi
ac1cb8d3 16091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16092done
16093case $ac_lo in
16094?*) ac_cv_sizeof_short=$ac_lo;;
16095'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16096See \`config.log' for more details." >&5
16097echo "$as_me: error: cannot compute sizeof (short), 77
16098See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; } ;;
16100esac
16101else
16102 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16103 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16104echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16105 { (exit 1); exit 1; }; }
16106else
16107 cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113$ac_includes_default
16114long longval () { return (long) (sizeof (short)); }
16115unsigned long ulongval () { return (long) (sizeof (short)); }
16116#include <stdio.h>
16117#include <stdlib.h>
16118int
16119main ()
16120{
16121
16122 FILE *f = fopen ("conftest.val", "w");
16123 if (! f)
16124 exit (1);
16125 if (((long) (sizeof (short))) < 0)
16126 {
16127 long i = longval ();
16128 if (i != ((long) (sizeof (short))))
16129 exit (1);
16130 fprintf (f, "%ld\n", i);
16131 }
16132 else
16133 {
16134 unsigned long i = ulongval ();
16135 if (i != ((long) (sizeof (short))))
16136 exit (1);
16137 fprintf (f, "%lu\n", i);
16138 }
16139 exit (ferror (f) || fclose (f) != 0);
16140
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145rm -f conftest$ac_exeext
16146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_short=`cat conftest.val`
16157else
16158 echo "$as_me: program exited with status $ac_status" >&5
16159echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162( exit $ac_status )
16163{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16164See \`config.log' for more details." >&5
16165echo "$as_me: error: cannot compute sizeof (short), 77
16166See \`config.log' for more details." >&2;}
16167 { (exit 1); exit 1; }; }
16168fi
ac1cb8d3 16169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16170fi
16171fi
16172rm -f conftest.val
16173else
16174 ac_cv_sizeof_short=0
16175fi
16176fi
16177echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16178echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16179cat >>confdefs.h <<_ACEOF
16180#define SIZEOF_SHORT $ac_cv_sizeof_short
16181_ACEOF
16182
16183
16184echo "$as_me:$LINENO: checking for void *" >&5
16185echo $ECHO_N "checking for void *... $ECHO_C" >&6
16186if test "${ac_cv_type_void_p+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189 cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196int
16197main ()
16198{
16199if ((void * *) 0)
16200 return 0;
16201if (sizeof (void *))
16202 return 0;
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16209 (eval $ac_compile) 2>conftest.er1
a848cd7e 16210 ac_status=$?
ac1cb8d3
VS
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
a848cd7e
SC
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
6ebeb4c7 16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_void_p=yes
16229else
16230 echo "$as_me: failed program was:" >&5
16231sed 's/^/| /' conftest.$ac_ext >&5
16232
16233ac_cv_type_void_p=no
16234fi
ac1cb8d3 16235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16236fi
16237echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16238echo "${ECHO_T}$ac_cv_type_void_p" >&6
16239
16240echo "$as_me:$LINENO: checking size of void *" >&5
16241echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16242if test "${ac_cv_sizeof_void_p+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 if test "$ac_cv_type_void_p" = yes; then
16246 # The cast to unsigned long works around a bug in the HP C Compiler
16247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16249 # This bug is HP SR number 8606223364.
16250 if test "$cross_compiling" = yes; then
16251 # Depending upon the size, compute the lo and hi bounds.
16252cat >conftest.$ac_ext <<_ACEOF
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258$ac_includes_default
16259int
16260main ()
16261{
16262static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16263test_array [0] = 0
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16271 (eval $ac_compile) 2>conftest.er1
a848cd7e 16272 ac_status=$?
ac1cb8d3
VS
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
a848cd7e
SC
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
6ebeb4c7 16278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_lo=0 ac_mid=0
16291 while :; do
16292 cat >conftest.$ac_ext <<_ACEOF
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
16298$ac_includes_default
16299int
16300main ()
16301{
16302static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16303test_array [0] = 0
16304
16305 ;
16306 return 0;
16307}
16308_ACEOF
16309rm -f conftest.$ac_objext
16310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16311 (eval $ac_compile) 2>conftest.er1
a848cd7e 16312 ac_status=$?
ac1cb8d3
VS
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
a848cd7e
SC
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
6ebeb4c7 16318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16336 if test $ac_lo -le $ac_mid; then
16337 ac_lo= ac_hi=
16338 break
16339 fi
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16341fi
ac1cb8d3 16342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16343 done
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355int
16356main ()
16357{
16358static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16359test_array [0] = 0
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16367 (eval $ac_compile) 2>conftest.er1
a848cd7e 16368 ac_status=$?
ac1cb8d3
VS
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
a848cd7e
SC
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
6ebeb4c7 16374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_hi=-1 ac_mid=-1
16387 while :; do
16388 cat >conftest.$ac_ext <<_ACEOF
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
16393/* end confdefs.h. */
16394$ac_includes_default
16395int
16396main ()
16397{
16398static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16399test_array [0] = 0
16400
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405rm -f conftest.$ac_objext
16406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16407 (eval $ac_compile) 2>conftest.er1
a848cd7e 16408 ac_status=$?
ac1cb8d3
VS
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
a848cd7e
SC
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
6ebeb4c7 16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 ac_lo=$ac_mid; break
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16432 if test $ac_mid -le $ac_hi; then
16433 ac_lo= ac_hi=
16434 break
16435 fi
16436 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16437fi
ac1cb8d3 16438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16439 done
16440else
16441 echo "$as_me: failed program was:" >&5
16442sed 's/^/| /' conftest.$ac_ext >&5
16443
16444ac_lo= ac_hi=
16445fi
ac1cb8d3 16446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16447fi
ac1cb8d3 16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16449# Binary search between lo and hi bounds.
16450while test "x$ac_lo" != "x$ac_hi"; do
16451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458$ac_includes_default
16459int
16460main ()
16461{
16462static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16463test_array [0] = 0
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16471 (eval $ac_compile) 2>conftest.er1
a848cd7e 16472 ac_status=$?
ac1cb8d3
VS
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
a848cd7e
SC
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
6ebeb4c7 16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; } &&
16484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_hi=$ac_mid
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495ac_lo=`expr '(' $ac_mid ')' + 1`
16496fi
ac1cb8d3 16497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16498done
16499case $ac_lo in
16500?*) ac_cv_sizeof_void_p=$ac_lo;;
16501'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16502See \`config.log' for more details." >&5
16503echo "$as_me: error: cannot compute sizeof (void *), 77
16504See \`config.log' for more details." >&2;}
16505 { (exit 1); exit 1; }; } ;;
16506esac
16507else
16508 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16509 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16510echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16511 { (exit 1); exit 1; }; }
16512else
16513 cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520long longval () { return (long) (sizeof (void *)); }
16521unsigned long ulongval () { return (long) (sizeof (void *)); }
16522#include <stdio.h>
16523#include <stdlib.h>
16524int
16525main ()
16526{
16527
16528 FILE *f = fopen ("conftest.val", "w");
16529 if (! f)
16530 exit (1);
16531 if (((long) (sizeof (void *))) < 0)
16532 {
16533 long i = longval ();
16534 if (i != ((long) (sizeof (void *))))
16535 exit (1);
16536 fprintf (f, "%ld\n", i);
16537 }
16538 else
16539 {
16540 unsigned long i = ulongval ();
16541 if (i != ((long) (sizeof (void *))))
16542 exit (1);
16543 fprintf (f, "%lu\n", i);
16544 }
16545 exit (ferror (f) || fclose (f) != 0);
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest$ac_exeext
16552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16553 (eval $ac_link) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_void_p=`cat conftest.val`
16563else
16564 echo "$as_me: program exited with status $ac_status" >&5
16565echo "$as_me: failed program was:" >&5
16566sed 's/^/| /' conftest.$ac_ext >&5
16567
16568( exit $ac_status )
16569{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16570See \`config.log' for more details." >&5
16571echo "$as_me: error: cannot compute sizeof (void *), 77
16572See \`config.log' for more details." >&2;}
16573 { (exit 1); exit 1; }; }
16574fi
ac1cb8d3 16575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16576fi
16577fi
16578rm -f conftest.val
16579else
16580 ac_cv_sizeof_void_p=0
16581fi
16582fi
16583echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16584echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16585cat >>confdefs.h <<_ACEOF
16586#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16587_ACEOF
16588
16589
16590echo "$as_me:$LINENO: checking for int" >&5
16591echo $ECHO_N "checking for int... $ECHO_C" >&6
16592if test "${ac_cv_type_int+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
16601$ac_includes_default
16602int
16603main ()
16604{
16605if ((int *) 0)
16606 return 0;
16607if (sizeof (int))
16608 return 0;
16609 ;
16610 return 0;
16611}
16612_ACEOF
16613rm -f conftest.$ac_objext
16614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16615 (eval $ac_compile) 2>conftest.er1
a848cd7e 16616 ac_status=$?
ac1cb8d3
VS
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
a848cd7e
SC
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
6ebeb4c7 16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_int=yes
16635else
16636 echo "$as_me: failed program was:" >&5
16637sed 's/^/| /' conftest.$ac_ext >&5
16638
16639ac_cv_type_int=no
16640fi
ac1cb8d3 16641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16642fi
16643echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16644echo "${ECHO_T}$ac_cv_type_int" >&6
16645
16646echo "$as_me:$LINENO: checking size of int" >&5
16647echo $ECHO_N "checking size of int... $ECHO_C" >&6
16648if test "${ac_cv_sizeof_int+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651 if test "$ac_cv_type_int" = yes; then
16652 # The cast to unsigned long works around a bug in the HP C Compiler
16653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16655 # This bug is HP SR number 8606223364.
16656 if test "$cross_compiling" = yes; then
16657 # Depending upon the size, compute the lo and hi bounds.
16658cat >conftest.$ac_ext <<_ACEOF
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665int
16666main ()
16667{
16668static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16669test_array [0] = 0
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext
16676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16677 (eval $ac_compile) 2>conftest.er1
a848cd7e 16678 ac_status=$?
ac1cb8d3
VS
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
a848cd7e
SC
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
6ebeb4c7 16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_lo=0 ac_mid=0
16697 while :; do
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705int
16706main ()
16707{
16708static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16709test_array [0] = 0
16710
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16717 (eval $ac_compile) 2>conftest.er1
a848cd7e 16718 ac_status=$?
ac1cb8d3
VS
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
a848cd7e
SC
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
6ebeb4c7 16724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_hi=$ac_mid; break
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16742 if test $ac_lo -le $ac_mid; then
16743 ac_lo= ac_hi=
16744 break
16745 fi
16746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16747fi
ac1cb8d3 16748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16749 done
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754cat >conftest.$ac_ext <<_ACEOF
16755/* confdefs.h. */
16756_ACEOF
16757cat confdefs.h >>conftest.$ac_ext
16758cat >>conftest.$ac_ext <<_ACEOF
16759/* end confdefs.h. */
16760$ac_includes_default
16761int
16762main ()
16763{
16764static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16765test_array [0] = 0
16766
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext
16772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16773 (eval $ac_compile) 2>conftest.er1
a848cd7e 16774 ac_status=$?
ac1cb8d3
VS
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
a848cd7e
SC
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
6ebeb4c7 16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_hi=-1 ac_mid=-1
16793 while :; do
16794 cat >conftest.$ac_ext <<_ACEOF
16795/* confdefs.h. */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h. */
16800$ac_includes_default
16801int
16802main ()
16803{
16804static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16805test_array [0] = 0
16806
16807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext
16812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16813 (eval $ac_compile) 2>conftest.er1
a848cd7e 16814 ac_status=$?
ac1cb8d3
VS
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
a848cd7e
SC
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
6ebeb4c7 16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_lo=$ac_mid; break
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16838 if test $ac_mid -le $ac_hi; then
16839 ac_lo= ac_hi=
16840 break
16841 fi
16842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16843fi
ac1cb8d3 16844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16845 done
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850ac_lo= ac_hi=
16851fi
ac1cb8d3 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16853fi
ac1cb8d3 16854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16855# Binary search between lo and hi bounds.
16856while test "x$ac_lo" != "x$ac_hi"; do
16857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16858 cat >conftest.$ac_ext <<_ACEOF
16859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
16864$ac_includes_default
16865int
16866main ()
16867{
16868static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16869test_array [0] = 0
16870
16871 ;
16872 return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext
16876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16877 (eval $ac_compile) 2>conftest.er1
a848cd7e 16878 ac_status=$?
ac1cb8d3
VS
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
a848cd7e
SC
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
6ebeb4c7 16884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_hi=$ac_mid
16897else
16898 echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901ac_lo=`expr '(' $ac_mid ')' + 1`
16902fi
ac1cb8d3 16903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16904done
16905case $ac_lo in
16906?*) ac_cv_sizeof_int=$ac_lo;;
16907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16908See \`config.log' for more details." >&5
16909echo "$as_me: error: cannot compute sizeof (int), 77
16910See \`config.log' for more details." >&2;}
16911 { (exit 1); exit 1; }; } ;;
16912esac
16913else
16914 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16917 { (exit 1); exit 1; }; }
16918else
16919 cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925$ac_includes_default
16926long longval () { return (long) (sizeof (int)); }
16927unsigned long ulongval () { return (long) (sizeof (int)); }
16928#include <stdio.h>
16929#include <stdlib.h>
16930int
16931main ()
16932{
16933
16934 FILE *f = fopen ("conftest.val", "w");
16935 if (! f)
16936 exit (1);
16937 if (((long) (sizeof (int))) < 0)
16938 {
16939 long i = longval ();
16940 if (i != ((long) (sizeof (int))))
16941 exit (1);
16942 fprintf (f, "%ld\n", i);
16943 }
16944 else
16945 {
16946 unsigned long i = ulongval ();
16947 if (i != ((long) (sizeof (int))))
16948 exit (1);
16949 fprintf (f, "%lu\n", i);
16950 }
16951 exit (ferror (f) || fclose (f) != 0);
16952
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest$ac_exeext
16958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
16969else
16970 echo "$as_me: program exited with status $ac_status" >&5
16971echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974( exit $ac_status )
16975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16976See \`config.log' for more details." >&5
16977echo "$as_me: error: cannot compute sizeof (int), 77
16978See \`config.log' for more details." >&2;}
16979 { (exit 1); exit 1; }; }
16980fi
ac1cb8d3 16981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16982fi
16983fi
16984rm -f conftest.val
16985else
16986 ac_cv_sizeof_int=0
16987fi
16988fi
16989echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16990echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16991cat >>confdefs.h <<_ACEOF
16992#define SIZEOF_INT $ac_cv_sizeof_int
16993_ACEOF
16994
16995
16996echo "$as_me:$LINENO: checking for long" >&5
16997echo $ECHO_N "checking for long... $ECHO_C" >&6
16998if test "${ac_cv_type_long+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001 cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007$ac_includes_default
17008int
17009main ()
17010{
17011if ((long *) 0)
17012 return 0;
17013if (sizeof (long))
17014 return 0;
17015 ;
17016 return 0;
17017}
17018_ACEOF
17019rm -f conftest.$ac_objext
17020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17021 (eval $ac_compile) 2>conftest.er1
a848cd7e 17022 ac_status=$?
ac1cb8d3
VS
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
a848cd7e
SC
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
6ebeb4c7 17028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_long=yes
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045ac_cv_type_long=no
17046fi
ac1cb8d3 17047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17048fi
17049echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17050echo "${ECHO_T}$ac_cv_type_long" >&6
17051
17052echo "$as_me:$LINENO: checking size of long" >&5
17053echo $ECHO_N "checking size of long... $ECHO_C" >&6
17054if test "${ac_cv_sizeof_long+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 if test "$ac_cv_type_long" = yes; then
17058 # The cast to unsigned long works around a bug in the HP C Compiler
17059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17061 # This bug is HP SR number 8606223364.
17062 if test "$cross_compiling" = yes; then
17063 # Depending upon the size, compute the lo and hi bounds.
17064cat >conftest.$ac_ext <<_ACEOF
17065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
17070$ac_includes_default
17071int
17072main ()
17073{
17074static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17075test_array [0] = 0
17076
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext
17082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17083 (eval $ac_compile) 2>conftest.er1
a848cd7e 17084 ac_status=$?
ac1cb8d3
VS
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
a848cd7e
SC
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
6ebeb4c7 17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_lo=0 ac_mid=0
17103 while :; do
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110$ac_includes_default
17111int
17112main ()
17113{
17114static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17115test_array [0] = 0
17116
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext
17122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17123 (eval $ac_compile) 2>conftest.er1
a848cd7e 17124 ac_status=$?
ac1cb8d3
VS
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
a848cd7e
SC
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
6ebeb4c7 17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_hi=$ac_mid; break
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17148 if test $ac_lo -le $ac_mid; then
17149 ac_lo= ac_hi=
17150 break
17151 fi
17152 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17153fi
ac1cb8d3 17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17155 done
17156else
17157 echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160cat >conftest.$ac_ext <<_ACEOF
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166$ac_includes_default
17167int
17168main ()
17169{
17170static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17171test_array [0] = 0
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext
17178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17179 (eval $ac_compile) 2>conftest.er1
a848cd7e 17180 ac_status=$?
ac1cb8d3
VS
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
a848cd7e
SC
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
6ebeb4c7 17186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_hi=-1 ac_mid=-1
17199 while :; do
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206$ac_includes_default
17207int
17208main ()
17209{
17210static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17211test_array [0] = 0
17212
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext
17218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17219 (eval $ac_compile) 2>conftest.er1
a848cd7e 17220 ac_status=$?
ac1cb8d3
VS
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
a848cd7e
SC
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
6ebeb4c7 17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_lo=$ac_mid; break
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17244 if test $ac_mid -le $ac_hi; then
17245 ac_lo= ac_hi=
17246 break
17247 fi
17248 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17249fi
ac1cb8d3 17250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17251 done
17252else
17253 echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256ac_lo= ac_hi=
17257fi
ac1cb8d3 17258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17259fi
ac1cb8d3 17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17261# Binary search between lo and hi bounds.
17262while test "x$ac_lo" != "x$ac_hi"; do
17263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17264 cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270$ac_includes_default
17271int
17272main ()
17273{
17274static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17275test_array [0] = 0
17276
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext
17282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17283 (eval $ac_compile) 2>conftest.er1
a848cd7e 17284 ac_status=$?
ac1cb8d3
VS
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
a848cd7e
SC
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
6ebeb4c7 17290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_hi=$ac_mid
17303else
17304 echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
17307ac_lo=`expr '(' $ac_mid ')' + 1`
17308fi
ac1cb8d3 17309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17310done
17311case $ac_lo in
17312?*) ac_cv_sizeof_long=$ac_lo;;
17313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17314See \`config.log' for more details." >&5
17315echo "$as_me: error: cannot compute sizeof (long), 77
17316See \`config.log' for more details." >&2;}
17317 { (exit 1); exit 1; }; } ;;
17318esac
17319else
17320 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17321 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17322echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17323 { (exit 1); exit 1; }; }
17324else
17325 cat >conftest.$ac_ext <<_ACEOF
17326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
17331$ac_includes_default
17332long longval () { return (long) (sizeof (long)); }
17333unsigned long ulongval () { return (long) (sizeof (long)); }
17334#include <stdio.h>
17335#include <stdlib.h>
17336int
17337main ()
17338{
17339
17340 FILE *f = fopen ("conftest.val", "w");
17341 if (! f)
17342 exit (1);
17343 if (((long) (sizeof (long))) < 0)
17344 {
17345 long i = longval ();
17346 if (i != ((long) (sizeof (long))))
17347 exit (1);
17348 fprintf (f, "%ld\n", i);
17349 }
17350 else
17351 {
17352 unsigned long i = ulongval ();
17353 if (i != ((long) (sizeof (long))))
17354 exit (1);
17355 fprintf (f, "%lu\n", i);
17356 }
17357 exit (ferror (f) || fclose (f) != 0);
17358
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest$ac_exeext
17364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
17375else
17376 echo "$as_me: program exited with status $ac_status" >&5
17377echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380( exit $ac_status )
17381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17382See \`config.log' for more details." >&5
17383echo "$as_me: error: cannot compute sizeof (long), 77
17384See \`config.log' for more details." >&2;}
17385 { (exit 1); exit 1; }; }
17386fi
ac1cb8d3 17387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17388fi
17389fi
17390rm -f conftest.val
17391else
17392 ac_cv_sizeof_long=0
17393fi
17394fi
17395echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17396echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17397cat >>confdefs.h <<_ACEOF
17398#define SIZEOF_LONG $ac_cv_sizeof_long
17399_ACEOF
17400
17401
17402echo "$as_me:$LINENO: checking for size_t" >&5
17403echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17404if test "${ac_cv_type_size_t+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413$ac_includes_default
17414int
17415main ()
17416{
17417if ((size_t *) 0)
17418 return 0;
17419if (sizeof (size_t))
17420 return 0;
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext
17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17427 (eval $ac_compile) 2>conftest.er1
a848cd7e 17428 ac_status=$?
ac1cb8d3
VS
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
a848cd7e
SC
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
6ebeb4c7 17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_size_t=yes
17447else
17448 echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451ac_cv_type_size_t=no
17452fi
ac1cb8d3 17453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17454fi
17455echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17456echo "${ECHO_T}$ac_cv_type_size_t" >&6
17457
17458echo "$as_me:$LINENO: checking size of size_t" >&5
17459echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17460if test "${ac_cv_sizeof_size_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 if test "$ac_cv_type_size_t" = yes; then
17464 # The cast to unsigned long works around a bug in the HP C Compiler
17465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17467 # This bug is HP SR number 8606223364.
17468 if test "$cross_compiling" = yes; then
17469 # Depending upon the size, compute the lo and hi bounds.
17470cat >conftest.$ac_ext <<_ACEOF
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
17476$ac_includes_default
17477int
17478main ()
17479{
17480static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17481test_array [0] = 0
17482
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext
17488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17489 (eval $ac_compile) 2>conftest.er1
a848cd7e 17490 ac_status=$?
ac1cb8d3
VS
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
a848cd7e
SC
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
6ebeb4c7 17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_lo=0 ac_mid=0
17509 while :; do
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516$ac_includes_default
17517int
17518main ()
17519{
17520static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17521test_array [0] = 0
17522
17523 ;
17524 return 0;
17525}
17526_ACEOF
17527rm -f conftest.$ac_objext
17528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17529 (eval $ac_compile) 2>conftest.er1
a848cd7e 17530 ac_status=$?
ac1cb8d3
VS
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
a848cd7e
SC
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
6ebeb4c7 17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_hi=$ac_mid; break
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17554 if test $ac_lo -le $ac_mid; then
17555 ac_lo= ac_hi=
17556 break
17557 fi
17558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17559fi
ac1cb8d3 17560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17561 done
17562else
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h. */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h. */
17572$ac_includes_default
17573int
17574main ()
17575{
17576static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17577test_array [0] = 0
17578
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext
17584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17585 (eval $ac_compile) 2>conftest.er1
a848cd7e 17586 ac_status=$?
ac1cb8d3
VS
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
a848cd7e
SC
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
6ebeb4c7 17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_hi=-1 ac_mid=-1
17605 while :; do
17606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612$ac_includes_default
17613int
17614main ()
17615{
17616static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17617test_array [0] = 0
17618
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext
17624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17625 (eval $ac_compile) 2>conftest.er1
a848cd7e 17626 ac_status=$?
ac1cb8d3
VS
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
a848cd7e
SC
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
6ebeb4c7 17632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_lo=$ac_mid; break
17645else
17646 echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17650 if test $ac_mid -le $ac_hi; then
17651 ac_lo= ac_hi=
17652 break
17653 fi
17654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17655fi
ac1cb8d3 17656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17657 done
17658else
17659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662ac_lo= ac_hi=
17663fi
ac1cb8d3 17664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17665fi
ac1cb8d3 17666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17667# Binary search between lo and hi bounds.
17668while test "x$ac_lo" != "x$ac_hi"; do
17669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17670 cat >conftest.$ac_ext <<_ACEOF
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
17676$ac_includes_default
17677int
17678main ()
17679{
17680static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17681test_array [0] = 0
17682
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17689 (eval $ac_compile) 2>conftest.er1
a848cd7e 17690 ac_status=$?
ac1cb8d3
VS
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
a848cd7e
SC
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
6ebeb4c7 17696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_hi=$ac_mid
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713ac_lo=`expr '(' $ac_mid ')' + 1`
17714fi
ac1cb8d3 17715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17716done
17717case $ac_lo in
17718?*) ac_cv_sizeof_size_t=$ac_lo;;
17719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17720See \`config.log' for more details." >&5
17721echo "$as_me: error: cannot compute sizeof (size_t), 77
17722See \`config.log' for more details." >&2;}
17723 { (exit 1); exit 1; }; } ;;
17724esac
17725else
17726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17729 { (exit 1); exit 1; }; }
17730else
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738long longval () { return (long) (sizeof (size_t)); }
17739unsigned long ulongval () { return (long) (sizeof (size_t)); }
17740#include <stdio.h>
17741#include <stdlib.h>
17742int
17743main ()
17744{
17745
17746 FILE *f = fopen ("conftest.val", "w");
17747 if (! f)
17748 exit (1);
17749 if (((long) (sizeof (size_t))) < 0)
17750 {
17751 long i = longval ();
17752 if (i != ((long) (sizeof (size_t))))
17753 exit (1);
17754 fprintf (f, "%ld\n", i);
17755 }
17756 else
17757 {
17758 unsigned long i = ulongval ();
17759 if (i != ((long) (sizeof (size_t))))
17760 exit (1);
17761 fprintf (f, "%lu\n", i);
17762 }
17763 exit (ferror (f) || fclose (f) != 0);
17764
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769rm -f conftest$ac_exeext
17770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_size_t=`cat conftest.val`
17781else
17782 echo "$as_me: program exited with status $ac_status" >&5
17783echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786( exit $ac_status )
17787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17788See \`config.log' for more details." >&5
17789echo "$as_me: error: cannot compute sizeof (size_t), 77
17790See \`config.log' for more details." >&2;}
17791 { (exit 1); exit 1; }; }
17792fi
ac1cb8d3 17793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17794fi
17795fi
17796rm -f conftest.val
17797else
17798 ac_cv_sizeof_size_t=0
17799fi
17800fi
17801echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17802echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17803cat >>confdefs.h <<_ACEOF
17804#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17805_ACEOF
17806
17807
17808
17809case "${host}" in
17810 arm-*-linux* )
17811 echo "$as_me:$LINENO: checking for long long" >&5
17812echo $ECHO_N "checking for long long... $ECHO_C" >&6
17813if test "${ac_cv_type_long_long+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
17822$ac_includes_default
17823int
17824main ()
17825{
17826if ((long long *) 0)
17827 return 0;
17828if (sizeof (long long))
17829 return 0;
17830 ;
17831 return 0;
17832}
17833_ACEOF
17834rm -f conftest.$ac_objext
17835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17836 (eval $ac_compile) 2>conftest.er1
a848cd7e 17837 ac_status=$?
ac1cb8d3
VS
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
a848cd7e
SC
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
6ebeb4c7 17843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 ac_cv_type_long_long=yes
17856else
17857 echo "$as_me: failed program was:" >&5
17858sed 's/^/| /' conftest.$ac_ext >&5
17859
17860ac_cv_type_long_long=no
17861fi
ac1cb8d3 17862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17863fi
17864echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17865echo "${ECHO_T}$ac_cv_type_long_long" >&6
17866
17867echo "$as_me:$LINENO: checking size of long long" >&5
17868echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17869if test "${ac_cv_sizeof_long_long+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871else
17872 if test "$ac_cv_type_long_long" = yes; then
17873 # The cast to unsigned long works around a bug in the HP C Compiler
17874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17876 # This bug is HP SR number 8606223364.
17877 if test "$cross_compiling" = yes; then
17878 # Depending upon the size, compute the lo and hi bounds.
17879cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885$ac_includes_default
17886int
17887main ()
17888{
17889static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17890test_array [0] = 0
17891
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17898 (eval $ac_compile) 2>conftest.er1
a848cd7e 17899 ac_status=$?
ac1cb8d3
VS
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
a848cd7e
SC
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
6ebeb4c7 17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_lo=0 ac_mid=0
17918 while :; do
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
6ebeb4c7 17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid; break
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17963 if test $ac_lo -le $ac_mid; then
17964 ac_lo= ac_hi=
17965 break
17966 fi
17967 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17968fi
ac1cb8d3 17969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17970 done
17971else
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981$ac_includes_default
17982int
17983main ()
17984{
17985static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17986test_array [0] = 0
17987
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992rm -f conftest.$ac_objext
17993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17994 (eval $ac_compile) 2>conftest.er1
a848cd7e 17995 ac_status=$?
ac1cb8d3
VS
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
a848cd7e
SC
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
6ebeb4c7 18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_hi=-1 ac_mid=-1
18014 while :; do
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
18021$ac_includes_default
18022int
18023main ()
18024{
18025static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18026test_array [0] = 0
18027
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext
18033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18034 (eval $ac_compile) 2>conftest.er1
a848cd7e 18035 ac_status=$?
ac1cb8d3
VS
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
a848cd7e
SC
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
6ebeb4c7 18041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_lo=$ac_mid; break
18054else
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18059 if test $ac_mid -le $ac_hi; then
18060 ac_lo= ac_hi=
18061 break
18062 fi
18063 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18064fi
ac1cb8d3 18065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18066 done
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071ac_lo= ac_hi=
18072fi
ac1cb8d3 18073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18074fi
ac1cb8d3 18075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18076# Binary search between lo and hi bounds.
18077while test "x$ac_lo" != "x$ac_hi"; do
18078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086int
18087main ()
18088{
18089static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18090test_array [0] = 0
18091
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext
18097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18098 (eval $ac_compile) 2>conftest.er1
a848cd7e 18099 ac_status=$?
ac1cb8d3
VS
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
a848cd7e
SC
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
6ebeb4c7 18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_hi=$ac_mid
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122ac_lo=`expr '(' $ac_mid ')' + 1`
18123fi
ac1cb8d3 18124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18125done
18126case $ac_lo in
18127?*) ac_cv_sizeof_long_long=$ac_lo;;
18128'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18129See \`config.log' for more details." >&5
18130echo "$as_me: error: cannot compute sizeof (long long), 77
18131See \`config.log' for more details." >&2;}
18132 { (exit 1); exit 1; }; } ;;
18133esac
18134else
18135 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18136 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18137echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18138 { (exit 1); exit 1; }; }
18139else
18140 cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146$ac_includes_default
18147long longval () { return (long) (sizeof (long long)); }
18148unsigned long ulongval () { return (long) (sizeof (long long)); }
18149#include <stdio.h>
18150#include <stdlib.h>
18151int
18152main ()
18153{
18154
18155 FILE *f = fopen ("conftest.val", "w");
18156 if (! f)
18157 exit (1);
18158 if (((long) (sizeof (long long))) < 0)
18159 {
18160 long i = longval ();
18161 if (i != ((long) (sizeof (long long))))
18162 exit (1);
18163 fprintf (f, "%ld\n", i);
18164 }
18165 else
18166 {
18167 unsigned long i = ulongval ();
18168 if (i != ((long) (sizeof (long long))))
18169 exit (1);
18170 fprintf (f, "%lu\n", i);
18171 }
18172 exit (ferror (f) || fclose (f) != 0);
18173
18174 ;
18175 return 0;
18176}
18177_ACEOF
18178rm -f conftest$ac_exeext
18179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
18190else
18191 echo "$as_me: program exited with status $ac_status" >&5
18192echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195( exit $ac_status )
18196{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18197See \`config.log' for more details." >&5
18198echo "$as_me: error: cannot compute sizeof (long long), 77
18199See \`config.log' for more details." >&2;}
18200 { (exit 1); exit 1; }; }
18201fi
ac1cb8d3 18202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18203fi
18204fi
18205rm -f conftest.val
18206else
18207 ac_cv_sizeof_long_long=0
18208fi
18209fi
18210echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18211echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18212cat >>confdefs.h <<_ACEOF
18213#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18214_ACEOF
18215
18216
18217 ;;
18218 *-hp-hpux* )
18219 echo "$as_me:$LINENO: checking for long long" >&5
18220echo $ECHO_N "checking for long long... $ECHO_C" >&6
18221if test "${ac_cv_type_long_long+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224 cat >conftest.$ac_ext <<_ACEOF
18225/* confdefs.h. */
18226_ACEOF
18227cat confdefs.h >>conftest.$ac_ext
18228cat >>conftest.$ac_ext <<_ACEOF
18229/* end confdefs.h. */
18230$ac_includes_default
18231int
18232main ()
18233{
18234if ((long long *) 0)
18235 return 0;
18236if (sizeof (long long))
18237 return 0;
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext
18243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18244 (eval $ac_compile) 2>conftest.er1
a848cd7e 18245 ac_status=$?
ac1cb8d3
VS
18246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
a848cd7e
SC
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
6ebeb4c7 18251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 ac_cv_type_long_long=yes
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268ac_cv_type_long_long=no
18269fi
ac1cb8d3 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18271fi
18272echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18273echo "${ECHO_T}$ac_cv_type_long_long" >&6
18274
18275echo "$as_me:$LINENO: checking size of long long" >&5
18276echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18277if test "${ac_cv_sizeof_long_long+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279else
18280 if test "$ac_cv_type_long_long" = yes; then
18281 # The cast to unsigned long works around a bug in the HP C Compiler
18282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18284 # This bug is HP SR number 8606223364.
18285 if test "$cross_compiling" = yes; then
18286 # Depending upon the size, compute the lo and hi bounds.
18287cat >conftest.$ac_ext <<_ACEOF
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
18293$ac_includes_default
18294int
18295main ()
18296{
18297static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18298test_array [0] = 0
18299
18300 ;
18301 return 0;
18302}
18303_ACEOF
18304rm -f conftest.$ac_objext
18305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18306 (eval $ac_compile) 2>conftest.er1
a848cd7e 18307 ac_status=$?
ac1cb8d3
VS
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
a848cd7e
SC
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
6ebeb4c7 18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_lo=0 ac_mid=0
18326 while :; do
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333$ac_includes_default
18334int
18335main ()
18336{
18337static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18338test_array [0] = 0
18339
18340 ;
18341 return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext
18345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18346 (eval $ac_compile) 2>conftest.er1
a848cd7e 18347 ac_status=$?
ac1cb8d3
VS
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
a848cd7e
SC
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
6ebeb4c7 18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 ac_hi=$ac_mid; break
18366else
18367 echo "$as_me: failed program was:" >&5
18368sed 's/^/| /' conftest.$ac_ext >&5
18369
18370ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18371 if test $ac_lo -le $ac_mid; then
18372 ac_lo= ac_hi=
18373 break
18374 fi
18375 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18376fi
ac1cb8d3 18377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18378 done
18379else
18380 echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
18383cat >conftest.$ac_ext <<_ACEOF
18384/* confdefs.h. */
18385_ACEOF
18386cat confdefs.h >>conftest.$ac_ext
18387cat >>conftest.$ac_ext <<_ACEOF
18388/* end confdefs.h. */
18389$ac_includes_default
18390int
18391main ()
18392{
18393static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18394test_array [0] = 0
18395
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18402 (eval $ac_compile) 2>conftest.er1
a848cd7e 18403 ac_status=$?
ac1cb8d3
VS
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
a848cd7e
SC
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
6ebeb4c7 18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_hi=-1 ac_mid=-1
18422 while :; do
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429$ac_includes_default
18430int
18431main ()
18432{
18433static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18434test_array [0] = 0
18435
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext
18441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18442 (eval $ac_compile) 2>conftest.er1
a848cd7e 18443 ac_status=$?
ac1cb8d3
VS
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
a848cd7e
SC
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
6ebeb4c7 18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_lo=$ac_mid; break
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18467 if test $ac_mid -le $ac_hi; then
18468 ac_lo= ac_hi=
18469 break
18470 fi
18471 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18472fi
ac1cb8d3 18473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18474 done
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479ac_lo= ac_hi=
18480fi
ac1cb8d3 18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484# Binary search between lo and hi bounds.
18485while test "x$ac_lo" != "x$ac_hi"; do
18486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18487 cat >conftest.$ac_ext <<_ACEOF
18488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
18493$ac_includes_default
18494int
18495main ()
18496{
18497static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18498test_array [0] = 0
18499
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext
18505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18506 (eval $ac_compile) 2>conftest.er1
a848cd7e 18507 ac_status=$?
ac1cb8d3
VS
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
a848cd7e
SC
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
6ebeb4c7 18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_hi=$ac_mid
18526else
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
18530ac_lo=`expr '(' $ac_mid ')' + 1`
18531fi
ac1cb8d3 18532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18533done
18534case $ac_lo in
18535?*) ac_cv_sizeof_long_long=$ac_lo;;
18536'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18537See \`config.log' for more details." >&5
18538echo "$as_me: error: cannot compute sizeof (long long), 77
18539See \`config.log' for more details." >&2;}
18540 { (exit 1); exit 1; }; } ;;
18541esac
18542else
18543 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18544 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18545echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18546 { (exit 1); exit 1; }; }
18547else
18548 cat >conftest.$ac_ext <<_ACEOF
18549/* confdefs.h. */
18550_ACEOF
18551cat confdefs.h >>conftest.$ac_ext
18552cat >>conftest.$ac_ext <<_ACEOF
18553/* end confdefs.h. */
18554$ac_includes_default
18555long longval () { return (long) (sizeof (long long)); }
18556unsigned long ulongval () { return (long) (sizeof (long long)); }
18557#include <stdio.h>
18558#include <stdlib.h>
18559int
18560main ()
18561{
18562
18563 FILE *f = fopen ("conftest.val", "w");
18564 if (! f)
18565 exit (1);
18566 if (((long) (sizeof (long long))) < 0)
18567 {
18568 long i = longval ();
18569 if (i != ((long) (sizeof (long long))))
18570 exit (1);
18571 fprintf (f, "%ld\n", i);
18572 }
18573 else
18574 {
18575 unsigned long i = ulongval ();
18576 if (i != ((long) (sizeof (long long))))
18577 exit (1);
18578 fprintf (f, "%lu\n", i);
18579 }
18580 exit (ferror (f) || fclose (f) != 0);
18581
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest$ac_exeext
18587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
18598else
18599 echo "$as_me: program exited with status $ac_status" >&5
18600echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
18602
18603( exit $ac_status )
18604{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18605See \`config.log' for more details." >&5
18606echo "$as_me: error: cannot compute sizeof (long long), 77
18607See \`config.log' for more details." >&2;}
18608 { (exit 1); exit 1; }; }
18609fi
ac1cb8d3 18610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18611fi
18612fi
18613rm -f conftest.val
18614else
18615 ac_cv_sizeof_long_long=0
18616fi
18617fi
18618echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18619echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18620cat >>confdefs.h <<_ACEOF
18621#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18622_ACEOF
18623
18624
18625 if test "$ac_cv_sizeof_long_long" != "0"; then
18626 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18627 fi
18628 ;;
18629 * )
18630 echo "$as_me:$LINENO: checking for long long" >&5
18631echo $ECHO_N "checking for long long... $ECHO_C" >&6
18632if test "${ac_cv_type_long_long+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635 cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645if ((long long *) 0)
18646 return 0;
18647if (sizeof (long long))
18648 return 0;
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext
18654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18655 (eval $ac_compile) 2>conftest.er1
a848cd7e 18656 ac_status=$?
ac1cb8d3
VS
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
a848cd7e
SC
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
6ebeb4c7 18662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_type_long_long=yes
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_cv_type_long_long=no
18680fi
ac1cb8d3 18681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18682fi
18683echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18684echo "${ECHO_T}$ac_cv_type_long_long" >&6
18685
18686echo "$as_me:$LINENO: checking size of long long" >&5
18687echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18688if test "${ac_cv_sizeof_long_long+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 if test "$ac_cv_type_long_long" = yes; then
18692 # The cast to unsigned long works around a bug in the HP C Compiler
18693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18695 # This bug is HP SR number 8606223364.
18696 if test "$cross_compiling" = yes; then
18697 # Depending upon the size, compute the lo and hi bounds.
18698cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18709test_array [0] = 0
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
6ebeb4c7 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_lo=0 ac_mid=0
18737 while :; do
18738 cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744$ac_includes_default
18745int
18746main ()
18747{
18748static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18749test_array [0] = 0
18750
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext
18756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18757 (eval $ac_compile) 2>conftest.er1
a848cd7e 18758 ac_status=$?
ac1cb8d3
VS
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
a848cd7e
SC
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
6ebeb4c7 18764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_hi=$ac_mid; break
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18782 if test $ac_lo -le $ac_mid; then
18783 ac_lo= ac_hi=
18784 break
18785 fi
18786 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18787fi
ac1cb8d3 18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18789 done
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
18800$ac_includes_default
18801int
18802main ()
18803{
18804static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18805test_array [0] = 0
18806
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext
18812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18813 (eval $ac_compile) 2>conftest.er1
a848cd7e 18814 ac_status=$?
ac1cb8d3
VS
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
a848cd7e
SC
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
6ebeb4c7 18820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_hi=-1 ac_mid=-1
18833 while :; do
18834 cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840$ac_includes_default
18841int
18842main ()
18843{
18844static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18845test_array [0] = 0
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext
18852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18853 (eval $ac_compile) 2>conftest.er1
a848cd7e 18854 ac_status=$?
ac1cb8d3
VS
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
a848cd7e
SC
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
6ebeb4c7 18860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_lo=$ac_mid; break
18873else
18874 echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18878 if test $ac_mid -le $ac_hi; then
18879 ac_lo= ac_hi=
18880 break
18881 fi
18882 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18883fi
ac1cb8d3 18884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18885 done
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_lo= ac_hi=
18891fi
ac1cb8d3 18892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18893fi
ac1cb8d3 18894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18895# Binary search between lo and hi bounds.
18896while test "x$ac_lo" != "x$ac_hi"; do
18897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18898 cat >conftest.$ac_ext <<_ACEOF
18899/* confdefs.h. */
18900_ACEOF
18901cat confdefs.h >>conftest.$ac_ext
18902cat >>conftest.$ac_ext <<_ACEOF
18903/* end confdefs.h. */
18904$ac_includes_default
18905int
18906main ()
18907{
18908static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18909test_array [0] = 0
18910
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext
18916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18917 (eval $ac_compile) 2>conftest.er1
a848cd7e 18918 ac_status=$?
ac1cb8d3
VS
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
a848cd7e
SC
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
6ebeb4c7 18924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_hi=$ac_mid
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941ac_lo=`expr '(' $ac_mid ')' + 1`
18942fi
ac1cb8d3 18943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18944done
18945case $ac_lo in
18946?*) ac_cv_sizeof_long_long=$ac_lo;;
18947'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18948See \`config.log' for more details." >&5
18949echo "$as_me: error: cannot compute sizeof (long long), 77
18950See \`config.log' for more details." >&2;}
18951 { (exit 1); exit 1; }; } ;;
18952esac
18953else
18954 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18955 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18956echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18957 { (exit 1); exit 1; }; }
18958else
18959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965$ac_includes_default
18966long longval () { return (long) (sizeof (long long)); }
18967unsigned long ulongval () { return (long) (sizeof (long long)); }
18968#include <stdio.h>
18969#include <stdlib.h>
18970int
18971main ()
18972{
18973
18974 FILE *f = fopen ("conftest.val", "w");
18975 if (! f)
18976 exit (1);
18977 if (((long) (sizeof (long long))) < 0)
18978 {
18979 long i = longval ();
18980 if (i != ((long) (sizeof (long long))))
18981 exit (1);
18982 fprintf (f, "%ld\n", i);
18983 }
18984 else
18985 {
18986 unsigned long i = ulongval ();
18987 if (i != ((long) (sizeof (long long))))
18988 exit (1);
18989 fprintf (f, "%lu\n", i);
18990 }
18991 exit (ferror (f) || fclose (f) != 0);
18992
18993 ;
18994 return 0;
18995}
18996_ACEOF
18997rm -f conftest$ac_exeext
18998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18999 (eval $ac_link) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
19009else
19010 echo "$as_me: program exited with status $ac_status" >&5
19011echo "$as_me: failed program was:" >&5
19012sed 's/^/| /' conftest.$ac_ext >&5
19013
19014( exit $ac_status )
19015{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19016See \`config.log' for more details." >&5
19017echo "$as_me: error: cannot compute sizeof (long long), 77
19018See \`config.log' for more details." >&2;}
19019 { (exit 1); exit 1; }; }
19020fi
ac1cb8d3 19021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19022fi
19023fi
19024rm -f conftest.val
19025else
19026 ac_cv_sizeof_long_long=0
19027fi
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19030echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19031cat >>confdefs.h <<_ACEOF
19032#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19033_ACEOF
19034
19035
19036esac
19037
238ecede
MW
19038echo "$as_me:$LINENO: checking for wchar_t" >&5
19039echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19040if test "${ac_cv_type_wchar_t+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042else
19043 cat >conftest.$ac_ext <<_ACEOF
19044/* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
19049
83d8eb47
MW
19050 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19051 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19052 # error "fake wchar_t"
19053 #endif
19054 #ifdef HAVE_WCHAR_H
19055 # ifdef __CYGWIN__
19056 # include <stddef.h>
19057 # endif
19058 # include <wchar.h>
19059 #endif
19060 #ifdef HAVE_STDLIB_H
19061 # include <stdlib.h>
19062 #endif
19063 #include <stdio.h>
19064
19065
19066
19067int
19068main ()
19069{
19070if ((wchar_t *) 0)
19071 return 0;
19072if (sizeof (wchar_t))
19073 return 0;
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext
19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
6ebeb4c7 19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_type_wchar_t=yes
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104ac_cv_type_wchar_t=no
19105fi
19106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107fi
19108echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19109echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19110
a848cd7e
SC
19111echo "$as_me:$LINENO: checking size of wchar_t" >&5
19112echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19113if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115else
238ecede
MW
19116 if test "$ac_cv_type_wchar_t" = yes; then
19117 # The cast to unsigned long works around a bug in the HP C Compiler
19118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19120 # This bug is HP SR number 8606223364.
19121 if test "$cross_compiling" = yes; then
19122 # Depending upon the size, compute the lo and hi bounds.
19123cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129
83d8eb47
MW
19130 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19131 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19132 # error "fake wchar_t"
19133 #endif
19134 #ifdef HAVE_WCHAR_H
19135 # ifdef __CYGWIN__
19136 # include <stddef.h>
19137 # endif
19138 # include <wchar.h>
19139 #endif
19140 #ifdef HAVE_STDLIB_H
19141 # include <stdlib.h>
19142 #endif
19143 #include <stdio.h>
19144
19145
19146
19147int
19148main ()
19149{
19150static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19151test_array [0] = 0
19152
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
6ebeb4c7 19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_lo=0 ac_mid=0
19179 while :; do
19180 cat >conftest.$ac_ext <<_ACEOF
19181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
19186
83d8eb47
MW
19187 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19188 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19189 # error "fake wchar_t"
19190 #endif
19191 #ifdef HAVE_WCHAR_H
19192 # ifdef __CYGWIN__
19193 # include <stddef.h>
19194 # endif
19195 # include <wchar.h>
19196 #endif
19197 #ifdef HAVE_STDLIB_H
19198 # include <stdlib.h>
19199 #endif
19200 #include <stdio.h>
19201
19202
19203
19204int
19205main ()
19206{
19207static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19208test_array [0] = 0
19209
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
6ebeb4c7 19223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_hi=$ac_mid; break
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240ac_lo=`expr $ac_mid + 1`
19241 if test $ac_lo -le $ac_mid; then
19242 ac_lo= ac_hi=
19243 break
19244 fi
19245 ac_mid=`expr 2 '*' $ac_mid + 1`
19246fi
19247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19248 done
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253cat >conftest.$ac_ext <<_ACEOF
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259
83d8eb47
MW
19260 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19261 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19262 # error "fake wchar_t"
19263 #endif
19264 #ifdef HAVE_WCHAR_H
19265 # ifdef __CYGWIN__
19266 # include <stddef.h>
19267 # endif
19268 # include <wchar.h>
19269 #endif
19270 #ifdef HAVE_STDLIB_H
19271 # include <stdlib.h>
19272 #endif
19273 #include <stdio.h>
19274
19275
19276
19277int
19278main ()
19279{
19280static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19281test_array [0] = 0
19282
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext
19288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289 (eval $ac_compile) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
6ebeb4c7 19296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_hi=-1 ac_mid=-1
19309 while :; do
19310 cat >conftest.$ac_ext <<_ACEOF
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316
83d8eb47
MW
19317 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19318 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19319 # error "fake wchar_t"
19320 #endif
19321 #ifdef HAVE_WCHAR_H
19322 # ifdef __CYGWIN__
19323 # include <stddef.h>
19324 # endif
19325 # include <wchar.h>
19326 #endif
19327 #ifdef HAVE_STDLIB_H
19328 # include <stdlib.h>
19329 #endif
19330 #include <stdio.h>
19331
19332
19333
19334int
19335main ()
19336{
19337static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19338test_array [0] = 0
19339
19340 ;
19341 return 0;
19342}
19343_ACEOF
19344rm -f conftest.$ac_objext
19345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346 (eval $ac_compile) 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
6ebeb4c7 19353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_lo=$ac_mid; break
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370ac_hi=`expr '(' $ac_mid ')' - 1`
19371 if test $ac_mid -le $ac_hi; then
19372 ac_lo= ac_hi=
19373 break
19374 fi
19375 ac_mid=`expr 2 '*' $ac_mid`
19376fi
19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 done
19379else
19380 echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_lo= ac_hi=
19384fi
19385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386fi
19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388# Binary search between lo and hi bounds.
19389while test "x$ac_lo" != "x$ac_hi"; do
19390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397
83d8eb47
MW
19398 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19399 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19400 # error "fake wchar_t"
19401 #endif
19402 #ifdef HAVE_WCHAR_H
19403 # ifdef __CYGWIN__
19404 # include <stddef.h>
19405 # endif
19406 # include <wchar.h>
19407 #endif
19408 #ifdef HAVE_STDLIB_H
19409 # include <stdlib.h>
19410 #endif
19411 #include <stdio.h>
a848cd7e 19412
a848cd7e 19413
a848cd7e 19414
238ecede
MW
19415int
19416main ()
19417{
19418static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19419test_array [0] = 0
a848cd7e 19420
238ecede
MW
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest.$ac_objext
19426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
6ebeb4c7 19434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_hi=$ac_mid
19447else
19448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451ac_lo=`expr '(' $ac_mid ')' + 1`
19452fi
19453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19454done
19455case $ac_lo in
19456?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19457'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19458See \`config.log' for more details." >&5
19459echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19460See \`config.log' for more details." >&2;}
19461 { (exit 1); exit 1; }; } ;;
19462esac
19463else
19464 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19465 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19466echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19467 { (exit 1); exit 1; }; }
a848cd7e
SC
19468else
19469 cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475
83d8eb47
MW
19476 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19477 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19478 # error "fake wchar_t"
19479 #endif
19480 #ifdef HAVE_WCHAR_H
19481 # ifdef __CYGWIN__
19482 # include <stddef.h>
19483 # endif
19484 # include <wchar.h>
19485 #endif
19486 #ifdef HAVE_STDLIB_H
19487 # include <stdlib.h>
19488 #endif
19489 #include <stdio.h>
19490
19491
19492
19493long longval () { return (long) (sizeof (wchar_t)); }
19494unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19495#include <stdio.h>
19496#include <stdlib.h>
19497int
19498main ()
19499{
a848cd7e 19500
238ecede
MW
19501 FILE *f = fopen ("conftest.val", "w");
19502 if (! f)
19503 exit (1);
19504 if (((long) (sizeof (wchar_t))) < 0)
19505 {
19506 long i = longval ();
19507 if (i != ((long) (sizeof (wchar_t))))
19508 exit (1);
19509 fprintf (f, "%ld\n", i);
19510 }
19511 else
19512 {
19513 unsigned long i = ulongval ();
19514 if (i != ((long) (sizeof (wchar_t))))
19515 exit (1);
19516 fprintf (f, "%lu\n", i);
19517 }
19518 exit (ferror (f) || fclose (f) != 0);
19519
19520 ;
19521 return 0;
19522}
a848cd7e
SC
19523_ACEOF
19524rm -f conftest$ac_exeext
19525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
238ecede 19535 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19536else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541( exit $ac_status )
238ecede
MW
19542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19543See \`config.log' for more details." >&5
19544echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19545See \`config.log' for more details." >&2;}
19546 { (exit 1); exit 1; }; }
a848cd7e 19547fi
ac1cb8d3 19548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19549fi
a848cd7e 19550fi
238ecede
MW
19551rm -f conftest.val
19552else
19553 ac_cv_sizeof_wchar_t=0
19554fi
19555fi
19556echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19557echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19558cat >>confdefs.h <<_ACEOF
238ecede 19559#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19560_ACEOF
19561
19562
47a7e797
MW
19563if test "$ac_cv_sizeof_wchar_t" != "0"; then
19564 wxUSE_WCHAR_T=yes
19565else
19566 wxUSE_WCHAR_T=no
19567fi
238ecede 19568
ba3d13e1
VZ
19569echo "$as_me:$LINENO: checking for va_copy" >&5
19570echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19571if test "${wx_cv_func_va_copy+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574
19575 cat >conftest.$ac_ext <<_ACEOF
19576
19577 #include <stdarg.h>
19578 void foo(char *f, ...)
19579 {
19580 va_list ap1, ap2;
19581 va_start(ap1, f);
19582 va_copy(ap2, ap1);
19583 va_end(ap2);
19584 va_end(ap1);
19585 }
5886b072
VZ
19586 int main()
19587 {
b902e639
VZ
19588 foo("hi", 17);
19589 return 0;
5886b072 19590 }
ba3d13e1
VZ
19591_ACEOF
19592rm -f conftest.$ac_objext conftest$ac_exeext
19593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
6ebeb4c7 19601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
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); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 wx_cv_func_va_copy=yes
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618wx_cv_func_va_copy=no
19619
19620fi
19621rm -f conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623
19624
19625fi
19626echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19627echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19628
19629if test $wx_cv_func_va_copy = "yes"; then
19630 cat >>confdefs.h <<\_ACEOF
19631#define HAVE_VA_COPY 1
19632_ACEOF
19633
19634else
19635 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19636echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19637if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639else
19640
19641 if test "$cross_compiling" = yes; then
19642 wx_cv_type_va_list_lvalue=yes
19643
19644else
19645 cat >conftest.$ac_ext <<_ACEOF
19646
19647 #include <stdarg.h>
19648 int foo(char *f, ...)
19649 {
19650 va_list ap1, ap2;
19651 va_start(ap1, f);
19652 ap2 = ap1;
19653 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19654 return 1;
19655 va_end(ap2);
19656 va_end(ap1);
19657 return 0;
19658 }
19659 int main()
19660 {
19661 return foo("hi", 17);
19662 }
19663_ACEOF
19664rm -f conftest$ac_exeext
19665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 wx_cv_type_va_list_lvalue=yes
19676else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681( exit $ac_status )
19682wx_cv_type_va_list_lvalue=no
19683fi
19684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685fi
19686
19687
19688fi
19689echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19690echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19691
19692 if test $wx_cv_type_va_list_lvalue != "yes"; then
19693 cat >>confdefs.h <<\_ACEOF
19694#define VA_LIST_IS_ARRAY 1
19695_ACEOF
19696
19697 fi
19698fi
19699
a848cd7e
SC
19700# Check whether --enable-largefile or --disable-largefile was given.
19701if test "${enable_largefile+set}" = set; then
19702 enableval="$enable_largefile"
19703
19704fi;
19705if test "$enable_largefile" != no; then
19706 wx_largefile=no
19707
19708 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19709echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19710if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#define _FILE_OFFSET_BITS 64
19721 #include <sys/types.h>
19722int
19723main ()
19724{
19725typedef struct {
19726 unsigned int field: sizeof(off_t) == 8;
19727} wxlf;
19728
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext
19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19735 (eval $ac_compile) 2>conftest.er1
a848cd7e 19736 ac_status=$?
ac1cb8d3
VS
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
a848cd7e
SC
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
6ebeb4c7 19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_sys_file_offset_bits=64
19755else
19756 echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_cv_sys_file_offset_bits=no
19760fi
ac1cb8d3 19761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19762
19763
19764fi
19765echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19766echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19767
19768 if test "$ac_cv_sys_file_offset_bits" != no; then
19769 wx_largefile=yes
19770 cat >>confdefs.h <<_ACEOF
19771#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19772_ACEOF
19773
19774 fi
19775
19776 if test "x$wx_largefile" != "xyes"; then
19777
19778 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19779echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19780if test "${ac_cv_sys_large_files+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790#define _LARGE_FILES 1
19791 #include <sys/types.h>
19792int
19793main ()
19794{
19795typedef struct {
19796 unsigned int field: sizeof(off_t) == 8;
19797} wxlf;
19798
19799 ;
19800 return 0;
19801}
19802_ACEOF
19803rm -f conftest.$ac_objext
19804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19805 (eval $ac_compile) 2>conftest.er1
a848cd7e 19806 ac_status=$?
ac1cb8d3
VS
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
a848cd7e
SC
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
6ebeb4c7 19812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_sys_large_files=1
19825else
19826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829ac_cv_sys_large_files=no
19830fi
ac1cb8d3 19831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19832
19833
19834fi
19835echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19836echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19837
19838 if test "$ac_cv_sys_large_files" != no; then
19839 wx_largefile=yes
19840 cat >>confdefs.h <<_ACEOF
19841#define _LARGE_FILES $ac_cv_sys_large_files
19842_ACEOF
19843
19844 fi
19845
19846 fi
19847
19848 echo "$as_me:$LINENO: checking if large file support is available" >&5
19849echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19850 if test "x$wx_largefile" = "xyes"; then
19851 cat >>confdefs.h <<\_ACEOF
19852#define HAVE_LARGEFILE_SUPPORT 1
19853_ACEOF
19854
19855 fi
19856 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19857echo "${ECHO_T}$wx_largefile" >&6
19858fi
19859
5b674b9d
DE
19860
19861if test "x$wx_largefile" = "xyes"; then
19862 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19863 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
19864
19865 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
19866 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
19867echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
19868if test "${wx_cv_STDC_EXT_required+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871
19872
19873
19874 ac_ext=cc
19875ac_cpp='$CXXCPP $CPPFLAGS'
19876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19879
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886
19887int
19888main ()
19889{
19890
19891 #ifndef __STDC_EXT__
19892 choke me
19893 #endif
19894
19895 ;
19896 return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
19900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest.$ac_objext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 wx_cv_STDC_EXT_required=no
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925wx_cv_STDC_EXT_required=yes
19926
19927fi
19928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19929 ac_ext=c
19930ac_cpp='$CPP $CPPFLAGS'
19931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935
19936
19937fi
19938echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
19939echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
19940 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
19941 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
19942 fi
19943 fi
5b674b9d
DE
19944 else
19945 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19946 fi
19947 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19948echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19949if test "${ac_cv_sys_largefile_source+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951else
19952 while :; do
19953 ac_cv_sys_largefile_source=no
19954 cat >conftest.$ac_ext <<_ACEOF
19955/* confdefs.h. */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h. */
19960#include <stdio.h>
19961int
19962main ()
19963{
19964return !fseeko;
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
6ebeb4c7 19978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 break
19991else
19992 echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995fi
19996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003#define _LARGEFILE_SOURCE 1
20004#include <stdio.h>
20005int
20006main ()
20007{
20008return !fseeko;
20009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
6ebeb4c7 20022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest.$ac_objext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_cv_sys_largefile_source=1; break
20035else
20036 echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039fi
20040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20041 break
20042done
20043fi
20044echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20045echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20046if test "$ac_cv_sys_largefile_source" != no; then
20047
20048cat >>confdefs.h <<_ACEOF
20049#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20050_ACEOF
20051
20052fi
20053rm -f conftest*
20054
20055# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20056# in glibc 2.1.3, but that breaks too many other things.
20057# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20058echo "$as_me:$LINENO: checking for fseeko" >&5
20059echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20060if test "${ac_cv_func_fseeko+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063 cat >conftest.$ac_ext <<_ACEOF
20064/* confdefs.h. */
20065_ACEOF
20066cat confdefs.h >>conftest.$ac_ext
20067cat >>conftest.$ac_ext <<_ACEOF
20068/* end confdefs.h. */
20069#include <stdio.h>
20070int
20071main ()
20072{
20073return fseeko && fseeko (stdin, 0, 0);
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext conftest$ac_exeext
20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
6ebeb4c7 20087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest$ac_exeext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_func_fseeko=yes
20100else
20101 echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104ac_cv_func_fseeko=no
20105fi
20106rm -f conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20108fi
20109echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20110echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20111if test $ac_cv_func_fseeko = yes; then
20112
20113cat >>confdefs.h <<\_ACEOF
20114#define HAVE_FSEEKO 1
20115_ACEOF
20116
20117fi
20118
5b674b9d
DE
20119 if test "$ac_cv_sys_largefile_source" != no; then
20120 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20121 fi
20122 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20123fi
20124
20125echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20126echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20127if test "${ac_cv_c_bigendian+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129else
20130 ac_cv_c_bigendian=unknown
20131# See if sys/param.h defines the BYTE_ORDER macro.
20132cat >conftest.$ac_ext <<_ACEOF
20133/* confdefs.h. */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h. */
20138#include <sys/types.h>
20139#include <sys/param.h>
20140int
20141main ()
20142{
20143
20144#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20145 bogus endian macros
20146#endif
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151rm -f conftest.$ac_objext
20152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20153 (eval $ac_compile) 2>conftest.er1
a848cd7e 20154 ac_status=$?
ac1cb8d3
VS
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
a848cd7e
SC
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
6ebeb4c7 20160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 # It does; now see whether it defined to BIG_ENDIAN or not.
20173cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179#include <sys/types.h>
20180#include <sys/param.h>
20181int
20182main ()
20183{
20184
20185#if BYTE_ORDER != BIG_ENDIAN
20186 not big endian
20187#endif
20188 ;
20189 return 0;
20190}
20191_ACEOF
20192rm -f conftest.$ac_objext
20193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20194 (eval $ac_compile) 2>conftest.er1
a848cd7e 20195 ac_status=$?
ac1cb8d3
VS
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
a848cd7e
SC
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
6ebeb4c7 20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_c_bigendian=yes
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218ac_cv_c_bigendian=no
20219fi
ac1cb8d3 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20221else
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225fi
ac1cb8d3 20226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20227if test $ac_cv_c_bigendian = unknown; then
20228if test "$cross_compiling" = yes; then
20229 ac_cv_c_bigendian=unknown
20230else
20231 cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237main () {
20238 /* Are we little or big endian? From Harbison&Steele. */
20239 union
20240 {
20241 long l;
20242 char c[sizeof (long)];
20243 } u;
20244 u.l = 1;
20245 exit (u.c[sizeof (long) - 1] == 1);
20246}
20247_ACEOF
20248rm -f conftest$ac_exeext
20249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20250 (eval $ac_link) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_c_bigendian=no
20260else
20261 echo "$as_me: program exited with status $ac_status" >&5
20262echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265( exit $ac_status )
20266ac_cv_c_bigendian=yes
20267fi
ac1cb8d3 20268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20269fi
20270fi
20271fi
20272echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20273echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20274if test $ac_cv_c_bigendian = unknown; then
20275 { 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
20276echo "$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;}
20277fi
20278if test $ac_cv_c_bigendian = yes; then
20279 cat >>confdefs.h <<\_ACEOF
20280#define WORDS_BIGENDIAN 1
20281_ACEOF
20282
20283fi
20284
20285
20286ac_ext=cc
20287ac_cpp='$CXXCPP $CPPFLAGS'
20288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20291echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20293if test -z "$CXXCPP"; then
20294 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296else
20297 # Double quotes because CXXCPP needs to be expanded
20298 for CXXCPP in "$CXX -E" "/lib/cpp"
20299 do
20300 ac_preproc_ok=false
20301for ac_cxx_preproc_warn_flag in '' yes
20302do
20303 # Use a header file that comes with gcc, so configuring glibc
20304 # with a fresh cross-compiler works.
20305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20306 # <limits.h> exists even on freestanding compilers.
20307 # On the NeXT, cc -E runs the code through the compiler's parser,
20308 # not just through cpp. "Syntax error" is here to catch this case.
20309 cat >conftest.$ac_ext <<_ACEOF
20310/* confdefs.h. */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h. */
20315#ifdef __STDC__
20316# include <limits.h>
20317#else
20318# include <assert.h>
20319#endif
ac1cb8d3 20320 Syntax error
a848cd7e
SC
20321_ACEOF
20322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } >/dev/null; then
20330 if test -s conftest.err; then
20331 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20332 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20333 else
20334 ac_cpp_err=
20335 fi
20336else
20337 ac_cpp_err=yes
20338fi
20339if test -z "$ac_cpp_err"; then
20340 :
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 # Broken: fails on valid input.
20346continue
20347fi
20348rm -f conftest.err conftest.$ac_ext
20349
20350 # OK, works on sane cases. Now check whether non-existent headers
20351 # can be detected and how.
20352 cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358#include <ac_nonexistent.h>
20359_ACEOF
20360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } >/dev/null; then
20368 if test -s conftest.err; then
20369 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20371 else
20372 ac_cpp_err=
20373 fi
20374else
20375 ac_cpp_err=yes
20376fi
20377if test -z "$ac_cpp_err"; then
20378 # Broken: success on invalid input.
20379continue
20380else
20381 echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 # Passes both tests.
20385ac_preproc_ok=:
20386break
20387fi
20388rm -f conftest.err conftest.$ac_ext
20389
20390done
20391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20392rm -f conftest.err conftest.$ac_ext
20393if $ac_preproc_ok; then
20394 break
20395fi
20396
20397 done
20398 ac_cv_prog_CXXCPP=$CXXCPP
20399
20400fi
20401 CXXCPP=$ac_cv_prog_CXXCPP
20402else
20403 ac_cv_prog_CXXCPP=$CXXCPP
20404fi
20405echo "$as_me:$LINENO: result: $CXXCPP" >&5
20406echo "${ECHO_T}$CXXCPP" >&6
20407ac_preproc_ok=false
20408for ac_cxx_preproc_warn_flag in '' yes
20409do
20410 # Use a header file that comes with gcc, so configuring glibc
20411 # with a fresh cross-compiler works.
20412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 # <limits.h> exists even on freestanding compilers.
20414 # On the NeXT, cc -E runs the code through the compiler's parser,
20415 # not just through cpp. "Syntax error" is here to catch this case.
20416 cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422#ifdef __STDC__
20423# include <limits.h>
20424#else
20425# include <assert.h>
20426#endif
ac1cb8d3 20427 Syntax error
a848cd7e
SC
20428_ACEOF
20429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } >/dev/null; then
20437 if test -s conftest.err; then
20438 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20439 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20440 else
20441 ac_cpp_err=
20442 fi
20443else
20444 ac_cpp_err=yes
20445fi
20446if test -z "$ac_cpp_err"; then
20447 :
20448else
20449 echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 # Broken: fails on valid input.
20453continue
20454fi
20455rm -f conftest.err conftest.$ac_ext
20456
20457 # OK, works on sane cases. Now check whether non-existent headers
20458 # can be detected and how.
20459 cat >conftest.$ac_ext <<_ACEOF
20460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
20465#include <ac_nonexistent.h>
20466_ACEOF
20467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } >/dev/null; then
20475 if test -s conftest.err; then
20476 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20477 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20478 else
20479 ac_cpp_err=
20480 fi
20481else
20482 ac_cpp_err=yes
20483fi
20484if test -z "$ac_cpp_err"; then
20485 # Broken: success on invalid input.
20486continue
20487else
20488 echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 # Passes both tests.
20492ac_preproc_ok=:
20493break
20494fi
20495rm -f conftest.err conftest.$ac_ext
20496
20497done
20498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20499rm -f conftest.err conftest.$ac_ext
20500if $ac_preproc_ok; then
20501 :
20502else
20503 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20504See \`config.log' for more details." >&5
20505echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20506See \`config.log' for more details." >&2;}
20507 { (exit 1); exit 1; }; }
20508fi
20509
20510ac_ext=cc
20511ac_cpp='$CXXCPP $CPPFLAGS'
20512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20515
20516
20517
20518
20519
20520 ac_ext=cc
20521ac_cpp='$CXXCPP $CPPFLAGS'
20522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20525
20526
20527
20528for ac_header in iostream
20529do
20530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20531if eval "test \"\${$as_ac_Header+set}\" = set"; then
20532 echo "$as_me:$LINENO: checking for $ac_header" >&5
20533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20534if eval "test \"\${$as_ac_Header+set}\" = set"; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536fi
20537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20539else
20540 # Is the header compilable?
20541echo "$as_me:$LINENO: checking $ac_header usability" >&5
20542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20543cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549$ac_includes_default
20550#include <$ac_header>
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20554 (eval $ac_compile) 2>conftest.er1
a848cd7e 20555 ac_status=$?
ac1cb8d3
VS
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
a848cd7e
SC
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
6ebeb4c7 20561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_header_compiler=yes
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578ac_header_compiler=no
20579fi
ac1cb8d3 20580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582echo "${ECHO_T}$ac_header_compiler" >&6
20583
20584# Is the header present?
20585echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20587cat >conftest.$ac_ext <<_ACEOF
20588/* confdefs.h. */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h. */
20593#include <$ac_header>
20594_ACEOF
20595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } >/dev/null; then
20603 if test -s conftest.err; then
20604 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20606 else
20607 ac_cpp_err=
20608 fi
20609else
20610 ac_cpp_err=yes
20611fi
20612if test -z "$ac_cpp_err"; then
20613 ac_header_preproc=yes
20614else
20615 echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 ac_header_preproc=no
20619fi
20620rm -f conftest.err conftest.$ac_ext
20621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20622echo "${ECHO_T}$ac_header_preproc" >&6
20623
20624# So? What about this header?
ac1cb8d3
VS
20625case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20626 yes:no: )
a848cd7e
SC
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20631 ac_header_preproc=yes
a848cd7e 20632 ;;
ac1cb8d3 20633 no:yes:* )
a848cd7e
SC
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20646 (
20647 cat <<\_ASBOX
ac1cb8d3
VS
20648## ----------------------------------------- ##
20649## Report this to wx-dev@lists.wxwidgets.org ##
20650## ----------------------------------------- ##
a848cd7e
SC
20651_ASBOX
20652 ) |
20653 sed "s/^/$as_me: WARNING: /" >&2
20654 ;;
20655esac
20656echo "$as_me:$LINENO: checking for $ac_header" >&5
20657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20658if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660else
ac1cb8d3 20661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20662fi
20663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20665
20666fi
20667if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20670_ACEOF
20671
20672fi
20673
20674done
20675
20676
20677 if test "$ac_cv_header_iostream" = "yes" ; then
20678 :
20679 else
20680 cat >>confdefs.h <<\_ACEOF
20681#define wxUSE_IOSTREAMH 1
20682_ACEOF
20683
20684 fi
20685
20686 ac_ext=c
20687ac_cpp='$CPP $CPPFLAGS'
20688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20690ac_compiler_gnu=$ac_cv_c_compiler_gnu
20691
20692
20693
20694
20695 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20696echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20697if test "${wx_cv_cpp_bool+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700
20701
20702
20703 ac_ext=cc
20704ac_cpp='$CXXCPP $CPPFLAGS'
20705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20708
20709
20710 cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716
20717
20718int
20719main ()
20720{
20721
20722 bool b = true;
20723
20724 return 0;
20725
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20732 (eval $ac_compile) 2>conftest.er1
a848cd7e 20733 ac_status=$?
ac1cb8d3
VS
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
a848cd7e
SC
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
6ebeb4c7 20739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751
20752 wx_cv_cpp_bool=yes
20753
20754else
20755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759 wx_cv_cpp_bool=no
20760
20761
20762fi
ac1cb8d3 20763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20764
20765 ac_ext=c
20766ac_cpp='$CPP $CPPFLAGS'
20767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769ac_compiler_gnu=$ac_cv_c_compiler_gnu
20770
20771
20772fi
20773echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20774echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20775
20776 if test "$wx_cv_cpp_bool" = "yes"; then
20777 cat >>confdefs.h <<\_ACEOF
20778#define HAVE_BOOL 1
20779_ACEOF
20780
20781 fi
20782
20783
20784
20785 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20786echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20787if test "${wx_cv_explicit+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790
20791
20792
20793 ac_ext=cc
20794ac_cpp='$CXXCPP $CPPFLAGS'
20795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799
20800 cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
20806
20807 class Foo { public: explicit Foo(int) {} };
20808
20809int
20810main ()
20811{
20812
20813 return 0;
20814
20815 ;
20816 return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext
20820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20821 (eval $ac_compile) 2>conftest.er1
a848cd7e 20822 ac_status=$?
ac1cb8d3
VS
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
a848cd7e
SC
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
6ebeb4c7 20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840
20841 cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
20847
20848 class Foo { public: explicit Foo(int) {} };
20849 static void TakeFoo(const Foo& foo) { }
20850
20851int
20852main ()
20853{
20854
20855 TakeFoo(17);
20856 return 0;
20857
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20864 (eval $ac_compile) 2>conftest.er1
a848cd7e 20865 ac_status=$?
ac1cb8d3
VS
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
a848cd7e
SC
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
6ebeb4c7 20871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 wx_cv_explicit=no
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888wx_cv_explicit=yes
20889
20890fi
ac1cb8d3 20891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20892
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897wx_cv_explicit=no
20898
20899fi
ac1cb8d3 20900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20901
20902 ac_ext=c
20903ac_cpp='$CPP $CPPFLAGS'
20904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906ac_compiler_gnu=$ac_cv_c_compiler_gnu
20907
20908
20909fi
20910echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20911echo "${ECHO_T}$wx_cv_explicit" >&6
20912
20913 if test "$wx_cv_explicit" = "yes"; then
20914 cat >>confdefs.h <<\_ACEOF
20915#define HAVE_EXPLICIT 1
20916_ACEOF
20917
20918 fi
20919
20920
20921echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20922echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20923if test "${ac_cv_cxx_const_cast+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926
20927
20928 ac_ext=cc
20929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
20940
20941int
20942main ()
20943{
20944int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext
20950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20951 (eval $ac_compile) 2>conftest.er1
a848cd7e 20952 ac_status=$?
ac1cb8d3
VS
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
a848cd7e
SC
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
6ebeb4c7 20958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_cxx_const_cast=yes
20971else
20972 echo "$as_me: failed program was:" >&5
20973sed 's/^/| /' conftest.$ac_ext >&5
20974
20975ac_cv_cxx_const_cast=no
20976fi
ac1cb8d3 20977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20978 ac_ext=c
20979ac_cpp='$CPP $CPPFLAGS'
20980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982ac_compiler_gnu=$ac_cv_c_compiler_gnu
20983
20984
20985fi
20986echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20987echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20988if test "$ac_cv_cxx_const_cast" = yes; then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_CONST_CAST
20992_ACEOF
20993
20994fi
20995
7714864e
RL
20996echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20997echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20998if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001
21002
21003 ac_ext=cc
21004ac_cpp='$CXXCPP $CPPFLAGS'
21005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21008
21009 cat >conftest.$ac_ext <<_ACEOF
21010/* confdefs.h. */
21011_ACEOF
21012cat confdefs.h >>conftest.$ac_ext
21013cat >>conftest.$ac_ext <<_ACEOF
21014/* end confdefs.h. */
21015#include <typeinfo>
21016class Base { public : Base () {} virtual void f () = 0;};
21017class Derived : public Base { public : Derived () {} virtual void f () {} };
21018class Unrelated { public : Unrelated () {} };
21019int g (Unrelated&) { return 0; }
21020int
21021main ()
21022{
21023
21024Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
21030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21032 ac_status=$?
21033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
6ebeb4c7 21038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_cv_cxx_reinterpret_cast=yes
21051else
21052 echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055ac_cv_cxx_reinterpret_cast=no
21056fi
21057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21058 ac_ext=c
21059ac_cpp='$CPP $CPPFLAGS'
21060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
21064
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21067echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21068if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21069
21070cat >>confdefs.h <<\_ACEOF
21071#define HAVE_REINTERPRET_CAST
21072_ACEOF
21073
21074fi
21075
a848cd7e
SC
21076echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21077echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21078if test "${ac_cv_cxx_static_cast+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080else
21081
21082
21083 ac_ext=cc
21084ac_cpp='$CXXCPP $CPPFLAGS'
21085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088
21089 cat >conftest.$ac_ext <<_ACEOF
21090/* confdefs.h. */
21091_ACEOF
21092cat confdefs.h >>conftest.$ac_ext
21093cat >>conftest.$ac_ext <<_ACEOF
21094/* end confdefs.h. */
21095#include <typeinfo>
21096class Base { public : Base () {} virtual void f () = 0; };
21097class Derived : public Base { public : Derived () {} virtual void f () {} };
21098int g (Derived&) { return 0; }
21099int
21100main ()
21101{
21102
21103Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext
21109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21110 (eval $ac_compile) 2>conftest.er1
a848cd7e 21111 ac_status=$?
ac1cb8d3
VS
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
a848cd7e
SC
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
6ebeb4c7 21117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_cxx_static_cast=yes
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134ac_cv_cxx_static_cast=no
21135fi
ac1cb8d3 21136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21137 ac_ext=c
21138ac_cpp='$CPP $CPPFLAGS'
21139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141ac_compiler_gnu=$ac_cv_c_compiler_gnu
21142
21143
21144fi
21145echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21146echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21147if test "$ac_cv_cxx_static_cast" = yes; then
21148
21149cat >>confdefs.h <<\_ACEOF
21150#define HAVE_STATIC_CAST
21151_ACEOF
21152
21153fi
21154
21155
3c28b7cb
MW
21156if test "x$SUNCXX" = xyes; then
21157 CXXFLAGS="$CXXFLAGS -features=tmplife"
21158fi
21159
f56c22b4 21160if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21161 ac_ext=cc
21162ac_cpp='$CXXCPP $CPPFLAGS'
21163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21166
21167
f56c22b4
MW
21168 if test "$wxUSE_UNICODE" = "yes"; then
21169 std_string="std::wstring"
21170 char_type="wchar_t"
21171 else
21172 std_string="std::string"
21173 char_type="char"
21174 fi
21175
21176 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21177echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21178 cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
21184#include <string>
a848cd7e
SC
21185int
21186main ()
21187{
f56c22b4 21188$std_string foo;
a848cd7e
SC
21189 ;
21190 return 0;
21191}
21192_ACEOF
21193rm -f conftest.$ac_objext
21194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21195 (eval $ac_compile) 2>conftest.er1
a848cd7e 21196 ac_status=$?
ac1cb8d3
VS
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
a848cd7e
SC
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
6ebeb4c7 21202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 echo "$as_me:$LINENO: result: yes" >&5
21215echo "${ECHO_T}yes" >&6
0a08f02a
MB
21216 cat >>confdefs.h <<\_ACEOF
21217#define HAVE_STD_WSTRING 1
21218_ACEOF
21219
a848cd7e
SC
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224echo "$as_me:$LINENO: result: no" >&5
21225echo "${ECHO_T}no" >&6
f56c22b4
MW
21226 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21227echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21228 cat >conftest.$ac_ext <<_ACEOF
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
21234
21235 #ifdef HAVE_WCHAR_H
21236 # ifdef __CYGWIN__
21237 # include <stddef.h>
21238 # endif
21239 # include <wchar.h>
21240 #endif
21241 #ifdef HAVE_STDLIB_H
21242 # include <stdlib.h>
21243 #endif
21244 #include <stdio.h>
21245 #include <string>
21246
21247int
21248main ()
21249{
f56c22b4
MW
21250std::basic_string<$char_type> foo;
21251 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext
21257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258 (eval $ac_compile) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
6ebeb4c7 21265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 echo "$as_me:$LINENO: result: yes" >&5
21278echo "${ECHO_T}yes" >&6
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283echo "$as_me:$LINENO: result: no" >&5
21284echo "${ECHO_T}no" >&6
f56c22b4 21285 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21286 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21287echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21288 { (exit 1); exit 1; }; }
21289 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21290 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21291echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21292 { (exit 1); exit 1; }; }
f56c22b4
MW
21293 else
21294 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21295echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21296 wxUSE_STD_STRING=no
21297 fi
21298
0a08f02a 21299
a848cd7e 21300fi
ac1cb8d3 21301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21302
0a08f02a
MB
21303fi
21304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21305
21306 ac_ext=c
21307ac_cpp='$CPP $CPPFLAGS'
21308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21310ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312fi
21313
21314if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21315 ac_ext=cc
21316ac_cpp='$CXXCPP $CPPFLAGS'
21317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21320
21321
21322 echo "$as_me:$LINENO: checking for std::istream" >&5
21323echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21324if test "${ac_cv_type_std__istream+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326else
21327 cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h. */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h. */
21333#include <iostream>
21334
21335int
21336main ()
21337{
21338if ((std::istream *) 0)
21339 return 0;
21340if (sizeof (std::istream))
21341 return 0;
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext
21347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
6ebeb4c7 21355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_std__istream=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_type_std__istream=no
21373fi
21374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21375fi
21376echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21377echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21378if test $ac_cv_type_std__istream = yes; then
21379
21380cat >>confdefs.h <<_ACEOF
21381#define HAVE_STD__ISTREAM 1
21382_ACEOF
21383
21384
21385else
21386 wxUSE_STD_IOSTREAM=no
21387fi
21388echo "$as_me:$LINENO: checking for std::ostream" >&5
21389echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21390if test "${ac_cv_type_std__ostream+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392else
21393 cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399#include <iostream>
21400
21401int
21402main ()
21403{
21404if ((std::ostream *) 0)
21405 return 0;
21406if (sizeof (std::ostream))
21407 return 0;
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext
21413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414 (eval $ac_compile) 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
6ebeb4c7 21421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_type_std__ostream=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_cv_type_std__ostream=no
21439fi
21440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21441fi
21442echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21443echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21444if test $ac_cv_type_std__ostream = yes; then
21445
21446cat >>confdefs.h <<_ACEOF
21447#define HAVE_STD__OSTREAM 1
21448_ACEOF
21449
21450
21451else
21452 wxUSE_STD_IOSTREAM=no
21453fi
21454
21455
21456 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21457 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21458 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21459echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21460 { (exit 1); exit 1; }; }
21461 else
21462 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21463echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21464 fi
f56c22b4
MW
21465 fi
21466
21467 ac_ext=c
21468ac_cpp='$CPP $CPPFLAGS'
21469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21471ac_compiler_gnu=$ac_cv_c_compiler_gnu
21472
21473fi
21474
21475if test "$wxUSE_STL" = "yes"; then
21476 ac_ext=cc
21477ac_cpp='$CXXCPP $CPPFLAGS'
21478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481
21482
21483 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21484echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21485 cat >conftest.$ac_ext <<_ACEOF
21486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
21490/* end confdefs.h. */
21491#include <string>
0a08f02a
MB
21492 #include <functional>
21493 #include <algorithm>
21494 #include <vector>
21495 #include <list>
a848cd7e
SC
21496int
21497main ()
21498{
0a08f02a
MB
21499std::vector<int> moo;
21500 std::list<int> foo;
21501 std::vector<int>::iterator it =
21502 std::find_if(moo.begin(), moo.end(),
21503 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21504 ;
21505 return 0;
21506}
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21510 (eval $ac_compile) 2>conftest.er1
a848cd7e 21511 ac_status=$?
ac1cb8d3
VS
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
a848cd7e
SC
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
6ebeb4c7 21517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 echo "$as_me:$LINENO: result: yes" >&5
21530echo "${ECHO_T}yes" >&6
a848cd7e
SC
21531else
21532 echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535echo "$as_me:$LINENO: result: no" >&5
21536echo "${ECHO_T}no" >&6
0a08f02a
MB
21537 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21538echo "$as_me: error: Basic STL functionality missing" >&2;}
21539 { (exit 1); exit 1; }; }
a848cd7e 21540fi
ac1cb8d3 21541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21542
21543 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21544echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
21551#include <string>
21552int
21553main ()
21554{
21555std::string foo, bar;
21556 foo.compare(bar);
21557 foo.compare(1, 1, bar);
21558 foo.compare(1, 1, bar, 1, 1);
21559 foo.compare("");
21560 foo.compare(1, 1, "");
21561 foo.compare(1, 1, "", 2);
21562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext
21567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21568 (eval $ac_compile) 2>conftest.er1
a848cd7e 21569 ac_status=$?
ac1cb8d3
VS
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
a848cd7e
SC
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
6ebeb4c7 21575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 echo "$as_me:$LINENO: result: yes" >&5
21588echo "${ECHO_T}yes" >&6
21589 cat >>confdefs.h <<\_ACEOF
21590#define HAVE_STD_STRING_COMPARE 1
21591_ACEOF
21592
21593else
21594 echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597echo "$as_me:$LINENO: result: no" >&5
21598echo "${ECHO_T}no" >&6
21599fi
ac1cb8d3 21600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21601
21602 if test "${ac_cv_header_hash_map+set}" = set; then
21603 echo "$as_me:$LINENO: checking for hash_map" >&5
21604echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21605if test "${ac_cv_header_hash_map+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607fi
21608echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21609echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21610else
21611 # Is the header compilable?
21612echo "$as_me:$LINENO: checking hash_map usability" >&5
21613echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620$ac_includes_default
21621#include <hash_map>
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21625 (eval $ac_compile) 2>conftest.er1
bdcade0a 21626 ac_status=$?
ac1cb8d3
VS
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
bdcade0a
MB
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
6ebeb4c7 21632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_header_compiler=yes
21645else
21646 echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649ac_header_compiler=no
21650fi
ac1cb8d3 21651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21653echo "${ECHO_T}$ac_header_compiler" >&6
21654
21655# Is the header present?
21656echo "$as_me:$LINENO: checking hash_map presence" >&5
21657echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21658cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664#include <hash_map>
21665_ACEOF
21666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } >/dev/null; then
21674 if test -s conftest.err; then
21675 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21676 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21677 else
21678 ac_cpp_err=
21679 fi
21680else
21681 ac_cpp_err=yes
21682fi
21683if test -z "$ac_cpp_err"; then
21684 ac_header_preproc=yes
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 ac_header_preproc=no
21690fi
21691rm -f conftest.err conftest.$ac_ext
21692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21693echo "${ECHO_T}$ac_header_preproc" >&6
21694
21695# So? What about this header?
ac1cb8d3
VS
21696case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21697 yes:no: )
bdcade0a
MB
21698 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21699echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21700 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21701echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21702 ac_header_preproc=yes
bdcade0a 21703 ;;
ac1cb8d3 21704 no:yes:* )
bdcade0a
MB
21705 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21706echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21707 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21708echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21710echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21712echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21713 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21714echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21715 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21716echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21717 (
21718 cat <<\_ASBOX
ac1cb8d3
VS
21719## ----------------------------------------- ##
21720## Report this to wx-dev@lists.wxwidgets.org ##
21721## ----------------------------------------- ##
bdcade0a
MB
21722_ASBOX
21723 ) |
21724 sed "s/^/$as_me: WARNING: /" >&2
21725 ;;
21726esac
21727echo "$as_me:$LINENO: checking for hash_map" >&5
21728echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21729if test "${ac_cv_header_hash_map+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731else
21732 ac_cv_header_hash_map=$ac_header_preproc
21733fi
21734echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21735echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21736
21737fi
21738if test $ac_cv_header_hash_map = yes; then
21739 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21740echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21742/* confdefs.h. */
21743_ACEOF
21744cat confdefs.h >>conftest.$ac_ext
21745cat >>conftest.$ac_ext <<_ACEOF
21746/* end confdefs.h. */
21747#include <hash_map>
21748 #include <hash_set>
21749int
21750main ()
21751{
21752std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21753 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21754 ;
21755 return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext
21759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21760 (eval $ac_compile) 2>conftest.er1
bdcade0a 21761 ac_status=$?
ac1cb8d3
VS
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
bdcade0a
MB
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
6ebeb4c7 21767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 echo "$as_me:$LINENO: result: yes" >&5
21780echo "${ECHO_T}yes" >&6
21781 cat >>confdefs.h <<\_ACEOF
21782#define HAVE_HASH_MAP 1
21783_ACEOF
21784
21785 cat >>confdefs.h <<\_ACEOF
21786#define HAVE_STD_HASH_MAP 1
21787_ACEOF
21788
21789else
21790 echo "$as_me: failed program was:" >&5
21791sed 's/^/| /' conftest.$ac_ext >&5
21792
21793echo "$as_me:$LINENO: result: no" >&5
21794echo "${ECHO_T}no" >&6
21795fi
ac1cb8d3 21796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21797
21798fi
21799
21800
21801
21802 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21803 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21804echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21805if test "${ac_cv_header_ext_hash_map+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21809echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21810else
21811 # Is the header compilable?
21812echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21813echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820$ac_includes_default
21821#include <ext/hash_map>
21822_ACEOF
21823rm -f conftest.$ac_objext
21824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21825 (eval $ac_compile) 2>conftest.er1
bdcade0a 21826 ac_status=$?
ac1cb8d3
VS
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
bdcade0a
MB
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
6ebeb4c7 21832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; } &&
21838 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_header_compiler=yes
21845else
21846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849ac_header_compiler=no
21850fi
ac1cb8d3 21851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21853echo "${ECHO_T}$ac_header_compiler" >&6
21854
21855# Is the header present?
21856echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21857echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21858cat >conftest.$ac_ext <<_ACEOF
21859/* confdefs.h. */
21860_ACEOF
21861cat confdefs.h >>conftest.$ac_ext
21862cat >>conftest.$ac_ext <<_ACEOF
21863/* end confdefs.h. */
21864#include <ext/hash_map>
21865_ACEOF
21866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21868 ac_status=$?
21869 grep -v '^ *+' conftest.er1 >conftest.err
21870 rm -f conftest.er1
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } >/dev/null; then
21874 if test -s conftest.err; then
21875 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21877 else
21878 ac_cpp_err=
21879 fi
21880else
21881 ac_cpp_err=yes
21882fi
21883if test -z "$ac_cpp_err"; then
21884 ac_header_preproc=yes
21885else
21886 echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_header_preproc=no
21890fi
21891rm -f conftest.err conftest.$ac_ext
21892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893echo "${ECHO_T}$ac_header_preproc" >&6
21894
21895# So? What about this header?
ac1cb8d3
VS
21896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21897 yes:no: )
bdcade0a
MB
21898 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21899echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21900 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21901echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
bdcade0a 21903 ;;
ac1cb8d3 21904 no:yes:* )
bdcade0a
MB
21905 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21906echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21907 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21908echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21910echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21912echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21913 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21914echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21915 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21916echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21917 (
21918 cat <<\_ASBOX
ac1cb8d3
VS
21919## ----------------------------------------- ##
21920## Report this to wx-dev@lists.wxwidgets.org ##
21921## ----------------------------------------- ##
bdcade0a
MB
21922_ASBOX
21923 ) |
21924 sed "s/^/$as_me: WARNING: /" >&2
21925 ;;
21926esac
21927echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21928echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21929if test "${ac_cv_header_ext_hash_map+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 ac_cv_header_ext_hash_map=$ac_header_preproc
21933fi
21934echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21935echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21936
21937fi
21938if test $ac_cv_header_ext_hash_map = yes; then
21939 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21940echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21941 cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
21947#include <ext/hash_map>
21948 #include <ext/hash_set>
21949int
21950main ()
21951{
21952__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21953 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21960 (eval $ac_compile) 2>conftest.er1
bdcade0a 21961 ac_status=$?
ac1cb8d3
VS
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
bdcade0a
MB
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
6ebeb4c7 21967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 echo "$as_me:$LINENO: result: yes" >&5
21980echo "${ECHO_T}yes" >&6
21981 cat >>confdefs.h <<\_ACEOF
21982#define HAVE_EXT_HASH_MAP 1
21983_ACEOF
21984
21985 cat >>confdefs.h <<\_ACEOF
21986#define HAVE_GNU_CXX_HASH_MAP 1
21987_ACEOF
21988
21989else
21990 echo "$as_me: failed program was:" >&5
21991sed 's/^/| /' conftest.$ac_ext >&5
21992
21993echo "$as_me:$LINENO: result: no" >&5
21994echo "${ECHO_T}no" >&6
21995fi
ac1cb8d3 21996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21997
21998fi
21999
22000
a848cd7e
SC
22001
22002 ac_ext=c
22003ac_cpp='$CPP $CPPFLAGS'
22004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006ac_compiler_gnu=$ac_cv_c_compiler_gnu
22007
22008fi
22009
22010
22011SEARCH_INCLUDE="\
22012 /usr/local/include \
22013 \
22014 /usr/Motif-2.1/include \
22015 /usr/Motif-1.2/include \
22016 /usr/include/Motif1.2 \
22017 /opt/xpm/include/X11 \
22018 /opt/GBxpm/include/ \
22019 /opt/GBxpm/X11/include/ \
22020 \
22021 /usr/dt/include \
22022 /usr/openwin/include \
22023 \
22024 /usr/include/Xm \
22025 \
22026 /usr/X11R6/include \
22027 /usr/X11R6.4/include \
22028 /usr/X11R5/include \
22029 /usr/X11R4/include \
22030 \
22031 /usr/include/X11R6 \
22032 /usr/include/X11R5 \
22033 /usr/include/X11R4 \
22034 \
22035 /usr/local/X11R6/include \
22036 /usr/local/X11R5/include \
22037 /usr/local/X11R4/include \
22038 \
22039 /usr/local/include/X11R6 \
22040 /usr/local/include/X11R5 \
22041 /usr/local/include/X11R4 \
22042 \
22043 /usr/X11/include \
22044 /usr/include/X11 \
22045 /usr/local/X11/include \
22046 /usr/local/include/X11 \
22047 \
22048 /usr/X386/include \
22049 /usr/x386/include \
22050 /usr/XFree86/include/X11 \
22051 \
22052 X:/XFree86/include \
22053 X:/XFree86/include/X11 \
22054 \
22055 /usr/include/gtk \
22056 /usr/local/include/gtk \
22057 /usr/include/glib \
22058 /usr/local/include/glib \
22059 \
22060 /usr/include/qt \
22061 /usr/local/include/qt \
22062 \
22063 /usr/local/arm/3.3.2/include \
22064 \
22065 /usr/include/windows \
22066 /usr/include/wine \
22067 /usr/local/include/wine \
22068 \
22069 /usr/unsupported/include \
22070 /usr/athena/include \
22071 /usr/local/x11r5/include \
22072 /usr/lpp/Xamples/include \
22073 \
22074 /usr/openwin/share/include"
22075
07158944 22076SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22077
3eca31dc
MW
22078if test "$build" != "$host" -a "$GCC" = yes; then
22079 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22080 cross_root=`dirname $cross_root`
22081 cross_root=`dirname $cross_root`
22082
22083 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22084 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22085
22086 if test -z "$PKG_CONFIG_PATH"; then
22087 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22088 export PKG_CONFIG_PATH
22089 fi
22090
22091 if test -z "$x_includes" -o "$x_includes" = NONE; then
22092
22093ac_find_includes=
22094for ac_dir in $SEARCH_INCLUDE /usr/include;
22095 do
22096 if test -f "$ac_dir/X11/Intrinsic.h"; then
22097 ac_find_includes=$ac_dir
22098 break
22099 fi
22100 done
22101
22102 x_includes=$ac_find_includes
22103 fi
22104 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22105
22106ac_find_libraries=
22107for ac_dir in $SEARCH_LIB /usr/lib;
22108 do
22109 for ac_extension in a so sl dylib dll.a; do
22110 if test -f "$ac_dir/libXt.$ac_extension"; then
22111 ac_find_libraries=$ac_dir
22112 break 2
22113 fi
22114 done
22115 done
22116
22117 x_libraries=$ac_find_libraries
22118 fi
22119 fi
22120fi
22121
a848cd7e
SC
22122
22123cat >confcache <<\_ACEOF
22124# This file is a shell script that caches the results of configure
22125# tests run on this system so they can be shared between configure
22126# scripts and configure runs, see configure's option --config-cache.
22127# It is not useful on other systems. If it contains results you don't
22128# want to keep, you may remove or edit it.
22129#
22130# config.status only pays attention to the cache file if you give it
22131# the --recheck option to rerun configure.
22132#
22133# `ac_cv_env_foo' variables (set or unset) will be overridden when
22134# loading this file, other *unset* `ac_cv_foo' will be assigned the
22135# following values.
22136
22137_ACEOF
22138
22139# The following way of writing the cache mishandles newlines in values,
22140# but we know of no workaround that is simple, portable, and efficient.
22141# So, don't put newlines in cache variables' values.
22142# Ultrix sh set writes to stderr and can't be redirected directly,
22143# and sets the high bit in the cache file unless we assign to the vars.
22144{
22145 (set) 2>&1 |
22146 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22147 *ac_space=\ *)
22148 # `set' does not quote correctly, so add quotes (double-quote
22149 # substitution turns \\\\ into \\, and sed turns \\ into \).
22150 sed -n \
ac1cb8d3
VS
22151 "s/'/'\\\\''/g;
22152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22153 ;;
22154 *)
22155 # `set' quotes correctly as required by POSIX, so do not add quotes.
22156 sed -n \
ac1cb8d3 22157 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22158 ;;
22159 esac;
22160} |
22161 sed '
22162 t clear
22163 : clear
22164 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22165 t end
22166 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22167 : end' >>confcache
22168if diff $cache_file confcache >/dev/null 2>&1; then :; else
22169 if test -w $cache_file; then
22170 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22171 cat confcache >$cache_file
22172 else
22173 echo "not updating unwritable cache $cache_file"
22174 fi
22175fi
22176rm -f confcache
22177
22178if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22179 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22180echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22181if test "${wx_cv_lib_glibc21+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183else
22184
22185 cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h. */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h. */
22191#include <features.h>
22192int
22193main ()
22194{
22195
22196 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22197 not glibc 2.1
a848cd7e
SC
22198 #endif
22199
22200 ;
22201 return 0;
22202}
22203_ACEOF
22204rm -f conftest.$ac_objext
22205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22206 (eval $ac_compile) 2>conftest.er1
a848cd7e 22207 ac_status=$?
ac1cb8d3
VS
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
a848cd7e
SC
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } &&
6ebeb4c7 22213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225
22226 wx_cv_lib_glibc21=yes
22227
22228else
22229 echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232
22233 wx_cv_lib_glibc21=no
22234
22235
22236fi
ac1cb8d3 22237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22238
22239fi
22240echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22241echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22242 if test "$wx_cv_lib_glibc21" = "yes"; then
22243 cat >>confdefs.h <<\_ACEOF
22244#define wxHAVE_GLIBC2 1
22245_ACEOF
22246
22247 fi
22248fi
22249
22250if test "x$wx_cv_lib_glibc21" = "xyes"; then
22251 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22252 cat >>confdefs.h <<\_ACEOF
22253#define _GNU_SOURCE 1
22254_ACEOF
22255
22256 fi
22257fi
22258
22259
22260
22261if test "$wxUSE_REGEX" != "no"; then
22262 cat >>confdefs.h <<\_ACEOF
22263#define wxUSE_REGEX 1
22264_ACEOF
22265
22266
22267 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22268 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22269echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22270 wxUSE_REGEX=builtin
22271 fi
22272
22273 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22274 if test "${ac_cv_header_regex_h+set}" = set; then
22275 echo "$as_me:$LINENO: checking for regex.h" >&5
22276echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22277if test "${ac_cv_header_regex_h+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279fi
22280echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22281echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22282else
22283 # Is the header compilable?
22284echo "$as_me:$LINENO: checking regex.h usability" >&5
22285echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22286cat >conftest.$ac_ext <<_ACEOF
22287/* confdefs.h. */
22288_ACEOF
22289cat confdefs.h >>conftest.$ac_ext
22290cat >>conftest.$ac_ext <<_ACEOF
22291/* end confdefs.h. */
22292$ac_includes_default
22293#include <regex.h>
22294_ACEOF
22295rm -f conftest.$ac_objext
22296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22297 (eval $ac_compile) 2>conftest.er1
a848cd7e 22298 ac_status=$?
ac1cb8d3
VS
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
a848cd7e
SC
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
6ebeb4c7 22304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 ac_header_compiler=yes
22317else
22318 echo "$as_me: failed program was:" >&5
22319sed 's/^/| /' conftest.$ac_ext >&5
22320
22321ac_header_compiler=no
22322fi
ac1cb8d3 22323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22325echo "${ECHO_T}$ac_header_compiler" >&6
22326
22327# Is the header present?
22328echo "$as_me:$LINENO: checking regex.h presence" >&5
22329echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22330cat >conftest.$ac_ext <<_ACEOF
22331/* confdefs.h. */
22332_ACEOF
22333cat confdefs.h >>conftest.$ac_ext
22334cat >>conftest.$ac_ext <<_ACEOF
22335/* end confdefs.h. */
22336#include <regex.h>
22337_ACEOF
22338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22340 ac_status=$?
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } >/dev/null; then
22346 if test -s conftest.err; then
22347 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22349 else
22350 ac_cpp_err=
22351 fi
22352else
22353 ac_cpp_err=yes
22354fi
22355if test -z "$ac_cpp_err"; then
22356 ac_header_preproc=yes
22357else
22358 echo "$as_me: failed program was:" >&5
22359sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 ac_header_preproc=no
22362fi
22363rm -f conftest.err conftest.$ac_ext
22364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22365echo "${ECHO_T}$ac_header_preproc" >&6
22366
22367# So? What about this header?
ac1cb8d3
VS
22368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22369 yes:no: )
a848cd7e
SC
22370 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22371echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22372 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22373echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22374 ac_header_preproc=yes
a848cd7e 22375 ;;
ac1cb8d3 22376 no:yes:* )
a848cd7e
SC
22377 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22378echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22379 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22380echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22382echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22384echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22385 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22386echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22387 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22388echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22389 (
22390 cat <<\_ASBOX
ac1cb8d3
VS
22391## ----------------------------------------- ##
22392## Report this to wx-dev@lists.wxwidgets.org ##
22393## ----------------------------------------- ##
a848cd7e
SC
22394_ASBOX
22395 ) |
22396 sed "s/^/$as_me: WARNING: /" >&2
22397 ;;
22398esac
22399echo "$as_me:$LINENO: checking for regex.h" >&5
22400echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22401if test "${ac_cv_header_regex_h+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403else
22404 ac_cv_header_regex_h=$ac_header_preproc
22405fi
22406echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22407echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22408
22409fi
22410if test $ac_cv_header_regex_h = yes; then
22411
22412for ac_func in regcomp
22413do
22414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22415echo "$as_me:$LINENO: checking for $ac_func" >&5
22416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22417if eval "test \"\${$as_ac_var+set}\" = set"; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22419else
22420 cat >conftest.$ac_ext <<_ACEOF
22421/* confdefs.h. */
22422_ACEOF
22423cat confdefs.h >>conftest.$ac_ext
22424cat >>conftest.$ac_ext <<_ACEOF
22425/* end confdefs.h. */
ac1cb8d3
VS
22426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22428#define $ac_func innocuous_$ac_func
22429
a848cd7e
SC
22430/* System header to define __stub macros and hopefully few prototypes,
22431 which can conflict with char $ac_func (); below.
22432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22434
a848cd7e
SC
22435#ifdef __STDC__
22436# include <limits.h>
22437#else
22438# include <assert.h>
22439#endif
ac1cb8d3
VS
22440
22441#undef $ac_func
22442
a848cd7e
SC
22443/* Override any gcc2 internal prototype to avoid an error. */
22444#ifdef __cplusplus
22445extern "C"
22446{
22447#endif
22448/* We use char because int might match the return type of a gcc2
22449 builtin and then its argument prototype would still apply. */
22450char $ac_func ();
22451/* The GNU C library defines this for functions which it implements
22452 to always fail with ENOSYS. Some functions are actually named
22453 something starting with __ and the normal name is an alias. */
22454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22455choke me
22456#else
22457char (*f) () = $ac_func;
22458#endif
22459#ifdef __cplusplus
22460}
22461#endif
22462
22463int
22464main ()
22465{
22466return f != $ac_func;
22467 ;
22468 return 0;
22469}
22470_ACEOF
22471rm -f conftest.$ac_objext conftest$ac_exeext
22472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22473 (eval $ac_link) 2>conftest.er1
a848cd7e 22474 ac_status=$?
ac1cb8d3
VS
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
a848cd7e
SC
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } &&
6ebeb4c7 22480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 eval "$as_ac_var=yes"
22493else
22494 echo "$as_me: failed program was:" >&5
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
22497eval "$as_ac_var=no"
22498fi
ac1cb8d3
VS
22499rm -f conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22501fi
22502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22504if test `eval echo '${'$as_ac_var'}'` = yes; then
22505 cat >>confdefs.h <<_ACEOF
22506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507_ACEOF
22508
22509fi
22510done
22511
22512fi
22513
22514
22515
22516 if test "x$ac_cv_func_regcomp" != "xyes"; then
22517 if test "$wxUSE_REGEX" = "sys" ; then
22518 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22519echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22520 { (exit 1); exit 1; }; }
22521 else
22522 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22523echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22524 wxUSE_REGEX=builtin
22525 fi
22526 else
22527 wxUSE_REGEX=sys
22528 cat >>confdefs.h <<\_ACEOF
22529#define WX_NO_REGEX_ADVANCED 1
22530_ACEOF
22531
22532 fi
22533 fi
22534fi
22535
22536
22537ZLIB_LINK=
22538if test "$wxUSE_ZLIB" != "no" ; then
22539 cat >>confdefs.h <<\_ACEOF
22540#define wxUSE_ZLIB 1
22541_ACEOF
22542
22543
22544 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22545 if test "$USE_DARWIN" = 1; then
22546 system_zlib_h_ok="yes"
22547 else
22548 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22549echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22550if test "${ac_cv_header_zlib_h+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552else
22553 if test "$cross_compiling" = yes; then
22554 unset ac_cv_header_zlib_h
22555
22556else
22557 cat >conftest.$ac_ext <<_ACEOF
22558/* confdefs.h. */
22559_ACEOF
22560cat confdefs.h >>conftest.$ac_ext
22561cat >>conftest.$ac_ext <<_ACEOF
22562/* end confdefs.h. */
22563
22564 #include <zlib.h>
22565 #include <stdio.h>
22566
22567 int main()
22568 {
22569 FILE *f=fopen("conftestval", "w");
22570 if (!f) exit(1);
22571 fprintf(f, "%s",
22572 ZLIB_VERSION[0] == '1' &&
22573 (ZLIB_VERSION[2] > '1' ||
22574 (ZLIB_VERSION[2] == '1' &&
22575 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22576 exit(0);
22577 }
22578
22579_ACEOF
22580rm -f conftest$ac_exeext
22581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22582 (eval $ac_link) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 ac_cv_header_zlib_h=`cat conftestval`
22592else
22593 echo "$as_me: program exited with status $ac_status" >&5
22594echo "$as_me: failed program was:" >&5
22595sed 's/^/| /' conftest.$ac_ext >&5
22596
22597( exit $ac_status )
22598ac_cv_header_zlib_h=no
22599fi
ac1cb8d3 22600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22601fi
22602
22603fi
22604echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22605echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22606 if test "${ac_cv_header_zlib_h+set}" = set; then
22607 echo "$as_me:$LINENO: checking for zlib.h" >&5
22608echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22609if test "${ac_cv_header_zlib_h+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22611fi
22612echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22613echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22614else
22615 # Is the header compilable?
22616echo "$as_me:$LINENO: checking zlib.h usability" >&5
22617echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22618cat >conftest.$ac_ext <<_ACEOF
22619/* confdefs.h. */
22620_ACEOF
22621cat confdefs.h >>conftest.$ac_ext
22622cat >>conftest.$ac_ext <<_ACEOF
22623/* end confdefs.h. */
22624$ac_includes_default
22625#include <zlib.h>
22626_ACEOF
22627rm -f conftest.$ac_objext
22628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22629 (eval $ac_compile) 2>conftest.er1
a848cd7e 22630 ac_status=$?
ac1cb8d3
VS
22631 grep -v '^ *+' conftest.er1 >conftest.err
22632 rm -f conftest.er1
22633 cat conftest.err >&5
a848cd7e
SC
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } &&
6ebeb4c7 22636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; } &&
22642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; }; then
22648 ac_header_compiler=yes
22649else
22650 echo "$as_me: failed program was:" >&5
22651sed 's/^/| /' conftest.$ac_ext >&5
22652
22653ac_header_compiler=no
22654fi
ac1cb8d3 22655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22657echo "${ECHO_T}$ac_header_compiler" >&6
22658
22659# Is the header present?
22660echo "$as_me:$LINENO: checking zlib.h presence" >&5
22661echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22662cat >conftest.$ac_ext <<_ACEOF
22663/* confdefs.h. */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h. */
22668#include <zlib.h>
22669_ACEOF
22670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22672 ac_status=$?
22673 grep -v '^ *+' conftest.er1 >conftest.err
22674 rm -f conftest.er1
22675 cat conftest.err >&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } >/dev/null; then
22678 if test -s conftest.err; then
22679 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22681 else
22682 ac_cpp_err=
22683 fi
22684else
22685 ac_cpp_err=yes
22686fi
22687if test -z "$ac_cpp_err"; then
22688 ac_header_preproc=yes
22689else
22690 echo "$as_me: failed program was:" >&5
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
22693 ac_header_preproc=no
22694fi
22695rm -f conftest.err conftest.$ac_ext
22696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22697echo "${ECHO_T}$ac_header_preproc" >&6
22698
22699# So? What about this header?
ac1cb8d3
VS
22700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22701 yes:no: )
a848cd7e
SC
22702 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22703echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22704 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22705echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22706 ac_header_preproc=yes
a848cd7e 22707 ;;
ac1cb8d3 22708 no:yes:* )
a848cd7e
SC
22709 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22710echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22711 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22712echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22714echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22716echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22717 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22718echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22719 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22720echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22721 (
22722 cat <<\_ASBOX
ac1cb8d3
VS
22723## ----------------------------------------- ##
22724## Report this to wx-dev@lists.wxwidgets.org ##
22725## ----------------------------------------- ##
a848cd7e
SC
22726_ASBOX
22727 ) |
22728 sed "s/^/$as_me: WARNING: /" >&2
22729 ;;
22730esac
22731echo "$as_me:$LINENO: checking for zlib.h" >&5
22732echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22733if test "${ac_cv_header_zlib_h+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22735else
22736 ac_cv_header_zlib_h=$ac_header_preproc
22737fi
22738echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22739echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22740
22741fi
22742
22743
22744
22745 system_zlib_h_ok=$ac_cv_header_zlib_h
22746 fi
22747
22748 if test "$system_zlib_h_ok" = "yes"; then
22749 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22750echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22751if test "${ac_cv_lib_z_deflate+set}" = set; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22753else
22754 ac_check_lib_save_LIBS=$LIBS
22755LIBS="-lz $LIBS"
22756cat >conftest.$ac_ext <<_ACEOF
22757/* confdefs.h. */
22758_ACEOF
22759cat confdefs.h >>conftest.$ac_ext
22760cat >>conftest.$ac_ext <<_ACEOF
22761/* end confdefs.h. */
22762
22763/* Override any gcc2 internal prototype to avoid an error. */
22764#ifdef __cplusplus
22765extern "C"
22766#endif
22767/* We use char because int might match the return type of a gcc2
22768 builtin and then its argument prototype would still apply. */
22769char deflate ();
22770int
22771main ()
22772{
22773deflate ();
22774 ;
22775 return 0;
22776}
22777_ACEOF
22778rm -f conftest.$ac_objext conftest$ac_exeext
22779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22780 (eval $ac_link) 2>conftest.er1
a848cd7e 22781 ac_status=$?
ac1cb8d3
VS
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
a848cd7e
SC
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } &&
6ebeb4c7 22787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 ac_cv_lib_z_deflate=yes
22800else
22801 echo "$as_me: failed program was:" >&5
22802sed 's/^/| /' conftest.$ac_ext >&5
22803
22804ac_cv_lib_z_deflate=no
22805fi
ac1cb8d3
VS
22806rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22808LIBS=$ac_check_lib_save_LIBS
22809fi
22810echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22811echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22812if test $ac_cv_lib_z_deflate = yes; then
22813 ZLIB_LINK=" -lz"
22814fi
22815
22816 fi
22817
22818 if test "x$ZLIB_LINK" = "x" ; then
22819 if test "$wxUSE_ZLIB" = "sys" ; then
22820 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22821echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22822 { (exit 1); exit 1; }; }
22823 else
22824 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22825echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22826 wxUSE_ZLIB=builtin
22827 fi
22828 else
22829 wxUSE_ZLIB=sys
22830 fi
22831 fi
22832fi
22833
22834
22835PNG_LINK=
22836if test "$wxUSE_LIBPNG" != "no" ; then
22837 cat >>confdefs.h <<\_ACEOF
22838#define wxUSE_LIBPNG 1
22839_ACEOF
22840
22841
22842 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22843 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22844echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22845 wxUSE_LIBPNG=sys
22846 fi
22847
22848 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22849 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22850echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22851 wxUSE_LIBPNG=builtin
22852 fi
22853
22854 if test "$wxUSE_MGL" != 1 ; then
22855 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22856 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22857echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22858if test "${ac_cv_header_png_h+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860else
22861 if test "$cross_compiling" = yes; then
22862 unset ac_cv_header_png_h
22863
22864else
22865 cat >conftest.$ac_ext <<_ACEOF
22866/* confdefs.h. */
22867_ACEOF
22868cat confdefs.h >>conftest.$ac_ext
22869cat >>conftest.$ac_ext <<_ACEOF
22870/* end confdefs.h. */
22871
22872 #include <png.h>
22873 #include <stdio.h>
22874
22875 int main()
22876 {
22877 FILE *f=fopen("conftestval", "w");
22878 if (!f) exit(1);
22879 fprintf(f, "%s",
22880 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22881 exit(0);
22882 }
22883
22884_ACEOF
22885rm -f conftest$ac_exeext
22886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22887 (eval $ac_link) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
22896 ac_cv_header_png_h=`cat conftestval`
22897else
22898 echo "$as_me: program exited with status $ac_status" >&5
22899echo "$as_me: failed program was:" >&5
22900sed 's/^/| /' conftest.$ac_ext >&5
22901
22902( exit $ac_status )
22903ac_cv_header_png_h=no
22904fi
ac1cb8d3 22905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22906fi
22907
22908fi
22909echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22910echo "${ECHO_T}$ac_cv_header_png_h" >&6
22911 if test "${ac_cv_header_png_h+set}" = set; then
22912 echo "$as_me:$LINENO: checking for png.h" >&5
22913echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22914if test "${ac_cv_header_png_h+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916fi
22917echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22918echo "${ECHO_T}$ac_cv_header_png_h" >&6
22919else
22920 # Is the header compilable?
22921echo "$as_me:$LINENO: checking png.h usability" >&5
22922echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22923cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
22929$ac_includes_default
22930#include <png.h>
22931_ACEOF
22932rm -f conftest.$ac_objext
22933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22934 (eval $ac_compile) 2>conftest.er1
a848cd7e 22935 ac_status=$?
ac1cb8d3
VS
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
a848cd7e
SC
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
6ebeb4c7 22941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; } &&
22947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 ac_header_compiler=yes
22954else
22955 echo "$as_me: failed program was:" >&5
22956sed 's/^/| /' conftest.$ac_ext >&5
22957
22958ac_header_compiler=no
22959fi
ac1cb8d3 22960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22962echo "${ECHO_T}$ac_header_compiler" >&6
22963
22964# Is the header present?
22965echo "$as_me:$LINENO: checking png.h presence" >&5
22966echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22967cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973#include <png.h>
22974_ACEOF
22975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } >/dev/null; then
22983 if test -s conftest.err; then
22984 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22986 else
22987 ac_cpp_err=
22988 fi
22989else
22990 ac_cpp_err=yes
22991fi
22992if test -z "$ac_cpp_err"; then
22993 ac_header_preproc=yes
22994else
22995 echo "$as_me: failed program was:" >&5
22996sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_header_preproc=no
22999fi
23000rm -f conftest.err conftest.$ac_ext
23001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23002echo "${ECHO_T}$ac_header_preproc" >&6
23003
23004# So? What about this header?
ac1cb8d3
VS
23005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23006 yes:no: )
a848cd7e
SC
23007 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23008echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23009 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23010echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23011 ac_header_preproc=yes
a848cd7e 23012 ;;
ac1cb8d3 23013 no:yes:* )
a848cd7e
SC
23014 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23015echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23016 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23017echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23019echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23021echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23022 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23023echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23024 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23025echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23026 (
23027 cat <<\_ASBOX
ac1cb8d3
VS
23028## ----------------------------------------- ##
23029## Report this to wx-dev@lists.wxwidgets.org ##
23030## ----------------------------------------- ##
a848cd7e
SC
23031_ASBOX
23032 ) |
23033 sed "s/^/$as_me: WARNING: /" >&2
23034 ;;
23035esac
23036echo "$as_me:$LINENO: checking for png.h" >&5
23037echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23038if test "${ac_cv_header_png_h+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040else
23041 ac_cv_header_png_h=$ac_header_preproc
23042fi
23043echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23044echo "${ECHO_T}$ac_cv_header_png_h" >&6
23045
23046fi
23047
23048
23049
23050 if test "$ac_cv_header_png_h" = "yes"; then
23051 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23052echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23053if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055else
23056 ac_check_lib_save_LIBS=$LIBS
23057LIBS="-lpng -lz -lm $LIBS"
23058cat >conftest.$ac_ext <<_ACEOF
23059/* confdefs.h. */
23060_ACEOF
23061cat confdefs.h >>conftest.$ac_ext
23062cat >>conftest.$ac_ext <<_ACEOF
23063/* end confdefs.h. */
23064
23065/* Override any gcc2 internal prototype to avoid an error. */
23066#ifdef __cplusplus
23067extern "C"
23068#endif
23069/* We use char because int might match the return type of a gcc2
23070 builtin and then its argument prototype would still apply. */
23071char png_check_sig ();
23072int
23073main ()
23074{
23075png_check_sig ();
23076 ;
23077 return 0;
23078}
23079_ACEOF
23080rm -f conftest.$ac_objext conftest$ac_exeext
23081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23082 (eval $ac_link) 2>conftest.er1
a848cd7e 23083 ac_status=$?
ac1cb8d3
VS
23084 grep -v '^ *+' conftest.er1 >conftest.err
23085 rm -f conftest.er1
23086 cat conftest.err >&5
a848cd7e
SC
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } &&
6ebeb4c7 23089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; } &&
23095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; }; then
23101 ac_cv_lib_png_png_check_sig=yes
23102else
23103 echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
23106ac_cv_lib_png_png_check_sig=no
23107fi
ac1cb8d3
VS
23108rm -f conftest.err conftest.$ac_objext \
23109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23110LIBS=$ac_check_lib_save_LIBS
23111fi
23112echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23113echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23114if test $ac_cv_lib_png_png_check_sig = yes; then
23115 PNG_LINK=" -lpng -lz"
23116fi
23117
23118 fi
23119
23120 if test "x$PNG_LINK" = "x" ; then
23121 if test "$wxUSE_LIBPNG" = "sys" ; then
23122 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23123echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23124 { (exit 1); exit 1; }; }
23125 else
23126 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23127echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23128 wxUSE_LIBPNG=builtin
23129 fi
23130 else
23131 wxUSE_LIBPNG=sys
23132 fi
23133 fi
23134 fi
23135
23136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23137fi
23138
23139
23140JPEG_LINK=
23141if test "$wxUSE_LIBJPEG" != "no" ; then
23142 cat >>confdefs.h <<\_ACEOF
23143#define wxUSE_LIBJPEG 1
23144_ACEOF
23145
23146
23147 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23148 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23149echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23150 wxUSE_LIBJPEG=sys
23151 fi
23152
23153 if test "$wxUSE_MGL" != 1 ; then
23154 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23155 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23156echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23157 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23159else
23160 cat >conftest.$ac_ext <<_ACEOF
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
23166
23167 #undef HAVE_STDLIB_H
23168 #include <stdio.h>
23169 #include <jpeglib.h>
23170
23171int
23172main ()
23173{
23174
23175
23176 ;
23177 return 0;
23178}
23179_ACEOF
23180rm -f conftest.$ac_objext
23181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23182 (eval $ac_compile) 2>conftest.er1
a848cd7e 23183 ac_status=$?
ac1cb8d3
VS
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
a848cd7e
SC
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
6ebeb4c7 23189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_header_jpeglib_h=yes
23202else
23203 echo "$as_me: failed program was:" >&5
23204sed 's/^/| /' conftest.$ac_ext >&5
23205
23206ac_cv_header_jpeglib_h=no
23207
23208fi
ac1cb8d3 23209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23210
23211fi
23212
23213 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23214echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23215
23216 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23217 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23218echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23219if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23221else
23222 ac_check_lib_save_LIBS=$LIBS
23223LIBS="-ljpeg $LIBS"
23224cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h. */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h. */
23230
23231/* Override any gcc2 internal prototype to avoid an error. */
23232#ifdef __cplusplus
23233extern "C"
23234#endif
23235/* We use char because int might match the return type of a gcc2
23236 builtin and then its argument prototype would still apply. */
23237char jpeg_read_header ();
23238int
23239main ()
23240{
23241jpeg_read_header ();
23242 ;
23243 return 0;
23244}
23245_ACEOF
23246rm -f conftest.$ac_objext conftest$ac_exeext
23247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23248 (eval $ac_link) 2>conftest.er1
a848cd7e 23249 ac_status=$?
ac1cb8d3
VS
23250 grep -v '^ *+' conftest.er1 >conftest.err
23251 rm -f conftest.er1
23252 cat conftest.err >&5
a848cd7e
SC
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } &&
6ebeb4c7 23255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; } &&
23261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263 (eval $ac_try) 2>&5
23264 ac_status=$?
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); }; }; then
23267 ac_cv_lib_jpeg_jpeg_read_header=yes
23268else
23269 echo "$as_me: failed program was:" >&5
23270sed 's/^/| /' conftest.$ac_ext >&5
23271
23272ac_cv_lib_jpeg_jpeg_read_header=no
23273fi
ac1cb8d3
VS
23274rm -f conftest.err conftest.$ac_objext \
23275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23276LIBS=$ac_check_lib_save_LIBS
23277fi
23278echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23279echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23280if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23281 JPEG_LINK=" -ljpeg"
23282fi
23283
23284 fi
23285
23286 if test "x$JPEG_LINK" = "x" ; then
23287 if test "$wxUSE_LIBJPEG" = "sys" ; then
23288 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23289echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23290 { (exit 1); exit 1; }; }
23291 else
23292 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23293echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23294 wxUSE_LIBJPEG=builtin
23295 fi
23296 else
23297 wxUSE_LIBJPEG=sys
23298 fi
23299 fi
23300 fi
23301fi
23302
23303
23304TIFF_LINK=
23305TIFF_PREREQ_LINKS=-lm
23306if test "$wxUSE_LIBTIFF" != "no" ; then
23307 cat >>confdefs.h <<\_ACEOF
23308#define wxUSE_LIBTIFF 1
23309_ACEOF
23310
23311
23312 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23313 if test "$wxUSE_LIBJPEG" = "sys"; then
23314 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23315 fi
23316 if test "$wxUSE_ZLIB" = "sys"; then
23317 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23318 fi
23319 if test "${ac_cv_header_tiffio_h+set}" = set; then
23320 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23321echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23322if test "${ac_cv_header_tiffio_h+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23324fi
23325echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23326echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23327else
23328 # Is the header compilable?
23329echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23330echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23331cat >conftest.$ac_ext <<_ACEOF
23332/* confdefs.h. */
23333_ACEOF
23334cat confdefs.h >>conftest.$ac_ext
23335cat >>conftest.$ac_ext <<_ACEOF
23336/* end confdefs.h. */
23337$ac_includes_default
23338#include <tiffio.h>
23339_ACEOF
23340rm -f conftest.$ac_objext
23341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23342 (eval $ac_compile) 2>conftest.er1
a848cd7e 23343 ac_status=$?
ac1cb8d3
VS
23344 grep -v '^ *+' conftest.er1 >conftest.err
23345 rm -f conftest.er1
23346 cat conftest.err >&5
a848cd7e
SC
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } &&
6ebeb4c7 23349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; } &&
23355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23357 (eval $ac_try) 2>&5
23358 ac_status=$?
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 ac_header_compiler=yes
23362else
23363 echo "$as_me: failed program was:" >&5
23364sed 's/^/| /' conftest.$ac_ext >&5
23365
23366ac_header_compiler=no
23367fi
ac1cb8d3 23368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23370echo "${ECHO_T}$ac_header_compiler" >&6
23371
23372# Is the header present?
23373echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23374echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23375cat >conftest.$ac_ext <<_ACEOF
23376/* confdefs.h. */
23377_ACEOF
23378cat confdefs.h >>conftest.$ac_ext
23379cat >>conftest.$ac_ext <<_ACEOF
23380/* end confdefs.h. */
23381#include <tiffio.h>
23382_ACEOF
23383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } >/dev/null; then
23391 if test -s conftest.err; then
23392 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23394 else
23395 ac_cpp_err=
23396 fi
23397else
23398 ac_cpp_err=yes
23399fi
23400if test -z "$ac_cpp_err"; then
23401 ac_header_preproc=yes
23402else
23403 echo "$as_me: failed program was:" >&5
23404sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ac_header_preproc=no
23407fi
23408rm -f conftest.err conftest.$ac_ext
23409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23410echo "${ECHO_T}$ac_header_preproc" >&6
23411
23412# So? What about this header?
ac1cb8d3
VS
23413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23414 yes:no: )
a848cd7e
SC
23415 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23416echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23417 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23418echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23419 ac_header_preproc=yes
a848cd7e 23420 ;;
ac1cb8d3 23421 no:yes:* )
a848cd7e
SC
23422 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23423echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23424 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23425echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23426 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23427echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23428 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23429echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23430 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23431echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23432 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23433echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23434 (
23435 cat <<\_ASBOX
ac1cb8d3
VS
23436## ----------------------------------------- ##
23437## Report this to wx-dev@lists.wxwidgets.org ##
23438## ----------------------------------------- ##
a848cd7e
SC
23439_ASBOX
23440 ) |
23441 sed "s/^/$as_me: WARNING: /" >&2
23442 ;;
23443esac
23444echo "$as_me:$LINENO: checking for tiffio.h" >&5
23445echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23446if test "${ac_cv_header_tiffio_h+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448else
23449 ac_cv_header_tiffio_h=$ac_header_preproc
23450fi
23451echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23452echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23453
23454fi
23455if test $ac_cv_header_tiffio_h = yes; then
23456
23457 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23458echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23459if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461else
23462 ac_check_lib_save_LIBS=$LIBS
23463LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23464cat >conftest.$ac_ext <<_ACEOF
23465/* confdefs.h. */
23466_ACEOF
23467cat confdefs.h >>conftest.$ac_ext
23468cat >>conftest.$ac_ext <<_ACEOF
23469/* end confdefs.h. */
23470
23471/* Override any gcc2 internal prototype to avoid an error. */
23472#ifdef __cplusplus
23473extern "C"
23474#endif
23475/* We use char because int might match the return type of a gcc2
23476 builtin and then its argument prototype would still apply. */
23477char TIFFError ();
23478int
23479main ()
23480{
23481TIFFError ();
23482 ;
23483 return 0;
23484}
23485_ACEOF
23486rm -f conftest.$ac_objext conftest$ac_exeext
23487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23488 (eval $ac_link) 2>conftest.er1
a848cd7e 23489 ac_status=$?
ac1cb8d3
VS
23490 grep -v '^ *+' conftest.er1 >conftest.err
23491 rm -f conftest.er1
23492 cat conftest.err >&5
a848cd7e
SC
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
6ebeb4c7 23495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; } &&
23501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; }; then
23507 ac_cv_lib_tiff_TIFFError=yes
23508else
23509 echo "$as_me: failed program was:" >&5
23510sed 's/^/| /' conftest.$ac_ext >&5
23511
23512ac_cv_lib_tiff_TIFFError=no
23513fi
ac1cb8d3
VS
23514rm -f conftest.err conftest.$ac_objext \
23515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23516LIBS=$ac_check_lib_save_LIBS
23517fi
23518echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23519echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23520if test $ac_cv_lib_tiff_TIFFError = yes; then
23521 TIFF_LINK=" -ltiff"
23522fi
23523
23524
23525
23526fi
23527
23528
23529
23530 if test "x$TIFF_LINK" = "x" ; then
23531 if test "$wxUSE_LIBTIFF" = "sys" ; then
23532 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23533echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23534 { (exit 1); exit 1; }; }
23535 else
23536 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23537echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23538 wxUSE_LIBTIFF=builtin
23539 fi
23540 else
23541 wxUSE_LIBTIFF=sys
23542 fi
23543 fi
23544fi
23545
23546
47a7e797
MW
23547if test "$wxUSE_WCHAR_T" != "yes"; then
23548 if test "$wxUSE_EXPAT" != "no"; then
23549 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23550echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23551 wxUSE_EXPAT=no
23552 fi
23553 if test "$wxUSE_XML" != "no"; then
23554 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23555echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23556 wxUSE_XML=no
23557 fi
23558fi
23559
a848cd7e
SC
23560if test "$wxUSE_EXPAT" != "no"; then
23561 wxUSE_XML=yes
23562 cat >>confdefs.h <<\_ACEOF
23563#define wxUSE_EXPAT 1
23564_ACEOF
23565
23566 cat >>confdefs.h <<\_ACEOF
23567#define wxUSE_XML 1
23568_ACEOF
23569
23570
23571 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23572 if test "${ac_cv_header_expat_h+set}" = set; then
23573 echo "$as_me:$LINENO: checking for expat.h" >&5
23574echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23575if test "${ac_cv_header_expat_h+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577fi
23578echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23579echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23580else
23581 # Is the header compilable?
23582echo "$as_me:$LINENO: checking expat.h usability" >&5
23583echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23584cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590$ac_includes_default
23591#include <expat.h>
23592_ACEOF
23593rm -f conftest.$ac_objext
23594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23595 (eval $ac_compile) 2>conftest.er1
a848cd7e 23596 ac_status=$?
ac1cb8d3
VS
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
a848cd7e
SC
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } &&
6ebeb4c7 23602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; } &&
23608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_header_compiler=yes
23615else
23616 echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619ac_header_compiler=no
23620fi
ac1cb8d3 23621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23623echo "${ECHO_T}$ac_header_compiler" >&6
23624
23625# Is the header present?
23626echo "$as_me:$LINENO: checking expat.h presence" >&5
23627echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23628cat >conftest.$ac_ext <<_ACEOF
23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
23634#include <expat.h>
23635_ACEOF
23636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } >/dev/null; then
23644 if test -s conftest.err; then
23645 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23647 else
23648 ac_cpp_err=
23649 fi
23650else
23651 ac_cpp_err=yes
23652fi
23653if test -z "$ac_cpp_err"; then
23654 ac_header_preproc=yes
23655else
23656 echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 ac_header_preproc=no
23660fi
23661rm -f conftest.err conftest.$ac_ext
23662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23663echo "${ECHO_T}$ac_header_preproc" >&6
23664
23665# So? What about this header?
ac1cb8d3
VS
23666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23667 yes:no: )
a848cd7e
SC
23668 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23669echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23670 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23671echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23672 ac_header_preproc=yes
a848cd7e 23673 ;;
ac1cb8d3 23674 no:yes:* )
a848cd7e
SC
23675 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23676echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23677 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23678echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23679 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23680echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23681 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23682echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23683 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23684echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23685 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23686echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23687 (
23688 cat <<\_ASBOX
ac1cb8d3
VS
23689## ----------------------------------------- ##
23690## Report this to wx-dev@lists.wxwidgets.org ##
23691## ----------------------------------------- ##
a848cd7e
SC
23692_ASBOX
23693 ) |
23694 sed "s/^/$as_me: WARNING: /" >&2
23695 ;;
23696esac
23697echo "$as_me:$LINENO: checking for expat.h" >&5
23698echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23699if test "${ac_cv_header_expat_h+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702 ac_cv_header_expat_h=$ac_header_preproc
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23705echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23706
23707fi
23708if test $ac_cv_header_expat_h = yes; then
23709 found_expat_h=1
23710fi
23711
23712
23713 if test "x$found_expat_h" = "x1"; then
23714 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23715echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23716if test "${wx_cv_expat_is_not_broken+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23718else
23719
23720
23721
23722 ac_ext=cc
23723ac_cpp='$CXXCPP $CPPFLAGS'
23724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23727
23728 cat >conftest.$ac_ext <<_ACEOF
23729/* confdefs.h. */
23730_ACEOF
23731cat confdefs.h >>conftest.$ac_ext
23732cat >>conftest.$ac_ext <<_ACEOF
23733/* end confdefs.h. */
23734#include <expat.h>
23735int
23736main ()
23737{
23738
23739 ;
23740 return 0;
23741}
23742_ACEOF
23743rm -f conftest.$ac_objext
23744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23745 (eval $ac_compile) 2>conftest.er1
a848cd7e 23746 ac_status=$?
ac1cb8d3
VS
23747 grep -v '^ *+' conftest.er1 >conftest.err
23748 rm -f conftest.er1
23749 cat conftest.err >&5
a848cd7e
SC
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); } &&
6ebeb4c7 23752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; } &&
23758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764 wx_cv_expat_is_not_broken=yes
23765else
23766 echo "$as_me: failed program was:" >&5
23767sed 's/^/| /' conftest.$ac_ext >&5
23768
23769wx_cv_expat_is_not_broken=no
23770
23771fi
ac1cb8d3 23772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23773 ac_ext=c
23774ac_cpp='$CPP $CPPFLAGS'
23775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23777ac_compiler_gnu=$ac_cv_c_compiler_gnu
23778
23779
23780
23781fi
23782echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23783echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23784 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23785 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23786echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23787if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789else
23790 ac_check_lib_save_LIBS=$LIBS
23791LIBS="-lexpat $LIBS"
23792cat >conftest.$ac_ext <<_ACEOF
23793/* confdefs.h. */
23794_ACEOF
23795cat confdefs.h >>conftest.$ac_ext
23796cat >>conftest.$ac_ext <<_ACEOF
23797/* end confdefs.h. */
23798
23799/* Override any gcc2 internal prototype to avoid an error. */
23800#ifdef __cplusplus
23801extern "C"
23802#endif
23803/* We use char because int might match the return type of a gcc2
23804 builtin and then its argument prototype would still apply. */
23805char XML_ParserCreate ();
23806int
23807main ()
23808{
23809XML_ParserCreate ();
23810 ;
23811 return 0;
23812}
23813_ACEOF
23814rm -f conftest.$ac_objext conftest$ac_exeext
23815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23816 (eval $ac_link) 2>conftest.er1
a848cd7e 23817 ac_status=$?
ac1cb8d3
VS
23818 grep -v '^ *+' conftest.er1 >conftest.err
23819 rm -f conftest.er1
23820 cat conftest.err >&5
a848cd7e
SC
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } &&
6ebeb4c7 23823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; } &&
23829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23835 ac_cv_lib_expat_XML_ParserCreate=yes
23836else
23837 echo "$as_me: failed program was:" >&5
23838sed 's/^/| /' conftest.$ac_ext >&5
23839
23840ac_cv_lib_expat_XML_ParserCreate=no
23841fi
ac1cb8d3
VS
23842rm -f conftest.err conftest.$ac_objext \
23843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23844LIBS=$ac_check_lib_save_LIBS
23845fi
23846echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23847echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23848if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23849 EXPAT_LINK=" -lexpat"
23850fi
23851
23852 fi
23853 fi
23854 if test "x$EXPAT_LINK" = "x" ; then
23855 if test "$wxUSE_EXPAT" = "sys" ; then
23856 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23857echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23858 { (exit 1); exit 1; }; }
23859 else
23860 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23861echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23862 wxUSE_EXPAT=builtin
23863 fi
23864 else
23865 wxUSE_EXPAT=sys
23866 fi
23867 fi
23868 if test "$wxUSE_EXPAT" = "builtin" ; then
23869
23870
23871subdirs="$subdirs src/expat"
23872
23873 fi
23874fi
23875
23876
23877
23878if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23879 if test "${ac_cv_header_mspack_h+set}" = set; then
23880 echo "$as_me:$LINENO: checking for mspack.h" >&5
23881echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23882if test "${ac_cv_header_mspack_h+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884fi
23885echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23886echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23887else
23888 # Is the header compilable?
23889echo "$as_me:$LINENO: checking mspack.h usability" >&5
23890echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23891cat >conftest.$ac_ext <<_ACEOF
23892/* confdefs.h. */
23893_ACEOF
23894cat confdefs.h >>conftest.$ac_ext
23895cat >>conftest.$ac_ext <<_ACEOF
23896/* end confdefs.h. */
23897$ac_includes_default
23898#include <mspack.h>
23899_ACEOF
23900rm -f conftest.$ac_objext
23901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23902 (eval $ac_compile) 2>conftest.er1
a848cd7e 23903 ac_status=$?
ac1cb8d3
VS
23904 grep -v '^ *+' conftest.er1 >conftest.err
23905 rm -f conftest.er1
23906 cat conftest.err >&5
a848cd7e
SC
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
6ebeb4c7 23909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; } &&
23915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917 (eval $ac_try) 2>&5
23918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; }; then
23921 ac_header_compiler=yes
23922else
23923 echo "$as_me: failed program was:" >&5
23924sed 's/^/| /' conftest.$ac_ext >&5
23925
23926ac_header_compiler=no
23927fi
ac1cb8d3 23928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23930echo "${ECHO_T}$ac_header_compiler" >&6
23931
23932# Is the header present?
23933echo "$as_me:$LINENO: checking mspack.h presence" >&5
23934echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23935cat >conftest.$ac_ext <<_ACEOF
23936/* confdefs.h. */
23937_ACEOF
23938cat confdefs.h >>conftest.$ac_ext
23939cat >>conftest.$ac_ext <<_ACEOF
23940/* end confdefs.h. */
23941#include <mspack.h>
23942_ACEOF
23943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } >/dev/null; then
23951 if test -s conftest.err; then
23952 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23954 else
23955 ac_cpp_err=
23956 fi
23957else
23958 ac_cpp_err=yes
23959fi
23960if test -z "$ac_cpp_err"; then
23961 ac_header_preproc=yes
23962else
23963 echo "$as_me: failed program was:" >&5
23964sed 's/^/| /' conftest.$ac_ext >&5
23965
23966 ac_header_preproc=no
23967fi
23968rm -f conftest.err conftest.$ac_ext
23969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23970echo "${ECHO_T}$ac_header_preproc" >&6
23971
23972# So? What about this header?
ac1cb8d3
VS
23973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23974 yes:no: )
a848cd7e
SC
23975 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23976echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23977 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23978echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23979 ac_header_preproc=yes
a848cd7e 23980 ;;
ac1cb8d3 23981 no:yes:* )
a848cd7e
SC
23982 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23983echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23984 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23985echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23986 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23987echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23988 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23989echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23990 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23991echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23992 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23993echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23994 (
23995 cat <<\_ASBOX
ac1cb8d3
VS
23996## ----------------------------------------- ##
23997## Report this to wx-dev@lists.wxwidgets.org ##
23998## ----------------------------------------- ##
a848cd7e
SC
23999_ASBOX
24000 ) |
24001 sed "s/^/$as_me: WARNING: /" >&2
24002 ;;
24003esac
24004echo "$as_me:$LINENO: checking for mspack.h" >&5
24005echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24006if test "${ac_cv_header_mspack_h+set}" = set; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24008else
24009 ac_cv_header_mspack_h=$ac_header_preproc
24010fi
24011echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24012echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24013
24014fi
24015if test $ac_cv_header_mspack_h = yes; then
24016 found_mspack_h=1
24017fi
24018
24019
24020 if test "x$found_mspack_h" = "x1"; then
24021 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24022echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24023if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025else
24026 ac_check_lib_save_LIBS=$LIBS
24027LIBS="-lmspack $LIBS"
24028cat >conftest.$ac_ext <<_ACEOF
24029/* confdefs.h. */
24030_ACEOF
24031cat confdefs.h >>conftest.$ac_ext
24032cat >>conftest.$ac_ext <<_ACEOF
24033/* end confdefs.h. */
24034
24035/* Override any gcc2 internal prototype to avoid an error. */
24036#ifdef __cplusplus
24037extern "C"
24038#endif
24039/* We use char because int might match the return type of a gcc2
24040 builtin and then its argument prototype would still apply. */
24041char mspack_create_chm_decompressor ();
24042int
24043main ()
24044{
24045mspack_create_chm_decompressor ();
24046 ;
24047 return 0;
24048}
24049_ACEOF
24050rm -f conftest.$ac_objext conftest$ac_exeext
24051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24052 (eval $ac_link) 2>conftest.er1
a848cd7e 24053 ac_status=$?
ac1cb8d3
VS
24054 grep -v '^ *+' conftest.er1 >conftest.err
24055 rm -f conftest.er1
24056 cat conftest.err >&5
a848cd7e
SC
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } &&
6ebeb4c7 24059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; } &&
24065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; }; then
24071 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24072else
24073 echo "$as_me: failed program was:" >&5
24074sed 's/^/| /' conftest.$ac_ext >&5
24075
24076ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24077fi
ac1cb8d3
VS
24078rm -f conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24080LIBS=$ac_check_lib_save_LIBS
24081fi
24082echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24083echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24084if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24085 MSPACK_LINK=" -lmspack"
24086fi
24087
24088 fi
24089 if test "x$MSPACK_LINK" = "x" ; then
24090 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24091 fi
24092fi
24093
24094if test "$wxUSE_LIBMSPACK" != "no"; then
24095 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24096#define wxUSE_LIBMSPACK 1
24097_ACEOF
24098
a848cd7e
SC
24099fi
24100
24101
24102
24103AFMINSTALL=
24104WIN32INSTALL=
24105
24106TOOLKIT=
24107TOOLKIT_INCLUDE=
24108WIDGET_SET=
24109
24110if test "$USE_WIN32" = 1 ; then
24111
24112for ac_header in w32api.h
24113do
24114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116 echo "$as_me:$LINENO: checking for $ac_header" >&5
24117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120fi
24121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123else
24124 # Is the header compilable?
24125echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127cat >conftest.$ac_ext <<_ACEOF
24128/* confdefs.h. */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h. */
24133$ac_includes_default
24134#include <$ac_header>
24135_ACEOF
24136rm -f conftest.$ac_objext
24137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24138 (eval $ac_compile) 2>conftest.er1
a848cd7e 24139 ac_status=$?
ac1cb8d3
VS
24140 grep -v '^ *+' conftest.er1 >conftest.err
24141 rm -f conftest.er1
24142 cat conftest.err >&5
a848cd7e
SC
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } &&
6ebeb4c7 24145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; } &&
24151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 ac_header_compiler=yes
24158else
24159 echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162ac_header_compiler=no
24163fi
ac1cb8d3 24164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24166echo "${ECHO_T}$ac_header_compiler" >&6
24167
24168# Is the header present?
24169echo "$as_me:$LINENO: checking $ac_header presence" >&5
24170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24171cat >conftest.$ac_ext <<_ACEOF
24172/* confdefs.h. */
24173_ACEOF
24174cat confdefs.h >>conftest.$ac_ext
24175cat >>conftest.$ac_ext <<_ACEOF
24176/* end confdefs.h. */
24177#include <$ac_header>
24178_ACEOF
24179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24181 ac_status=$?
24182 grep -v '^ *+' conftest.er1 >conftest.err
24183 rm -f conftest.er1
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } >/dev/null; then
24187 if test -s conftest.err; then
24188 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24190 else
24191 ac_cpp_err=
24192 fi
24193else
24194 ac_cpp_err=yes
24195fi
24196if test -z "$ac_cpp_err"; then
24197 ac_header_preproc=yes
24198else
24199 echo "$as_me: failed program was:" >&5
24200sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ac_header_preproc=no
24203fi
24204rm -f conftest.err conftest.$ac_ext
24205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24206echo "${ECHO_T}$ac_header_preproc" >&6
24207
24208# So? What about this header?
ac1cb8d3
VS
24209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24210 yes:no: )
a848cd7e
SC
24211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24215 ac_header_preproc=yes
a848cd7e 24216 ;;
ac1cb8d3 24217 no:yes:* )
a848cd7e
SC
24218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24230 (
24231 cat <<\_ASBOX
ac1cb8d3
VS
24232## ----------------------------------------- ##
24233## Report this to wx-dev@lists.wxwidgets.org ##
24234## ----------------------------------------- ##
a848cd7e
SC
24235_ASBOX
24236 ) |
24237 sed "s/^/$as_me: WARNING: /" >&2
24238 ;;
24239esac
24240echo "$as_me:$LINENO: checking for $ac_header" >&5
24241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24242if eval "test \"\${$as_ac_Header+set}\" = set"; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244else
ac1cb8d3 24245 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24246fi
24247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24249
24250fi
24251if test `eval echo '${'$as_ac_Header'}'` = yes; then
24252 cat >>confdefs.h <<_ACEOF
24253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24254_ACEOF
24255
24256fi
24257
24258done
24259
24260 if test "${ac_cv_header_windows_h+set}" = set; then
24261 echo "$as_me:$LINENO: checking for windows.h" >&5
24262echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24263if test "${ac_cv_header_windows_h+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265fi
24266echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24267echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24268else
24269 # Is the header compilable?
24270echo "$as_me:$LINENO: checking windows.h usability" >&5
24271echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24272cat >conftest.$ac_ext <<_ACEOF
24273/* confdefs.h. */
24274_ACEOF
24275cat confdefs.h >>conftest.$ac_ext
24276cat >>conftest.$ac_ext <<_ACEOF
24277/* end confdefs.h. */
24278$ac_includes_default
24279#include <windows.h>
24280_ACEOF
24281rm -f conftest.$ac_objext
24282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24283 (eval $ac_compile) 2>conftest.er1
a848cd7e 24284 ac_status=$?
ac1cb8d3
VS
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
a848cd7e
SC
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } &&
6ebeb4c7 24290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); }; } &&
24296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24298 (eval $ac_try) 2>&5
24299 ac_status=$?
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; }; then
24302 ac_header_compiler=yes
24303else
24304 echo "$as_me: failed program was:" >&5
24305sed 's/^/| /' conftest.$ac_ext >&5
24306
24307ac_header_compiler=no
24308fi
ac1cb8d3 24309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24311echo "${ECHO_T}$ac_header_compiler" >&6
24312
24313# Is the header present?
24314echo "$as_me:$LINENO: checking windows.h presence" >&5
24315echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24316cat >conftest.$ac_ext <<_ACEOF
24317/* confdefs.h. */
24318_ACEOF
24319cat confdefs.h >>conftest.$ac_ext
24320cat >>conftest.$ac_ext <<_ACEOF
24321/* end confdefs.h. */
24322#include <windows.h>
24323_ACEOF
24324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24326 ac_status=$?
24327 grep -v '^ *+' conftest.er1 >conftest.err
24328 rm -f conftest.er1
24329 cat conftest.err >&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } >/dev/null; then
24332 if test -s conftest.err; then
24333 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24335 else
24336 ac_cpp_err=
24337 fi
24338else
24339 ac_cpp_err=yes
24340fi
24341if test -z "$ac_cpp_err"; then
24342 ac_header_preproc=yes
24343else
24344 echo "$as_me: failed program was:" >&5
24345sed 's/^/| /' conftest.$ac_ext >&5
24346
24347 ac_header_preproc=no
24348fi
24349rm -f conftest.err conftest.$ac_ext
24350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24351echo "${ECHO_T}$ac_header_preproc" >&6
24352
24353# So? What about this header?
ac1cb8d3
VS
24354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24355 yes:no: )
a848cd7e
SC
24356 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24357echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24358 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24359echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24360 ac_header_preproc=yes
a848cd7e 24361 ;;
ac1cb8d3 24362 no:yes:* )
a848cd7e
SC
24363 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24364echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24365 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24366echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24367 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24368echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24370echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24371 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24372echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24373 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24374echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24375 (
24376 cat <<\_ASBOX
ac1cb8d3
VS
24377## ----------------------------------------- ##
24378## Report this to wx-dev@lists.wxwidgets.org ##
24379## ----------------------------------------- ##
a848cd7e
SC
24380_ASBOX
24381 ) |
24382 sed "s/^/$as_me: WARNING: /" >&2
24383 ;;
24384esac
24385echo "$as_me:$LINENO: checking for windows.h" >&5
24386echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24387if test "${ac_cv_header_windows_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389else
24390 ac_cv_header_windows_h=$ac_header_preproc
24391fi
24392echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24393echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24394
24395fi
24396if test $ac_cv_header_windows_h = yes; then
24397 :
24398else
24399
24400 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24401echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24402 { (exit 1); exit 1; }; }
24403
24404fi
24405
24406
24407
24408 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24409
24410 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24411 LIBS="$LIBS -loleacc"
24412 fi
24413
24414 case "${host}" in
24415 *-*-cygwin* )
24416 LIBS="$LIBS -lkernel32 -luser32"
24417 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24418 esac
24419
24420 if test "$wxUSE_ODBC" = "sys" ; then
24421 wxUSE_ODBC = "yes"
24422 fi
24423 if test "$wxUSE_ODBC" = "yes" ; then
24424 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24425 cat >>confdefs.h <<\_ACEOF
24426#define wxUSE_ODBC 1
24427_ACEOF
24428
24429 fi
24430
24431 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24432 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24433
24434 WIN32INSTALL=win32install
24435fi
24436
24437if test "$wxUSE_GUI" = "yes"; then
24438 USE_GUI=1
24439
24440 GUI_TK_LIBRARY=
24441
24442 WXGTK12=
24443 WXGTK127=
24444 WXGTK20=
24445 WXGPE=
24446
207bc66c
RN
24447 if test "$wxUSE_COCOA" = 1 ; then
24448 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24449 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24450echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24451 wxUSE_PRINTING_ARCHITECTURE=no
24452 fi
24453 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24454 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24455echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24456 wxUSE_DRAG_AND_DROP=no
24457 fi
24458 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24459 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24460echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24461 wxUSE_DRAGIMAGE=no
24462 fi
24463 fi
24464
a848cd7e
SC
24465 if test "$wxUSE_MSW" = 1 ; then
24466 TOOLKIT=MSW
24467 GUIDIST=MSW_DIST
24468
ceec2216 24469 case "${host}" in
a848cd7e
SC
24470 *-*-mingw32* )
24471 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24472 esac
24473 fi
24474
24475 if test "$wxUSE_GTK" = 1; then
24476 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24477echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24478
24479 gtk_version_cached=1
24480 if test "${wx_cv_lib_gtk+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24482else
24483
24484 gtk_version_cached=0
24485 echo "$as_me:$LINENO: result: " >&5
24486echo "${ECHO_T}" >&6
24487
24488 GTK_MODULES=
24489 if test "$wxUSE_THREADS" = "yes"; then
24490 GTK_MODULES=gthread
24491 fi
24492
f597b41c 24493 wx_cv_lib_gtk=
f34ca037 24494 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24495 # Check whether --enable-gtktest or --disable-gtktest was given.
24496if test "${enable_gtktest+set}" = set; then
24497 enableval="$enable_gtktest"
24498
24499else
24500 enable_gtktest=yes
24501fi;
24502
24503 pkg_config_args=gtk+-2.0
24504 for module in . $GTK_MODULES
24505 do
24506 case "$module" in
24507 gthread)
24508 pkg_config_args="$pkg_config_args gthread-2.0"
24509 ;;
24510 esac
24511 done
24512
24513 no_gtk=""
24514
24515 # Extract the first word of "pkg-config", so it can be a program name with args.
24516set dummy pkg-config; ac_word=$2
24517echo "$as_me:$LINENO: checking for $ac_word" >&5
24518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24519if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
24521else
24522 case $PKG_CONFIG in
24523 [\\/]* | ?:[\\/]*)
24524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24525 ;;
24526 *)
24527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24528for as_dir in $PATH
24529do
24530 IFS=$as_save_IFS
24531 test -z "$as_dir" && as_dir=.
24532 for ac_exec_ext in '' $ac_executable_extensions; do
24533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24536 break 2
24537 fi
24538done
24539done
24540
24541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24542 ;;
24543esac
24544fi
24545PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24546
24547if test -n "$PKG_CONFIG"; then
24548 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24549echo "${ECHO_T}$PKG_CONFIG" >&6
24550else
24551 echo "$as_me:$LINENO: result: no" >&5
24552echo "${ECHO_T}no" >&6
24553fi
24554
24555
24556 if test x$PKG_CONFIG != xno ; then
24557 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24558 :
24559 else
c2218763 24560 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24561 no_gtk=yes
24562 PKG_CONFIG=no
24563 fi
24564 else
24565 no_gtk=yes
24566 fi
24567
24568 min_gtk_version=2.0.0
24569 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24570echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24571
24572 if test x$PKG_CONFIG != xno ; then
24573 ## don't try to run the test against uninstalled libtool libs
24574 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24575 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24576 enable_gtktest=no
24577 fi
24578
24579 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24580 :
24581 else
24582 no_gtk=yes
24583 fi
24584 fi
24585
24586 if test x"$no_gtk" = x ; then
24587 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24588 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24589 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24590 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24591 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24593 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24595 if test "x$enable_gtktest" = "xyes" ; then
24596 ac_save_CFLAGS="$CFLAGS"
24597 ac_save_LIBS="$LIBS"
24598 CFLAGS="$CFLAGS $GTK_CFLAGS"
24599 LIBS="$GTK_LIBS $LIBS"
24600 rm -f conf.gtktest
24601 if test "$cross_compiling" = yes; then
24602 echo $ac_n "cross compiling; assumed OK... $ac_c"
24603else
24604 cat >conftest.$ac_ext <<_ACEOF
24605/* confdefs.h. */
24606_ACEOF
24607cat confdefs.h >>conftest.$ac_ext
24608cat >>conftest.$ac_ext <<_ACEOF
24609/* end confdefs.h. */
24610
24611#include <gtk/gtk.h>
24612#include <stdio.h>
24613#include <stdlib.h>
24614
24615int
24616main ()
24617{
24618 int major, minor, micro;
24619 char *tmp_version;
24620
24621 system ("touch conf.gtktest");
24622
24623 /* HP/UX 9 (%@#!) writes to sscanf strings */
24624 tmp_version = g_strdup("$min_gtk_version");
24625 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24626 printf("%s, bad version string\n", "$min_gtk_version");
24627 exit(1);
24628 }
24629
24630 if ((gtk_major_version != $gtk_config_major_version) ||
24631 (gtk_minor_version != $gtk_config_minor_version) ||
24632 (gtk_micro_version != $gtk_config_micro_version))
24633 {
24634 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24635 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24636 gtk_major_version, gtk_minor_version, gtk_micro_version);
24637 printf ("*** was found! If pkg-config was correct, then it is best\n");
24638 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24639 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24640 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24641 printf("*** required on your system.\n");
24642 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24643 printf("*** to point to the correct configuration files\n");
24644 }
24645 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24646 (gtk_minor_version != GTK_MINOR_VERSION) ||
24647 (gtk_micro_version != GTK_MICRO_VERSION))
24648 {
24649 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24650 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24651 printf("*** library (version %d.%d.%d)\n",
24652 gtk_major_version, gtk_minor_version, gtk_micro_version);
24653 }
24654 else
24655 {
24656 if ((gtk_major_version > major) ||
24657 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24658 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24659 {
24660 return 0;
24661 }
24662 else
24663 {
24664 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24665 gtk_major_version, gtk_minor_version, gtk_micro_version);
24666 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24667 major, minor, micro);
24668 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24669 printf("***\n");
24670 printf("*** If you have already installed a sufficiently new version, this error\n");
24671 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24672 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24673 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24674 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24675 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24676 printf("*** so that the correct libraries are found at run-time))\n");
24677 }
24678 }
24679 return 1;
24680}
24681
24682_ACEOF
24683rm -f conftest$ac_exeext
24684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685 (eval $ac_link) 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 :
24695else
24696 echo "$as_me: program exited with status $ac_status" >&5
24697echo "$as_me: failed program was:" >&5
24698sed 's/^/| /' conftest.$ac_ext >&5
24699
24700( exit $ac_status )
24701no_gtk=yes
24702fi
ac1cb8d3 24703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24704fi
24705 CFLAGS="$ac_save_CFLAGS"
24706 LIBS="$ac_save_LIBS"
24707 fi
24708 fi
24709 if test "x$no_gtk" = x ; then
24710 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24711echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24712 wx_cv_lib_gtk=2.0
24713 else
24714 echo "$as_me:$LINENO: result: no" >&5
24715echo "${ECHO_T}no" >&6
24716 if test "$PKG_CONFIG" = "no" ; then
24717 echo "*** A new enough version of pkg-config was not found."
24718 echo "*** See http://pkgconfig.sourceforge.net"
24719 else
24720 if test -f conf.gtktest ; then
24721 :
24722 else
24723 echo "*** Could not run GTK+ test program, checking why..."
24724 ac_save_CFLAGS="$CFLAGS"
24725 ac_save_LIBS="$LIBS"
24726 CFLAGS="$CFLAGS $GTK_CFLAGS"
24727 LIBS="$LIBS $GTK_LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24729/* confdefs.h. */
24730_ACEOF
24731cat confdefs.h >>conftest.$ac_ext
24732cat >>conftest.$ac_ext <<_ACEOF
24733/* end confdefs.h. */
24734
24735#include <gtk/gtk.h>
24736#include <stdio.h>
24737
24738int
24739main ()
24740{
24741 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24742 ;
24743 return 0;
24744}
24745_ACEOF
24746rm -f conftest.$ac_objext conftest$ac_exeext
24747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24748 (eval $ac_link) 2>conftest.er1
a848cd7e 24749 ac_status=$?
ac1cb8d3
VS
24750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
a848cd7e
SC
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } &&
6ebeb4c7 24755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; } &&
24761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; }; then
24767 echo "*** The test program compiled, but did not run. This usually means"
24768 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24769 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24770 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24771 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24772 echo "*** is required on your system"
24773 echo "***"
24774 echo "*** If you have an old version installed, it is best to remove it, although"
24775 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24776else
24777 echo "$as_me: failed program was:" >&5
24778sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 echo "*** The test program failed to compile or link. See the file config.log for the"
24781 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24782fi
ac1cb8d3
VS
24783rm -f conftest.err conftest.$ac_objext \
24784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24785 CFLAGS="$ac_save_CFLAGS"
24786 LIBS="$ac_save_LIBS"
24787 fi
24788 fi
24789 GTK_CFLAGS=""
24790 GTK_LIBS=""
24791 :
24792 fi
24793
24794
24795 rm -f conf.gtktest
24796
f597b41c
MW
24797 fi
24798
f34ca037
MW
24799 if test -z "$wx_cv_lib_gtk"; then
24800 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24801
24802# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24803if test "${with_gtk_prefix+set}" = set; then
24804 withval="$with_gtk_prefix"
24805 gtk_config_prefix="$withval"
24806else
24807 gtk_config_prefix=""
24808fi;
24809
24810# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24811if test "${with_gtk_exec_prefix+set}" = set; then
24812 withval="$with_gtk_exec_prefix"
24813 gtk_config_exec_prefix="$withval"
24814else
24815 gtk_config_exec_prefix=""
24816fi;
24817# Check whether --enable-gtktest or --disable-gtktest was given.
24818if test "${enable_gtktest+set}" = set; then
24819 enableval="$enable_gtktest"
24820
24821else
24822 enable_gtktest=yes
24823fi;
24824
24825 for module in . $GTK_MODULES
24826 do
24827 case "$module" in
24828 gthread)
24829 gtk_config_args="$gtk_config_args gthread"
24830 ;;
24831 esac
24832 done
24833
24834 if test x$gtk_config_exec_prefix != x ; then
24835 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24836 if test x${GTK_CONFIG+set} != xset ; then
24837 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24838 fi
24839 fi
24840 if test x$gtk_config_prefix != x ; then
24841 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24842 if test x${GTK_CONFIG+set} != xset ; then
24843 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24844 fi
24845 fi
24846
24847 # Extract the first word of "gtk-config", so it can be a program name with args.
24848set dummy gtk-config; ac_word=$2
24849echo "$as_me:$LINENO: checking for $ac_word" >&5
24850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24851if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24853else
24854 case $GTK_CONFIG in
24855 [\\/]* | ?:[\\/]*)
24856 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24857 ;;
24858 *)
24859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24860for as_dir in $PATH
24861do
24862 IFS=$as_save_IFS
24863 test -z "$as_dir" && as_dir=.
24864 for ac_exec_ext in '' $ac_executable_extensions; do
24865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24866 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24868 break 2
24869 fi
24870done
24871done
24872
24873 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24874 ;;
24875esac
24876fi
24877GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24878
24879if test -n "$GTK_CONFIG"; then
24880 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24881echo "${ECHO_T}$GTK_CONFIG" >&6
24882else
24883 echo "$as_me:$LINENO: result: no" >&5
24884echo "${ECHO_T}no" >&6
24885fi
24886
24887 min_gtk_version=1.2.7
24888 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24889echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24890 no_gtk=""
24891 if test "$GTK_CONFIG" = "no" ; then
24892 no_gtk=yes
24893 else
24894 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24895 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24896 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24897 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24898 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24900 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24902 if test "x$enable_gtktest" = "xyes" ; then
24903 ac_save_CFLAGS="$CFLAGS"
24904 ac_save_LIBS="$LIBS"
24905 CFLAGS="$CFLAGS $GTK_CFLAGS"
24906 LIBS="$GTK_LIBS $LIBS"
24907 rm -f conf.gtktest
24908 if test "$cross_compiling" = yes; then
24909 echo $ac_n "cross compiling; assumed OK... $ac_c"
24910else
24911 cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h. */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h. */
24917
24918#include <gtk/gtk.h>
24919#include <stdio.h>
24920#include <stdlib.h>
24921
24922int
24923main ()
24924{
24925 int major, minor, micro;
24926 char *tmp_version;
24927
24928 system ("touch conf.gtktest");
24929
24930 /* HP/UX 9 (%@#!) writes to sscanf strings */
24931 tmp_version = g_strdup("$min_gtk_version");
24932 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24933 printf("%s, bad version string\n", "$min_gtk_version");
24934 exit(1);
24935 }
24936
24937 if ((gtk_major_version != $gtk_config_major_version) ||
24938 (gtk_minor_version != $gtk_config_minor_version) ||
24939 (gtk_micro_version != $gtk_config_micro_version))
24940 {
24941 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24942 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24943 gtk_major_version, gtk_minor_version, gtk_micro_version);
24944 printf ("*** was found! If gtk-config was correct, then it is best\n");
24945 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24946 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24947 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24948 printf("*** required on your system.\n");
24949 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24950 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24951 printf("*** before re-running configure\n");
24952 }
24953#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24954 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24955 (gtk_minor_version != GTK_MINOR_VERSION) ||
24956 (gtk_micro_version != GTK_MICRO_VERSION))
24957 {
24958 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24959 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24960 printf("*** library (version %d.%d.%d)\n",
24961 gtk_major_version, gtk_minor_version, gtk_micro_version);
24962 }
24963#endif /* defined (GTK_MAJOR_VERSION) ... */
24964 else
24965 {
24966 if ((gtk_major_version > major) ||
24967 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24968 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24969 {
24970 return 0;
24971 }
24972 else
24973 {
24974 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24975 gtk_major_version, gtk_minor_version, gtk_micro_version);
24976 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24977 major, minor, micro);
24978 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24979 printf("***\n");
24980 printf("*** If you have already installed a sufficiently new version, this error\n");
24981 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24982 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24983 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24984 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24985 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24986 printf("*** so that the correct libraries are found at run-time))\n");
24987 }
24988 }
24989 return 1;
24990}
24991
24992_ACEOF
24993rm -f conftest$ac_exeext
24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995 (eval $ac_link) 2>&5
24996 ac_status=$?
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; }; then
25004 :
25005else
25006 echo "$as_me: program exited with status $ac_status" >&5
25007echo "$as_me: failed program was:" >&5
25008sed 's/^/| /' conftest.$ac_ext >&5
25009
25010( exit $ac_status )
25011no_gtk=yes
25012fi
ac1cb8d3 25013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25014fi
25015 CFLAGS="$ac_save_CFLAGS"
25016 LIBS="$ac_save_LIBS"
25017 fi
25018 fi
25019 if test "x$no_gtk" = x ; then
25020 echo "$as_me:$LINENO: result: yes" >&5
25021echo "${ECHO_T}yes" >&6
25022 wx_cv_lib_gtk=1.2.7
25023 else
25024 echo "$as_me:$LINENO: result: no" >&5
25025echo "${ECHO_T}no" >&6
25026 if test "$GTK_CONFIG" = "no" ; then
25027 echo "*** The gtk-config script installed by GTK could not be found"
25028 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25029 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25030 echo "*** full path to gtk-config."
25031 else
25032 if test -f conf.gtktest ; then
25033 :
25034 else
25035 echo "*** Could not run GTK test program, checking why..."
25036 CFLAGS="$CFLAGS $GTK_CFLAGS"
25037 LIBS="$LIBS $GTK_LIBS"
25038 cat >conftest.$ac_ext <<_ACEOF
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
25044
25045#include <gtk/gtk.h>
25046#include <stdio.h>
25047
25048int
25049main ()
25050{
25051 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext conftest$ac_exeext
25057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25058 (eval $ac_link) 2>conftest.er1
a848cd7e 25059 ac_status=$?
ac1cb8d3
VS
25060 grep -v '^ *+' conftest.er1 >conftest.err
25061 rm -f conftest.er1
25062 cat conftest.err >&5
a848cd7e
SC
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } &&
6ebeb4c7 25065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; } &&
25071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 echo "*** The test program compiled, but did not run. This usually means"
25078 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25079 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25080 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25081 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25082 echo "*** is required on your system"
25083 echo "***"
25084 echo "*** If you have an old version installed, it is best to remove it, although"
25085 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25086 echo "***"
25087 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25088 echo "*** came with the system with the command"
25089 echo "***"
25090 echo "*** rpm --erase --nodeps gtk gtk-devel"
25091else
25092 echo "$as_me: failed program was:" >&5
25093sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 echo "*** The test program failed to compile or link. See the file config.log for the"
25096 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25097 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25098 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25099fi
ac1cb8d3
VS
25100rm -f conftest.err conftest.$ac_objext \
25101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25102 CFLAGS="$ac_save_CFLAGS"
25103 LIBS="$ac_save_LIBS"
25104 fi
25105 fi
25106 GTK_CFLAGS=""
25107 GTK_LIBS=""
25108 :
25109 fi
25110
25111
25112 rm -f conf.gtktest
25113
25114
f34ca037 25115 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25116
25117# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25118if test "${with_gtk_prefix+set}" = set; then
25119 withval="$with_gtk_prefix"
25120 gtk_config_prefix="$withval"
25121else
25122 gtk_config_prefix=""
25123fi;
25124
25125# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25126if test "${with_gtk_exec_prefix+set}" = set; then
25127 withval="$with_gtk_exec_prefix"
25128 gtk_config_exec_prefix="$withval"
25129else
25130 gtk_config_exec_prefix=""
25131fi;
25132# Check whether --enable-gtktest or --disable-gtktest was given.
25133if test "${enable_gtktest+set}" = set; then
25134 enableval="$enable_gtktest"
25135
25136else
25137 enable_gtktest=yes
25138fi;
25139
25140 for module in . $GTK_MODULES
25141 do
25142 case "$module" in
25143 gthread)
25144 gtk_config_args="$gtk_config_args gthread"
25145 ;;
25146 esac
25147 done
25148
25149 if test x$gtk_config_exec_prefix != x ; then
25150 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25151 if test x${GTK_CONFIG+set} != xset ; then
25152 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25153 fi
25154 fi
25155 if test x$gtk_config_prefix != x ; then
25156 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25157 if test x${GTK_CONFIG+set} != xset ; then
25158 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25159 fi
25160 fi
25161
25162 # Extract the first word of "gtk-config", so it can be a program name with args.
25163set dummy gtk-config; ac_word=$2
25164echo "$as_me:$LINENO: checking for $ac_word" >&5
25165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25166if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25167 echo $ECHO_N "(cached) $ECHO_C" >&6
25168else
25169 case $GTK_CONFIG in
25170 [\\/]* | ?:[\\/]*)
25171 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25172 ;;
25173 *)
25174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25175for as_dir in $PATH
25176do
25177 IFS=$as_save_IFS
25178 test -z "$as_dir" && as_dir=.
25179 for ac_exec_ext in '' $ac_executable_extensions; do
25180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25181 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25183 break 2
25184 fi
25185done
25186done
25187
25188 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25189 ;;
25190esac
25191fi
25192GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25193
25194if test -n "$GTK_CONFIG"; then
25195 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25196echo "${ECHO_T}$GTK_CONFIG" >&6
25197else
25198 echo "$as_me:$LINENO: result: no" >&5
25199echo "${ECHO_T}no" >&6
25200fi
25201
25202 min_gtk_version=1.2.3
25203 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25204echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25205 no_gtk=""
25206 if test "$GTK_CONFIG" = "no" ; then
25207 no_gtk=yes
25208 else
25209 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25210 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25211 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25213 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25215 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25217 if test "x$enable_gtktest" = "xyes" ; then
25218 ac_save_CFLAGS="$CFLAGS"
25219 ac_save_LIBS="$LIBS"
25220 CFLAGS="$CFLAGS $GTK_CFLAGS"
25221 LIBS="$GTK_LIBS $LIBS"
25222 rm -f conf.gtktest
25223 if test "$cross_compiling" = yes; then
25224 echo $ac_n "cross compiling; assumed OK... $ac_c"
25225else
25226 cat >conftest.$ac_ext <<_ACEOF
25227/* confdefs.h. */
25228_ACEOF
25229cat confdefs.h >>conftest.$ac_ext
25230cat >>conftest.$ac_ext <<_ACEOF
25231/* end confdefs.h. */
25232
25233#include <gtk/gtk.h>
25234#include <stdio.h>
25235#include <stdlib.h>
25236
25237int
25238main ()
25239{
25240 int major, minor, micro;
25241 char *tmp_version;
25242
25243 system ("touch conf.gtktest");
25244
25245 /* HP/UX 9 (%@#!) writes to sscanf strings */
25246 tmp_version = g_strdup("$min_gtk_version");
25247 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25248 printf("%s, bad version string\n", "$min_gtk_version");
25249 exit(1);
25250 }
25251
25252 if ((gtk_major_version != $gtk_config_major_version) ||
25253 (gtk_minor_version != $gtk_config_minor_version) ||
25254 (gtk_micro_version != $gtk_config_micro_version))
25255 {
25256 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25257 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25258 gtk_major_version, gtk_minor_version, gtk_micro_version);
25259 printf ("*** was found! If gtk-config was correct, then it is best\n");
25260 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25261 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25262 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25263 printf("*** required on your system.\n");
25264 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25265 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25266 printf("*** before re-running configure\n");
25267 }
25268#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25269 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25270 (gtk_minor_version != GTK_MINOR_VERSION) ||
25271 (gtk_micro_version != GTK_MICRO_VERSION))
25272 {
25273 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25274 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25275 printf("*** library (version %d.%d.%d)\n",
25276 gtk_major_version, gtk_minor_version, gtk_micro_version);
25277 }
25278#endif /* defined (GTK_MAJOR_VERSION) ... */
25279 else
25280 {
25281 if ((gtk_major_version > major) ||
25282 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25283 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25284 {
25285 return 0;
25286 }
25287 else
25288 {
25289 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25290 gtk_major_version, gtk_minor_version, gtk_micro_version);
25291 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25292 major, minor, micro);
25293 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25294 printf("***\n");
25295 printf("*** If you have already installed a sufficiently new version, this error\n");
25296 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25297 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25298 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25299 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25300 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25301 printf("*** so that the correct libraries are found at run-time))\n");
25302 }
25303 }
25304 return 1;
25305}
25306
25307_ACEOF
25308rm -f conftest$ac_exeext
25309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25310 (eval $ac_link) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; }; then
25319 :
25320else
25321 echo "$as_me: program exited with status $ac_status" >&5
25322echo "$as_me: failed program was:" >&5
25323sed 's/^/| /' conftest.$ac_ext >&5
25324
25325( exit $ac_status )
25326no_gtk=yes
25327fi
ac1cb8d3 25328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25329fi
25330 CFLAGS="$ac_save_CFLAGS"
25331 LIBS="$ac_save_LIBS"
25332 fi
25333 fi
25334 if test "x$no_gtk" = x ; then
25335 echo "$as_me:$LINENO: result: yes" >&5
25336echo "${ECHO_T}yes" >&6
25337 wx_cv_lib_gtk=1.2.3
25338 else
25339 echo "$as_me:$LINENO: result: no" >&5
25340echo "${ECHO_T}no" >&6
25341 if test "$GTK_CONFIG" = "no" ; then
25342 echo "*** The gtk-config script installed by GTK could not be found"
25343 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25344 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25345 echo "*** full path to gtk-config."
25346 else
25347 if test -f conf.gtktest ; then
25348 :
25349 else
25350 echo "*** Could not run GTK test program, checking why..."
25351 CFLAGS="$CFLAGS $GTK_CFLAGS"
25352 LIBS="$LIBS $GTK_LIBS"
25353 cat >conftest.$ac_ext <<_ACEOF
25354/* confdefs.h. */
25355_ACEOF
25356cat confdefs.h >>conftest.$ac_ext
25357cat >>conftest.$ac_ext <<_ACEOF
25358/* end confdefs.h. */
25359
25360#include <gtk/gtk.h>
25361#include <stdio.h>
25362
25363int
25364main ()
25365{
25366 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25367 ;
25368 return 0;
25369}
25370_ACEOF
25371rm -f conftest.$ac_objext conftest$ac_exeext
25372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25373 (eval $ac_link) 2>conftest.er1
a848cd7e 25374 ac_status=$?
ac1cb8d3
VS
25375 grep -v '^ *+' conftest.er1 >conftest.err
25376 rm -f conftest.er1
25377 cat conftest.err >&5
a848cd7e
SC
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
6ebeb4c7 25380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; } &&
25386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 echo "*** The test program compiled, but did not run. This usually means"
25393 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25394 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25395 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25396 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25397 echo "*** is required on your system"
25398 echo "***"
25399 echo "*** If you have an old version installed, it is best to remove it, although"
25400 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25401 echo "***"
25402 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25403 echo "*** came with the system with the command"
25404 echo "***"
25405 echo "*** rpm --erase --nodeps gtk gtk-devel"
25406else
25407 echo "$as_me: failed program was:" >&5
25408sed 's/^/| /' conftest.$ac_ext >&5
25409
25410 echo "*** The test program failed to compile or link. See the file config.log for the"
25411 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25412 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25413 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25414fi
ac1cb8d3
VS
25415rm -f conftest.err conftest.$ac_objext \
25416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25417 CFLAGS="$ac_save_CFLAGS"
25418 LIBS="$ac_save_LIBS"
25419 fi
25420 fi
25421 GTK_CFLAGS=""
25422 GTK_LIBS=""
25423 :
25424 fi
25425
25426
25427 rm -f conf.gtktest
25428
f34ca037 25429 fi
a848cd7e
SC
25430 fi
25431 fi
25432
25433 if test -z "$wx_cv_lib_gtk"; then
25434 wx_cv_lib_gtk=none
25435 else
25436 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 25437 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
25438 fi
25439
25440
25441fi
25442
25443
25444 if test "$gtk_version_cached" = 1; then
25445 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25446echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25447 fi
25448
25449 case "$wx_cv_lib_gtk" in
25450 2.0) WXGTK20=1
25451 TOOLKIT_VERSION=2
25452 ;;
25453 1.2.7) WXGTK127=1
25454 WXGTK12=1
25455 ;;
25456 1.2.3) WXGTK12=1
25457 ;;
25458 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25459The development files for GTK+ were not found. For GTK+ 2, please
25460ensure that pkg-config is in the path and that gtk+-2.0.pc is
25461installed. For GTK+ 1.2 please check that gtk-config is in the path,
25462and that the version is 1.2.3 or above. Also check that the
25463libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25464--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25465 " >&5
25466echo "$as_me: error:
f597b41c
MW
25467The development files for GTK+ were not found. For GTK+ 2, please
25468ensure that pkg-config is in the path and that gtk+-2.0.pc is
25469installed. For GTK+ 1.2 please check that gtk-config is in the path,
25470and that the version is 1.2.3 or above. Also check that the
25471libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25472--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25473 " >&2;}
25474 { (exit 1); exit 1; }; }
25475 ;;
25476 esac
25477
25478 if test "$WXGTK20" = 1; then
304205f1
VS
25479 save_CFLAGS="$CFLAGS"
25480 save_LIBS="$LIBS"
9d271838 25481 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25482 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25483
d12aef51
VZ
25484 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25485echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25486 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
25487/* confdefs.h. */
25488_ACEOF
25489cat confdefs.h >>conftest.$ac_ext
25490cat >>conftest.$ac_ext <<_ACEOF
25491/* end confdefs.h. */
304205f1 25492
d12aef51 25493 #include <gtk/gtk.h>
304205f1 25494
d12aef51
VZ
25495int
25496main ()
25497{
304205f1 25498
d12aef51 25499 void *f = gtk_icon_size_lookup;
abc736fd
MW
25500
25501 ;
25502 return 0;
25503}
25504_ACEOF
25505rm -f conftest.$ac_objext
25506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25507 (eval $ac_compile) 2>conftest.er1
25508 ac_status=$?
25509 grep -v '^ *+' conftest.er1 >conftest.err
25510 rm -f conftest.er1
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } &&
6ebeb4c7 25514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25517 ac_status=$?
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; } &&
25520 { ac_try='test -s conftest.$ac_objext'
25521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); }; }; then
25526
25527 echo "$as_me:$LINENO: result: no" >&5
25528echo "${ECHO_T}no" >&6
25529
25530else
25531 echo "$as_me: failed program was:" >&5
25532sed 's/^/| /' conftest.$ac_ext >&5
25533
25534
25535 cat >>confdefs.h <<\_ACEOF
25536#define NEED_GTK_ICON_SIZE_LOOKUP 1
25537_ACEOF
25538
25539 echo "$as_me:$LINENO: result: yes" >&5
25540echo "${ECHO_T}yes" >&6
25541
25542fi
25543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25544
9755e73b
VS
25545 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25546echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25547 cat >conftest.$ac_ext <<_ACEOF
25548/* confdefs.h. */
25549_ACEOF
25550cat confdefs.h >>conftest.$ac_ext
25551cat >>conftest.$ac_ext <<_ACEOF
25552/* end confdefs.h. */
25553
25554 #include <gtk/gtk.h>
25555
25556int
25557main ()
25558{
25559
25560 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 25561 Not GTK+ 2.4
9755e73b
VS
25562 #endif
25563
25564 ;
25565 return 0;
25566}
25567_ACEOF
25568rm -f conftest.$ac_objext
25569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25570 (eval $ac_compile) 2>conftest.er1
25571 ac_status=$?
25572 grep -v '^ *+' conftest.er1 >conftest.err
25573 rm -f conftest.er1
25574 cat conftest.err >&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } &&
6ebeb4c7 25577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25580 ac_status=$?
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; } &&
25583 { ac_try='test -s conftest.$ac_objext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589
25590 cat >>confdefs.h <<\_ACEOF
25591#define __WXGTK24__ 1
25592_ACEOF
25593
25594 echo "$as_me:$LINENO: result: yes" >&5
25595echo "${ECHO_T}yes" >&6
25596
25597else
25598 echo "$as_me: failed program was:" >&5
25599sed 's/^/| /' conftest.$ac_ext >&5
25600
25601
25602 echo "$as_me:$LINENO: result: no" >&5
25603echo "${ECHO_T}no" >&6
25604
25605fi
25606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25607
304205f1
VS
25608 CFLAGS="$save_CFLAGS"
25609 LIBS="$save_LIBS"
a848cd7e
SC
25610 else
25611 if test "$wxUSE_UNICODE" = "yes"; then
25612 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25613echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25614 wxUSE_UNICODE=no
25615 fi
25616 fi
25617
25618 if test "$USE_DARWIN" != 1; then
25619
25620for ac_func in poll
25621do
25622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25623echo "$as_me:$LINENO: checking for $ac_func" >&5
25624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25625if eval "test \"\${$as_ac_var+set}\" = set"; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25627else
25628 cat >conftest.$ac_ext <<_ACEOF
25629/* confdefs.h. */
25630_ACEOF
25631cat confdefs.h >>conftest.$ac_ext
25632cat >>conftest.$ac_ext <<_ACEOF
25633/* end confdefs.h. */
ac1cb8d3
VS
25634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25636#define $ac_func innocuous_$ac_func
25637
a848cd7e
SC
25638/* System header to define __stub macros and hopefully few prototypes,
25639 which can conflict with char $ac_func (); below.
25640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25642
a848cd7e
SC
25643#ifdef __STDC__
25644# include <limits.h>
25645#else
25646# include <assert.h>
25647#endif
ac1cb8d3
VS
25648
25649#undef $ac_func
25650
a848cd7e
SC
25651/* Override any gcc2 internal prototype to avoid an error. */
25652#ifdef __cplusplus
25653extern "C"
25654{
25655#endif
25656/* We use char because int might match the return type of a gcc2
25657 builtin and then its argument prototype would still apply. */
25658char $ac_func ();
25659/* The GNU C library defines this for functions which it implements
25660 to always fail with ENOSYS. Some functions are actually named
25661 something starting with __ and the normal name is an alias. */
25662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25663choke me
25664#else
25665char (*f) () = $ac_func;
25666#endif
25667#ifdef __cplusplus
25668}
25669#endif
25670
25671int
25672main ()
25673{
25674return f != $ac_func;
25675 ;
25676 return 0;
25677}
25678_ACEOF
25679rm -f conftest.$ac_objext conftest$ac_exeext
25680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25681 (eval $ac_link) 2>conftest.er1
a848cd7e 25682 ac_status=$?
ac1cb8d3
VS
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
a848cd7e
SC
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } &&
6ebeb4c7 25688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; } &&
25694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25697 ac_status=$?
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; }; then
25700 eval "$as_ac_var=yes"
25701else
25702 echo "$as_me: failed program was:" >&5
25703sed 's/^/| /' conftest.$ac_ext >&5
25704
25705eval "$as_ac_var=no"
25706fi
ac1cb8d3
VS
25707rm -f conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25709fi
25710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25712if test `eval echo '${'$as_ac_var'}'` = yes; then
25713 cat >>confdefs.h <<_ACEOF
25714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25715_ACEOF
25716
25717fi
25718done
25719
25720 fi
25721
25722 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25723 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25724
25725 AFMINSTALL=afminstall
25726 TOOLKIT=GTK
25727 GUIDIST=GTK_DIST
25728
25729 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25730echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25731if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25733else
25734 ac_check_lib_save_LIBS=$LIBS
25735LIBS="-lgdk $LIBS"
25736cat >conftest.$ac_ext <<_ACEOF
25737/* confdefs.h. */
25738_ACEOF
25739cat confdefs.h >>conftest.$ac_ext
25740cat >>conftest.$ac_ext <<_ACEOF
25741/* end confdefs.h. */
25742
25743/* Override any gcc2 internal prototype to avoid an error. */
25744#ifdef __cplusplus
25745extern "C"
25746#endif
25747/* We use char because int might match the return type of a gcc2
25748 builtin and then its argument prototype would still apply. */
25749char gdk_im_open ();
25750int
25751main ()
25752{
25753gdk_im_open ();
25754 ;
25755 return 0;
25756}
25757_ACEOF
25758rm -f conftest.$ac_objext conftest$ac_exeext
25759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25760 (eval $ac_link) 2>conftest.er1
a848cd7e 25761 ac_status=$?
ac1cb8d3
VS
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
a848cd7e
SC
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
6ebeb4c7 25767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; } &&
25773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; }; then
25779 ac_cv_lib_gdk_gdk_im_open=yes
25780else
25781 echo "$as_me: failed program was:" >&5
25782sed 's/^/| /' conftest.$ac_ext >&5
25783
25784ac_cv_lib_gdk_gdk_im_open=no
25785fi
ac1cb8d3
VS
25786rm -f conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25788LIBS=$ac_check_lib_save_LIBS
25789fi
25790echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25791echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25792if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25793 cat >>confdefs.h <<\_ACEOF
25794#define HAVE_XIM 1
25795_ACEOF
25796
25797fi
25798
25799
25800
25801 if test "$wxUSE_GPE" = "yes"; then
25802 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25803echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25804
25805ac_find_libraries=
25806for ac_dir in $SEARCH_LIB /usr/lib;
25807 do
3eca31dc 25808 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
25809 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25810 ac_find_libraries=$ac_dir
25811 break 2
25812 fi
25813 done
25814 done
25815
25816 if test "$ac_find_libraries" != "" ; then
25817
25818 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25819 result=$?
25820 if test $result = 0; then
25821 ac_path_to_link=""
25822 else
25823 ac_path_to_link=" -L$ac_find_libraries"
25824 fi
25825
25826 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25827 WXGPE=1
25828 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25829echo "${ECHO_T}found at $ac_find_libraries" >&6
25830 else
25831 echo "$as_me:$LINENO: result: not found" >&5
25832echo "${ECHO_T}not found" >&6
25833 fi
25834
25835 fi
25836 fi
25837
25838 if test "$wxUSE_MGL" = 1; then
25839 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25840echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25841 if test "x$MGL_ROOT" = x ; then
25842 echo "$as_me:$LINENO: result: not found" >&5
25843echo "${ECHO_T}not found" >&6
25844 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25845echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25846 { (exit 1); exit 1; }; }
25847 else
25848 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25849echo "${ECHO_T}$MGL_ROOT" >&6
25850 fi
25851
25852 echo "$as_me:$LINENO: checking for libmgl location" >&5
25853echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25854 case "${host}" in
25855 *-*-linux* )
25856 if test "x$wxUSE_SHARED" = xyes ; then
25857 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25858 else
25859 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25860 fi
25861 ;;
25862 *-pc-msdosdjgpp )
25863 mgl_os_candidates="dos32/dj2"
25864 ;;
25865 *)
25866 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25867echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25868 { (exit 1); exit 1; }; }
25869 esac
25870
25871 mgl_lib_type=""
25872 mgl_os=""
25873
25874 for mgl_os_i in $mgl_os_candidates ; do
25875 if test "x$mgl_os" = x ; then
25876 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25877 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25878 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25879 mgl_lib_type=debug
25880 mgl_os=$mgl_os_i
25881 fi
25882 fi
25883 if test "x$mgl_lib_type" = x ; then
25884 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25885 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25886 mgl_lib_type=release
25887 mgl_os=$mgl_os_i
25888 fi
25889 fi
25890 fi
25891 done
25892
25893 if test "x$mgl_os" = x ; then
25894 echo "$as_me:$LINENO: result: not found" >&5
25895echo "${ECHO_T}not found" >&6
25896 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25897echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25898 { (exit 1); exit 1; }; }
25899 fi
25900 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25901echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25902
25903 wxUSE_UNIVERSAL="yes"
25904
25905 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25906 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25907
25908 AFMINSTALL=afminstall
25909 TOOLKIT=MGL
25910 GUIDIST=MGL_DIST
25911 fi
25912
25913 if test "$wxUSE_MICROWIN" = 1; then
25914 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25915echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25916 if test "x$MICROWINDOWS" = x ; then
25917 echo "$as_me:$LINENO: result: not found" >&5
25918echo "${ECHO_T}not found" >&6
25919 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25920echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25921 { (exit 1); exit 1; }; }
25922 else
25923 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25924echo "${ECHO_T}$MICROWINDOWS" >&6
25925 fi
25926
25927 if test -f $MICROWINDOWS/lib/libmwin.a; then
25928 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25929echo "${ECHO_T}MicroWindows' libraries found." >&6
25930 else
25931 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25932echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25933 { (exit 1); exit 1; }; }
25934 fi
25935
25936 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25937 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25938
25939 wxUSE_UNIVERSAL="yes"
25940
25941 AFMINSTALL=afminstall
25942 TOOLKIT=MICROWIN
25943 GUIDIST=MICROWIN_DIST
25944
25945 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25946 fi
25947
74b84332 25948 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
25949
25950if test "x$ac_path_x_has_been_run" != xyes; then
25951 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25952echo $ECHO_N "checking for X... $ECHO_C" >&6
25953
6ebeb4c7 25954ac_path_x_has_been_run=yes
a848cd7e
SC
25955
25956# Check whether --with-x or --without-x was given.
25957if test "${with_x+set}" = set; then
25958 withval="$with_x"
25959
25960fi;
25961# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25962if test "x$with_x" = xno; then
25963 # The user explicitly disabled X.
25964 have_x=disabled
25965else
25966 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25967 # Both variables are already set.
25968 have_x=yes
25969 else
25970 if test "${ac_cv_have_x+set}" = set; then
25971 echo $ECHO_N "(cached) $ECHO_C" >&6
25972else
25973 # One or both of the vars are not set, and there is no cached value.
25974ac_x_includes=no ac_x_libraries=no
25975rm -fr conftest.dir
25976if mkdir conftest.dir; then
25977 cd conftest.dir
25978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25979 cat >Imakefile <<'_ACEOF'
25980acfindx:
25981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25982_ACEOF
25983 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25987 for ac_extension in a so sl; do
25988 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25989 test -f $ac_im_libdir/libX11.$ac_extension; then
25990 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25991 fi
25992 done
25993 # Screen out bogus values from the imake configuration. They are
25994 # bogus both because they are the default anyway, and because
25995 # using them would break gcc on systems where it needs fixed includes.
25996 case $ac_im_incroot in
25997 /usr/include) ;;
25998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25999 esac
26000 case $ac_im_usrlibdir in
26001 /usr/lib | /lib) ;;
26002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26003 esac
26004 fi
26005 cd ..
26006 rm -fr conftest.dir
26007fi
26008
26009# Standard set of common directories for X headers.
26010# Check X11 before X11Rn because it is often a symlink to the current release.
26011ac_x_header_dirs='
26012/usr/X11/include
26013/usr/X11R6/include
26014/usr/X11R5/include
26015/usr/X11R4/include
26016
26017/usr/include/X11
26018/usr/include/X11R6
26019/usr/include/X11R5
26020/usr/include/X11R4
26021
26022/usr/local/X11/include
26023/usr/local/X11R6/include
26024/usr/local/X11R5/include
26025/usr/local/X11R4/include
26026
26027/usr/local/include/X11
26028/usr/local/include/X11R6
26029/usr/local/include/X11R5
26030/usr/local/include/X11R4
26031
26032/usr/X386/include
26033/usr/x386/include
26034/usr/XFree86/include/X11
26035
26036/usr/include
26037/usr/local/include
26038/usr/unsupported/include
26039/usr/athena/include
26040/usr/local/x11r5/include
26041/usr/lpp/Xamples/include
26042
26043/usr/openwin/include
26044/usr/openwin/share/include'
26045
26046if test "$ac_x_includes" = no; then
6ebeb4c7 26047 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26048 # First, try using that file with no special directory specified.
26049 cat >conftest.$ac_ext <<_ACEOF
26050/* confdefs.h. */
26051_ACEOF
26052cat confdefs.h >>conftest.$ac_ext
26053cat >>conftest.$ac_ext <<_ACEOF
26054/* end confdefs.h. */
26055#include <X11/Intrinsic.h>
26056_ACEOF
26057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26059 ac_status=$?
26060 grep -v '^ *+' conftest.er1 >conftest.err
26061 rm -f conftest.er1
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } >/dev/null; then
26065 if test -s conftest.err; then
26066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26068 else
26069 ac_cpp_err=
26070 fi
26071else
26072 ac_cpp_err=yes
26073fi
26074if test -z "$ac_cpp_err"; then
26075 # We can compile using X headers with no special include directory.
26076ac_x_includes=
26077else
26078 echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081 for ac_dir in $ac_x_header_dirs; do
26082 if test -r "$ac_dir/X11/Intrinsic.h"; then
26083 ac_x_includes=$ac_dir
26084 break
26085 fi
26086done
26087fi
26088rm -f conftest.err conftest.$ac_ext
26089fi # $ac_x_includes = no
26090
26091if test "$ac_x_libraries" = no; then
26092 # Check for the libraries.
26093 # See if we find them without any special options.
26094 # Don't add to $LIBS permanently.
26095 ac_save_LIBS=$LIBS
26096 LIBS="-lXt $LIBS"
26097 cat >conftest.$ac_ext <<_ACEOF
26098/* confdefs.h. */
26099_ACEOF
26100cat confdefs.h >>conftest.$ac_ext
26101cat >>conftest.$ac_ext <<_ACEOF
26102/* end confdefs.h. */
26103#include <X11/Intrinsic.h>
26104int
26105main ()
26106{
26107XtMalloc (0)
26108 ;
26109 return 0;
26110}
26111_ACEOF
26112rm -f conftest.$ac_objext conftest$ac_exeext
26113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26114 (eval $ac_link) 2>conftest.er1
a848cd7e 26115 ac_status=$?
ac1cb8d3
VS
26116 grep -v '^ *+' conftest.er1 >conftest.err
26117 rm -f conftest.er1
26118 cat conftest.err >&5
a848cd7e
SC
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } &&
6ebeb4c7 26121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; } &&
26127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; }; then
26133 LIBS=$ac_save_LIBS
26134# We can link X programs with no special library path.
26135ac_x_libraries=
26136else
26137 echo "$as_me: failed program was:" >&5
26138sed 's/^/| /' conftest.$ac_ext >&5
26139
26140LIBS=$ac_save_LIBS
26141for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26142do
26143 # Don't even attempt the hair of trying to link an X program!
26144 for ac_extension in a so sl; do
26145 if test -r $ac_dir/libXt.$ac_extension; then
26146 ac_x_libraries=$ac_dir
26147 break 2
26148 fi
26149 done
26150done
26151fi
ac1cb8d3
VS
26152rm -f conftest.err conftest.$ac_objext \
26153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26154fi # $ac_x_libraries = no
26155
26156if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26157 # Didn't find X anywhere. Cache the known absence of X.
26158 ac_cv_have_x="have_x=no"
26159else
26160 # Record where we found X for the cache.
26161 ac_cv_have_x="have_x=yes \
ac1cb8d3 26162 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26163fi
26164fi
26165
26166 fi
26167 eval "$ac_cv_have_x"
26168fi # $with_x != no
26169
26170if test "$have_x" != yes; then
26171 echo "$as_me:$LINENO: result: $have_x" >&5
26172echo "${ECHO_T}$have_x" >&6
26173 no_x=yes
26174else
26175 # If each of the values was on the command line, it overrides each guess.
26176 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26177 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26178 # Update the cache value to reflect the command line values.
26179 ac_cv_have_x="have_x=yes \
26180 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26181 # It might be that x_includes is empty (headers are found in the
26182 # standard search path. Then output the corresponding message
26183 ac_out_x_includes=$x_includes
26184 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26185 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26186echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26187fi
26188
6ebeb4c7 26189fi
a848cd7e
SC
26190if test "$no_x" = yes; then
26191 # Not all programs may use this symbol, but it does not hurt to define it.
26192
26193cat >>confdefs.h <<\_ACEOF
26194#define X_DISPLAY_MISSING 1
26195_ACEOF
26196
26197 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26198else
26199 if test -n "$x_includes"; then
26200 X_CFLAGS="$X_CFLAGS -I$x_includes"
26201 fi
26202
26203 # It would also be nice to do this for all -L options, not just this one.
26204 if test -n "$x_libraries"; then
26205 X_LIBS="$X_LIBS -L$x_libraries"
26206 # For Solaris; some versions of Sun CC require a space after -R and
26207 # others require no space. Words are not sufficient . . . .
26208 case `(uname -sr) 2>/dev/null` in
26209 "SunOS 5"*)
26210 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26211echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26212 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219
26220int
26221main ()
26222{
26223
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228rm -f conftest.$ac_objext conftest$ac_exeext
26229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26230 (eval $ac_link) 2>conftest.er1
a848cd7e 26231 ac_status=$?
ac1cb8d3
VS
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
a848cd7e
SC
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
6ebeb4c7 26237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; } &&
26243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; }; then
26249 ac_R_nospace=yes
26250else
26251 echo "$as_me: failed program was:" >&5
26252sed 's/^/| /' conftest.$ac_ext >&5
26253
26254ac_R_nospace=no
26255fi
ac1cb8d3
VS
26256rm -f conftest.err conftest.$ac_objext \
26257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26258 if test $ac_R_nospace = yes; then
26259 echo "$as_me:$LINENO: result: no" >&5
26260echo "${ECHO_T}no" >&6
26261 X_LIBS="$X_LIBS -R$x_libraries"
26262 else
26263 LIBS="$ac_xsave_LIBS -R $x_libraries"
26264 cat >conftest.$ac_ext <<_ACEOF
26265/* confdefs.h. */
26266_ACEOF
26267cat confdefs.h >>conftest.$ac_ext
26268cat >>conftest.$ac_ext <<_ACEOF
26269/* end confdefs.h. */
26270
26271int
26272main ()
26273{
26274
26275 ;
26276 return 0;
26277}
26278_ACEOF
26279rm -f conftest.$ac_objext conftest$ac_exeext
26280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26281 (eval $ac_link) 2>conftest.er1
a848cd7e 26282 ac_status=$?
ac1cb8d3
VS
26283 grep -v '^ *+' conftest.er1 >conftest.err
26284 rm -f conftest.er1
26285 cat conftest.err >&5
a848cd7e
SC
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } &&
6ebeb4c7 26288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; }; then
26300 ac_R_space=yes
26301else
26302 echo "$as_me: failed program was:" >&5
26303sed 's/^/| /' conftest.$ac_ext >&5
26304
26305ac_R_space=no
26306fi
ac1cb8d3
VS
26307rm -f conftest.err conftest.$ac_objext \
26308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26309 if test $ac_R_space = yes; then
26310 echo "$as_me:$LINENO: result: yes" >&5
26311echo "${ECHO_T}yes" >&6
26312 X_LIBS="$X_LIBS -R $x_libraries"
26313 else
26314 echo "$as_me:$LINENO: result: neither works" >&5
26315echo "${ECHO_T}neither works" >&6
26316 fi
26317 fi
26318 LIBS=$ac_xsave_LIBS
26319 esac
26320 fi
26321
26322 # Check for system-dependent libraries X programs must link with.
26323 # Do this before checking for the system-independent R6 libraries
26324 # (-lICE), since we may need -lsocket or whatever for X linking.
26325
26326 if test "$ISC" = yes; then
26327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26328 else
26329 # Martyn Johnson says this is needed for Ultrix, if the X
26330 # libraries were built with DECnet support. And Karl Berry says
26331 # the Alpha needs dnet_stub (dnet does not exist).
26332 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26333 cat >conftest.$ac_ext <<_ACEOF
26334/* confdefs.h. */
26335_ACEOF
26336cat confdefs.h >>conftest.$ac_ext
26337cat >>conftest.$ac_ext <<_ACEOF
26338/* end confdefs.h. */
26339
26340/* Override any gcc2 internal prototype to avoid an error. */
26341#ifdef __cplusplus
26342extern "C"
26343#endif
26344/* We use char because int might match the return type of a gcc2
26345 builtin and then its argument prototype would still apply. */
26346char XOpenDisplay ();
26347int
26348main ()
26349{
26350XOpenDisplay ();
26351 ;
26352 return 0;
26353}
26354_ACEOF
26355rm -f conftest.$ac_objext conftest$ac_exeext
26356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26357 (eval $ac_link) 2>conftest.er1
a848cd7e 26358 ac_status=$?
ac1cb8d3
VS
26359 grep -v '^ *+' conftest.er1 >conftest.err
26360 rm -f conftest.er1
26361 cat conftest.err >&5
a848cd7e
SC
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } &&
6ebeb4c7 26364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; } &&
26370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); }; }; then
26376 :
26377else
26378 echo "$as_me: failed program was:" >&5
26379sed 's/^/| /' conftest.$ac_ext >&5
26380
26381echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26382echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26383if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386 ac_check_lib_save_LIBS=$LIBS
26387LIBS="-ldnet $LIBS"
26388cat >conftest.$ac_ext <<_ACEOF
26389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
26394
26395/* Override any gcc2 internal prototype to avoid an error. */
26396#ifdef __cplusplus
26397extern "C"
26398#endif
26399/* We use char because int might match the return type of a gcc2
26400 builtin and then its argument prototype would still apply. */
26401char dnet_ntoa ();
26402int
26403main ()
26404{
26405dnet_ntoa ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext conftest$ac_exeext
26411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26412 (eval $ac_link) 2>conftest.er1
a848cd7e 26413 ac_status=$?
ac1cb8d3
VS
26414 grep -v '^ *+' conftest.er1 >conftest.err
26415 rm -f conftest.er1
26416 cat conftest.err >&5
a848cd7e
SC
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
6ebeb4c7 26419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26431 ac_cv_lib_dnet_dnet_ntoa=yes
26432else
26433 echo "$as_me: failed program was:" >&5
26434sed 's/^/| /' conftest.$ac_ext >&5
26435
26436ac_cv_lib_dnet_dnet_ntoa=no
26437fi
ac1cb8d3
VS
26438rm -f conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26440LIBS=$ac_check_lib_save_LIBS
26441fi
26442echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26443echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26444if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26445 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26446fi
26447
26448 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26449 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26450echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26451if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26453else
26454 ac_check_lib_save_LIBS=$LIBS
26455LIBS="-ldnet_stub $LIBS"
26456cat >conftest.$ac_ext <<_ACEOF
26457/* confdefs.h. */
26458_ACEOF
26459cat confdefs.h >>conftest.$ac_ext
26460cat >>conftest.$ac_ext <<_ACEOF
26461/* end confdefs.h. */
26462
26463/* Override any gcc2 internal prototype to avoid an error. */
26464#ifdef __cplusplus
26465extern "C"
26466#endif
26467/* We use char because int might match the return type of a gcc2
26468 builtin and then its argument prototype would still apply. */
26469char dnet_ntoa ();
26470int
26471main ()
26472{
26473dnet_ntoa ();
26474 ;
26475 return 0;
26476}
26477_ACEOF
26478rm -f conftest.$ac_objext conftest$ac_exeext
26479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26480 (eval $ac_link) 2>conftest.er1
a848cd7e 26481 ac_status=$?
ac1cb8d3
VS
26482 grep -v '^ *+' conftest.er1 >conftest.err
26483 rm -f conftest.er1
26484 cat conftest.err >&5
a848cd7e
SC
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } &&
6ebeb4c7 26487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; } &&
26493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26500else
26501 echo "$as_me: failed program was:" >&5
26502sed 's/^/| /' conftest.$ac_ext >&5
26503
26504ac_cv_lib_dnet_stub_dnet_ntoa=no
26505fi
ac1cb8d3
VS
26506rm -f conftest.err conftest.$ac_objext \
26507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26508LIBS=$ac_check_lib_save_LIBS
26509fi
26510echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26511echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26512if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26513 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26514fi
26515
26516 fi
26517fi
ac1cb8d3
VS
26518rm -f conftest.err conftest.$ac_objext \
26519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26520 LIBS="$ac_xsave_LIBS"
26521
26522 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26523 # to get the SysV transport functions.
26524 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26525 # needs -lnsl.
26526 # The nsl library prevents programs from opening the X display
26527 # on Irix 5.2, according to T.E. Dickey.
26528 # The functions gethostbyname, getservbyname, and inet_addr are
26529 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26530 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26531echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26532if test "${ac_cv_func_gethostbyname+set}" = set; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26534else
26535 cat >conftest.$ac_ext <<_ACEOF
26536/* confdefs.h. */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h. */
ac1cb8d3
VS
26541/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26543#define gethostbyname innocuous_gethostbyname
26544
a848cd7e
SC
26545/* System header to define __stub macros and hopefully few prototypes,
26546 which can conflict with char gethostbyname (); below.
26547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26549
a848cd7e
SC
26550#ifdef __STDC__
26551# include <limits.h>
26552#else
26553# include <assert.h>
26554#endif
ac1cb8d3
VS
26555
26556#undef gethostbyname
26557
a848cd7e
SC
26558/* Override any gcc2 internal prototype to avoid an error. */
26559#ifdef __cplusplus
26560extern "C"
26561{
26562#endif
26563/* We use char because int might match the return type of a gcc2
26564 builtin and then its argument prototype would still apply. */
26565char gethostbyname ();
26566/* The GNU C library defines this for functions which it implements
26567 to always fail with ENOSYS. Some functions are actually named
26568 something starting with __ and the normal name is an alias. */
26569#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26570choke me
26571#else
26572char (*f) () = gethostbyname;
26573#endif
26574#ifdef __cplusplus
26575}
26576#endif
26577
26578int
26579main ()
26580{
26581return f != gethostbyname;
26582 ;
26583 return 0;
26584}
26585_ACEOF
26586rm -f conftest.$ac_objext conftest$ac_exeext
26587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26588 (eval $ac_link) 2>conftest.er1
a848cd7e 26589 ac_status=$?
ac1cb8d3
VS
26590 grep -v '^ *+' conftest.er1 >conftest.err
26591 rm -f conftest.er1
26592 cat conftest.err >&5
a848cd7e
SC
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } &&
6ebeb4c7 26595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); }; } &&
26601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607 ac_cv_func_gethostbyname=yes
26608else
26609 echo "$as_me: failed program was:" >&5
26610sed 's/^/| /' conftest.$ac_ext >&5
26611
26612ac_cv_func_gethostbyname=no
26613fi
ac1cb8d3
VS
26614rm -f conftest.err conftest.$ac_objext \
26615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26616fi
26617echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26618echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26619
26620 if test $ac_cv_func_gethostbyname = no; then
26621 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26622echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26623if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 ac_check_lib_save_LIBS=$LIBS
26627LIBS="-lnsl $LIBS"
26628cat >conftest.$ac_ext <<_ACEOF
26629/* confdefs.h. */
26630_ACEOF
26631cat confdefs.h >>conftest.$ac_ext
26632cat >>conftest.$ac_ext <<_ACEOF
26633/* end confdefs.h. */
26634
26635/* Override any gcc2 internal prototype to avoid an error. */
26636#ifdef __cplusplus
26637extern "C"
26638#endif
26639/* We use char because int might match the return type of a gcc2
26640 builtin and then its argument prototype would still apply. */
26641char gethostbyname ();
26642int
26643main ()
26644{
26645gethostbyname ();
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650rm -f conftest.$ac_objext conftest$ac_exeext
26651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26652 (eval $ac_link) 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
6ebeb4c7 26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest$ac_exeext'
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 ac_cv_lib_nsl_gethostbyname=yes
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676ac_cv_lib_nsl_gethostbyname=no
26677fi
26678rm -f conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
26680LIBS=$ac_check_lib_save_LIBS
26681fi
26682echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26683echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26684if test $ac_cv_lib_nsl_gethostbyname = yes; then
26685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26686fi
26687
26688 if test $ac_cv_lib_nsl_gethostbyname = no; then
26689 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26690echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26691if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26693else
26694 ac_check_lib_save_LIBS=$LIBS
26695LIBS="-lbsd $LIBS"
26696cat >conftest.$ac_ext <<_ACEOF
26697/* confdefs.h. */
26698_ACEOF
26699cat confdefs.h >>conftest.$ac_ext
26700cat >>conftest.$ac_ext <<_ACEOF
26701/* end confdefs.h. */
26702
26703/* Override any gcc2 internal prototype to avoid an error. */
26704#ifdef __cplusplus
26705extern "C"
26706#endif
26707/* We use char because int might match the return type of a gcc2
26708 builtin and then its argument prototype would still apply. */
26709char gethostbyname ();
26710int
26711main ()
26712{
26713gethostbyname ();
26714 ;
26715 return 0;
26716}
26717_ACEOF
26718rm -f conftest.$ac_objext conftest$ac_exeext
26719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26720 (eval $ac_link) 2>conftest.er1
a848cd7e 26721 ac_status=$?
ac1cb8d3
VS
26722 grep -v '^ *+' conftest.er1 >conftest.err
26723 rm -f conftest.er1
26724 cat conftest.err >&5
a848cd7e
SC
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
6ebeb4c7 26727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26732 (exit $ac_status); }; } &&
26733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
26739 ac_cv_lib_bsd_gethostbyname=yes
26740else
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744ac_cv_lib_bsd_gethostbyname=no
26745fi
ac1cb8d3
VS
26746rm -f conftest.err conftest.$ac_objext \
26747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26748LIBS=$ac_check_lib_save_LIBS
26749fi
26750echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26751echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26752if test $ac_cv_lib_bsd_gethostbyname = yes; then
26753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26754fi
26755
26756 fi
26757 fi
26758
26759 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26760 # socket/setsockopt and other routines are undefined under SCO ODT
26761 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26762 # on later versions), says Simon Leinen: it contains gethostby*
26763 # variants that don't use the name server (or something). -lsocket
26764 # must be given before -lnsl if both are needed. We assume that
26765 # if connect needs -lnsl, so does gethostbyname.
26766 echo "$as_me:$LINENO: checking for connect" >&5
26767echo $ECHO_N "checking for connect... $ECHO_C" >&6
26768if test "${ac_cv_func_connect+set}" = set; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26770else
26771 cat >conftest.$ac_ext <<_ACEOF
26772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
ac1cb8d3
VS
26777/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26779#define connect innocuous_connect
26780
a848cd7e
SC
26781/* System header to define __stub macros and hopefully few prototypes,
26782 which can conflict with char connect (); below.
26783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26785
a848cd7e
SC
26786#ifdef __STDC__
26787# include <limits.h>
26788#else
26789# include <assert.h>
26790#endif
ac1cb8d3
VS
26791
26792#undef connect
26793
a848cd7e
SC
26794/* Override any gcc2 internal prototype to avoid an error. */
26795#ifdef __cplusplus
26796extern "C"
26797{
26798#endif
26799/* We use char because int might match the return type of a gcc2
26800 builtin and then its argument prototype would still apply. */
26801char connect ();
26802/* The GNU C library defines this for functions which it implements
26803 to always fail with ENOSYS. Some functions are actually named
26804 something starting with __ and the normal name is an alias. */
26805#if defined (__stub_connect) || defined (__stub___connect)
26806choke me
26807#else
26808char (*f) () = connect;
26809#endif
26810#ifdef __cplusplus
26811}
26812#endif
26813
26814int
26815main ()
26816{
26817return f != connect;
26818 ;
26819 return 0;
26820}
26821_ACEOF
26822rm -f conftest.$ac_objext conftest$ac_exeext
26823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26824 (eval $ac_link) 2>conftest.er1
a848cd7e 26825 ac_status=$?
ac1cb8d3
VS
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
a848cd7e
SC
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
6ebeb4c7 26831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; } &&
26837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26840 ac_status=$?
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; }; then
26843 ac_cv_func_connect=yes
26844else
26845 echo "$as_me: failed program was:" >&5
26846sed 's/^/| /' conftest.$ac_ext >&5
26847
26848ac_cv_func_connect=no
26849fi
ac1cb8d3
VS
26850rm -f conftest.err conftest.$ac_objext \
26851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26852fi
26853echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26854echo "${ECHO_T}$ac_cv_func_connect" >&6
26855
26856 if test $ac_cv_func_connect = no; then
26857 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26858echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26859if test "${ac_cv_lib_socket_connect+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26861else
26862 ac_check_lib_save_LIBS=$LIBS
26863LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26864cat >conftest.$ac_ext <<_ACEOF
26865/* confdefs.h. */
26866_ACEOF
26867cat confdefs.h >>conftest.$ac_ext
26868cat >>conftest.$ac_ext <<_ACEOF
26869/* end confdefs.h. */
26870
26871/* Override any gcc2 internal prototype to avoid an error. */
26872#ifdef __cplusplus
26873extern "C"
26874#endif
26875/* We use char because int might match the return type of a gcc2
26876 builtin and then its argument prototype would still apply. */
26877char connect ();
26878int
26879main ()
26880{
26881connect ();
26882 ;
26883 return 0;
26884}
26885_ACEOF
26886rm -f conftest.$ac_objext conftest$ac_exeext
26887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26888 (eval $ac_link) 2>conftest.er1
a848cd7e 26889 ac_status=$?
ac1cb8d3
VS
26890 grep -v '^ *+' conftest.er1 >conftest.err
26891 rm -f conftest.er1
26892 cat conftest.err >&5
a848cd7e
SC
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } &&
6ebeb4c7 26895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; } &&
26901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_cv_lib_socket_connect=yes
26908else
26909 echo "$as_me: failed program was:" >&5
26910sed 's/^/| /' conftest.$ac_ext >&5
26911
26912ac_cv_lib_socket_connect=no
26913fi
ac1cb8d3
VS
26914rm -f conftest.err conftest.$ac_objext \
26915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26916LIBS=$ac_check_lib_save_LIBS
26917fi
26918echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26919echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26920if test $ac_cv_lib_socket_connect = yes; then
26921 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26922fi
26923
26924 fi
26925
26926 # Guillermo Gomez says -lposix is necessary on A/UX.
26927 echo "$as_me:$LINENO: checking for remove" >&5
26928echo $ECHO_N "checking for remove... $ECHO_C" >&6
26929if test "${ac_cv_func_remove+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932 cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h. */
ac1cb8d3
VS
26938/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26940#define remove innocuous_remove
26941
a848cd7e
SC
26942/* System header to define __stub macros and hopefully few prototypes,
26943 which can conflict with char remove (); below.
26944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26945 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26946
a848cd7e
SC
26947#ifdef __STDC__
26948# include <limits.h>
26949#else
26950# include <assert.h>
26951#endif
ac1cb8d3
VS
26952
26953#undef remove
26954
a848cd7e
SC
26955/* Override any gcc2 internal prototype to avoid an error. */
26956#ifdef __cplusplus
26957extern "C"
26958{
26959#endif
26960/* We use char because int might match the return type of a gcc2
26961 builtin and then its argument prototype would still apply. */
26962char remove ();
26963/* The GNU C library defines this for functions which it implements
26964 to always fail with ENOSYS. Some functions are actually named
26965 something starting with __ and the normal name is an alias. */
26966#if defined (__stub_remove) || defined (__stub___remove)
26967choke me
26968#else
26969char (*f) () = remove;
26970#endif
26971#ifdef __cplusplus
26972}
26973#endif
26974
26975int
26976main ()
26977{
26978return f != remove;
26979 ;
26980 return 0;
26981}
26982_ACEOF
26983rm -f conftest.$ac_objext conftest$ac_exeext
26984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26985 (eval $ac_link) 2>conftest.er1
a848cd7e 26986 ac_status=$?
ac1cb8d3
VS
26987 grep -v '^ *+' conftest.er1 >conftest.err
26988 rm -f conftest.er1
26989 cat conftest.err >&5
a848cd7e
SC
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } &&
6ebeb4c7 26992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; } &&
26998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; }; then
27004 ac_cv_func_remove=yes
27005else
27006 echo "$as_me: failed program was:" >&5
27007sed 's/^/| /' conftest.$ac_ext >&5
27008
27009ac_cv_func_remove=no
27010fi
ac1cb8d3
VS
27011rm -f conftest.err conftest.$ac_objext \
27012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27013fi
27014echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27015echo "${ECHO_T}$ac_cv_func_remove" >&6
27016
27017 if test $ac_cv_func_remove = no; then
27018 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27019echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27020if test "${ac_cv_lib_posix_remove+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27022else
27023 ac_check_lib_save_LIBS=$LIBS
27024LIBS="-lposix $LIBS"
27025cat >conftest.$ac_ext <<_ACEOF
27026/* confdefs.h. */
27027_ACEOF
27028cat confdefs.h >>conftest.$ac_ext
27029cat >>conftest.$ac_ext <<_ACEOF
27030/* end confdefs.h. */
27031
27032/* Override any gcc2 internal prototype to avoid an error. */
27033#ifdef __cplusplus
27034extern "C"
27035#endif
27036/* We use char because int might match the return type of a gcc2
27037 builtin and then its argument prototype would still apply. */
27038char remove ();
27039int
27040main ()
27041{
27042remove ();
27043 ;
27044 return 0;
27045}
27046_ACEOF
27047rm -f conftest.$ac_objext conftest$ac_exeext
27048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27049 (eval $ac_link) 2>conftest.er1
a848cd7e 27050 ac_status=$?
ac1cb8d3
VS
27051 grep -v '^ *+' conftest.er1 >conftest.err
27052 rm -f conftest.er1
27053 cat conftest.err >&5
a848cd7e
SC
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
6ebeb4c7 27056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; } &&
27062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; }; then
27068 ac_cv_lib_posix_remove=yes
27069else
27070 echo "$as_me: failed program was:" >&5
27071sed 's/^/| /' conftest.$ac_ext >&5
27072
27073ac_cv_lib_posix_remove=no
27074fi
ac1cb8d3
VS
27075rm -f conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27077LIBS=$ac_check_lib_save_LIBS
27078fi
27079echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27080echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27081if test $ac_cv_lib_posix_remove = yes; then
27082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27083fi
27084
27085 fi
27086
27087 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27088 echo "$as_me:$LINENO: checking for shmat" >&5
27089echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27090if test "${ac_cv_func_shmat+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27092else
27093 cat >conftest.$ac_ext <<_ACEOF
27094/* confdefs.h. */
27095_ACEOF
27096cat confdefs.h >>conftest.$ac_ext
27097cat >>conftest.$ac_ext <<_ACEOF
27098/* end confdefs.h. */
ac1cb8d3
VS
27099/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27101#define shmat innocuous_shmat
27102
a848cd7e
SC
27103/* System header to define __stub macros and hopefully few prototypes,
27104 which can conflict with char shmat (); below.
27105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27106 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27107
a848cd7e
SC
27108#ifdef __STDC__
27109# include <limits.h>
27110#else
27111# include <assert.h>
27112#endif
ac1cb8d3
VS
27113
27114#undef shmat
27115
a848cd7e
SC
27116/* Override any gcc2 internal prototype to avoid an error. */
27117#ifdef __cplusplus
27118extern "C"
27119{
27120#endif
27121/* We use char because int might match the return type of a gcc2
27122 builtin and then its argument prototype would still apply. */
27123char shmat ();
27124/* The GNU C library defines this for functions which it implements
27125 to always fail with ENOSYS. Some functions are actually named
27126 something starting with __ and the normal name is an alias. */
27127#if defined (__stub_shmat) || defined (__stub___shmat)
27128choke me
27129#else
27130char (*f) () = shmat;
27131#endif
27132#ifdef __cplusplus
27133}
27134#endif
27135
27136int
27137main ()
27138{
27139return f != shmat;
27140 ;
27141 return 0;
27142}
27143_ACEOF
27144rm -f conftest.$ac_objext conftest$ac_exeext
27145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27146 (eval $ac_link) 2>conftest.er1
a848cd7e 27147 ac_status=$?
ac1cb8d3
VS
27148 grep -v '^ *+' conftest.er1 >conftest.err
27149 rm -f conftest.er1
27150 cat conftest.err >&5
a848cd7e
SC
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } &&
6ebeb4c7 27153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; } &&
27159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; }; then
27165 ac_cv_func_shmat=yes
27166else
27167 echo "$as_me: failed program was:" >&5
27168sed 's/^/| /' conftest.$ac_ext >&5
27169
27170ac_cv_func_shmat=no
27171fi
ac1cb8d3
VS
27172rm -f conftest.err conftest.$ac_objext \
27173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27174fi
27175echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27176echo "${ECHO_T}$ac_cv_func_shmat" >&6
27177
27178 if test $ac_cv_func_shmat = no; then
27179 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27180echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27181if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27183else
27184 ac_check_lib_save_LIBS=$LIBS
27185LIBS="-lipc $LIBS"
27186cat >conftest.$ac_ext <<_ACEOF
27187/* confdefs.h. */
27188_ACEOF
27189cat confdefs.h >>conftest.$ac_ext
27190cat >>conftest.$ac_ext <<_ACEOF
27191/* end confdefs.h. */
27192
27193/* Override any gcc2 internal prototype to avoid an error. */
27194#ifdef __cplusplus
27195extern "C"
27196#endif
27197/* We use char because int might match the return type of a gcc2
27198 builtin and then its argument prototype would still apply. */
27199char shmat ();
27200int
27201main ()
27202{
27203shmat ();
27204 ;
27205 return 0;
27206}
27207_ACEOF
27208rm -f conftest.$ac_objext conftest$ac_exeext
27209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27210 (eval $ac_link) 2>conftest.er1
a848cd7e 27211 ac_status=$?
ac1cb8d3
VS
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
a848cd7e
SC
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } &&
6ebeb4c7 27217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219 (eval $ac_try) 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225 (eval $ac_try) 2>&5
27226 ac_status=$?
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); }; }; then
27229 ac_cv_lib_ipc_shmat=yes
27230else
27231 echo "$as_me: failed program was:" >&5
27232sed 's/^/| /' conftest.$ac_ext >&5
27233
27234ac_cv_lib_ipc_shmat=no
27235fi
ac1cb8d3
VS
27236rm -f conftest.err conftest.$ac_objext \
27237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27238LIBS=$ac_check_lib_save_LIBS
27239fi
27240echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27241echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27242if test $ac_cv_lib_ipc_shmat = yes; then
27243 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27244fi
27245
27246 fi
27247 fi
27248
27249 # Check for libraries that X11R6 Xt/Xaw programs need.
27250 ac_save_LDFLAGS=$LDFLAGS
27251 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27252 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27253 # check for ICE first), but we must link in the order -lSM -lICE or
27254 # we get undefined symbols. So assume we have SM if we have ICE.
27255 # These have to be linked with before -lX11, unlike the other
27256 # libraries we check for below, so use a different variable.
27257 # John Interrante, Karl Berry
27258 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27259echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27260if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27261 echo $ECHO_N "(cached) $ECHO_C" >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27265cat >conftest.$ac_ext <<_ACEOF
27266/* confdefs.h. */
27267_ACEOF
27268cat confdefs.h >>conftest.$ac_ext
27269cat >>conftest.$ac_ext <<_ACEOF
27270/* end confdefs.h. */
27271
27272/* Override any gcc2 internal prototype to avoid an error. */
27273#ifdef __cplusplus
27274extern "C"
27275#endif
27276/* We use char because int might match the return type of a gcc2
27277 builtin and then its argument prototype would still apply. */
27278char IceConnectionNumber ();
27279int
27280main ()
27281{
27282IceConnectionNumber ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext conftest$ac_exeext
27288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27289 (eval $ac_link) 2>conftest.er1
a848cd7e 27290 ac_status=$?
ac1cb8d3
VS
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
a848cd7e
SC
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
6ebeb4c7 27296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 ac_cv_lib_ICE_IceConnectionNumber=yes
27309else
27310 echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313ac_cv_lib_ICE_IceConnectionNumber=no
27314fi
ac1cb8d3
VS
27315rm -f conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27317LIBS=$ac_check_lib_save_LIBS
27318fi
27319echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27320echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27321if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27322 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27323fi
27324
27325 LDFLAGS=$ac_save_LDFLAGS
27326
27327fi
27328
27329
27330 if test "$no_x" = "yes"; then
27331 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27332echo "$as_me: error: X11 not found" >&2;}
27333 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27334 fi
27335
74b84332
VS
27336 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27337 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27338 AFMINSTALL=afminstall
27339 COMPILED_X_PROGRAM=0
27340
74b84332
VS
27341 fi
27342
27343 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27344 if test "$wxUSE_NANOX" = "yes"; then
27345 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27346echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27347 if test "x$MICROWIN" = x ; then
27348 echo "$as_me:$LINENO: result: not found" >&5
27349echo "${ECHO_T}not found" >&6
27350 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27351echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27352 { (exit 1); exit 1; }; }
27353 else
27354 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27355echo "${ECHO_T}$MICROWIN" >&6
27356 cat >>confdefs.h <<\_ACEOF
27357#define wxUSE_NANOX 1
27358_ACEOF
27359
27360 fi
27361 fi
27362
27363 if test "$wxUSE_UNICODE" = "yes"; then
27364
27365 succeeded=no
27366
27367 if test -z "$PKG_CONFIG"; then
27368 # Extract the first word of "pkg-config", so it can be a program name with args.
27369set dummy pkg-config; ac_word=$2
27370echo "$as_me:$LINENO: checking for $ac_word" >&5
27371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27372if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27374else
27375 case $PKG_CONFIG in
27376 [\\/]* | ?:[\\/]*)
27377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27378 ;;
27379 *)
27380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27381for as_dir in $PATH
27382do
27383 IFS=$as_save_IFS
27384 test -z "$as_dir" && as_dir=.
27385 for ac_exec_ext in '' $ac_executable_extensions; do
27386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27389 break 2
27390 fi
27391done
27392done
27393
27394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27395 ;;
27396esac
27397fi
27398PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27399
27400if test -n "$PKG_CONFIG"; then
27401 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27402echo "${ECHO_T}$PKG_CONFIG" >&6
27403else
27404 echo "$as_me:$LINENO: result: no" >&5
27405echo "${ECHO_T}no" >&6
27406fi
27407
27408 fi
27409
27410 if test "$PKG_CONFIG" = "no" ; then
27411 echo "*** The pkg-config script could not be found. Make sure it is"
27412 echo "*** in your path, or set the PKG_CONFIG environment variable"
27413 echo "*** to the full path to pkg-config."
27414 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27415 else
27416 PKG_CONFIG_MIN_VERSION=0.9.0
27417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27418 echo "$as_me:$LINENO: checking for pangox" >&5
27419echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27420
27421 if $PKG_CONFIG --exists "pangox" ; then
27422 echo "$as_me:$LINENO: result: yes" >&5
27423echo "${ECHO_T}yes" >&6
27424 succeeded=yes
27425
27426 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27427echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27428 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27429 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27430echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27431
27432 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27433echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27434 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27435 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27436echo "${ECHO_T}$PANGOX_LIBS" >&6
27437 else
27438 PANGOX_CFLAGS=""
27439 PANGOX_LIBS=""
27440 ## If we have a custom action on failure, don't print errors, but
27441 ## do set a variable so people can do so.
27442 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27443
27444 fi
27445
27446
27447
27448 else
27449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27451 fi
27452 fi
27453
27454 if test $succeeded = yes; then
27455
27456 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27457 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27458
27459 else
27460
27461 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27462echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27463 { (exit 1); exit 1; }; }
27464
27465
27466 fi
27467
27468
27469 succeeded=no
27470
27471 if test -z "$PKG_CONFIG"; then
27472 # Extract the first word of "pkg-config", so it can be a program name with args.
27473set dummy pkg-config; ac_word=$2
27474echo "$as_me:$LINENO: checking for $ac_word" >&5
27475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479 case $PKG_CONFIG in
27480 [\\/]* | ?:[\\/]*)
27481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27482 ;;
27483 *)
27484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27485for as_dir in $PATH
27486do
27487 IFS=$as_save_IFS
27488 test -z "$as_dir" && as_dir=.
27489 for ac_exec_ext in '' $ac_executable_extensions; do
27490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27493 break 2
27494 fi
27495done
27496done
27497
27498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27499 ;;
27500esac
27501fi
27502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27503
27504if test -n "$PKG_CONFIG"; then
27505 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27506echo "${ECHO_T}$PKG_CONFIG" >&6
27507else
27508 echo "$as_me:$LINENO: result: no" >&5
27509echo "${ECHO_T}no" >&6
27510fi
27511
27512 fi
27513
27514 if test "$PKG_CONFIG" = "no" ; then
27515 echo "*** The pkg-config script could not be found. Make sure it is"
27516 echo "*** in your path, or set the PKG_CONFIG environment variable"
27517 echo "*** to the full path to pkg-config."
27518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27519 else
27520 PKG_CONFIG_MIN_VERSION=0.9.0
27521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27522 echo "$as_me:$LINENO: checking for pangoft2" >&5
27523echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27524
27525 if $PKG_CONFIG --exists "pangoft2" ; then
27526 echo "$as_me:$LINENO: result: yes" >&5
27527echo "${ECHO_T}yes" >&6
27528 succeeded=yes
27529
27530 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27531echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27532 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27533 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27534echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27535
27536 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27537echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27538 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27539 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27540echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27541 else
27542 PANGOFT2_CFLAGS=""
27543 PANGOFT2_LIBS=""
27544 ## If we have a custom action on failure, don't print errors, but
27545 ## do set a variable so people can do so.
27546 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27547
27548 fi
27549
27550
27551
27552 else
27553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27555 fi
27556 fi
27557
27558 if test $succeeded = yes; then
27559
27560 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27561 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27562
27563 else
27564
27565 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27566echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27567 wxUSE_PRINTING_ARCHITECTURE="no"
27568
27569
27570 fi
27571
27572
27573 succeeded=no
27574
27575 if test -z "$PKG_CONFIG"; then
27576 # Extract the first word of "pkg-config", so it can be a program name with args.
27577set dummy pkg-config; ac_word=$2
27578echo "$as_me:$LINENO: checking for $ac_word" >&5
27579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27580if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582else
27583 case $PKG_CONFIG in
27584 [\\/]* | ?:[\\/]*)
27585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27586 ;;
27587 *)
27588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27589for as_dir in $PATH
27590do
27591 IFS=$as_save_IFS
27592 test -z "$as_dir" && as_dir=.
27593 for ac_exec_ext in '' $ac_executable_extensions; do
27594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27597 break 2
27598 fi
27599done
27600done
27601
27602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27603 ;;
27604esac
27605fi
27606PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27607
27608if test -n "$PKG_CONFIG"; then
27609 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27610echo "${ECHO_T}$PKG_CONFIG" >&6
27611else
27612 echo "$as_me:$LINENO: result: no" >&5
27613echo "${ECHO_T}no" >&6
27614fi
27615
27616 fi
27617
27618 if test "$PKG_CONFIG" = "no" ; then
27619 echo "*** The pkg-config script could not be found. Make sure it is"
27620 echo "*** in your path, or set the PKG_CONFIG environment variable"
27621 echo "*** to the full path to pkg-config."
27622 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27623 else
27624 PKG_CONFIG_MIN_VERSION=0.9.0
27625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27626 echo "$as_me:$LINENO: checking for pangoxft" >&5
27627echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27628
27629 if $PKG_CONFIG --exists "pangoxft" ; then
27630 echo "$as_me:$LINENO: result: yes" >&5
27631echo "${ECHO_T}yes" >&6
27632 succeeded=yes
27633
27634 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27635echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27636 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27637 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27638echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27639
27640 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27641echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27642 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27643 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27644echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27645 else
27646 PANGOXFT_CFLAGS=""
27647 PANGOXFT_LIBS=""
27648 ## If we have a custom action on failure, don't print errors, but
27649 ## do set a variable so people can do so.
27650 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27651
27652 fi
27653
27654
27655
27656 else
27657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27659 fi
27660 fi
27661
27662 if test $succeeded = yes; then
27663
4ae1af05
MB
27664 cat >>confdefs.h <<\_ACEOF
27665#define HAVE_PANGO_XFT 1
27666_ACEOF
27667
a848cd7e
SC
27668 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27669 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27670
27671 else
27672
27673 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27674echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27675
27676
27677 fi
27678
304205f1
VS
27679 save_CFLAGS="$CFLAGS"
27680 save_LIBS="$LIBS"
27681 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27682 LIBS="$LIBS $PANGOX_LIBS"
27683
27684for ac_func in pango_font_family_is_monospace
27685do
27686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27687echo "$as_me:$LINENO: checking for $ac_func" >&5
27688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27689if eval "test \"\${$as_ac_var+set}\" = set"; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691else
27692 cat >conftest.$ac_ext <<_ACEOF
27693/* confdefs.h. */
27694_ACEOF
27695cat confdefs.h >>conftest.$ac_ext
27696cat >>conftest.$ac_ext <<_ACEOF
27697/* end confdefs.h. */
27698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27700#define $ac_func innocuous_$ac_func
27701
27702/* System header to define __stub macros and hopefully few prototypes,
27703 which can conflict with char $ac_func (); below.
27704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27705 <limits.h> exists even on freestanding compilers. */
27706
27707#ifdef __STDC__
27708# include <limits.h>
27709#else
27710# include <assert.h>
27711#endif
27712
27713#undef $ac_func
27714
27715/* Override any gcc2 internal prototype to avoid an error. */
27716#ifdef __cplusplus
27717extern "C"
27718{
27719#endif
27720/* We use char because int might match the return type of a gcc2
27721 builtin and then its argument prototype would still apply. */
27722char $ac_func ();
27723/* The GNU C library defines this for functions which it implements
27724 to always fail with ENOSYS. Some functions are actually named
27725 something starting with __ and the normal name is an alias. */
27726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27727choke me
27728#else
27729char (*f) () = $ac_func;
27730#endif
27731#ifdef __cplusplus
27732}
27733#endif
27734
27735int
27736main ()
27737{
27738return f != $ac_func;
27739 ;
27740 return 0;
27741}
27742_ACEOF
27743rm -f conftest.$ac_objext conftest$ac_exeext
27744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745 (eval $ac_link) 2>conftest.er1
27746 ac_status=$?
27747 grep -v '^ *+' conftest.er1 >conftest.err
27748 rm -f conftest.er1
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } &&
6ebeb4c7 27752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27755 ac_status=$?
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } &&
27758 { ac_try='test -s conftest$ac_exeext'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27761 ac_status=$?
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 eval "$as_ac_var=yes"
27765else
27766 echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769eval "$as_ac_var=no"
27770fi
27771rm -f conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
27773fi
27774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27776if test `eval echo '${'$as_ac_var'}'` = yes; then
27777 cat >>confdefs.h <<_ACEOF
27778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27779_ACEOF
27780
27781fi
27782done
27783
27784 CFLAGS="$save_CFLAGS"
27785 LIBS="$save_LIBS"
a848cd7e
SC
27786 fi
27787
27788 wxUSE_UNIVERSAL="yes"
27789
27790 if test "$wxUSE_NANOX" = "yes"; then
27791 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27792 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"
27793 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27794 else
27795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27796 fi
27797
a848cd7e
SC
27798 TOOLKIT=X11
27799 GUIDIST=X11_DIST
27800 fi
27801
27802 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27803 if test "$wxUSE_UNICODE" = "yes"; then
27804 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27805echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27806 { (exit 1); exit 1; }; }
27807 fi
27808
74b84332
VS
27809 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27810echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27811
74b84332
VS
27812ac_find_includes=
27813for ac_dir in $SEARCH_INCLUDE /usr/include;
27814 do
27815 if test -f "$ac_dir/Xm/Xm.h"; then
27816 ac_find_includes=$ac_dir
27817 break
27818 fi
27819 done
a848cd7e 27820
74b84332
VS
27821 if test "$ac_find_includes" != "" ; then
27822 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27823echo "${ECHO_T}found in $ac_find_includes" >&6
27824
27825 if test "x$ac_find_includes" = "x/usr/include"; then
27826 ac_path_to_include=""
27827 else
27828 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27829 result=$?
27830 if test $result = 0; then
27831 ac_path_to_include=""
27832 else
27833 ac_path_to_include=" -I$ac_find_includes"
27834 fi
a848cd7e
SC
27835 fi
27836
74b84332
VS
27837 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27838 else
27839 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27840/* confdefs.h. */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h. */
27845
74b84332
VS
27846 #include <Xm/Xm.h>
27847
a848cd7e
SC
27848int
27849main ()
27850{
27851
74b84332
VS
27852 int version;
27853 version = xmUseVersion;
27854
a848cd7e
SC
27855 ;
27856 return 0;
27857}
27858_ACEOF
74b84332
VS
27859rm -f conftest.$ac_objext
27860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27861 (eval $ac_compile) 2>conftest.er1
a848cd7e 27862 ac_status=$?
ac1cb8d3
VS
27863 grep -v '^ *+' conftest.er1 >conftest.err
27864 rm -f conftest.er1
27865 cat conftest.err >&5
a848cd7e
SC
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
6ebeb4c7 27868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27870 (eval $ac_try) 2>&5
27871 ac_status=$?
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); }; } &&
74b84332 27874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
74b84332
VS
27880
27881 echo "$as_me:$LINENO: result: found in default search path" >&5
27882echo "${ECHO_T}found in default search path" >&6
27883 COMPILED_X_PROGRAM=1
27884
a848cd7e
SC
27885else
27886 echo "$as_me: failed program was:" >&5
27887sed 's/^/| /' conftest.$ac_ext >&5
27888
a848cd7e 27889
74b84332
VS
27890 echo "$as_me:$LINENO: result: no" >&5
27891echo "${ECHO_T}no" >&6
27892 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27893echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27894 { (exit 1); exit 1; }; }
a848cd7e 27895
a848cd7e 27896
a848cd7e 27897fi
74b84332
VS
27898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27899 fi
27900
27901 if test "$COMPILED_X_PROGRAM" = 0; then
27902 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27903echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27904
27905ac_find_libraries=
27906for ac_dir in $SEARCH_LIB /usr/lib;
27907 do
3eca31dc 27908 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
27909 if test -f "$ac_dir/libXm.$ac_extension"; then
27910 ac_find_libraries=$ac_dir
27911 break 2
a848cd7e 27912 fi
74b84332
VS
27913 done
27914 done
a848cd7e 27915
74b84332
VS
27916 if test "$ac_find_libraries" != "" ; then
27917 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27918echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27919
74b84332
VS
27920
27921 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27922 result=$?
27923 if test $result = 0; then
27924 ac_path_to_link=""
a848cd7e 27925 else
74b84332
VS
27926 ac_path_to_link=" -L$ac_find_libraries"
27927 fi
27928
27929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27930 else
27931 save_CFLAGS=$CFLAGS
27932 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27933
27934 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27935/* confdefs.h. */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h. */
27940
74b84332
VS
27941 #include <Xm/Xm.h>
27942
a848cd7e
SC
27943int
27944main ()
27945{
74b84332
VS
27946
27947 int version;
27948 version = xmUseVersion;
27949
a848cd7e
SC
27950 ;
27951 return 0;
27952}
27953_ACEOF
74b84332
VS
27954rm -f conftest.$ac_objext
27955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27956 (eval $ac_compile) 2>conftest.er1
a848cd7e 27957 ac_status=$?
ac1cb8d3
VS
27958 grep -v '^ *+' conftest.er1 >conftest.err
27959 rm -f conftest.er1
27960 cat conftest.err >&5
a848cd7e
SC
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
6ebeb4c7 27963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } &&
74b84332 27969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
74b84332
VS
27975
27976 echo "$as_me:$LINENO: result: found in default search path" >&5
27977echo "${ECHO_T}found in default search path" >&6
27978 COMPILED_X_PROGRAM=1
27979
a848cd7e
SC
27980else
27981 echo "$as_me: failed program was:" >&5
27982sed 's/^/| /' conftest.$ac_ext >&5
27983
74b84332
VS
27984
27985 echo "$as_me:$LINENO: result: no" >&5
27986echo "${ECHO_T}no" >&6
27987 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27988echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27989 { (exit 1); exit 1; }; }
27990
27991
27992fi
27993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27994
27995 CFLAGS=$save_CFLAGS
27996 fi
27997 fi
27998
27999 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28000echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28001 libp_link=""
28002 libsm_ice_link=""
28003 libs_found=0
28004 for libp in "" " -lXp"; do
28005 if test "$libs_found" = "0"; then
28006 for libsm_ice in "" " -lSM -lICE"; do
28007 if test "$libs_found" = "0"; then
28008 save_LIBS="$LIBS"
28009 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28010 save_CFLAGS=$CFLAGS
28011 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28012
28013 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28014/* confdefs.h. */
28015_ACEOF
28016cat confdefs.h >>conftest.$ac_ext
28017cat >>conftest.$ac_ext <<_ACEOF
28018/* end confdefs.h. */
28019
74b84332
VS
28020 #include <Xm/Xm.h>
28021 #include <Xm/List.h>
28022
a848cd7e
SC
28023int
28024main ()
28025{
74b84332
VS
28026
28027 XmString string = NULL;
28028 Widget w = NULL;
28029 int position = 0;
28030 XmListAddItem(w, string, position);
28031
a848cd7e
SC
28032 ;
28033 return 0;
28034}
28035_ACEOF
28036rm -f conftest.$ac_objext conftest$ac_exeext
28037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28038 (eval $ac_link) 2>conftest.er1
a848cd7e 28039 ac_status=$?
ac1cb8d3
VS
28040 grep -v '^ *+' conftest.er1 >conftest.err
28041 rm -f conftest.er1
28042 cat conftest.err >&5
a848cd7e
SC
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } &&
6ebeb4c7 28045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28047 (eval $ac_try) 2>&5
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); }; } &&
28051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; }; then
28057
28058 libp_link="$libp"
28059 libsm_ice_link="$libsm_ice"
28060 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28061echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28062 libs_found=1
28063
28064else
28065 echo "$as_me: failed program was:" >&5
28066sed 's/^/| /' conftest.$ac_ext >&5
28067
28068
28069
28070fi
ac1cb8d3
VS
28071rm -f conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28073
28074 LIBS="$save_LIBS"
28075 CFLAGS=$save_CFLAGS
28076 fi
28077 done
28078 fi
28079 done
28080
28081 if test "$libs_found" = "0"; then
28082 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28083echo "${ECHO_T}can't find the right libraries" >&6
28084 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28085echo "$as_me: error: can't link a simple motif program" >&2;}
28086 { (exit 1); exit 1; }; }
28087 fi
28088
28089 save_CFLAGS=$CFLAGS
28090 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28091 echo "$as_me:$LINENO: checking for Motif 2" >&5
28092echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28093 cat >conftest.$ac_ext <<_ACEOF
28094/* confdefs.h. */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h. */
28099
28100 #include <Xm/Xm.h>
28101
28102int
28103main ()
28104{
28105
28106 #if XmVersion < 2000
04e525a0 28107 Not Motif 2
a848cd7e
SC
28108 #endif
28109
28110 ;
28111 return 0;
28112}
28113_ACEOF
28114rm -f conftest.$ac_objext
28115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28116 (eval $ac_compile) 2>conftest.er1
a848cd7e 28117 ac_status=$?
ac1cb8d3
VS
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
a848cd7e
SC
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
6ebeb4c7 28123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; } &&
28129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28132 ac_status=$?
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28135
28136 cat >>confdefs.h <<\_ACEOF
28137#define __WXMOTIF20__ 1
28138_ACEOF
28139
28140 echo "$as_me:$LINENO: result: found" >&5
28141echo "${ECHO_T}found" >&6
28142
28143else
28144 echo "$as_me: failed program was:" >&5
28145sed 's/^/| /' conftest.$ac_ext >&5
28146
28147
28148 cat >>confdefs.h <<\_ACEOF
28149#define __WXMOTIF20__ 0
28150_ACEOF
28151
28152 echo "$as_me:$LINENO: result: not found" >&5
28153echo "${ECHO_T}not found" >&6
28154
2113bc77
MW
28155fi
28156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28157
28158 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28159echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28160 cat >conftest.$ac_ext <<_ACEOF
28161/* confdefs.h. */
28162_ACEOF
28163cat confdefs.h >>conftest.$ac_ext
28164cat >>conftest.$ac_ext <<_ACEOF
28165/* end confdefs.h. */
28166
28167 #include <Xm/Xm.h>
28168
28169int
28170main ()
28171{
28172
28173 #if !defined(LesstifVersion) || LesstifVersion <= 0
04e525a0 28174 Not Lesstif
2113bc77
MW
28175 #endif
28176
28177 ;
28178 return 0;
28179}
28180_ACEOF
28181rm -f conftest.$ac_objext
28182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28183 (eval $ac_compile) 2>conftest.er1
28184 ac_status=$?
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
6ebeb4c7 28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest.$ac_objext'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202
28203 cat >>confdefs.h <<\_ACEOF
28204#define __WXLESSTIF__ 1
28205_ACEOF
28206
28207 echo "$as_me:$LINENO: result: yes" >&5
28208echo "${ECHO_T}yes" >&6
28209
28210else
28211 echo "$as_me: failed program was:" >&5
28212sed 's/^/| /' conftest.$ac_ext >&5
28213
28214
28215 cat >>confdefs.h <<\_ACEOF
28216#define __WXLESSTIF__ 0
28217_ACEOF
28218
28219 echo "$as_me:$LINENO: result: no" >&5
28220echo "${ECHO_T}no" >&6
28221
a848cd7e 28222fi
ac1cb8d3 28223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28224 CFLAGS=$save_CFLAGS
28225
28226 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28227 TOOLKIT=MOTIF
28228 GUIDIST=MOTIF_DIST
28229 fi
28230
74b84332 28231 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28232 if test "$wxUSE_LIBXPM" = "sys"; then
28233 echo "$as_me:$LINENO: checking for Xpm library" >&5
28234echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28235
28236ac_find_libraries=
28237for ac_dir in $SEARCH_LIB /usr/lib;
28238 do
3eca31dc 28239 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28240 if test -f "$ac_dir/libXpm.$ac_extension"; then
28241 ac_find_libraries=$ac_dir
28242 break 2
28243 fi
28244 done
28245 done
28246
28247 if test "$ac_find_libraries" != "" ; then
28248
28249 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28250 result=$?
28251 if test $result = 0; then
28252 ac_path_to_link=""
28253 else
28254 ac_path_to_link=" -L$ac_find_libraries"
28255 fi
28256
28257 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28258 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28259echo "${ECHO_T}found at $ac_find_libraries" >&6
28260
28261 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28262echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28263if test "${wx_cv_x11_xpm_h+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
28265else
28266
28267 save_CFLAGS=$CFLAGS
28268 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28269
28270 cat >conftest.$ac_ext <<_ACEOF
28271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
28276
28277 #include <X11/xpm.h>
28278
28279int
28280main ()
28281{
28282
28283 int version;
28284 version = XpmLibraryVersion();
28285
28286 ;
28287 return 0;
28288}
28289_ACEOF
28290rm -f conftest.$ac_objext
28291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28292 (eval $ac_compile) 2>conftest.er1
a848cd7e 28293 ac_status=$?
ac1cb8d3
VS
28294 grep -v '^ *+' conftest.er1 >conftest.err
28295 rm -f conftest.er1
28296 cat conftest.err >&5
a848cd7e
SC
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
6ebeb4c7 28299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; } &&
28305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 wx_cv_x11_xpm_h=yes
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316wx_cv_x11_xpm_h=no
28317
28318fi
ac1cb8d3 28319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28320
28321 CFLAGS=$save_CFLAGS
28322
28323
28324fi
28325echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28326echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28327
28328 if test $wx_cv_x11_xpm_h = "yes"; then
28329 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28330 cat >>confdefs.h <<\_ACEOF
28331#define wxHAVE_LIB_XPM 1
28332_ACEOF
28333
28334 else
28335 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28336echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28337 fi
28338 fi
28339
28340 fi
28341
28342 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28343echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28344if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347 ac_check_lib_save_LIBS=$LIBS
28348LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28349cat >conftest.$ac_ext <<_ACEOF
28350/* confdefs.h. */
28351_ACEOF
28352cat confdefs.h >>conftest.$ac_ext
28353cat >>conftest.$ac_ext <<_ACEOF
28354/* end confdefs.h. */
28355
28356/* Override any gcc2 internal prototype to avoid an error. */
28357#ifdef __cplusplus
28358extern "C"
28359#endif
28360/* We use char because int might match the return type of a gcc2
28361 builtin and then its argument prototype would still apply. */
28362char XShapeQueryExtension ();
28363int
28364main ()
28365{
28366XShapeQueryExtension ();
28367 ;
28368 return 0;
28369}
28370_ACEOF
28371rm -f conftest.$ac_objext conftest$ac_exeext
28372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28373 (eval $ac_link) 2>conftest.er1
a848cd7e 28374 ac_status=$?
ac1cb8d3
VS
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
a848cd7e
SC
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
6ebeb4c7 28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
28386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
28392 ac_cv_lib_Xext_XShapeQueryExtension=yes
28393else
28394 echo "$as_me: failed program was:" >&5
28395sed 's/^/| /' conftest.$ac_ext >&5
28396
28397ac_cv_lib_Xext_XShapeQueryExtension=no
28398fi
ac1cb8d3
VS
28399rm -f conftest.err conftest.$ac_objext \
28400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28401LIBS=$ac_check_lib_save_LIBS
28402fi
28403echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28404echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28405if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28406
28407 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28408 wxHAVE_XEXT_LIB=1
28409
28410fi
28411
28412
28413 if test "$wxHAVE_XEXT_LIB" = 1; then
28414 save_CFLAGS="$CFLAGS"
28415 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28416
28417 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28418echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28419 cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425
28426 #include <X11/Xlib.h>
28427 #include <X11/extensions/shape.h>
28428
28429int
28430main ()
28431{
28432
28433 int dummy1, dummy2;
28434 XShapeQueryExtension((Display*)NULL,
28435 (int*)NULL, (int*)NULL);
28436
28437 ;
28438 return 0;
28439}
28440_ACEOF
28441rm -f conftest.$ac_objext
28442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28443 (eval $ac_compile) 2>conftest.er1
a848cd7e 28444 ac_status=$?
ac1cb8d3
VS
28445 grep -v '^ *+' conftest.er1 >conftest.err
28446 rm -f conftest.er1
28447 cat conftest.err >&5
a848cd7e
SC
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } &&
6ebeb4c7 28450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28453 ac_status=$?
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; } &&
28456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; }; then
28462
28463 cat >>confdefs.h <<\_ACEOF
28464#define HAVE_XSHAPE 1
28465_ACEOF
28466
28467 echo "$as_me:$LINENO: result: found" >&5
28468echo "${ECHO_T}found" >&6
28469
28470else
28471 echo "$as_me: failed program was:" >&5
28472sed 's/^/| /' conftest.$ac_ext >&5
28473
28474
28475 echo "$as_me:$LINENO: result: not found" >&5
28476echo "${ECHO_T}not found" >&6
28477
28478fi
ac1cb8d3 28479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28480 CFLAGS="$save_CFLAGS"
28481
28482 fi
28483 fi
28484
28485 if test "$wxUSE_MAC" = 1; then
28486 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28487echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28488 if test "$GCC" = yes; then
28489 echo "$as_me:$LINENO: result: gcc" >&5
28490echo "${ECHO_T}gcc" >&6
28491 CPPFLAGS_PASCAL="-fpascal-strings"
28492 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28493 echo "$as_me:$LINENO: result: xlc" >&5
28494echo "${ECHO_T}xlc" >&6
28495 CPPFLAGS_PASCAL="-qmacpstr"
28496 else
28497 echo "$as_me:$LINENO: result: none" >&5
28498echo "${ECHO_T}none" >&6
28499 fi
28500
1e9e8aba
DE
28501 if test "x$wxUSE_UNIX" = "xyes"; then
28502 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28503 else
28504 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28505 fi
a848cd7e 28506
a848cd7e
SC
28507 TOOLKIT=MAC
28508 GUIDIST=MACX_DIST
dd21ced8 28509 WXBASEPORT="_carbon"
a848cd7e
SC
28510 fi
28511
28512 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28513 TOOLKIT=COCOA
28514 GUIDIST=COCOA_DIST
28515 fi
28516
28517 if test "$wxUSE_PM" = 1; then
28518 TOOLKIT=PM
de59c161
RD
28519 GUIDIST=PM_DIST
28520 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28521echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28522if test "${wx_cv_spbcdata+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28524else
28525
28526 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28527/* confdefs.h. */
28528_ACEOF
28529cat confdefs.h >>conftest.$ac_ext
28530cat >>conftest.$ac_ext <<_ACEOF
28531/* end confdefs.h. */
28532
28533 #define INCL_PM
28534 #include <os2.h>
28535
28536int
28537main ()
28538{
28539
28540 SPBCDATA test;
28541
28542 ;
28543 return 0;
28544}
28545_ACEOF
28546rm -f conftest.$ac_objext
28547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28548 (eval $ac_compile) 2>conftest.er1
de59c161 28549 ac_status=$?
ac1cb8d3
VS
28550 grep -v '^ *+' conftest.er1 >conftest.err
28551 rm -f conftest.er1
28552 cat conftest.err >&5
de59c161
RD
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); } &&
6ebeb4c7 28555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; } &&
28561 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; }; then
28567 wx_cv_spbcdata=yes
28568else
28569 echo "$as_me: failed program was:" >&5
28570sed 's/^/| /' conftest.$ac_ext >&5
28571
28572wx_cv_spbcdata=no
28573
28574fi
ac1cb8d3 28575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28576
28577
28578fi
28579echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28580echo "${ECHO_T}$wx_cv_spbcdata" >&6
28581
28582 if test $wx_cv_spbcdata = "yes"; then
28583 cat >>confdefs.h <<\_ACEOF
28584#define HAVE_SPBCDATA 1
28585_ACEOF
28586
28587 fi
a848cd7e
SC
28588 fi
28589
28590 if test "$TOOLKIT" = "PM" ; then
28591 TOOLKIT_DIR="os2"
28592 else
28593 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28594 fi
28595
a848cd7e 28596 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28597 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28598 WIDGET_SET=univ
a848cd7e
SC
28599 fi
28600
28601 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28602 DISTDIR="wx\$(TOOLKIT)"
28603else
28604 USE_GUI=0
28605
28606 TOOLKIT_DIR="base"
28607
28608 if test "$USE_WIN32" = 1 ; then
a848cd7e 28609 TOOLKIT="MSW"
a848cd7e
SC
28610 fi
28611
a848cd7e
SC
28612 GUIDIST="BASE_DIST"
28613 DISTDIR="wxBase"
28614fi
28615
28616
d12aef51
VZ
28617if test "$wxUSE_GUI" = "yes"; then
28618 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
28619
28620for ac_header in X11/Xlib.h
28621do
28622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28623if eval "test \"\${$as_ac_Header+set}\" = set"; then
28624 echo "$as_me:$LINENO: checking for $ac_header" >&5
28625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28626if eval "test \"\${$as_ac_Header+set}\" = set"; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628fi
28629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28631else
28632 # Is the header compilable?
28633echo "$as_me:$LINENO: checking $ac_header usability" >&5
28634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28635cat >conftest.$ac_ext <<_ACEOF
28636/* confdefs.h. */
28637_ACEOF
28638cat confdefs.h >>conftest.$ac_ext
28639cat >>conftest.$ac_ext <<_ACEOF
28640/* end confdefs.h. */
28641$ac_includes_default
28642#include <$ac_header>
28643_ACEOF
28644rm -f conftest.$ac_objext
28645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646 (eval $ac_compile) 2>conftest.er1
28647 ac_status=$?
28648 grep -v '^ *+' conftest.er1 >conftest.err
28649 rm -f conftest.er1
28650 cat conftest.err >&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
28653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ac_header_compiler=yes
28666else
28667 echo "$as_me: failed program was:" >&5
28668sed 's/^/| /' conftest.$ac_ext >&5
28669
28670ac_header_compiler=no
28671fi
28672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28674echo "${ECHO_T}$ac_header_compiler" >&6
28675
28676# Is the header present?
28677echo "$as_me:$LINENO: checking $ac_header presence" >&5
28678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28679cat >conftest.$ac_ext <<_ACEOF
28680/* confdefs.h. */
28681_ACEOF
28682cat confdefs.h >>conftest.$ac_ext
28683cat >>conftest.$ac_ext <<_ACEOF
28684/* end confdefs.h. */
28685#include <$ac_header>
28686_ACEOF
28687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28689 ac_status=$?
28690 grep -v '^ *+' conftest.er1 >conftest.err
28691 rm -f conftest.er1
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } >/dev/null; then
28695 if test -s conftest.err; then
28696 ac_cpp_err=$ac_c_preproc_warn_flag
28697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28698 else
28699 ac_cpp_err=
28700 fi
28701else
28702 ac_cpp_err=yes
28703fi
28704if test -z "$ac_cpp_err"; then
28705 ac_header_preproc=yes
28706else
28707 echo "$as_me: failed program was:" >&5
28708sed 's/^/| /' conftest.$ac_ext >&5
28709
28710 ac_header_preproc=no
28711fi
28712rm -f conftest.err conftest.$ac_ext
28713echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28714echo "${ECHO_T}$ac_header_preproc" >&6
28715
28716# So? What about this header?
28717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28718 yes:no: )
28719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28723 ac_header_preproc=yes
28724 ;;
28725 no:yes:* )
28726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28738 (
28739 cat <<\_ASBOX
28740## ----------------------------------------- ##
28741## Report this to wx-dev@lists.wxwidgets.org ##
28742## ----------------------------------------- ##
28743_ASBOX
28744 ) |
28745 sed "s/^/$as_me: WARNING: /" >&2
28746 ;;
28747esac
28748echo "$as_me:$LINENO: checking for $ac_header" >&5
28749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28750if eval "test \"\${$as_ac_Header+set}\" = set"; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752else
28753 eval "$as_ac_Header=\$ac_header_preproc"
28754fi
28755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28757
28758fi
28759if test `eval echo '${'$as_ac_Header'}'` = yes; then
28760 cat >>confdefs.h <<_ACEOF
28761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28762_ACEOF
28763
28764fi
28765
28766done
28767
28768
28769for ac_header in X11/XKBlib.h
28770do
28771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28772echo "$as_me:$LINENO: checking for $ac_header" >&5
28773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28774if eval "test \"\${$as_ac_Header+set}\" = set"; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28776else
28777 cat >conftest.$ac_ext <<_ACEOF
28778/* confdefs.h. */
28779_ACEOF
28780cat confdefs.h >>conftest.$ac_ext
28781cat >>conftest.$ac_ext <<_ACEOF
28782/* end confdefs.h. */
28783
28784 #if HAVE_X11_XLIB_H
28785 #include <X11/Xlib.h>
28786 #endif
28787
28788
28789#include <$ac_header>
28790_ACEOF
28791rm -f conftest.$ac_objext
28792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28793 (eval $ac_compile) 2>conftest.er1
28794 ac_status=$?
28795 grep -v '^ *+' conftest.er1 >conftest.err
28796 rm -f conftest.er1
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } &&
28800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; } &&
28806 { ac_try='test -s conftest.$ac_objext'
28807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808 (eval $ac_try) 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; }; then
28812 eval "$as_ac_Header=yes"
28813else
28814 echo "$as_me: failed program was:" >&5
28815sed 's/^/| /' conftest.$ac_ext >&5
28816
28817eval "$as_ac_Header=no"
28818fi
28819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28820fi
28821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28823if test `eval echo '${'$as_ac_Header'}'` = yes; then
28824 cat >>confdefs.h <<_ACEOF
28825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28826_ACEOF
28827
28828fi
28829
28830done
28831
28832 fi
28833fi
28834
a848cd7e
SC
28835
28836
28837IODBC_C_SRC=""
28838
28839
28840if test "$TOOLKIT" != "MSW" ; then
28841
28842 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28843
28844 if test "${ac_cv_header_sql_h+set}" = set; then
28845 echo "$as_me:$LINENO: checking for sql.h" >&5
28846echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28847if test "${ac_cv_header_sql_h+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849fi
28850echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28851echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28852else
28853 # Is the header compilable?
28854echo "$as_me:$LINENO: checking sql.h usability" >&5
28855echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28856cat >conftest.$ac_ext <<_ACEOF
28857/* confdefs.h. */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h. */
28862$ac_includes_default
28863#include <sql.h>
28864_ACEOF
28865rm -f conftest.$ac_objext
28866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28867 (eval $ac_compile) 2>conftest.er1
a848cd7e 28868 ac_status=$?
ac1cb8d3
VS
28869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
a848cd7e
SC
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } &&
6ebeb4c7 28874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_header_compiler=yes
28887else
28888 echo "$as_me: failed program was:" >&5
28889sed 's/^/| /' conftest.$ac_ext >&5
28890
28891ac_header_compiler=no
28892fi
ac1cb8d3 28893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895echo "${ECHO_T}$ac_header_compiler" >&6
28896
28897# Is the header present?
28898echo "$as_me:$LINENO: checking sql.h presence" >&5
28899echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28900cat >conftest.$ac_ext <<_ACEOF
28901/* confdefs.h. */
28902_ACEOF
28903cat confdefs.h >>conftest.$ac_ext
28904cat >>conftest.$ac_ext <<_ACEOF
28905/* end confdefs.h. */
28906#include <sql.h>
28907_ACEOF
28908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28910 ac_status=$?
28911 grep -v '^ *+' conftest.er1 >conftest.err
28912 rm -f conftest.er1
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } >/dev/null; then
28916 if test -s conftest.err; then
28917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28919 else
28920 ac_cpp_err=
28921 fi
28922else
28923 ac_cpp_err=yes
28924fi
28925if test -z "$ac_cpp_err"; then
28926 ac_header_preproc=yes
28927else
28928 echo "$as_me: failed program was:" >&5
28929sed 's/^/| /' conftest.$ac_ext >&5
28930
28931 ac_header_preproc=no
28932fi
28933rm -f conftest.err conftest.$ac_ext
28934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935echo "${ECHO_T}$ac_header_preproc" >&6
28936
28937# So? What about this header?
ac1cb8d3
VS
28938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28939 yes:no: )
a848cd7e
SC
28940 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28941echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28942 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28943echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28944 ac_header_preproc=yes
a848cd7e 28945 ;;
ac1cb8d3 28946 no:yes:* )
a848cd7e
SC
28947 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28948echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28949 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28950echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28952echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28954echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28955 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28956echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28957 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28958echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28959 (
28960 cat <<\_ASBOX
ac1cb8d3
VS
28961## ----------------------------------------- ##
28962## Report this to wx-dev@lists.wxwidgets.org ##
28963## ----------------------------------------- ##
a848cd7e
SC
28964_ASBOX
28965 ) |
28966 sed "s/^/$as_me: WARNING: /" >&2
28967 ;;
28968esac
28969echo "$as_me:$LINENO: checking for sql.h" >&5
28970echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28971if test "${ac_cv_header_sql_h+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28973else
28974 ac_cv_header_sql_h=$ac_header_preproc
28975fi
28976echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28977echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28978
28979fi
28980if test $ac_cv_header_sql_h = yes; then
28981 found_sql_h=1
28982fi
28983
28984
28985 if test "x$found_sql_h" = "x1" ; then
28986 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28987echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28988if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28990else
28991 ac_check_lib_save_LIBS=$LIBS
28992LIBS="-liodbc $LIBS"
28993cat >conftest.$ac_ext <<_ACEOF
28994/* confdefs.h. */
28995_ACEOF
28996cat confdefs.h >>conftest.$ac_ext
28997cat >>conftest.$ac_ext <<_ACEOF
28998/* end confdefs.h. */
28999
29000/* Override any gcc2 internal prototype to avoid an error. */
29001#ifdef __cplusplus
29002extern "C"
29003#endif
29004/* We use char because int might match the return type of a gcc2
29005 builtin and then its argument prototype would still apply. */
29006char SQLAllocEnv ();
29007int
29008main ()
29009{
29010SQLAllocEnv ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
29015rm -f conftest.$ac_objext conftest$ac_exeext
29016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29017 (eval $ac_link) 2>conftest.er1
a848cd7e 29018 ac_status=$?
ac1cb8d3
VS
29019 grep -v '^ *+' conftest.er1 >conftest.err
29020 rm -f conftest.er1
29021 cat conftest.err >&5
a848cd7e
SC
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); } &&
6ebeb4c7 29024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; } &&
29030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_cv_lib_iodbc_SQLAllocEnv=yes
29037else
29038 echo "$as_me: failed program was:" >&5
29039sed 's/^/| /' conftest.$ac_ext >&5
29040
29041ac_cv_lib_iodbc_SQLAllocEnv=no
29042fi
ac1cb8d3
VS
29043rm -f conftest.err conftest.$ac_objext \
29044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29045LIBS=$ac_check_lib_save_LIBS
29046fi
29047echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29048echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29049if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29050 ODBC_LINK=" -liodbc"
29051else
29052
29053 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29054echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29055if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057else
29058 ac_check_lib_save_LIBS=$LIBS
29059LIBS="-lunixodbc $LIBS"
29060cat >conftest.$ac_ext <<_ACEOF
29061/* confdefs.h. */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h. */
29066
29067/* Override any gcc2 internal prototype to avoid an error. */
29068#ifdef __cplusplus
29069extern "C"
29070#endif
29071/* We use char because int might match the return type of a gcc2
29072 builtin and then its argument prototype would still apply. */
29073char SQLAllocEnv ();
29074int
29075main ()
29076{
29077SQLAllocEnv ();
29078 ;
29079 return 0;
29080}
29081_ACEOF
29082rm -f conftest.$ac_objext conftest$ac_exeext
29083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29084 (eval $ac_link) 2>conftest.er1
a848cd7e 29085 ac_status=$?
ac1cb8d3
VS
29086 grep -v '^ *+' conftest.er1 >conftest.err
29087 rm -f conftest.er1
29088 cat conftest.err >&5
a848cd7e
SC
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } &&
6ebeb4c7 29091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; } &&
29097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108ac_cv_lib_unixodbc_SQLAllocEnv=no
29109fi
ac1cb8d3
VS
29110rm -f conftest.err conftest.$ac_objext \
29111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29112LIBS=$ac_check_lib_save_LIBS
29113fi
29114echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29115echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29116if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29117 ODBC_LINK=" -lunixodbc"
29118else
29119
29120 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29121echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29122if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29124else
29125 ac_check_lib_save_LIBS=$LIBS
29126LIBS="-lodbc $LIBS"
29127cat >conftest.$ac_ext <<_ACEOF
29128/* confdefs.h. */
29129_ACEOF
29130cat confdefs.h >>conftest.$ac_ext
29131cat >>conftest.$ac_ext <<_ACEOF
29132/* end confdefs.h. */
29133
29134/* Override any gcc2 internal prototype to avoid an error. */
29135#ifdef __cplusplus
29136extern "C"
29137#endif
29138/* We use char because int might match the return type of a gcc2
29139 builtin and then its argument prototype would still apply. */
29140char SQLAllocEnv ();
29141int
29142main ()
29143{
29144SQLAllocEnv ();
29145 ;
29146 return 0;
29147}
29148_ACEOF
29149rm -f conftest.$ac_objext conftest$ac_exeext
29150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29151 (eval $ac_link) 2>conftest.er1
a848cd7e 29152 ac_status=$?
ac1cb8d3
VS
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
a848cd7e
SC
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
6ebeb4c7 29158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; } &&
29164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 ac_cv_lib_odbc_SQLAllocEnv=yes
29171else
29172 echo "$as_me: failed program was:" >&5
29173sed 's/^/| /' conftest.$ac_ext >&5
29174
29175ac_cv_lib_odbc_SQLAllocEnv=no
29176fi
ac1cb8d3
VS
29177rm -f conftest.err conftest.$ac_objext \
29178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29179LIBS=$ac_check_lib_save_LIBS
29180fi
29181echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29182echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29183if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29184 ODBC_LINK=" -lodbc"
29185fi
29186
29187
29188fi
29189
29190
29191fi
29192
29193 fi
29194 if test "x$ODBC_LINK" = "x" ; then
29195 if test "$wxUSE_ODBC" = "sys" ; then
29196 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29197echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29198 { (exit 1); exit 1; }; }
29199 else
29200 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29201echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29202 wxUSE_ODBC=builtin
29203 fi
29204 else
29205 wxUSE_ODBC=sys
29206 fi
29207 fi
a848cd7e 29208
2da0c077
RD
29209 if test "$wxUSE_ODBC" = "builtin" ; then
29210 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29211#define wxUSE_BUILTIN_IODBC 1
29212_ACEOF
29213
a848cd7e
SC
29214 fi
29215fi
29216
2da0c077
RD
29217if test "$wxUSE_ODBC" != "no" ; then
29218 cat >>confdefs.h <<\_ACEOF
29219#define wxUSE_ODBC 1
29220_ACEOF
29221
29222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29223
29224 WXODBCFLAG="-D_IODBC_"
29225fi
a848cd7e 29226
01cb68df 29227
a848cd7e 29228if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29229 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29230 echo "$as_me:$LINENO: checking for Xinerama" >&5
29231echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29232
29233ac_find_libraries=
29234for ac_dir in $SEARCH_LIB /usr/lib;
29235 do
3eca31dc 29236 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29237 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29238 ac_find_libraries=$ac_dir
29239 break 2
29240 fi
29241 done
29242 done
29243
29244 if test "$ac_find_libraries" != "" ; then
29245
29246 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29247 result=$?
29248 if test $result = 0; then
29249 ac_path_to_link=""
29250 else
29251 ac_path_to_link=" -L$ac_find_libraries"
29252 fi
29253
29254 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29255 LDFLAGS="$LDFLAGS $ac_path_to_link"
29256 fi
29257 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29258 echo "$as_me:$LINENO: result: yes" >&5
29259echo "${ECHO_T}yes" >&6
29260
29261 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29262echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29263
29264ac_find_libraries=
29265for ac_dir in $SEARCH_LIB /usr/lib;
29266 do
3eca31dc 29267 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29268 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29269 ac_find_libraries=$ac_dir
29270 break 2
29271 fi
29272 done
29273 done
29274
29275 if test "$ac_find_libraries" != "" ; then
29276 echo "$as_me:$LINENO: result: yes" >&5
29277echo "${ECHO_T}yes" >&6
29278
29279for ac_header in X11/extensions/xf86vmode.h
29280do
29281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29282echo "$as_me:$LINENO: checking for $ac_header" >&5
29283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29284if eval "test \"\${$as_ac_Header+set}\" = set"; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286else
29287 cat >conftest.$ac_ext <<_ACEOF
29288/* confdefs.h. */
29289_ACEOF
29290cat confdefs.h >>conftest.$ac_ext
29291cat >>conftest.$ac_ext <<_ACEOF
29292/* end confdefs.h. */
29293
29294 #if HAVE_X11_XLIB_H
29295 #include <X11/Xlib.h>
29296 #endif
29297
29298
29299#include <$ac_header>
29300_ACEOF
29301rm -f conftest.$ac_objext
29302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29303 (eval $ac_compile) 2>conftest.er1
a848cd7e 29304 ac_status=$?
ac1cb8d3
VS
29305 grep -v '^ *+' conftest.er1 >conftest.err
29306 rm -f conftest.er1
29307 cat conftest.err >&5
a848cd7e
SC
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } &&
6ebeb4c7 29310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; } &&
29316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318 (eval $ac_try) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 eval "$as_ac_Header=yes"
29323else
29324 echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327eval "$as_ac_Header=no"
29328fi
ac1cb8d3 29329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29330fi
29331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29333if test `eval echo '${'$as_ac_Header'}'` = yes; then
29334 cat >>confdefs.h <<_ACEOF
29335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29336_ACEOF
29337
29338 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29339
29340fi
29341
29342done
29343
29344 else
29345 echo "$as_me:$LINENO: result: no" >&5
29346echo "${ECHO_T}no" >&6
29347 fi
29348
29349 else
29350 echo "$as_me:$LINENO: result: no" >&5
29351echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29352 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29353echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29354 wxUSE_DISPLAY="no"
29355 fi
01cb68df
RG
29356 elif test "$wxUSE_MSW" = 1; then
29357
29358
29359for ac_header in multimon.h ddraw.h
29360do
29361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29362echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29364if eval "test \"\${$as_ac_Header+set}\" = set"; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29366else
5294a27e 29367 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
5294a27e
VZ
29373#include <windows.h>
29374
01cb68df
RG
29375#include <$ac_header>
29376_ACEOF
29377rm -f conftest.$ac_objext
29378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29379 (eval $ac_compile) 2>conftest.er1
01cb68df 29380 ac_status=$?
ac1cb8d3
VS
29381 grep -v '^ *+' conftest.er1 >conftest.err
29382 rm -f conftest.er1
29383 cat conftest.err >&5
01cb68df
RG
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } &&
6ebeb4c7 29386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; } &&
29392 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; }; then
5294a27e 29398 eval "$as_ac_Header=yes"
01cb68df
RG
29399else
29400 echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
5294a27e 29403eval "$as_ac_Header=no"
01cb68df 29404fi
ac1cb8d3 29405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29406fi
29407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29409if test `eval echo '${'$as_ac_Header'}'` = yes; then
29410 cat >>confdefs.h <<_ACEOF
29411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29412_ACEOF
29413
29414else
29415
5294a27e
VZ
29416 wxUSE_DISPLAY="no"
29417 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29418echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29419
29420fi
29421
29422done
29423
a848cd7e
SC
29424 fi
29425fi
29426
29427
29428USE_OPENGL=0
29429if test "$wxUSE_OPENGL" = "yes"; then
29430 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29431 OPENGL_LIBS="-framework OpenGL -framework AGL"
29432 elif test "$wxUSE_MSW" = 1; then
29433 OPENGL_LIBS="-lopengl32 -lglu32"
29434 else
29435
29436
29437ac_find_includes=
29438for ac_dir in $SEARCH_INCLUDE /usr/include;
29439 do
29440 if test -f "$ac_dir/GL/gl.h"; then
29441 ac_find_includes=$ac_dir
29442 break
29443 fi
29444 done
29445
29446 if test "$ac_find_includes" != "" ; then
29447 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29448echo "${ECHO_T}found in $ac_find_includes" >&6
29449
29450 if test "x$ac_find_includes" = "x/usr/include"; then
29451 ac_path_to_include=""
29452 else
29453 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29454 result=$?
29455 if test $result = 0; then
29456 ac_path_to_include=""
29457 else
29458 ac_path_to_include=" -I$ac_find_includes"
29459 fi
29460 fi
29461
29462 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29463 fi
29464
29465 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29466 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29467echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29468if test "${ac_cv_header_GL_gl_h+set}" = set; then
29469 echo $ECHO_N "(cached) $ECHO_C" >&6
29470fi
29471echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29472echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29473else
29474 # Is the header compilable?
29475echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29476echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29477cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
29483$ac_includes_default
29484#include <GL/gl.h>
29485_ACEOF
29486rm -f conftest.$ac_objext
29487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29488 (eval $ac_compile) 2>conftest.er1
a848cd7e 29489 ac_status=$?
ac1cb8d3
VS
29490 grep -v '^ *+' conftest.er1 >conftest.err
29491 rm -f conftest.er1
29492 cat conftest.err >&5
a848cd7e
SC
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
6ebeb4c7 29495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 ac_header_compiler=yes
29508else
29509 echo "$as_me: failed program was:" >&5
29510sed 's/^/| /' conftest.$ac_ext >&5
29511
29512ac_header_compiler=no
29513fi
ac1cb8d3 29514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29516echo "${ECHO_T}$ac_header_compiler" >&6
29517
29518# Is the header present?
29519echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29520echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29521cat >conftest.$ac_ext <<_ACEOF
29522/* confdefs.h. */
29523_ACEOF
29524cat confdefs.h >>conftest.$ac_ext
29525cat >>conftest.$ac_ext <<_ACEOF
29526/* end confdefs.h. */
29527#include <GL/gl.h>
29528_ACEOF
29529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } >/dev/null; then
29537 if test -s conftest.err; then
29538 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29540 else
29541 ac_cpp_err=
29542 fi
29543else
29544 ac_cpp_err=yes
29545fi
29546if test -z "$ac_cpp_err"; then
29547 ac_header_preproc=yes
29548else
29549 echo "$as_me: failed program was:" >&5
29550sed 's/^/| /' conftest.$ac_ext >&5
29551
29552 ac_header_preproc=no
29553fi
29554rm -f conftest.err conftest.$ac_ext
29555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29556echo "${ECHO_T}$ac_header_preproc" >&6
29557
29558# So? What about this header?
ac1cb8d3
VS
29559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29560 yes:no: )
a848cd7e
SC
29561 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29562echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29563 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29564echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29565 ac_header_preproc=yes
a848cd7e 29566 ;;
ac1cb8d3 29567 no:yes:* )
a848cd7e
SC
29568 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29569echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29570 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29571echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29572 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29573echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29574 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29575echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29576 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29577echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29578 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29579echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29580 (
29581 cat <<\_ASBOX
ac1cb8d3
VS
29582## ----------------------------------------- ##
29583## Report this to wx-dev@lists.wxwidgets.org ##
29584## ----------------------------------------- ##
a848cd7e
SC
29585_ASBOX
29586 ) |
29587 sed "s/^/$as_me: WARNING: /" >&2
29588 ;;
29589esac
29590echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29591echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29592if test "${ac_cv_header_GL_gl_h+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29594else
29595 ac_cv_header_GL_gl_h=$ac_header_preproc
29596fi
29597echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29598echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29599
29600fi
29601if test $ac_cv_header_GL_gl_h = yes; then
29602
29603 found_gl=0
29604
29605 echo "$as_me:$LINENO: checking for -lGL" >&5
29606echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29607
29608ac_find_libraries=
29609for ac_dir in $SEARCH_LIB /usr/lib;
29610 do
3eca31dc 29611 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29612 if test -f "$ac_dir/libGL.$ac_extension"; then
29613 ac_find_libraries=$ac_dir
29614 break 2
29615 fi
29616 done
29617 done
29618
29619 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29620 echo "$as_me:$LINENO: result: yes" >&5
29621echo "${ECHO_T}yes" >&6
29622
a848cd7e
SC
29623
29624 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29625 result=$?
29626 if test $result = 0; then
29627 ac_path_to_link=""
29628 else
29629 ac_path_to_link=" -L$ac_find_libraries"
29630 fi
29631
29632 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29633 LDFLAGS_GL="$ac_path_to_link"
29634 fi
29635
69120ee4
VZ
29636 echo "$as_me:$LINENO: checking for -lGLU" >&5
29637echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29638
29639ac_find_libraries=
29640for ac_dir in $SEARCH_LIB /usr/lib;
29641 do
3eca31dc 29642 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29643 if test -f "$ac_dir/libGLU.$ac_extension"; then
29644 ac_find_libraries=$ac_dir
29645 break 2
29646 fi
29647 done
29648 done
29649
29650 if test "$ac_find_libraries" != "" ; then
29651
29652 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29653 result=$?
29654 if test $result = 0; then
29655 ac_path_to_link=""
29656 else
29657 ac_path_to_link=" -L$ac_find_libraries"
29658 fi
29659
29660 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29661 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29662 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29663 fi
29664
29665 found_gl=1
29666 OPENGL_LIBS="-lGL -lGLU"
29667 echo "$as_me:$LINENO: result: yes" >&5
29668echo "${ECHO_T}yes" >&6
69120ee4
VZ
29669 else
29670 echo "$as_me:$LINENO: result: no" >&5
29671echo "${ECHO_T}no" >&6
a848cd7e 29672 fi
69120ee4
VZ
29673 else
29674 echo "$as_me:$LINENO: result: no" >&5
29675echo "${ECHO_T}no" >&6
a848cd7e
SC
29676 fi
29677
29678 if test "$found_gl" != 1; then
a848cd7e
SC
29679 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29680echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29681
29682ac_find_libraries=
29683for ac_dir in $SEARCH_LIB /usr/lib;
29684 do
3eca31dc 29685 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29686 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29687 ac_find_libraries=$ac_dir
29688 break 2
29689 fi
29690 done
29691 done
29692
29693 if test "$ac_find_libraries" != "" ; then
29694
29695 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29696 result=$?
29697 if test $result = 0; then
29698 ac_path_to_link=""
29699 else
29700 ac_path_to_link=" -L$ac_find_libraries"
29701 fi
29702
29703 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29704 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29705 echo "$as_me:$LINENO: result: yes" >&5
29706echo "${ECHO_T}yes" >&6
29707 else
29708 echo "$as_me:$LINENO: result: no" >&5
29709echo "${ECHO_T}no" >&6
29710 fi
29711 fi
29712
29713fi
29714
29715
29716
29717 if test "x$OPENGL_LIBS" = "x"; then
29718 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29719echo "$as_me: error: OpenGL libraries not available" >&2;}
29720 { (exit 1); exit 1; }; }
29721 fi
29722 fi
29723
29724 if test "$wxUSE_OPENGL" = "yes"; then
29725 USE_OPENGL=1
29726 cat >>confdefs.h <<\_ACEOF
29727#define wxUSE_OPENGL 1
29728_ACEOF
29729
29730 cat >>confdefs.h <<\_ACEOF
29731#define wxUSE_GLCANVAS 1
29732_ACEOF
29733
29734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29735 fi
29736fi
29737
a848cd7e
SC
29738
29739if test -n "$TOOLKIT" ; then
29740 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29741fi
29742
a848cd7e
SC
29743
29744
29745if test "$wxUSE_SHARED" = "yes"; then
29746 case "${host}" in
29747 *-pc-msdosdjgpp )
29748 wxUSE_SHARED=no
29749 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29750echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29751 ;;
29752 esac
29753fi
29754
a848cd7e 29755if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29756
29757
29758 found_versioning=no
29759
29760
29761 if test $found_versioning = no ; then
29762 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29763echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29764if test "${wx_cv_version_script+set}" = set; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29766else
29767
29768 echo "VER_1 { *; };" >conftest.sym
29769 echo "int main() { return 0; }" >conftest.cpp
29770
29771 if { ac_try='
29772 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29773 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } ; then
29779 if test -s conftest.stderr ; then
29780 wx_cv_version_script=no
29781 else
29782 wx_cv_version_script=yes
29783 fi
29784 else
29785 wx_cv_version_script=no
29786 fi
e5d4b470
MW
29787
29788 if test $wx_cv_version_script = yes
29789 then
29790 echo "struct B { virtual ~B() { } }; \
29791 struct D : public B { }; \
29792 void F() { D d; }" > conftest.cpp
29793
29794 if { ac_try='
29795 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29796 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='
29803 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29804 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; }
29810 then
29811 if { ac_try='
29812 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29813 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815 (eval $ac_try) 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; }
29819 then
29820 wx_cv_version_script=yes
29821 else
29822 wx_cv_version_script=no
29823 fi
29824 fi
29825 fi
29826
a848cd7e 29827 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29828 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29829
29830fi
29831echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29832echo "${ECHO_T}$wx_cv_version_script" >&6
29833 if test $wx_cv_version_script = yes ; then
29834 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29835 fi
29836 fi
29837
29838
29839 case "${host}" in
29840 *-*-linux* | *-*-gnu* )
29841 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29842 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29843 ;;
a848cd7e
SC
29844
29845 *-*-solaris2* )
29846 if test "$GCC" = yes ; then
29847 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29848
29849 saveLdflags="$LDFLAGS"
29850 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29851 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29852echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29853 cat >conftest.$ac_ext <<_ACEOF
29854/* confdefs.h. */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h. */
29859
29860int
29861main ()
29862{
29863
29864 ;
29865 return 0;
29866}
29867_ACEOF
29868rm -f conftest.$ac_objext conftest$ac_exeext
29869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29870 (eval $ac_link) 2>conftest.er1
a848cd7e 29871 ac_status=$?
ac1cb8d3
VS
29872 grep -v '^ *+' conftest.er1 >conftest.err
29873 rm -f conftest.er1
29874 cat conftest.err >&5
a848cd7e
SC
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); } &&
6ebeb4c7 29877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 (eval $ac_try) 2>&5
29880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; } &&
29883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29885 (eval $ac_try) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889
29890 echo "$as_me:$LINENO: result: yes" >&5
29891echo "${ECHO_T}yes" >&6
29892 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29893 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29894
29895else
29896 echo "$as_me: failed program was:" >&5
29897sed 's/^/| /' conftest.$ac_ext >&5
29898
29899
29900 echo "$as_me:$LINENO: result: no" >&5
29901echo "${ECHO_T}no" >&6
29902 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29903echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29904 LDFLAGS="$saveLdflags -Wl,-R,/"
29905 cat >conftest.$ac_ext <<_ACEOF
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
29911
29912int
29913main ()
29914{
29915
29916 ;
29917 return 0;
29918}
29919_ACEOF
29920rm -f conftest.$ac_objext conftest$ac_exeext
29921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29922 (eval $ac_link) 2>conftest.er1
a848cd7e 29923 ac_status=$?
ac1cb8d3
VS
29924 grep -v '^ *+' conftest.er1 >conftest.err
29925 rm -f conftest.er1
29926 cat conftest.err >&5
a848cd7e
SC
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); } &&
6ebeb4c7 29929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931 (eval $ac_try) 2>&5
29932 ac_status=$?
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; } &&
29935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29937 (eval $ac_try) 2>&5
29938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; }; then
29941
ffa0583f 29942 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29943echo "${ECHO_T}yes" >&6
ffa0583f
RL
29944 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29945 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29946
a848cd7e
SC
29947else
29948 echo "$as_me: failed program was:" >&5
29949sed 's/^/| /' conftest.$ac_ext >&5
29950
29951
29952 echo "$as_me:$LINENO: result: no" >&5
29953echo "${ECHO_T}no" >&6
29954
29955fi
ac1cb8d3
VS
29956rm -f conftest.err conftest.$ac_objext \
29957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29958
29959fi
ac1cb8d3
VS
29960rm -f conftest.err conftest.$ac_objext \
29961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29962 LDFLAGS="$saveLdflags"
29963 else
a848cd7e 29964 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29965 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29966 fi
29967 ;;
29968
cfda0ea8 29969 *-*-darwin* )
0caebc27
MW
29970 install_name_tool=`which install_name_tool`
29971 if test "$install_name_tool" -a -x "$install_name_tool"; then
29972 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29973 cat <<EOF >change-install-names
a848cd7e
SC
29974#!/bin/sh
29975libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29976inst_cmd="install_name_tool "
29977for i in \${libnames} ; do
29978 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29979done
29980\${inst_cmd} \${3}
29981EOF
0caebc27
MW
29982 chmod +x change-install-names
29983 fi
a848cd7e
SC
29984 ;;
29985
29986 *-*-cygwin* | *-*-mingw32* )
29987 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29988 ;;
29989
81f90336
MW
29990 *-*-hpux* )
29991 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29992 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29993 ;;
29994
a848cd7e 29995 esac
ceec2216 29996
ffa0583f
RL
29997 if test $wxUSE_RPATH = "no"; then
29998 SAMPLES_RPATH_FLAG=''
29999 SAMPLES_RPATH_POSTLINK=''
30000 WXCONFIG_RPATH=''
30001 fi
30002
30003 SHARED=1
30004
30005else
30006
ceec2216
RL
30007 config_linkage_component="-static"
30008 SHARED=0
ffa0583f 30009
ceec2216 30010fi
a848cd7e 30011
a848cd7e 30012
ceec2216
RL
30013UNICODE=0
30014lib_unicode_suffix=
30015WX_CHARTYPE="ansi"
30016if test "$wxUSE_UNICODE" = "yes"; then
30017 lib_unicode_suffix=u
30018 WX_CHARTYPE="unicode"
30019 UNICODE=1
a848cd7e
SC
30020fi
30021
ceec2216
RL
30022lib_debug_suffix=
30023WX_DEBUGTYPE="release"
30024DEBUG_FLAG=0
30025if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30026 lib_debug_suffix=d
30027 WX_DEBUGTYPE="debug"
30028 DEBUG_FLAG=1
30029fi
a848cd7e 30030
ceec2216
RL
30031WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30032WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30033
ceec2216
RL
30034DEBUG_INFO=0
30035if test "$wxUSE_DEBUG_INFO" = "yes"; then
30036 DEBUG_INFO=1
30037fi
a848cd7e 30038
ceec2216 30039WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30040
ceec2216 30041TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30042
ceec2216 30043TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30044
ceec2216
RL
30045if test "$cross_compiling" = "yes"; then
30046 HOST_SUFFIX="-$host_alias"
30047 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30048 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30049fi
30050
dd21ced8 30051WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30052if test "${TOOLKIT_DIR}" = "os2"; then
30053 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30054else
30055 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30056fi
ceec2216
RL
30057
30058
30059
1d1af5ea
DE
30060if test "$wxUSE_COCOA" = 1; then
30061
30062
30063 ac_ext=c
30064ac_cpp='$CPP $CPPFLAGS'
30065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30067ac_compiler_gnu=$ac_cv_c_compiler_gnu
30068
30069ac_ext=m
30070
30071 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30072echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
30079#include <AppKit/NSEvent.h>
30080#include <CoreFoundation/CoreFoundation.h>
30081
30082int
30083main ()
30084{
30085
30086 ;
30087 return 0;
30088}
30089_ACEOF
30090rm -f conftest.$ac_objext
30091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30092 (eval $ac_compile) 2>conftest.er1
30093 ac_status=$?
30094 grep -v '^ *+' conftest.er1 >conftest.err
30095 rm -f conftest.er1
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } &&
6ebeb4c7 30099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101 (eval $ac_try) 2>&5
30102 ac_status=$?
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); }; } &&
30105 { ac_try='test -s conftest.$ac_objext'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 echo "$as_me:$LINENO: result: no" >&5
30112echo "${ECHO_T}no" >&6
30113else
30114 echo "$as_me: failed program was:" >&5
30115sed 's/^/| /' conftest.$ac_ext >&5
30116
30117echo "$as_me:$LINENO: result: yes" >&5
30118echo "${ECHO_T}yes" >&6
30119 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30120echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30121 cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127#define __Point__ 1
30128#include <AppKit/NSEvent.h>
30129#include <CoreFoundation/CoreFoundation.h>
30130
30131int
30132main ()
30133{
30134
30135 ;
30136 return 0;
30137}
30138_ACEOF
30139rm -f conftest.$ac_objext
30140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30141 (eval $ac_compile) 2>conftest.er1
30142 ac_status=$?
30143 grep -v '^ *+' conftest.er1 >conftest.err
30144 rm -f conftest.er1
30145 cat conftest.err >&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
6ebeb4c7 30148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; } &&
30154 { ac_try='test -s conftest.$ac_objext'
30155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156 (eval $ac_try) 2>&5
30157 ac_status=$?
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); }; }; then
30160 echo "$as_me:$LINENO: result: yes" >&5
30161echo "${ECHO_T}yes" >&6
30162 cat >>confdefs.h <<\_ACEOF
30163#define __Point__ 1
30164_ACEOF
30165
30166
30167else
30168 echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171{ { echo "$as_me:$LINENO: error: no
30172See \`config.log' for more details." >&5
30173echo "$as_me: error: no
30174See \`config.log' for more details." >&2;}
30175 { (exit 1); exit 1; }; }
30176
30177fi
30178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30179
30180fi
30181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30182 ac_ext=c
30183ac_cpp='$CPP $CPPFLAGS'
30184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30186ac_compiler_gnu=$ac_cv_c_compiler_gnu
30187
30188fi
30189
a848cd7e 30190if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30191 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30192 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30193
a848cd7e 30194 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30195
30196 # Extract the first word of "Rez", so it can be a program name with args.
30197set dummy Rez; ac_word=$2
30198echo "$as_me:$LINENO: checking for $ac_word" >&5
30199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30200if test "${ac_cv_prog_RESCOMP+set}" = set; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202else
30203 if test -n "$RESCOMP"; then
30204 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30205else
30206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30207for as_dir in $PATH
30208do
30209 IFS=$as_save_IFS
30210 test -z "$as_dir" && as_dir=.
30211 for ac_exec_ext in '' $ac_executable_extensions; do
30212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30213 ac_cv_prog_RESCOMP="Rez"
30214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30215 break 2
30216 fi
30217done
30218done
30219
30220 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30221fi
30222fi
30223RESCOMP=$ac_cv_prog_RESCOMP
30224if test -n "$RESCOMP"; then
30225 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30226echo "${ECHO_T}$RESCOMP" >&6
30227else
30228 echo "$as_me:$LINENO: result: no" >&5
30229echo "${ECHO_T}no" >&6
30230fi
30231
30232 # Extract the first word of "DeRez", so it can be a program name with args.
30233set dummy DeRez; ac_word=$2
30234echo "$as_me:$LINENO: checking for $ac_word" >&5
30235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30236if test "${ac_cv_prog_DEREZ+set}" = set; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30238else
30239 if test -n "$DEREZ"; then
30240 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30241else
30242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243for as_dir in $PATH
30244do
30245 IFS=$as_save_IFS
30246 test -z "$as_dir" && as_dir=.
30247 for ac_exec_ext in '' $ac_executable_extensions; do
30248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30249 ac_cv_prog_DEREZ="DeRez"
30250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30251 break 2
30252 fi
30253done
30254done
30255
30256 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30257fi
30258fi
30259DEREZ=$ac_cv_prog_DEREZ
30260if test -n "$DEREZ"; then
30261 echo "$as_me:$LINENO: result: $DEREZ" >&5
30262echo "${ECHO_T}$DEREZ" >&6
30263else
30264 echo "$as_me:$LINENO: result: no" >&5
30265echo "${ECHO_T}no" >&6
30266fi
30267
30268 # Extract the first word of "SetFile", so it can be a program name with args.
30269set dummy SetFile; ac_word=$2
30270echo "$as_me:$LINENO: checking for $ac_word" >&5
30271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30272if test "${ac_cv_prog_SETFILE+set}" = set; then
30273 echo $ECHO_N "(cached) $ECHO_C" >&6
30274else
30275 if test -n "$SETFILE"; then
30276 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30277else
30278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30279for as_dir in $PATH
30280do
30281 IFS=$as_save_IFS
30282 test -z "$as_dir" && as_dir=.
30283 for ac_exec_ext in '' $ac_executable_extensions; do
30284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30285 ac_cv_prog_SETFILE="SetFile"
30286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30287 break 2
30288 fi
30289done
30290done
30291
30292 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30293fi
30294fi
30295SETFILE=$ac_cv_prog_SETFILE
30296if test -n "$SETFILE"; then
30297 echo "$as_me:$LINENO: result: $SETFILE" >&5
30298echo "${ECHO_T}$SETFILE" >&6
30299else
30300 echo "$as_me:$LINENO: result: no" >&5
30301echo "${ECHO_T}no" >&6
30302fi
30303
30304
30305 MACSETFILE="\$(SETFILE)"
30306
30307 if test "$wxUSE_MAC" = 1; then
1a79f136 30308 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30309
1a79f136 30310 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30311 else
30312 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30313 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30314 fi
30315else
ffa0583f
RL
30316 MACSETFILE="@true"
30317 MACRESWXCONFIG="@true"
a848cd7e
SC
30318
30319 if test "$wxUSE_PM" = 1; then
30320 MACRESCOMP="emxbind -ep"
30321 else
ffa0583f 30322 MACRESCOMP="@true"
a848cd7e
SC
30323 fi
30324fi
30325
30326
30327
30328echo "$as_me:$LINENO: checking for mode_t" >&5
30329echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30330if test "${ac_cv_type_mode_t+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30332else
30333 cat >conftest.$ac_ext <<_ACEOF
30334/* confdefs.h. */
30335_ACEOF
30336cat confdefs.h >>conftest.$ac_ext
30337cat >>conftest.$ac_ext <<_ACEOF
30338/* end confdefs.h. */
30339$ac_includes_default
30340int
30341main ()
30342{
30343if ((mode_t *) 0)
30344 return 0;
30345if (sizeof (mode_t))
30346 return 0;
30347 ;
30348 return 0;
30349}
30350_ACEOF
30351rm -f conftest.$ac_objext
30352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30353 (eval $ac_compile) 2>conftest.er1
a848cd7e 30354 ac_status=$?
ac1cb8d3
VS
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
a848cd7e
SC
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } &&
6ebeb4c7 30360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_cv_type_mode_t=yes
30373else
30374 echo "$as_me: failed program was:" >&5
30375sed 's/^/| /' conftest.$ac_ext >&5
30376
30377ac_cv_type_mode_t=no
30378fi
ac1cb8d3 30379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30380fi
30381echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30382echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30383if test $ac_cv_type_mode_t = yes; then
30384 :
30385else
30386
30387cat >>confdefs.h <<_ACEOF
30388#define mode_t int
30389_ACEOF
30390
30391fi
30392
30393echo "$as_me:$LINENO: checking for off_t" >&5
30394echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30395if test "${ac_cv_type_off_t+set}" = set; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397else
30398 cat >conftest.$ac_ext <<_ACEOF
30399/* confdefs.h. */
30400_ACEOF
30401cat confdefs.h >>conftest.$ac_ext
30402cat >>conftest.$ac_ext <<_ACEOF
30403/* end confdefs.h. */
30404$ac_includes_default
30405int
30406main ()
30407{
30408if ((off_t *) 0)
30409 return 0;
30410if (sizeof (off_t))
30411 return 0;
30412 ;
30413 return 0;
30414}
30415_ACEOF
30416rm -f conftest.$ac_objext
30417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30418 (eval $ac_compile) 2>conftest.er1
a848cd7e 30419 ac_status=$?
ac1cb8d3
VS
30420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
a848cd7e
SC
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } &&
6ebeb4c7 30425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30428 ac_status=$?
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; }; then
30437 ac_cv_type_off_t=yes
30438else
30439 echo "$as_me: failed program was:" >&5
30440sed 's/^/| /' conftest.$ac_ext >&5
30441
30442ac_cv_type_off_t=no
30443fi
ac1cb8d3 30444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30445fi
30446echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30447echo "${ECHO_T}$ac_cv_type_off_t" >&6
30448if test $ac_cv_type_off_t = yes; then
30449 :
30450else
30451
30452cat >>confdefs.h <<_ACEOF
30453#define off_t long
30454_ACEOF
30455
30456fi
30457
30458echo "$as_me:$LINENO: checking for pid_t" >&5
30459echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30460if test "${ac_cv_type_pid_t+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
30463 cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469$ac_includes_default
30470int
30471main ()
30472{
30473if ((pid_t *) 0)
30474 return 0;
30475if (sizeof (pid_t))
30476 return 0;
30477 ;
30478 return 0;
30479}
30480_ACEOF
30481rm -f conftest.$ac_objext
30482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30483 (eval $ac_compile) 2>conftest.er1
a848cd7e 30484 ac_status=$?
ac1cb8d3
VS
30485 grep -v '^ *+' conftest.er1 >conftest.err
30486 rm -f conftest.er1
30487 cat conftest.err >&5
a848cd7e
SC
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } &&
6ebeb4c7 30490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492 (eval $ac_try) 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; }; then
30502 ac_cv_type_pid_t=yes
30503else
30504 echo "$as_me: failed program was:" >&5
30505sed 's/^/| /' conftest.$ac_ext >&5
30506
30507ac_cv_type_pid_t=no
30508fi
ac1cb8d3 30509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30510fi
30511echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30512echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30513if test $ac_cv_type_pid_t = yes; then
30514 :
30515else
30516
30517cat >>confdefs.h <<_ACEOF
30518#define pid_t int
30519_ACEOF
30520
30521fi
30522
30523echo "$as_me:$LINENO: checking for size_t" >&5
30524echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30525if test "${ac_cv_type_size_t+set}" = set; then
30526 echo $ECHO_N "(cached) $ECHO_C" >&6
30527else
30528 cat >conftest.$ac_ext <<_ACEOF
30529/* confdefs.h. */
30530_ACEOF
30531cat confdefs.h >>conftest.$ac_ext
30532cat >>conftest.$ac_ext <<_ACEOF
30533/* end confdefs.h. */
30534$ac_includes_default
30535int
30536main ()
30537{
30538if ((size_t *) 0)
30539 return 0;
30540if (sizeof (size_t))
30541 return 0;
30542 ;
30543 return 0;
30544}
30545_ACEOF
30546rm -f conftest.$ac_objext
30547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30548 (eval $ac_compile) 2>conftest.er1
a848cd7e 30549 ac_status=$?
ac1cb8d3
VS
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
a848cd7e
SC
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
6ebeb4c7 30555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557 (eval $ac_try) 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; } &&
30561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30563 (eval $ac_try) 2>&5
30564 ac_status=$?
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); }; }; then
30567 ac_cv_type_size_t=yes
30568else
30569 echo "$as_me: failed program was:" >&5
30570sed 's/^/| /' conftest.$ac_ext >&5
30571
30572ac_cv_type_size_t=no
30573fi
ac1cb8d3 30574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30575fi
30576echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30577echo "${ECHO_T}$ac_cv_type_size_t" >&6
30578if test $ac_cv_type_size_t = yes; then
30579 :
30580else
30581
30582cat >>confdefs.h <<_ACEOF
30583#define size_t unsigned
30584_ACEOF
30585
30586fi
30587
30588echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30589echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30590if test "${ac_cv_type_uid_t+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
30599#include <sys/types.h>
30600
30601_ACEOF
30602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30603 $EGREP "uid_t" >/dev/null 2>&1; then
30604 ac_cv_type_uid_t=yes
30605else
30606 ac_cv_type_uid_t=no
30607fi
30608rm -f conftest*
30609
30610fi
30611echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30612echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30613if test $ac_cv_type_uid_t = no; then
30614
30615cat >>confdefs.h <<\_ACEOF
30616#define uid_t int
30617_ACEOF
30618
30619
30620cat >>confdefs.h <<\_ACEOF
30621#define gid_t int
30622_ACEOF
30623
30624fi
30625
30626
d51253e8
RL
30627echo "$as_me:$LINENO: checking for ssize_t" >&5
30628echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30629if test "${ac_cv_type_ssize_t+set}" = set; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30631else
30632 cat >conftest.$ac_ext <<_ACEOF
30633/* confdefs.h. */
30634_ACEOF
30635cat confdefs.h >>conftest.$ac_ext
30636cat >>conftest.$ac_ext <<_ACEOF
30637/* end confdefs.h. */
30638$ac_includes_default
30639int
30640main ()
30641{
30642if ((ssize_t *) 0)
30643 return 0;
30644if (sizeof (ssize_t))
30645 return 0;
30646 ;
30647 return 0;
30648}
30649_ACEOF
30650rm -f conftest.$ac_objext
30651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30652 (eval $ac_compile) 2>conftest.er1
30653 ac_status=$?
30654 grep -v '^ *+' conftest.er1 >conftest.err
30655 rm -f conftest.er1
30656 cat conftest.err >&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); } &&
6ebeb4c7 30659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; } &&
30665 { ac_try='test -s conftest.$ac_objext'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; }; then
30671 ac_cv_type_ssize_t=yes
30672else
30673 echo "$as_me: failed program was:" >&5
30674sed 's/^/| /' conftest.$ac_ext >&5
30675
30676ac_cv_type_ssize_t=no
30677fi
30678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30679fi
30680echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30681echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30682if test $ac_cv_type_ssize_t = yes; then
30683
30684cat >>confdefs.h <<_ACEOF
30685#define HAVE_SSIZE_T 1
30686_ACEOF
30687
30688
30689fi
30690
30691
a848cd7e
SC
30692
30693
30694ac_ext=cc
30695ac_cpp='$CXXCPP $CPPFLAGS'
30696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30699
30700echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30701echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30702if test "${wx_cv_size_t_is_uint+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705
30706 cat >conftest.$ac_ext <<_ACEOF
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
30712#include <stddef.h>
30713int
30714main ()
30715{
30716
30717 return 0; }
30718
30719 struct Foo { void foo(size_t); void foo(unsigned int); };
30720
30721 int bar() {
30722
30723 ;
30724 return 0;
30725}
30726_ACEOF
30727rm -f conftest.$ac_objext
30728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30729 (eval $ac_compile) 2>conftest.er1
a848cd7e 30730 ac_status=$?
ac1cb8d3
VS
30731 grep -v '^ *+' conftest.er1 >conftest.err
30732 rm -f conftest.er1
30733 cat conftest.err >&5
a848cd7e
SC
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); } &&
6ebeb4c7 30736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30738 (eval $ac_try) 2>&5
30739 ac_status=$?
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; } &&
30742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
30748 wx_cv_size_t_is_uint=no
30749else
30750 echo "$as_me: failed program was:" >&5
30751sed 's/^/| /' conftest.$ac_ext >&5
30752
30753wx_cv_size_t_is_uint=yes
30754
30755fi
ac1cb8d3 30756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30757
30758
30759fi
30760echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30761echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30762
30763if test "$wx_cv_size_t_is_uint" = "yes"; then
30764 cat >>confdefs.h <<\_ACEOF
30765#define wxSIZE_T_IS_UINT 1
30766_ACEOF
30767
30768else
30769 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30770echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30771if test "${wx_cv_size_t_is_ulong+set}" = set; then
30772 echo $ECHO_N "(cached) $ECHO_C" >&6
30773else
30774 cat >conftest.$ac_ext <<_ACEOF
30775/* confdefs.h. */
30776_ACEOF
30777cat confdefs.h >>conftest.$ac_ext
30778cat >>conftest.$ac_ext <<_ACEOF
30779/* end confdefs.h. */
30780#include <stddef.h>
30781int
30782main ()
30783{
30784
30785 return 0; }
30786
30787 struct Foo { void foo(size_t); void foo(unsigned long); };
30788
30789 int bar() {
30790
30791 ;
30792 return 0;
30793}
30794_ACEOF
30795rm -f conftest.$ac_objext
30796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30797 (eval $ac_compile) 2>conftest.er1
a848cd7e 30798 ac_status=$?
ac1cb8d3
VS
30799 grep -v '^ *+' conftest.er1 >conftest.err
30800 rm -f conftest.er1
30801 cat conftest.err >&5
a848cd7e
SC
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); } &&
6ebeb4c7 30804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806 (eval $ac_try) 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; } &&
30810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; }; then
30816 wx_cv_size_t_is_ulong=no
30817else
30818 echo "$as_me: failed program was:" >&5
30819sed 's/^/| /' conftest.$ac_ext >&5
30820
30821wx_cv_size_t_is_ulong=yes
30822
30823fi
ac1cb8d3 30824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30825
30826fi
30827echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30828echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30829
30830 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30831 cat >>confdefs.h <<\_ACEOF
30832#define wxSIZE_T_IS_ULONG 1
30833_ACEOF
30834
30835 fi
30836fi
30837
30838ac_ext=c
30839ac_cpp='$CPP $CPPFLAGS'
30840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842ac_compiler_gnu=$ac_cv_c_compiler_gnu
30843
30844
30845
30846echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30847echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30848if test "${wx_cv_struct_pw_gecos+set}" = set; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850else
30851
30852 cat >conftest.$ac_ext <<_ACEOF
30853/* confdefs.h. */
30854_ACEOF
30855cat confdefs.h >>conftest.$ac_ext
30856cat >>conftest.$ac_ext <<_ACEOF
30857/* end confdefs.h. */
30858#include <pwd.h>
30859int
30860main ()
30861{
30862
30863 char *p;
30864 struct passwd *pw;
30865 p = pw->pw_gecos;
30866
30867 ;
30868 return 0;
30869}
30870_ACEOF
30871rm -f conftest.$ac_objext
30872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30873 (eval $ac_compile) 2>conftest.er1
a848cd7e 30874 ac_status=$?
ac1cb8d3
VS
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
a848cd7e
SC
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } &&
6ebeb4c7 30880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; } &&
30886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
30892
30893 wx_cv_struct_pw_gecos=yes
30894
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899
30900 wx_cv_struct_pw_gecos=no
30901
30902
30903fi
ac1cb8d3 30904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30905
30906
30907fi
30908echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30909echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30910
30911if test "$wx_cv_struct_pw_gecos" = "yes"; then
30912 cat >>confdefs.h <<\_ACEOF
30913#define HAVE_PW_GECOS 1
30914_ACEOF
30915
30916fi
30917
30918
47a7e797 30919if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30920 cat >>confdefs.h <<\_ACEOF
30921#define wxUSE_WCHAR_T 1
30922_ACEOF
30923
30924
30925 WCSLEN_FOUND=0
30926 WCHAR_LINK=
30927
30928for ac_func in wcslen
30929do
30930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30931echo "$as_me:$LINENO: checking for $ac_func" >&5
30932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30933if eval "test \"\${$as_ac_var+set}\" = set"; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30935else
30936 cat >conftest.$ac_ext <<_ACEOF
30937/* confdefs.h. */
30938_ACEOF
30939cat confdefs.h >>conftest.$ac_ext
30940cat >>conftest.$ac_ext <<_ACEOF
30941/* end confdefs.h. */
ac1cb8d3
VS
30942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30944#define $ac_func innocuous_$ac_func
30945
a848cd7e
SC
30946/* System header to define __stub macros and hopefully few prototypes,
30947 which can conflict with char $ac_func (); below.
30948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30950
a848cd7e
SC
30951#ifdef __STDC__
30952# include <limits.h>
30953#else
30954# include <assert.h>
30955#endif
ac1cb8d3
VS
30956
30957#undef $ac_func
30958
a848cd7e
SC
30959/* Override any gcc2 internal prototype to avoid an error. */
30960#ifdef __cplusplus
30961extern "C"
30962{
30963#endif
30964/* We use char because int might match the return type of a gcc2
30965 builtin and then its argument prototype would still apply. */
30966char $ac_func ();
30967/* The GNU C library defines this for functions which it implements
30968 to always fail with ENOSYS. Some functions are actually named
30969 something starting with __ and the normal name is an alias. */
30970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30971choke me
30972#else
30973char (*f) () = $ac_func;
30974#endif
30975#ifdef __cplusplus
30976}
30977#endif
30978
30979int
30980main ()
30981{
30982return f != $ac_func;
30983 ;
30984 return 0;
30985}
30986_ACEOF
30987rm -f conftest.$ac_objext conftest$ac_exeext
30988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30989 (eval $ac_link) 2>conftest.er1
a848cd7e 30990 ac_status=$?
ac1cb8d3
VS
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
a848cd7e
SC
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
6ebeb4c7 30996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; } &&
31002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; }; then
31008 eval "$as_ac_var=yes"
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013eval "$as_ac_var=no"
31014fi
ac1cb8d3
VS
31015rm -f conftest.err conftest.$ac_objext \
31016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31017fi
31018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31020if test `eval echo '${'$as_ac_var'}'` = yes; then
31021 cat >>confdefs.h <<_ACEOF
31022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023_ACEOF
31024 WCSLEN_FOUND=1
31025fi
31026done
31027
31028
31029 if test "$WCSLEN_FOUND" = 0; then
31030 if test "$TOOLKIT" = "MSW"; then
31031 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31032echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31033if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31035else
31036 ac_check_lib_save_LIBS=$LIBS
31037LIBS="-lmsvcrt $LIBS"
31038cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044
31045/* Override any gcc2 internal prototype to avoid an error. */
31046#ifdef __cplusplus
31047extern "C"
31048#endif
31049/* We use char because int might match the return type of a gcc2
31050 builtin and then its argument prototype would still apply. */
31051char wcslen ();
31052int
31053main ()
31054{
31055wcslen ();
31056 ;
31057 return 0;
31058}
31059_ACEOF
31060rm -f conftest.$ac_objext conftest$ac_exeext
31061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31062 (eval $ac_link) 2>conftest.er1
a848cd7e 31063 ac_status=$?
ac1cb8d3
VS
31064 grep -v '^ *+' conftest.er1 >conftest.err
31065 rm -f conftest.er1
31066 cat conftest.err >&5
a848cd7e
SC
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } &&
6ebeb4c7 31069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071 (eval $ac_try) 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; } &&
31075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077 (eval $ac_try) 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; }; then
31081 ac_cv_lib_msvcrt_wcslen=yes
31082else
31083 echo "$as_me: failed program was:" >&5
31084sed 's/^/| /' conftest.$ac_ext >&5
31085
31086ac_cv_lib_msvcrt_wcslen=no
31087fi
ac1cb8d3
VS
31088rm -f conftest.err conftest.$ac_objext \
31089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31090LIBS=$ac_check_lib_save_LIBS
31091fi
31092echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31093echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31094if test $ac_cv_lib_msvcrt_wcslen = yes; then
31095 WCHAR_OK=1
31096fi
31097
31098 else
31099 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31100echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31101if test "${ac_cv_lib_w_wcslen+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104 ac_check_lib_save_LIBS=$LIBS
31105LIBS="-lw $LIBS"
31106cat >conftest.$ac_ext <<_ACEOF
31107/* confdefs.h. */
31108_ACEOF
31109cat confdefs.h >>conftest.$ac_ext
31110cat >>conftest.$ac_ext <<_ACEOF
31111/* end confdefs.h. */
31112
31113/* Override any gcc2 internal prototype to avoid an error. */
31114#ifdef __cplusplus
31115extern "C"
31116#endif
31117/* We use char because int might match the return type of a gcc2
31118 builtin and then its argument prototype would still apply. */
31119char wcslen ();
31120int
31121main ()
31122{
31123wcslen ();
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext conftest$ac_exeext
31129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31130 (eval $ac_link) 2>conftest.er1
a848cd7e 31131 ac_status=$?
ac1cb8d3
VS
31132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
a848cd7e
SC
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
6ebeb4c7 31137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139 (eval $ac_try) 2>&5
31140 ac_status=$?
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; } &&
31143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145 (eval $ac_try) 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; }; then
31149 ac_cv_lib_w_wcslen=yes
31150else
31151 echo "$as_me: failed program was:" >&5
31152sed 's/^/| /' conftest.$ac_ext >&5
31153
31154ac_cv_lib_w_wcslen=no
31155fi
ac1cb8d3
VS
31156rm -f conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31158LIBS=$ac_check_lib_save_LIBS
31159fi
31160echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31161echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31162if test $ac_cv_lib_w_wcslen = yes; then
31163
31164 WCHAR_LINK=" -lw"
31165 WCSLEN_FOUND=1
31166
31167fi
31168
31169 fi
31170 fi
31171
31172 if test "$WCSLEN_FOUND" = 1; then
31173 cat >>confdefs.h <<\_ACEOF
31174#define HAVE_WCSLEN 1
31175_ACEOF
31176
31177 fi
31178
efdf6afe 31179 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31180 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31181 fi
31182
efdf6afe
VZ
31183 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31184echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31185if test "${ac_cv_type_mbstate_t+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187else
31188 cat >conftest.$ac_ext <<_ACEOF
31189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
31194#include <wchar.h>
31195
31196int
31197main ()
31198{
31199if ((mbstate_t *) 0)
31200 return 0;
31201if (sizeof (mbstate_t))
31202 return 0;
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext
31208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31209 (eval $ac_compile) 2>conftest.er1
31210 ac_status=$?
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
31216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218 (eval $ac_try) 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; } &&
31222 { ac_try='test -s conftest.$ac_objext'
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 ac_cv_type_mbstate_t=yes
31229else
31230 echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
31233ac_cv_type_mbstate_t=no
31234fi
31235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31236fi
31237echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31238echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31239if test $ac_cv_type_mbstate_t = yes; then
31240
31241cat >>confdefs.h <<_ACEOF
31242#define HAVE_MBSTATE_T 1
31243_ACEOF
31244
a848cd7e
SC
31245
31246for ac_func in wcsrtombs
31247do
31248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31249echo "$as_me:$LINENO: checking for $ac_func" >&5
31250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31251if eval "test \"\${$as_ac_var+set}\" = set"; then
31252 echo $ECHO_N "(cached) $ECHO_C" >&6
31253else
31254 cat >conftest.$ac_ext <<_ACEOF
31255/* confdefs.h. */
31256_ACEOF
31257cat confdefs.h >>conftest.$ac_ext
31258cat >>conftest.$ac_ext <<_ACEOF
31259/* end confdefs.h. */
ac1cb8d3
VS
31260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31262#define $ac_func innocuous_$ac_func
31263
a848cd7e
SC
31264/* System header to define __stub macros and hopefully few prototypes,
31265 which can conflict with char $ac_func (); below.
31266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31268
a848cd7e
SC
31269#ifdef __STDC__
31270# include <limits.h>
31271#else
31272# include <assert.h>
31273#endif
ac1cb8d3
VS
31274
31275#undef $ac_func
31276
a848cd7e
SC
31277/* Override any gcc2 internal prototype to avoid an error. */
31278#ifdef __cplusplus
31279extern "C"
31280{
31281#endif
31282/* We use char because int might match the return type of a gcc2
31283 builtin and then its argument prototype would still apply. */
31284char $ac_func ();
31285/* The GNU C library defines this for functions which it implements
31286 to always fail with ENOSYS. Some functions are actually named
31287 something starting with __ and the normal name is an alias. */
31288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31289choke me
31290#else
31291char (*f) () = $ac_func;
31292#endif
31293#ifdef __cplusplus
31294}
31295#endif
31296
31297int
31298main ()
31299{
31300return f != $ac_func;
31301 ;
31302 return 0;
31303}
31304_ACEOF
31305rm -f conftest.$ac_objext conftest$ac_exeext
31306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31307 (eval $ac_link) 2>conftest.er1
a848cd7e 31308 ac_status=$?
ac1cb8d3
VS
31309 grep -v '^ *+' conftest.er1 >conftest.err
31310 rm -f conftest.er1
31311 cat conftest.err >&5
a848cd7e
SC
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
6ebeb4c7 31314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
31326 eval "$as_ac_var=yes"
31327else
31328 echo "$as_me: failed program was:" >&5
31329sed 's/^/| /' conftest.$ac_ext >&5
31330
31331eval "$as_ac_var=no"
31332fi
ac1cb8d3
VS
31333rm -f conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31335fi
31336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31338if test `eval echo '${'$as_ac_var'}'` = yes; then
31339 cat >>confdefs.h <<_ACEOF
31340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31341_ACEOF
31342
31343fi
31344done
31345
efdf6afe
VZ
31346fi
31347
a848cd7e
SC
31348else
31349 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31350echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31351fi
31352
31353
31354
31355ac_ext=cc
31356ac_cpp='$CXXCPP $CPPFLAGS'
31357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31360
31361
31362
4a767dd5
VZ
31363
31364for ac_func in snprintf vsnprintf
a848cd7e
SC
31365do
31366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31367echo "$as_me:$LINENO: checking for $ac_func" >&5
31368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31369if eval "test \"\${$as_ac_var+set}\" = set"; then
31370 echo $ECHO_N "(cached) $ECHO_C" >&6
31371else
31372 cat >conftest.$ac_ext <<_ACEOF
31373/* confdefs.h. */
31374_ACEOF
31375cat confdefs.h >>conftest.$ac_ext
31376cat >>conftest.$ac_ext <<_ACEOF
31377/* end confdefs.h. */
ac1cb8d3
VS
31378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31380#define $ac_func innocuous_$ac_func
31381
a848cd7e
SC
31382/* System header to define __stub macros and hopefully few prototypes,
31383 which can conflict with char $ac_func (); below.
31384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31385 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31386
a848cd7e
SC
31387#ifdef __STDC__
31388# include <limits.h>
31389#else
31390# include <assert.h>
31391#endif
ac1cb8d3
VS
31392
31393#undef $ac_func
31394
a848cd7e
SC
31395/* Override any gcc2 internal prototype to avoid an error. */
31396#ifdef __cplusplus
31397extern "C"
31398{
31399#endif
31400/* We use char because int might match the return type of a gcc2
31401 builtin and then its argument prototype would still apply. */
31402char $ac_func ();
31403/* The GNU C library defines this for functions which it implements
31404 to always fail with ENOSYS. Some functions are actually named
31405 something starting with __ and the normal name is an alias. */
31406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31407choke me
31408#else
31409char (*f) () = $ac_func;
31410#endif
31411#ifdef __cplusplus
31412}
31413#endif
31414
31415int
31416main ()
31417{
31418return f != $ac_func;
31419 ;
31420 return 0;
31421}
31422_ACEOF
31423rm -f conftest.$ac_objext conftest$ac_exeext
31424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31425 (eval $ac_link) 2>conftest.er1
a848cd7e 31426 ac_status=$?
ac1cb8d3
VS
31427 grep -v '^ *+' conftest.er1 >conftest.err
31428 rm -f conftest.er1
31429 cat conftest.err >&5
a848cd7e
SC
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
6ebeb4c7 31432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440 (eval $ac_try) 2>&5
31441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; }; then
31444 eval "$as_ac_var=yes"
31445else
31446 echo "$as_me: failed program was:" >&5
31447sed 's/^/| /' conftest.$ac_ext >&5
31448
31449eval "$as_ac_var=no"
31450fi
ac1cb8d3
VS
31451rm -f conftest.err conftest.$ac_objext \
31452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31453fi
31454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31456if test `eval echo '${'$as_ac_var'}'` = yes; then
31457 cat >>confdefs.h <<_ACEOF
31458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31459_ACEOF
31460
31461fi
31462done
31463
31464
31465if test "$ac_cv_func_vsnprintf" = "yes"; then
31466 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31467echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31468if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31470else
31471
efdf6afe 31472 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478
31479 #include <stdio.h>
31480 #include <stdarg.h>
efdf6afe
VZ
31481 #ifdef __MSL__
31482 #if __MSL__ >= 0x6000
31483 namespace std {}
31484 using namespace std;
31485 #endif
31486 #endif
a848cd7e
SC
31487
31488int
31489main ()
31490{
31491
31492 char *buf;
31493 va_list ap;
efdf6afe
VZ
31494 const char *fmt = "%s";
31495 vsnprintf(buf, 10u, fmt, ap);
c122b164
DE
31496
31497 ;
31498 return 0;
31499}
31500_ACEOF
31501rm -f conftest.$ac_objext
31502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31503 (eval $ac_compile) 2>conftest.er1
31504 ac_status=$?
31505 grep -v '^ *+' conftest.er1 >conftest.err
31506 rm -f conftest.er1
31507 cat conftest.err >&5
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } &&
6ebeb4c7 31510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31512 (eval $ac_try) 2>&5
31513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; } &&
31516 { ac_try='test -s conftest.$ac_objext'
31517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31518 (eval $ac_try) 2>&5
31519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; }; then
31522 wx_cv_func_vsnprintf_decl=yes
31523else
31524 echo "$as_me: failed program was:" >&5
31525sed 's/^/| /' conftest.$ac_ext >&5
31526
a848cd7e
SC
31527wx_cv_func_vsnprintf_decl=no
31528
31529fi
ac1cb8d3 31530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31531
31532
31533fi
31534echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31535echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31536
31537 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31538 cat >>confdefs.h <<\_ACEOF
31539#define HAVE_VSNPRINTF_DECL 1
31540_ACEOF
31541
31542 fi
31543fi
31544
4a767dd5
VZ
31545if test "$ac_cv_func_snprintf" = "yes"; then
31546 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
31547echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
31548if test "${wx_cv_func_snprintf_decl+set}" = set; then
31549 echo $ECHO_N "(cached) $ECHO_C" >&6
31550else
31551
31552 cat >conftest.$ac_ext <<_ACEOF
31553/* confdefs.h. */
31554_ACEOF
31555cat confdefs.h >>conftest.$ac_ext
31556cat >>conftest.$ac_ext <<_ACEOF
31557/* end confdefs.h. */
31558
31559 #include <stdio.h>
31560 #include <stdarg.h>
31561 #ifdef __MSL__
31562 #if __MSL__ >= 0x6000
31563 namespace std {}
31564 using namespace std;
31565 #endif
31566 #endif
31567
31568int
31569main ()
31570{
31571
31572 char *buf;
31573 const char *fmt = "%s";
31574 snprintf(buf, 10u, fmt, "wx");
31575
31576 ;
31577 return 0;
31578}
31579_ACEOF
31580rm -f conftest.$ac_objext
31581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31582 (eval $ac_compile) 2>conftest.er1
31583 ac_status=$?
31584 grep -v '^ *+' conftest.er1 >conftest.err
31585 rm -f conftest.er1
31586 cat conftest.err >&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); } &&
31589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591 (eval $ac_try) 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest.$ac_objext'
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; }; then
31601 wx_cv_func_snprintf_decl=yes
31602else
31603 echo "$as_me: failed program was:" >&5
31604sed 's/^/| /' conftest.$ac_ext >&5
31605
31606wx_cv_func_snprintf_decl=no
31607
31608fi
31609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31610
31611
31612fi
31613echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
31614echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
31615
31616 if test "$wx_cv_func_snprintf_decl" = "yes"; then
31617 cat >>confdefs.h <<\_ACEOF
31618#define HAVE_SNPRINTF_DECL 1
31619_ACEOF
31620
31621 fi
31622fi
31623
a848cd7e
SC
31624if test "$wxUSE_UNICODE" = yes; then
31625
31626
31627
fbe47c7b
VS
31628
31629
31630
31631for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31632do
31633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31634echo "$as_me:$LINENO: checking for $ac_func" >&5
31635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31636if eval "test \"\${$as_ac_var+set}\" = set"; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638else
31639 cat >conftest.$ac_ext <<_ACEOF
31640/* confdefs.h. */
31641_ACEOF
31642cat confdefs.h >>conftest.$ac_ext
31643cat >>conftest.$ac_ext <<_ACEOF
31644/* end confdefs.h. */
ac1cb8d3
VS
31645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31647#define $ac_func innocuous_$ac_func
31648
a848cd7e
SC
31649/* System header to define __stub macros and hopefully few prototypes,
31650 which can conflict with char $ac_func (); below.
31651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31652 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31653
a848cd7e
SC
31654#ifdef __STDC__
31655# include <limits.h>
31656#else
31657# include <assert.h>
31658#endif
ac1cb8d3
VS
31659
31660#undef $ac_func
31661
a848cd7e
SC
31662/* Override any gcc2 internal prototype to avoid an error. */
31663#ifdef __cplusplus
31664extern "C"
31665{
31666#endif
31667/* We use char because int might match the return type of a gcc2
31668 builtin and then its argument prototype would still apply. */
31669char $ac_func ();
31670/* The GNU C library defines this for functions which it implements
31671 to always fail with ENOSYS. Some functions are actually named
31672 something starting with __ and the normal name is an alias. */
31673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31674choke me
31675#else
31676char (*f) () = $ac_func;
31677#endif
31678#ifdef __cplusplus
31679}
31680#endif
31681
31682int
31683main ()
31684{
31685return f != $ac_func;
31686 ;
31687 return 0;
31688}
31689_ACEOF
31690rm -f conftest.$ac_objext conftest$ac_exeext
31691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31692 (eval $ac_link) 2>conftest.er1
a848cd7e 31693 ac_status=$?
ac1cb8d3
VS
31694 grep -v '^ *+' conftest.er1 >conftest.err
31695 rm -f conftest.er1
31696 cat conftest.err >&5
a848cd7e
SC
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
6ebeb4c7 31699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31701 (eval $ac_try) 2>&5
31702 ac_status=$?
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; } &&
31705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707 (eval $ac_try) 2>&5
31708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; }; then
31711 eval "$as_ac_var=yes"
31712else
31713 echo "$as_me: failed program was:" >&5
31714sed 's/^/| /' conftest.$ac_ext >&5
31715
31716eval "$as_ac_var=no"
31717fi
ac1cb8d3
VS
31718rm -f conftest.err conftest.$ac_objext \
31719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31720fi
31721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31723if test `eval echo '${'$as_ac_var'}'` = yes; then
31724 cat >>confdefs.h <<_ACEOF
31725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31726_ACEOF
31727
31728fi
31729done
31730
31731
31732 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31733echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31734 cat >conftest.$ac_ext <<_ACEOF
31735/* confdefs.h. */
31736_ACEOF
31737cat confdefs.h >>conftest.$ac_ext
31738cat >>conftest.$ac_ext <<_ACEOF
31739/* end confdefs.h. */
31740#include <wchar.h>
31741int
31742main ()
31743{
31744&_vsnwprintf;
31745 ;
31746 return 0;
31747}
31748_ACEOF
31749rm -f conftest.$ac_objext
31750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31751 (eval $ac_compile) 2>conftest.er1
a848cd7e 31752 ac_status=$?
ac1cb8d3
VS
31753 grep -v '^ *+' conftest.er1 >conftest.err
31754 rm -f conftest.er1
31755 cat conftest.err >&5
a848cd7e
SC
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } &&
6ebeb4c7 31758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; } &&
31764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770 echo "$as_me:$LINENO: result: yes" >&5
31771echo "${ECHO_T}yes" >&6
31772 cat >>confdefs.h <<\_ACEOF
31773#define HAVE__VSNWPRINTF 1
31774_ACEOF
31775
31776else
31777 echo "$as_me: failed program was:" >&5
31778sed 's/^/| /' conftest.$ac_ext >&5
31779
31780echo "$as_me:$LINENO: result: no" >&5
31781echo "${ECHO_T}no" >&6
31782fi
ac1cb8d3 31783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31784fi
31785
31786ac_ext=c
31787ac_cpp='$CPP $CPPFLAGS'
31788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31790ac_compiler_gnu=$ac_cv_c_compiler_gnu
31791
31792
6ebeb4c7
VZ
31793if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31794
31795for ac_func in fnmatch
31796do
31797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31798echo "$as_me:$LINENO: checking for $ac_func" >&5
31799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31800if eval "test \"\${$as_ac_var+set}\" = set"; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31802else
31803 cat >conftest.$ac_ext <<_ACEOF
31804/* confdefs.h. */
31805_ACEOF
31806cat confdefs.h >>conftest.$ac_ext
31807cat >>conftest.$ac_ext <<_ACEOF
31808/* end confdefs.h. */
31809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31811#define $ac_func innocuous_$ac_func
31812
31813/* System header to define __stub macros and hopefully few prototypes,
31814 which can conflict with char $ac_func (); below.
31815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816 <limits.h> exists even on freestanding compilers. */
31817
31818#ifdef __STDC__
31819# include <limits.h>
31820#else
31821# include <assert.h>
31822#endif
31823
31824#undef $ac_func
31825
31826/* Override any gcc2 internal prototype to avoid an error. */
31827#ifdef __cplusplus
31828extern "C"
31829{
31830#endif
31831/* We use char because int might match the return type of a gcc2
31832 builtin and then its argument prototype would still apply. */
31833char $ac_func ();
31834/* The GNU C library defines this for functions which it implements
31835 to always fail with ENOSYS. Some functions are actually named
31836 something starting with __ and the normal name is an alias. */
31837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31838choke me
31839#else
31840char (*f) () = $ac_func;
31841#endif
31842#ifdef __cplusplus
31843}
31844#endif
31845
31846int
31847main ()
31848{
31849return f != $ac_func;
31850 ;
31851 return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext conftest$ac_exeext
31855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31856 (eval $ac_link) 2>conftest.er1
31857 ac_status=$?
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
31863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865 (eval $ac_try) 2>&5
31866 ac_status=$?
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; } &&
31869 { ac_try='test -s conftest$ac_exeext'
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31872 ac_status=$?
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; }; then
31875 eval "$as_ac_var=yes"
31876else
31877 echo "$as_me: failed program was:" >&5
31878sed 's/^/| /' conftest.$ac_ext >&5
31879
31880eval "$as_ac_var=no"
31881fi
31882rm -f conftest.err conftest.$ac_objext \
31883 conftest$ac_exeext conftest.$ac_ext
31884fi
31885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31887if test `eval echo '${'$as_ac_var'}'` = yes; then
31888 cat >>confdefs.h <<_ACEOF
31889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31890_ACEOF
31891
31892fi
31893done
31894
31895fi
31896
31897if test "$wxUSE_FILE" = "yes"; then
31898
31899for ac_func in fsync
31900do
31901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31902echo "$as_me:$LINENO: checking for $ac_func" >&5
31903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31904if eval "test \"\${$as_ac_var+set}\" = set"; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
31907 cat >conftest.$ac_ext <<_ACEOF
31908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
31913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31915#define $ac_func innocuous_$ac_func
31916
31917/* System header to define __stub macros and hopefully few prototypes,
31918 which can conflict with char $ac_func (); below.
31919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31920 <limits.h> exists even on freestanding compilers. */
31921
31922#ifdef __STDC__
31923# include <limits.h>
31924#else
31925# include <assert.h>
31926#endif
31927
31928#undef $ac_func
31929
31930/* Override any gcc2 internal prototype to avoid an error. */
31931#ifdef __cplusplus
31932extern "C"
31933{
31934#endif
31935/* We use char because int might match the return type of a gcc2
31936 builtin and then its argument prototype would still apply. */
31937char $ac_func ();
31938/* The GNU C library defines this for functions which it implements
31939 to always fail with ENOSYS. Some functions are actually named
31940 something starting with __ and the normal name is an alias. */
31941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31942choke me
31943#else
31944char (*f) () = $ac_func;
31945#endif
31946#ifdef __cplusplus
31947}
31948#endif
31949
31950int
31951main ()
31952{
31953return f != $ac_func;
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext conftest$ac_exeext
31959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31960 (eval $ac_link) 2>conftest.er1
31961 ac_status=$?
31962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
31967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; } &&
31973 { ac_try='test -s conftest$ac_exeext'
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; }; then
31979 eval "$as_ac_var=yes"
31980else
31981 echo "$as_me: failed program was:" >&5
31982sed 's/^/| /' conftest.$ac_ext >&5
31983
31984eval "$as_ac_var=no"
31985fi
31986rm -f conftest.err conftest.$ac_objext \
31987 conftest$ac_exeext conftest.$ac_ext
31988fi
31989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31991if test `eval echo '${'$as_ac_var'}'` = yes; then
31992 cat >>confdefs.h <<_ACEOF
31993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31994_ACEOF
31995
31996fi
31997done
31998
31999fi
a848cd7e
SC
32000
32001
32002if test "$TOOLKIT" != "MSW"; then
32003
32004
32005
32006
32007ac_ext=cc
32008ac_cpp='$CXXCPP $CPPFLAGS'
32009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32012
32013
32014
32015
32016# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32017if test "${with_libiconv_prefix+set}" = set; then
32018 withval="$with_libiconv_prefix"
32019
32020 for dir in `echo "$withval" | tr : ' '`; do
32021 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32022 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32023 done
32024
32025fi;
32026
32027 echo "$as_me:$LINENO: checking for iconv" >&5
32028echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32029if test "${am_cv_func_iconv+set}" = set; then
32030 echo $ECHO_N "(cached) $ECHO_C" >&6
32031else
32032
32033 am_cv_func_iconv="no, consider installing GNU libiconv"
32034 am_cv_lib_iconv=no
32035 cat >conftest.$ac_ext <<_ACEOF
32036/* confdefs.h. */
32037_ACEOF
32038cat confdefs.h >>conftest.$ac_ext
32039cat >>conftest.$ac_ext <<_ACEOF
32040/* end confdefs.h. */
32041#include <stdlib.h>
32042#include <iconv.h>
32043int
32044main ()
32045{
32046iconv_t cd = iconv_open("","");
32047 iconv(cd,NULL,NULL,NULL,NULL);
32048 iconv_close(cd);
32049 ;
32050 return 0;
32051}
32052_ACEOF
32053rm -f conftest.$ac_objext conftest$ac_exeext
32054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32055 (eval $ac_link) 2>conftest.er1
a848cd7e 32056 ac_status=$?
ac1cb8d3
VS
32057 grep -v '^ *+' conftest.er1 >conftest.err
32058 rm -f conftest.er1
32059 cat conftest.err >&5
a848cd7e
SC
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } &&
6ebeb4c7 32062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 am_cv_func_iconv=yes
32075else
32076 echo "$as_me: failed program was:" >&5
32077sed 's/^/| /' conftest.$ac_ext >&5
32078
32079fi
ac1cb8d3
VS
32080rm -f conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32082 if test "$am_cv_func_iconv" != yes; then
32083 am_save_LIBS="$LIBS"
32084 LIBS="$LIBS -liconv"
32085 cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091#include <stdlib.h>
32092#include <iconv.h>
32093int
32094main ()
32095{
32096iconv_t cd = iconv_open("","");
32097 iconv(cd,NULL,NULL,NULL,NULL);
32098 iconv_close(cd);
32099 ;
32100 return 0;
32101}
32102_ACEOF
32103rm -f conftest.$ac_objext conftest$ac_exeext
32104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32105 (eval $ac_link) 2>conftest.er1
a848cd7e 32106 ac_status=$?
ac1cb8d3
VS
32107 grep -v '^ *+' conftest.er1 >conftest.err
32108 rm -f conftest.er1
32109 cat conftest.err >&5
a848cd7e
SC
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
6ebeb4c7 32112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; } &&
32118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
32124 am_cv_lib_iconv=yes
32125 am_cv_func_iconv=yes
32126else
32127 echo "$as_me: failed program was:" >&5
32128sed 's/^/| /' conftest.$ac_ext >&5
32129
32130fi
ac1cb8d3
VS
32131rm -f conftest.err conftest.$ac_objext \
32132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32133 LIBS="$am_save_LIBS"
32134 fi
32135
32136fi
32137echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32138echo "${ECHO_T}$am_cv_func_iconv" >&6
32139 if test "$am_cv_func_iconv" = yes; then
32140
32141cat >>confdefs.h <<\_ACEOF
32142#define HAVE_ICONV 1
32143_ACEOF
32144
32145 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32146echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32147if test "${wx_cv_func_iconv_const+set}" = set; then
32148 echo $ECHO_N "(cached) $ECHO_C" >&6
32149else
32150 cat >conftest.$ac_ext <<_ACEOF
32151/* confdefs.h. */
32152_ACEOF
32153cat confdefs.h >>conftest.$ac_ext
32154cat >>conftest.$ac_ext <<_ACEOF
32155/* end confdefs.h. */
32156
32157#include <stdlib.h>
32158#include <iconv.h>
32159extern
32160#ifdef __cplusplus
32161"C"
32162#endif
32163#if defined(__STDC__) || defined(__cplusplus)
32164size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32165#else
32166size_t iconv();
32167#endif
32168
32169int
32170main ()
32171{
32172
32173 ;
32174 return 0;
32175}
32176_ACEOF
32177rm -f conftest.$ac_objext
32178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32179 (eval $ac_compile) 2>conftest.er1
a848cd7e 32180 ac_status=$?
ac1cb8d3
VS
32181 grep -v '^ *+' conftest.er1 >conftest.err
32182 rm -f conftest.er1
32183 cat conftest.err >&5
a848cd7e
SC
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); } &&
6ebeb4c7 32186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32188 (eval $ac_try) 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32194 (eval $ac_try) 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 wx_cv_func_iconv_const="no"
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203wx_cv_func_iconv_const="yes"
32204
32205fi
ac1cb8d3 32206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32207
32208fi
32209echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32210echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32211
32212 iconv_const=
32213 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32214 iconv_const="const"
32215 fi
32216
32217
32218cat >>confdefs.h <<_ACEOF
32219#define ICONV_CONST $iconv_const
32220_ACEOF
32221
32222 fi
32223 LIBICONV=
32224 if test "$am_cv_lib_iconv" = yes; then
32225 LIBICONV="-liconv"
32226 fi
32227
32228
32229LIBS="$LIBICONV $LIBS"
32230ac_ext=c
32231ac_cpp='$CPP $CPPFLAGS'
32232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32234ac_compiler_gnu=$ac_cv_c_compiler_gnu
32235
32236
32237if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32238
32239for ac_func in sigaction
32240do
32241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32242echo "$as_me:$LINENO: checking for $ac_func" >&5
32243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32244if eval "test \"\${$as_ac_var+set}\" = set"; then
32245 echo $ECHO_N "(cached) $ECHO_C" >&6
32246else
32247 cat >conftest.$ac_ext <<_ACEOF
32248/* confdefs.h. */
32249_ACEOF
32250cat confdefs.h >>conftest.$ac_ext
32251cat >>conftest.$ac_ext <<_ACEOF
32252/* end confdefs.h. */
ac1cb8d3
VS
32253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32255#define $ac_func innocuous_$ac_func
32256
a848cd7e
SC
32257/* System header to define __stub macros and hopefully few prototypes,
32258 which can conflict with char $ac_func (); below.
32259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32261
a848cd7e
SC
32262#ifdef __STDC__
32263# include <limits.h>
32264#else
32265# include <assert.h>
32266#endif
ac1cb8d3
VS
32267
32268#undef $ac_func
32269
a848cd7e
SC
32270/* Override any gcc2 internal prototype to avoid an error. */
32271#ifdef __cplusplus
32272extern "C"
32273{
32274#endif
32275/* We use char because int might match the return type of a gcc2
32276 builtin and then its argument prototype would still apply. */
32277char $ac_func ();
32278/* The GNU C library defines this for functions which it implements
32279 to always fail with ENOSYS. Some functions are actually named
32280 something starting with __ and the normal name is an alias. */
32281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32282choke me
32283#else
32284char (*f) () = $ac_func;
32285#endif
32286#ifdef __cplusplus
32287}
32288#endif
32289
32290int
32291main ()
32292{
32293return f != $ac_func;
32294 ;
32295 return 0;
32296}
32297_ACEOF
32298rm -f conftest.$ac_objext conftest$ac_exeext
32299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32300 (eval $ac_link) 2>conftest.er1
a848cd7e 32301 ac_status=$?
ac1cb8d3
VS
32302 grep -v '^ *+' conftest.er1 >conftest.err
32303 rm -f conftest.er1
32304 cat conftest.err >&5
a848cd7e
SC
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } &&
6ebeb4c7 32307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32315 (eval $ac_try) 2>&5
32316 ac_status=$?
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; }; then
32319 eval "$as_ac_var=yes"
32320else
32321 echo "$as_me: failed program was:" >&5
32322sed 's/^/| /' conftest.$ac_ext >&5
32323
32324eval "$as_ac_var=no"
32325fi
ac1cb8d3
VS
32326rm -f conftest.err conftest.$ac_objext \
32327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32328fi
32329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32331if test `eval echo '${'$as_ac_var'}'` = yes; then
32332 cat >>confdefs.h <<_ACEOF
32333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32334_ACEOF
32335
32336fi
32337done
32338
32339
32340 if test "$ac_cv_func_sigaction" = "no"; then
32341 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32342echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32343 wxUSE_ON_FATAL_EXCEPTION=no
32344 fi
32345
32346 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32347
32348
32349 ac_ext=cc
32350ac_cpp='$CXXCPP $CPPFLAGS'
32351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32354
32355
32356 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32357echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32358if test "${wx_cv_type_sa_handler+set}" = set; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32360else
32361
32362 cat >conftest.$ac_ext <<_ACEOF
32363/* confdefs.h. */
32364_ACEOF
32365cat confdefs.h >>conftest.$ac_ext
32366cat >>conftest.$ac_ext <<_ACEOF
32367/* end confdefs.h. */
32368#include <signal.h>
32369int
32370main ()
32371{
32372
32373 extern void testSigHandler(int);
32374
32375 struct sigaction sa;
32376 sa.sa_handler = testSigHandler;
32377
32378 ;
32379 return 0;
32380}
32381_ACEOF
32382rm -f conftest.$ac_objext
32383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32384 (eval $ac_compile) 2>conftest.er1
a848cd7e 32385 ac_status=$?
ac1cb8d3
VS
32386 grep -v '^ *+' conftest.er1 >conftest.err
32387 rm -f conftest.er1
32388 cat conftest.err >&5
a848cd7e
SC
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } &&
6ebeb4c7 32391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } &&
32397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32399 (eval $ac_try) 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; }; then
32403
32404 wx_cv_type_sa_handler=int
32405
32406else
32407 echo "$as_me: failed program was:" >&5
32408sed 's/^/| /' conftest.$ac_ext >&5
32409
32410
32411 wx_cv_type_sa_handler=void
32412
32413fi
ac1cb8d3 32414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32415
32416fi
32417echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32418echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32419
32420 ac_ext=c
32421ac_cpp='$CPP $CPPFLAGS'
32422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32424ac_compiler_gnu=$ac_cv_c_compiler_gnu
32425
32426
32427 cat >>confdefs.h <<_ACEOF
32428#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32429_ACEOF
32430
32431 fi
32432fi
32433
eaff0f0d
VZ
32434if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32435
32436
32437 ac_ext=cc
32438ac_cpp='$CXXCPP $CPPFLAGS'
32439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442
32443
32444 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32445echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32446if test "${wx_cv_func_backtrace+set}" = set; then
32447 echo $ECHO_N "(cached) $ECHO_C" >&6
32448else
32449
32450 cat >conftest.$ac_ext <<_ACEOF
32451/* confdefs.h. */
32452_ACEOF
32453cat confdefs.h >>conftest.$ac_ext
32454cat >>conftest.$ac_ext <<_ACEOF
32455/* end confdefs.h. */
32456#include <execinfo.h>
32457int
32458main ()
32459{
32460
32461 void *trace[1];
32462 char **messages;
32463
32464 backtrace(trace, 1);
32465 messages = backtrace_symbols(trace, 1);
32466
32467 ;
32468 return 0;
32469}
32470_ACEOF
32471rm -f conftest.$ac_objext
32472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32473 (eval $ac_compile) 2>conftest.er1
32474 ac_status=$?
32475 grep -v '^ *+' conftest.er1 >conftest.err
32476 rm -f conftest.er1
32477 cat conftest.err >&5
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); } &&
6ebeb4c7 32480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest.$ac_objext'
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32489 ac_status=$?
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32492 wx_cv_func_backtrace=yes
32493else
32494 echo "$as_me: failed program was:" >&5
32495sed 's/^/| /' conftest.$ac_ext >&5
32496
32497wx_cv_func_backtrace=no
32498
32499fi
32500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32501
32502
32503fi
32504echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32505echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32506
32507
32508 if test "$wx_cv_func_backtrace" = "no"; then
32509 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32510echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32511 wxUSE_STACKWALKER=no
32512 else
32513 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32514echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32515if test "${wx_cv_func_cxa_demangle+set}" = set; then
32516 echo $ECHO_N "(cached) $ECHO_C" >&6
32517else
32518
32519 cat >conftest.$ac_ext <<_ACEOF
32520/* confdefs.h. */
32521_ACEOF
32522cat confdefs.h >>conftest.$ac_ext
32523cat >>conftest.$ac_ext <<_ACEOF
32524/* end confdefs.h. */
32525#include <cxxabi.h>
32526int
32527main ()
32528{
32529
32530 int rc;
32531 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32532
32533 ;
32534 return 0;
32535}
32536_ACEOF
dfe0c803
JS
32537rm -f conftest.$ac_objext conftest$ac_exeext
32538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32539 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32540 ac_status=$?
32541 grep -v '^ *+' conftest.er1 >conftest.err
32542 rm -f conftest.er1
32543 cat conftest.err >&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } &&
6ebeb4c7 32546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; } &&
dfe0c803 32552 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554 (eval $ac_try) 2>&5
32555 ac_status=$?
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); }; }; then
32558 wx_cv_func_cxa_demangle=yes
32559else
32560 echo "$as_me: failed program was:" >&5
32561sed 's/^/| /' conftest.$ac_ext >&5
32562
32563wx_cv_func_cxa_demangle=no
32564
32565fi
dfe0c803
JS
32566rm -f conftest.err conftest.$ac_objext \
32567 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32568
32569
32570fi
32571echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32572echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32573
32574 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32575 cat >>confdefs.h <<\_ACEOF
32576#define HAVE_CXA_DEMANGLE 1
32577_ACEOF
32578
32579 fi
32580 fi
32581
32582 ac_ext=c
32583ac_cpp='$CPP $CPPFLAGS'
32584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32586ac_compiler_gnu=$ac_cv_c_compiler_gnu
32587
32588fi
32589
898beab1
DE
32590if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32591 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32592echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32593 wxUSE_STACKWALKER=no
32594fi
32595
32596
a848cd7e
SC
32597
32598
32599for ac_func in mkstemp mktemp
32600do
32601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32602echo "$as_me:$LINENO: checking for $ac_func" >&5
32603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32604if eval "test \"\${$as_ac_var+set}\" = set"; then
32605 echo $ECHO_N "(cached) $ECHO_C" >&6
32606else
32607 cat >conftest.$ac_ext <<_ACEOF
32608/* confdefs.h. */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h. */
ac1cb8d3
VS
32613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32615#define $ac_func innocuous_$ac_func
32616
a848cd7e
SC
32617/* System header to define __stub macros and hopefully few prototypes,
32618 which can conflict with char $ac_func (); below.
32619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32621
a848cd7e
SC
32622#ifdef __STDC__
32623# include <limits.h>
32624#else
32625# include <assert.h>
32626#endif
ac1cb8d3
VS
32627
32628#undef $ac_func
32629
a848cd7e
SC
32630/* Override any gcc2 internal prototype to avoid an error. */
32631#ifdef __cplusplus
32632extern "C"
32633{
32634#endif
32635/* We use char because int might match the return type of a gcc2
32636 builtin and then its argument prototype would still apply. */
32637char $ac_func ();
32638/* The GNU C library defines this for functions which it implements
32639 to always fail with ENOSYS. Some functions are actually named
32640 something starting with __ and the normal name is an alias. */
32641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32642choke me
32643#else
32644char (*f) () = $ac_func;
32645#endif
32646#ifdef __cplusplus
32647}
32648#endif
32649
32650int
32651main ()
32652{
32653return f != $ac_func;
32654 ;
32655 return 0;
32656}
32657_ACEOF
32658rm -f conftest.$ac_objext conftest$ac_exeext
32659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32660 (eval $ac_link) 2>conftest.er1
a848cd7e 32661 ac_status=$?
ac1cb8d3
VS
32662 grep -v '^ *+' conftest.er1 >conftest.err
32663 rm -f conftest.er1
32664 cat conftest.err >&5
a848cd7e
SC
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
6ebeb4c7 32667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32669 (eval $ac_try) 2>&5
32670 ac_status=$?
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); }; } &&
32673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32675 (eval $ac_try) 2>&5
32676 ac_status=$?
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); }; }; then
32679 eval "$as_ac_var=yes"
32680else
32681 echo "$as_me: failed program was:" >&5
32682sed 's/^/| /' conftest.$ac_ext >&5
32683
32684eval "$as_ac_var=no"
32685fi
ac1cb8d3
VS
32686rm -f conftest.err conftest.$ac_objext \
32687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32688fi
32689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32691if test `eval echo '${'$as_ac_var'}'` = yes; then
32692 cat >>confdefs.h <<_ACEOF
32693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32694_ACEOF
32695 break
32696fi
32697done
32698
32699
32700echo "$as_me:$LINENO: checking for statfs" >&5
32701echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32702if test "${wx_cv_func_statfs+set}" = set; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32704else
32705 cat >conftest.$ac_ext <<_ACEOF
32706/* confdefs.h. */
32707_ACEOF
32708cat confdefs.h >>conftest.$ac_ext
32709cat >>conftest.$ac_ext <<_ACEOF
32710/* end confdefs.h. */
32711
32712 #if defined(__BSD__)
84ae7ca4
VZ
32713 #include <sys/param.h>
32714 #include <sys/mount.h>
a848cd7e 32715 #else
84ae7ca4 32716 #include <sys/vfs.h>
a848cd7e
SC
32717 #endif
32718
32719int
32720main ()
32721{
32722
32723 long l;
32724 struct statfs fs;
32725 statfs("/", &fs);
32726 l = fs.f_bsize;
32727 l += fs.f_blocks;
32728 l += fs.f_bavail;
32729
32730 ;
32731 return 0;
32732}
32733_ACEOF
32734rm -f conftest.$ac_objext
32735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32736 (eval $ac_compile) 2>conftest.er1
a848cd7e 32737 ac_status=$?
ac1cb8d3
VS
32738 grep -v '^ *+' conftest.er1 >conftest.err
32739 rm -f conftest.er1
32740 cat conftest.err >&5
a848cd7e
SC
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); } &&
6ebeb4c7 32743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; } &&
32749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
84ae7ca4 32755 wx_cv_func_statfs=yes
a848cd7e
SC
32756else
32757 echo "$as_me: failed program was:" >&5
32758sed 's/^/| /' conftest.$ac_ext >&5
32759
84ae7ca4 32760wx_cv_func_statfs=no
a848cd7e
SC
32761
32762fi
ac1cb8d3 32763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32764
32765fi
32766echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32767echo "${ECHO_T}$wx_cv_func_statfs" >&6
32768
32769if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
32770
32771
32772 ac_ext=cc
32773ac_cpp='$CXXCPP $CPPFLAGS'
32774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32777
32778 echo "$as_me:$LINENO: checking for statfs declaration" >&5
32779echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
32780if test "${wx_cv_func_statfs_decl+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32782else
0683aca6
VZ
32783 cat >conftest.$ac_ext <<_ACEOF
32784/* confdefs.h. */
32785_ACEOF
32786cat confdefs.h >>conftest.$ac_ext
32787cat >>conftest.$ac_ext <<_ACEOF
32788/* end confdefs.h. */
84ae7ca4 32789
0683aca6
VZ
32790 #if defined(__BSD__)
32791 #include <sys/param.h>
32792 #include <sys/mount.h>
32793 #else
32794 #include <sys/vfs.h>
32795 #endif
32796
32797int
32798main ()
32799{
32800
32801 struct statfs fs;
32802 statfs("", &fs);
32803
32804 ;
32805 return 0;
32806}
32807_ACEOF
32808rm -f conftest.$ac_objext
32809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32810 (eval $ac_compile) 2>conftest.er1
32811 ac_status=$?
32812 grep -v '^ *+' conftest.er1 >conftest.err
32813 rm -f conftest.er1
32814 cat conftest.err >&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } &&
32817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32820 ac_status=$?
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; } &&
32823 { ac_try='test -s conftest.$ac_objext'
32824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825 (eval $ac_try) 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
32829 wx_cv_func_statfs_decl=yes
32830else
32831 echo "$as_me: failed program was:" >&5
32832sed 's/^/| /' conftest.$ac_ext >&5
32833
32834wx_cv_func_statfs_decl=no
32835
32836fi
32837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
32838
32839fi
32840echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
32841echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
32842 ac_ext=c
32843ac_cpp='$CPP $CPPFLAGS'
32844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32846ac_compiler_gnu=$ac_cv_c_compiler_gnu
32847
32848
32849 if test "$wx_cv_func_statfs_decl" = "yes"; then
32850 cat >>confdefs.h <<\_ACEOF
32851#define HAVE_STATFS_DECL 1
32852_ACEOF
32853
32854 fi
32855
a848cd7e
SC
32856 wx_cv_type_statvfs_t="struct statfs"
32857 cat >>confdefs.h <<\_ACEOF
32858#define HAVE_STATFS 1
32859_ACEOF
32860
32861else
32862 echo "$as_me:$LINENO: checking for statvfs" >&5
32863echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32864if test "${wx_cv_func_statvfs+set}" = set; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32866else
32867 cat >conftest.$ac_ext <<_ACEOF
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
32873
32874 #include <stddef.h>
32875 #include <sys/statvfs.h>
32876
32877int
32878main ()
32879{
32880
32881 statvfs("/", NULL);
32882
32883 ;
32884 return 0;
32885}
32886_ACEOF
32887rm -f conftest.$ac_objext
32888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32889 (eval $ac_compile) 2>conftest.er1
a848cd7e 32890 ac_status=$?
ac1cb8d3
VS
32891 grep -v '^ *+' conftest.er1 >conftest.err
32892 rm -f conftest.er1
32893 cat conftest.err >&5
a848cd7e
SC
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); } &&
6ebeb4c7 32896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898 (eval $ac_try) 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; } &&
32902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32904 (eval $ac_try) 2>&5
32905 ac_status=$?
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; }; then
32908 wx_cv_func_statvfs=yes
32909else
32910 echo "$as_me: failed program was:" >&5
32911sed 's/^/| /' conftest.$ac_ext >&5
32912
32913wx_cv_func_statvfs=no
32914
32915fi
ac1cb8d3 32916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32917
32918fi
32919echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32920echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32921
32922 if test "$wx_cv_func_statvfs" = "yes"; then
32923
32924
32925 ac_ext=cc
32926ac_cpp='$CXXCPP $CPPFLAGS'
32927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32930
32931
32932 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32933echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32934if test "${wx_cv_type_statvfs_t+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32936else
32937 cat >conftest.$ac_ext <<_ACEOF
32938/* confdefs.h. */
32939_ACEOF
32940cat confdefs.h >>conftest.$ac_ext
32941cat >>conftest.$ac_ext <<_ACEOF
32942/* end confdefs.h. */
32943
32944 #include <sys/statvfs.h>
32945
32946int
32947main ()
32948{
32949
32950 long l;
32951 statvfs_t fs;
32952 statvfs("/", &fs);
32953 l = fs.f_bsize;
32954 l += fs.f_blocks;
32955 l += fs.f_bavail;
32956
32957 ;
32958 return 0;
32959}
32960_ACEOF
32961rm -f conftest.$ac_objext
32962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32963 (eval $ac_compile) 2>conftest.er1
a848cd7e 32964 ac_status=$?
ac1cb8d3
VS
32965 grep -v '^ *+' conftest.er1 >conftest.err
32966 rm -f conftest.er1
32967 cat conftest.err >&5
a848cd7e
SC
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } &&
6ebeb4c7 32970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982 wx_cv_type_statvfs_t=statvfs_t
32983else
32984 echo "$as_me: failed program was:" >&5
32985sed 's/^/| /' conftest.$ac_ext >&5
32986
32987
32988 cat >conftest.$ac_ext <<_ACEOF
32989/* confdefs.h. */
32990_ACEOF
32991cat confdefs.h >>conftest.$ac_ext
32992cat >>conftest.$ac_ext <<_ACEOF
32993/* end confdefs.h. */
32994
32995 #include <sys/statvfs.h>
32996
32997int
32998main ()
32999{
33000
33001 long l;
33002 struct statvfs fs;
33003 statvfs("/", &fs);
33004 l = fs.f_bsize;
33005 l += fs.f_blocks;
33006 l += fs.f_bavail;
33007
33008 ;
33009 return 0;
33010}
33011_ACEOF
33012rm -f conftest.$ac_objext
33013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33014 (eval $ac_compile) 2>conftest.er1
a848cd7e 33015 ac_status=$?
ac1cb8d3
VS
33016 grep -v '^ *+' conftest.er1 >conftest.err
33017 rm -f conftest.er1
33018 cat conftest.err >&5
a848cd7e
SC
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } &&
6ebeb4c7 33021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023 (eval $ac_try) 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; } &&
33027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33029 (eval $ac_try) 2>&5
33030 ac_status=$?
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); }; }; then
33033 wx_cv_type_statvfs_t="struct statvfs"
33034else
33035 echo "$as_me: failed program was:" >&5
33036sed 's/^/| /' conftest.$ac_ext >&5
33037
33038wx_cv_type_statvfs_t="unknown"
33039
33040fi
ac1cb8d3 33041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33042
33043
33044fi
ac1cb8d3 33045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33046
33047fi
33048echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
33049echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
33050
33051 ac_ext=c
33052ac_cpp='$CPP $CPPFLAGS'
33053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055ac_compiler_gnu=$ac_cv_c_compiler_gnu
33056
33057
33058 if test "$wx_cv_type_statvfs_t" != "unknown"; then
33059 cat >>confdefs.h <<\_ACEOF
33060#define HAVE_STATVFS 1
33061_ACEOF
33062
33063 fi
33064 else
33065 wx_cv_type_statvfs_t="unknown"
33066 fi
33067fi
33068
33069if test "$wx_cv_type_statvfs_t" != "unknown"; then
33070 cat >>confdefs.h <<_ACEOF
33071#define WX_STATFS_T $wx_cv_type_statvfs_t
33072_ACEOF
33073
33074else
33075 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
33076echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
33077fi
33078
33079if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
33080
33081
33082for ac_func in fcntl flock
33083do
33084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33085echo "$as_me:$LINENO: checking for $ac_func" >&5
33086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33087if eval "test \"\${$as_ac_var+set}\" = set"; then
33088 echo $ECHO_N "(cached) $ECHO_C" >&6
33089else
33090 cat >conftest.$ac_ext <<_ACEOF
33091/* confdefs.h. */
33092_ACEOF
33093cat confdefs.h >>conftest.$ac_ext
33094cat >>conftest.$ac_ext <<_ACEOF
33095/* end confdefs.h. */
ac1cb8d3
VS
33096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33098#define $ac_func innocuous_$ac_func
33099
a848cd7e
SC
33100/* System header to define __stub macros and hopefully few prototypes,
33101 which can conflict with char $ac_func (); below.
33102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33103 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33104
a848cd7e
SC
33105#ifdef __STDC__
33106# include <limits.h>
33107#else
33108# include <assert.h>
33109#endif
ac1cb8d3
VS
33110
33111#undef $ac_func
33112
a848cd7e
SC
33113/* Override any gcc2 internal prototype to avoid an error. */
33114#ifdef __cplusplus
33115extern "C"
33116{
33117#endif
33118/* We use char because int might match the return type of a gcc2
33119 builtin and then its argument prototype would still apply. */
33120char $ac_func ();
33121/* The GNU C library defines this for functions which it implements
33122 to always fail with ENOSYS. Some functions are actually named
33123 something starting with __ and the normal name is an alias. */
33124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33125choke me
33126#else
33127char (*f) () = $ac_func;
33128#endif
33129#ifdef __cplusplus
33130}
33131#endif
33132
33133int
33134main ()
33135{
33136return f != $ac_func;
33137 ;
33138 return 0;
33139}
33140_ACEOF
33141rm -f conftest.$ac_objext conftest$ac_exeext
33142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33143 (eval $ac_link) 2>conftest.er1
a848cd7e 33144 ac_status=$?
ac1cb8d3
VS
33145 grep -v '^ *+' conftest.er1 >conftest.err
33146 rm -f conftest.er1
33147 cat conftest.err >&5
a848cd7e
SC
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); } &&
6ebeb4c7 33150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; } &&
33156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 eval "$as_ac_var=yes"
33163else
33164 echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167eval "$as_ac_var=no"
33168fi
ac1cb8d3
VS
33169rm -f conftest.err conftest.$ac_objext \
33170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33171fi
33172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33173echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33174if test `eval echo '${'$as_ac_var'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33177_ACEOF
33178 break
33179fi
33180done
33181
33182
33183 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33184 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33185echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33186 wxUSE_SNGLINST_CHECKER=no
33187 fi
33188fi
33189
33190
33191for ac_func in timegm
33192do
33193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33194echo "$as_me:$LINENO: checking for $ac_func" >&5
33195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33196if eval "test \"\${$as_ac_var+set}\" = set"; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198else
33199 cat >conftest.$ac_ext <<_ACEOF
33200/* confdefs.h. */
33201_ACEOF
33202cat confdefs.h >>conftest.$ac_ext
33203cat >>conftest.$ac_ext <<_ACEOF
33204/* end confdefs.h. */
ac1cb8d3
VS
33205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33207#define $ac_func innocuous_$ac_func
33208
a848cd7e
SC
33209/* System header to define __stub macros and hopefully few prototypes,
33210 which can conflict with char $ac_func (); below.
33211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33212 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33213
a848cd7e
SC
33214#ifdef __STDC__
33215# include <limits.h>
33216#else
33217# include <assert.h>
33218#endif
ac1cb8d3
VS
33219
33220#undef $ac_func
33221
a848cd7e
SC
33222/* Override any gcc2 internal prototype to avoid an error. */
33223#ifdef __cplusplus
33224extern "C"
33225{
33226#endif
33227/* We use char because int might match the return type of a gcc2
33228 builtin and then its argument prototype would still apply. */
33229char $ac_func ();
33230/* The GNU C library defines this for functions which it implements
33231 to always fail with ENOSYS. Some functions are actually named
33232 something starting with __ and the normal name is an alias. */
33233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33234choke me
33235#else
33236char (*f) () = $ac_func;
33237#endif
33238#ifdef __cplusplus
33239}
33240#endif
33241
33242int
33243main ()
33244{
33245return f != $ac_func;
33246 ;
33247 return 0;
33248}
33249_ACEOF
33250rm -f conftest.$ac_objext conftest$ac_exeext
33251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33252 (eval $ac_link) 2>conftest.er1
a848cd7e 33253 ac_status=$?
ac1cb8d3
VS
33254 grep -v '^ *+' conftest.er1 >conftest.err
33255 rm -f conftest.er1
33256 cat conftest.err >&5
a848cd7e
SC
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } &&
6ebeb4c7 33259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261 (eval $ac_try) 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33267 (eval $ac_try) 2>&5
33268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
33271 eval "$as_ac_var=yes"
33272else
33273 echo "$as_me: failed program was:" >&5
33274sed 's/^/| /' conftest.$ac_ext >&5
33275
33276eval "$as_ac_var=no"
33277fi
ac1cb8d3
VS
33278rm -f conftest.err conftest.$ac_objext \
33279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33280fi
33281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33283if test `eval echo '${'$as_ac_var'}'` = yes; then
33284 cat >>confdefs.h <<_ACEOF
33285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33286_ACEOF
33287
33288fi
33289done
33290
33291
33292
33293
33294for ac_func in putenv setenv
33295do
33296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33297echo "$as_me:$LINENO: checking for $ac_func" >&5
33298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33299if eval "test \"\${$as_ac_var+set}\" = set"; then
33300 echo $ECHO_N "(cached) $ECHO_C" >&6
33301else
33302 cat >conftest.$ac_ext <<_ACEOF
33303/* confdefs.h. */
33304_ACEOF
33305cat confdefs.h >>conftest.$ac_ext
33306cat >>conftest.$ac_ext <<_ACEOF
33307/* end confdefs.h. */
ac1cb8d3
VS
33308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33310#define $ac_func innocuous_$ac_func
33311
a848cd7e
SC
33312/* System header to define __stub macros and hopefully few prototypes,
33313 which can conflict with char $ac_func (); below.
33314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33316
a848cd7e
SC
33317#ifdef __STDC__
33318# include <limits.h>
33319#else
33320# include <assert.h>
33321#endif
ac1cb8d3
VS
33322
33323#undef $ac_func
33324
a848cd7e
SC
33325/* Override any gcc2 internal prototype to avoid an error. */
33326#ifdef __cplusplus
33327extern "C"
33328{
33329#endif
33330/* We use char because int might match the return type of a gcc2
33331 builtin and then its argument prototype would still apply. */
33332char $ac_func ();
33333/* The GNU C library defines this for functions which it implements
33334 to always fail with ENOSYS. Some functions are actually named
33335 something starting with __ and the normal name is an alias. */
33336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33337choke me
33338#else
33339char (*f) () = $ac_func;
33340#endif
33341#ifdef __cplusplus
33342}
33343#endif
33344
33345int
33346main ()
33347{
33348return f != $ac_func;
33349 ;
33350 return 0;
33351}
33352_ACEOF
33353rm -f conftest.$ac_objext conftest$ac_exeext
33354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33355 (eval $ac_link) 2>conftest.er1
a848cd7e 33356 ac_status=$?
ac1cb8d3
VS
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
a848cd7e
SC
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
6ebeb4c7 33362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; } &&
33368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370 (eval $ac_try) 2>&5
33371 ac_status=$?
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; }; then
33374 eval "$as_ac_var=yes"
33375else
33376 echo "$as_me: failed program was:" >&5
33377sed 's/^/| /' conftest.$ac_ext >&5
33378
33379eval "$as_ac_var=no"
33380fi
ac1cb8d3
VS
33381rm -f conftest.err conftest.$ac_objext \
33382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33383fi
33384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33386if test `eval echo '${'$as_ac_var'}'` = yes; then
33387 cat >>confdefs.h <<_ACEOF
33388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33389_ACEOF
33390 break
33391fi
33392done
33393
33394
33395HAVE_SOME_SLEEP_FUNC=0
33396if test "$USE_BEOS" = 1; then
33397 cat >>confdefs.h <<\_ACEOF
33398#define HAVE_SLEEP 1
33399_ACEOF
33400
33401 HAVE_SOME_SLEEP_FUNC=1
33402fi
33403
33404if test "$USE_DARWIN" = 1; then
33405 cat >>confdefs.h <<\_ACEOF
33406#define HAVE_USLEEP 1
33407_ACEOF
33408
33409 HAVE_SOME_SLEEP_FUNC=1
33410fi
33411
33412if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33413 POSIX4_LINK=
33414
33415for ac_func in nanosleep
33416do
33417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33418echo "$as_me:$LINENO: checking for $ac_func" >&5
33419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33420if eval "test \"\${$as_ac_var+set}\" = set"; then
33421 echo $ECHO_N "(cached) $ECHO_C" >&6
33422else
33423 cat >conftest.$ac_ext <<_ACEOF
33424/* confdefs.h. */
33425_ACEOF
33426cat confdefs.h >>conftest.$ac_ext
33427cat >>conftest.$ac_ext <<_ACEOF
33428/* end confdefs.h. */
ac1cb8d3
VS
33429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33431#define $ac_func innocuous_$ac_func
33432
a848cd7e
SC
33433/* System header to define __stub macros and hopefully few prototypes,
33434 which can conflict with char $ac_func (); below.
33435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33437
a848cd7e
SC
33438#ifdef __STDC__
33439# include <limits.h>
33440#else
33441# include <assert.h>
33442#endif
ac1cb8d3
VS
33443
33444#undef $ac_func
33445
a848cd7e
SC
33446/* Override any gcc2 internal prototype to avoid an error. */
33447#ifdef __cplusplus
33448extern "C"
33449{
33450#endif
33451/* We use char because int might match the return type of a gcc2
33452 builtin and then its argument prototype would still apply. */
33453char $ac_func ();
33454/* The GNU C library defines this for functions which it implements
33455 to always fail with ENOSYS. Some functions are actually named
33456 something starting with __ and the normal name is an alias. */
33457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33458choke me
33459#else
33460char (*f) () = $ac_func;
33461#endif
33462#ifdef __cplusplus
33463}
33464#endif
33465
33466int
33467main ()
33468{
33469return f != $ac_func;
33470 ;
33471 return 0;
33472}
33473_ACEOF
33474rm -f conftest.$ac_objext conftest$ac_exeext
33475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33476 (eval $ac_link) 2>conftest.er1
a848cd7e 33477 ac_status=$?
ac1cb8d3
VS
33478 grep -v '^ *+' conftest.er1 >conftest.err
33479 rm -f conftest.er1
33480 cat conftest.err >&5
a848cd7e
SC
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } &&
6ebeb4c7 33483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; } &&
33489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 eval "$as_ac_var=yes"
33496else
33497 echo "$as_me: failed program was:" >&5
33498sed 's/^/| /' conftest.$ac_ext >&5
33499
33500eval "$as_ac_var=no"
33501fi
ac1cb8d3
VS
33502rm -f conftest.err conftest.$ac_objext \
33503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33504fi
33505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33507if test `eval echo '${'$as_ac_var'}'` = yes; then
33508 cat >>confdefs.h <<_ACEOF
33509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33510_ACEOF
33511 cat >>confdefs.h <<\_ACEOF
33512#define HAVE_NANOSLEEP 1
33513_ACEOF
33514
33515else
33516
33517 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33518echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33519if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33521else
33522 ac_check_lib_save_LIBS=$LIBS
33523LIBS="-lposix4 $LIBS"
33524cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h. */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h. */
33530
33531/* Override any gcc2 internal prototype to avoid an error. */
33532#ifdef __cplusplus
33533extern "C"
33534#endif
33535/* We use char because int might match the return type of a gcc2
33536 builtin and then its argument prototype would still apply. */
33537char nanosleep ();
33538int
33539main ()
33540{
33541nanosleep ();
33542 ;
33543 return 0;
33544}
33545_ACEOF
33546rm -f conftest.$ac_objext conftest$ac_exeext
33547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33548 (eval $ac_link) 2>conftest.er1
a848cd7e 33549 ac_status=$?
ac1cb8d3
VS
33550 grep -v '^ *+' conftest.er1 >conftest.err
33551 rm -f conftest.er1
33552 cat conftest.err >&5
a848cd7e
SC
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } &&
6ebeb4c7 33555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33557 (eval $ac_try) 2>&5
33558 ac_status=$?
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); }; } &&
33561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33563 (eval $ac_try) 2>&5
33564 ac_status=$?
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); }; }; then
33567 ac_cv_lib_posix4_nanosleep=yes
33568else
33569 echo "$as_me: failed program was:" >&5
33570sed 's/^/| /' conftest.$ac_ext >&5
33571
33572ac_cv_lib_posix4_nanosleep=no
33573fi
ac1cb8d3
VS
33574rm -f conftest.err conftest.$ac_objext \
33575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33576LIBS=$ac_check_lib_save_LIBS
33577fi
33578echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33579echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33580if test $ac_cv_lib_posix4_nanosleep = yes; then
33581
33582 cat >>confdefs.h <<\_ACEOF
33583#define HAVE_NANOSLEEP 1
33584_ACEOF
33585
33586 POSIX4_LINK=" -lposix4"
33587
33588else
33589
33590
33591for ac_func in usleep
33592do
33593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33594echo "$as_me:$LINENO: checking for $ac_func" >&5
33595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33596if eval "test \"\${$as_ac_var+set}\" = set"; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33598else
33599 cat >conftest.$ac_ext <<_ACEOF
33600/* confdefs.h. */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h. */
ac1cb8d3
VS
33605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33607#define $ac_func innocuous_$ac_func
33608
a848cd7e
SC
33609/* System header to define __stub macros and hopefully few prototypes,
33610 which can conflict with char $ac_func (); below.
33611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33612 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33613
a848cd7e
SC
33614#ifdef __STDC__
33615# include <limits.h>
33616#else
33617# include <assert.h>
33618#endif
ac1cb8d3
VS
33619
33620#undef $ac_func
33621
a848cd7e
SC
33622/* Override any gcc2 internal prototype to avoid an error. */
33623#ifdef __cplusplus
33624extern "C"
33625{
33626#endif
33627/* We use char because int might match the return type of a gcc2
33628 builtin and then its argument prototype would still apply. */
33629char $ac_func ();
33630/* The GNU C library defines this for functions which it implements
33631 to always fail with ENOSYS. Some functions are actually named
33632 something starting with __ and the normal name is an alias. */
33633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33634choke me
33635#else
33636char (*f) () = $ac_func;
33637#endif
33638#ifdef __cplusplus
33639}
33640#endif
33641
33642int
33643main ()
33644{
33645return f != $ac_func;
33646 ;
33647 return 0;
33648}
33649_ACEOF
33650rm -f conftest.$ac_objext conftest$ac_exeext
33651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33652 (eval $ac_link) 2>conftest.er1
a848cd7e 33653 ac_status=$?
ac1cb8d3
VS
33654 grep -v '^ *+' conftest.er1 >conftest.err
33655 rm -f conftest.er1
33656 cat conftest.err >&5
a848cd7e
SC
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } &&
6ebeb4c7 33659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661 (eval $ac_try) 2>&5
33662 ac_status=$?
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); }; } &&
33665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667 (eval $ac_try) 2>&5
33668 ac_status=$?
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; }; then
33671 eval "$as_ac_var=yes"
33672else
33673 echo "$as_me: failed program was:" >&5
33674sed 's/^/| /' conftest.$ac_ext >&5
33675
33676eval "$as_ac_var=no"
33677fi
ac1cb8d3
VS
33678rm -f conftest.err conftest.$ac_objext \
33679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33680fi
33681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33683if test `eval echo '${'$as_ac_var'}'` = yes; then
33684 cat >>confdefs.h <<_ACEOF
33685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33686_ACEOF
33687 cat >>confdefs.h <<\_ACEOF
33688#define HAVE_USLEEP 1
33689_ACEOF
33690
33691else
33692 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33693echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33694
33695fi
33696done
33697
33698
33699
33700fi
33701
33702
33703
33704fi
33705done
33706
33707fi
33708
33709
33710
33711for ac_func in uname gethostname
33712do
33713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33714echo "$as_me:$LINENO: checking for $ac_func" >&5
33715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33716if eval "test \"\${$as_ac_var+set}\" = set"; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33718else
33719 cat >conftest.$ac_ext <<_ACEOF
33720/* confdefs.h. */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h. */
ac1cb8d3
VS
33725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33727#define $ac_func innocuous_$ac_func
33728
a848cd7e
SC
33729/* System header to define __stub macros and hopefully few prototypes,
33730 which can conflict with char $ac_func (); below.
33731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33732 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33733
a848cd7e
SC
33734#ifdef __STDC__
33735# include <limits.h>
33736#else
33737# include <assert.h>
33738#endif
ac1cb8d3
VS
33739
33740#undef $ac_func
33741
a848cd7e
SC
33742/* Override any gcc2 internal prototype to avoid an error. */
33743#ifdef __cplusplus
33744extern "C"
33745{
33746#endif
33747/* We use char because int might match the return type of a gcc2
33748 builtin and then its argument prototype would still apply. */
33749char $ac_func ();
33750/* The GNU C library defines this for functions which it implements
33751 to always fail with ENOSYS. Some functions are actually named
33752 something starting with __ and the normal name is an alias. */
33753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33754choke me
33755#else
33756char (*f) () = $ac_func;
33757#endif
33758#ifdef __cplusplus
33759}
33760#endif
33761
33762int
33763main ()
33764{
33765return f != $ac_func;
33766 ;
33767 return 0;
33768}
33769_ACEOF
33770rm -f conftest.$ac_objext conftest$ac_exeext
33771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33772 (eval $ac_link) 2>conftest.er1
a848cd7e 33773 ac_status=$?
ac1cb8d3
VS
33774 grep -v '^ *+' conftest.er1 >conftest.err
33775 rm -f conftest.er1
33776 cat conftest.err >&5
a848cd7e
SC
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); } &&
6ebeb4c7 33779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33781 (eval $ac_try) 2>&5
33782 ac_status=$?
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); }; } &&
33785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787 (eval $ac_try) 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; }; then
33791 eval "$as_ac_var=yes"
33792else
33793 echo "$as_me: failed program was:" >&5
33794sed 's/^/| /' conftest.$ac_ext >&5
33795
33796eval "$as_ac_var=no"
33797fi
ac1cb8d3
VS
33798rm -f conftest.err conftest.$ac_objext \
33799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33800fi
33801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33803if test `eval echo '${'$as_ac_var'}'` = yes; then
33804 cat >>confdefs.h <<_ACEOF
33805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33806_ACEOF
33807 break
33808fi
33809done
33810
33811
33812
33813
33814ac_ext=cc
33815ac_cpp='$CXXCPP $CPPFLAGS'
33816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33819
33820
33821
33822for ac_func in strtok_r
33823do
33824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33825echo "$as_me:$LINENO: checking for $ac_func" >&5
33826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33827if eval "test \"\${$as_ac_var+set}\" = set"; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33829else
33830 cat >conftest.$ac_ext <<_ACEOF
33831/* confdefs.h. */
33832_ACEOF
33833cat confdefs.h >>conftest.$ac_ext
33834cat >>conftest.$ac_ext <<_ACEOF
33835/* end confdefs.h. */
ac1cb8d3
VS
33836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33838#define $ac_func innocuous_$ac_func
33839
a848cd7e
SC
33840/* System header to define __stub macros and hopefully few prototypes,
33841 which can conflict with char $ac_func (); below.
33842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33843 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33844
a848cd7e
SC
33845#ifdef __STDC__
33846# include <limits.h>
33847#else
33848# include <assert.h>
33849#endif
ac1cb8d3
VS
33850
33851#undef $ac_func
33852
a848cd7e
SC
33853/* Override any gcc2 internal prototype to avoid an error. */
33854#ifdef __cplusplus
33855extern "C"
33856{
33857#endif
33858/* We use char because int might match the return type of a gcc2
33859 builtin and then its argument prototype would still apply. */
33860char $ac_func ();
33861/* The GNU C library defines this for functions which it implements
33862 to always fail with ENOSYS. Some functions are actually named
33863 something starting with __ and the normal name is an alias. */
33864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33865choke me
33866#else
33867char (*f) () = $ac_func;
33868#endif
33869#ifdef __cplusplus
33870}
33871#endif
33872
33873int
33874main ()
33875{
33876return f != $ac_func;
33877 ;
33878 return 0;
33879}
33880_ACEOF
33881rm -f conftest.$ac_objext conftest$ac_exeext
33882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33883 (eval $ac_link) 2>conftest.er1
a848cd7e 33884 ac_status=$?
ac1cb8d3
VS
33885 grep -v '^ *+' conftest.er1 >conftest.err
33886 rm -f conftest.er1
33887 cat conftest.err >&5
a848cd7e
SC
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); } &&
6ebeb4c7 33890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33892 (eval $ac_try) 2>&5
33893 ac_status=$?
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; } &&
33896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898 (eval $ac_try) 2>&5
33899 ac_status=$?
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); }; }; then
33902 eval "$as_ac_var=yes"
33903else
33904 echo "$as_me: failed program was:" >&5
33905sed 's/^/| /' conftest.$ac_ext >&5
33906
33907eval "$as_ac_var=no"
33908fi
ac1cb8d3
VS
33909rm -f conftest.err conftest.$ac_objext \
33910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33911fi
33912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33914if test `eval echo '${'$as_ac_var'}'` = yes; then
33915 cat >>confdefs.h <<_ACEOF
33916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33917_ACEOF
33918
33919fi
33920done
33921
33922
33923ac_ext=c
33924ac_cpp='$CPP $CPPFLAGS'
33925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33927ac_compiler_gnu=$ac_cv_c_compiler_gnu
33928
33929
33930INET_LINK=
33931
33932for ac_func in inet_addr
33933do
33934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33935echo "$as_me:$LINENO: checking for $ac_func" >&5
33936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33937if eval "test \"\${$as_ac_var+set}\" = set"; then
33938 echo $ECHO_N "(cached) $ECHO_C" >&6
33939else
33940 cat >conftest.$ac_ext <<_ACEOF
33941/* confdefs.h. */
33942_ACEOF
33943cat confdefs.h >>conftest.$ac_ext
33944cat >>conftest.$ac_ext <<_ACEOF
33945/* end confdefs.h. */
ac1cb8d3
VS
33946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33948#define $ac_func innocuous_$ac_func
33949
a848cd7e
SC
33950/* System header to define __stub macros and hopefully few prototypes,
33951 which can conflict with char $ac_func (); below.
33952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33954
a848cd7e
SC
33955#ifdef __STDC__
33956# include <limits.h>
33957#else
33958# include <assert.h>
33959#endif
ac1cb8d3
VS
33960
33961#undef $ac_func
33962
a848cd7e
SC
33963/* Override any gcc2 internal prototype to avoid an error. */
33964#ifdef __cplusplus
33965extern "C"
33966{
33967#endif
33968/* We use char because int might match the return type of a gcc2
33969 builtin and then its argument prototype would still apply. */
33970char $ac_func ();
33971/* The GNU C library defines this for functions which it implements
33972 to always fail with ENOSYS. Some functions are actually named
33973 something starting with __ and the normal name is an alias. */
33974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33975choke me
33976#else
33977char (*f) () = $ac_func;
33978#endif
33979#ifdef __cplusplus
33980}
33981#endif
33982
33983int
33984main ()
33985{
33986return f != $ac_func;
33987 ;
33988 return 0;
33989}
33990_ACEOF
33991rm -f conftest.$ac_objext conftest$ac_exeext
33992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33993 (eval $ac_link) 2>conftest.er1
a848cd7e 33994 ac_status=$?
ac1cb8d3
VS
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
a848cd7e
SC
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } &&
6ebeb4c7 34000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34003 ac_status=$?
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34009 ac_status=$?
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 eval "$as_ac_var=yes"
34013else
34014 echo "$as_me: failed program was:" >&5
34015sed 's/^/| /' conftest.$ac_ext >&5
34016
34017eval "$as_ac_var=no"
34018fi
ac1cb8d3
VS
34019rm -f conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34021fi
34022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34024if test `eval echo '${'$as_ac_var'}'` = yes; then
34025 cat >>confdefs.h <<_ACEOF
34026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34027_ACEOF
34028 cat >>confdefs.h <<\_ACEOF
34029#define HAVE_INET_ADDR 1
34030_ACEOF
34031
34032else
34033
34034 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
34035echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
34036if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
34039 ac_check_lib_save_LIBS=$LIBS
34040LIBS="-lnsl $LIBS"
34041cat >conftest.$ac_ext <<_ACEOF
34042/* confdefs.h. */
34043_ACEOF
34044cat confdefs.h >>conftest.$ac_ext
34045cat >>conftest.$ac_ext <<_ACEOF
34046/* end confdefs.h. */
34047
34048/* Override any gcc2 internal prototype to avoid an error. */
34049#ifdef __cplusplus
34050extern "C"
34051#endif
34052/* We use char because int might match the return type of a gcc2
34053 builtin and then its argument prototype would still apply. */
34054char inet_addr ();
34055int
34056main ()
34057{
34058inet_addr ();
34059 ;
34060 return 0;
34061}
34062_ACEOF
34063rm -f conftest.$ac_objext conftest$ac_exeext
34064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34065 (eval $ac_link) 2>conftest.er1
a848cd7e 34066 ac_status=$?
ac1cb8d3
VS
34067 grep -v '^ *+' conftest.er1 >conftest.err
34068 rm -f conftest.er1
34069 cat conftest.err >&5
a848cd7e
SC
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } &&
6ebeb4c7 34072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34074 (eval $ac_try) 2>&5
34075 ac_status=$?
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; } &&
34078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34080 (eval $ac_try) 2>&5
34081 ac_status=$?
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; }; then
34084 ac_cv_lib_nsl_inet_addr=yes
34085else
34086 echo "$as_me: failed program was:" >&5
34087sed 's/^/| /' conftest.$ac_ext >&5
34088
34089ac_cv_lib_nsl_inet_addr=no
34090fi
ac1cb8d3
VS
34091rm -f conftest.err conftest.$ac_objext \
34092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34093LIBS=$ac_check_lib_save_LIBS
34094fi
34095echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34096echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34097if test $ac_cv_lib_nsl_inet_addr = yes; then
34098 INET_LINK="nsl"
34099else
34100
34101 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34102echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34103if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34104 echo $ECHO_N "(cached) $ECHO_C" >&6
34105else
34106 ac_check_lib_save_LIBS=$LIBS
34107LIBS="-lresolv $LIBS"
34108cat >conftest.$ac_ext <<_ACEOF
34109/* confdefs.h. */
34110_ACEOF
34111cat confdefs.h >>conftest.$ac_ext
34112cat >>conftest.$ac_ext <<_ACEOF
34113/* end confdefs.h. */
34114
34115/* Override any gcc2 internal prototype to avoid an error. */
34116#ifdef __cplusplus
34117extern "C"
34118#endif
34119/* We use char because int might match the return type of a gcc2
34120 builtin and then its argument prototype would still apply. */
34121char inet_addr ();
34122int
34123main ()
34124{
34125inet_addr ();
34126 ;
34127 return 0;
34128}
34129_ACEOF
34130rm -f conftest.$ac_objext conftest$ac_exeext
34131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34132 (eval $ac_link) 2>conftest.er1
a848cd7e 34133 ac_status=$?
ac1cb8d3
VS
34134 grep -v '^ *+' conftest.er1 >conftest.err
34135 rm -f conftest.er1
34136 cat conftest.err >&5
a848cd7e
SC
34137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138 (exit $ac_status); } &&
6ebeb4c7 34139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141 (eval $ac_try) 2>&5
34142 ac_status=$?
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; } &&
34145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147 (eval $ac_try) 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; }; then
34151 ac_cv_lib_resolv_inet_addr=yes
34152else
34153 echo "$as_me: failed program was:" >&5
34154sed 's/^/| /' conftest.$ac_ext >&5
34155
34156ac_cv_lib_resolv_inet_addr=no
34157fi
ac1cb8d3
VS
34158rm -f conftest.err conftest.$ac_objext \
34159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34160LIBS=$ac_check_lib_save_LIBS
34161fi
34162echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34163echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34164if test $ac_cv_lib_resolv_inet_addr = yes; then
34165 INET_LINK="resolv"
34166else
34167
34168 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34169echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34170if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34171 echo $ECHO_N "(cached) $ECHO_C" >&6
34172else
34173 ac_check_lib_save_LIBS=$LIBS
34174LIBS="-lsocket $LIBS"
34175cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
34181
34182/* Override any gcc2 internal prototype to avoid an error. */
34183#ifdef __cplusplus
34184extern "C"
34185#endif
34186/* We use char because int might match the return type of a gcc2
34187 builtin and then its argument prototype would still apply. */
34188char inet_addr ();
34189int
34190main ()
34191{
34192inet_addr ();
34193 ;
34194 return 0;
34195}
34196_ACEOF
34197rm -f conftest.$ac_objext conftest$ac_exeext
34198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34199 (eval $ac_link) 2>conftest.er1
a848cd7e 34200 ac_status=$?
ac1cb8d3
VS
34201 grep -v '^ *+' conftest.er1 >conftest.err
34202 rm -f conftest.er1
34203 cat conftest.err >&5
a848cd7e
SC
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); } &&
6ebeb4c7 34206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34208 (eval $ac_try) 2>&5
34209 ac_status=$?
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); }; } &&
34212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214 (eval $ac_try) 2>&5
34215 ac_status=$?
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); }; }; then
34218 ac_cv_lib_socket_inet_addr=yes
34219else
34220 echo "$as_me: failed program was:" >&5
34221sed 's/^/| /' conftest.$ac_ext >&5
34222
34223ac_cv_lib_socket_inet_addr=no
34224fi
ac1cb8d3
VS
34225rm -f conftest.err conftest.$ac_objext \
34226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34227LIBS=$ac_check_lib_save_LIBS
34228fi
34229echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34230echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34231if test $ac_cv_lib_socket_inet_addr = yes; then
34232 INET_LINK="socket"
34233
34234fi
34235
34236
34237
34238fi
34239
34240
34241
34242fi
34243
34244
34245
34246fi
34247done
34248
34249
34250
34251for ac_func in inet_aton
34252do
34253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34254echo "$as_me:$LINENO: checking for $ac_func" >&5
34255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34256if eval "test \"\${$as_ac_var+set}\" = set"; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34258else
34259 cat >conftest.$ac_ext <<_ACEOF
34260/* confdefs.h. */
34261_ACEOF
34262cat confdefs.h >>conftest.$ac_ext
34263cat >>conftest.$ac_ext <<_ACEOF
34264/* end confdefs.h. */
ac1cb8d3
VS
34265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34267#define $ac_func innocuous_$ac_func
34268
a848cd7e
SC
34269/* System header to define __stub macros and hopefully few prototypes,
34270 which can conflict with char $ac_func (); below.
34271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34273
a848cd7e
SC
34274#ifdef __STDC__
34275# include <limits.h>
34276#else
34277# include <assert.h>
34278#endif
ac1cb8d3
VS
34279
34280#undef $ac_func
34281
a848cd7e
SC
34282/* Override any gcc2 internal prototype to avoid an error. */
34283#ifdef __cplusplus
34284extern "C"
34285{
34286#endif
34287/* We use char because int might match the return type of a gcc2
34288 builtin and then its argument prototype would still apply. */
34289char $ac_func ();
34290/* The GNU C library defines this for functions which it implements
34291 to always fail with ENOSYS. Some functions are actually named
34292 something starting with __ and the normal name is an alias. */
34293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34294choke me
34295#else
34296char (*f) () = $ac_func;
34297#endif
34298#ifdef __cplusplus
34299}
34300#endif
34301
34302int
34303main ()
34304{
34305return f != $ac_func;
34306 ;
34307 return 0;
34308}
34309_ACEOF
34310rm -f conftest.$ac_objext conftest$ac_exeext
34311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34312 (eval $ac_link) 2>conftest.er1
a848cd7e 34313 ac_status=$?
ac1cb8d3
VS
34314 grep -v '^ *+' conftest.er1 >conftest.err
34315 rm -f conftest.er1
34316 cat conftest.err >&5
a848cd7e
SC
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); } &&
6ebeb4c7 34319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321 (eval $ac_try) 2>&5
34322 ac_status=$?
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 eval "$as_ac_var=yes"
34332else
34333 echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336eval "$as_ac_var=no"
34337fi
ac1cb8d3
VS
34338rm -f conftest.err conftest.$ac_objext \
34339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34340fi
34341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34343if test `eval echo '${'$as_ac_var'}'` = yes; then
34344 cat >>confdefs.h <<_ACEOF
34345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34346_ACEOF
34347 cat >>confdefs.h <<\_ACEOF
34348#define HAVE_INET_ATON 1
34349_ACEOF
34350
34351else
34352
34353 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34354echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34355echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34356if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34357 echo $ECHO_N "(cached) $ECHO_C" >&6
34358else
34359 ac_check_lib_save_LIBS=$LIBS
34360LIBS="-l$INET_LINK $LIBS"
34361cat >conftest.$ac_ext <<_ACEOF
34362/* confdefs.h. */
34363_ACEOF
34364cat confdefs.h >>conftest.$ac_ext
34365cat >>conftest.$ac_ext <<_ACEOF
34366/* end confdefs.h. */
34367
34368/* Override any gcc2 internal prototype to avoid an error. */
34369#ifdef __cplusplus
34370extern "C"
34371#endif
34372/* We use char because int might match the return type of a gcc2
34373 builtin and then its argument prototype would still apply. */
34374char inet_aton ();
34375int
34376main ()
34377{
34378inet_aton ();
34379 ;
34380 return 0;
34381}
34382_ACEOF
34383rm -f conftest.$ac_objext conftest$ac_exeext
34384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34385 (eval $ac_link) 2>conftest.er1
a848cd7e 34386 ac_status=$?
ac1cb8d3
VS
34387 grep -v '^ *+' conftest.er1 >conftest.err
34388 rm -f conftest.er1
34389 cat conftest.err >&5
a848cd7e
SC
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); } &&
6ebeb4c7 34392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34395 ac_status=$?
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; } &&
34398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34401 ac_status=$?
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; }; then
34404 eval "$as_ac_Lib=yes"
34405else
34406 echo "$as_me: failed program was:" >&5
34407sed 's/^/| /' conftest.$ac_ext >&5
34408
34409eval "$as_ac_Lib=no"
34410fi
ac1cb8d3
VS
34411rm -f conftest.err conftest.$ac_objext \
34412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34413LIBS=$ac_check_lib_save_LIBS
34414fi
34415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34416echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34417if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34418 cat >>confdefs.h <<\_ACEOF
34419#define HAVE_INET_ATON 1
34420_ACEOF
34421
34422fi
34423
34424
34425fi
34426done
34427
34428
34429if test "x$INET_LINK" != "x"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define HAVE_INET_ADDR 1
34432_ACEOF
34433
34434 INET_LINK=" -l$INET_LINK"
34435fi
34436
34437fi
34438
34439
34440
34441EXTRALIBS_ESD=
34442echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34443echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34444if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34445 echo $ECHO_N "(cached) $ECHO_C" >&6
34446else
34447 ac_check_lib_save_LIBS=$LIBS
34448LIBS="-lesd $LIBS"
34449cat >conftest.$ac_ext <<_ACEOF
34450/* confdefs.h. */
34451_ACEOF
34452cat confdefs.h >>conftest.$ac_ext
34453cat >>conftest.$ac_ext <<_ACEOF
34454/* end confdefs.h. */
34455
34456/* Override any gcc2 internal prototype to avoid an error. */
34457#ifdef __cplusplus
34458extern "C"
34459#endif
34460/* We use char because int might match the return type of a gcc2
34461 builtin and then its argument prototype would still apply. */
34462char esd_close ();
34463int
34464main ()
34465{
34466esd_close ();
34467 ;
34468 return 0;
34469}
34470_ACEOF
34471rm -f conftest.$ac_objext conftest$ac_exeext
34472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34473 (eval $ac_link) 2>conftest.er1
a848cd7e 34474 ac_status=$?
ac1cb8d3
VS
34475 grep -v '^ *+' conftest.er1 >conftest.err
34476 rm -f conftest.er1
34477 cat conftest.err >&5
a848cd7e
SC
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); } &&
6ebeb4c7 34480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
34492 ac_cv_lib_esd_esd_close=yes
34493else
34494 echo "$as_me: failed program was:" >&5
34495sed 's/^/| /' conftest.$ac_ext >&5
34496
34497ac_cv_lib_esd_esd_close=no
34498fi
ac1cb8d3
VS
34499rm -f conftest.err conftest.$ac_objext \
34500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34501LIBS=$ac_check_lib_save_LIBS
34502fi
34503echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34504echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34505if test $ac_cv_lib_esd_esd_close = yes; then
34506
34507
34508for ac_header in esd.h
34509do
34510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34511if eval "test \"\${$as_ac_Header+set}\" = set"; then
34512 echo "$as_me:$LINENO: checking for $ac_header" >&5
34513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34514if eval "test \"\${$as_ac_Header+set}\" = set"; then
34515 echo $ECHO_N "(cached) $ECHO_C" >&6
34516fi
34517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34519else
34520 # Is the header compilable?
34521echo "$as_me:$LINENO: checking $ac_header usability" >&5
34522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34523cat >conftest.$ac_ext <<_ACEOF
34524/* confdefs.h. */
34525_ACEOF
34526cat confdefs.h >>conftest.$ac_ext
34527cat >>conftest.$ac_ext <<_ACEOF
34528/* end confdefs.h. */
34529$ac_includes_default
34530#include <$ac_header>
34531_ACEOF
34532rm -f conftest.$ac_objext
34533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34534 (eval $ac_compile) 2>conftest.er1
a848cd7e 34535 ac_status=$?
ac1cb8d3
VS
34536 grep -v '^ *+' conftest.er1 >conftest.err
34537 rm -f conftest.er1
34538 cat conftest.err >&5
a848cd7e
SC
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); } &&
6ebeb4c7 34541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543 (eval $ac_try) 2>&5
34544 ac_status=$?
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); }; } &&
34547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; }; then
34553 ac_header_compiler=yes
34554else
34555 echo "$as_me: failed program was:" >&5
34556sed 's/^/| /' conftest.$ac_ext >&5
34557
34558ac_header_compiler=no
34559fi
ac1cb8d3 34560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34562echo "${ECHO_T}$ac_header_compiler" >&6
34563
34564# Is the header present?
34565echo "$as_me:$LINENO: checking $ac_header presence" >&5
34566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34567cat >conftest.$ac_ext <<_ACEOF
34568/* confdefs.h. */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h. */
34573#include <$ac_header>
34574_ACEOF
34575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34577 ac_status=$?
34578 grep -v '^ *+' conftest.er1 >conftest.err
34579 rm -f conftest.er1
34580 cat conftest.err >&5
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); } >/dev/null; then
34583 if test -s conftest.err; then
34584 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34586 else
34587 ac_cpp_err=
34588 fi
34589else
34590 ac_cpp_err=yes
34591fi
34592if test -z "$ac_cpp_err"; then
34593 ac_header_preproc=yes
34594else
34595 echo "$as_me: failed program was:" >&5
34596sed 's/^/| /' conftest.$ac_ext >&5
34597
34598 ac_header_preproc=no
34599fi
34600rm -f conftest.err conftest.$ac_ext
34601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34602echo "${ECHO_T}$ac_header_preproc" >&6
34603
34604# So? What about this header?
ac1cb8d3
VS
34605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34606 yes:no: )
a848cd7e
SC
34607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34611 ac_header_preproc=yes
a848cd7e 34612 ;;
ac1cb8d3 34613 no:yes:* )
a848cd7e
SC
34614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34626 (
34627 cat <<\_ASBOX
ac1cb8d3
VS
34628## ----------------------------------------- ##
34629## Report this to wx-dev@lists.wxwidgets.org ##
34630## ----------------------------------------- ##
a848cd7e
SC
34631_ASBOX
34632 ) |
34633 sed "s/^/$as_me: WARNING: /" >&2
34634 ;;
34635esac
34636echo "$as_me:$LINENO: checking for $ac_header" >&5
34637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34638if eval "test \"\${$as_ac_Header+set}\" = set"; then
34639 echo $ECHO_N "(cached) $ECHO_C" >&6
34640else
ac1cb8d3 34641 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34642fi
34643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34645
34646fi
34647if test `eval echo '${'$as_ac_Header'}'` = yes; then
34648 cat >>confdefs.h <<_ACEOF
34649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34650_ACEOF
34651
34652 EXTRALIBS_ESD="-lesd"
34653
34654fi
34655
34656done
34657
34658
34659fi
34660
34661
34662
34663echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34664echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34665cat >conftest.$ac_ext <<_ACEOF
34666/* confdefs.h. */
34667_ACEOF
34668cat confdefs.h >>conftest.$ac_ext
34669cat >>conftest.$ac_ext <<_ACEOF
34670/* end confdefs.h. */
34671#ifdef __linux__
34672 #include <linux/cdrom.h>
34673 #else
34674 /* For Solaris */
34675 #include <sys/cdio.h>
34676 #endif
34677
34678int
34679main ()
34680{
34681struct cdrom_tocentry entry, old_entry;
34682 ;
34683 return 0;
34684}
34685_ACEOF
34686rm -f conftest.$ac_objext
34687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34688 (eval $ac_compile) 2>conftest.er1
a848cd7e 34689 ac_status=$?
ac1cb8d3
VS
34690 grep -v '^ *+' conftest.er1 >conftest.err
34691 rm -f conftest.er1
34692 cat conftest.err >&5
a848cd7e
SC
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } &&
6ebeb4c7 34695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697 (eval $ac_try) 2>&5
34698 ac_status=$?
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); }; } &&
34701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703 (eval $ac_try) 2>&5
34704 ac_status=$?
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); }; }; then
34707 echo "$as_me:$LINENO: result: yes" >&5
34708echo "${ECHO_T}yes" >&6
34709 cat >>confdefs.h <<\_ACEOF
34710#define HAVE_KNOWN_CDROM_INTERFACE 1
34711_ACEOF
34712
34713else
34714 echo "$as_me: failed program was:" >&5
34715sed 's/^/| /' conftest.$ac_ext >&5
34716
34717echo "$as_me:$LINENO: result: no" >&5
34718echo "${ECHO_T}no" >&6
34719fi
ac1cb8d3 34720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34721
34722
34723cat >confcache <<\_ACEOF
34724# This file is a shell script that caches the results of configure
34725# tests run on this system so they can be shared between configure
34726# scripts and configure runs, see configure's option --config-cache.
34727# It is not useful on other systems. If it contains results you don't
34728# want to keep, you may remove or edit it.
34729#
34730# config.status only pays attention to the cache file if you give it
34731# the --recheck option to rerun configure.
34732#
34733# `ac_cv_env_foo' variables (set or unset) will be overridden when
34734# loading this file, other *unset* `ac_cv_foo' will be assigned the
34735# following values.
34736
34737_ACEOF
34738
34739# The following way of writing the cache mishandles newlines in values,
34740# but we know of no workaround that is simple, portable, and efficient.
34741# So, don't put newlines in cache variables' values.
34742# Ultrix sh set writes to stderr and can't be redirected directly,
34743# and sets the high bit in the cache file unless we assign to the vars.
34744{
34745 (set) 2>&1 |
34746 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34747 *ac_space=\ *)
34748 # `set' does not quote correctly, so add quotes (double-quote
34749 # substitution turns \\\\ into \\, and sed turns \\ into \).
34750 sed -n \
ac1cb8d3
VS
34751 "s/'/'\\\\''/g;
34752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34753 ;;
34754 *)
34755 # `set' quotes correctly as required by POSIX, so do not add quotes.
34756 sed -n \
ac1cb8d3 34757 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34758 ;;
34759 esac;
34760} |
34761 sed '
34762 t clear
34763 : clear
34764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34765 t end
34766 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34767 : end' >>confcache
34768if diff $cache_file confcache >/dev/null 2>&1; then :; else
34769 if test -w $cache_file; then
34770 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34771 cat confcache >$cache_file
34772 else
34773 echo "not updating unwritable cache $cache_file"
34774 fi
34775fi
34776rm -f confcache
34777
34778
34779CPP_MT_FLAG=
34780if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34781
34782
34783 THREADS_LINK=
34784 THREADS_CFLAGS=
34785
34786 if test "$wxUSE_THREADS" = "yes" ; then
34787 if test "$USE_BEOS" = 1; then
34788 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34789echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34790 wxUSE_THREADS="no"
34791 fi
34792 fi
34793
34794 if test "$wxUSE_THREADS" = "yes" ; then
34795
34796
34797 THREAD_OPTS="-pthread"
34798 case "${host}" in
34799 *-*-solaris2* | *-*-sunos4* )
34800 if test "x$GCC" = "xyes"; then
34801 THREAD_OPTS="-pthreads $THREAD_OPTS"
34802 else
34803 THREAD_OPTS="-mt $THREAD_OPTS"
34804 fi
34805 ;;
34806 *-*-freebsd*)
34807 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34808 ;;
34809 *-*-darwin* | *-*-cygwin* )
34810 THREAD_OPTS=""
34811 ;;
34812 *-*-aix*)
34813 THREAD_OPTS="pthreads"
34814 ;;
34815 *-hp-hpux* )
00421666
MW
34816 if test "x$GCC" = "xyes"; then
34817 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
34818 THREAD_OPTS=""
34819 else
efdf6afe 34820 THREAD_OPTS=""
a848cd7e
SC
34821 fi
34822 ;;
34823
34824 *-*-irix* )
34825 if test "x$GCC" = "xyes"; then
34826 THREAD_OPTS=""
34827 fi
34828 ;;
34829
34830 *-*-*UnixWare*)
34831 if test "x$GCC" != "xyes"; then
34832 THREAD_OPTS="-Ethread"
34833 fi
34834 ;;
34835 esac
34836
34837 THREAD_OPTS="$THREAD_OPTS pthread none"
34838
34839 THREADS_OK=no
34840 for flag in $THREAD_OPTS; do
34841 case $flag in
34842 none)
34843 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34844echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34845 ;;
34846
34847 -*)
34848 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34849echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34850 THREADS_CFLAGS="$flag"
34851 ;;
34852
34853 *)
34854 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34855echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34856 THREADS_LINK="-l$flag"
34857 ;;
34858 esac
34859
34860 save_LIBS="$LIBS"
34861 save_CFLAGS="$CFLAGS"
34862 LIBS="$THREADS_LINK $LIBS"
34863 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34864
34865 cat >conftest.$ac_ext <<_ACEOF
34866/* confdefs.h. */
34867_ACEOF
34868cat confdefs.h >>conftest.$ac_ext
34869cat >>conftest.$ac_ext <<_ACEOF
34870/* end confdefs.h. */
34871#include <pthread.h>
34872int
34873main ()
34874{
34875pthread_create(0,0,0,0);
34876 ;
34877 return 0;
34878}
34879_ACEOF
34880rm -f conftest.$ac_objext conftest$ac_exeext
34881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34882 (eval $ac_link) 2>conftest.er1
a848cd7e 34883 ac_status=$?
ac1cb8d3
VS
34884 grep -v '^ *+' conftest.er1 >conftest.err
34885 rm -f conftest.er1
34886 cat conftest.err >&5
a848cd7e
SC
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
6ebeb4c7 34889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; } &&
34895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34897 (eval $ac_try) 2>&5
34898 ac_status=$?
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; }; then
34901 THREADS_OK=yes
34902else
34903 echo "$as_me: failed program was:" >&5
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
34906fi
ac1cb8d3
VS
34907rm -f conftest.err conftest.$ac_objext \
34908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34909
34910 LIBS="$save_LIBS"
34911 CFLAGS="$save_CFLAGS"
34912
34913 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34914echo "${ECHO_T}$THREADS_OK" >&6
34915 if test "x$THREADS_OK" = "xyes"; then
34916 break;
34917 fi
34918
34919 THREADS_LINK=""
34920 THREADS_CFLAGS=""
34921 done
34922
34923 if test "x$THREADS_OK" != "xyes"; then
34924 wxUSE_THREADS=no
34925 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34926echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34927 else
34928 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34929 LIBS="$THREADS_LINK $LIBS"
34930
34931 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34932echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34933 flag=no
34934 case "${host}" in
34935 *-aix*)
34936 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34937 flag="-D_THREAD_SAFE"
34938 ;;
34939 *-freebsd*)
34940 flag="-D_THREAD_SAFE"
34941 ;;
34942 *-hp-hpux* )
34943 flag="-D_REENTRANT"
34944 if test "x$GCC" != "xyes"; then
34945 flag="$flag -D_RWSTD_MULTI_THREAD"
34946 fi
34947 ;;
34948 *solaris* | alpha*-osf*)
34949 flag="-D_REENTRANT"
34950 ;;
34951 esac
34952 echo "$as_me:$LINENO: result: ${flag}" >&5
34953echo "${ECHO_T}${flag}" >&6
34954 if test "x$flag" != xno; then
34955 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34956 fi
34957
34958 if test "x$THREADS_CFLAGS" != "x"; then
34959 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34960 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34961 fi
34962 fi
34963 fi
34964
34965 if test "$wxUSE_THREADS" = "yes" ; then
34966
34967for ac_func in thr_setconcurrency
34968do
34969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34970echo "$as_me:$LINENO: checking for $ac_func" >&5
34971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34972if eval "test \"\${$as_ac_var+set}\" = set"; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34974else
34975 cat >conftest.$ac_ext <<_ACEOF
34976/* confdefs.h. */
34977_ACEOF
34978cat confdefs.h >>conftest.$ac_ext
34979cat >>conftest.$ac_ext <<_ACEOF
34980/* end confdefs.h. */
ac1cb8d3
VS
34981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34983#define $ac_func innocuous_$ac_func
34984
a848cd7e
SC
34985/* System header to define __stub macros and hopefully few prototypes,
34986 which can conflict with char $ac_func (); below.
34987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34989
a848cd7e
SC
34990#ifdef __STDC__
34991# include <limits.h>
34992#else
34993# include <assert.h>
34994#endif
ac1cb8d3
VS
34995
34996#undef $ac_func
34997
a848cd7e
SC
34998/* Override any gcc2 internal prototype to avoid an error. */
34999#ifdef __cplusplus
35000extern "C"
35001{
35002#endif
35003/* We use char because int might match the return type of a gcc2
35004 builtin and then its argument prototype would still apply. */
35005char $ac_func ();
35006/* The GNU C library defines this for functions which it implements
35007 to always fail with ENOSYS. Some functions are actually named
35008 something starting with __ and the normal name is an alias. */
35009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35010choke me
35011#else
35012char (*f) () = $ac_func;
35013#endif
35014#ifdef __cplusplus
35015}
35016#endif
35017
35018int
35019main ()
35020{
35021return f != $ac_func;
35022 ;
35023 return 0;
35024}
35025_ACEOF
35026rm -f conftest.$ac_objext conftest$ac_exeext
35027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35028 (eval $ac_link) 2>conftest.er1
a848cd7e 35029 ac_status=$?
ac1cb8d3
VS
35030 grep -v '^ *+' conftest.er1 >conftest.err
35031 rm -f conftest.er1
35032 cat conftest.err >&5
a848cd7e
SC
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); } &&
6ebeb4c7 35035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35038 ac_status=$?
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; } &&
35041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043 (eval $ac_try) 2>&5
35044 ac_status=$?
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; }; then
35047 eval "$as_ac_var=yes"
35048else
35049 echo "$as_me: failed program was:" >&5
35050sed 's/^/| /' conftest.$ac_ext >&5
35051
35052eval "$as_ac_var=no"
35053fi
ac1cb8d3
VS
35054rm -f conftest.err conftest.$ac_objext \
35055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35056fi
35057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35059if test `eval echo '${'$as_ac_var'}'` = yes; then
35060 cat >>confdefs.h <<_ACEOF
35061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35062_ACEOF
35063
35064fi
35065done
35066
35067
6ebeb4c7
VZ
35068 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
35069echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
35070if test "${wx_cv_func_pthread_cleanup+set}" = set; then
35071 echo $ECHO_N "(cached) $ECHO_C" >&6
35072else
35073
35074 cat >conftest.$ac_ext <<_ACEOF
35075/* confdefs.h. */
35076_ACEOF
35077cat confdefs.h >>conftest.$ac_ext
35078cat >>conftest.$ac_ext <<_ACEOF
35079/* end confdefs.h. */
35080#include <pthread.h>
35081 void ThreadCleanupFunc(void *p);
35082
35083int
35084main ()
35085{
35086
35087 void *p;
35088 pthread_cleanup_push(ThreadCleanupFunc, p);
35089 pthread_cleanup_pop(0);
35090
35091 ;
35092 return 0;
35093}
35094_ACEOF
35095rm -f conftest.$ac_objext
35096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35097 (eval $ac_compile) 2>conftest.er1
35098 ac_status=$?
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
35104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35107 ac_status=$?
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; } &&
35110 { ac_try='test -s conftest.$ac_objext'
35111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112 (eval $ac_try) 2>&5
35113 ac_status=$?
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); }; }; then
35116
35117 wx_cv_func_pthread_cleanup=yes
35118
35119else
35120 echo "$as_me: failed program was:" >&5
35121sed 's/^/| /' conftest.$ac_ext >&5
35122
35123
35124 wx_cv_func_pthread_cleanup=no
35125
35126
35127fi
35128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35129
35130fi
35131echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
35132echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
35133 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
35134 cat >>confdefs.h <<\_ACEOF
35135#define wxHAVE_PTHREAD_CLEANUP 1
35136_ACEOF
35137
35138 fi
35139
a848cd7e
SC
35140
35141for ac_header in sched.h
35142do
35143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35144if eval "test \"\${$as_ac_Header+set}\" = set"; then
35145 echo "$as_me:$LINENO: checking for $ac_header" >&5
35146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35147if eval "test \"\${$as_ac_Header+set}\" = set"; then
35148 echo $ECHO_N "(cached) $ECHO_C" >&6
35149fi
35150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35152else
35153 # Is the header compilable?
35154echo "$as_me:$LINENO: checking $ac_header usability" >&5
35155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35156cat >conftest.$ac_ext <<_ACEOF
35157/* confdefs.h. */
35158_ACEOF
35159cat confdefs.h >>conftest.$ac_ext
35160cat >>conftest.$ac_ext <<_ACEOF
35161/* end confdefs.h. */
35162$ac_includes_default
35163#include <$ac_header>
35164_ACEOF
35165rm -f conftest.$ac_objext
35166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35167 (eval $ac_compile) 2>conftest.er1
a848cd7e 35168 ac_status=$?
ac1cb8d3
VS
35169 grep -v '^ *+' conftest.er1 >conftest.err
35170 rm -f conftest.er1
35171 cat conftest.err >&5
a848cd7e
SC
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); } &&
6ebeb4c7 35174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; } &&
35180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182 (eval $ac_try) 2>&5
35183 ac_status=$?
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; }; then
35186 ac_header_compiler=yes
35187else
35188 echo "$as_me: failed program was:" >&5
35189sed 's/^/| /' conftest.$ac_ext >&5
35190
35191ac_header_compiler=no
35192fi
ac1cb8d3 35193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35195echo "${ECHO_T}$ac_header_compiler" >&6
35196
35197# Is the header present?
35198echo "$as_me:$LINENO: checking $ac_header presence" >&5
35199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35200cat >conftest.$ac_ext <<_ACEOF
35201/* confdefs.h. */
35202_ACEOF
35203cat confdefs.h >>conftest.$ac_ext
35204cat >>conftest.$ac_ext <<_ACEOF
35205/* end confdefs.h. */
35206#include <$ac_header>
35207_ACEOF
35208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35210 ac_status=$?
35211 grep -v '^ *+' conftest.er1 >conftest.err
35212 rm -f conftest.er1
35213 cat conftest.err >&5
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); } >/dev/null; then
35216 if test -s conftest.err; then
35217 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35219 else
35220 ac_cpp_err=
35221 fi
35222else
35223 ac_cpp_err=yes
35224fi
35225if test -z "$ac_cpp_err"; then
35226 ac_header_preproc=yes
35227else
35228 echo "$as_me: failed program was:" >&5
35229sed 's/^/| /' conftest.$ac_ext >&5
35230
35231 ac_header_preproc=no
35232fi
35233rm -f conftest.err conftest.$ac_ext
35234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35235echo "${ECHO_T}$ac_header_preproc" >&6
35236
35237# So? What about this header?
ac1cb8d3
VS
35238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35239 yes:no: )
a848cd7e
SC
35240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35244 ac_header_preproc=yes
a848cd7e 35245 ;;
ac1cb8d3 35246 no:yes:* )
a848cd7e
SC
35247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35259 (
35260 cat <<\_ASBOX
ac1cb8d3
VS
35261## ----------------------------------------- ##
35262## Report this to wx-dev@lists.wxwidgets.org ##
35263## ----------------------------------------- ##
a848cd7e
SC
35264_ASBOX
35265 ) |
35266 sed "s/^/$as_me: WARNING: /" >&2
35267 ;;
35268esac
35269echo "$as_me:$LINENO: checking for $ac_header" >&5
35270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35271if eval "test \"\${$as_ac_Header+set}\" = set"; then
35272 echo $ECHO_N "(cached) $ECHO_C" >&6
35273else
ac1cb8d3 35274 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35275fi
35276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35278
35279fi
35280if test `eval echo '${'$as_ac_Header'}'` = yes; then
35281 cat >>confdefs.h <<_ACEOF
35282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35283_ACEOF
35284
35285fi
35286
35287done
35288
35289 if test "$ac_cv_header_sched_h" = "yes"; then
35290 echo "$as_me:$LINENO: checking for sched_yield" >&5
35291echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35292if test "${ac_cv_func_sched_yield+set}" = set; then
35293 echo $ECHO_N "(cached) $ECHO_C" >&6
35294else
35295 cat >conftest.$ac_ext <<_ACEOF
35296/* confdefs.h. */
35297_ACEOF
35298cat confdefs.h >>conftest.$ac_ext
35299cat >>conftest.$ac_ext <<_ACEOF
35300/* end confdefs.h. */
ac1cb8d3
VS
35301/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35303#define sched_yield innocuous_sched_yield
35304
a848cd7e
SC
35305/* System header to define __stub macros and hopefully few prototypes,
35306 which can conflict with char sched_yield (); below.
35307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35308 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35309
a848cd7e
SC
35310#ifdef __STDC__
35311# include <limits.h>
35312#else
35313# include <assert.h>
35314#endif
ac1cb8d3
VS
35315
35316#undef sched_yield
35317
a848cd7e
SC
35318/* Override any gcc2 internal prototype to avoid an error. */
35319#ifdef __cplusplus
35320extern "C"
35321{
35322#endif
35323/* We use char because int might match the return type of a gcc2
35324 builtin and then its argument prototype would still apply. */
35325char sched_yield ();
35326/* The GNU C library defines this for functions which it implements
35327 to always fail with ENOSYS. Some functions are actually named
35328 something starting with __ and the normal name is an alias. */
35329#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35330choke me
35331#else
35332char (*f) () = sched_yield;
35333#endif
35334#ifdef __cplusplus
35335}
35336#endif
35337
35338int
35339main ()
35340{
35341return f != sched_yield;
35342 ;
35343 return 0;
35344}
35345_ACEOF
35346rm -f conftest.$ac_objext conftest$ac_exeext
35347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35348 (eval $ac_link) 2>conftest.er1
a848cd7e 35349 ac_status=$?
ac1cb8d3
VS
35350 grep -v '^ *+' conftest.er1 >conftest.err
35351 rm -f conftest.er1
35352 cat conftest.err >&5
a848cd7e
SC
35353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354 (exit $ac_status); } &&
6ebeb4c7 35355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357 (eval $ac_try) 2>&5
35358 ac_status=$?
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; } &&
35361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363 (eval $ac_try) 2>&5
35364 ac_status=$?
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; }; then
35367 ac_cv_func_sched_yield=yes
35368else
35369 echo "$as_me: failed program was:" >&5
35370sed 's/^/| /' conftest.$ac_ext >&5
35371
35372ac_cv_func_sched_yield=no
35373fi
ac1cb8d3
VS
35374rm -f conftest.err conftest.$ac_objext \
35375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35376fi
35377echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35378echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35379if test $ac_cv_func_sched_yield = yes; then
35380 cat >>confdefs.h <<\_ACEOF
35381#define HAVE_SCHED_YIELD 1
35382_ACEOF
35383
35384else
35385
35386 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35387echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35388if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35390else
35391 ac_check_lib_save_LIBS=$LIBS
35392LIBS="-lposix4 $LIBS"
35393cat >conftest.$ac_ext <<_ACEOF
35394/* confdefs.h. */
35395_ACEOF
35396cat confdefs.h >>conftest.$ac_ext
35397cat >>conftest.$ac_ext <<_ACEOF
35398/* end confdefs.h. */
35399
35400/* Override any gcc2 internal prototype to avoid an error. */
35401#ifdef __cplusplus
35402extern "C"
35403#endif
35404/* We use char because int might match the return type of a gcc2
35405 builtin and then its argument prototype would still apply. */
35406char sched_yield ();
35407int
35408main ()
35409{
35410sched_yield ();
35411 ;
35412 return 0;
35413}
35414_ACEOF
35415rm -f conftest.$ac_objext conftest$ac_exeext
35416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35417 (eval $ac_link) 2>conftest.er1
a848cd7e 35418 ac_status=$?
ac1cb8d3
VS
35419 grep -v '^ *+' conftest.er1 >conftest.err
35420 rm -f conftest.er1
35421 cat conftest.err >&5
a848cd7e
SC
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } &&
6ebeb4c7 35424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35427 ac_status=$?
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; } &&
35430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432 (eval $ac_try) 2>&5
35433 ac_status=$?
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; }; then
35436 ac_cv_lib_posix4_sched_yield=yes
35437else
35438 echo "$as_me: failed program was:" >&5
35439sed 's/^/| /' conftest.$ac_ext >&5
35440
35441ac_cv_lib_posix4_sched_yield=no
35442fi
ac1cb8d3
VS
35443rm -f conftest.err conftest.$ac_objext \
35444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35445LIBS=$ac_check_lib_save_LIBS
35446fi
35447echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35448echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35449if test $ac_cv_lib_posix4_sched_yield = yes; then
35450 cat >>confdefs.h <<\_ACEOF
35451#define HAVE_SCHED_YIELD 1
35452_ACEOF
35453 POSIX4_LINK=" -lposix4"
35454else
35455 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35456echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35457
35458fi
35459
35460
35461
35462fi
35463
35464 fi
35465
35466 HAVE_PRIOR_FUNCS=0
35467 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35468echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35469if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471else
35472 cat >conftest.$ac_ext <<_ACEOF
35473/* confdefs.h. */
35474_ACEOF
35475cat confdefs.h >>conftest.$ac_ext
35476cat >>conftest.$ac_ext <<_ACEOF
35477/* end confdefs.h. */
ac1cb8d3
VS
35478/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35480#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35481
a848cd7e
SC
35482/* System header to define __stub macros and hopefully few prototypes,
35483 which can conflict with char pthread_attr_getschedpolicy (); below.
35484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35485 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35486
a848cd7e
SC
35487#ifdef __STDC__
35488# include <limits.h>
35489#else
35490# include <assert.h>
35491#endif
ac1cb8d3
VS
35492
35493#undef pthread_attr_getschedpolicy
35494
a848cd7e
SC
35495/* Override any gcc2 internal prototype to avoid an error. */
35496#ifdef __cplusplus
35497extern "C"
35498{
35499#endif
35500/* We use char because int might match the return type of a gcc2
35501 builtin and then its argument prototype would still apply. */
35502char pthread_attr_getschedpolicy ();
35503/* The GNU C library defines this for functions which it implements
35504 to always fail with ENOSYS. Some functions are actually named
35505 something starting with __ and the normal name is an alias. */
35506#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35507choke me
35508#else
35509char (*f) () = pthread_attr_getschedpolicy;
35510#endif
35511#ifdef __cplusplus
35512}
35513#endif
35514
35515int
35516main ()
35517{
35518return f != pthread_attr_getschedpolicy;
35519 ;
35520 return 0;
35521}
35522_ACEOF
35523rm -f conftest.$ac_objext conftest$ac_exeext
35524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35525 (eval $ac_link) 2>conftest.er1
a848cd7e 35526 ac_status=$?
ac1cb8d3
VS
35527 grep -v '^ *+' conftest.er1 >conftest.err
35528 rm -f conftest.er1
35529 cat conftest.err >&5
a848cd7e
SC
35530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); } &&
6ebeb4c7 35532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534 (eval $ac_try) 2>&5
35535 ac_status=$?
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); }; } &&
35538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35540 (eval $ac_try) 2>&5
35541 ac_status=$?
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); }; }; then
35544 ac_cv_func_pthread_attr_getschedpolicy=yes
35545else
35546 echo "$as_me: failed program was:" >&5
35547sed 's/^/| /' conftest.$ac_ext >&5
35548
35549ac_cv_func_pthread_attr_getschedpolicy=no
35550fi
ac1cb8d3
VS
35551rm -f conftest.err conftest.$ac_objext \
35552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35553fi
35554echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35555echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35556if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35557 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35558echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35559if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35560 echo $ECHO_N "(cached) $ECHO_C" >&6
35561else
35562 cat >conftest.$ac_ext <<_ACEOF
35563/* confdefs.h. */
35564_ACEOF
35565cat confdefs.h >>conftest.$ac_ext
35566cat >>conftest.$ac_ext <<_ACEOF
35567/* end confdefs.h. */
ac1cb8d3
VS
35568/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35570#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35571
a848cd7e
SC
35572/* System header to define __stub macros and hopefully few prototypes,
35573 which can conflict with char pthread_attr_setschedparam (); below.
35574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35575 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35576
a848cd7e
SC
35577#ifdef __STDC__
35578# include <limits.h>
35579#else
35580# include <assert.h>
35581#endif
ac1cb8d3
VS
35582
35583#undef pthread_attr_setschedparam
35584
a848cd7e
SC
35585/* Override any gcc2 internal prototype to avoid an error. */
35586#ifdef __cplusplus
35587extern "C"
35588{
35589#endif
35590/* We use char because int might match the return type of a gcc2
35591 builtin and then its argument prototype would still apply. */
35592char pthread_attr_setschedparam ();
35593/* The GNU C library defines this for functions which it implements
35594 to always fail with ENOSYS. Some functions are actually named
35595 something starting with __ and the normal name is an alias. */
35596#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35597choke me
35598#else
35599char (*f) () = pthread_attr_setschedparam;
35600#endif
35601#ifdef __cplusplus
35602}
35603#endif
35604
35605int
35606main ()
35607{
35608return f != pthread_attr_setschedparam;
35609 ;
35610 return 0;
35611}
35612_ACEOF
35613rm -f conftest.$ac_objext conftest$ac_exeext
35614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35615 (eval $ac_link) 2>conftest.er1
a848cd7e 35616 ac_status=$?
ac1cb8d3
VS
35617 grep -v '^ *+' conftest.er1 >conftest.err
35618 rm -f conftest.er1
35619 cat conftest.err >&5
a848cd7e
SC
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); } &&
6ebeb4c7 35622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35624 (eval $ac_try) 2>&5
35625 ac_status=$?
35626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627 (exit $ac_status); }; } &&
35628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35631 ac_status=$?
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
35634 ac_cv_func_pthread_attr_setschedparam=yes
35635else
35636 echo "$as_me: failed program was:" >&5
35637sed 's/^/| /' conftest.$ac_ext >&5
35638
35639ac_cv_func_pthread_attr_setschedparam=no
35640fi
ac1cb8d3
VS
35641rm -f conftest.err conftest.$ac_objext \
35642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35643fi
35644echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35645echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35646if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35647 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35648echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35649if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35650 echo $ECHO_N "(cached) $ECHO_C" >&6
35651else
35652 cat >conftest.$ac_ext <<_ACEOF
35653/* confdefs.h. */
35654_ACEOF
35655cat confdefs.h >>conftest.$ac_ext
35656cat >>conftest.$ac_ext <<_ACEOF
35657/* end confdefs.h. */
ac1cb8d3
VS
35658/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35660#define sched_get_priority_max innocuous_sched_get_priority_max
35661
a848cd7e
SC
35662/* System header to define __stub macros and hopefully few prototypes,
35663 which can conflict with char sched_get_priority_max (); below.
35664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35665 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35666
a848cd7e
SC
35667#ifdef __STDC__
35668# include <limits.h>
35669#else
35670# include <assert.h>
35671#endif
ac1cb8d3
VS
35672
35673#undef sched_get_priority_max
35674
a848cd7e
SC
35675/* Override any gcc2 internal prototype to avoid an error. */
35676#ifdef __cplusplus
35677extern "C"
35678{
35679#endif
35680/* We use char because int might match the return type of a gcc2
35681 builtin and then its argument prototype would still apply. */
35682char sched_get_priority_max ();
35683/* The GNU C library defines this for functions which it implements
35684 to always fail with ENOSYS. Some functions are actually named
35685 something starting with __ and the normal name is an alias. */
35686#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35687choke me
35688#else
35689char (*f) () = sched_get_priority_max;
35690#endif
35691#ifdef __cplusplus
35692}
35693#endif
35694
35695int
35696main ()
35697{
35698return f != sched_get_priority_max;
35699 ;
35700 return 0;
35701}
35702_ACEOF
35703rm -f conftest.$ac_objext conftest$ac_exeext
35704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35705 (eval $ac_link) 2>conftest.er1
a848cd7e 35706 ac_status=$?
ac1cb8d3
VS
35707 grep -v '^ *+' conftest.er1 >conftest.err
35708 rm -f conftest.er1
35709 cat conftest.err >&5
a848cd7e
SC
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); } &&
6ebeb4c7 35712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714 (eval $ac_try) 2>&5
35715 ac_status=$?
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; } &&
35718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720 (eval $ac_try) 2>&5
35721 ac_status=$?
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; }; then
35724 ac_cv_func_sched_get_priority_max=yes
35725else
35726 echo "$as_me: failed program was:" >&5
35727sed 's/^/| /' conftest.$ac_ext >&5
35728
35729ac_cv_func_sched_get_priority_max=no
35730fi
ac1cb8d3
VS
35731rm -f conftest.err conftest.$ac_objext \
35732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35733fi
35734echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35735echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35736if test $ac_cv_func_sched_get_priority_max = yes; then
35737 HAVE_PRIOR_FUNCS=1
35738else
35739 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35740echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35741if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35742 echo $ECHO_N "(cached) $ECHO_C" >&6
35743else
35744 ac_check_lib_save_LIBS=$LIBS
35745LIBS="-lposix4 $LIBS"
35746cat >conftest.$ac_ext <<_ACEOF
35747/* confdefs.h. */
35748_ACEOF
35749cat confdefs.h >>conftest.$ac_ext
35750cat >>conftest.$ac_ext <<_ACEOF
35751/* end confdefs.h. */
35752
35753/* Override any gcc2 internal prototype to avoid an error. */
35754#ifdef __cplusplus
35755extern "C"
35756#endif
35757/* We use char because int might match the return type of a gcc2
35758 builtin and then its argument prototype would still apply. */
35759char sched_get_priority_max ();
35760int
35761main ()
35762{
35763sched_get_priority_max ();
35764 ;
35765 return 0;
35766}
35767_ACEOF
35768rm -f conftest.$ac_objext conftest$ac_exeext
35769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35770 (eval $ac_link) 2>conftest.er1
a848cd7e 35771 ac_status=$?
ac1cb8d3
VS
35772 grep -v '^ *+' conftest.er1 >conftest.err
35773 rm -f conftest.er1
35774 cat conftest.err >&5
a848cd7e
SC
35775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776 (exit $ac_status); } &&
6ebeb4c7 35777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779 (eval $ac_try) 2>&5
35780 ac_status=$?
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); }; } &&
35783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35786 ac_status=$?
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; }; then
35789 ac_cv_lib_posix4_sched_get_priority_max=yes
35790else
35791 echo "$as_me: failed program was:" >&5
35792sed 's/^/| /' conftest.$ac_ext >&5
35793
35794ac_cv_lib_posix4_sched_get_priority_max=no
35795fi
ac1cb8d3
VS
35796rm -f conftest.err conftest.$ac_objext \
35797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35798LIBS=$ac_check_lib_save_LIBS
35799fi
35800echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35801echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35802if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35803
35804 HAVE_PRIOR_FUNCS=1
35805 POSIX4_LINK=" -lposix4"
35806
35807fi
35808
35809
35810fi
35811
35812
35813fi
35814
35815
35816fi
35817
35818
35819 if test "$HAVE_PRIOR_FUNCS" = 1; then
35820 cat >>confdefs.h <<\_ACEOF
35821#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35822_ACEOF
35823
35824 else
35825 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35826echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35827 fi
35828
35829 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35830echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35831if test "${ac_cv_func_pthread_cancel+set}" = set; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35833else
35834 cat >conftest.$ac_ext <<_ACEOF
35835/* confdefs.h. */
35836_ACEOF
35837cat confdefs.h >>conftest.$ac_ext
35838cat >>conftest.$ac_ext <<_ACEOF
35839/* end confdefs.h. */
ac1cb8d3
VS
35840/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35842#define pthread_cancel innocuous_pthread_cancel
35843
a848cd7e
SC
35844/* System header to define __stub macros and hopefully few prototypes,
35845 which can conflict with char pthread_cancel (); below.
35846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35847 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35848
a848cd7e
SC
35849#ifdef __STDC__
35850# include <limits.h>
35851#else
35852# include <assert.h>
35853#endif
ac1cb8d3
VS
35854
35855#undef pthread_cancel
35856
a848cd7e
SC
35857/* Override any gcc2 internal prototype to avoid an error. */
35858#ifdef __cplusplus
35859extern "C"
35860{
35861#endif
35862/* We use char because int might match the return type of a gcc2
35863 builtin and then its argument prototype would still apply. */
35864char pthread_cancel ();
35865/* The GNU C library defines this for functions which it implements
35866 to always fail with ENOSYS. Some functions are actually named
35867 something starting with __ and the normal name is an alias. */
35868#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35869choke me
35870#else
35871char (*f) () = pthread_cancel;
35872#endif
35873#ifdef __cplusplus
35874}
35875#endif
35876
35877int
35878main ()
35879{
35880return f != pthread_cancel;
35881 ;
35882 return 0;
35883}
35884_ACEOF
35885rm -f conftest.$ac_objext conftest$ac_exeext
35886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35887 (eval $ac_link) 2>conftest.er1
a848cd7e 35888 ac_status=$?
ac1cb8d3
VS
35889 grep -v '^ *+' conftest.er1 >conftest.err
35890 rm -f conftest.er1
35891 cat conftest.err >&5
a848cd7e
SC
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } &&
6ebeb4c7 35894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896 (eval $ac_try) 2>&5
35897 ac_status=$?
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); }; } &&
35900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35902 (eval $ac_try) 2>&5
35903 ac_status=$?
35904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905 (exit $ac_status); }; }; then
35906 ac_cv_func_pthread_cancel=yes
35907else
35908 echo "$as_me: failed program was:" >&5
35909sed 's/^/| /' conftest.$ac_ext >&5
35910
35911ac_cv_func_pthread_cancel=no
35912fi
ac1cb8d3
VS
35913rm -f conftest.err conftest.$ac_objext \
35914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35915fi
35916echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35917echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35918if test $ac_cv_func_pthread_cancel = yes; then
35919 cat >>confdefs.h <<\_ACEOF
35920#define HAVE_PTHREAD_CANCEL 1
35921_ACEOF
35922
35923else
35924 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35925echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35926fi
35927
35928
abc736fd
MW
35929 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35930echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35931if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35932 echo $ECHO_N "(cached) $ECHO_C" >&6
35933else
35934 cat >conftest.$ac_ext <<_ACEOF
35935/* confdefs.h. */
35936_ACEOF
35937cat confdefs.h >>conftest.$ac_ext
35938cat >>conftest.$ac_ext <<_ACEOF
35939/* end confdefs.h. */
35940/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35942#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35943
35944/* System header to define __stub macros and hopefully few prototypes,
35945 which can conflict with char pthread_attr_setstacksize (); below.
35946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35947 <limits.h> exists even on freestanding compilers. */
35948
35949#ifdef __STDC__
35950# include <limits.h>
35951#else
35952# include <assert.h>
35953#endif
35954
35955#undef pthread_attr_setstacksize
35956
35957/* Override any gcc2 internal prototype to avoid an error. */
35958#ifdef __cplusplus
35959extern "C"
35960{
35961#endif
35962/* We use char because int might match the return type of a gcc2
35963 builtin and then its argument prototype would still apply. */
35964char pthread_attr_setstacksize ();
35965/* The GNU C library defines this for functions which it implements
35966 to always fail with ENOSYS. Some functions are actually named
35967 something starting with __ and the normal name is an alias. */
35968#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35969choke me
35970#else
35971char (*f) () = pthread_attr_setstacksize;
35972#endif
35973#ifdef __cplusplus
35974}
35975#endif
35976
35977int
35978main ()
35979{
35980return f != pthread_attr_setstacksize;
35981 ;
35982 return 0;
35983}
35984_ACEOF
35985rm -f conftest.$ac_objext conftest$ac_exeext
35986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35987 (eval $ac_link) 2>conftest.er1
35988 ac_status=$?
35989 grep -v '^ *+' conftest.er1 >conftest.err
35990 rm -f conftest.er1
35991 cat conftest.err >&5
35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 (exit $ac_status); } &&
6ebeb4c7 35994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35996 (eval $ac_try) 2>&5
35997 ac_status=$?
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); }; } &&
36000 { ac_try='test -s conftest$ac_exeext'
36001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36002 (eval $ac_try) 2>&5
36003 ac_status=$?
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); }; }; then
36006 ac_cv_func_pthread_attr_setstacksize=yes
36007else
36008 echo "$as_me: failed program was:" >&5
36009sed 's/^/| /' conftest.$ac_ext >&5
36010
36011ac_cv_func_pthread_attr_setstacksize=no
36012fi
36013rm -f conftest.err conftest.$ac_objext \
36014 conftest$ac_exeext conftest.$ac_ext
36015fi
36016echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
36017echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
36018if test $ac_cv_func_pthread_attr_setstacksize = yes; then
36019 cat >>confdefs.h <<\_ACEOF
36020#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
36021_ACEOF
36022
36023fi
36024
a848cd7e
SC
36025
36026
36027 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
36028echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
36029if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36031else
36032
36033 cat >conftest.$ac_ext <<_ACEOF
36034/* confdefs.h. */
36035_ACEOF
36036cat confdefs.h >>conftest.$ac_ext
36037cat >>conftest.$ac_ext <<_ACEOF
36038/* end confdefs.h. */
36039#include <pthread.h>
36040int
36041main ()
36042{
36043
36044 pthread_mutexattr_t attr;
36045 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
36046
36047 ;
36048 return 0;
36049}
36050_ACEOF
36051rm -f conftest.$ac_objext
36052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36053 (eval $ac_compile) 2>conftest.er1
a848cd7e 36054 ac_status=$?
ac1cb8d3
VS
36055 grep -v '^ *+' conftest.er1 >conftest.err
36056 rm -f conftest.er1
36057 cat conftest.err >&5
a848cd7e
SC
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); } &&
6ebeb4c7 36060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062 (eval $ac_try) 2>&5
36063 ac_status=$?
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); }; } &&
36066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36068 (eval $ac_try) 2>&5
36069 ac_status=$?
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); }; }; then
36072
36073 wx_cv_type_pthread_mutexattr_t=yes
36074
36075else
36076 echo "$as_me: failed program was:" >&5
36077sed 's/^/| /' conftest.$ac_ext >&5
36078
36079
36080 wx_cv_type_pthread_mutexattr_t=no
36081
36082
36083fi
ac1cb8d3 36084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36085
36086fi
36087echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
36088echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
36089
36090 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
36091 cat >>confdefs.h <<\_ACEOF
36092#define HAVE_PTHREAD_MUTEXATTR_T 1
36093_ACEOF
36094
36095 else
36096 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
36097echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
36098if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36100else
36101
36102 cat >conftest.$ac_ext <<_ACEOF
36103/* confdefs.h. */
36104_ACEOF
36105cat confdefs.h >>conftest.$ac_ext
36106cat >>conftest.$ac_ext <<_ACEOF
36107/* end confdefs.h. */
36108#include <pthread.h>
36109int
36110main ()
36111{
36112
36113 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
36114
36115 ;
36116 return 0;
36117}
36118_ACEOF
36119rm -f conftest.$ac_objext
36120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36121 (eval $ac_compile) 2>conftest.er1
a848cd7e 36122 ac_status=$?
ac1cb8d3
VS
36123 grep -v '^ *+' conftest.er1 >conftest.err
36124 rm -f conftest.er1
36125 cat conftest.err >&5
a848cd7e
SC
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); } &&
6ebeb4c7 36128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; } &&
36134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 (eval $ac_try) 2>&5
36137 ac_status=$?
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); }; }; then
36140
36141 wx_cv_type_pthread_rec_mutex_init=yes
36142
36143else
36144 echo "$as_me: failed program was:" >&5
36145sed 's/^/| /' conftest.$ac_ext >&5
36146
36147
36148 wx_cv_type_pthread_rec_mutex_init=no
36149
36150
36151fi
ac1cb8d3 36152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36153
36154fi
36155echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36156echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36157 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36158 cat >>confdefs.h <<\_ACEOF
36159#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36160_ACEOF
36161
36162 else
36163 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36164echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36165 fi
36166 fi
36167 fi
36168
36169else
36170 if test "$wxUSE_THREADS" = "yes" ; then
36171 case "${host}" in
36172 *-*-mingw32* )
36173 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36174echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36175if test "${wx_cv_cflags_mthread+set}" = set; then
36176 echo $ECHO_N "(cached) $ECHO_C" >&6
36177else
36178
36179 CFLAGS_OLD="$CFLAGS"
36180 CFLAGS="$CFLAGS -mthreads"
36181 cat >conftest.$ac_ext <<_ACEOF
36182/* confdefs.h. */
36183_ACEOF
36184cat confdefs.h >>conftest.$ac_ext
36185cat >>conftest.$ac_ext <<_ACEOF
36186/* end confdefs.h. */
36187
36188int
36189main ()
36190{
36191
36192 ;
36193 return 0;
36194}
36195_ACEOF
36196rm -f conftest.$ac_objext
36197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36198 (eval $ac_compile) 2>conftest.er1
a848cd7e 36199 ac_status=$?
ac1cb8d3
VS
36200 grep -v '^ *+' conftest.er1 >conftest.err
36201 rm -f conftest.er1
36202 cat conftest.err >&5
a848cd7e
SC
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); } &&
6ebeb4c7 36205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207 (eval $ac_try) 2>&5
36208 ac_status=$?
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); }; } &&
36211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213 (eval $ac_try) 2>&5
36214 ac_status=$?
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); }; }; then
36217 wx_cv_cflags_mthread=yes
36218else
36219 echo "$as_me: failed program was:" >&5
36220sed 's/^/| /' conftest.$ac_ext >&5
36221
36222wx_cv_cflags_mthread=no
36223
36224fi
ac1cb8d3 36225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36226
36227
36228fi
36229echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36230echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36231
36232 if test "$wx_cv_cflags_mthread" = "yes"; then
36233 CXXFLAGS="$CXXFLAGS -mthreads"
36234 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36235 LDFLAGS="$LDFLAGS -mthreads"
36236 else
36237 CFLAGS="$CFLAGS_OLD"
36238 fi
36239 ;;
36240 *-pc-os2*emx )
36241 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36242 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36243 LDFLAGS="$LDFLAGS -Zmt"
36244 ;;
36245 esac
36246 fi
36247fi
36248
36249if test "$wxUSE_THREADS" = "yes"; then
36250 cat >>confdefs.h <<\_ACEOF
36251#define wxUSE_THREADS 1
36252_ACEOF
36253
36254
36255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36256else
36257 if test "$ac_cv_func_strtok_r" = "yes"; then
36258 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36259echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36260 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36261 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36262 echo "$as_me:$LINENO: result: yes" >&5
36263echo "${ECHO_T}yes" >&6
36264 else
36265 echo "$as_me:$LINENO: result: no" >&5
36266echo "${ECHO_T}no" >&6
36267 fi
36268 fi
36269fi
36270
36271if test "$WXGTK20" = 1 ; then
36272 cat >>confdefs.h <<_ACEOF
36273#define __WXGTK20__ $WXGTK20
36274_ACEOF
36275
36276 WXGTK12=1
36277fi
36278
36279if test "$WXGTK12" = 1 ; then
36280 cat >>confdefs.h <<_ACEOF
36281#define __WXGTK12__ $WXGTK12
36282_ACEOF
36283
36284fi
36285
36286if test "$WXGTK127" = 1 ; then
36287 cat >>confdefs.h <<_ACEOF
36288#define __WXGTK127__ $WXGTK127
36289_ACEOF
36290
36291fi
36292
36293if test "$WXGPE" = 1 ; then
36294 cat >>confdefs.h <<_ACEOF
36295#define __WXGPE__ $WXGPE
36296_ACEOF
36297
36298fi
36299
36300WXDEBUG=
36301
36302if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36303 WXDEBUG="-g"
36304 wxUSE_OPTIMISE=no
36305fi
36306
36307if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36308 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36309 if test "$GCC" = yes; then
36310 WXDEBUG="-ggdb"
36311 fi
a848cd7e
SC
36312fi
36313
36314if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36315 cat >>confdefs.h <<\_ACEOF
36316#define WXDEBUG 1
36317_ACEOF
36318
36319 WXDEBUG_DEFINE="-D__WXDEBUG__"
36320else
36321 if test "$wxUSE_GTK" = 1 ; then
36322 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36323 fi
36324fi
36325
36326if test "$wxUSE_MEM_TRACING" = "yes" ; then
36327 cat >>confdefs.h <<\_ACEOF
36328#define wxUSE_MEMORY_TRACING 1
36329_ACEOF
36330
36331 cat >>confdefs.h <<\_ACEOF
36332#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36333_ACEOF
36334
36335 cat >>confdefs.h <<\_ACEOF
36336#define wxUSE_DEBUG_NEW_ALWAYS 1
36337_ACEOF
36338
36339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36340fi
36341
36342if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36343 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36344fi
36345
36346PROFILE=
36347if test "$wxUSE_PROFILE" = "yes" ; then
36348 PROFILE=" -pg"
36349fi
36350
36351CODE_GEN_FLAGS=
36352CODE_GEN_FLAGS_CXX=
36353if test "$GCC" = "yes" ; then
36354 if test "$wxUSE_NO_RTTI" = "yes" ; then
36355 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36356 fi
36357 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36358 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36359 fi
36360 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36361 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36362 fi
36363
36364 case "${host}" in
36365 powerpc*-*-aix* )
36366 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36367 ;;
36368 *-hppa* )
36369 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36370 ;;
36371 esac
36372fi
36373
36374OPTIMISE=
36375if test "$wxUSE_OPTIMISE" = "no" ; then
36376 if test "$GCC" = yes ; then
36377 OPTIMISE="-O0"
36378 fi
36379else
36380 if test "$GCC" = yes ; then
36381 OPTIMISE="-O2"
36382
36383 case "${host}" in
36384 i586-*-*|i686-*-* )
36385 OPTIMISE="${OPTIMISE} "
36386 ;;
36387 esac
36388 else
36389 OPTIMISE="-O"
36390 fi
36391fi
36392
36393
36394if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36395 cat >>confdefs.h <<\_ACEOF
36396#define WXWIN_COMPATIBILITY_2_2 1
36397_ACEOF
36398
36399
36400 WXWIN_COMPATIBILITY_2_4="yes"
36401fi
36402
36403if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36404 cat >>confdefs.h <<\_ACEOF
36405#define WXWIN_COMPATIBILITY_2_4 1
36406_ACEOF
36407
36408fi
36409
36410
36411if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36412 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36413#define wxUSE_GUI 1
36414_ACEOF
36415
36416
370fd4c2 36417 fi
a848cd7e
SC
36418
36419
36420if test "$wxUSE_UNIX" = "yes"; then
36421 cat >>confdefs.h <<\_ACEOF
36422#define wxUSE_UNIX 1
36423_ACEOF
36424
36425fi
36426
36427
36428if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36429
36430 HAVE_DL_FUNCS=0
36431 HAVE_SHL_FUNCS=0
36432 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36433 if test "$USE_DARWIN" = 1; then
36434 HAVE_DL_FUNCS=1
47a7e797
MW
36435 elif test "$USE_DOS" = 1; then
36436 HAVE_DL_FUNCS=0
a848cd7e
SC
36437 else
36438
36439for ac_func in dlopen
36440do
36441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36442echo "$as_me:$LINENO: checking for $ac_func" >&5
36443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36444if eval "test \"\${$as_ac_var+set}\" = set"; then
36445 echo $ECHO_N "(cached) $ECHO_C" >&6
36446else
36447 cat >conftest.$ac_ext <<_ACEOF
36448/* confdefs.h. */
36449_ACEOF
36450cat confdefs.h >>conftest.$ac_ext
36451cat >>conftest.$ac_ext <<_ACEOF
36452/* end confdefs.h. */
ac1cb8d3
VS
36453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36455#define $ac_func innocuous_$ac_func
36456
a848cd7e
SC
36457/* System header to define __stub macros and hopefully few prototypes,
36458 which can conflict with char $ac_func (); below.
36459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36461
a848cd7e
SC
36462#ifdef __STDC__
36463# include <limits.h>
36464#else
36465# include <assert.h>
36466#endif
ac1cb8d3
VS
36467
36468#undef $ac_func
36469
a848cd7e
SC
36470/* Override any gcc2 internal prototype to avoid an error. */
36471#ifdef __cplusplus
36472extern "C"
36473{
36474#endif
36475/* We use char because int might match the return type of a gcc2
36476 builtin and then its argument prototype would still apply. */
36477char $ac_func ();
36478/* The GNU C library defines this for functions which it implements
36479 to always fail with ENOSYS. Some functions are actually named
36480 something starting with __ and the normal name is an alias. */
36481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36482choke me
36483#else
36484char (*f) () = $ac_func;
36485#endif
36486#ifdef __cplusplus
36487}
36488#endif
36489
36490int
36491main ()
36492{
36493return f != $ac_func;
36494 ;
36495 return 0;
36496}
36497_ACEOF
36498rm -f conftest.$ac_objext conftest$ac_exeext
36499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36500 (eval $ac_link) 2>conftest.er1
a848cd7e 36501 ac_status=$?
ac1cb8d3
VS
36502 grep -v '^ *+' conftest.er1 >conftest.err
36503 rm -f conftest.er1
36504 cat conftest.err >&5
a848cd7e
SC
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); } &&
6ebeb4c7 36507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36509 (eval $ac_try) 2>&5
36510 ac_status=$?
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); }; } &&
36513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36515 (eval $ac_try) 2>&5
36516 ac_status=$?
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); }; }; then
36519 eval "$as_ac_var=yes"
36520else
36521 echo "$as_me: failed program was:" >&5
36522sed 's/^/| /' conftest.$ac_ext >&5
36523
36524eval "$as_ac_var=no"
36525fi
ac1cb8d3
VS
36526rm -f conftest.err conftest.$ac_objext \
36527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36528fi
36529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36531if test `eval echo '${'$as_ac_var'}'` = yes; then
36532 cat >>confdefs.h <<_ACEOF
36533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36534_ACEOF
36535
36536 cat >>confdefs.h <<\_ACEOF
36537#define HAVE_DLOPEN 1
36538_ACEOF
36539
36540 HAVE_DL_FUNCS=1
36541
36542else
36543
36544 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36545echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36546if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36548else
36549 ac_check_lib_save_LIBS=$LIBS
36550LIBS="-ldl $LIBS"
36551cat >conftest.$ac_ext <<_ACEOF
36552/* confdefs.h. */
36553_ACEOF
36554cat confdefs.h >>conftest.$ac_ext
36555cat >>conftest.$ac_ext <<_ACEOF
36556/* end confdefs.h. */
36557
36558/* Override any gcc2 internal prototype to avoid an error. */
36559#ifdef __cplusplus
36560extern "C"
36561#endif
36562/* We use char because int might match the return type of a gcc2
36563 builtin and then its argument prototype would still apply. */
36564char dlopen ();
36565int
36566main ()
36567{
36568dlopen ();
36569 ;
36570 return 0;
36571}
36572_ACEOF
36573rm -f conftest.$ac_objext conftest$ac_exeext
36574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36575 (eval $ac_link) 2>conftest.er1
a848cd7e 36576 ac_status=$?
ac1cb8d3
VS
36577 grep -v '^ *+' conftest.er1 >conftest.err
36578 rm -f conftest.er1
36579 cat conftest.err >&5
a848cd7e
SC
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); } &&
6ebeb4c7 36582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36584 (eval $ac_try) 2>&5
36585 ac_status=$?
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); }; } &&
36588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36590 (eval $ac_try) 2>&5
36591 ac_status=$?
36592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593 (exit $ac_status); }; }; then
36594 ac_cv_lib_dl_dlopen=yes
36595else
36596 echo "$as_me: failed program was:" >&5
36597sed 's/^/| /' conftest.$ac_ext >&5
36598
36599ac_cv_lib_dl_dlopen=no
36600fi
ac1cb8d3
VS
36601rm -f conftest.err conftest.$ac_objext \
36602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36603LIBS=$ac_check_lib_save_LIBS
36604fi
36605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36607if test $ac_cv_lib_dl_dlopen = yes; then
36608
36609 cat >>confdefs.h <<\_ACEOF
36610#define HAVE_DLOPEN 1
36611_ACEOF
36612
36613 HAVE_DL_FUNCS=1
36614 DL_LINK=" -ldl$DL_LINK"
36615
36616else
36617
36618
36619for ac_func in shl_load
36620do
36621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36622echo "$as_me:$LINENO: checking for $ac_func" >&5
36623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36624if eval "test \"\${$as_ac_var+set}\" = set"; then
36625 echo $ECHO_N "(cached) $ECHO_C" >&6
36626else
36627 cat >conftest.$ac_ext <<_ACEOF
36628/* confdefs.h. */
36629_ACEOF
36630cat confdefs.h >>conftest.$ac_ext
36631cat >>conftest.$ac_ext <<_ACEOF
36632/* end confdefs.h. */
ac1cb8d3
VS
36633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36635#define $ac_func innocuous_$ac_func
36636
a848cd7e
SC
36637/* System header to define __stub macros and hopefully few prototypes,
36638 which can conflict with char $ac_func (); below.
36639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36641
a848cd7e
SC
36642#ifdef __STDC__
36643# include <limits.h>
36644#else
36645# include <assert.h>
36646#endif
ac1cb8d3
VS
36647
36648#undef $ac_func
36649
a848cd7e
SC
36650/* Override any gcc2 internal prototype to avoid an error. */
36651#ifdef __cplusplus
36652extern "C"
36653{
36654#endif
36655/* We use char because int might match the return type of a gcc2
36656 builtin and then its argument prototype would still apply. */
36657char $ac_func ();
36658/* The GNU C library defines this for functions which it implements
36659 to always fail with ENOSYS. Some functions are actually named
36660 something starting with __ and the normal name is an alias. */
36661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36662choke me
36663#else
36664char (*f) () = $ac_func;
36665#endif
36666#ifdef __cplusplus
36667}
36668#endif
36669
36670int
36671main ()
36672{
36673return f != $ac_func;
36674 ;
36675 return 0;
36676}
36677_ACEOF
36678rm -f conftest.$ac_objext conftest$ac_exeext
36679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36680 (eval $ac_link) 2>conftest.er1
a848cd7e 36681 ac_status=$?
ac1cb8d3
VS
36682 grep -v '^ *+' conftest.er1 >conftest.err
36683 rm -f conftest.er1
36684 cat conftest.err >&5
a848cd7e
SC
36685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36686 (exit $ac_status); } &&
6ebeb4c7 36687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36689 (eval $ac_try) 2>&5
36690 ac_status=$?
36691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692 (exit $ac_status); }; } &&
36693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695 (eval $ac_try) 2>&5
36696 ac_status=$?
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; }; then
36699 eval "$as_ac_var=yes"
36700else
36701 echo "$as_me: failed program was:" >&5
36702sed 's/^/| /' conftest.$ac_ext >&5
36703
36704eval "$as_ac_var=no"
36705fi
ac1cb8d3
VS
36706rm -f conftest.err conftest.$ac_objext \
36707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36708fi
36709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36711if test `eval echo '${'$as_ac_var'}'` = yes; then
36712 cat >>confdefs.h <<_ACEOF
36713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36714_ACEOF
36715
36716 cat >>confdefs.h <<\_ACEOF
36717#define HAVE_SHL_LOAD 1
36718_ACEOF
36719
36720 HAVE_SHL_FUNCS=1
36721
36722else
36723
36724 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36725echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36726if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36727 echo $ECHO_N "(cached) $ECHO_C" >&6
36728else
36729 ac_check_lib_save_LIBS=$LIBS
36730LIBS="-lshl_load $LIBS"
36731cat >conftest.$ac_ext <<_ACEOF
36732/* confdefs.h. */
36733_ACEOF
36734cat confdefs.h >>conftest.$ac_ext
36735cat >>conftest.$ac_ext <<_ACEOF
36736/* end confdefs.h. */
36737
36738/* Override any gcc2 internal prototype to avoid an error. */
36739#ifdef __cplusplus
36740extern "C"
36741#endif
36742/* We use char because int might match the return type of a gcc2
36743 builtin and then its argument prototype would still apply. */
36744char dld ();
36745int
36746main ()
36747{
36748dld ();
36749 ;
36750 return 0;
36751}
36752_ACEOF
36753rm -f conftest.$ac_objext conftest$ac_exeext
36754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36755 (eval $ac_link) 2>conftest.er1
a848cd7e 36756 ac_status=$?
ac1cb8d3
VS
36757 grep -v '^ *+' conftest.er1 >conftest.err
36758 rm -f conftest.er1
36759 cat conftest.err >&5
a848cd7e
SC
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); } &&
6ebeb4c7 36762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); }; } &&
36768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; }; then
36774 ac_cv_lib_shl_load_dld=yes
36775else
36776 echo "$as_me: failed program was:" >&5
36777sed 's/^/| /' conftest.$ac_ext >&5
36778
36779ac_cv_lib_shl_load_dld=no
36780fi
ac1cb8d3
VS
36781rm -f conftest.err conftest.$ac_objext \
36782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36783LIBS=$ac_check_lib_save_LIBS
36784fi
36785echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36786echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36787if test $ac_cv_lib_shl_load_dld = yes; then
36788
36789 HAVE_SHL_FUNCS=1
36790 DL_LINK=" -ldld$DL_LINK"
36791
36792fi
36793
36794
36795fi
36796done
36797
36798
36799fi
36800
36801
36802fi
36803done
36804
36805
36806 if test "$HAVE_DL_FUNCS" = 1; then
36807
36808for ac_func in dlerror
36809do
36810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36811echo "$as_me:$LINENO: checking for $ac_func" >&5
36812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36813if eval "test \"\${$as_ac_var+set}\" = set"; then
36814 echo $ECHO_N "(cached) $ECHO_C" >&6
36815else
36816 cat >conftest.$ac_ext <<_ACEOF
36817/* confdefs.h. */
36818_ACEOF
36819cat confdefs.h >>conftest.$ac_ext
36820cat >>conftest.$ac_ext <<_ACEOF
36821/* end confdefs.h. */
ac1cb8d3
VS
36822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36824#define $ac_func innocuous_$ac_func
36825
a848cd7e
SC
36826/* System header to define __stub macros and hopefully few prototypes,
36827 which can conflict with char $ac_func (); below.
36828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36830
a848cd7e
SC
36831#ifdef __STDC__
36832# include <limits.h>
36833#else
36834# include <assert.h>
36835#endif
ac1cb8d3
VS
36836
36837#undef $ac_func
36838
a848cd7e
SC
36839/* Override any gcc2 internal prototype to avoid an error. */
36840#ifdef __cplusplus
36841extern "C"
36842{
36843#endif
36844/* We use char because int might match the return type of a gcc2
36845 builtin and then its argument prototype would still apply. */
36846char $ac_func ();
36847/* The GNU C library defines this for functions which it implements
36848 to always fail with ENOSYS. Some functions are actually named
36849 something starting with __ and the normal name is an alias. */
36850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36851choke me
36852#else
36853char (*f) () = $ac_func;
36854#endif
36855#ifdef __cplusplus
36856}
36857#endif
36858
36859int
36860main ()
36861{
36862return f != $ac_func;
36863 ;
36864 return 0;
36865}
36866_ACEOF
36867rm -f conftest.$ac_objext conftest$ac_exeext
36868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36869 (eval $ac_link) 2>conftest.er1
a848cd7e 36870 ac_status=$?
ac1cb8d3
VS
36871 grep -v '^ *+' conftest.er1 >conftest.err
36872 rm -f conftest.er1
36873 cat conftest.err >&5
a848cd7e
SC
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } &&
6ebeb4c7 36876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884 (eval $ac_try) 2>&5
36885 ac_status=$?
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); }; }; then
36888 eval "$as_ac_var=yes"
36889else
36890 echo "$as_me: failed program was:" >&5
36891sed 's/^/| /' conftest.$ac_ext >&5
36892
36893eval "$as_ac_var=no"
36894fi
ac1cb8d3
VS
36895rm -f conftest.err conftest.$ac_objext \
36896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36897fi
36898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36900if test `eval echo '${'$as_ac_var'}'` = yes; then
36901 cat >>confdefs.h <<_ACEOF
36902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36903_ACEOF
36904 cat >>confdefs.h <<\_ACEOF
36905#define HAVE_DLERROR 1
36906_ACEOF
36907
36908else
36909
36910 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36911echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36912if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36913 echo $ECHO_N "(cached) $ECHO_C" >&6
36914else
36915 ac_check_lib_save_LIBS=$LIBS
36916LIBS="-ldl $LIBS"
36917cat >conftest.$ac_ext <<_ACEOF
36918/* confdefs.h. */
36919_ACEOF
36920cat confdefs.h >>conftest.$ac_ext
36921cat >>conftest.$ac_ext <<_ACEOF
36922/* end confdefs.h. */
36923
36924/* Override any gcc2 internal prototype to avoid an error. */
36925#ifdef __cplusplus
36926extern "C"
36927#endif
36928/* We use char because int might match the return type of a gcc2
36929 builtin and then its argument prototype would still apply. */
36930char dlerror ();
36931int
36932main ()
36933{
36934dlerror ();
36935 ;
36936 return 0;
36937}
36938_ACEOF
36939rm -f conftest.$ac_objext conftest$ac_exeext
36940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36941 (eval $ac_link) 2>conftest.er1
a848cd7e 36942 ac_status=$?
ac1cb8d3
VS
36943 grep -v '^ *+' conftest.er1 >conftest.err
36944 rm -f conftest.er1
36945 cat conftest.err >&5
a848cd7e
SC
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); } &&
6ebeb4c7 36948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950 (eval $ac_try) 2>&5
36951 ac_status=$?
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; } &&
36954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36957 ac_status=$?
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; }; then
36960 ac_cv_lib_dl_dlerror=yes
36961else
36962 echo "$as_me: failed program was:" >&5
36963sed 's/^/| /' conftest.$ac_ext >&5
36964
36965ac_cv_lib_dl_dlerror=no
36966fi
ac1cb8d3
VS
36967rm -f conftest.err conftest.$ac_objext \
36968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36969LIBS=$ac_check_lib_save_LIBS
36970fi
36971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36972echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36973if test $ac_cv_lib_dl_dlerror = yes; then
36974 cat >>confdefs.h <<\_ACEOF
36975#define HAVE_DLERROR 1
36976_ACEOF
36977
36978fi
36979
36980
36981
36982fi
36983done
36984
36985 fi
36986 fi
36987
36988 if test "$HAVE_DL_FUNCS" = 0; then
36989 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36990 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36991 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36992echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36993 wxUSE_DYNAMIC_LOADER=no
36994 wxUSE_DYNLIB_CLASS=no
36995 else
36996 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36997echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36998 fi
36999 fi
37000 fi
37001 fi
37002fi
37003
37004if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
37005 cat >>confdefs.h <<\_ACEOF
37006#define wxUSE_DYNAMIC_LOADER 1
37007_ACEOF
37008
37009fi
37010if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37011 cat >>confdefs.h <<\_ACEOF
37012#define wxUSE_DYNLIB_CLASS 1
37013_ACEOF
37014
37015fi
37016
37017
37018
37019if test "$wxUSE_PLUGINS" = "yes" ; then
37020 if test "$wxUSE_SHARED" = "no" ; then
37021 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
37022echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
37023 wxUSE_PLUGINS=no
37024 fi
37025 if test "$wxUSE_MONOLITHIC" = "yes" ; then
37026 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
37027echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
37028 wxUSE_PLUGINS=no
37029 fi
37030 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
37031 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
37032echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
37033 wxUSE_PLUGINS=no
37034 fi
37035 if test "$wxUSE_PLUGINS" = "yes" ; then
37036 cat >>confdefs.h <<\_ACEOF
37037#define wxUSE_PLUGINS 1
37038_ACEOF
37039
37040 fi
37041fi
37042
37043
37044if test "$wxUSE_STL" = "yes"; then
37045 cat >>confdefs.h <<\_ACEOF
37046#define wxUSE_STL 1
37047_ACEOF
37048
37049fi
37050
37051if test "$wxUSE_APPLE_IEEE" = "yes"; then
37052 cat >>confdefs.h <<\_ACEOF
37053#define wxUSE_APPLE_IEEE 1
37054_ACEOF
37055
37056fi
37057
37058if test "$wxUSE_TIMER" = "yes"; then
37059 cat >>confdefs.h <<\_ACEOF
37060#define wxUSE_TIMER 1
37061_ACEOF
37062
37063fi
37064
9c112555 37065if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
37066 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
37067echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
37068if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 37069 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 37070else
d12aef51
VZ
37071
37072 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37073/* confdefs.h. */
37074_ACEOF
37075cat confdefs.h >>conftest.$ac_ext
37076cat >>conftest.$ac_ext <<_ACEOF
37077/* end confdefs.h. */
d12aef51
VZ
37078
37079 #include <sys/soundcard.h>
37080
37081int
37082main ()
37083{
37084
37085 ioctl(0, SNDCTL_DSP_SYNC, 0);
37086
37087 ;
37088 return 0;
37089}
a848cd7e 37090_ACEOF
d12aef51
VZ
37091rm -f conftest.$ac_objext conftest$ac_exeext
37092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37093 (eval $ac_link) 2>conftest.er1
a848cd7e 37094 ac_status=$?
ac1cb8d3
VS
37095 grep -v '^ *+' conftest.er1 >conftest.err
37096 rm -f conftest.er1
37097 cat conftest.err >&5
a848cd7e
SC
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } &&
6ebeb4c7 37100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
d12aef51 37106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
d12aef51 37112 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37113else
37114 echo "$as_me: failed program was:" >&5
37115sed 's/^/| /' conftest.$ac_ext >&5
37116
a848cd7e 37117
d12aef51
VZ
37118 saveLibs="$LIBS"
37119 LIBS="$saveLibs -lossaudio"
37120 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37121/* confdefs.h. */
37122_ACEOF
37123cat confdefs.h >>conftest.$ac_ext
37124cat >>conftest.$ac_ext <<_ACEOF
37125/* end confdefs.h. */
d12aef51
VZ
37126
37127 #include <sys/soundcard.h>
37128
37129int
37130main ()
37131{
37132
37133 ioctl(0, SNDCTL_DSP_SYNC, 0);
37134
37135 ;
37136 return 0;
37137}
a848cd7e 37138_ACEOF
d12aef51
VZ
37139rm -f conftest.$ac_objext conftest$ac_exeext
37140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37141 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
37142 ac_status=$?
37143 grep -v '^ *+' conftest.er1 >conftest.err
37144 rm -f conftest.er1
37145 cat conftest.err >&5
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
37147 (exit $ac_status); } &&
37148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37150 (eval $ac_try) 2>&5
37151 ac_status=$?
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); }; } &&
37154 { ac_try='test -s conftest$ac_exeext'
37155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37156 (eval $ac_try) 2>&5
37157 ac_status=$?
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); }; }; then
37160 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37161else
37162 echo "$as_me: failed program was:" >&5
37163sed 's/^/| /' conftest.$ac_ext >&5
37164
a848cd7e 37165
d12aef51
VZ
37166 LIBS="$saveLibs"
37167 ac_cv_header_sys_soundcard=no
37168
37169
a848cd7e 37170fi
d12aef51
VZ
37171rm -f conftest.err conftest.$ac_objext \
37172 conftest$ac_exeext conftest.$ac_ext
37173
a848cd7e
SC
37174
37175fi
d12aef51
VZ
37176rm -f conftest.err conftest.$ac_objext \
37177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37178
37179fi
d12aef51
VZ
37180echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
37181echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 37182
d12aef51
VZ
37183 if test "$ac_cv_header_sys_soundcard" = "yes"; then
37184 cat >>confdefs.h <<\_ACEOF
37185#define HAVE_SYS_SOUNDCARD_H 1
37186_ACEOF
a848cd7e 37187
d12aef51
VZ
37188 else
37189 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
37190 fi
9c112555
MW
37191fi
37192WITH_PLUGIN_SDL=0
37193if test "$wxUSE_SOUND" = "yes"; then
37194 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37195 if test "$wxUSE_LIBSDL" != "no"; then
37196
37197# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37198if test "${with_sdl_prefix+set}" = set; then
37199 withval="$with_sdl_prefix"
37200 sdl_prefix="$withval"
37201else
37202 sdl_prefix=""
37203fi;
37204
37205# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37206if test "${with_sdl_exec_prefix+set}" = set; then
37207 withval="$with_sdl_exec_prefix"
37208 sdl_exec_prefix="$withval"
37209else
37210 sdl_exec_prefix=""
37211fi;
37212# Check whether --enable-sdltest or --disable-sdltest was given.
37213if test "${enable_sdltest+set}" = set; then
37214 enableval="$enable_sdltest"
37215
37216else
37217 enable_sdltest=yes
37218fi;
37219
37220 if test x$sdl_exec_prefix != x ; then
37221 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37222 if test x${SDL_CONFIG+set} != xset ; then
37223 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37224 fi
37225 fi
37226 if test x$sdl_prefix != x ; then
37227 sdl_args="$sdl_args --prefix=$sdl_prefix"
37228 if test x${SDL_CONFIG+set} != xset ; then
37229 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37230 fi
37231 fi
37232
37233
37234 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37235 # Extract the first word of "sdl-config", so it can be a program name with args.
37236set dummy sdl-config; ac_word=$2
37237echo "$as_me:$LINENO: checking for $ac_word" >&5
37238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37239if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37240 echo $ECHO_N "(cached) $ECHO_C" >&6
37241else
37242 case $SDL_CONFIG in
37243 [\\/]* | ?:[\\/]*)
37244 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37245 ;;
37246 *)
37247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37248for as_dir in $PATH
37249do
37250 IFS=$as_save_IFS
37251 test -z "$as_dir" && as_dir=.
37252 for ac_exec_ext in '' $ac_executable_extensions; do
37253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37254 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37256 break 2
37257 fi
37258done
37259done
37260
37261 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37262 ;;
37263esac
37264fi
37265SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37266
37267if test -n "$SDL_CONFIG"; then
37268 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37269echo "${ECHO_T}$SDL_CONFIG" >&6
37270else
37271 echo "$as_me:$LINENO: result: no" >&5
37272echo "${ECHO_T}no" >&6
37273fi
37274
37275 min_sdl_version=1.2.0
37276 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37277echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37278 no_sdl=""
37279 if test "$SDL_CONFIG" = "no" ; then
37280 no_sdl=yes
37281 else
37282 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37283 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37284
37285 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37287 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37288 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37289 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37290 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37291 if test "x$enable_sdltest" = "xyes" ; then
37292 ac_save_CFLAGS="$CFLAGS"
94acd38e 37293 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37294 ac_save_LIBS="$LIBS"
37295 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37296 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37297 LIBS="$LIBS $SDL_LIBS"
37298 rm -f conf.sdltest
37299 if test "$cross_compiling" = yes; then
37300 echo $ac_n "cross compiling; assumed OK... $ac_c"
37301else
37302 cat >conftest.$ac_ext <<_ACEOF
37303/* confdefs.h. */
37304_ACEOF
37305cat confdefs.h >>conftest.$ac_ext
37306cat >>conftest.$ac_ext <<_ACEOF
37307/* end confdefs.h. */
37308
37309#include <stdio.h>
37310#include <stdlib.h>
37311#include <string.h>
37312#include "SDL.h"
37313
37314char*
37315my_strdup (char *str)
37316{
37317 char *new_str;
37318
37319 if (str)
37320 {
37321 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37322 strcpy (new_str, str);
37323 }
37324 else
37325 new_str = NULL;
37326
37327 return new_str;
37328}
37329
37330int main (int argc, char *argv[])
37331{
37332 int major, minor, micro;
37333 char *tmp_version;
37334
37335 /* This hangs on some systems (?)
37336 system ("touch conf.sdltest");
37337 */
37338 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37339
37340 /* HP/UX 9 (%@#!) writes to sscanf strings */
37341 tmp_version = my_strdup("$min_sdl_version");
37342 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37343 printf("%s, bad version string\n", "$min_sdl_version");
37344 exit(1);
37345 }
37346
37347 if (($sdl_major_version > major) ||
37348 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37349 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37350 {
37351 return 0;
37352 }
37353 else
37354 {
37355 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37356 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37357 printf("*** best to upgrade to the required version.\n");
37358 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37359 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37360 printf("*** config.cache before re-running configure\n");
37361 return 1;
37362 }
37363}
37364
37365
37366_ACEOF
37367rm -f conftest$ac_exeext
37368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37369 (eval $ac_link) 2>&5
37370 ac_status=$?
37371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37375 ac_status=$?
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 :
37379else
37380 echo "$as_me: program exited with status $ac_status" >&5
37381echo "$as_me: failed program was:" >&5
37382sed 's/^/| /' conftest.$ac_ext >&5
37383
37384( exit $ac_status )
37385no_sdl=yes
37386fi
ac1cb8d3 37387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37388fi
37389 CFLAGS="$ac_save_CFLAGS"
94acd38e 37390 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37391 LIBS="$ac_save_LIBS"
37392 fi
37393 fi
37394 if test "x$no_sdl" = x ; then
37395 echo "$as_me:$LINENO: result: yes" >&5
37396echo "${ECHO_T}yes" >&6
37397
37398 EXTRALIBS_SDL="$SDL_LIBS"
37399 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37400 cat >>confdefs.h <<\_ACEOF
37401#define wxUSE_LIBSDL 1
37402_ACEOF
37403
37404
37405 else
37406 echo "$as_me:$LINENO: result: no" >&5
37407echo "${ECHO_T}no" >&6
37408 if test "$SDL_CONFIG" = "no" ; then
37409 echo "*** The sdl-config script installed by SDL could not be found"
37410 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37411 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37412 echo "*** full path to sdl-config."
37413 else
37414 if test -f conf.sdltest ; then
37415 :
37416 else
37417 echo "*** Could not run SDL test program, checking why..."
37418 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37419 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37420 LIBS="$LIBS $SDL_LIBS"
37421 cat >conftest.$ac_ext <<_ACEOF
37422/* confdefs.h. */
37423_ACEOF
37424cat confdefs.h >>conftest.$ac_ext
37425cat >>conftest.$ac_ext <<_ACEOF
37426/* end confdefs.h. */
37427
37428#include <stdio.h>
37429#include "SDL.h"
37430
37431int main(int argc, char *argv[])
37432{ return 0; }
37433#undef main
37434#define main K_and_R_C_main
37435
37436int
37437main ()
37438{
37439 return 0;
37440 ;
37441 return 0;
37442}
37443_ACEOF
37444rm -f conftest.$ac_objext conftest$ac_exeext
37445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37446 (eval $ac_link) 2>conftest.er1
a848cd7e 37447 ac_status=$?
ac1cb8d3
VS
37448 grep -v '^ *+' conftest.er1 >conftest.err
37449 rm -f conftest.er1
37450 cat conftest.err >&5
a848cd7e
SC
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); } &&
6ebeb4c7 37453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37456 ac_status=$?
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; } &&
37459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37462 ac_status=$?
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; }; then
37465 echo "*** The test program compiled, but did not run. This usually means"
37466 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37467 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37468 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37469 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37470 echo "*** is required on your system"
37471 echo "***"
37472 echo "*** If you have an old version installed, it is best to remove it, although"
37473 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37474else
37475 echo "$as_me: failed program was:" >&5
37476sed 's/^/| /' conftest.$ac_ext >&5
37477
37478 echo "*** The test program failed to compile or link. See the file config.log for the"
37479 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37480 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37481 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37482fi
ac1cb8d3
VS
37483rm -f conftest.err conftest.$ac_objext \
37484 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37485 CFLAGS="$ac_save_CFLAGS"
94acd38e 37486 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37487 LIBS="$ac_save_LIBS"
37488 fi
37489 fi
37490 SDL_CFLAGS=""
37491 SDL_LIBS=""
37492 wxUSE_LIBSDL="no"
37493 fi
37494
37495
37496 rm -f conf.sdltest
37497
37498 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37499 WITH_PLUGIN_SDL=1
37500 fi
37501 fi
37502 fi
37503
37504 cat >>confdefs.h <<\_ACEOF
37505#define wxUSE_SOUND 1
37506_ACEOF
37507
37508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37509fi
37510
d1c38808
VZ
37511if test "$WXGTK20" = 1; then
37512 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37513 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37514
37515
37516 succeeded=no
37517
37518 if test -z "$PKG_CONFIG"; then
37519 # Extract the first word of "pkg-config", so it can be a program name with args.
37520set dummy pkg-config; ac_word=$2
37521echo "$as_me:$LINENO: checking for $ac_word" >&5
37522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37523if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37524 echo $ECHO_N "(cached) $ECHO_C" >&6
37525else
37526 case $PKG_CONFIG in
37527 [\\/]* | ?:[\\/]*)
37528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37529 ;;
37530 *)
37531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37532for as_dir in $PATH
37533do
37534 IFS=$as_save_IFS
37535 test -z "$as_dir" && as_dir=.
37536 for ac_exec_ext in '' $ac_executable_extensions; do
37537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37540 break 2
37541 fi
37542done
37543done
37544
37545 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37546 ;;
37547esac
37548fi
37549PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37550
37551if test -n "$PKG_CONFIG"; then
37552 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37553echo "${ECHO_T}$PKG_CONFIG" >&6
37554else
37555 echo "$as_me:$LINENO: result: no" >&5
37556echo "${ECHO_T}no" >&6
37557fi
37558
37559 fi
37560
37561 if test "$PKG_CONFIG" = "no" ; then
37562 echo "*** The pkg-config script could not be found. Make sure it is"
37563 echo "*** in your path, or set the PKG_CONFIG environment variable"
37564 echo "*** to the full path to pkg-config."
37565 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37566 else
37567 PKG_CONFIG_MIN_VERSION=0.9.0
37568 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37569 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37570echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37571
ffa762ff 37572 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37573 echo "$as_me:$LINENO: result: yes" >&5
37574echo "${ECHO_T}yes" >&6
37575 succeeded=yes
37576
37577 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37578echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37579 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37580 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37581echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37582
37583 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37584echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37585 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37586 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37587echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37588 else
37589 LIBGNOMEPRINTUI_CFLAGS=""
37590 LIBGNOMEPRINTUI_LIBS=""
37591 ## If we have a custom action on failure, don't print errors, but
37592 ## do set a variable so people can do so.
ffa762ff 37593 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37594
37595 fi
37596
37597
37598
37599 else
37600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37602 fi
37603 fi
37604
37605 if test $succeeded = yes; then
37606
d1c38808
VZ
37607 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37608 cat >>confdefs.h <<\_ACEOF
37609#define wxUSE_LIBGNOMEPRINT 1
37610_ACEOF
37611
37612
37613 else
37614
37615 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37616echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37617 wxUSE_LIBGNOMEPRINT="no"
37618
37619
37620 fi
37621
37622 fi
37623 fi
37624fi
37625
37626
a848cd7e
SC
37627if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37628 cat >>confdefs.h <<\_ACEOF
37629#define wxUSE_CMDLINE_PARSER 1
37630_ACEOF
37631
37632fi
37633
37634if test "$wxUSE_STOPWATCH" = "yes"; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_STOPWATCH 1
37637_ACEOF
37638
37639fi
37640
37641if test "$wxUSE_DATETIME" = "yes"; then
37642 cat >>confdefs.h <<\_ACEOF
37643#define wxUSE_DATETIME 1
37644_ACEOF
37645
37646fi
37647
37648if test "$wxUSE_FILE" = "yes"; then
37649 cat >>confdefs.h <<\_ACEOF
37650#define wxUSE_FILE 1
37651_ACEOF
37652
37653fi
37654
37655if test "$wxUSE_FFILE" = "yes"; then
37656 cat >>confdefs.h <<\_ACEOF
37657#define wxUSE_FFILE 1
37658_ACEOF
37659
37660fi
37661
37662if test "$wxUSE_FILESYSTEM" = "yes"; then
37663 cat >>confdefs.h <<\_ACEOF
37664#define wxUSE_FILESYSTEM 1
37665_ACEOF
37666
37667fi
37668
37669if test "$wxUSE_FS_ZIP" = "yes"; then
37670 cat >>confdefs.h <<\_ACEOF
37671#define wxUSE_FS_ZIP 1
37672_ACEOF
37673
37674fi
37675
9e8e867f 37676if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37677 cat >>confdefs.h <<\_ACEOF
9e8e867f 37678#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37679_ACEOF
37680
37681fi
37682
37683if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37684 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37685 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37686echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37687 elif test "$wxUSE_ZLIB" = "no"; then
37688 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37689echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37690 else
37691 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37692#define wxUSE_ZIPSTREAM 1
37693_ACEOF
37694
81f90336 37695 fi
a848cd7e
SC
37696fi
37697
a848cd7e 37698if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37699 if test "$USE_UNIX" != 1; then
37700 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37701echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37702 wxUSE_ON_FATAL_EXCEPTION=no
37703 else
37704 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37705#define wxUSE_ON_FATAL_EXCEPTION 1
37706_ACEOF
37707
18228ab4 37708 fi
a848cd7e
SC
37709fi
37710
eaff0f0d
VZ
37711if test "$wxUSE_STACKWALKER" = "yes"; then
37712 cat >>confdefs.h <<\_ACEOF
37713#define wxUSE_STACKWALKER 1
37714_ACEOF
37715
37716fi
37717
36b6448c 37718if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37719 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37720 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37721echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37722 wxUSE_DEBUGREPORT=no
37723 else
37724 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37725#define wxUSE_DEBUGREPORT 1
37726_ACEOF
37727
21dfc162
MW
37728 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37730 fi
dfe0c803 37731 fi
36b6448c
VZ
37732fi
37733
a848cd7e
SC
37734if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37735 cat >>confdefs.h <<\_ACEOF
37736#define wxUSE_SNGLINST_CHECKER 1
37737_ACEOF
37738
37739fi
37740
37741if test "$wxUSE_BUSYINFO" = "yes"; then
37742 cat >>confdefs.h <<\_ACEOF
37743#define wxUSE_BUSYINFO 1
37744_ACEOF
37745
37746fi
37747
37748if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37749 cat >>confdefs.h <<\_ACEOF
37750#define wxUSE_STD_IOSTREAM 1
37751_ACEOF
37752
37753fi
37754
59746b65
MW
37755if test "$wxUSE_STD_STRING" = "yes"; then
37756 cat >>confdefs.h <<\_ACEOF
37757#define wxUSE_STD_STRING 1
37758_ACEOF
37759
37760fi
37761
07158944
VZ
37762if test "$wxUSE_STDPATHS" = "yes"; then
37763 cat >>confdefs.h <<\_ACEOF
37764#define wxUSE_STDPATHS 1
37765_ACEOF
37766
37767fi
37768
a848cd7e
SC
37769if test "$wxUSE_TEXTBUFFER" = "yes"; then
37770 cat >>confdefs.h <<\_ACEOF
37771#define wxUSE_TEXTBUFFER 1
37772_ACEOF
37773
37774fi
37775
37776if test "$wxUSE_TEXTFILE" = "yes"; then
37777 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37778 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37779echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37780 else
37781 cat >>confdefs.h <<\_ACEOF
37782#define wxUSE_TEXTFILE 1
37783_ACEOF
37784
37785 fi
37786fi
37787
37788if test "$wxUSE_CONFIG" = "yes" ; then
37789 if test "$wxUSE_TEXTFILE" != "yes"; then
37790 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37791echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37792 else
37793 cat >>confdefs.h <<\_ACEOF
37794#define wxUSE_CONFIG 1
89be85c2
VS
37795_ACEOF
37796
37797 cat >>confdefs.h <<\_ACEOF
37798#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37799_ACEOF
37800
37801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37802 fi
37803fi
37804
37805if test "$wxUSE_INTL" = "yes" ; then
37806 if test "$wxUSE_FILE" != "yes"; then
37807 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37808echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37809 else
37810 cat >>confdefs.h <<\_ACEOF
37811#define wxUSE_INTL 1
37812_ACEOF
37813
37814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37815 GUIDIST="$GUIDIST INTL_DIST"
37816 fi
37817fi
37818
37819if test "$wxUSE_LOG" = "yes"; then
37820 cat >>confdefs.h <<\_ACEOF
37821#define wxUSE_LOG 1
37822_ACEOF
37823
37824
37825 if test "$wxUSE_LOGGUI" = "yes"; then
37826 cat >>confdefs.h <<\_ACEOF
37827#define wxUSE_LOGGUI 1
37828_ACEOF
37829
37830 fi
37831
37832 if test "$wxUSE_LOGWINDOW" = "yes"; then
37833 cat >>confdefs.h <<\_ACEOF
37834#define wxUSE_LOGWINDOW 1
37835_ACEOF
37836
37837 fi
37838
37839 if test "$wxUSE_LOGDIALOG" = "yes"; then
37840 cat >>confdefs.h <<\_ACEOF
37841#define wxUSE_LOG_DIALOG 1
37842_ACEOF
37843
37844 fi
0b78747f
MW
37845
37846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37847fi
37848
37849if test "$wxUSE_LONGLONG" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
37851#define wxUSE_LONGLONG 1
37852_ACEOF
37853
37854fi
37855
37856if test "$wxUSE_GEOMETRY" = "yes"; then
37857 cat >>confdefs.h <<\_ACEOF
37858#define wxUSE_GEOMETRY 1
37859_ACEOF
37860
37861fi
37862
a848cd7e
SC
37863if test "$wxUSE_STREAMS" = "yes" ; then
37864 cat >>confdefs.h <<\_ACEOF
37865#define wxUSE_STREAMS 1
37866_ACEOF
37867
37868fi
37869
37870
37871if test "$wxUSE_DATETIME" = "yes"; then
37872
37873for ac_func in strptime
37874do
37875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37876echo "$as_me:$LINENO: checking for $ac_func" >&5
37877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37878if eval "test \"\${$as_ac_var+set}\" = set"; then
37879 echo $ECHO_N "(cached) $ECHO_C" >&6
37880else
37881 cat >conftest.$ac_ext <<_ACEOF
37882/* confdefs.h. */
37883_ACEOF
37884cat confdefs.h >>conftest.$ac_ext
37885cat >>conftest.$ac_ext <<_ACEOF
37886/* end confdefs.h. */
ac1cb8d3
VS
37887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37889#define $ac_func innocuous_$ac_func
37890
a848cd7e
SC
37891/* System header to define __stub macros and hopefully few prototypes,
37892 which can conflict with char $ac_func (); below.
37893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37895
a848cd7e
SC
37896#ifdef __STDC__
37897# include <limits.h>
37898#else
37899# include <assert.h>
37900#endif
ac1cb8d3
VS
37901
37902#undef $ac_func
37903
a848cd7e
SC
37904/* Override any gcc2 internal prototype to avoid an error. */
37905#ifdef __cplusplus
37906extern "C"
37907{
37908#endif
37909/* We use char because int might match the return type of a gcc2
37910 builtin and then its argument prototype would still apply. */
37911char $ac_func ();
37912/* The GNU C library defines this for functions which it implements
37913 to always fail with ENOSYS. Some functions are actually named
37914 something starting with __ and the normal name is an alias. */
37915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37916choke me
37917#else
37918char (*f) () = $ac_func;
37919#endif
37920#ifdef __cplusplus
37921}
37922#endif
37923
37924int
37925main ()
37926{
37927return f != $ac_func;
37928 ;
37929 return 0;
37930}
37931_ACEOF
37932rm -f conftest.$ac_objext conftest$ac_exeext
37933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37934 (eval $ac_link) 2>conftest.er1
a848cd7e 37935 ac_status=$?
ac1cb8d3
VS
37936 grep -v '^ *+' conftest.er1 >conftest.err
37937 rm -f conftest.er1
37938 cat conftest.err >&5
a848cd7e
SC
37939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); } &&
6ebeb4c7 37941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37943 (eval $ac_try) 2>&5
37944 ac_status=$?
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); }; } &&
37947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37949 (eval $ac_try) 2>&5
37950 ac_status=$?
37951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37952 (exit $ac_status); }; }; then
37953 eval "$as_ac_var=yes"
37954else
37955 echo "$as_me: failed program was:" >&5
37956sed 's/^/| /' conftest.$ac_ext >&5
37957
37958eval "$as_ac_var=no"
37959fi
ac1cb8d3
VS
37960rm -f conftest.err conftest.$ac_objext \
37961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37962fi
37963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37965if test `eval echo '${'$as_ac_var'}'` = yes; then
37966 cat >>confdefs.h <<_ACEOF
37967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37968_ACEOF
37969
37970fi
37971done
37972
37973
37974 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37975echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37976if test "${wx_cv_var_timezone+set}" = set; then
37977 echo $ECHO_N "(cached) $ECHO_C" >&6
37978else
37979
37980 cat >conftest.$ac_ext <<_ACEOF
37981/* confdefs.h. */
37982_ACEOF
37983cat confdefs.h >>conftest.$ac_ext
37984cat >>conftest.$ac_ext <<_ACEOF
37985/* end confdefs.h. */
37986
37987 #include <time.h>
37988
37989int
37990main ()
37991{
37992
37993 int tz;
37994 tz = timezone;
37995
37996 ;
37997 return 0;
37998}
37999_ACEOF
38000rm -f conftest.$ac_objext
38001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38002 (eval $ac_compile) 2>conftest.er1
a848cd7e 38003 ac_status=$?
ac1cb8d3
VS
38004 grep -v '^ *+' conftest.er1 >conftest.err
38005 rm -f conftest.er1
38006 cat conftest.err >&5
a848cd7e
SC
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); } &&
6ebeb4c7 38009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011 (eval $ac_try) 2>&5
38012 ac_status=$?
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); }; } &&
38015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017 (eval $ac_try) 2>&5
38018 ac_status=$?
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); }; }; then
38021
38022 wx_cv_var_timezone=timezone
38023
38024else
38025 echo "$as_me: failed program was:" >&5
38026sed 's/^/| /' conftest.$ac_ext >&5
38027
38028
38029 cat >conftest.$ac_ext <<_ACEOF
38030/* confdefs.h. */
38031_ACEOF
38032cat confdefs.h >>conftest.$ac_ext
38033cat >>conftest.$ac_ext <<_ACEOF
38034/* end confdefs.h. */
38035
38036 #include <time.h>
38037
38038int
38039main ()
38040{
38041
38042 int tz;
38043 tz = _timezone;
38044
38045 ;
38046 return 0;
38047}
38048_ACEOF
38049rm -f conftest.$ac_objext
38050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38051 (eval $ac_compile) 2>conftest.er1
a848cd7e 38052 ac_status=$?
ac1cb8d3
VS
38053 grep -v '^ *+' conftest.er1 >conftest.err
38054 rm -f conftest.er1
38055 cat conftest.err >&5
a848cd7e
SC
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); } &&
6ebeb4c7 38058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060 (eval $ac_try) 2>&5
38061 ac_status=$?
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); }; } &&
38064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; }; then
38070
38071 wx_cv_var_timezone=_timezone
38072
38073else
38074 echo "$as_me: failed program was:" >&5
38075sed 's/^/| /' conftest.$ac_ext >&5
38076
38077
38078 cat >conftest.$ac_ext <<_ACEOF
38079/* confdefs.h. */
38080_ACEOF
38081cat confdefs.h >>conftest.$ac_ext
38082cat >>conftest.$ac_ext <<_ACEOF
38083/* end confdefs.h. */
38084
38085 #include <time.h>
38086
38087int
38088main ()
38089{
38090
38091 int tz;
38092 tz = __timezone;
38093
38094 ;
38095 return 0;
38096}
38097_ACEOF
38098rm -f conftest.$ac_objext
38099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38100 (eval $ac_compile) 2>conftest.er1
a848cd7e 38101 ac_status=$?
ac1cb8d3
VS
38102 grep -v '^ *+' conftest.er1 >conftest.err
38103 rm -f conftest.er1
38104 cat conftest.err >&5
a848cd7e
SC
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); } &&
6ebeb4c7 38107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109 (eval $ac_try) 2>&5
38110 ac_status=$?
38111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112 (exit $ac_status); }; } &&
38113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38115 (eval $ac_try) 2>&5
38116 ac_status=$?
38117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38118 (exit $ac_status); }; }; then
38119
38120 wx_cv_var_timezone=__timezone
38121
38122else
38123 echo "$as_me: failed program was:" >&5
38124sed 's/^/| /' conftest.$ac_ext >&5
38125
38126
38127 if test "$USE_DOS" = 0 ; then
38128 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38129echo "$as_me: WARNING: no timezone variable" >&2;}
38130 fi
38131
38132
38133fi
ac1cb8d3 38134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38135
38136
38137fi
ac1cb8d3 38138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38139
38140
38141fi
ac1cb8d3 38142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38143
38144
38145fi
38146echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38147echo "${ECHO_T}$wx_cv_var_timezone" >&6
38148
38149 if test "x$wx_cv_var_timezone" != x ; then
38150 cat >>confdefs.h <<_ACEOF
38151#define WX_TIMEZONE $wx_cv_var_timezone
38152_ACEOF
38153
38154 fi
38155
38156
38157for ac_func in localtime
38158do
38159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38160echo "$as_me:$LINENO: checking for $ac_func" >&5
38161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38162if eval "test \"\${$as_ac_var+set}\" = set"; then
38163 echo $ECHO_N "(cached) $ECHO_C" >&6
38164else
38165 cat >conftest.$ac_ext <<_ACEOF
38166/* confdefs.h. */
38167_ACEOF
38168cat confdefs.h >>conftest.$ac_ext
38169cat >>conftest.$ac_ext <<_ACEOF
38170/* end confdefs.h. */
ac1cb8d3
VS
38171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38173#define $ac_func innocuous_$ac_func
38174
a848cd7e
SC
38175/* System header to define __stub macros and hopefully few prototypes,
38176 which can conflict with char $ac_func (); below.
38177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38178 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38179
a848cd7e
SC
38180#ifdef __STDC__
38181# include <limits.h>
38182#else
38183# include <assert.h>
38184#endif
ac1cb8d3
VS
38185
38186#undef $ac_func
38187
a848cd7e
SC
38188/* Override any gcc2 internal prototype to avoid an error. */
38189#ifdef __cplusplus
38190extern "C"
38191{
38192#endif
38193/* We use char because int might match the return type of a gcc2
38194 builtin and then its argument prototype would still apply. */
38195char $ac_func ();
38196/* The GNU C library defines this for functions which it implements
38197 to always fail with ENOSYS. Some functions are actually named
38198 something starting with __ and the normal name is an alias. */
38199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38200choke me
38201#else
38202char (*f) () = $ac_func;
38203#endif
38204#ifdef __cplusplus
38205}
38206#endif
38207
38208int
38209main ()
38210{
38211return f != $ac_func;
38212 ;
38213 return 0;
38214}
38215_ACEOF
38216rm -f conftest.$ac_objext conftest$ac_exeext
38217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38218 (eval $ac_link) 2>conftest.er1
a848cd7e 38219 ac_status=$?
ac1cb8d3
VS
38220 grep -v '^ *+' conftest.er1 >conftest.err
38221 rm -f conftest.er1
38222 cat conftest.err >&5
a848cd7e
SC
38223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224 (exit $ac_status); } &&
6ebeb4c7 38225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38227 (eval $ac_try) 2>&5
38228 ac_status=$?
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); }; } &&
38231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38233 (eval $ac_try) 2>&5
38234 ac_status=$?
38235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236 (exit $ac_status); }; }; then
38237 eval "$as_ac_var=yes"
38238else
38239 echo "$as_me: failed program was:" >&5
38240sed 's/^/| /' conftest.$ac_ext >&5
38241
38242eval "$as_ac_var=no"
38243fi
ac1cb8d3
VS
38244rm -f conftest.err conftest.$ac_objext \
38245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38246fi
38247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38249if test `eval echo '${'$as_ac_var'}'` = yes; then
38250 cat >>confdefs.h <<_ACEOF
38251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38252_ACEOF
38253
38254fi
38255done
38256
38257
38258 if test "$ac_cv_func_localtime" = "yes"; then
38259 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38260echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38261if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38262 echo $ECHO_N "(cached) $ECHO_C" >&6
38263else
38264
38265 cat >conftest.$ac_ext <<_ACEOF
38266/* confdefs.h. */
38267_ACEOF
38268cat confdefs.h >>conftest.$ac_ext
38269cat >>conftest.$ac_ext <<_ACEOF
38270/* end confdefs.h. */
38271
38272 #include <time.h>
38273
38274int
38275main ()
38276{
38277
38278 struct tm tm;
38279 tm.tm_gmtoff++;
38280
38281 ;
38282 return 0;
38283}
38284_ACEOF
38285rm -f conftest.$ac_objext
38286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38287 (eval $ac_compile) 2>conftest.er1
a848cd7e 38288 ac_status=$?
ac1cb8d3
VS
38289 grep -v '^ *+' conftest.er1 >conftest.err
38290 rm -f conftest.er1
38291 cat conftest.err >&5
a848cd7e
SC
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); } &&
6ebeb4c7 38294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38296 (eval $ac_try) 2>&5
38297 ac_status=$?
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); }; } &&
38300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; }; then
38306
38307 wx_cv_struct_tm_has_gmtoff=yes
38308
38309else
38310 echo "$as_me: failed program was:" >&5
38311sed 's/^/| /' conftest.$ac_ext >&5
38312
38313wx_cv_struct_tm_has_gmtoff=no
38314
38315fi
ac1cb8d3 38316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38317
38318fi
38319echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38320echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38321 fi
38322
38323 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38324 cat >>confdefs.h <<\_ACEOF
38325#define WX_GMTOFF_IN_TM 1
38326_ACEOF
38327
38328 fi
38329
38330
38331
38332for ac_func in gettimeofday ftime
38333do
38334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38335echo "$as_me:$LINENO: checking for $ac_func" >&5
38336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38337if eval "test \"\${$as_ac_var+set}\" = set"; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38339else
38340 cat >conftest.$ac_ext <<_ACEOF
38341/* confdefs.h. */
38342_ACEOF
38343cat confdefs.h >>conftest.$ac_ext
38344cat >>conftest.$ac_ext <<_ACEOF
38345/* end confdefs.h. */
ac1cb8d3
VS
38346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38348#define $ac_func innocuous_$ac_func
38349
a848cd7e
SC
38350/* System header to define __stub macros and hopefully few prototypes,
38351 which can conflict with char $ac_func (); below.
38352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38354
a848cd7e
SC
38355#ifdef __STDC__
38356# include <limits.h>
38357#else
38358# include <assert.h>
38359#endif
ac1cb8d3
VS
38360
38361#undef $ac_func
38362
a848cd7e
SC
38363/* Override any gcc2 internal prototype to avoid an error. */
38364#ifdef __cplusplus
38365extern "C"
38366{
38367#endif
38368/* We use char because int might match the return type of a gcc2
38369 builtin and then its argument prototype would still apply. */
38370char $ac_func ();
38371/* The GNU C library defines this for functions which it implements
38372 to always fail with ENOSYS. Some functions are actually named
38373 something starting with __ and the normal name is an alias. */
38374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38375choke me
38376#else
38377char (*f) () = $ac_func;
38378#endif
38379#ifdef __cplusplus
38380}
38381#endif
38382
38383int
38384main ()
38385{
38386return f != $ac_func;
38387 ;
38388 return 0;
38389}
38390_ACEOF
38391rm -f conftest.$ac_objext conftest$ac_exeext
38392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38393 (eval $ac_link) 2>conftest.er1
a848cd7e 38394 ac_status=$?
ac1cb8d3
VS
38395 grep -v '^ *+' conftest.er1 >conftest.err
38396 rm -f conftest.er1
38397 cat conftest.err >&5
a848cd7e
SC
38398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399 (exit $ac_status); } &&
6ebeb4c7 38400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38402 (eval $ac_try) 2>&5
38403 ac_status=$?
38404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405 (exit $ac_status); }; } &&
38406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38408 (eval $ac_try) 2>&5
38409 ac_status=$?
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); }; }; then
38412 eval "$as_ac_var=yes"
38413else
38414 echo "$as_me: failed program was:" >&5
38415sed 's/^/| /' conftest.$ac_ext >&5
38416
38417eval "$as_ac_var=no"
38418fi
ac1cb8d3
VS
38419rm -f conftest.err conftest.$ac_objext \
38420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38421fi
38422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38424if test `eval echo '${'$as_ac_var'}'` = yes; then
38425 cat >>confdefs.h <<_ACEOF
38426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38427_ACEOF
38428 break
38429fi
38430done
38431
38432
38433 if test "$ac_cv_func_gettimeofday" = "yes"; then
38434 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38435echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38436if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38437 echo $ECHO_N "(cached) $ECHO_C" >&6
38438else
38439
38440
38441
38442 ac_ext=cc
38443ac_cpp='$CXXCPP $CPPFLAGS'
38444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38447
38448
38449 cat >conftest.$ac_ext <<_ACEOF
38450/* confdefs.h. */
38451_ACEOF
38452cat confdefs.h >>conftest.$ac_ext
38453cat >>conftest.$ac_ext <<_ACEOF
38454/* end confdefs.h. */
38455
38456 #include <sys/time.h>
38457 #include <unistd.h>
38458
38459int
38460main ()
38461{
38462
38463 struct timeval tv;
38464 gettimeofday(&tv, NULL);
38465
38466 ;
38467 return 0;
38468}
38469_ACEOF
38470rm -f conftest.$ac_objext
38471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38472 (eval $ac_compile) 2>conftest.er1
a848cd7e 38473 ac_status=$?
ac1cb8d3
VS
38474 grep -v '^ *+' conftest.er1 >conftest.err
38475 rm -f conftest.er1
38476 cat conftest.err >&5
a848cd7e
SC
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } &&
6ebeb4c7 38479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38481 (eval $ac_try) 2>&5
38482 ac_status=$?
38483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38484 (exit $ac_status); }; } &&
38485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38487 (eval $ac_try) 2>&5
38488 ac_status=$?
38489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490 (exit $ac_status); }; }; then
38491 wx_cv_func_gettimeofday_has_2_args=yes
38492else
38493 echo "$as_me: failed program was:" >&5
38494sed 's/^/| /' conftest.$ac_ext >&5
38495
38496cat >conftest.$ac_ext <<_ACEOF
38497/* confdefs.h. */
38498_ACEOF
38499cat confdefs.h >>conftest.$ac_ext
38500cat >>conftest.$ac_ext <<_ACEOF
38501/* end confdefs.h. */
38502
38503 #include <sys/time.h>
38504 #include <unistd.h>
38505
38506int
38507main ()
38508{
38509
38510 struct timeval tv;
38511 gettimeofday(&tv);
38512
38513 ;
38514 return 0;
38515}
38516_ACEOF
38517rm -f conftest.$ac_objext
38518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38519 (eval $ac_compile) 2>conftest.er1
a848cd7e 38520 ac_status=$?
ac1cb8d3
VS
38521 grep -v '^ *+' conftest.er1 >conftest.err
38522 rm -f conftest.er1
38523 cat conftest.err >&5
a848cd7e
SC
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); } &&
6ebeb4c7 38526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38528 (eval $ac_try) 2>&5
38529 ac_status=$?
38530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531 (exit $ac_status); }; } &&
38532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38534 (eval $ac_try) 2>&5
38535 ac_status=$?
38536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537 (exit $ac_status); }; }; then
38538 wx_cv_func_gettimeofday_has_2_args=no
38539else
38540 echo "$as_me: failed program was:" >&5
38541sed 's/^/| /' conftest.$ac_ext >&5
38542
38543
38544 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38545echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38546 wx_cv_func_gettimeofday_has_2_args=unknown
38547
38548
38549fi
ac1cb8d3 38550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38551
38552fi
ac1cb8d3 38553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38554 ac_ext=c
38555ac_cpp='$CPP $CPPFLAGS'
38556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38558ac_compiler_gnu=$ac_cv_c_compiler_gnu
38559
38560
38561fi
38562echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38563echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38564
38565 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38566 cat >>confdefs.h <<\_ACEOF
38567#define WX_GETTIMEOFDAY_NO_TZ 1
38568_ACEOF
38569
38570 fi
38571 fi
38572
38573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38574fi
38575
38576
38577if test "$wxUSE_SOCKETS" = "yes"; then
38578 if test "$wxUSE_MGL" = "1"; then
38579 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38580echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38581 wxUSE_SOCKETS="no"
38582 fi
38583fi
38584
38585if test "$wxUSE_SOCKETS" = "yes"; then
38586 if test "$TOOLKIT" != "MSW"; then
38587 echo "$as_me:$LINENO: checking for socket" >&5
38588echo $ECHO_N "checking for socket... $ECHO_C" >&6
38589if test "${ac_cv_func_socket+set}" = set; then
38590 echo $ECHO_N "(cached) $ECHO_C" >&6
38591else
38592 cat >conftest.$ac_ext <<_ACEOF
38593/* confdefs.h. */
38594_ACEOF
38595cat confdefs.h >>conftest.$ac_ext
38596cat >>conftest.$ac_ext <<_ACEOF
38597/* end confdefs.h. */
ac1cb8d3
VS
38598/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38600#define socket innocuous_socket
38601
a848cd7e
SC
38602/* System header to define __stub macros and hopefully few prototypes,
38603 which can conflict with char socket (); below.
38604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38606
a848cd7e
SC
38607#ifdef __STDC__
38608# include <limits.h>
38609#else
38610# include <assert.h>
38611#endif
ac1cb8d3
VS
38612
38613#undef socket
38614
a848cd7e
SC
38615/* Override any gcc2 internal prototype to avoid an error. */
38616#ifdef __cplusplus
38617extern "C"
38618{
38619#endif
38620/* We use char because int might match the return type of a gcc2
38621 builtin and then its argument prototype would still apply. */
38622char socket ();
38623/* The GNU C library defines this for functions which it implements
38624 to always fail with ENOSYS. Some functions are actually named
38625 something starting with __ and the normal name is an alias. */
38626#if defined (__stub_socket) || defined (__stub___socket)
38627choke me
38628#else
38629char (*f) () = socket;
38630#endif
38631#ifdef __cplusplus
38632}
38633#endif
38634
38635int
38636main ()
38637{
38638return f != socket;
38639 ;
38640 return 0;
38641}
38642_ACEOF
38643rm -f conftest.$ac_objext conftest$ac_exeext
38644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38645 (eval $ac_link) 2>conftest.er1
a848cd7e 38646 ac_status=$?
ac1cb8d3
VS
38647 grep -v '^ *+' conftest.er1 >conftest.err
38648 rm -f conftest.er1
38649 cat conftest.err >&5
a848cd7e
SC
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); } &&
6ebeb4c7 38652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654 (eval $ac_try) 2>&5
38655 ac_status=$?
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); }; } &&
38658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; }; then
38664 ac_cv_func_socket=yes
38665else
38666 echo "$as_me: failed program was:" >&5
38667sed 's/^/| /' conftest.$ac_ext >&5
38668
38669ac_cv_func_socket=no
38670fi
ac1cb8d3
VS
38671rm -f conftest.err conftest.$ac_objext \
38672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38673fi
38674echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38675echo "${ECHO_T}$ac_cv_func_socket" >&6
38676if test $ac_cv_func_socket = yes; then
38677 :
38678else
38679
38680 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38681echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38682if test "${ac_cv_lib_socket_socket+set}" = set; then
38683 echo $ECHO_N "(cached) $ECHO_C" >&6
38684else
38685 ac_check_lib_save_LIBS=$LIBS
38686LIBS="-lsocket $LIBS"
38687cat >conftest.$ac_ext <<_ACEOF
38688/* confdefs.h. */
38689_ACEOF
38690cat confdefs.h >>conftest.$ac_ext
38691cat >>conftest.$ac_ext <<_ACEOF
38692/* end confdefs.h. */
38693
38694/* Override any gcc2 internal prototype to avoid an error. */
38695#ifdef __cplusplus
38696extern "C"
38697#endif
38698/* We use char because int might match the return type of a gcc2
38699 builtin and then its argument prototype would still apply. */
38700char socket ();
38701int
38702main ()
38703{
38704socket ();
38705 ;
38706 return 0;
38707}
38708_ACEOF
38709rm -f conftest.$ac_objext conftest$ac_exeext
38710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38711 (eval $ac_link) 2>conftest.er1
a848cd7e 38712 ac_status=$?
ac1cb8d3
VS
38713 grep -v '^ *+' conftest.er1 >conftest.err
38714 rm -f conftest.er1
38715 cat conftest.err >&5
a848cd7e
SC
38716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717 (exit $ac_status); } &&
6ebeb4c7 38718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38720 (eval $ac_try) 2>&5
38721 ac_status=$?
38722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723 (exit $ac_status); }; } &&
38724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38726 (eval $ac_try) 2>&5
38727 ac_status=$?
38728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729 (exit $ac_status); }; }; then
38730 ac_cv_lib_socket_socket=yes
38731else
38732 echo "$as_me: failed program was:" >&5
38733sed 's/^/| /' conftest.$ac_ext >&5
38734
38735ac_cv_lib_socket_socket=no
38736fi
ac1cb8d3
VS
38737rm -f conftest.err conftest.$ac_objext \
38738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38739LIBS=$ac_check_lib_save_LIBS
38740fi
38741echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38742echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38743if test $ac_cv_lib_socket_socket = yes; then
38744 if test "$INET_LINK" != " -lsocket"; then
38745 INET_LINK="$INET_LINK -lsocket"
38746 fi
38747else
38748
38749 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38750echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38751 wxUSE_SOCKETS=no
38752
38753
38754fi
38755
38756
38757
38758fi
38759
38760 fi
38761fi
38762
38763if test "$wxUSE_SOCKETS" = "yes" ; then
38764 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38765 ac_ext=cc
38766ac_cpp='$CXXCPP $CPPFLAGS'
38767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38770
38771 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38772echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38773if test "${wx_cv_type_getsockname3+set}" = set; then
38774 echo $ECHO_N "(cached) $ECHO_C" >&6
38775else
38776
38777 cat >conftest.$ac_ext <<_ACEOF
38778/* confdefs.h. */
38779_ACEOF
38780cat confdefs.h >>conftest.$ac_ext
38781cat >>conftest.$ac_ext <<_ACEOF
38782/* end confdefs.h. */
38783
38784 #include <sys/types.h>
38785 #include <sys/socket.h>
38786
38787int
38788main ()
38789{
38790
38791 socklen_t len;
38792 getsockname(0, 0, &len);
38793
38794 ;
38795 return 0;
38796}
38797_ACEOF
38798rm -f conftest.$ac_objext
38799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38800 (eval $ac_compile) 2>conftest.er1
a848cd7e 38801 ac_status=$?
ac1cb8d3
VS
38802 grep -v '^ *+' conftest.er1 >conftest.err
38803 rm -f conftest.er1
38804 cat conftest.err >&5
a848cd7e
SC
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); } &&
6ebeb4c7 38807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38810 ac_status=$?
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; } &&
38813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38816 ac_status=$?
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; }; then
38819 wx_cv_type_getsockname3=socklen_t
38820else
38821 echo "$as_me: failed program was:" >&5
38822sed 's/^/| /' conftest.$ac_ext >&5
38823
38824
38825 CFLAGS_OLD="$CFLAGS"
38826 if test "$GCC" = yes ; then
38827 CFLAGS="$CFLAGS -Werror"
38828 fi
38829
38830 cat >conftest.$ac_ext <<_ACEOF
38831/* confdefs.h. */
38832_ACEOF
38833cat confdefs.h >>conftest.$ac_ext
38834cat >>conftest.$ac_ext <<_ACEOF
38835/* end confdefs.h. */
38836
38837 #include <sys/types.h>
38838 #include <sys/socket.h>
38839
38840int
38841main ()
38842{
38843
38844 size_t len;
38845 getsockname(0, 0, &len);
38846
38847 ;
38848 return 0;
38849}
38850_ACEOF
38851rm -f conftest.$ac_objext
38852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38853 (eval $ac_compile) 2>conftest.er1
a848cd7e 38854 ac_status=$?
ac1cb8d3
VS
38855 grep -v '^ *+' conftest.er1 >conftest.err
38856 rm -f conftest.er1
38857 cat conftest.err >&5
a848cd7e
SC
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); } &&
6ebeb4c7 38860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38862 (eval $ac_try) 2>&5
38863 ac_status=$?
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); }; } &&
38866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38868 (eval $ac_try) 2>&5
38869 ac_status=$?
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); }; }; then
38872 wx_cv_type_getsockname3=size_t
38873else
38874 echo "$as_me: failed program was:" >&5
38875sed 's/^/| /' conftest.$ac_ext >&5
38876
38877cat >conftest.$ac_ext <<_ACEOF
38878/* confdefs.h. */
38879_ACEOF
38880cat confdefs.h >>conftest.$ac_ext
38881cat >>conftest.$ac_ext <<_ACEOF
38882/* end confdefs.h. */
38883
38884 #include <sys/types.h>
38885 #include <sys/socket.h>
38886
38887int
38888main ()
38889{
38890
38891 int len;
38892 getsockname(0, 0, &len);
38893
38894 ;
38895 return 0;
38896}
38897_ACEOF
38898rm -f conftest.$ac_objext
38899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38900 (eval $ac_compile) 2>conftest.er1
a848cd7e 38901 ac_status=$?
ac1cb8d3
VS
38902 grep -v '^ *+' conftest.er1 >conftest.err
38903 rm -f conftest.er1
38904 cat conftest.err >&5
a848cd7e
SC
38905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906 (exit $ac_status); } &&
6ebeb4c7 38907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909 (eval $ac_try) 2>&5
38910 ac_status=$?
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); }; } &&
38913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38915 (eval $ac_try) 2>&5
38916 ac_status=$?
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); }; }; then
38919 wx_cv_type_getsockname3=int
38920else
38921 echo "$as_me: failed program was:" >&5
38922sed 's/^/| /' conftest.$ac_ext >&5
38923
38924wx_cv_type_getsockname3=unknown
38925
38926fi
ac1cb8d3 38927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38928
38929fi
ac1cb8d3 38930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38931
38932 CFLAGS="$CFLAGS_OLD"
38933
38934
38935fi
ac1cb8d3 38936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38937
38938fi
38939echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38940echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38941
38942 if test "$wx_cv_type_getsockname3" = "unknown"; then
38943 wxUSE_SOCKETS=no
38944 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38945echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38946 else
38947 cat >>confdefs.h <<_ACEOF
9e03e02d 38948#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38949_ACEOF
38950
38951 fi
38952 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38953echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38954if test "${wx_cv_type_getsockopt5+set}" = set; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38956else
38957
38958 cat >conftest.$ac_ext <<_ACEOF
38959/* confdefs.h. */
38960_ACEOF
38961cat confdefs.h >>conftest.$ac_ext
38962cat >>conftest.$ac_ext <<_ACEOF
38963/* end confdefs.h. */
38964
38965 #include <sys/types.h>
38966 #include <sys/socket.h>
38967
38968int
38969main ()
38970{
38971
38972 socklen_t len;
38973 getsockopt(0, 0, 0, 0, &len);
38974
38975 ;
38976 return 0;
38977}
38978_ACEOF
38979rm -f conftest.$ac_objext
38980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38981 (eval $ac_compile) 2>conftest.er1
38982 ac_status=$?
38983 grep -v '^ *+' conftest.er1 >conftest.err
38984 rm -f conftest.er1
38985 cat conftest.err >&5
38986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987 (exit $ac_status); } &&
6ebeb4c7 38988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38990 (eval $ac_try) 2>&5
38991 ac_status=$?
38992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993 (exit $ac_status); }; } &&
38994 { ac_try='test -s conftest.$ac_objext'
38995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38996 (eval $ac_try) 2>&5
38997 ac_status=$?
38998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999 (exit $ac_status); }; }; then
39000 wx_cv_type_getsockopt5=socklen_t
39001else
39002 echo "$as_me: failed program was:" >&5
39003sed 's/^/| /' conftest.$ac_ext >&5
39004
39005
39006 CFLAGS_OLD="$CFLAGS"
39007 if test "$GCC" = yes ; then
39008 CFLAGS="$CFLAGS -Werror"
39009 fi
39010
39011 cat >conftest.$ac_ext <<_ACEOF
39012/* confdefs.h. */
39013_ACEOF
39014cat confdefs.h >>conftest.$ac_ext
39015cat >>conftest.$ac_ext <<_ACEOF
39016/* end confdefs.h. */
39017
39018 #include <sys/types.h>
39019 #include <sys/socket.h>
39020
39021int
39022main ()
39023{
39024
39025 size_t len;
39026 getsockopt(0, 0, 0, 0, &len);
39027
39028 ;
39029 return 0;
39030}
39031_ACEOF
39032rm -f conftest.$ac_objext
39033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39034 (eval $ac_compile) 2>conftest.er1
39035 ac_status=$?
39036 grep -v '^ *+' conftest.er1 >conftest.err
39037 rm -f conftest.er1
39038 cat conftest.err >&5
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); } &&
6ebeb4c7 39041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39044 ac_status=$?
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; } &&
39047 { ac_try='test -s conftest.$ac_objext'
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39050 ac_status=$?
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; }; then
39053 wx_cv_type_getsockopt5=size_t
39054else
39055 echo "$as_me: failed program was:" >&5
39056sed 's/^/| /' conftest.$ac_ext >&5
39057
39058cat >conftest.$ac_ext <<_ACEOF
39059/* confdefs.h. */
39060_ACEOF
39061cat confdefs.h >>conftest.$ac_ext
39062cat >>conftest.$ac_ext <<_ACEOF
39063/* end confdefs.h. */
39064
39065 #include <sys/types.h>
39066 #include <sys/socket.h>
39067
39068int
39069main ()
39070{
39071
39072 int len;
39073 getsockopt(0, 0, 0, 0, &len);
39074
39075 ;
39076 return 0;
39077}
39078_ACEOF
39079rm -f conftest.$ac_objext
39080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39081 (eval $ac_compile) 2>conftest.er1
39082 ac_status=$?
39083 grep -v '^ *+' conftest.er1 >conftest.err
39084 rm -f conftest.er1
39085 cat conftest.err >&5
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); } &&
6ebeb4c7 39088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; } &&
39094 { ac_try='test -s conftest.$ac_objext'
39095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39096 (eval $ac_try) 2>&5
39097 ac_status=$?
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); }; }; then
39100 wx_cv_type_getsockopt5=int
39101else
39102 echo "$as_me: failed program was:" >&5
39103sed 's/^/| /' conftest.$ac_ext >&5
39104
39105wx_cv_type_getsockopt5=unknown
39106
39107fi
39108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39109
39110fi
39111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39112
39113 CFLAGS="$CFLAGS_OLD"
39114
39115
39116fi
39117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39118
39119fi
39120echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39121echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39122
39123 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39124 wxUSE_SOCKETS=no
39125 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39126echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39127 else
39128 cat >>confdefs.h <<_ACEOF
39129#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39130_ACEOF
39131
39132 fi
4d4ff94c
VZ
39133 ac_ext=c
39134ac_cpp='$CPP $CPPFLAGS'
39135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39137ac_compiler_gnu=$ac_cv_c_compiler_gnu
39138
a848cd7e
SC
39139 fi
39140fi
39141
39142if test "$wxUSE_SOCKETS" = "yes" ; then
39143 cat >>confdefs.h <<\_ACEOF
39144#define wxUSE_SOCKETS 1
39145_ACEOF
39146
39147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39148fi
39149
39150if test "$wxUSE_PROTOCOL" = "yes"; then
39151 if test "$wxUSE_SOCKETS" != "yes"; then
39152 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39153echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39154 wxUSE_PROTOCOL=no
39155 fi
39156fi
39157
39158if test "$wxUSE_PROTOCOL" = "yes"; then
39159 cat >>confdefs.h <<\_ACEOF
39160#define wxUSE_PROTOCOL 1
39161_ACEOF
39162
39163
39164 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39165 cat >>confdefs.h <<\_ACEOF
39166#define wxUSE_PROTOCOL_HTTP 1
39167_ACEOF
39168
39169 fi
39170 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39171 cat >>confdefs.h <<\_ACEOF
39172#define wxUSE_PROTOCOL_FTP 1
39173_ACEOF
39174
39175 fi
39176 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39177 cat >>confdefs.h <<\_ACEOF
39178#define wxUSE_PROTOCOL_FILE 1
39179_ACEOF
39180
39181 fi
39182else
39183 if test "$wxUSE_FS_INET" = "yes"; then
39184 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39185echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39186 wxUSE_FS_INET="no"
39187 fi
39188fi
39189
39190if test "$wxUSE_URL" = "yes"; then
39191 if test "$wxUSE_PROTOCOL" != "yes"; then
39192 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39193echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39194 wxUSE_URL=no
39195 fi
39196 if test "$wxUSE_URL" = "yes"; then
39197 cat >>confdefs.h <<\_ACEOF
39198#define wxUSE_URL 1
39199_ACEOF
39200
39201 fi
39202fi
39203
39204if test "$wxUSE_FS_INET" = "yes"; then
39205 cat >>confdefs.h <<\_ACEOF
39206#define wxUSE_FS_INET 1
39207_ACEOF
39208
39209fi
39210
39211
ee45c548
MW
39212if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39213 wxUSE_JOYSTICK=no
39214
39215 if test "$TOOLKIT" = "MSW"; then
39216 wxUSE_JOYSTICK=yes
39217
39218 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39219 if test "$USE_DARWIN" = 1; then
39220 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39221echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39222 ac_ext=cc
39223ac_cpp='$CXXCPP $CPPFLAGS'
39224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39227
39228 cat >conftest.$ac_ext <<_ACEOF
39229/* confdefs.h. */
39230_ACEOF
39231cat confdefs.h >>conftest.$ac_ext
39232cat >>conftest.$ac_ext <<_ACEOF
39233/* end confdefs.h. */
39234 #include <IOKit/hid/IOHIDLib.h>
39235int
39236main ()
39237{
39238 IOHIDQueueInterface *qi = NULL;
39239 IOHIDCallbackFunction cb = NULL;
39240 qi->setEventCallout(NULL, cb, NULL, NULL);
39241 ;
39242 return 0;
39243}
39244_ACEOF
39245rm -f conftest.$ac_objext
39246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39247 (eval $ac_compile) 2>conftest.er1
39248 ac_status=$?
39249 grep -v '^ *+' conftest.er1 >conftest.err
39250 rm -f conftest.er1
39251 cat conftest.err >&5
39252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253 (exit $ac_status); } &&
6ebeb4c7 39254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39256 (eval $ac_try) 2>&5
39257 ac_status=$?
39258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259 (exit $ac_status); }; } &&
39260 { ac_try='test -s conftest.$ac_objext'
39261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262 (eval $ac_try) 2>&5
39263 ac_status=$?
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); }; }; then
39266 wxUSE_JOYSTICK=yes
a848cd7e 39267
ee45c548
MW
39268else
39269 echo "$as_me: failed program was:" >&5
39270sed 's/^/| /' conftest.$ac_ext >&5
39271
39272fi
39273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39274 ac_ext=c
39275ac_cpp='$CPP $CPPFLAGS'
39276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39278ac_compiler_gnu=$ac_cv_c_compiler_gnu
39279
39280 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39281echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39282 fi
39283
39284 else
a848cd7e
SC
39285
39286for ac_header in linux/joystick.h
39287do
39288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39289if eval "test \"\${$as_ac_Header+set}\" = set"; then
39290 echo "$as_me:$LINENO: checking for $ac_header" >&5
39291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39292if eval "test \"\${$as_ac_Header+set}\" = set"; then
39293 echo $ECHO_N "(cached) $ECHO_C" >&6
39294fi
39295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39297else
39298 # Is the header compilable?
39299echo "$as_me:$LINENO: checking $ac_header usability" >&5
39300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39301cat >conftest.$ac_ext <<_ACEOF
39302/* confdefs.h. */
39303_ACEOF
39304cat confdefs.h >>conftest.$ac_ext
39305cat >>conftest.$ac_ext <<_ACEOF
39306/* end confdefs.h. */
39307$ac_includes_default
39308#include <$ac_header>
39309_ACEOF
39310rm -f conftest.$ac_objext
39311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39312 (eval $ac_compile) 2>conftest.er1
a848cd7e 39313 ac_status=$?
ac1cb8d3
VS
39314 grep -v '^ *+' conftest.er1 >conftest.err
39315 rm -f conftest.er1
39316 cat conftest.err >&5
a848cd7e
SC
39317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318 (exit $ac_status); } &&
6ebeb4c7 39319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39322 ac_status=$?
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; } &&
39325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39327 (eval $ac_try) 2>&5
39328 ac_status=$?
39329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330 (exit $ac_status); }; }; then
39331 ac_header_compiler=yes
39332else
39333 echo "$as_me: failed program was:" >&5
39334sed 's/^/| /' conftest.$ac_ext >&5
39335
39336ac_header_compiler=no
39337fi
ac1cb8d3 39338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39340echo "${ECHO_T}$ac_header_compiler" >&6
39341
39342# Is the header present?
39343echo "$as_me:$LINENO: checking $ac_header presence" >&5
39344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39345cat >conftest.$ac_ext <<_ACEOF
39346/* confdefs.h. */
39347_ACEOF
39348cat confdefs.h >>conftest.$ac_ext
39349cat >>conftest.$ac_ext <<_ACEOF
39350/* end confdefs.h. */
39351#include <$ac_header>
39352_ACEOF
39353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39355 ac_status=$?
39356 grep -v '^ *+' conftest.er1 >conftest.err
39357 rm -f conftest.er1
39358 cat conftest.err >&5
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); } >/dev/null; then
39361 if test -s conftest.err; then
39362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39364 else
39365 ac_cpp_err=
39366 fi
39367else
39368 ac_cpp_err=yes
39369fi
39370if test -z "$ac_cpp_err"; then
39371 ac_header_preproc=yes
39372else
39373 echo "$as_me: failed program was:" >&5
39374sed 's/^/| /' conftest.$ac_ext >&5
39375
39376 ac_header_preproc=no
39377fi
39378rm -f conftest.err conftest.$ac_ext
39379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39380echo "${ECHO_T}$ac_header_preproc" >&6
39381
39382# So? What about this header?
ac1cb8d3
VS
39383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39384 yes:no: )
a848cd7e
SC
39385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39389 ac_header_preproc=yes
a848cd7e 39390 ;;
ac1cb8d3 39391 no:yes:* )
a848cd7e
SC
39392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39404 (
39405 cat <<\_ASBOX
ac1cb8d3
VS
39406## ----------------------------------------- ##
39407## Report this to wx-dev@lists.wxwidgets.org ##
39408## ----------------------------------------- ##
a848cd7e
SC
39409_ASBOX
39410 ) |
39411 sed "s/^/$as_me: WARNING: /" >&2
39412 ;;
39413esac
39414echo "$as_me:$LINENO: checking for $ac_header" >&5
39415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39416if eval "test \"\${$as_ac_Header+set}\" = set"; then
39417 echo $ECHO_N "(cached) $ECHO_C" >&6
39418else
ac1cb8d3 39419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39420fi
39421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39423
39424fi
39425if test `eval echo '${'$as_ac_Header'}'` = yes; then
39426 cat >>confdefs.h <<_ACEOF
39427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39428_ACEOF
ee45c548 39429 wxUSE_JOYSTICK=yes
a848cd7e
SC
39430fi
39431
39432done
39433
ee45c548 39434 fi
4cb1d3da 39435
ee45c548
MW
39436 if test "$wxUSE_JOYSTICK" = "yes"; then
39437 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39438#define wxUSE_JOYSTICK 1
39439_ACEOF
39440
ee45c548
MW
39441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39442 else
39443 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39444echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39445 fi
39446fi
39447
39448
39449
39450if test "$wxUSE_FONTMAP" = "yes" ; then
39451 cat >>confdefs.h <<\_ACEOF
39452#define wxUSE_FONTMAP 1
39453_ACEOF
39454
39455fi
39456
39457if test "$wxUSE_UNICODE" = "yes" ; then
39458 cat >>confdefs.h <<\_ACEOF
39459#define wxUSE_UNICODE 1
39460_ACEOF
39461
39462
39463 if test "$USE_WIN32" != 1; then
39464 wxUSE_UNICODE_MSLU=no
39465 fi
39466
39467 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39468 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39469echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39470if test "${ac_cv_lib_unicows_main+set}" = set; then
39471 echo $ECHO_N "(cached) $ECHO_C" >&6
39472else
39473 ac_check_lib_save_LIBS=$LIBS
39474LIBS="-lunicows $LIBS"
39475cat >conftest.$ac_ext <<_ACEOF
39476/* confdefs.h. */
39477_ACEOF
39478cat confdefs.h >>conftest.$ac_ext
39479cat >>conftest.$ac_ext <<_ACEOF
39480/* end confdefs.h. */
39481
39482
39483int
39484main ()
39485{
39486main ();
39487 ;
39488 return 0;
39489}
39490_ACEOF
39491rm -f conftest.$ac_objext conftest$ac_exeext
39492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39493 (eval $ac_link) 2>conftest.er1
a848cd7e 39494 ac_status=$?
ac1cb8d3
VS
39495 grep -v '^ *+' conftest.er1 >conftest.err
39496 rm -f conftest.er1
39497 cat conftest.err >&5
a848cd7e
SC
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); } &&
6ebeb4c7 39500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39502 (eval $ac_try) 2>&5
39503 ac_status=$?
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); }; } &&
39506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508 (eval $ac_try) 2>&5
39509 ac_status=$?
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); }; }; then
39512 ac_cv_lib_unicows_main=yes
39513else
39514 echo "$as_me: failed program was:" >&5
39515sed 's/^/| /' conftest.$ac_ext >&5
39516
39517ac_cv_lib_unicows_main=no
39518fi
ac1cb8d3
VS
39519rm -f conftest.err conftest.$ac_objext \
39520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39521LIBS=$ac_check_lib_save_LIBS
39522fi
39523echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39524echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39525if test $ac_cv_lib_unicows_main = yes; then
39526
39527 cat >>confdefs.h <<\_ACEOF
39528#define wxUSE_UNICODE_MSLU 1
39529_ACEOF
39530
39531
39532else
39533
39534 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39535 Applications will only run on Windows NT/2000/XP!" >&5
39536echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39537 Applications will only run on Windows NT/2000/XP!" >&2;}
39538 wxUSE_UNICODE_MSLU=no
39539
39540fi
39541
39542 fi
39543fi
39544
39545if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39546 cat >>confdefs.h <<\_ACEOF
39547#define wxUSE_EXPERIMENTAL_PRINTF 1
39548_ACEOF
39549
39550fi
39551
39552
39553if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39554 cat >>confdefs.h <<\_ACEOF
39555#define wxUSE_POSTSCRIPT 1
39556_ACEOF
39557
39558fi
39559
39560cat >>confdefs.h <<\_ACEOF
39561#define wxUSE_AFM_FOR_POSTSCRIPT 1
39562_ACEOF
39563
39564
39565cat >>confdefs.h <<\_ACEOF
39566#define wxUSE_NORMALIZED_PS_FONTS 1
39567_ACEOF
39568
39569
39570
39571if test "$wxUSE_CONSTRAINTS" = "yes"; then
39572 cat >>confdefs.h <<\_ACEOF
39573#define wxUSE_CONSTRAINTS 1
39574_ACEOF
39575
39576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39577fi
39578
8a7b1113
VZ
39579if test "$wxUSE_MDI" = "yes"; then
39580 cat >>confdefs.h <<\_ACEOF
39581#define wxUSE_MDI 1
39582_ACEOF
39583
39584
39585 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39586 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39587#define wxUSE_MDI_ARCHITECTURE 1
39588_ACEOF
39589
8a7b1113
VZ
39590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39591 fi
a848cd7e
SC
39592fi
39593
39594if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39595 cat >>confdefs.h <<\_ACEOF
39596#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39597_ACEOF
39598
39599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39600 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39602 fi
39603fi
39604
39605if test "$wxUSE_HELP" = "yes"; then
39606 cat >>confdefs.h <<\_ACEOF
39607#define wxUSE_HELP 1
39608_ACEOF
39609
39610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39611
39612 if test "$wxUSE_MSW" = 1; then
39613 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39614 cat >>confdefs.h <<\_ACEOF
39615#define wxUSE_MS_HTML_HELP 1
39616_ACEOF
39617
39618 fi
39619 fi
39620
39621 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39622 if test "$wxUSE_HTML" = "yes"; then
39623 cat >>confdefs.h <<\_ACEOF
39624#define wxUSE_WXHTML_HELP 1
39625_ACEOF
39626
39627 else
39628 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39629echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39630 wxUSE_WXHTML_HELP=no
39631 fi
39632 fi
39633fi
39634
39635if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39636 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39637 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39638echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39639 else
39640 cat >>confdefs.h <<\_ACEOF
39641#define wxUSE_PRINTING_ARCHITECTURE 1
39642_ACEOF
39643
39644 fi
39645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39646fi
39647
39648if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39649 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39650echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39651 { (exit 1); exit 1; }; }
39652fi
39653
39654
efdf6afe
VZ
39655if test "$wxUSE_METAFILE" = "yes"; then
39656 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
39657 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
39658echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
39659 wxUSE_METAFILE=no
39660 fi
39661fi
39662
39663
a848cd7e
SC
39664if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39665 -o "$wxUSE_CLIPBOARD" = "yes" \
39666 -o "$wxUSE_OLE" = "yes" \
39667 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39668
39669for ac_header in ole2.h
39670do
39671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39672if eval "test \"\${$as_ac_Header+set}\" = set"; then
39673 echo "$as_me:$LINENO: checking for $ac_header" >&5
39674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39675if eval "test \"\${$as_ac_Header+set}\" = set"; then
39676 echo $ECHO_N "(cached) $ECHO_C" >&6
39677fi
39678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39680else
39681 # Is the header compilable?
39682echo "$as_me:$LINENO: checking $ac_header usability" >&5
39683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39684cat >conftest.$ac_ext <<_ACEOF
39685/* confdefs.h. */
39686_ACEOF
39687cat confdefs.h >>conftest.$ac_ext
39688cat >>conftest.$ac_ext <<_ACEOF
39689/* end confdefs.h. */
39690$ac_includes_default
39691#include <$ac_header>
39692_ACEOF
39693rm -f conftest.$ac_objext
39694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39695 (eval $ac_compile) 2>conftest.er1
a848cd7e 39696 ac_status=$?
ac1cb8d3
VS
39697 grep -v '^ *+' conftest.er1 >conftest.err
39698 rm -f conftest.er1
39699 cat conftest.err >&5
a848cd7e
SC
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); } &&
6ebeb4c7 39702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39704 (eval $ac_try) 2>&5
39705 ac_status=$?
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); }; } &&
39708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39710 (eval $ac_try) 2>&5
39711 ac_status=$?
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); }; }; then
39714 ac_header_compiler=yes
39715else
39716 echo "$as_me: failed program was:" >&5
39717sed 's/^/| /' conftest.$ac_ext >&5
39718
39719ac_header_compiler=no
39720fi
ac1cb8d3 39721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39723echo "${ECHO_T}$ac_header_compiler" >&6
39724
39725# Is the header present?
39726echo "$as_me:$LINENO: checking $ac_header presence" >&5
39727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39728cat >conftest.$ac_ext <<_ACEOF
39729/* confdefs.h. */
39730_ACEOF
39731cat confdefs.h >>conftest.$ac_ext
39732cat >>conftest.$ac_ext <<_ACEOF
39733/* end confdefs.h. */
39734#include <$ac_header>
39735_ACEOF
39736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39738 ac_status=$?
39739 grep -v '^ *+' conftest.er1 >conftest.err
39740 rm -f conftest.er1
39741 cat conftest.err >&5
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); } >/dev/null; then
39744 if test -s conftest.err; then
39745 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39747 else
39748 ac_cpp_err=
39749 fi
39750else
39751 ac_cpp_err=yes
39752fi
39753if test -z "$ac_cpp_err"; then
39754 ac_header_preproc=yes
39755else
39756 echo "$as_me: failed program was:" >&5
39757sed 's/^/| /' conftest.$ac_ext >&5
39758
39759 ac_header_preproc=no
39760fi
39761rm -f conftest.err conftest.$ac_ext
39762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39763echo "${ECHO_T}$ac_header_preproc" >&6
39764
39765# So? What about this header?
ac1cb8d3
VS
39766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39767 yes:no: )
a848cd7e
SC
39768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39772 ac_header_preproc=yes
a848cd7e 39773 ;;
ac1cb8d3 39774 no:yes:* )
a848cd7e
SC
39775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39787 (
39788 cat <<\_ASBOX
ac1cb8d3
VS
39789## ----------------------------------------- ##
39790## Report this to wx-dev@lists.wxwidgets.org ##
39791## ----------------------------------------- ##
a848cd7e
SC
39792_ASBOX
39793 ) |
39794 sed "s/^/$as_me: WARNING: /" >&2
39795 ;;
39796esac
39797echo "$as_me:$LINENO: checking for $ac_header" >&5
39798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39799if eval "test \"\${$as_ac_Header+set}\" = set"; then
39800 echo $ECHO_N "(cached) $ECHO_C" >&6
39801else
ac1cb8d3 39802 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39803fi
39804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39806
39807fi
39808if test `eval echo '${'$as_ac_Header'}'` = yes; then
39809 cat >>confdefs.h <<_ACEOF
39810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39811_ACEOF
39812
39813fi
39814
39815done
39816
39817
39818 if test "$ac_cv_header_ole2_h" = "yes" ; then
39819 if test "$GCC" = yes ; then
39820
39821
39822 ac_ext=cc
39823ac_cpp='$CXXCPP $CPPFLAGS'
39824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39827
39828
39829 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39830echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39831 cat >conftest.$ac_ext <<_ACEOF
39832/* confdefs.h. */
39833_ACEOF
39834cat confdefs.h >>conftest.$ac_ext
39835cat >>conftest.$ac_ext <<_ACEOF
39836/* end confdefs.h. */
39837#include <windows.h>
39838 #include <ole2.h>
39839int
39840main ()
39841{
39842
39843 ;
39844 return 0;
39845}
39846_ACEOF
39847rm -f conftest.$ac_objext
39848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39849 (eval $ac_compile) 2>conftest.er1
a848cd7e 39850 ac_status=$?
ac1cb8d3
VS
39851 grep -v '^ *+' conftest.er1 >conftest.err
39852 rm -f conftest.er1
39853 cat conftest.err >&5
a848cd7e
SC
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); } &&
6ebeb4c7 39856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39858 (eval $ac_try) 2>&5
39859 ac_status=$?
39860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861 (exit $ac_status); }; } &&
39862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39864 (eval $ac_try) 2>&5
39865 ac_status=$?
39866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867 (exit $ac_status); }; }; then
39868 echo "$as_me:$LINENO: result: no" >&5
39869echo "${ECHO_T}no" >&6
39870else
39871 echo "$as_me: failed program was:" >&5
39872sed 's/^/| /' conftest.$ac_ext >&5
39873
39874echo "$as_me:$LINENO: result: yes" >&5
39875echo "${ECHO_T}yes" >&6
39876 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39877fi
ac1cb8d3 39878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39879 ac_ext=c
39880ac_cpp='$CPP $CPPFLAGS'
39881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39883ac_compiler_gnu=$ac_cv_c_compiler_gnu
39884
a848cd7e
SC
39885 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39886 if test "$wxUSE_OLE" = "yes" ; then
39887 cat >>confdefs.h <<\_ACEOF
39888#define wxUSE_OLE 1
39889_ACEOF
39890
0b78747f 39891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39892 fi
39893 fi
39894
39895 if test "$wxUSE_DATAOBJ" = "yes" ; then
39896 cat >>confdefs.h <<\_ACEOF
39897#define wxUSE_DATAOBJ 1
39898_ACEOF
39899
39900 fi
39901 else
39902 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39903echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39904
39905 wxUSE_CLIPBOARD=no
39906 wxUSE_DRAG_AND_DROP=no
39907 wxUSE_DATAOBJ=no
39908 wxUSE_OLE=no
39909 fi
39910
39911 if test "$wxUSE_METAFILE" = "yes"; then
39912 cat >>confdefs.h <<\_ACEOF
39913#define wxUSE_METAFILE 1
39914_ACEOF
39915
39916
39917 cat >>confdefs.h <<\_ACEOF
39918#define wxUSE_ENH_METAFILE 1
39919_ACEOF
39920
39921 fi
39922fi
39923
39924if test "$wxUSE_IPC" = "yes"; then
0b78747f 39925 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39926 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39927echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39928 wxUSE_IPC=no
a848cd7e
SC
39929 fi
39930
0b78747f
MW
39931 if test "$wxUSE_IPC" = "yes"; then
39932 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39933#define wxUSE_IPC 1
39934_ACEOF
39935
0b78747f
MW
39936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39937 fi
a848cd7e
SC
39938fi
39939
eb730a0c 39940if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39941 if test "$wxUSE_MGL" = 1; then
39942 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39943echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39944 wxUSE_DATAOBJ=no
39945 else
39946 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39947#define wxUSE_DATAOBJ 1
39948_ACEOF
39949
2113bc77 39950 fi
eb730a0c
JS
39951else
39952 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39953echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39954 wxUSE_CLIPBOARD=no
39955 wxUSE_DRAG_AND_DROP=no
39956fi
39957
a848cd7e
SC
39958if test "$wxUSE_CLIPBOARD" = "yes"; then
39959 if test "$wxUSE_MGL" = 1; then
39960 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39961echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39962 wxUSE_CLIPBOARD=no
39963 fi
39964
39965 if test "$wxUSE_CLIPBOARD" = "yes"; then
39966 cat >>confdefs.h <<\_ACEOF
39967#define wxUSE_CLIPBOARD 1
39968_ACEOF
39969
a848cd7e
SC
39970 fi
39971fi
39972
39973if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39974 if test "$wxUSE_GTK" = 1; then
39975 if test "$WXGTK12" != 1; then
39976 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39977echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39978 wxUSE_DRAG_AND_DROP=no
39979 fi
39980 fi
39981
39982 if test "$wxUSE_MOTIF" = 1; then
39983 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39984echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39985 wxUSE_DRAG_AND_DROP=no
39986 fi
39987
39988 if test "$wxUSE_X11" = 1; then
39989 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39990echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39991 wxUSE_DRAG_AND_DROP=no
39992 fi
39993
39994 if test "$wxUSE_MGL" = 1; then
39995 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39996echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39997 wxUSE_DRAG_AND_DROP=no
39998 fi
39999
40000 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40001 cat >>confdefs.h <<\_ACEOF
40002#define wxUSE_DRAG_AND_DROP 1
40003_ACEOF
40004
40005 fi
40006
40007fi
40008
40009if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
40010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
40011fi
40012
40013if test "$wxUSE_SPLINES" = "yes" ; then
40014 cat >>confdefs.h <<\_ACEOF
40015#define wxUSE_SPLINES 1
40016_ACEOF
40017
40018fi
40019
fbe2ca43
SN
40020if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
40021 cat >>confdefs.h <<\_ACEOF
40022#define wxUSE_MOUSEWHEEL 1
40023_ACEOF
40024
40025fi
40026
a848cd7e
SC
40027
40028USES_CONTROLS=0
40029if test "$wxUSE_CONTROLS" = "yes"; then
40030 USES_CONTROLS=1
40031fi
40032
40033if test "$wxUSE_ACCEL" = "yes"; then
40034 cat >>confdefs.h <<\_ACEOF
40035#define wxUSE_ACCEL 1
40036_ACEOF
40037
40038 USES_CONTROLS=1
40039fi
40040
40041if test "$wxUSE_BUTTON" = "yes"; then
40042 cat >>confdefs.h <<\_ACEOF
40043#define wxUSE_BUTTON 1
40044_ACEOF
40045
40046 USES_CONTROLS=1
40047fi
40048
40049if test "$wxUSE_BMPBUTTON" = "yes"; then
40050 cat >>confdefs.h <<\_ACEOF
40051#define wxUSE_BMPBUTTON 1
40052_ACEOF
40053
40054 USES_CONTROLS=1
40055fi
40056
40057if test "$wxUSE_CALCTRL" = "yes"; then
40058 cat >>confdefs.h <<\_ACEOF
40059#define wxUSE_CALENDARCTRL 1
40060_ACEOF
40061
40062 USES_CONTROLS=1
40063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
40064fi
40065
40066if test "$wxUSE_CARET" = "yes"; then
40067 cat >>confdefs.h <<\_ACEOF
40068#define wxUSE_CARET 1
40069_ACEOF
40070
40071 USES_CONTROLS=1
40072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
40073fi
40074
40075if test "$wxUSE_COMBOBOX" = "yes"; then
40076 cat >>confdefs.h <<\_ACEOF
40077#define wxUSE_COMBOBOX 1
40078_ACEOF
40079
40080 USES_CONTROLS=1
40081fi
40082
40083if test "$wxUSE_CHOICE" = "yes"; then
40084 cat >>confdefs.h <<\_ACEOF
40085#define wxUSE_CHOICE 1
40086_ACEOF
40087
40088 USES_CONTROLS=1
40089fi
40090
92bbdbcd
WS
40091if test "$wxUSE_CHOICEBOOK" = "yes"; then
40092 cat >>confdefs.h <<\_ACEOF
40093#define wxUSE_CHOICEBOOK 1
40094_ACEOF
40095
40096 USES_CONTROLS=1
40097fi
40098
a848cd7e
SC
40099if test "$wxUSE_CHECKBOX" = "yes"; then
40100 cat >>confdefs.h <<\_ACEOF
40101#define wxUSE_CHECKBOX 1
40102_ACEOF
40103
40104 USES_CONTROLS=1
40105fi
40106
40107if test "$wxUSE_CHECKLST" = "yes"; then
40108 cat >>confdefs.h <<\_ACEOF
40109#define wxUSE_CHECKLISTBOX 1
40110_ACEOF
40111
40112 USES_CONTROLS=1
40113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40114fi
40115
da98e9be
VZ
40116if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40117 cat >>confdefs.h <<\_ACEOF
40118#define wxUSE_DATEPICKCTRL 1
40119_ACEOF
40120
40121 USES_CONTROLS=1
40122fi
40123
a848cd7e
SC
40124if test "$wxUSE_DISPLAY" = "yes"; then
40125 cat >>confdefs.h <<\_ACEOF
40126#define wxUSE_DISPLAY 1
40127_ACEOF
40128
0b78747f 40129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40130fi
40131
40132if test "$wxUSE_GAUGE" = "yes"; then
40133 cat >>confdefs.h <<\_ACEOF
40134#define wxUSE_GAUGE 1
40135_ACEOF
40136
40137 USES_CONTROLS=1
40138fi
40139
40140if test "$wxUSE_GRID" = "yes"; then
40141 cat >>confdefs.h <<\_ACEOF
40142#define wxUSE_GRID 1
40143_ACEOF
40144
40145 USES_CONTROLS=1
40146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40147fi
40148
40149if test "$wxUSE_IMAGLIST" = "yes"; then
40150 cat >>confdefs.h <<\_ACEOF
40151#define wxUSE_IMAGLIST 1
40152_ACEOF
40153
40154fi
40155
40156if test "$wxUSE_LISTBOOK" = "yes"; then
40157 cat >>confdefs.h <<\_ACEOF
40158#define wxUSE_LISTBOOK 1
40159_ACEOF
40160
40161 USES_CONTROLS=1
40162fi
40163
40164if test "$wxUSE_LISTBOX" = "yes"; then
40165 cat >>confdefs.h <<\_ACEOF
40166#define wxUSE_LISTBOX 1
40167_ACEOF
40168
40169 USES_CONTROLS=1
0b78747f 40170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40171fi
40172
40173if test "$wxUSE_LISTCTRL" = "yes"; then
40174 if test "$wxUSE_IMAGLIST" = "yes"; then
40175 cat >>confdefs.h <<\_ACEOF
40176#define wxUSE_LISTCTRL 1
40177_ACEOF
40178
40179 USES_CONTROLS=1
40180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40181 else
40182 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40183echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40184 fi
40185fi
40186
40187if test "$wxUSE_NOTEBOOK" = "yes"; then
40188 cat >>confdefs.h <<\_ACEOF
40189#define wxUSE_NOTEBOOK 1
40190_ACEOF
40191
40192 USES_CONTROLS=1
40193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40194fi
40195
40196
40197if test "$wxUSE_RADIOBOX" = "yes"; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define wxUSE_RADIOBOX 1
40200_ACEOF
40201
40202 USES_CONTROLS=1
40203fi
40204
40205if test "$wxUSE_RADIOBTN" = "yes"; then
40206 cat >>confdefs.h <<\_ACEOF
40207#define wxUSE_RADIOBTN 1
40208_ACEOF
40209
40210 USES_CONTROLS=1
40211fi
40212
40213if test "$wxUSE_SASH" = "yes"; then
40214 cat >>confdefs.h <<\_ACEOF
40215#define wxUSE_SASH 1
40216_ACEOF
40217
40218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40219fi
40220
40221if test "$wxUSE_SCROLLBAR" = "yes"; then
40222 cat >>confdefs.h <<\_ACEOF
40223#define wxUSE_SCROLLBAR 1
40224_ACEOF
40225
40226 USES_CONTROLS=1
40227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40228fi
40229
40230if test "$wxUSE_SLIDER" = "yes"; then
40231 cat >>confdefs.h <<\_ACEOF
40232#define wxUSE_SLIDER 1
40233_ACEOF
40234
40235 USES_CONTROLS=1
40236fi
40237
40238if test "$wxUSE_SPINBTN" = "yes"; then
40239 cat >>confdefs.h <<\_ACEOF
40240#define wxUSE_SPINBTN 1
40241_ACEOF
40242
40243 USES_CONTROLS=1
40244fi
40245
40246if test "$wxUSE_SPINCTRL" = "yes"; then
40247 cat >>confdefs.h <<\_ACEOF
40248#define wxUSE_SPINCTRL 1
40249_ACEOF
40250
40251 USES_CONTROLS=1
40252fi
40253
40254if test "$wxUSE_SPLITTER" = "yes"; then
40255 cat >>confdefs.h <<\_ACEOF
40256#define wxUSE_SPLITTER 1
40257_ACEOF
40258
40259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40260fi
40261
40262if test "$wxUSE_STATBMP" = "yes"; then
40263 cat >>confdefs.h <<\_ACEOF
40264#define wxUSE_STATBMP 1
40265_ACEOF
40266
40267 USES_CONTROLS=1
40268fi
40269
40270if test "$wxUSE_STATBOX" = "yes"; then
40271 cat >>confdefs.h <<\_ACEOF
40272#define wxUSE_STATBOX 1
40273_ACEOF
40274
40275 USES_CONTROLS=1
40276fi
40277
40278if test "$wxUSE_STATTEXT" = "yes"; then
40279 cat >>confdefs.h <<\_ACEOF
40280#define wxUSE_STATTEXT 1
40281_ACEOF
40282
40283 USES_CONTROLS=1
40284fi
40285
40286if test "$wxUSE_STATLINE" = "yes"; then
40287 cat >>confdefs.h <<\_ACEOF
40288#define wxUSE_STATLINE 1
40289_ACEOF
40290
40291 USES_CONTROLS=1
40292fi
40293
40294if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40295 cat >>confdefs.h <<\_ACEOF
40296#define wxUSE_NATIVE_STATUSBAR 1
40297_ACEOF
40298
a848cd7e
SC
40299 cat >>confdefs.h <<\_ACEOF
40300#define wxUSE_STATUSBAR 1
40301_ACEOF
40302
40303 USES_CONTROLS=1
40304
40305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40306fi
40307
40308if test "$wxUSE_TABDIALOG" = "yes"; then
40309 cat >>confdefs.h <<\_ACEOF
40310#define wxUSE_TAB_DIALOG 1
40311_ACEOF
40312
a848cd7e
SC
40313fi
40314
40315if test "$wxUSE_TEXTCTRL" = "yes"; then
40316 cat >>confdefs.h <<\_ACEOF
40317#define wxUSE_TEXTCTRL 1
40318_ACEOF
40319
40320 USES_CONTROLS=1
40321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40322fi
40323
40324if test "$wxUSE_TOGGLEBTN" = "yes"; then
40325 if test "$wxUSE_COCOA" = 1 ; then
40326 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40327echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40328 wxUSE_TOGGLEBTN=no
40329 fi
40330 if test "$wxUSE_UNIVERSAL" = "yes"; then
40331 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40332echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40333 wxUSE_TOGGLEBTN=no
40334 fi
40335
40336 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40337 cat >>confdefs.h <<\_ACEOF
40338#define wxUSE_TOGGLEBTN 1
40339_ACEOF
40340
40341 USES_CONTROLS=1
40342 fi
40343fi
40344
40345if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40346 cat >>confdefs.h <<\_ACEOF
40347#define wxUSE_TOOLBAR_SIMPLE 1
40348_ACEOF
40349
40350 wxUSE_TOOLBAR="yes"
40351 USES_CONTROLS=1
40352fi
40353
40354if test "$wxUSE_TOOLBAR" = "yes"; then
40355 cat >>confdefs.h <<\_ACEOF
40356#define wxUSE_TOOLBAR 1
40357_ACEOF
40358
40359 USES_CONTROLS=1
40360
40361 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40362 wxUSE_TOOLBAR_NATIVE="yes"
40363 fi
40364
40365 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40366 cat >>confdefs.h <<\_ACEOF
40367#define wxUSE_TOOLBAR_NATIVE 1
40368_ACEOF
40369
40370 USES_CONTROLS=1
40371 fi
40372
40373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40374fi
40375
40376if test "$wxUSE_TOOLTIPS" = "yes"; then
40377 if test "$wxUSE_MOTIF" = 1; then
40378 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40379echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40380 else
40381 if test "$wxUSE_UNIVERSAL" = "yes"; then
40382 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40383echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40384 else
40385 cat >>confdefs.h <<\_ACEOF
40386#define wxUSE_TOOLTIPS 1
40387_ACEOF
40388
40389 fi
40390 fi
40391fi
40392
40393if test "$wxUSE_TREECTRL" = "yes"; then
40394 if test "$wxUSE_IMAGLIST" = "yes"; then
40395 cat >>confdefs.h <<\_ACEOF
40396#define wxUSE_TREECTRL 1
40397_ACEOF
40398
40399 USES_CONTROLS=1
40400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40401 else
40402 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40403echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40404 fi
40405fi
40406
40407if test "$wxUSE_POPUPWIN" = "yes"; then
40408 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40409 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40410echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40411 else
40412 if test "$wxUSE_PM" = 1; then
40413 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40414echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40415 else
40416 cat >>confdefs.h <<\_ACEOF
40417#define wxUSE_POPUPWIN 1
40418_ACEOF
40419
0b78747f 40420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40421
40422 USES_CONTROLS=1
40423 fi
40424 fi
40425fi
40426
0dcd06dd 40427if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40428 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40429 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40430echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40431 else
40432 cat >>confdefs.h <<\_ACEOF
40433#define wxUSE_DIALUP_MANAGER 1
40434_ACEOF
40435
40436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40437 fi
40438fi
40439
a848cd7e
SC
40440if test "$wxUSE_TIPWINDOW" = "yes"; then
40441 if test "$wxUSE_PM" = 1; then
40442 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40443echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40444 else
40445 cat >>confdefs.h <<\_ACEOF
40446#define wxUSE_TIPWINDOW 1
40447_ACEOF
40448
40449 fi
40450fi
40451
40452if test "$USES_CONTROLS" = 1; then
40453 cat >>confdefs.h <<\_ACEOF
40454#define wxUSE_CONTROLS 1
40455_ACEOF
40456
40457fi
40458
40459
40460if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40461 cat >>confdefs.h <<\_ACEOF
40462#define wxUSE_ACCESSIBILITY 1
40463_ACEOF
40464
40465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40466fi
40467
38b4a946
VZ
40468if test "$wxUSE_DC_CACHEING" = "yes"; then
40469 cat >>confdefs.h <<\_ACEOF
40470#define wxUSE_DC_CACHEING 1
40471_ACEOF
40472
40473fi
40474
a848cd7e
SC
40475if test "$wxUSE_DRAGIMAGE" = "yes"; then
40476 cat >>confdefs.h <<\_ACEOF
40477#define wxUSE_DRAGIMAGE 1
40478_ACEOF
40479
40480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40481fi
40482
40483if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40484 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40485 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40486echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40487 else
40488 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40489#define wxUSE_EXCEPTIONS 1
40490_ACEOF
40491
07bea8f0
VS
40492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40493 fi
a848cd7e
SC
40494fi
40495
40496USE_HTML=0
40497if test "$wxUSE_HTML" = "yes"; then
40498 cat >>confdefs.h <<\_ACEOF
40499#define wxUSE_HTML 1
40500_ACEOF
40501
40502 USE_HTML=1
40503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40504 if test "$wxUSE_MAC" = 1; then
40505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40506 fi
a848cd7e 40507fi
646b6ec1 40508if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40509 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40510 old_CPPFLAGS="$CPPFLAGS"
40511 CPPFLAGS="$CPPFLAGS -x objective-c++"
40512 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40513echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40514if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40515 echo $ECHO_N "(cached) $ECHO_C" >&6
40516else
40517 cat >conftest.$ac_ext <<_ACEOF
40518/* confdefs.h. */
40519_ACEOF
40520cat confdefs.h >>conftest.$ac_ext
40521cat >>conftest.$ac_ext <<_ACEOF
40522/* end confdefs.h. */
40523#include <Carbon/Carbon.h>
40524
40525#include <WebKit/HIWebView.h>
40526_ACEOF
40527rm -f conftest.$ac_objext
40528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40529 (eval $ac_compile) 2>conftest.er1
40530 ac_status=$?
40531 grep -v '^ *+' conftest.er1 >conftest.err
40532 rm -f conftest.er1
40533 cat conftest.err >&5
40534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535 (exit $ac_status); } &&
6ebeb4c7 40536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40538 (eval $ac_try) 2>&5
40539 ac_status=$?
40540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541 (exit $ac_status); }; } &&
40542 { ac_try='test -s conftest.$ac_objext'
40543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40544 (eval $ac_try) 2>&5
40545 ac_status=$?
40546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547 (exit $ac_status); }; }; then
40548 ac_cv_header_WebKit_HIWebView_h=yes
40549else
40550 echo "$as_me: failed program was:" >&5
40551sed 's/^/| /' conftest.$ac_ext >&5
40552
40553ac_cv_header_WebKit_HIWebView_h=no
40554fi
40555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40556fi
40557echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40558echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40559if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40560
40561 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40562#define wxUSE_WEBKIT 1
40563_ACEOF
40564
07bea8f0
VS
40565 WEBKIT_LINK="-framework WebKit"
40566
40567else
40568
40569 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40570echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40571 wxUSE_WEBKIT=no
40572
646b6ec1
VS
40573fi
40574
07bea8f0
VS
40575
40576 CPPFLAGS="$old_CPPFLAGS"
40577 elif test "$wxUSE_COCOA" = 1; then
40578 cat >>confdefs.h <<\_ACEOF
40579#define wxUSE_WEBKIT 1
40580_ACEOF
40581
40582 else
40583 wxUSE_WEBKIT=no
40584 fi
40585fi
40586
9a8f0513
VS
40587USE_XRC=0
40588if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40589 if test "$wxUSE_XML" != "yes"; then
40590 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40591echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40592 wxUSE_XRC=no
40593 else
40594 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40595#define wxUSE_XRC 1
40596_ACEOF
40597
d2ebf0b7
VS
40598 USE_XRC=1
40599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40600 fi
9a8f0513 40601fi
07bea8f0 40602
a848cd7e
SC
40603if test "$wxUSE_MENUS" = "yes"; then
40604 cat >>confdefs.h <<\_ACEOF
40605#define wxUSE_MENUS 1
40606_ACEOF
40607
40608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40609fi
40610
40611if test "$wxUSE_METAFILE" = "yes"; then
40612 cat >>confdefs.h <<\_ACEOF
40613#define wxUSE_METAFILE 1
40614_ACEOF
40615
40616fi
40617
40618if test "$wxUSE_MIMETYPE" = "yes"; then
40619 cat >>confdefs.h <<\_ACEOF
40620#define wxUSE_MIMETYPE 1
40621_ACEOF
40622
40623fi
40624
40625if test "$wxUSE_MINIFRAME" = "yes"; then
40626 cat >>confdefs.h <<\_ACEOF
40627#define wxUSE_MINIFRAME 1
40628_ACEOF
40629
40630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40631fi
40632
40633if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40634 cat >>confdefs.h <<\_ACEOF
40635#define wxUSE_SYSTEM_OPTIONS 1
40636_ACEOF
40637
40638 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40639 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40641 fi
40642fi
40643
40644
40645if test "$wxUSE_VALIDATORS" = "yes"; then
40646 cat >>confdefs.h <<\_ACEOF
40647#define wxUSE_VALIDATORS 1
40648_ACEOF
40649
40650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40651fi
40652
40653if test "$wxUSE_PALETTE" = "yes" ; then
40654 cat >>confdefs.h <<\_ACEOF
40655#define wxUSE_PALETTE 1
40656_ACEOF
40657
40658fi
40659
40660if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40661 LIBS=" -lunicows $LIBS"
40662fi
40663
40664
40665if test "$wxUSE_IMAGE" = "yes" ; then
40666 cat >>confdefs.h <<\_ACEOF
40667#define wxUSE_IMAGE 1
40668_ACEOF
40669
40670
40671 if test "$wxUSE_GIF" = "yes" ; then
40672 cat >>confdefs.h <<\_ACEOF
40673#define wxUSE_GIF 1
40674_ACEOF
40675
40676 fi
40677
40678 if test "$wxUSE_PCX" = "yes" ; then
40679 cat >>confdefs.h <<\_ACEOF
40680#define wxUSE_PCX 1
40681_ACEOF
40682
40683 fi
40684
40685 if test "$wxUSE_IFF" = "yes" ; then
40686 cat >>confdefs.h <<\_ACEOF
40687#define wxUSE_IFF 1
40688_ACEOF
40689
40690 fi
40691
40692 if test "$wxUSE_PNM" = "yes" ; then
40693 cat >>confdefs.h <<\_ACEOF
40694#define wxUSE_PNM 1
40695_ACEOF
40696
40697 fi
40698
40699 if test "$wxUSE_XPM" = "yes" ; then
40700 cat >>confdefs.h <<\_ACEOF
40701#define wxUSE_XPM 1
40702_ACEOF
40703
40704 fi
40705
40706 if test "$wxUSE_ICO_CUR" = "yes" ; then
40707 cat >>confdefs.h <<\_ACEOF
40708#define wxUSE_ICO_CUR 1
40709_ACEOF
40710
40711 fi
40712fi
40713
40714
40715if test "$wxUSE_CHOICEDLG" = "yes"; then
40716 cat >>confdefs.h <<\_ACEOF
40717#define wxUSE_CHOICEDLG 1
40718_ACEOF
40719
40720fi
40721
40722if test "$wxUSE_COLOURDLG" = "yes"; then
40723 cat >>confdefs.h <<\_ACEOF
40724#define wxUSE_COLOURDLG 1
40725_ACEOF
40726
40727fi
40728
40729if test "$wxUSE_FILEDLG" = "yes"; then
40730 cat >>confdefs.h <<\_ACEOF
40731#define wxUSE_FILEDLG 1
40732_ACEOF
40733
40734fi
40735
40736if test "$wxUSE_FINDREPLDLG" = "yes"; then
40737 cat >>confdefs.h <<\_ACEOF
40738#define wxUSE_FINDREPLDLG 1
40739_ACEOF
40740
40741fi
40742
40743if test "$wxUSE_FONTDLG" = "yes"; then
40744 cat >>confdefs.h <<\_ACEOF
40745#define wxUSE_FONTDLG 1
40746_ACEOF
40747
40748fi
40749
40750if test "$wxUSE_DIRDLG" = "yes"; then
40751 if test "$wxUSE_TREECTRL" != "yes"; then
40752 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40753echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40754 else
40755 cat >>confdefs.h <<\_ACEOF
40756#define wxUSE_DIRDLG 1
40757_ACEOF
40758
40759 fi
40760fi
40761
40762if test "$wxUSE_MSGDLG" = "yes"; then
40763 cat >>confdefs.h <<\_ACEOF
40764#define wxUSE_MSGDLG 1
40765_ACEOF
40766
40767fi
40768
40769if test "$wxUSE_NUMBERDLG" = "yes"; then
40770 cat >>confdefs.h <<\_ACEOF
40771#define wxUSE_NUMBERDLG 1
40772_ACEOF
40773
40774fi
40775
40776if test "$wxUSE_PROGRESSDLG" = "yes"; then
40777 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40778 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40779echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40780 else
40781 cat >>confdefs.h <<\_ACEOF
40782#define wxUSE_PROGRESSDLG 1
40783_ACEOF
40784
40785 fi
40786fi
40787
40788if test "$wxUSE_SPLASH" = "yes"; then
40789 cat >>confdefs.h <<\_ACEOF
40790#define wxUSE_SPLASH 1
40791_ACEOF
40792
2057db16 40793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40794fi
40795
40796if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40797 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40798 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40799echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40800 else
40801 cat >>confdefs.h <<\_ACEOF
40802#define wxUSE_STARTUP_TIPS 1
40803_ACEOF
40804
40805 fi
40806fi
40807
40808if test "$wxUSE_TEXTDLG" = "yes"; then
40809 cat >>confdefs.h <<\_ACEOF
40810#define wxUSE_TEXTDLG 1
40811_ACEOF
40812
40813fi
40814
40815if test "$wxUSE_WIZARDDLG" = "yes"; then
40816 cat >>confdefs.h <<\_ACEOF
40817#define wxUSE_WIZARDDLG 1
40818_ACEOF
40819
40820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40821fi
40822
40823
ce756cb0 40824if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40825 if test "$wxUSE_GTK" = 1; then
40826 wxUSE_GSTREAMER="yes"
40827
ce756cb0 40828
dae87f93 40829 succeeded=no
ce756cb0 40830
dae87f93
RN
40831 if test -z "$PKG_CONFIG"; then
40832 # Extract the first word of "pkg-config", so it can be a program name with args.
40833set dummy pkg-config; ac_word=$2
40834echo "$as_me:$LINENO: checking for $ac_word" >&5
40835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40836if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40837 echo $ECHO_N "(cached) $ECHO_C" >&6
40838else
40839 case $PKG_CONFIG in
40840 [\\/]* | ?:[\\/]*)
40841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40842 ;;
40843 *)
40844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40845for as_dir in $PATH
40846do
40847 IFS=$as_save_IFS
40848 test -z "$as_dir" && as_dir=.
40849 for ac_exec_ext in '' $ac_executable_extensions; do
40850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40853 break 2
40854 fi
40855done
40856done
40857
40858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40859 ;;
40860esac
40861fi
40862PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40863
40864if test -n "$PKG_CONFIG"; then
40865 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40866echo "${ECHO_T}$PKG_CONFIG" >&6
40867else
40868 echo "$as_me:$LINENO: result: no" >&5
40869echo "${ECHO_T}no" >&6
40870fi
40871
40872 fi
40873
40874 if test "$PKG_CONFIG" = "no" ; then
40875 echo "*** The pkg-config script could not be found. Make sure it is"
40876 echo "*** in your path, or set the PKG_CONFIG environment variable"
40877 echo "*** to the full path to pkg-config."
40878 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40879 else
40880 PKG_CONFIG_MIN_VERSION=0.9.0
40881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40882 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40883echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40884
40885 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40886 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40887echo "${ECHO_T}yes" >&6
dae87f93 40888 succeeded=yes
ce756cb0 40889
dae87f93
RN
40890 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40891echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40892 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40893 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40894echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40895
40896 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40897echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40898 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40899 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40900echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40901 else
40902 GSTREAMER_CFLAGS=""
40903 GSTREAMER_LIBS=""
40904 ## If we have a custom action on failure, don't print errors, but
40905 ## do set a variable so people can do so.
40906 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40907
dae87f93
RN
40908 fi
40909
40910
40911
40912 else
40913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40915 fi
40916 fi
40917
40918 if test $succeeded = yes; then
40919
40920 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40921 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40922
ce756cb0 40923 else
dae87f93
RN
40924
40925 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40926echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40927 wxUSE_GSTREAMER="no"
40928
40929 fi
40930
40931
40932
40933
40934
40935 if test "x$GST_INSPECT" == "x"; then
40936 # Extract the first word of "gst-inspect", so it can be a program name with args.
40937set dummy gst-inspect; ac_word=$2
40938echo "$as_me:$LINENO: checking for $ac_word" >&5
40939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40940if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40941 echo $ECHO_N "(cached) $ECHO_C" >&6
40942else
40943 if test -n "$GST_INSPECT"; then
40944 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40945else
40946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40947for as_dir in $PATH
40948do
40949 IFS=$as_save_IFS
40950 test -z "$as_dir" && as_dir=.
40951 for ac_exec_ext in '' $ac_executable_extensions; do
40952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40953 ac_cv_prog_GST_INSPECT="gst-inspect"
40954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40955 break 2
ce756cb0 40956 fi
dae87f93
RN
40957done
40958done
40959
40960fi
40961fi
40962GST_INSPECT=$ac_cv_prog_GST_INSPECT
40963if test -n "$GST_INSPECT"; then
40964 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40965echo "${ECHO_T}$GST_INSPECT" >&6
40966else
40967 echo "$as_me:$LINENO: result: no" >&5
40968echo "${ECHO_T}no" >&6
40969fi
40970
40971 fi
40972
40973 if test "x$GST_INSPECT" != "x"; then
40974 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40975echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40976 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40977 echo "$as_me:$LINENO: result: found." >&5
40978echo "${ECHO_T}found." >&6
ce756cb0 40979
ce756cb0 40980 else
dae87f93
RN
40981 echo "$as_me:$LINENO: result: not found." >&5
40982echo "${ECHO_T}not found." >&6
40983
40984 wxUSE_GSTREAMER="no"
40985 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40986echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40987
40988 fi
40989 fi
40990
40991
40992 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40993echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40994if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40995 echo $ECHO_N "(cached) $ECHO_C" >&6
40996else
40997 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40998/* confdefs.h. */
40999_ACEOF
41000cat confdefs.h >>conftest.$ac_ext
41001cat >>conftest.$ac_ext <<_ACEOF
41002/* end confdefs.h. */
dae87f93 41003#include <gst/gst.h>
ce756cb0 41004
dae87f93 41005#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
41006_ACEOF
41007rm -f conftest.$ac_objext
41008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41009 (eval $ac_compile) 2>conftest.er1
41010 ac_status=$?
41011 grep -v '^ *+' conftest.er1 >conftest.err
41012 rm -f conftest.er1
41013 cat conftest.err >&5
41014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015 (exit $ac_status); } &&
6ebeb4c7 41016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
41017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41018 (eval $ac_try) 2>&5
41019 ac_status=$?
41020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021 (exit $ac_status); }; } &&
41022 { ac_try='test -s conftest.$ac_objext'
41023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41024 (eval $ac_try) 2>&5
41025 ac_status=$?
41026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41027 (exit $ac_status); }; }; then
dae87f93 41028 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
41029else
41030 echo "$as_me: failed program was:" >&5
41031sed 's/^/| /' conftest.$ac_ext >&5
41032
dae87f93 41033ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
41034fi
41035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
41036fi
41037echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41038echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
41039if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
41040 :
41041else
ce756cb0 41042
dae87f93
RN
41043 wxUSE_GSTREAMER="no"
41044 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
41045echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 41046
dae87f93 41047fi
ce756cb0 41048
dae87f93
RN
41049
41050
41051 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
41052echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
41053
41054ac_find_libraries=
41055for ac_dir in $SEARCH_LIB /usr/lib;
41056 do
3eca31dc 41057 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
41058 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
41059 ac_find_libraries=$ac_dir
41060 break 2
41061 fi
41062 done
41063 done
41064
ce756cb0 41065
dae87f93
RN
41066 if test "$ac_find_libraries" = "" ; then
41067 echo "$as_me:$LINENO: result: no" >&5
41068echo "${ECHO_T}no" >&6
41069 wxUSE_GSTREAMER="no"
41070 else
41071 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41072echo "${ECHO_T}yes" >&6
dae87f93 41073 fi
ce756cb0 41074
dae87f93
RN
41075 if test "$wxUSE_GSTREAMER" = "yes"; then
41076 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
41077#define wxUSE_GSTREAMER 1
41078_ACEOF
41079
dae87f93
RN
41080 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
41081echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
41082 fi
41083 fi
41084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
41085 cat >>confdefs.h <<\_ACEOF
41086#define wxUSE_MEDIACTRL 1
41087_ACEOF
41088
41089fi
41090
41091
a848cd7e
SC
41092if test "$cross_compiling" = "yes"; then
41093 OSINFO="\"$host\""
41094else
41095 OSINFO=`uname -s -r -m`
41096 OSINFO="\"$OSINFO\""
41097fi
41098
41099cat >>confdefs.h <<_ACEOF
41100#define WXWIN_OS_DESCRIPTION $OSINFO
41101_ACEOF
41102
41103
41104
41105if test "x$prefix" != "xNONE"; then
41106 wxPREFIX=$prefix
41107else
41108 wxPREFIX=$ac_default_prefix
41109fi
41110
41111cat >>confdefs.h <<_ACEOF
41112#define wxINSTALL_PREFIX "$wxPREFIX"
41113_ACEOF
41114
41115
a848cd7e
SC
41116
41117
41118CORE_BASE_LIBS="net base"
41119CORE_GUI_LIBS="adv core"
41120
41121if test "$wxUSE_XML" = "yes" ; then
41122 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41123fi
41124if test "$wxUSE_ODBC" != "no" ; then
41125 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41126 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41127fi
41128if test "$wxUSE_HTML" = "yes" ; then
41129 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41130fi
61639efb
VZ
41131if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41132 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41133fi
9a8f0513
VS
41134if test "$wxUSE_XRC" = "yes" ; then
41135 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41136fi
a848cd7e
SC
41137
41138if test "$wxUSE_GUI" != "yes"; then
41139 CORE_GUI_LIBS=""
41140fi
41141
41142
41143
41144
41145
41146
41147
41148
41149if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41150 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41151 if test "$USE_DARWIN" = 1; then
41152 LDFLAGS="$LDFLAGS -framework QuickTime"
41153 else
41154 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41155 fi
07bea8f0 41156 fi
5dcf30a0 41157 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41158 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41159 else
41160 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41161 fi
a848cd7e
SC
41162fi
41163if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41164 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41165 if test "$wxUSE_MEDIACTRL" = "yes"; then
41166 LDFLAGS="$LDFLAGS -framework QuickTime"
41167 fi
a848cd7e 41168fi
19b27e78
MW
41169if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41170 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41171fi
a848cd7e
SC
41172
41173
41174LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41175
41176have_cos=0
41177have_floor=0
41178
41179for ac_func in cos
41180do
41181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41182echo "$as_me:$LINENO: checking for $ac_func" >&5
41183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41184if eval "test \"\${$as_ac_var+set}\" = set"; then
41185 echo $ECHO_N "(cached) $ECHO_C" >&6
41186else
41187 cat >conftest.$ac_ext <<_ACEOF
41188/* confdefs.h. */
41189_ACEOF
41190cat confdefs.h >>conftest.$ac_ext
41191cat >>conftest.$ac_ext <<_ACEOF
41192/* end confdefs.h. */
ac1cb8d3
VS
41193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41195#define $ac_func innocuous_$ac_func
41196
a848cd7e
SC
41197/* System header to define __stub macros and hopefully few prototypes,
41198 which can conflict with char $ac_func (); below.
41199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41200 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41201
a848cd7e
SC
41202#ifdef __STDC__
41203# include <limits.h>
41204#else
41205# include <assert.h>
41206#endif
ac1cb8d3
VS
41207
41208#undef $ac_func
41209
a848cd7e
SC
41210/* Override any gcc2 internal prototype to avoid an error. */
41211#ifdef __cplusplus
41212extern "C"
41213{
41214#endif
41215/* We use char because int might match the return type of a gcc2
41216 builtin and then its argument prototype would still apply. */
41217char $ac_func ();
41218/* The GNU C library defines this for functions which it implements
41219 to always fail with ENOSYS. Some functions are actually named
41220 something starting with __ and the normal name is an alias. */
41221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41222choke me
41223#else
41224char (*f) () = $ac_func;
41225#endif
41226#ifdef __cplusplus
41227}
41228#endif
41229
41230int
41231main ()
41232{
41233return f != $ac_func;
41234 ;
41235 return 0;
41236}
41237_ACEOF
41238rm -f conftest.$ac_objext conftest$ac_exeext
41239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41240 (eval $ac_link) 2>conftest.er1
a848cd7e 41241 ac_status=$?
ac1cb8d3
VS
41242 grep -v '^ *+' conftest.er1 >conftest.err
41243 rm -f conftest.er1
41244 cat conftest.err >&5
a848cd7e
SC
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); } &&
6ebeb4c7 41247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41249 (eval $ac_try) 2>&5
41250 ac_status=$?
41251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252 (exit $ac_status); }; } &&
41253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41255 (eval $ac_try) 2>&5
41256 ac_status=$?
41257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41258 (exit $ac_status); }; }; then
41259 eval "$as_ac_var=yes"
41260else
41261 echo "$as_me: failed program was:" >&5
41262sed 's/^/| /' conftest.$ac_ext >&5
41263
41264eval "$as_ac_var=no"
41265fi
ac1cb8d3
VS
41266rm -f conftest.err conftest.$ac_objext \
41267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41268fi
41269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41271if test `eval echo '${'$as_ac_var'}'` = yes; then
41272 cat >>confdefs.h <<_ACEOF
41273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41274_ACEOF
41275 have_cos=1
41276fi
41277done
41278
41279
41280for ac_func in floor
41281do
41282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41283echo "$as_me:$LINENO: checking for $ac_func" >&5
41284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41285if eval "test \"\${$as_ac_var+set}\" = set"; then
41286 echo $ECHO_N "(cached) $ECHO_C" >&6
41287else
41288 cat >conftest.$ac_ext <<_ACEOF
41289/* confdefs.h. */
41290_ACEOF
41291cat confdefs.h >>conftest.$ac_ext
41292cat >>conftest.$ac_ext <<_ACEOF
41293/* end confdefs.h. */
ac1cb8d3
VS
41294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41296#define $ac_func innocuous_$ac_func
41297
a848cd7e
SC
41298/* System header to define __stub macros and hopefully few prototypes,
41299 which can conflict with char $ac_func (); below.
41300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41301 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41302
a848cd7e
SC
41303#ifdef __STDC__
41304# include <limits.h>
41305#else
41306# include <assert.h>
41307#endif
ac1cb8d3
VS
41308
41309#undef $ac_func
41310
a848cd7e
SC
41311/* Override any gcc2 internal prototype to avoid an error. */
41312#ifdef __cplusplus
41313extern "C"
41314{
41315#endif
41316/* We use char because int might match the return type of a gcc2
41317 builtin and then its argument prototype would still apply. */
41318char $ac_func ();
41319/* The GNU C library defines this for functions which it implements
41320 to always fail with ENOSYS. Some functions are actually named
41321 something starting with __ and the normal name is an alias. */
41322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41323choke me
41324#else
41325char (*f) () = $ac_func;
41326#endif
41327#ifdef __cplusplus
41328}
41329#endif
41330
41331int
41332main ()
41333{
41334return f != $ac_func;
41335 ;
41336 return 0;
41337}
41338_ACEOF
41339rm -f conftest.$ac_objext conftest$ac_exeext
41340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41341 (eval $ac_link) 2>conftest.er1
a848cd7e 41342 ac_status=$?
ac1cb8d3
VS
41343 grep -v '^ *+' conftest.er1 >conftest.err
41344 rm -f conftest.er1
41345 cat conftest.err >&5
a848cd7e
SC
41346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41347 (exit $ac_status); } &&
6ebeb4c7 41348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41350 (eval $ac_try) 2>&5
41351 ac_status=$?
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); }; } &&
41354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41356 (eval $ac_try) 2>&5
41357 ac_status=$?
41358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 (exit $ac_status); }; }; then
41360 eval "$as_ac_var=yes"
41361else
41362 echo "$as_me: failed program was:" >&5
41363sed 's/^/| /' conftest.$ac_ext >&5
41364
41365eval "$as_ac_var=no"
41366fi
ac1cb8d3
VS
41367rm -f conftest.err conftest.$ac_objext \
41368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41369fi
41370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41372if test `eval echo '${'$as_ac_var'}'` = yes; then
41373 cat >>confdefs.h <<_ACEOF
41374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41375_ACEOF
41376 have_floor=1
41377fi
41378done
41379
41380echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41381echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41382if test "$have_cos" = 1 -a "$have_floor" = 1; then
41383 echo "$as_me:$LINENO: result: yes" >&5
41384echo "${ECHO_T}yes" >&6
41385else
41386 echo "$as_me:$LINENO: result: no" >&5
41387echo "${ECHO_T}no" >&6
41388 LIBS="$LIBS -lm"
41389 # use different functions to avoid configure caching
41390 have_sin=0
41391 have_ceil=0
41392
41393for ac_func in sin
41394do
41395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41396echo "$as_me:$LINENO: checking for $ac_func" >&5
41397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41398if eval "test \"\${$as_ac_var+set}\" = set"; then
41399 echo $ECHO_N "(cached) $ECHO_C" >&6
41400else
41401 cat >conftest.$ac_ext <<_ACEOF
41402/* confdefs.h. */
41403_ACEOF
41404cat confdefs.h >>conftest.$ac_ext
41405cat >>conftest.$ac_ext <<_ACEOF
41406/* end confdefs.h. */
ac1cb8d3
VS
41407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41409#define $ac_func innocuous_$ac_func
41410
a848cd7e
SC
41411/* System header to define __stub macros and hopefully few prototypes,
41412 which can conflict with char $ac_func (); below.
41413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41414 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41415
a848cd7e
SC
41416#ifdef __STDC__
41417# include <limits.h>
41418#else
41419# include <assert.h>
41420#endif
ac1cb8d3
VS
41421
41422#undef $ac_func
41423
a848cd7e
SC
41424/* Override any gcc2 internal prototype to avoid an error. */
41425#ifdef __cplusplus
41426extern "C"
41427{
41428#endif
41429/* We use char because int might match the return type of a gcc2
41430 builtin and then its argument prototype would still apply. */
41431char $ac_func ();
41432/* The GNU C library defines this for functions which it implements
41433 to always fail with ENOSYS. Some functions are actually named
41434 something starting with __ and the normal name is an alias. */
41435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41436choke me
41437#else
41438char (*f) () = $ac_func;
41439#endif
41440#ifdef __cplusplus
41441}
41442#endif
41443
41444int
41445main ()
41446{
41447return f != $ac_func;
41448 ;
41449 return 0;
41450}
41451_ACEOF
41452rm -f conftest.$ac_objext conftest$ac_exeext
41453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41454 (eval $ac_link) 2>conftest.er1
a848cd7e 41455 ac_status=$?
ac1cb8d3
VS
41456 grep -v '^ *+' conftest.er1 >conftest.err
41457 rm -f conftest.er1
41458 cat conftest.err >&5
a848cd7e
SC
41459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460 (exit $ac_status); } &&
6ebeb4c7 41461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41463 (eval $ac_try) 2>&5
41464 ac_status=$?
41465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466 (exit $ac_status); }; } &&
41467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41469 (eval $ac_try) 2>&5
41470 ac_status=$?
41471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472 (exit $ac_status); }; }; then
41473 eval "$as_ac_var=yes"
41474else
41475 echo "$as_me: failed program was:" >&5
41476sed 's/^/| /' conftest.$ac_ext >&5
41477
41478eval "$as_ac_var=no"
41479fi
ac1cb8d3
VS
41480rm -f conftest.err conftest.$ac_objext \
41481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41482fi
41483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41485if test `eval echo '${'$as_ac_var'}'` = yes; then
41486 cat >>confdefs.h <<_ACEOF
41487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41488_ACEOF
41489 have_sin=1
41490fi
41491done
41492
41493
41494for ac_func in ceil
41495do
41496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41497echo "$as_me:$LINENO: checking for $ac_func" >&5
41498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41499if eval "test \"\${$as_ac_var+set}\" = set"; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41501else
41502 cat >conftest.$ac_ext <<_ACEOF
41503/* confdefs.h. */
41504_ACEOF
41505cat confdefs.h >>conftest.$ac_ext
41506cat >>conftest.$ac_ext <<_ACEOF
41507/* end confdefs.h. */
ac1cb8d3
VS
41508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41510#define $ac_func innocuous_$ac_func
41511
a848cd7e
SC
41512/* System header to define __stub macros and hopefully few prototypes,
41513 which can conflict with char $ac_func (); below.
41514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41516
a848cd7e
SC
41517#ifdef __STDC__
41518# include <limits.h>
41519#else
41520# include <assert.h>
41521#endif
ac1cb8d3
VS
41522
41523#undef $ac_func
41524
a848cd7e
SC
41525/* Override any gcc2 internal prototype to avoid an error. */
41526#ifdef __cplusplus
41527extern "C"
41528{
41529#endif
41530/* We use char because int might match the return type of a gcc2
41531 builtin and then its argument prototype would still apply. */
41532char $ac_func ();
41533/* The GNU C library defines this for functions which it implements
41534 to always fail with ENOSYS. Some functions are actually named
41535 something starting with __ and the normal name is an alias. */
41536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41537choke me
41538#else
41539char (*f) () = $ac_func;
41540#endif
41541#ifdef __cplusplus
41542}
41543#endif
41544
41545int
41546main ()
41547{
41548return f != $ac_func;
41549 ;
41550 return 0;
41551}
41552_ACEOF
41553rm -f conftest.$ac_objext conftest$ac_exeext
41554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41555 (eval $ac_link) 2>conftest.er1
a848cd7e 41556 ac_status=$?
ac1cb8d3
VS
41557 grep -v '^ *+' conftest.er1 >conftest.err
41558 rm -f conftest.er1
41559 cat conftest.err >&5
a848cd7e
SC
41560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561 (exit $ac_status); } &&
6ebeb4c7 41562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41565 ac_status=$?
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; } &&
41568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41570 (eval $ac_try) 2>&5
41571 ac_status=$?
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); }; }; then
41574 eval "$as_ac_var=yes"
41575else
41576 echo "$as_me: failed program was:" >&5
41577sed 's/^/| /' conftest.$ac_ext >&5
41578
41579eval "$as_ac_var=no"
41580fi
ac1cb8d3
VS
41581rm -f conftest.err conftest.$ac_objext \
41582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41583fi
41584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41586if test `eval echo '${'$as_ac_var'}'` = yes; then
41587 cat >>confdefs.h <<_ACEOF
41588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41589_ACEOF
41590 have_ceil=1
41591fi
41592done
41593
41594 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41595echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41596 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41597 echo "$as_me:$LINENO: result: yes" >&5
41598echo "${ECHO_T}yes" >&6
41599 else
41600 echo "$as_me:$LINENO: result: no" >&5
41601echo "${ECHO_T}no" >&6
41602 # not sure we should warn the user, crash, etc.
41603 fi
41604fi
41605
41606if test "$wxUSE_GUI" = "yes"; then
41607
41608
8bce5cda
MW
41609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41610 dynamic erase event exec font image minimal mobile \
41611 mobile/wxedit mobile/styles propsize render \
41612 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41613
41614 if test "$wxUSE_MONOLITHIC" != "yes"; then
41615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41616 fi
0b78747f 41617 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41619 if test "$wxUSE_UNIVERSAL" != "yes"; then
41620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41621 fi
41622 fi
41623 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41625 fi
a848cd7e
SC
41626else
41627 SAMPLES_SUBDIRS="console"
41628fi
41629
41630
ceec2216 41631INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41632-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41633
41634if test "$GXX" = yes ; then
6ebeb4c7 41635 CWARNINGS="-Wall -Wundef"
5294a27e 41636 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41637fi
a848cd7e
SC
41638
41639EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41640
0c3c69fc 41641CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41642CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41643CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41644
95986553
DE
41645if test "x$MWCC" = "xyes"; then
41646
41647 CC="$CC -cwd source -I-"
41648 CXX="$CXX -cwd source -I-"
41649fi
41650
a848cd7e 41651
0c3c69fc 41652LIBS=`echo $LIBS`
a848cd7e
SC
41653EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41654EXTRALIBS_XML="$EXPAT_LINK"
41655EXTRALIBS_HTML="$MSPACK_LINK"
41656EXTRALIBS_ODBC="$ODBC_LINK"
41657if test "$wxUSE_GUI" = "yes"; then
2e350179 41658 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41659fi
41660if test "$wxUSE_OPENGL" = "yes"; then
41661 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41662fi
41663
41664LDFLAGS="$LDFLAGS $PROFILE"
41665
41666if test "$wxUSE_GTK" = 1; then
41667 WXCONFIG_INCLUDE=
41668else
41669 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41670fi
41671
41672WXCONFIG_EXTRALIBS="$LIBS"
41673
41674if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41675 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41676fi
41677if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41678 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41679fi
41680if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41681 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41682fi
41683if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41684 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41685fi
41686if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41687 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41688fi
41689if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41690 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41691fi
41692if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41693 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41694fi
41695
41696for i in $wxconfig_3rdparty ; do
74802184 41697 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41698done
41699
41700
41701if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41702 WXUNIV=1
41703else
41704 WXUNIV=0
41705fi
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715if test $wxUSE_MONOLITHIC = "yes" ; then
41716 MONOLITHIC=1
41717else
41718 MONOLITHIC=0
41719fi
41720
41721if test $wxUSE_PLUGINS = "yes" ; then
41722 USE_PLUGINS=1
41723else
41724 USE_PLUGINS=0
41725fi
41726
41727if test $wxUSE_ODBC != "no" ; then
41728 USE_ODBC=1
41729else
41730 USE_ODBC=0
41731fi
41732
16358932
VZ
41733if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41734 USE_QA=1
41735else
41736 USE_QA=0
41737fi
41738
a848cd7e
SC
41739if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41740 OFFICIAL_BUILD=1
41741else
41742 OFFICIAL_BUILD=0
41743fi
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
ceec2216 41763
d1c38808 41764
a848cd7e
SC
41765
41766
41767TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41768
41769
41770
41771
41772
41773
41774
41775
4d4ff94c
VZ
41776case "$TOOLKIT" in
41777 GTK)
41778 TOOLKIT_USER="GTK+"
41779 if test "$WXGTK20" = 1; then
41780 TOOLKIT_USER="$TOOLKIT_USER 2"
41781 fi
9a8f0513 41782 ;;
4d4ff94c
VZ
41783
41784 *)
41785 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41786 ;;
4d4ff94c 41787esac
a848cd7e 41788
fb00f58d
JS
41789if test "$wxUSE_WINE" = "yes"; then
41790 BAKEFILE_FORCE_PLATFORM=win32
41791fi
41792
9a8f0513 41793
1e9e8aba
DE
41794
41795
a848cd7e
SC
41796 if test "x$BAKEFILE_HOST" = "x"; then
41797 BAKEFILE_HOST="${host}"
41798 fi
41799
41800 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41801
41802 if test -n "$ac_tool_prefix"; then
41803 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41804set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41805echo "$as_me:$LINENO: checking for $ac_word" >&5
41806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41807if test "${ac_cv_prog_RANLIB+set}" = set; then
41808 echo $ECHO_N "(cached) $ECHO_C" >&6
41809else
41810 if test -n "$RANLIB"; then
41811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41812else
41813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41814for as_dir in $PATH
41815do
41816 IFS=$as_save_IFS
41817 test -z "$as_dir" && as_dir=.
41818 for ac_exec_ext in '' $ac_executable_extensions; do
41819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41820 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41822 break 2
41823 fi
41824done
41825done
41826
41827fi
41828fi
41829RANLIB=$ac_cv_prog_RANLIB
41830if test -n "$RANLIB"; then
41831 echo "$as_me:$LINENO: result: $RANLIB" >&5
41832echo "${ECHO_T}$RANLIB" >&6
41833else
41834 echo "$as_me:$LINENO: result: no" >&5
41835echo "${ECHO_T}no" >&6
41836fi
41837
41838fi
41839if test -z "$ac_cv_prog_RANLIB"; then
41840 ac_ct_RANLIB=$RANLIB
41841 # Extract the first word of "ranlib", so it can be a program name with args.
41842set dummy ranlib; ac_word=$2
41843echo "$as_me:$LINENO: checking for $ac_word" >&5
41844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41845if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41846 echo $ECHO_N "(cached) $ECHO_C" >&6
41847else
41848 if test -n "$ac_ct_RANLIB"; then
41849 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41850else
41851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41852for as_dir in $PATH
41853do
41854 IFS=$as_save_IFS
41855 test -z "$as_dir" && as_dir=.
41856 for ac_exec_ext in '' $ac_executable_extensions; do
41857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41858 ac_cv_prog_ac_ct_RANLIB="ranlib"
41859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41860 break 2
41861 fi
41862done
41863done
41864
41865 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41866fi
41867fi
41868ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41869if test -n "$ac_ct_RANLIB"; then
41870 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41871echo "${ECHO_T}$ac_ct_RANLIB" >&6
41872else
41873 echo "$as_me:$LINENO: result: no" >&5
41874echo "${ECHO_T}no" >&6
41875fi
41876
41877 RANLIB=$ac_ct_RANLIB
41878else
41879 RANLIB="$ac_cv_prog_RANLIB"
41880fi
41881
41882 # Find a good install program. We prefer a C program (faster),
41883# so one script is as good as another. But avoid the broken or
41884# incompatible versions:
41885# SysV /etc/install, /usr/sbin/install
41886# SunOS /usr/etc/install
41887# IRIX /sbin/install
41888# AIX /bin/install
41889# AmigaOS /C/install, which installs bootblocks on floppy discs
41890# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41891# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41892# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41893# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41894# ./install, which can be erroneously created by make from ./install.sh.
41895echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41896echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41897if test -z "$INSTALL"; then
41898if test "${ac_cv_path_install+set}" = set; then
41899 echo $ECHO_N "(cached) $ECHO_C" >&6
41900else
41901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41902for as_dir in $PATH
41903do
41904 IFS=$as_save_IFS
41905 test -z "$as_dir" && as_dir=.
41906 # Account for people who put trailing slashes in PATH elements.
41907case $as_dir/ in
41908 ./ | .// | /cC/* | \
41909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41910 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41911 /usr/ucb/* ) ;;
41912 *)
41913 # OSF1 and SCO ODT 3.0 have their own names for install.
41914 # Don't use installbsd from OSF since it installs stuff as root
41915 # by default.
41916 for ac_prog in ginstall scoinst install; do
41917 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41918 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41919 if test $ac_prog = install &&
41920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41921 # AIX install. It has an incompatible calling convention.
41922 :
41923 elif test $ac_prog = install &&
41924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41925 # program-specific install script used by HP pwplus--don't use.
41926 :
41927 else
41928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41929 break 3
41930 fi
41931 fi
a848cd7e
SC
41932 done
41933 done
41934 ;;
41935esac
41936done
41937
41938
41939fi
41940 if test "${ac_cv_path_install+set}" = set; then
41941 INSTALL=$ac_cv_path_install
41942 else
41943 # As a last resort, use the slow shell script. We don't cache a
41944 # path for INSTALL within a source directory, because that will
41945 # break other packages using the cache if that directory is
41946 # removed, or if the path is relative.
41947 INSTALL=$ac_install_sh
41948 fi
41949fi
41950echo "$as_me:$LINENO: result: $INSTALL" >&5
41951echo "${ECHO_T}$INSTALL" >&6
41952
41953# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41954# It thinks the first close brace ends the variable substitution.
41955test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41956
41957test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41958
41959test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41960
41961 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41962echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41963LN_S=$as_ln_s
41964if test "$LN_S" = "ln -s"; then
41965 echo "$as_me:$LINENO: result: yes" >&5
41966echo "${ECHO_T}yes" >&6
41967else
41968 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41969echo "${ECHO_T}no, using $LN_S" >&6
41970fi
41971
41972
41973 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41974echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41975set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41976if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41977 echo $ECHO_N "(cached) $ECHO_C" >&6
41978else
41979 cat >conftest.make <<\_ACEOF
41980all:
41981 @echo 'ac_maketemp="$(MAKE)"'
41982_ACEOF
41983# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41984eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41985if test -n "$ac_maketemp"; then
41986 eval ac_cv_prog_make_${ac_make}_set=yes
41987else
41988 eval ac_cv_prog_make_${ac_make}_set=no
41989fi
41990rm -f conftest.make
41991fi
41992if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41993 echo "$as_me:$LINENO: result: yes" >&5
41994echo "${ECHO_T}yes" >&6
41995 SET_MAKE=
41996else
41997 echo "$as_me:$LINENO: result: no" >&5
41998echo "${ECHO_T}no" >&6
41999 SET_MAKE="MAKE=${MAKE-make}"
42000fi
42001
42002
42003
42004 if test -n "$ac_tool_prefix"; then
42005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
42006set dummy ${ac_tool_prefix}ar; ac_word=$2
42007echo "$as_me:$LINENO: checking for $ac_word" >&5
42008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42009if test "${ac_cv_prog_AR+set}" = set; then
42010 echo $ECHO_N "(cached) $ECHO_C" >&6
42011else
42012 if test -n "$AR"; then
42013 ac_cv_prog_AR="$AR" # Let the user override the test.
42014else
42015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42016for as_dir in $PATH
42017do
42018 IFS=$as_save_IFS
42019 test -z "$as_dir" && as_dir=.
42020 for ac_exec_ext in '' $ac_executable_extensions; do
42021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42022 ac_cv_prog_AR="${ac_tool_prefix}ar"
42023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42024 break 2
42025 fi
42026done
42027done
42028
42029fi
42030fi
42031AR=$ac_cv_prog_AR
42032if test -n "$AR"; then
42033 echo "$as_me:$LINENO: result: $AR" >&5
42034echo "${ECHO_T}$AR" >&6
42035else
42036 echo "$as_me:$LINENO: result: no" >&5
42037echo "${ECHO_T}no" >&6
42038fi
42039
42040fi
42041if test -z "$ac_cv_prog_AR"; then
42042 ac_ct_AR=$AR
42043 # Extract the first word of "ar", so it can be a program name with args.
42044set dummy ar; ac_word=$2
42045echo "$as_me:$LINENO: checking for $ac_word" >&5
42046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42047if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42048 echo $ECHO_N "(cached) $ECHO_C" >&6
42049else
42050 if test -n "$ac_ct_AR"; then
42051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42052else
42053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42054for as_dir in $PATH
42055do
42056 IFS=$as_save_IFS
42057 test -z "$as_dir" && as_dir=.
42058 for ac_exec_ext in '' $ac_executable_extensions; do
42059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42060 ac_cv_prog_ac_ct_AR="ar"
42061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42062 break 2
42063 fi
42064done
42065done
42066
42067 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
42068fi
42069fi
42070ac_ct_AR=$ac_cv_prog_ac_ct_AR
42071if test -n "$ac_ct_AR"; then
42072 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
42073echo "${ECHO_T}$ac_ct_AR" >&6
42074else
42075 echo "$as_me:$LINENO: result: no" >&5
42076echo "${ECHO_T}no" >&6
42077fi
42078
42079 AR=$ac_ct_AR
42080else
42081 AR="$ac_cv_prog_AR"
42082fi
42083
42084 if test -n "$ac_tool_prefix"; then
42085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42086set dummy ${ac_tool_prefix}strip; ac_word=$2
42087echo "$as_me:$LINENO: checking for $ac_word" >&5
42088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42089if test "${ac_cv_prog_STRIP+set}" = set; then
42090 echo $ECHO_N "(cached) $ECHO_C" >&6
42091else
42092 if test -n "$STRIP"; then
42093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42094else
42095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42096for as_dir in $PATH
42097do
42098 IFS=$as_save_IFS
42099 test -z "$as_dir" && as_dir=.
42100 for ac_exec_ext in '' $ac_executable_extensions; do
42101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42104 break 2
42105 fi
42106done
42107done
42108
42109fi
42110fi
42111STRIP=$ac_cv_prog_STRIP
42112if test -n "$STRIP"; then
42113 echo "$as_me:$LINENO: result: $STRIP" >&5
42114echo "${ECHO_T}$STRIP" >&6
42115else
42116 echo "$as_me:$LINENO: result: no" >&5
42117echo "${ECHO_T}no" >&6
42118fi
42119
42120fi
42121if test -z "$ac_cv_prog_STRIP"; then
42122 ac_ct_STRIP=$STRIP
42123 # Extract the first word of "strip", so it can be a program name with args.
42124set dummy strip; ac_word=$2
42125echo "$as_me:$LINENO: checking for $ac_word" >&5
42126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42127if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42128 echo $ECHO_N "(cached) $ECHO_C" >&6
42129else
42130 if test -n "$ac_ct_STRIP"; then
42131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42132else
42133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42134for as_dir in $PATH
42135do
42136 IFS=$as_save_IFS
42137 test -z "$as_dir" && as_dir=.
42138 for ac_exec_ext in '' $ac_executable_extensions; do
42139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42140 ac_cv_prog_ac_ct_STRIP="strip"
42141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42142 break 2
42143 fi
42144done
42145done
42146
42147 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42148fi
42149fi
42150ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42151if test -n "$ac_ct_STRIP"; then
42152 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42153echo "${ECHO_T}$ac_ct_STRIP" >&6
42154else
42155 echo "$as_me:$LINENO: result: no" >&5
42156echo "${ECHO_T}no" >&6
42157fi
42158
42159 STRIP=$ac_ct_STRIP
42160else
42161 STRIP="$ac_cv_prog_STRIP"
42162fi
42163
42164 if test -n "$ac_tool_prefix"; then
42165 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42166set dummy ${ac_tool_prefix}nm; ac_word=$2
42167echo "$as_me:$LINENO: checking for $ac_word" >&5
42168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42169if test "${ac_cv_prog_NM+set}" = set; then
42170 echo $ECHO_N "(cached) $ECHO_C" >&6
42171else
42172 if test -n "$NM"; then
42173 ac_cv_prog_NM="$NM" # Let the user override the test.
42174else
42175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42176for as_dir in $PATH
42177do
42178 IFS=$as_save_IFS
42179 test -z "$as_dir" && as_dir=.
42180 for ac_exec_ext in '' $ac_executable_extensions; do
42181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42182 ac_cv_prog_NM="${ac_tool_prefix}nm"
42183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42184 break 2
42185 fi
42186done
42187done
42188
42189fi
42190fi
42191NM=$ac_cv_prog_NM
42192if test -n "$NM"; then
42193 echo "$as_me:$LINENO: result: $NM" >&5
42194echo "${ECHO_T}$NM" >&6
42195else
42196 echo "$as_me:$LINENO: result: no" >&5
42197echo "${ECHO_T}no" >&6
42198fi
42199
42200fi
42201if test -z "$ac_cv_prog_NM"; then
42202 ac_ct_NM=$NM
42203 # Extract the first word of "nm", so it can be a program name with args.
42204set dummy nm; ac_word=$2
42205echo "$as_me:$LINENO: checking for $ac_word" >&5
42206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42207if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42209else
42210 if test -n "$ac_ct_NM"; then
42211 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42212else
42213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42214for as_dir in $PATH
42215do
42216 IFS=$as_save_IFS
42217 test -z "$as_dir" && as_dir=.
42218 for ac_exec_ext in '' $ac_executable_extensions; do
42219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42220 ac_cv_prog_ac_ct_NM="nm"
42221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42222 break 2
42223 fi
42224done
42225done
42226
42227 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42228fi
42229fi
42230ac_ct_NM=$ac_cv_prog_ac_ct_NM
42231if test -n "$ac_ct_NM"; then
42232 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42233echo "${ECHO_T}$ac_ct_NM" >&6
42234else
42235 echo "$as_me:$LINENO: result: no" >&5
42236echo "${ECHO_T}no" >&6
42237fi
42238
42239 NM=$ac_ct_NM
42240else
42241 NM="$ac_cv_prog_NM"
42242fi
42243
42244
42245 case ${BAKEFILE_HOST} in
42246 *-hp-hpux* )
1e9e8aba 42247 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42248 ;;
42249 *) INSTALL_DIR="$INSTALL -d"
42250 ;;
42251 esac
42252
42253
42254 LDFLAGS_GUI=
42255 case ${BAKEFILE_HOST} in
42256 *-*-cygwin* | *-*-mingw32* )
42257 LDFLAGS_GUI="-mwindows"
42258 esac
42259
42260
42261 fi
42262
42263 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42264echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42265if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42266 echo $ECHO_N "(cached) $ECHO_C" >&6
42267else
42268
42269 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42270 egrep -s GNU > /dev/null); then
42271 bakefile_cv_prog_makeisgnu="yes"
42272 else
42273 bakefile_cv_prog_makeisgnu="no"
42274 fi
42275
42276fi
42277echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42278echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42279
42280 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42281 IF_GNU_MAKE=""
42282 else
42283 IF_GNU_MAKE="#"
42284 fi
42285
42286
42287
42288 PLATFORM_UNIX=0
42289 PLATFORM_WIN32=0
42290 PLATFORM_MSDOS=0
42291 PLATFORM_MAC=0
1e9e8aba 42292 PLATFORM_MACOS=0
a848cd7e
SC
42293 PLATFORM_MACOSX=0
42294 PLATFORM_OS2=0
1e9e8aba 42295 PLATFORM_BEOS=0
a848cd7e
SC
42296
42297 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42298 case "${BAKEFILE_HOST}" in
810b94f0 42299 *-*-mingw32* )
a848cd7e
SC
42300 PLATFORM_WIN32=1
42301 ;;
42302 *-pc-msdosdjgpp )
42303 PLATFORM_MSDOS=1
42304 ;;
42305 *-pc-os2_emx | *-pc-os2-emx )
42306 PLATFORM_OS2=1
42307 ;;
47bd5406 42308 *-*-darwin* )
a848cd7e
SC
42309 PLATFORM_MAC=1
42310 PLATFORM_MACOSX=1
42311 ;;
1e9e8aba
DE
42312 *-*-beos* )
42313 PLATFORM_BEOS=1
42314 ;;
42315 powerpc-apple-macos* )
42316 PLATFORM_MAC=1
42317 PLATFORM_MACOS=1
42318 ;;
a848cd7e
SC
42319 * )
42320 PLATFORM_UNIX=1
42321 ;;
42322 esac
42323 else
42324 case "$BAKEFILE_FORCE_PLATFORM" in
42325 win32 )
42326 PLATFORM_WIN32=1
42327 ;;
42328 msdos )
42329 PLATFORM_MSDOS=1
42330 ;;
42331 os2 )
42332 PLATFORM_OS2=1
42333 ;;
42334 darwin )
42335 PLATFORM_MAC=1
42336 PLATFORM_MACOSX=1
42337 ;;
42338 unix )
42339 PLATFORM_UNIX=1
42340 ;;
1e9e8aba
DE
42341 beos )
42342 PLATFORM_BEOS=1
42343 ;;
a848cd7e
SC
42344 * )
42345 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42346echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42347 { (exit 1); exit 1; }; }
42348 ;;
42349 esac
42350 fi
42351
42352
42353
42354
42355
42356
42357
42358
42359
1e9e8aba
DE
42360
42361
a848cd7e
SC
42362 # Check whether --enable-omf or --disable-omf was given.
42363if test "${enable_omf+set}" = set; then
42364 enableval="$enable_omf"
42365 bk_os2_use_omf="$enableval"
42366fi;
42367
42368 case "${BAKEFILE_HOST}" in
42369 *-*-darwin* )
47bd5406
VZ
42370 if test "x$GCC" = "xyes"; then
42371 CFLAGS="$CFLAGS -fno-common"
42372 CXXFLAGS="$CXXFLAGS -fno-common"
42373 fi
42374 if test "x$XLCC" = "xyes"; then
42375 CFLAGS="$CFLAGS -qnocommon"
42376 CXXFLAGS="$CXXFLAGS -qnocommon"
42377 fi
a848cd7e
SC
42378 ;;
42379
42380 *-pc-os2_emx | *-pc-os2-emx )
42381 if test "x$bk_os2_use_omf" = "xyes" ; then
42382 AR=emxomfar
42383 RANLIB=:
42384 LDFLAGS="-Zomf $LDFLAGS"
42385 CFLAGS="-Zomf $CFLAGS"
42386 CXXFLAGS="-Zomf $CXXFLAGS"
42387 OS2_LIBEXT="lib"
42388 else
42389 OS2_LIBEXT="a"
42390 fi
42391 ;;
1e9e8aba
DE
42392
42393 i*86-*-beos* )
42394 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42395 ;;
a848cd7e
SC
42396 esac
42397
42398
42399 SO_SUFFIX="so"
42400 SO_SUFFIX_MODULE="so"
42401 EXEEXT=""
42402 LIBPREFIX="lib"
42403 LIBEXT=".a"
42404 DLLPREFIX="lib"
42405 DLLPREFIX_MODULE=""
42406 DLLIMP_SUFFIX=""
810b94f0 42407 dlldir="$libdir"
a848cd7e
SC
42408
42409 case "${BAKEFILE_HOST}" in
42410 *-hp-hpux* )
42411 SO_SUFFIX="sl"
42412 SO_SUFFIX_MODULE="sl"
42413 ;;
42414 *-*-aix* )
42415 SO_SUFFIX="a"
42416 SO_SUFFIX_MODULE="a"
42417 ;;
810b94f0
MW
42418 *-*-cygwin* )
42419 SO_SUFFIX="dll"
42420 SO_SUFFIX_MODULE="dll"
42421 DLLIMP_SUFFIX="dll.a"
42422 EXEEXT=".exe"
42423 DLLPREFIX="cyg"
42424 dlldir="$bindir"
42425 ;;
42426 *-*-mingw32* )
a848cd7e
SC
42427 SO_SUFFIX="dll"
42428 SO_SUFFIX_MODULE="dll"
42429 DLLIMP_SUFFIX="dll.a"
42430 EXEEXT=".exe"
42431 DLLPREFIX=""
810b94f0 42432 dlldir="$bindir"
a848cd7e
SC
42433 ;;
42434 *-pc-msdosdjgpp )
42435 EXEEXT=".exe"
42436 DLLPREFIX=""
810b94f0 42437 dlldir="$bindir"
a848cd7e
SC
42438 ;;
42439 *-pc-os2_emx | *-pc-os2-emx )
42440 SO_SUFFIX="dll"
42441 SO_SUFFIX_MODULE="dll"
42442 DLLIMP_SUFFIX=$OS2_LIBEXT
42443 EXEEXT=".exe"
42444 DLLPREFIX=""
42445 LIBPREFIX=""
42446 LIBEXT=".$OS2_LIBEXT"
810b94f0 42447 dlldir="$bindir"
a848cd7e 42448 ;;
47bd5406 42449 *-*-darwin* )
a848cd7e
SC
42450 SO_SUFFIX="dylib"
42451 SO_SUFFIX_MODULE="bundle"
42452 ;;
42453 esac
42454
42455 if test "x$DLLIMP_SUFFIX" = "x" ; then
42456 DLLIMP_SUFFIX="$SO_SUFFIX"
42457 fi
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468
810b94f0 42469
1e9e8aba
DE
42470 PIC_FLAG=""
42471 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42472 PIC_FLAG="-fPIC"
42473 fi
42474
1e9e8aba
DE
42475 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42476 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42477 WINDOWS_IMPLIB=0
1e9e8aba 42478
a848cd7e
SC
42479 case "${BAKEFILE_HOST}" in
42480 *-hp-hpux* )
1e9e8aba 42481 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42482 LDFLAGS="$LDFLAGS -L/usr/lib"
42483
42484 SHARED_LD_CC="${CC} -b -o"
42485 SHARED_LD_CXX="${CXX} -b -o"
42486 PIC_FLAG="+Z"
42487 fi
42488 ;;
42489
42490 *-*-linux* )
42491 if test "x$GCC" != "xyes"; then
42492 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42493echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42494if test "${bakefile_cv_prog_icc+set}" = set; then
42495 echo $ECHO_N "(cached) $ECHO_C" >&6
42496else
42497
42498 cat >conftest.$ac_ext <<_ACEOF
42499/* confdefs.h. */
42500_ACEOF
42501cat confdefs.h >>conftest.$ac_ext
42502cat >>conftest.$ac_ext <<_ACEOF
42503/* end confdefs.h. */
42504
42505int
42506main ()
42507{
42508
42509 #ifndef __INTEL_COMPILER
42510 #error Not icc
42511 #endif
42512
42513 ;
42514 return 0;
42515}
42516_ACEOF
42517rm -f conftest.$ac_objext
42518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42519 (eval $ac_compile) 2>conftest.er1
a848cd7e 42520 ac_status=$?
ac1cb8d3
VS
42521 grep -v '^ *+' conftest.er1 >conftest.err
42522 rm -f conftest.er1
42523 cat conftest.err >&5
a848cd7e
SC
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); } &&
6ebeb4c7 42526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; } &&
42532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534 (eval $ac_try) 2>&5
42535 ac_status=$?
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); }; }; then
42538 bakefile_cv_prog_icc=yes
42539else
42540 echo "$as_me: failed program was:" >&5
42541sed 's/^/| /' conftest.$ac_ext >&5
42542
42543bakefile_cv_prog_icc=no
42544
42545fi
ac1cb8d3 42546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42547
42548fi
42549echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42550echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42551 if test "$bakefile_cv_prog_icc" = "yes"; then
42552 PIC_FLAG="-KPIC"
42553 fi
42554 fi
42555 ;;
42556
42557 *-*-solaris2* )
42558 if test "x$GCC" != xyes ; then
42559 SHARED_LD_CC="${CC} -G -o"
42560 SHARED_LD_CXX="${CXX} -G -o"
42561 PIC_FLAG="-KPIC"
42562 fi
42563 ;;
42564
42565 *-*-darwin* )
42566
42567 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42568echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42569if test "${wx_cv_gcc31+set}" = set; then
42570 echo $ECHO_N "(cached) $ECHO_C" >&6
42571else
42572
42573 cat >conftest.$ac_ext <<_ACEOF
42574/* confdefs.h. */
42575_ACEOF
42576cat confdefs.h >>conftest.$ac_ext
42577cat >>conftest.$ac_ext <<_ACEOF
42578/* end confdefs.h. */
42579
42580int
42581main ()
42582{
42583
42584 #if (__GNUC__ < 3) || \
42585 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42586 #error old gcc
42587 #endif
42588
42589 ;
42590 return 0;
42591}
42592_ACEOF
42593rm -f conftest.$ac_objext
42594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42595 (eval $ac_compile) 2>conftest.er1
a848cd7e 42596 ac_status=$?
ac1cb8d3
VS
42597 grep -v '^ *+' conftest.er1 >conftest.err
42598 rm -f conftest.er1
42599 cat conftest.err >&5
a848cd7e
SC
42600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601 (exit $ac_status); } &&
6ebeb4c7 42602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42604 (eval $ac_try) 2>&5
42605 ac_status=$?
42606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607 (exit $ac_status); }; } &&
42608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42610 (eval $ac_try) 2>&5
42611 ac_status=$?
42612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613 (exit $ac_status); }; }; then
42614
42615 wx_cv_gcc31=yes
42616
42617else
42618 echo "$as_me: failed program was:" >&5
42619sed 's/^/| /' conftest.$ac_ext >&5
42620
42621
42622 wx_cv_gcc31=no
42623
42624
42625fi
ac1cb8d3 42626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42627
42628fi
42629echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42630echo "${ECHO_T}$wx_cv_gcc31" >&6
42631 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42632
42633D='$'
42634cat <<EOF >shared-ld-sh
a848cd7e
SC
42635#!/bin/sh
42636#-----------------------------------------------------------------------------
42637#-- Name: distrib/mac/shared-ld-sh
42638#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42639#-- Author: Gilles Depeyrot
42640#-- Copyright: (c) 2002 Gilles Depeyrot
42641#-- Licence: any use permitted
42642#-----------------------------------------------------------------------------
42643
42644verbose=0
42645args=""
42646objects=""
42647linking_flag="-dynamiclib"
810b94f0 42648ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42649
473276a9
VS
42650while test ${D}# -gt 0; do
42651 case ${D}1 in
a848cd7e
SC
42652
42653 -v)
42654 verbose=1
42655 ;;
42656
42657 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42658 # collect these options and values
473276a9 42659 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42660 shift
42661 ;;
42662
810b94f0
MW
42663 -s|-Wl,*)
42664 # collect these load args
42665 ldargs="${D}{ldargs} ${D}1"
2113bc77 42666 ;;
810b94f0
MW
42667
42668 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42669 # collect these options
473276a9 42670 args="${D}{args} ${D}1"
a848cd7e
SC
42671 ;;
42672
42673 -dynamiclib|-bundle)
473276a9 42674 linking_flag="${D}1"
a848cd7e
SC
42675 ;;
42676
42677 -*)
473276a9 42678 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42679 exit 1
42680 ;;
42681
42682 *.o | *.a | *.dylib)
42683 # collect object files
473276a9 42684 objects="${D}{objects} ${D}1"
a848cd7e
SC
42685 ;;
42686
42687 *)
473276a9 42688 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42689 exit 1
42690 ;;
42691
42692 esac
42693 shift
42694done
42695
810b94f0
MW
42696status=0
42697
a848cd7e
SC
42698#
42699# Link one module containing all the others
42700#
473276a9 42701if test ${D}{verbose} = 1; then
810b94f0 42702 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42703fi
810b94f0 42704c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42705status=${D}?
a848cd7e
SC
42706
42707#
810b94f0
MW
42708# Link the shared library from the single module created, but only if the
42709# previous command didn't fail:
a848cd7e 42710#
810b94f0
MW
42711if test ${D}{status} = 0; then
42712 if test ${D}{verbose} = 1; then
42713 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42714 fi
42715 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42716 status=${D}?
a848cd7e
SC
42717fi
42718
42719#
42720# Remove intermediate module
42721#
473276a9 42722rm -f master.${D}${D}.o
a848cd7e 42723
810b94f0 42724exit ${D}status
a848cd7e 42725EOF
473276a9 42726
a848cd7e
SC
42727 chmod +x shared-ld-sh
42728
42729 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42730 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42731 SHARED_LD_CXX="$SHARED_LD_CC"
42732 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42733 else
42734 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42735 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42736 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42737 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42738 fi
42739
47bd5406
VZ
42740 if test "x$GCC" == "xyes"; then
42741 PIC_FLAG="-dynamic -fPIC"
42742 fi
42743 if test "x$XLCC" = "xyes"; then
42744 PIC_FLAG="-dynamic -DPIC"
42745 fi
a848cd7e
SC
42746 ;;
42747
42748 *-*-aix* )
42749 if test "x$GCC" != "xyes"; then
42750 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42751set dummy makeC++SharedLib; ac_word=$2
42752echo "$as_me:$LINENO: checking for $ac_word" >&5
42753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42754if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42755 echo $ECHO_N "(cached) $ECHO_C" >&6
42756else
42757 if test -n "$AIX_CXX_LD"; then
42758 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42759else
42760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42761for as_dir in $PATH
42762do
42763 IFS=$as_save_IFS
42764 test -z "$as_dir" && as_dir=.
42765 for ac_exec_ext in '' $ac_executable_extensions; do
42766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42767 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42769 break 2
42770 fi
42771done
42772done
42773
42774 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42775fi
42776fi
42777AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42778if test -n "$AIX_CXX_LD"; then
42779 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42780echo "${ECHO_T}$AIX_CXX_LD" >&6
42781else
42782 echo "$as_me:$LINENO: result: no" >&5
42783echo "${ECHO_T}no" >&6
42784fi
42785
42786 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42787 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42788 fi
42789 ;;
42790
42791 *-*-beos* )
1e9e8aba
DE
42792 SHARED_LD_CC="${LD} -nostart -o"
42793 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42794 ;;
42795
42796 *-*-irix* )
42797 if test "x$GCC" != "xyes"; then
42798 PIC_FLAG="-KPIC"
42799 fi
42800 ;;
42801
42802 *-*-cygwin* | *-*-mingw32* )
42803 PIC_FLAG=""
1e9e8aba
DE
42804 SHARED_LD_CC="\$(CC) -shared -o"
42805 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42806 WINDOWS_IMPLIB=1
a848cd7e
SC
42807 ;;
42808
42809 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42810 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42811 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42812 PIC_FLAG=""
473276a9
VS
42813
42814D='$'
42815cat <<EOF >dllar.sh
42816#!/bin/sh
42817#
42818# dllar - a tool to build both a .dll and an .a file
42819# from a set of object (.o) files for EMX/OS2.
42820#
42821# Written by Andrew Zabolotny, bit@freya.etu.ru
42822# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42823#
42824# This script will accept a set of files on the command line.
42825# All the public symbols from the .o files will be exported into
42826# a .DEF file, then linker will be run (through gcc) against them to
42827# build a shared library consisting of all given .o files. All libraries
42828# (.a) will be first decompressed into component .o files then act as
42829# described above. You can optionally give a description (-d "description")
42830# which will be put into .DLL. To see the list of accepted options (as well
42831# as command-line format) simply run this program without options. The .DLL
42832# is built to be imported by name (there is no guarantee that new versions
42833# of the library you build will have same ordinals for same symbols).
42834#
42835# dllar is free software; you can redistribute it and/or modify
42836# it under the terms of the GNU General Public License as published by
42837# the Free Software Foundation; either version 2, or (at your option)
42838# any later version.
42839#
42840# dllar is distributed in the hope that it will be useful,
42841# but WITHOUT ANY WARRANTY; without even the implied warranty of
42842# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42843# GNU General Public License for more details.
42844#
42845# You should have received a copy of the GNU General Public License
42846# along with dllar; see the file COPYING. If not, write to the Free
42847# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42848# 02111-1307, USA.
42849
42850# To successfuly run this program you will need:
42851# - Current drive should have LFN support (HPFS, ext2, network, etc)
42852# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42853# - gcc
42854# (used to build the .dll)
42855# - emxexp
42856# (used to create .def file from .o files)
42857# - emximp
42858# (used to create .a file from .def file)
42859# - GNU text utilites (cat, sort, uniq)
42860# used to process emxexp output
42861# - GNU file utilities (mv, rm)
42862# - GNU sed
42863# - lxlite (optional, see flag below)
42864# (used for general .dll cleanup)
42865#
42866
42867flag_USE_LXLITE=1;
42868
42869#
42870# helper functions
42871# basnam, variant of basename, which does _not_ remove the path, _iff_
42872# second argument (suffix to remove) is given
42873basnam(){
42874 case ${D}# in
42875 1)
1e9e8aba 42876 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42877 ;;
42878 2)
42879 echo ${D}1 | sed 's/'${D}2'${D}//'
42880 ;;
42881 *)
42882 echo "error in basnam ${D}*"
42883 exit 8
42884 ;;
42885 esac
42886}
42887
42888# Cleanup temporary files and output
42889CleanUp() {
42890 cd ${D}curDir
42891 for i in ${D}inputFiles ; do
42892 case ${D}i in
42893 *!)
42894 rm -rf \`basnam ${D}i !\`
42895 ;;
42896 *)
42897 ;;
42898 esac
42899 done
42900
42901 # Kill result in case of failure as there is just to many stupid make/nmake
42902 # things out there which doesn't do this.
1e9e8aba 42903 if [ ${D}# -eq 0 ]; then
473276a9
VS
42904 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42905 fi
42906}
42907
42908# Print usage and exit script with rc=1.
42909PrintHelp() {
b1d22ded
DE
42910 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42911 echo ' [-name-mangler-script script.sh]'
42912 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42913 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42914 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42915 echo ' [*.o] [*.a]'
473276a9
VS
42916 echo '*> "output_file" should have no extension.'
42917 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42918 echo ' The import library name is derived from this and is set to "name".a,'
42919 echo ' unless overridden by -import'
42920 echo '*> "importlib_name" should have no extension.'
42921 echo ' If it has the .o, or .a extension, it is automatically removed.'
42922 echo ' This name is used as the import library name and may be longer and'
42923 echo ' more descriptive than the DLL name which has to follow the old '
42924 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42925 echo '*> "script.sh may be given to override the output_file name by a'
42926 echo ' different name. It is mainly useful if the regular make process'
42927 echo ' of some package does not take into account OS/2 restriction of'
42928 echo ' DLL name lengths. It takes the importlib name as input and is'
42929 echo ' supposed to procude a shorter name as output. The script should'
42930 echo ' expect to get importlib_name without extension and should produce'
42931 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42932 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42933 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42934 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42935 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42936 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42937 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42938 echo ' If the last character of a symbol is "*", all symbols beginning'
42939 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42940 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42941 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42942 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42943 echo ' C runtime DLLs.'
b1d22ded 42944 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42945 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42946 echo ' unchanged to GCC at the end of command line.'
42947 echo '*> If you create a DLL from a library and you do not specify -o,'
42948 echo ' the basename for DLL and import library will be set to library name,'
42949 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42950 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42951 echo ' library will be renamed into gcc_s.a.'
42952 echo '--------'
42953 echo 'Example:'
42954 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42955 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42956 CleanUp
42957 exit 1
42958}
42959
42960# Execute a command.
42961# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42962# @Uses Whatever CleanUp() uses.
42963doCommand() {
42964 echo "${D}*"
42965 eval ${D}*
42966 rcCmd=${D}?
42967
1e9e8aba 42968 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42969 echo "command failed, exit code="${D}rcCmd
42970 CleanUp
42971 exit ${D}rcCmd
42972 fi
42973}
42974
42975# main routine
42976# setup globals
42977cmdLine=${D}*
42978outFile=""
42979outimpFile=""
42980inputFiles=""
b1d22ded 42981renameScript=""
473276a9
VS
42982description=""
42983CC=gcc.exe
42984CFLAGS="-s -Zcrtdll"
42985EXTRA_CFLAGS=""
42986EXPORT_BY_ORDINALS=0
42987exclude_symbols=""
42988library_flags=""
42989curDir=\`pwd\`
42990curDirS=curDir
42991case ${D}curDirS in
42992*/)
42993 ;;
42994*)
42995 curDirS=${D}{curDirS}"/"
42996 ;;
42997esac
42998# Parse commandline
42999libsToLink=0
b1d22ded 43000omfLinking=0
1e9e8aba 43001while [ ${D}1 ]; do
473276a9
VS
43002 case ${D}1 in
43003 -ord*)
43004 EXPORT_BY_ORDINALS=1;
43005 ;;
43006 -o*)
43007 shift
43008 outFile=${D}1
43009 ;;
43010 -i*)
43011 shift
43012 outimpFile=${D}1
43013 ;;
b1d22ded
DE
43014 -name-mangler-script)
43015 shift
43016 renameScript=${D}1
43017 ;;
473276a9
VS
43018 -d*)
43019 shift
43020 description=${D}1
43021 ;;
43022 -f*)
43023 shift
43024 CFLAGS=${D}1
43025 ;;
43026 -c*)
43027 shift
43028 CC=${D}1
43029 ;;
43030 -h*)
43031 PrintHelp
43032 ;;
43033 -ex*)
43034 shift
43035 exclude_symbols=${D}{exclude_symbols}${D}1" "
43036 ;;
43037 -libf*)
43038 shift
43039 library_flags=${D}{library_flags}${D}1" "
43040 ;;
43041 -nocrt*)
43042 CFLAGS="-s"
43043 ;;
43044 -nolxl*)
43045 flag_USE_LXLITE=0
43046 ;;
43047 -* | /*)
43048 case ${D}1 in
43049 -L* | -l*)
43050 libsToLink=1
43051 ;;
b1d22ded
DE
43052 -Zomf)
43053 omfLinking=1
43054 ;;
473276a9
VS
43055 *)
43056 ;;
43057 esac
43058 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43059 ;;
b1d22ded
DE
43060 *.dll)
43061 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
43062 if [ ${D}omfLinking -eq 1 ]; then
43063 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
43064 else
43065 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
43066 fi
43067 ;;
473276a9
VS
43068 *)
43069 found=0;
1e9e8aba 43070 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
43071 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43072 else
43073 for file in ${D}1 ; do
1e9e8aba 43074 if [ -f ${D}file ]; then
473276a9
VS
43075 inputFiles="${D}{inputFiles} ${D}file"
43076 found=1
43077 fi
43078 done
1e9e8aba 43079 if [ ${D}found -eq 0 ]; then
473276a9
VS
43080 echo "ERROR: No file(s) found: "${D}1
43081 exit 8
43082 fi
43083 fi
43084 ;;
43085 esac
43086 shift
43087done # iterate cmdline words
43088
43089#
1e9e8aba 43090if [ -z "${D}inputFiles" ]; then
473276a9
VS
43091 echo "dllar: no input files"
43092 PrintHelp
43093fi
43094
43095# Now extract all .o files from .a files
43096newInputFiles=""
43097for file in ${D}inputFiles ; do
43098 case ${D}file in
43099 *.a | *.lib)
43100 case ${D}file in
43101 *.a)
43102 suffix=".a"
43103 AR="ar"
43104 ;;
43105 *.lib)
43106 suffix=".lib"
43107 AR="emxomfar"
43108 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43109 ;;
43110 *)
43111 ;;
43112 esac
43113 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43114 mkdir ${D}dirname
1e9e8aba 43115 if [ ${D}? -ne 0 ]; then
473276a9
VS
43116 echo "Failed to create subdirectory ./${D}dirname"
43117 CleanUp
43118 exit 8;
43119 fi
43120 # Append '!' to indicate archive
43121 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43122 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43123 cd ${D}curDir
43124 found=0;
43125 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43126 if [ -f ${D}subfile ]; then
473276a9 43127 found=1
1e9e8aba 43128 if [ -s ${D}subfile ]; then
473276a9
VS
43129 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43130 newInputFiles="${D}newInputFiles ${D}subfile"
43131 fi
43132 fi
43133 done
1e9e8aba
DE
43134 if [ ${D}found -eq 0 ]; then
43135 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43136 fi
43137 ;;
43138 *)
43139 newInputFiles="${D}{newInputFiles} ${D}file"
43140 ;;
43141 esac
43142done
43143inputFiles="${D}newInputFiles"
43144
43145# Output filename(s).
43146do_backup=0;
1e9e8aba 43147if [ -z ${D}outFile ]; then
473276a9
VS
43148 do_backup=1;
43149 set outFile ${D}inputFiles; outFile=${D}2
43150fi
43151
43152# If it is an archive, remove the '!' and the '_%' suffixes
43153case ${D}outFile in
43154*_%!)
43155 outFile=\`basnam ${D}outFile _%!\`
43156 ;;
43157*)
43158 ;;
43159esac
43160case ${D}outFile in
43161*.dll)
43162 outFile=\`basnam ${D}outFile .dll\`
43163 ;;
43164*.DLL)
43165 outFile=\`basnam ${D}outFile .DLL\`
43166 ;;
43167*.o)
43168 outFile=\`basnam ${D}outFile .o\`
43169 ;;
43170*.obj)
43171 outFile=\`basnam ${D}outFile .obj\`
43172 ;;
43173*.a)
43174 outFile=\`basnam ${D}outFile .a\`
43175 ;;
43176*.lib)
43177 outFile=\`basnam ${D}outFile .lib\`
43178 ;;
43179*)
43180 ;;
43181esac
43182case ${D}outimpFile in
43183*.a)
43184 outimpFile=\`basnam ${D}outimpFile .a\`
43185 ;;
43186*.lib)
43187 outimpFile=\`basnam ${D}outimpFile .lib\`
43188 ;;
43189*)
43190 ;;
43191esac
1e9e8aba 43192if [ -z ${D}outimpFile ]; then
473276a9
VS
43193 outimpFile=${D}outFile
43194fi
43195defFile="${D}{outFile}.def"
43196arcFile="${D}{outimpFile}.a"
43197arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43198
43199#create ${D}dllFile as something matching 8.3 restrictions,
43200if [ -z ${D}renameScript ] ; then
43201 dllFile="${D}outFile"
43202else
43203 dllFile=\`${D}renameScript ${D}outimpFile\`
43204fi
473276a9 43205
1e9e8aba
DE
43206if [ ${D}do_backup -ne 0 ] ; then
43207 if [ -f ${D}arcFile ] ; then
473276a9
VS
43208 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43209 fi
1e9e8aba 43210 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43211 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43212 fi
43213fi
43214
43215# Extract public symbols from all the object files.
43216tmpdefFile=${D}{defFile}_%
43217rm -f ${D}tmpdefFile
43218for file in ${D}inputFiles ; do
43219 case ${D}file in
43220 *!)
43221 ;;
43222 *)
43223 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43224 ;;
43225 esac
43226done
43227
43228# Create the def file.
43229rm -f ${D}defFile
43230echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43231dllFile="${D}{dllFile}.dll"
43232if [ ! -z ${D}description ]; then
1e9e8aba 43233 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43234fi
43235echo "EXPORTS" >> ${D}defFile
43236
43237doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43238grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43239
43240# Checks if the export is ok or not.
43241for word in ${D}exclude_symbols; do
43242 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43243 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43244done
43245
43246
1e9e8aba
DE
43247if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43248 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43249 sed '
43250 N
43251 : loop
1e9e8aba 43252 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43253 t loop
43254 ' > ${D}{tmpdefFile}%
43255 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43256else
43257 rm -f ${D}{tmpdefFile}%
43258fi
43259cat ${D}tmpdefFile >> ${D}defFile
43260rm -f ${D}tmpdefFile
43261
43262# Do linking, create implib, and apply lxlite.
43263gccCmdl="";
43264for file in ${D}inputFiles ; do
43265 case ${D}file in
43266 *!)
43267 ;;
43268 *)
43269 gccCmdl="${D}gccCmdl ${D}file"
43270 ;;
43271 esac
43272done
43273doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43274touch "${D}{outFile}.dll"
43275
43276doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43277if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43278 add_flags="";
1e9e8aba 43279 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43280 add_flags="-ynd"
43281 fi
43282 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43283fi
43284doCommand "emxomf -s -l ${D}arcFile"
43285
43286# Successful exit.
43287CleanUp 1
43288exit 0
43289EOF
43290
43291 chmod +x dllar.sh
a848cd7e
SC
43292 ;;
43293
1e9e8aba 43294 powerpc-apple-macos* | \
a848cd7e
SC
43295 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43296 *-*-sunos4* | \
43297 *-*-osf* | \
43298 *-*-dgux5* | \
47a7e797
MW
43299 *-*-sysv5* | \
43300 *-pc-msdosdjgpp )
a848cd7e
SC
43301 ;;
43302
43303 *)
43304 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43305echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43306 { (exit 1); exit 1; }; }
43307 esac
43308
2057db16
VS
43309 if test "x$PIC_FLAG" != "x" ; then
43310 PIC_FLAG="$PIC_FLAG -DPIC"
43311 fi
43312
a848cd7e
SC
43313 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43314 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43315 fi
43316 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43317 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43318 fi
43319
43320
43321
43322
43323
43324
43325
43326
810b94f0 43327
a848cd7e
SC
43328 USE_SOVERSION=0
43329 USE_SOVERLINUX=0
43330 USE_SOVERSOLARIS=0
810b94f0 43331 USE_SOVERCYGWIN=0
a848cd7e
SC
43332 USE_SOSYMLINKS=0
43333 USE_MACVERSION=0
43334 SONAME_FLAG=
43335
43336 case "${BAKEFILE_HOST}" in
b1d22ded 43337 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43338 SONAME_FLAG="-Wl,-soname,"
43339 USE_SOVERSION=1
43340 USE_SOVERLINUX=1
43341 USE_SOSYMLINKS=1
43342 ;;
43343
a848cd7e
SC
43344 *-*-solaris2* )
43345 SONAME_FLAG="-h "
43346 USE_SOVERSION=1
43347 USE_SOVERSOLARIS=1
43348 USE_SOSYMLINKS=1
43349 ;;
43350
43351 *-*-darwin* )
43352 USE_MACVERSION=1
43353 USE_SOVERSION=1
43354 USE_SOSYMLINKS=1
43355 ;;
810b94f0
MW
43356
43357 *-*-cygwin* )
43358 USE_SOVERSION=1
43359 USE_SOVERCYGWIN=1
43360 ;;
a848cd7e
SC
43361 esac
43362
43363
43364
43365
43366
43367
43368
43369
43370
810b94f0 43371
a848cd7e
SC
43372 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43373echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43374 DEPS_TRACKING=0
43375
43376 if test "x$GCC" = "xyes"; then
43377 DEPSMODE=gcc
43378 DEPS_TRACKING=1
43379 case "${BAKEFILE_HOST}" in
47bd5406 43380 *-*-darwin* )
a848cd7e
SC
43381 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43382 ;;
43383 * )
43384 DEPSFLAG_GCC="-MMD"
43385 ;;
43386 esac
43387 echo "$as_me:$LINENO: result: gcc" >&5
43388echo "${ECHO_T}gcc" >&6
b1d22ded 43389 elif test "x$MWCC" = "xyes"; then
81f90336 43390 DEPSMODE=mwcc
b1d22ded 43391 DEPS_TRACKING=1
81f90336 43392 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43393 echo "$as_me:$LINENO: result: mwcc" >&5
43394echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43395 elif test "x$SUNCC" = "xyes"; then
43396 DEPSMODE=suncc
43397 DEPS_TRACKING=1
43398 DEPSFLAG_SUNCC="-xM1"
43399 echo "$as_me:$LINENO: result: suncc" >&5
43400echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43401 else
43402 echo "$as_me:$LINENO: result: none" >&5
43403echo "${ECHO_T}none" >&6
43404 fi
43405
43406 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43407
43408D='$'
43409cat <<EOF >bk-deps
a848cd7e
SC
43410#!/bin/sh
43411
43412# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43413# script. It is used to track C/C++ files dependencies in portable way.
43414#
43415# Permission is given to use this file in any way.
43416
473276a9 43417DEPSMODE=${DEPSMODE}
a848cd7e 43418DEPSDIR=.deps
473276a9 43419DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43420DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43421DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43422
473276a9 43423mkdir -p ${D}DEPSDIR
a848cd7e 43424
473276a9
VS
43425if test ${D}DEPSMODE = gcc ; then
43426 ${D}* ${D}{DEPSFLAG_GCC}
43427 status=${D}?
43428 if test ${D}{status} != 0 ; then
43429 exit ${D}{status}
a848cd7e
SC
43430 fi
43431 # move created file to the location we want it in:
473276a9
VS
43432 while test ${D}# -gt 0; do
43433 case "${D}1" in
a848cd7e
SC
43434 -o )
43435 shift
473276a9 43436 objfile=${D}1
a848cd7e
SC
43437 ;;
43438 -* )
43439 ;;
43440 * )
473276a9 43441 srcfile=${D}1
a848cd7e
SC
43442 ;;
43443 esac
43444 shift
43445 done
1e9e8aba
DE
43446 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43447 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43448 if test -f ${D}depfile ; then
43449 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43450 rm -f ${D}depfile
a848cd7e 43451 else
1e9e8aba 43452 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43453 if test -f ${D}depfile ; then
43454 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43455 rm -f ${D}depfile
a848cd7e
SC
43456 fi
43457 fi
43458 exit 0
81f90336
MW
43459elif test ${D}DEPSMODE = mwcc ; then
43460 ${D}*
43461 status=${D}?
43462 if test ${D}{status} != 0 ; then
43463 exit ${D}{status}
43464 fi
43465 # Run mwcc again with -MM and redirect into the dep file we want
43466 # NOTE: We can't use shift here because we need ${D}* to be valid
43467 prevarg=
43468 for arg in ${D}* ; do
43469 if test "${D}prevarg" = "-o"; then
43470 objfile=${D}arg
43471 else
43472 case "${D}arg" in
43473 -* )
43474 ;;
43475 * )
43476 srcfile=${D}arg
43477 ;;
43478 esac
43479 fi
43480 prevarg="${D}arg"
43481 done
43482 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43483 exit 0
a9e5b1f0
MW
43484elif test ${D}DEPSMODE = suncc; then
43485 ${D}* || exit
43486 # Run compiler again with deps flag and redirect into the dep file.
43487 # It doesn't work if the '-o FILE' option is used, but without it the
43488 # dependency file will contain the wrong name for the object. So it is
43489 # removed from the command line, and the dep file is fixed with sed.
43490 cmd=""
43491 while test ${D}# -gt 0; do
43492 case "${D}1" in
43493 -o )
43494 shift
43495 objfile=${D}1
43496 ;;
43497 * )
43498 eval arg${D}#=\\${D}1
43499 cmd="${D}cmd \\${D}arg${D}#"
43500 ;;
43501 esac
43502 shift
43503 done
43504 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43505 exit 0
a848cd7e 43506else
473276a9
VS
43507 ${D}*
43508 exit ${D}?
a848cd7e
SC
43509fi
43510EOF
473276a9 43511
a848cd7e
SC
43512 chmod +x bk-deps
43513 fi
43514
43515
43516
43517
43518 RESCOMP=
43519 SETFILE=
43520
43521 case ${BAKEFILE_HOST} in
43522 *-*-cygwin* | *-*-mingw32* )
43523 if test "$build" != "$host" ; then
43524 RESCOMP=$host_alias-windres
43525 else
43526 # Extract the first word of "windres", so it can be a program name with args.
43527set dummy windres; ac_word=$2
43528echo "$as_me:$LINENO: checking for $ac_word" >&5
43529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43530if test "${ac_cv_prog_RESCOMP+set}" = set; then
43531 echo $ECHO_N "(cached) $ECHO_C" >&6
43532else
43533 if test -n "$RESCOMP"; then
43534 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43535else
43536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43537for as_dir in $PATH
43538do
43539 IFS=$as_save_IFS
43540 test -z "$as_dir" && as_dir=.
43541 for ac_exec_ext in '' $ac_executable_extensions; do
43542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43543 ac_cv_prog_RESCOMP="windres"
43544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43545 break 2
43546 fi
43547done
43548done
43549
43550 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43551fi
43552fi
43553RESCOMP=$ac_cv_prog_RESCOMP
43554if test -n "$RESCOMP"; then
43555 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43556echo "${ECHO_T}$RESCOMP" >&6
43557else
43558 echo "$as_me:$LINENO: result: no" >&5
43559echo "${ECHO_T}no" >&6
43560fi
43561
43562 fi
43563 ;;
43564
1e9e8aba 43565 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43566 # Extract the first word of "Rez", so it can be a program name with args.
43567set dummy Rez; ac_word=$2
43568echo "$as_me:$LINENO: checking for $ac_word" >&5
43569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43570if test "${ac_cv_prog_RESCOMP+set}" = set; then
43571 echo $ECHO_N "(cached) $ECHO_C" >&6
43572else
43573 if test -n "$RESCOMP"; then
43574 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43575else
43576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43577for as_dir in $PATH
43578do
43579 IFS=$as_save_IFS
43580 test -z "$as_dir" && as_dir=.
43581 for ac_exec_ext in '' $ac_executable_extensions; do
43582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43583 ac_cv_prog_RESCOMP="Rez"
43584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43585 break 2
43586 fi
43587done
43588done
43589
43590 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43591fi
43592fi
43593RESCOMP=$ac_cv_prog_RESCOMP
43594if test -n "$RESCOMP"; then
43595 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43596echo "${ECHO_T}$RESCOMP" >&6
43597else
43598 echo "$as_me:$LINENO: result: no" >&5
43599echo "${ECHO_T}no" >&6
43600fi
43601
43602 # Extract the first word of "SetFile", so it can be a program name with args.
43603set dummy SetFile; ac_word=$2
43604echo "$as_me:$LINENO: checking for $ac_word" >&5
43605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43606if test "${ac_cv_prog_SETFILE+set}" = set; then
43607 echo $ECHO_N "(cached) $ECHO_C" >&6
43608else
43609 if test -n "$SETFILE"; then
43610 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43611else
43612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43613for as_dir in $PATH
43614do
43615 IFS=$as_save_IFS
43616 test -z "$as_dir" && as_dir=.
43617 for ac_exec_ext in '' $ac_executable_extensions; do
43618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43619 ac_cv_prog_SETFILE="SetFile"
43620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43621 break 2
43622 fi
43623done
43624done
43625
43626 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43627fi
43628fi
43629SETFILE=$ac_cv_prog_SETFILE
43630if test -n "$SETFILE"; then
43631 echo "$as_me:$LINENO: result: $SETFILE" >&5
43632echo "${ECHO_T}$SETFILE" >&6
43633else
43634 echo "$as_me:$LINENO: result: no" >&5
43635echo "${ECHO_T}no" >&6
43636fi
43637
43638 ;;
43639 esac
43640
43641
43642
43643
43644
c9469659 43645 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43646
dcc1b6ad 43647
c9469659 43648BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43649
646b6ec1 43650
74b84332 43651
a848cd7e
SC
43652 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43653if test "${enable_precomp_headers+set}" = set; then
43654 enableval="$enable_precomp_headers"
43655 bk_use_pch="$enableval"
43656fi;
43657
43658 GCC_PCH=0
43659
43660 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43661 if test "x$GCC" = "xyes"; then
43662 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43663echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43664 cat >conftest.$ac_ext <<_ACEOF
43665/* confdefs.h. */
43666_ACEOF
43667cat confdefs.h >>conftest.$ac_ext
43668cat >>conftest.$ac_ext <<_ACEOF
43669/* end confdefs.h. */
43670
43671int
43672main ()
43673{
43674
43675 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43676 #error "no pch support"
43677 #endif
43678 #if (__GNUC__ < 3)
43679 #error "no pch support"
43680 #endif
43681 #if (__GNUC__ == 3) && \
43682 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43683 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43684 #error "no pch support"
43685 #endif
43686
43687 ;
43688 return 0;
43689}
43690_ACEOF
43691rm -f conftest.$ac_objext
43692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43693 (eval $ac_compile) 2>conftest.er1
a848cd7e 43694 ac_status=$?
ac1cb8d3
VS
43695 grep -v '^ *+' conftest.er1 >conftest.err
43696 rm -f conftest.er1
43697 cat conftest.err >&5
a848cd7e
SC
43698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699 (exit $ac_status); } &&
6ebeb4c7 43700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43702 (eval $ac_try) 2>&5
43703 ac_status=$?
43704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43705 (exit $ac_status); }; } &&
43706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43708 (eval $ac_try) 2>&5
43709 ac_status=$?
43710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43711 (exit $ac_status); }; }; then
43712
43713 echo "$as_me:$LINENO: result: yes" >&5
43714echo "${ECHO_T}yes" >&6
a848cd7e
SC
43715 GCC_PCH=1
43716
43717else
43718 echo "$as_me: failed program was:" >&5
43719sed 's/^/| /' conftest.$ac_ext >&5
43720
43721
43722 echo "$as_me:$LINENO: result: no" >&5
43723echo "${ECHO_T}no" >&6
43724
43725fi
ac1cb8d3 43726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43727 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43728
43729D='$'
43730cat <<EOF >bk-make-pch
a848cd7e
SC
43731#!/bin/sh
43732
43733# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43734# script. It is used to generated precompiled headers.
43735#
43736# Permission is given to use this file in any way.
43737
1e9e8aba
DE
43738outfile="${D}{1}"
43739header="${D}{2}"
a848cd7e
SC
43740shift
43741shift
43742
43743compiler=
43744headerfile=
1e9e8aba
DE
43745while test ${D}{#} -gt 0; do
43746 case "${D}{1}" in
a848cd7e 43747 -I* )
1e9e8aba
DE
43748 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43749 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43750 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43751 fi
43752 ;;
43753 esac
1e9e8aba 43754 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43755 shift
43756done
43757
1e9e8aba
DE
43758if test "x${D}{headerfile}" = "x" ; then
43759 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43760else
1e9e8aba
DE
43761 if test -f ${D}{outfile} ; then
43762 rm -f ${D}{outfile}
a848cd7e 43763 else
1e9e8aba 43764 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43765 fi
1e9e8aba 43766 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43767 mkdir -p .deps
43768 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43769 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43770 exit ${D}{?}
a848cd7e
SC
43771fi
43772EOF
1e9e8aba 43773
a848cd7e
SC
43774 chmod +x bk-make-pch
43775 fi
43776 fi
43777 fi
43778
43779
43780
a848cd7e
SC
43781 COND_BUILD_DEBUG="#"
43782 if test "x$BUILD" = "xdebug" ; then
43783 COND_BUILD_DEBUG=""
43784 fi
43785
43786 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43787 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43788 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43789 fi
43790
43791 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43792 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43793 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43794 fi
43795
43796 COND_BUILD_DEBUG_UNICODE_0="#"
43797 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43798 COND_BUILD_DEBUG_UNICODE_0=""
43799 fi
43800
43801 COND_BUILD_DEBUG_UNICODE_1="#"
43802 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43803 COND_BUILD_DEBUG_UNICODE_1=""
43804 fi
43805
43806 COND_BUILD_RELEASE="#"
43807 if test "x$BUILD" = "xrelease" ; then
43808 COND_BUILD_RELEASE=""
43809 fi
43810
43811 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43812 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43813 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43814 fi
43815
43816 COND_BUILD_RELEASE_UNICODE_0="#"
43817 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43818 COND_BUILD_RELEASE_UNICODE_0=""
43819 fi
43820
43821 COND_BUILD_RELEASE_UNICODE_1="#"
43822 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43823 COND_BUILD_RELEASE_UNICODE_1=""
43824 fi
43825
43826 COND_DEBUG_FLAG_1="#"
43827 if test "x$DEBUG_FLAG" = "x1" ; then
43828 COND_DEBUG_FLAG_1=""
43829 fi
43830
43831 COND_DEBUG_INFO_0="#"
43832 if test "x$DEBUG_INFO" = "x0" ; then
43833 COND_DEBUG_INFO_0=""
43834 fi
43835
43836 COND_DEBUG_INFO_1="#"
43837 if test "x$DEBUG_INFO" = "x1" ; then
43838 COND_DEBUG_INFO_1=""
43839 fi
43840
43841 COND_DEPS_TRACKING_0="#"
43842 if test "x$DEPS_TRACKING" = "x0" ; then
43843 COND_DEPS_TRACKING_0=""
43844 fi
43845
43846 COND_DEPS_TRACKING_1="#"
43847 if test "x$DEPS_TRACKING" = "x1" ; then
43848 COND_DEPS_TRACKING_1=""
43849 fi
43850
43851 COND_GCC_PCH_1="#"
43852 if test "x$GCC_PCH" = "x1" ; then
43853 COND_GCC_PCH_1=""
43854 fi
43855
43856 COND_MONOLITHIC_0="#"
43857 if test "x$MONOLITHIC" = "x0" ; then
43858 COND_MONOLITHIC_0=""
43859 fi
43860
43861 COND_MONOLITHIC_0_SHARED_0="#"
43862 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43863 COND_MONOLITHIC_0_SHARED_0=""
43864 fi
43865
43866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43867 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43868 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43869 fi
43870
90970d69
DE
43871 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43872 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43873 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43874 fi
43875
a848cd7e
SC
43876 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43877 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43878 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43879 fi
43880
6671c68b
VZ
43881 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43882 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43883 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43884 fi
43885
a848cd7e
SC
43886 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43887 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43888 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43889 fi
43890
ceec2216
RL
43891 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43892 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43893 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43894 fi
43895
a848cd7e
SC
43896 COND_MONOLITHIC_0_SHARED_1="#"
43897 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43898 COND_MONOLITHIC_0_SHARED_1=""
43899 fi
43900
43901 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43902 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43903 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43904 fi
43905
90970d69
DE
43906 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43907 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43908 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43909 fi
43910
a848cd7e
SC
43911 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43912 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43913 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43914 fi
43915
6671c68b
VZ
43916 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43917 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43918 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43919 fi
43920
a848cd7e
SC
43921 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43922 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43923 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43924 fi
43925
ceec2216
RL
43926 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43927 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43928 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43929 fi
43930
a848cd7e
SC
43931 COND_MONOLITHIC_0_USE_ODBC_1="#"
43932 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43933 COND_MONOLITHIC_0_USE_ODBC_1=""
43934 fi
43935
43936 COND_MONOLITHIC_1="#"
43937 if test "x$MONOLITHIC" = "x1" ; then
43938 COND_MONOLITHIC_1=""
43939 fi
43940
43941 COND_MONOLITHIC_1_SHARED_0="#"
43942 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43943 COND_MONOLITHIC_1_SHARED_0=""
43944 fi
43945
43946 COND_MONOLITHIC_1_SHARED_1="#"
43947 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43948 COND_MONOLITHIC_1_SHARED_1=""
43949 fi
43950
43951 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43952 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43953 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43954 fi
43955
43956 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43957 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43958 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43959 fi
43960
eb730a0c
JS
43961 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43962 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43963 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43964 fi
43965
a848cd7e
SC
43966 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43967 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43968 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43969 fi
43970
43971 COND_PLATFORM_MACOSX_1="#"
43972 if test "x$PLATFORM_MACOSX" = "x1" ; then
43973 COND_PLATFORM_MACOSX_1=""
43974 fi
43975
a30f955f
VS
43976 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43977 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43978 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43979 fi
43980
a848cd7e
SC
43981 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43982 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43983 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43984 fi
43985
43986 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43987 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43988 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43989 fi
43990
43991 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43992 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43993 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43994 fi
43995
fc480dc1
DE
43996 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43997 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43998 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43999 fi
44000
1e9e8aba
DE
44001 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44002 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44003 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44004 fi
44005
ebee3cd0
VS
44006 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
44007 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
44008 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
44009 fi
44010
44011 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
44012 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
44013 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
44014 fi
44015
a848cd7e
SC
44016 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
44017 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
44018 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
44019 fi
44020
44021 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
44022 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44023 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
44024 fi
44025
b48a2016
DE
44026 COND_PLATFORM_MACOS_1="#"
44027 if test "x$PLATFORM_MACOS" = "x1" ; then
44028 COND_PLATFORM_MACOS_1=""
44029 fi
44030
083508af
MW
44031 COND_PLATFORM_MAC_1="#"
44032 if test "x$PLATFORM_MAC" = "x1" ; then
44033 COND_PLATFORM_MAC_1=""
44034 fi
44035
83d8eb47
MW
44036 COND_PLATFORM_MSDOS_1="#"
44037 if test "x$PLATFORM_MSDOS" = "x1" ; then
44038 COND_PLATFORM_MSDOS_1=""
44039 fi
44040
a848cd7e
SC
44041 COND_PLATFORM_OS2_1="#"
44042 if test "x$PLATFORM_OS2" = "x1" ; then
44043 COND_PLATFORM_OS2_1=""
44044 fi
44045
44046 COND_PLATFORM_UNIX_0="#"
44047 if test "x$PLATFORM_UNIX" = "x0" ; then
44048 COND_PLATFORM_UNIX_0=""
44049 fi
44050
44051 COND_PLATFORM_UNIX_1="#"
44052 if test "x$PLATFORM_UNIX" = "x1" ; then
44053 COND_PLATFORM_UNIX_1=""
44054 fi
44055
44056 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
44057 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
44058 COND_PLATFORM_UNIX_1_USE_GUI_1=""
44059 fi
44060
44061 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
44062 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
44063 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
44064 fi
44065
44066 COND_PLATFORM_WIN32_0="#"
44067 if test "x$PLATFORM_WIN32" = "x0" ; then
44068 COND_PLATFORM_WIN32_0=""
44069 fi
44070
44071 COND_PLATFORM_WIN32_1="#"
44072 if test "x$PLATFORM_WIN32" = "x1" ; then
44073 COND_PLATFORM_WIN32_1=""
44074 fi
44075
44076 COND_SHARED_0="#"
44077 if test "x$SHARED" = "x0" ; then
44078 COND_SHARED_0=""
44079 fi
44080
083508af
MW
44081 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
44082 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
44083 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
44084 fi
44085
44086 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
44087 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
44088 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
44089 fi
44090
44091 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
44092 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44093 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44094 fi
44095
a848cd7e
SC
44096 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44097 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44098 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44099 fi
44100
44101 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44102 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44103 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44104 fi
44105
44106 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44107 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44108 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44109 fi
44110
44111 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44112 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44113 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44114 fi
44115
083508af
MW
44116 COND_SHARED_0_USE_XRC_1="#"
44117 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44118 COND_SHARED_0_USE_XRC_1=""
44119 fi
44120
a848cd7e
SC
44121 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44122 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44123 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44124 fi
44125
44126 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44127 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44128 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44129 fi
44130
44131 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44132 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44133 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44134 fi
44135
44136 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44137 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44138 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44139 fi
44140
44141 COND_SHARED_1="#"
44142 if test "x$SHARED" = "x1" ; then
44143 COND_SHARED_1=""
44144 fi
44145
44146 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44147 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44148 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44149 fi
44150
083508af
MW
44151 COND_SHARED_1_USE_XRC_1="#"
44152 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44153 COND_SHARED_1_USE_XRC_1=""
44154 fi
44155
a30f955f
VS
44156 COND_TOOLKIT_="#"
44157 if test "x$TOOLKIT" = "x" ; then
44158 COND_TOOLKIT_=""
44159 fi
44160
a848cd7e
SC
44161 COND_TOOLKIT_COCOA="#"
44162 if test "x$TOOLKIT" = "xCOCOA" ; then
44163 COND_TOOLKIT_COCOA=""
44164 fi
44165
a49baeab
DE
44166 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44167 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44168 COND_TOOLKIT_COCOA_USE_GUI_1=""
44169 fi
44170
a848cd7e
SC
44171 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44172 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44173 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44174 fi
44175
44176 COND_TOOLKIT_GTK="#"
44177 if test "x$TOOLKIT" = "xGTK" ; then
44178 COND_TOOLKIT_GTK=""
44179 fi
44180
44181 COND_TOOLKIT_GTK_USE_GUI_1="#"
44182 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44183 COND_TOOLKIT_GTK_USE_GUI_1=""
44184 fi
44185
44186 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44187 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44188 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44189 fi
44190
44191 COND_TOOLKIT_MAC="#"
44192 if test "x$TOOLKIT" = "xMAC" ; then
44193 COND_TOOLKIT_MAC=""
44194 fi
44195
44196 COND_TOOLKIT_MAC_USE_GUI_1="#"
44197 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44198 COND_TOOLKIT_MAC_USE_GUI_1=""
44199 fi
44200
44201 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44202 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44203 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44204 fi
44205
44206 COND_TOOLKIT_MGL="#"
44207 if test "x$TOOLKIT" = "xMGL" ; then
44208 COND_TOOLKIT_MGL=""
44209 fi
44210
44211 COND_TOOLKIT_MGL_USE_GUI_1="#"
44212 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44213 COND_TOOLKIT_MGL_USE_GUI_1=""
44214 fi
44215
44216 COND_TOOLKIT_MOTIF="#"
44217 if test "x$TOOLKIT" = "xMOTIF" ; then
44218 COND_TOOLKIT_MOTIF=""
44219 fi
44220
44221 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44222 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44223 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44224 fi
44225
44226 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44227 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44228 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44229 fi
44230
44231 COND_TOOLKIT_MSW="#"
44232 if test "x$TOOLKIT" = "xMSW" ; then
44233 COND_TOOLKIT_MSW=""
44234 fi
44235
44236 COND_TOOLKIT_MSW_USE_GUI_1="#"
44237 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44238 COND_TOOLKIT_MSW_USE_GUI_1=""
44239 fi
44240
44241 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44242 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44243 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44244 fi
44245
44246 COND_TOOLKIT_PM="#"
44247 if test "x$TOOLKIT" = "xPM" ; then
44248 COND_TOOLKIT_PM=""
44249 fi
44250
44251 COND_TOOLKIT_PM_USE_GUI_1="#"
44252 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44253 COND_TOOLKIT_PM_USE_GUI_1=""
44254 fi
44255
44256 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44257 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44258 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44259 fi
44260
3fd9c298
DE
44261 COND_TOOLKIT_WINCE="#"
44262 if test "x$TOOLKIT" = "xWINCE" ; then
44263 COND_TOOLKIT_WINCE=""
44264 fi
44265
44266 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44267 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44268 COND_TOOLKIT_WINCE_USE_GUI_1=""
44269 fi
44270
44271 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44272 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44273 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44274 fi
44275
a848cd7e
SC
44276 COND_TOOLKIT_X11="#"
44277 if test "x$TOOLKIT" = "xX11" ; then
44278 COND_TOOLKIT_X11=""
44279 fi
44280
44281 COND_TOOLKIT_X11_USE_GUI_1="#"
44282 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44283 COND_TOOLKIT_X11_USE_GUI_1=""
44284 fi
44285
44286 COND_UNICODE_1="#"
44287 if test "x$UNICODE" = "x1" ; then
44288 COND_UNICODE_1=""
44289 fi
44290
44291 COND_USE_EXCEPTIONS_0="#"
44292 if test "x$USE_EXCEPTIONS" = "x0" ; then
44293 COND_USE_EXCEPTIONS_0=""
44294 fi
44295
44296 COND_USE_EXCEPTIONS_1="#"
44297 if test "x$USE_EXCEPTIONS" = "x1" ; then
44298 COND_USE_EXCEPTIONS_1=""
44299 fi
44300
44301 COND_USE_GUI_0="#"
44302 if test "x$USE_GUI" = "x0" ; then
44303 COND_USE_GUI_0=""
44304 fi
44305
44306 COND_USE_GUI_1="#"
44307 if test "x$USE_GUI" = "x1" ; then
44308 COND_USE_GUI_1=""
44309 fi
44310
44311 COND_USE_GUI_1_WXUNIV_0="#"
44312 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44313 COND_USE_GUI_1_WXUNIV_0=""
44314 fi
44315
44316 COND_USE_GUI_1_WXUNIV_1="#"
44317 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44318 COND_USE_GUI_1_WXUNIV_1=""
44319 fi
44320
44321 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44322 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44323 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44324 fi
44325
44326 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44327 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44328 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44329 fi
44330
44331 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44332 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44333 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44334 fi
44335
083508af
MW
44336 COND_USE_ODBC_1="#"
44337 if test "x$USE_ODBC" = "x1" ; then
44338 COND_USE_ODBC_1=""
44339 fi
44340
44341 COND_USE_OPENGL_1="#"
44342 if test "x$USE_OPENGL" = "x1" ; then
44343 COND_USE_OPENGL_1=""
44344 fi
44345
a848cd7e
SC
44346 COND_USE_PLUGINS_0="#"
44347 if test "x$USE_PLUGINS" = "x0" ; then
44348 COND_USE_PLUGINS_0=""
44349 fi
44350
0b78747f
MW
44351 COND_USE_RTTI_0="#"
44352 if test "x$USE_RTTI" = "x0" ; then
44353 COND_USE_RTTI_0=""
44354 fi
44355
44356 COND_USE_RTTI_1="#"
44357 if test "x$USE_RTTI" = "x1" ; then
44358 COND_USE_RTTI_1=""
44359 fi
44360
a848cd7e
SC
44361 COND_USE_SOSYMLINKS_1="#"
44362 if test "x$USE_SOSYMLINKS" = "x1" ; then
44363 COND_USE_SOSYMLINKS_1=""
44364 fi
44365
eb730a0c
JS
44366 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44367 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44368 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44369 fi
44370
a848cd7e
SC
44371 COND_USE_SOVERLINUX_1="#"
44372 if test "x$USE_SOVERLINUX" = "x1" ; then
44373 COND_USE_SOVERLINUX_1=""
44374 fi
44375
44376 COND_USE_SOVERSION_0="#"
44377 if test "x$USE_SOVERSION" = "x0" ; then
44378 COND_USE_SOVERSION_0=""
44379 fi
44380
44381 COND_USE_SOVERSOLARIS_1="#"
44382 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44383 COND_USE_SOVERSOLARIS_1=""
44384 fi
44385
0b78747f
MW
44386 COND_USE_THREADS_0="#"
44387 if test "x$USE_THREADS" = "x0" ; then
44388 COND_USE_THREADS_0=""
44389 fi
44390
44391 COND_USE_THREADS_1="#"
44392 if test "x$USE_THREADS" = "x1" ; then
44393 COND_USE_THREADS_1=""
44394 fi
44395
a13a7f89
RL
44396 COND_USE_XRC_1="#"
44397 if test "x$USE_XRC" = "x1" ; then
44398 COND_USE_XRC_1=""
44399 fi
44400
eb730a0c
JS
44401 COND_WINDOWS_IMPLIB_1="#"
44402 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44403 COND_WINDOWS_IMPLIB_1=""
44404 fi
44405
a848cd7e
SC
44406 COND_WITH_PLUGIN_SDL_1="#"
44407 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44408 COND_WITH_PLUGIN_SDL_1=""
44409 fi
44410
1e6eb025
VZ
44411 COND_WXUNIV_0="#"
44412 if test "x$WXUNIV" = "x0" ; then
44413 COND_WXUNIV_0=""
44414 fi
44415
a848cd7e
SC
44416 COND_WXUNIV_1="#"
44417 if test "x$WXUNIV" = "x1" ; then
44418 COND_WXUNIV_1=""
44419 fi
44420
44421 COND_WXUSE_EXPAT_BUILTIN="#"
44422 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44423 COND_WXUSE_EXPAT_BUILTIN=""
44424 fi
44425
44426 COND_WXUSE_LIBJPEG_BUILTIN="#"
44427 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44428 COND_WXUSE_LIBJPEG_BUILTIN=""
44429 fi
44430
44431 COND_WXUSE_LIBPNG_BUILTIN="#"
44432 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44433 COND_WXUSE_LIBPNG_BUILTIN=""
44434 fi
44435
44436 COND_WXUSE_LIBTIFF_BUILTIN="#"
44437 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44438 COND_WXUSE_LIBTIFF_BUILTIN=""
44439 fi
44440
44441 COND_WXUSE_ODBC_BUILTIN="#"
44442 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44443 COND_WXUSE_ODBC_BUILTIN=""
44444 fi
44445
44446 COND_WXUSE_REGEX_BUILTIN="#"
44447 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44448 COND_WXUSE_REGEX_BUILTIN=""
44449 fi
44450
44451 COND_WXUSE_ZLIB_BUILTIN="#"
44452 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44453 COND_WXUSE_ZLIB_BUILTIN=""
44454 fi
44455
44456
44457
810b94f0
MW
44458 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44459 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
44460echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
44461 { (exit 1); exit 1; }; }
44462 fi
44463
2057db16
VS
44464 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44465 { { 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
44466echo "$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;}
44467 { (exit 1); exit 1; }; }
44468 fi
44469
a848cd7e 44470
fb00f58d
JS
44471if test "$wxUSE_WINE" = "yes"; then
44472 RESCOMP=wrc
44473fi
44474
ceec2216
RL
44475if test "$wxUSE_SHARED" = "yes"; then
44476
44477 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44478 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44479
5b674b9d
DE
44480 case "${host}" in
44481 *-pc-os2_emx | *-pc-os2-emx )
44482 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44483 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44484 cp -p ${srcdir}/src/os2/dllnames.sh .
44485 cp -p ${srcdir}/src/os2/dllar.sh .
44486 ;;
44487 esac
ceec2216
RL
44488else
44489
44490 EXE_LINKER="$CXX -o"
44491
44492fi
69120ee4
VZ
44493if test "$wxUSE_OMF" = "yes"; then
44494 case "${host}" in
44495 *-pc-os2_emx | *-pc-os2-emx )
44496 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44497 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44498 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44499 ;;
44500 esac
44501fi
a848cd7e 44502
ddd14b14
RR
44503GCC_PRAGMA_FLAGS=""
44504PCH_FLAGS=""
87dd70d3 44505
c08ebc62 44506if test $GCC_PCH = 1 ; then
ddd14b14 44507 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44508 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44509else
44510 if test "$GCC" = yes; then
44511 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44512echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44513 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44514/* confdefs.h. */
44515_ACEOF
44516cat confdefs.h >>conftest.$ac_ext
44517cat >>conftest.$ac_ext <<_ACEOF
44518/* end confdefs.h. */
44519
44520int
44521main ()
44522{
44523#if (__GNUC__ < 4)
04e525a0 44524 Not GCC 4.0 or greater
87ae5038 44525 #endif
87dd70d3
RR
44526
44527 ;
44528 return 0;
44529}
44530_ACEOF
44531rm -f conftest.$ac_objext
44532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44533 (eval $ac_compile) 2>conftest.er1
44534 ac_status=$?
44535 grep -v '^ *+' conftest.er1 >conftest.err
44536 rm -f conftest.er1
44537 cat conftest.err >&5
44538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44539 (exit $ac_status); } &&
6ebeb4c7 44540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44542 (eval $ac_try) 2>&5
44543 ac_status=$?
44544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545 (exit $ac_status); }; } &&
44546 { ac_try='test -s conftest.$ac_objext'
44547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44548 (eval $ac_try) 2>&5
44549 ac_status=$?
44550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551 (exit $ac_status); }; }; then
44552 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44553 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44554echo "${ECHO_T}yes" >&6
44555else
44556 echo "$as_me: failed program was:" >&5
44557sed 's/^/| /' conftest.$ac_ext >&5
44558
44559echo "$as_me:$LINENO: result: no" >&5
44560echo "${ECHO_T}no" >&6
87ae5038 44561 case "${host}" in
cfda0ea8 44562 *-*-darwin* )
87ae5038
RR
44563 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44564 ;;
44565 *-*-mingw32* )
44566 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44567 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44568 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44569 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44570echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44571 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44572/* confdefs.h. */
44573_ACEOF
44574cat confdefs.h >>conftest.$ac_ext
44575cat >>conftest.$ac_ext <<_ACEOF
44576/* end confdefs.h. */
44577
44578int
44579main ()
44580{
44581#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44582 Not GCC 3.2 or greater
87ae5038 44583 #endif
ddd14b14
RR
44584
44585 ;
44586 return 0;
44587}
44588_ACEOF
44589rm -f conftest.$ac_objext
44590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44591 (eval $ac_compile) 2>conftest.er1
44592 ac_status=$?
44593 grep -v '^ *+' conftest.er1 >conftest.err
44594 rm -f conftest.er1
44595 cat conftest.err >&5
44596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597 (exit $ac_status); } &&
6ebeb4c7 44598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600 (eval $ac_try) 2>&5
44601 ac_status=$?
44602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603 (exit $ac_status); }; } &&
44604 { ac_try='test -s conftest.$ac_objext'
44605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44606 (eval $ac_try) 2>&5
44607 ac_status=$?
44608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609 (exit $ac_status); }; }; then
44610 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44611 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44612echo "${ECHO_T}yes" >&6
44613else
44614 echo "$as_me: failed program was:" >&5
44615sed 's/^/| /' conftest.$ac_ext >&5
44616
44617echo "$as_me:$LINENO: result: no" >&5
44618echo "${ECHO_T}no" >&6
3314e67b 44619fi
ddd14b14 44620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44621 fi
44622 ;;
44623 *-pc-os2_emx | *-pc-os2-emx )
44624 if test "$wxUSE_STL" = "yes"; then
44625 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44626echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44627 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44628/* confdefs.h. */
44629_ACEOF
44630cat confdefs.h >>conftest.$ac_ext
44631cat >>conftest.$ac_ext <<_ACEOF
44632/* end confdefs.h. */
44633
44634int
44635main ()
44636{
44637#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44638 Not GCC 3.2 or greater
87ae5038 44639 #endif
ddd14b14
RR
44640
44641 ;
44642 return 0;
44643}
44644_ACEOF
44645rm -f conftest.$ac_objext
44646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44647 (eval $ac_compile) 2>conftest.er1
44648 ac_status=$?
44649 grep -v '^ *+' conftest.er1 >conftest.err
44650 rm -f conftest.er1
44651 cat conftest.err >&5
44652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44653 (exit $ac_status); } &&
6ebeb4c7 44654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656 (eval $ac_try) 2>&5
44657 ac_status=$?
44658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659 (exit $ac_status); }; } &&
44660 { ac_try='test -s conftest.$ac_objext'
44661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662 (eval $ac_try) 2>&5
44663 ac_status=$?
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); }; }; then
44666 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44667 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44668echo "${ECHO_T}yes" >&6
44669else
44670 echo "$as_me: failed program was:" >&5
44671sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44672
ddd14b14
RR
44673echo "$as_me:$LINENO: result: no" >&5
44674echo "${ECHO_T}no" >&6
44675fi
44676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44677 fi
44678 ;;
44679 esac
44680
44681fi
44682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44683 fi
ddd14b14
RR
44684fi
44685CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44686
44687
44688SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
a848cd7e
SC
44731
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
ddd14b14 44749
a848cd7e
SC
44750
44751
44752echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44753echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44754set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44755if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44756 echo $ECHO_N "(cached) $ECHO_C" >&6
44757else
44758 cat >conftest.make <<\_ACEOF
44759all:
44760 @echo 'ac_maketemp="$(MAKE)"'
44761_ACEOF
44762# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44763eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44764if test -n "$ac_maketemp"; then
44765 eval ac_cv_prog_make_${ac_make}_set=yes
44766else
44767 eval ac_cv_prog_make_${ac_make}_set=no
44768fi
44769rm -f conftest.make
44770fi
44771if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44772 echo "$as_me:$LINENO: result: yes" >&5
44773echo "${ECHO_T}yes" >&6
44774 SET_MAKE=
44775else
44776 echo "$as_me:$LINENO: result: no" >&5
44777echo "${ECHO_T}no" >&6
44778 SET_MAKE="MAKE=${MAKE-make}"
44779fi
44780
44781
a848cd7e 44782
ceec2216
RL
44783 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44784
a848cd7e 44785
ceec2216 44786 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44787
a848cd7e 44788
ceec2216 44789 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44790
ceec2216
RL
44791
44792 ac_config_files="$ac_config_files version-script Makefile"
44793
44794
44795 ac_config_commands="$ac_config_commands wx-config
44796 "
a848cd7e
SC
44797
44798
9103d280
RL
44799
44800
a848cd7e
SC
44801if test "$wxUSE_GUI" = "yes"; then
44802 SUBDIRS="samples demos utils contrib"
44803else SUBDIRS="samples utils"
44804fi
44805
44806
44807
44808# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44809if test "${with_cppunit_prefix+set}" = set; then
44810 withval="$with_cppunit_prefix"
44811 cppunit_config_prefix="$withval"
44812else
44813 cppunit_config_prefix=""
44814fi;
44815
44816# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44817if test "${with_cppunit_exec_prefix+set}" = set; then
44818 withval="$with_cppunit_exec_prefix"
44819 cppunit_config_exec_prefix="$withval"
44820else
44821 cppunit_config_exec_prefix=""
44822fi;
44823
44824 if test x$cppunit_config_exec_prefix != x ; then
44825 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44826 if test x${CPPUNIT_CONFIG+set} != xset ; then
44827 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44828 fi
44829 fi
44830 if test x$cppunit_config_prefix != x ; then
44831 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44832 if test x${CPPUNIT_CONFIG+set} != xset ; then
44833 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44834 fi
44835 fi
44836
44837 # Extract the first word of "cppunit-config", so it can be a program name with args.
44838set dummy cppunit-config; ac_word=$2
44839echo "$as_me:$LINENO: checking for $ac_word" >&5
44840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44841if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44842 echo $ECHO_N "(cached) $ECHO_C" >&6
44843else
44844 case $CPPUNIT_CONFIG in
44845 [\\/]* | ?:[\\/]*)
44846 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44847 ;;
44848 *)
44849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44850for as_dir in $PATH
44851do
44852 IFS=$as_save_IFS
44853 test -z "$as_dir" && as_dir=.
44854 for ac_exec_ext in '' $ac_executable_extensions; do
44855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44856 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44858 break 2
44859 fi
44860done
44861done
44862
44863 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44864 ;;
44865esac
44866fi
44867CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44868
44869if test -n "$CPPUNIT_CONFIG"; then
44870 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44871echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44872else
44873 echo "$as_me:$LINENO: result: no" >&5
44874echo "${ECHO_T}no" >&6
44875fi
44876
44877 cppunit_version_min=1.8.0
44878
44879 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44880echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44881 no_cppunit=""
44882 if test "$CPPUNIT_CONFIG" = "no" ; then
44883 no_cppunit=yes
44884 else
44885 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44886 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44887 cppunit_version=`$CPPUNIT_CONFIG --version`
44888
44889 cppunit_major_version=`echo $cppunit_version | \
44890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44891 cppunit_minor_version=`echo $cppunit_version | \
44892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44893 cppunit_micro_version=`echo $cppunit_version | \
44894 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44895
44896 cppunit_major_min=`echo $cppunit_version_min | \
44897 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44898 cppunit_minor_min=`echo $cppunit_version_min | \
44899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44900 cppunit_micro_min=`echo $cppunit_version_min | \
44901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44902
44903 cppunit_version_proper=`expr \
44904 $cppunit_major_version \> $cppunit_major_min \| \
44905 $cppunit_major_version \= $cppunit_major_min \& \
44906 $cppunit_minor_version \> $cppunit_minor_min \| \
44907 $cppunit_major_version \= $cppunit_major_min \& \
44908 $cppunit_minor_version \= $cppunit_minor_min \& \
44909 $cppunit_micro_version \>= $cppunit_micro_min `
44910
44911 if test "$cppunit_version_proper" = "1" ; then
44912 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44913echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44914 else
44915 echo "$as_me:$LINENO: result: no" >&5
44916echo "${ECHO_T}no" >&6
44917 no_cppunit=yes
44918 fi
44919 fi
44920
44921 if test "x$no_cppunit" = x ; then
c2218763 44922 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44923 else
44924 CPPUNIT_CFLAGS=""
44925 CPPUNIT_LIBS=""
c2218763 44926 :
a848cd7e
SC
44927 fi
44928
44929
44930
44931
44932
44933for subdir in `echo $SUBDIRS`; do
44934 if test -d ${srcdir}/${subdir} ; then
44935 if test "$wxUSE_GUI" = "yes"; then
44936 if test ${subdir} = "samples"; then
44937 makefiles="samples/Makefile.in $makefiles"
44938 for sample in `echo $SAMPLES_SUBDIRS`; do
44939 if test -d $srcdir/samples/$sample; then
44940 makefiles="samples/$sample/Makefile.in $makefiles"
44941 fi
44942 done
9c112555
MW
44943 else
44944 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44945 eval "disabled=\$$disabled_var"
44946 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44947 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44948 fi
44949 else if test ${subdir} = "samples"; then
44950 makefiles="samples/Makefile.in samples/console/Makefile.in"
44951 elif test ${subdir} = "utils"; then
6537ccf8
VS
44952 makefiles=""
44953 for util in HelpGen tex2rtf ; do
44954 if test -d $srcdir/utils/$util ; then
44955 makefiles="utils/$util/Makefile.in \
44956 utils/$util/src/Makefile.in \
44957 $makefiles"
44958 fi
44959 done
a848cd7e
SC
44960 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44961 fi
44962 fi
44963
44964 for mkin in $makefiles ; do
44965 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44966 ac_config_files="$ac_config_files $mk"
44967
44968 done
44969 fi
44970done
44971
44972
44973cat >confcache <<\_ACEOF
44974# This file is a shell script that caches the results of configure
44975# tests run on this system so they can be shared between configure
44976# scripts and configure runs, see configure's option --config-cache.
44977# It is not useful on other systems. If it contains results you don't
44978# want to keep, you may remove or edit it.
44979#
44980# config.status only pays attention to the cache file if you give it
44981# the --recheck option to rerun configure.
44982#
44983# `ac_cv_env_foo' variables (set or unset) will be overridden when
44984# loading this file, other *unset* `ac_cv_foo' will be assigned the
44985# following values.
44986
44987_ACEOF
44988
44989# The following way of writing the cache mishandles newlines in values,
44990# but we know of no workaround that is simple, portable, and efficient.
44991# So, don't put newlines in cache variables' values.
44992# Ultrix sh set writes to stderr and can't be redirected directly,
44993# and sets the high bit in the cache file unless we assign to the vars.
44994{
44995 (set) 2>&1 |
44996 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44997 *ac_space=\ *)
44998 # `set' does not quote correctly, so add quotes (double-quote
44999 # substitution turns \\\\ into \\, and sed turns \\ into \).
45000 sed -n \
ac1cb8d3
VS
45001 "s/'/'\\\\''/g;
45002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45003 ;;
45004 *)
45005 # `set' quotes correctly as required by POSIX, so do not add quotes.
45006 sed -n \
ac1cb8d3 45007 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45008 ;;
45009 esac;
45010} |
45011 sed '
45012 t clear
45013 : clear
45014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45015 t end
45016 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45017 : end' >>confcache
45018if diff $cache_file confcache >/dev/null 2>&1; then :; else
45019 if test -w $cache_file; then
45020 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45021 cat confcache >$cache_file
45022 else
45023 echo "not updating unwritable cache $cache_file"
45024 fi
45025fi
45026rm -f confcache
45027
45028test "x$prefix" = xNONE && prefix=$ac_default_prefix
45029# Let make expand exec_prefix.
45030test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45031
45032# VPATH may cause trouble with some makes, so we remove $(srcdir),
45033# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45034# trailing colons and then remove the whole line if VPATH becomes empty
45035# (actually we leave an empty line to preserve line numbers).
45036if test "x$srcdir" = x.; then
ac1cb8d3 45037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45038s/:*\$(srcdir):*/:/;
45039s/:*\${srcdir}:*/:/;
45040s/:*@srcdir@:*/:/;
ac1cb8d3 45041s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45042s/:*$//;
ac1cb8d3 45043s/^[^=]*=[ ]*$//;
a848cd7e
SC
45044}'
45045fi
45046
45047DEFS=-DHAVE_CONFIG_H
45048
45049ac_libobjs=
45050ac_ltlibobjs=
45051for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45052 # 1. Remove the extension, and $U if already installed.
45053 ac_i=`echo "$ac_i" |
ac1cb8d3 45054 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45055 # 2. Add them.
45056 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45057 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45058done
45059LIBOBJS=$ac_libobjs
45060
45061LTLIBOBJS=$ac_ltlibobjs
45062
45063
45064
45065: ${CONFIG_STATUS=./config.status}
45066ac_clean_files_save=$ac_clean_files
45067ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45068{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45069echo "$as_me: creating $CONFIG_STATUS" >&6;}
45070cat >$CONFIG_STATUS <<_ACEOF
45071#! $SHELL
45072# Generated by $as_me.
45073# Run this file to recreate the current configuration.
45074# Compiler output produced by configure, useful for debugging
45075# configure, is in config.log if it exists.
45076
45077debug=false
45078ac_cs_recheck=false
45079ac_cs_silent=false
45080SHELL=\${CONFIG_SHELL-$SHELL}
45081_ACEOF
45082
45083cat >>$CONFIG_STATUS <<\_ACEOF
45084## --------------------- ##
45085## M4sh Initialization. ##
45086## --------------------- ##
45087
45088# Be Bourne compatible
45089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45090 emulate sh
45091 NULLCMD=:
45092 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45093 # is contrary to our usage. Disable this feature.
45094 alias -g '${1+"$@"}'='"$@"'
45095elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45096 set -o posix
45097fi
ac1cb8d3 45098DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45099
45100# Support unset when possible.
ac1cb8d3 45101if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45102 as_unset=unset
45103else
45104 as_unset=false
45105fi
45106
45107
45108# Work around bugs in pre-3.0 UWIN ksh.
45109$as_unset ENV MAIL MAILPATH
45110PS1='$ '
45111PS2='> '
45112PS4='+ '
45113
45114# NLS nuisances.
45115for as_var in \
45116 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45117 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45118 LC_TELEPHONE LC_TIME
45119do
ac1cb8d3 45120 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45121 eval $as_var=C; export $as_var
45122 else
45123 $as_unset $as_var
45124 fi
45125done
45126
45127# Required to use basename.
45128if expr a : '\(a\)' >/dev/null 2>&1; then
45129 as_expr=expr
45130else
45131 as_expr=false
45132fi
45133
45134if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45135 as_basename=basename
45136else
45137 as_basename=false
45138fi
45139
45140
45141# Name of the executable.
45142as_me=`$as_basename "$0" ||
45143$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45144 X"$0" : 'X\(//\)$' \| \
45145 X"$0" : 'X\(/\)$' \| \
45146 . : '\(.\)' 2>/dev/null ||
45147echo X/"$0" |
45148 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45149 /^X\/\(\/\/\)$/{ s//\1/; q; }
45150 /^X\/\(\/\).*/{ s//\1/; q; }
45151 s/.*/./; q'`
45152
45153
45154# PATH needs CR, and LINENO needs CR and PATH.
45155# Avoid depending upon Character Ranges.
45156as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45158as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45159as_cr_digits='0123456789'
45160as_cr_alnum=$as_cr_Letters$as_cr_digits
45161
45162# The user is always right.
45163if test "${PATH_SEPARATOR+set}" != set; then
45164 echo "#! /bin/sh" >conf$$.sh
45165 echo "exit 0" >>conf$$.sh
45166 chmod +x conf$$.sh
45167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45168 PATH_SEPARATOR=';'
45169 else
45170 PATH_SEPARATOR=:
45171 fi
45172 rm -f conf$$.sh
45173fi
45174
45175
45176 as_lineno_1=$LINENO
45177 as_lineno_2=$LINENO
45178 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45179 test "x$as_lineno_1" != "x$as_lineno_2" &&
45180 test "x$as_lineno_3" = "x$as_lineno_2" || {
45181 # Find who we are. Look in the path if we contain no path at all
45182 # relative or not.
45183 case $0 in
45184 *[\\/]* ) as_myself=$0 ;;
45185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45186for as_dir in $PATH
45187do
45188 IFS=$as_save_IFS
45189 test -z "$as_dir" && as_dir=.
45190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45191done
45192
45193 ;;
45194 esac
45195 # We did not find ourselves, most probably we were run as `sh COMMAND'
45196 # in which case we are not to be found in the path.
45197 if test "x$as_myself" = x; then
45198 as_myself=$0
45199 fi
45200 if test ! -f "$as_myself"; then
45201 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45202echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45203 { (exit 1); exit 1; }; }
45204 fi
45205 case $CONFIG_SHELL in
45206 '')
45207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45208for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45209do
45210 IFS=$as_save_IFS
45211 test -z "$as_dir" && as_dir=.
45212 for as_base in sh bash ksh sh5; do
45213 case $as_dir in
45214 /*)
45215 if ("$as_dir/$as_base" -c '
45216 as_lineno_1=$LINENO
45217 as_lineno_2=$LINENO
45218 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45219 test "x$as_lineno_1" != "x$as_lineno_2" &&
45220 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45221 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45222 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45223 CONFIG_SHELL=$as_dir/$as_base
45224 export CONFIG_SHELL
45225 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45226 fi;;
45227 esac
45228 done
45229done
45230;;
45231 esac
45232
45233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45234 # uniformly replaced by the line number. The first 'sed' inserts a
45235 # line-number line before each line; the second 'sed' does the real
45236 # work. The second script uses 'N' to pair each line-number line
45237 # with the numbered line, and appends trailing '-' during
45238 # substitution so that $LINENO is not a special case at line end.
45239 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45240 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45241 sed '=' <$as_myself |
45242 sed '
45243 N
45244 s,$,-,
45245 : loop
45246 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45247 t loop
45248 s,-$,,
45249 s,^['$as_cr_digits']*\n,,
45250 ' >$as_me.lineno &&
45251 chmod +x $as_me.lineno ||
45252 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45253echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45254 { (exit 1); exit 1; }; }
45255
45256 # Don't try to exec as it changes $[0], causing all sort of problems
45257 # (the dirname of $[0] is not the place where we might find the
45258 # original and so on. Autoconf is especially sensible to this).
45259 . ./$as_me.lineno
45260 # Exit status is that of the last command.
45261 exit
45262}
45263
45264
45265case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45266 *c*,-n*) ECHO_N= ECHO_C='
45267' ECHO_T=' ' ;;
45268 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45269 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45270esac
45271
45272if expr a : '\(a\)' >/dev/null 2>&1; then
45273 as_expr=expr
45274else
45275 as_expr=false
45276fi
45277
45278rm -f conf$$ conf$$.exe conf$$.file
45279echo >conf$$.file
45280if ln -s conf$$.file conf$$ 2>/dev/null; then
45281 # We could just check for DJGPP; but this test a) works b) is more generic
45282 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45283 if test -f conf$$.exe; then
45284 # Don't use ln at all; we don't have any links
45285 as_ln_s='cp -p'
45286 else
45287 as_ln_s='ln -s'
45288 fi
45289elif ln conf$$.file conf$$ 2>/dev/null; then
45290 as_ln_s=ln
45291else
45292 as_ln_s='cp -p'
45293fi
45294rm -f conf$$ conf$$.exe conf$$.file
45295
45296if mkdir -p . 2>/dev/null; then
45297 as_mkdir_p=:
45298else
ac1cb8d3 45299 test -d ./-p && rmdir ./-p
a848cd7e
SC
45300 as_mkdir_p=false
45301fi
45302
45303as_executable_p="test -f"
45304
45305# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45306as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45307
45308# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45309as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45310
45311
45312# IFS
45313# We need space, tab and new line, in precisely that order.
45314as_nl='
45315'
45316IFS=" $as_nl"
45317
45318# CDPATH.
45319$as_unset CDPATH
45320
45321exec 6>&1
45322
45323# Open the log real soon, to keep \$[0] and so on meaningful, and to
45324# report actual input values of CONFIG_FILES etc. instead of their
45325# values after options handling. Logging --version etc. is OK.
45326exec 5>>config.log
45327{
45328 echo
45329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45330## Running $as_me. ##
45331_ASBOX
45332} >&5
45333cat >&5 <<_CSEOF
45334
eb730a0c 45335This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45336generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45337
45338 CONFIG_FILES = $CONFIG_FILES
45339 CONFIG_HEADERS = $CONFIG_HEADERS
45340 CONFIG_LINKS = $CONFIG_LINKS
45341 CONFIG_COMMANDS = $CONFIG_COMMANDS
45342 $ $0 $@
45343
45344_CSEOF
45345echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45346echo >&5
45347_ACEOF
45348
45349# Files that config.status was made for.
45350if test -n "$ac_config_files"; then
45351 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45352fi
45353
45354if test -n "$ac_config_headers"; then
45355 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45356fi
45357
45358if test -n "$ac_config_links"; then
45359 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45360fi
45361
45362if test -n "$ac_config_commands"; then
45363 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45364fi
45365
45366cat >>$CONFIG_STATUS <<\_ACEOF
45367
45368ac_cs_usage="\
45369\`$as_me' instantiates files from templates according to the
45370current configuration.
45371
45372Usage: $0 [OPTIONS] [FILE]...
45373
45374 -h, --help print this help, then exit
45375 -V, --version print version number, then exit
45376 -q, --quiet do not print progress messages
45377 -d, --debug don't remove temporary files
45378 --recheck update $as_me by reconfiguring in the same conditions
45379 --file=FILE[:TEMPLATE]
ac1cb8d3 45380 instantiate the configuration file FILE
a848cd7e 45381 --header=FILE[:TEMPLATE]
ac1cb8d3 45382 instantiate the configuration header FILE
a848cd7e
SC
45383
45384Configuration files:
45385$config_files
45386
45387Configuration headers:
45388$config_headers
45389
45390Configuration commands:
45391$config_commands
45392
45393Report bugs to <bug-autoconf@gnu.org>."
45394_ACEOF
45395
45396cat >>$CONFIG_STATUS <<_ACEOF
45397ac_cs_version="\\
eb730a0c 45398wxWidgets config.status 2.6.2
ac1cb8d3 45399configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45400 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45401
ac1cb8d3 45402Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45403This config.status script is free software; the Free Software Foundation
45404gives unlimited permission to copy, distribute and modify it."
45405srcdir=$srcdir
45406INSTALL="$INSTALL"
45407_ACEOF
45408
45409cat >>$CONFIG_STATUS <<\_ACEOF
45410# If no file are specified by the user, then we need to provide default
45411# value. By we need to know if files were specified by the user.
45412ac_need_defaults=:
45413while test $# != 0
45414do
45415 case $1 in
45416 --*=*)
45417 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45418 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45419 ac_shift=:
45420 ;;
45421 -*)
45422 ac_option=$1
45423 ac_optarg=$2
45424 ac_shift=shift
45425 ;;
45426 *) # This is not an option, so the user has probably given explicit
45427 # arguments.
45428 ac_option=$1
45429 ac_need_defaults=false;;
45430 esac
45431
45432 case $ac_option in
45433 # Handling of the options.
45434_ACEOF
45435cat >>$CONFIG_STATUS <<\_ACEOF
45436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45437 ac_cs_recheck=: ;;
45438 --version | --vers* | -V )
45439 echo "$ac_cs_version"; exit 0 ;;
45440 --he | --h)
45441 # Conflict between --help and --header
45442 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45443Try \`$0 --help' for more information." >&5
45444echo "$as_me: error: ambiguous option: $1
45445Try \`$0 --help' for more information." >&2;}
45446 { (exit 1); exit 1; }; };;
45447 --help | --hel | -h )
45448 echo "$ac_cs_usage"; exit 0 ;;
45449 --debug | --d* | -d )
45450 debug=: ;;
45451 --file | --fil | --fi | --f )
45452 $ac_shift
45453 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45454 ac_need_defaults=false;;
45455 --header | --heade | --head | --hea )
45456 $ac_shift
45457 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45458 ac_need_defaults=false;;
45459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45461 ac_cs_silent=: ;;
45462
45463 # This is an error.
45464 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45465Try \`$0 --help' for more information." >&5
45466echo "$as_me: error: unrecognized option: $1
45467Try \`$0 --help' for more information." >&2;}
45468 { (exit 1); exit 1; }; } ;;
45469
45470 *) ac_config_targets="$ac_config_targets $1" ;;
45471
45472 esac
45473 shift
45474done
45475
45476ac_configure_extra_args=
45477
45478if $ac_cs_silent; then
45479 exec 6>/dev/null
45480 ac_configure_extra_args="$ac_configure_extra_args --silent"
45481fi
45482
45483_ACEOF
45484cat >>$CONFIG_STATUS <<_ACEOF
45485if \$ac_cs_recheck; then
45486 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45487 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45488fi
45489
45490_ACEOF
45491
45492cat >>$CONFIG_STATUS <<_ACEOF
45493#
45494# INIT-COMMANDS section.
45495#
45496
ceec2216
RL
45497 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45498 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45499 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45500 LN_S="${LN_S}"
a848cd7e
SC
45501
45502
45503_ACEOF
45504
45505
45506
45507cat >>$CONFIG_STATUS <<\_ACEOF
45508for ac_config_target in $ac_config_targets
45509do
45510 case "$ac_config_target" in
45511 # Handling of arguments.
ceec2216
RL
45512 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45513 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45514 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45515 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45516 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45517 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45518 "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
45519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45520echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45521 { (exit 1); exit 1; }; };;
45522 esac
45523done
45524
45525# If the user did not use the arguments to specify the items to instantiate,
45526# then the envvar interface is used. Set only those that are not.
45527# We use the long form for the default assignment because of an extremely
45528# bizarre bug on SunOS 4.1.3.
45529if $ac_need_defaults; then
45530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45533fi
45534
45535# Have a temporary directory for convenience. Make it in the build tree
45536# simply because there is no reason to put it here, and in addition,
45537# creating and moving files from /tmp can sometimes cause problems.
45538# Create a temporary directory, and hook for its removal unless debugging.
45539$debug ||
45540{
45541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45542 trap '{ (exit 1); exit 1; }' 1 2 13 15
45543}
45544
45545# Create a (secure) tmp directory for tmp files.
45546
45547{
45548 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45549 test -n "$tmp" && test -d "$tmp"
45550} ||
45551{
45552 tmp=./confstat$$-$RANDOM
45553 (umask 077 && mkdir $tmp)
45554} ||
45555{
45556 echo "$me: cannot create a temporary directory in ." >&2
45557 { (exit 1); exit 1; }
45558}
45559
45560_ACEOF
45561
45562cat >>$CONFIG_STATUS <<_ACEOF
45563
45564#
45565# CONFIG_FILES section.
45566#
45567
45568# No need to generate the scripts if there are no CONFIG_FILES.
45569# This happens for instance when ./config.status config.h
45570if test -n "\$CONFIG_FILES"; then
45571 # Protect against being on the right side of a sed subst in config.status.
45572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45574s,@SHELL@,$SHELL,;t t
45575s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45576s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45577s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45578s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45579s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45580s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45581s,@exec_prefix@,$exec_prefix,;t t
45582s,@prefix@,$prefix,;t t
45583s,@program_transform_name@,$program_transform_name,;t t
45584s,@bindir@,$bindir,;t t
45585s,@sbindir@,$sbindir,;t t
45586s,@libexecdir@,$libexecdir,;t t
45587s,@datadir@,$datadir,;t t
45588s,@sysconfdir@,$sysconfdir,;t t
45589s,@sharedstatedir@,$sharedstatedir,;t t
45590s,@localstatedir@,$localstatedir,;t t
45591s,@libdir@,$libdir,;t t
45592s,@includedir@,$includedir,;t t
45593s,@oldincludedir@,$oldincludedir,;t t
45594s,@infodir@,$infodir,;t t
45595s,@mandir@,$mandir,;t t
45596s,@build_alias@,$build_alias,;t t
45597s,@host_alias@,$host_alias,;t t
45598s,@target_alias@,$target_alias,;t t
45599s,@DEFS@,$DEFS,;t t
45600s,@ECHO_C@,$ECHO_C,;t t
45601s,@ECHO_N@,$ECHO_N,;t t
45602s,@ECHO_T@,$ECHO_T,;t t
45603s,@LIBS@,$LIBS,;t t
45604s,@build@,$build,;t t
45605s,@build_cpu@,$build_cpu,;t t
45606s,@build_vendor@,$build_vendor,;t t
45607s,@build_os@,$build_os,;t t
45608s,@host@,$host,;t t
45609s,@host_cpu@,$host_cpu,;t t
45610s,@host_vendor@,$host_vendor,;t t
45611s,@host_os@,$host_os,;t t
45612s,@target@,$target,;t t
45613s,@target_cpu@,$target_cpu,;t t
45614s,@target_vendor@,$target_vendor,;t t
45615s,@target_os@,$target_os,;t t
45616s,@CC@,$CC,;t t
45617s,@CFLAGS@,$CFLAGS,;t t
45618s,@LDFLAGS@,$LDFLAGS,;t t
45619s,@CPPFLAGS@,$CPPFLAGS,;t t
45620s,@ac_ct_CC@,$ac_ct_CC,;t t
45621s,@EXEEXT@,$EXEEXT,;t t
45622s,@OBJEXT@,$OBJEXT,;t t
45623s,@CPP@,$CPP,;t t
45624s,@EGREP@,$EGREP,;t t
45625s,@CXX@,$CXX,;t t
45626s,@CXXFLAGS@,$CXXFLAGS,;t t
45627s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45628s,@RANLIB@,$RANLIB,;t t
45629s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45630s,@AR@,$AR,;t t
45631s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45632s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45633s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45634s,@STRIP@,$STRIP,;t t
45635s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45636s,@LN_S@,$LN_S,;t t
45637s,@CXXCPP@,$CXXCPP,;t t
45638s,@subdirs@,$subdirs,;t t
45639s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45640s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45641s,@GTK_LIBS@,$GTK_LIBS,;t t
45642s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45643s,@X_CFLAGS@,$X_CFLAGS,;t t
45644s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45645s,@X_LIBS@,$X_LIBS,;t t
45646s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45647s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45648s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45649s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45650s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45651s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45652s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45653s,@RESCOMP@,$RESCOMP,;t t
45654s,@DEREZ@,$DEREZ,;t t
45655s,@SETFILE@,$SETFILE,;t t
45656s,@LIBICONV@,$LIBICONV,;t t
45657s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45658s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45659s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45660s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45661s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45662s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45663s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45664s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45665s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45666s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45667s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45668s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45669s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45670s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45671s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45672s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45673s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45674s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45675s,@VENDOR@,$VENDOR,;t t
45676s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45677s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45678s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45679s,@WXUNIV@,$WXUNIV,;t t
45680s,@MONOLITHIC@,$MONOLITHIC,;t t
45681s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45682s,@EXTRALIBS@,$EXTRALIBS,;t t
45683s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45684s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45685s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45686s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45687s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45688s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45689s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45690s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45691s,@UNICODE@,$UNICODE,;t t
45692s,@BUILD@,$BUILD,;t t
45693s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45694s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45695s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45696s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45697s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45698s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45699s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45700s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45701s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45702s,@SET_MAKE@,$SET_MAKE,;t t
45703s,@MAKE_SET@,$MAKE_SET,;t t
45704s,@ac_ct_AR@,$ac_ct_AR,;t t
45705s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45706s,@NM@,$NM,;t t
45707s,@ac_ct_NM@,$ac_ct_NM,;t t
45708s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45709s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45710s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45711s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45712s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45713s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45714s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45715s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45716s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45717s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45718s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45719s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45720s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45721s,@LIBPREFIX@,$LIBPREFIX,;t t
45722s,@LIBEXT@,$LIBEXT,;t t
45723s,@DLLPREFIX@,$DLLPREFIX,;t t
45724s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45725s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45726s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45727s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45728s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45729s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45730s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45731s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45732s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45733s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45734s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45735s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45736s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45737s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45738s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45739s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45740s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45741s,@GCC_PCH@,$GCC_PCH,;t t
45742s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45743s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45744s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45745s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45746s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45747s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45748s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45749s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45750s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45751s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45752s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45753s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45754s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45755s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45756s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45757s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45758s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45759s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45760s,@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 45761s,@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 45762s,@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 45763s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45764s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45765s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45766s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45767s,@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 45768s,@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 45769s,@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 45770s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45771s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45772s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45773s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45774s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45775s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45776s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45777s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45778s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45779s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45780s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45781s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45782s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45783s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45784s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45785s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45786s,@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
45787s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45788s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45789s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45790s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45791s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45792s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45793s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45794s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45795s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45796s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45797s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45798s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45799s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45800s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45801s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45802s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45803s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45804s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45805s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45806s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45807s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45808s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45809s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45810s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45811s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45812s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45813s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45814s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45815s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45816s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45817s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45818s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45819s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45820s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45821s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45822s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45823s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45824s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45825s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45826s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45827s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45828s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45829s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45830s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45831s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45832s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45833s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45834s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45835s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45836s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45837s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45838s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45839s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45840s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45841s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45842s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45843s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45844s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45845s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45846s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45847s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45848s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45849s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45850s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45851s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45852s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45853s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45854s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45855s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45856s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45857s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45858s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45859s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45860s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45861s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45862s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45863s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45864s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45865s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45866s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45867s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45868s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45869s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45870s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45871s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45872s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45873s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45874s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45875s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45876s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45877s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45878s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45879s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45880s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45881s,@USE_GUI@,$USE_GUI,;t t
45882s,@AFMINSTALL@,$AFMINSTALL,;t t
45883s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45884s,@TOOLKIT@,$TOOLKIT,;t t
45885s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45886s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45887s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45888s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45889s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45890s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45891s,@WIDGET_SET@,$WIDGET_SET,;t t
45892s,@WX_RELEASE@,$WX_RELEASE,;t t
45893s,@WX_VERSION@,$WX_VERSION,;t t
45894s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45895s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45896s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45897s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45898s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45899s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45900s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45901s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45902s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45903s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45904s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45905s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45906s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45907s,@DISTDIR@,$DISTDIR,;t t
45908s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45909s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45910s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45911s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45912s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45913s,@RESFLAGS@,$RESFLAGS,;t t
45914s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45915s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45916s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45917s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45918s,@MACRESCOMP@,$MACRESCOMP,;t t
45919s,@MACSETFILE@,$MACSETFILE,;t t
45920s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45921s,@GCC@,$GCC,;t t
a848cd7e 45922s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45923s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45924s,@LIBOBJS@,$LIBOBJS,;t t
45925s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45926CEOF
45927
45928_ACEOF
45929
45930 cat >>$CONFIG_STATUS <<\_ACEOF
45931 # Split the substitutions into bite-sized pieces for seds with
45932 # small command number limits, like on Digital OSF/1 and HP-UX.
45933 ac_max_sed_lines=48
45934 ac_sed_frag=1 # Number of current file.
45935 ac_beg=1 # First line for current file.
45936 ac_end=$ac_max_sed_lines # Line after last line for current file.
45937 ac_more_lines=:
45938 ac_sed_cmds=
45939 while $ac_more_lines; do
45940 if test $ac_beg -gt 1; then
45941 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45942 else
45943 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45944 fi
45945 if test ! -s $tmp/subs.frag; then
45946 ac_more_lines=false
45947 else
45948 # The purpose of the label and of the branching condition is to
45949 # speed up the sed processing (if there are no `@' at all, there
45950 # is no need to browse any of the substitutions).
45951 # These are the two extra sed commands mentioned above.
45952 (echo ':t
45953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45954 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45955 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45956 else
ac1cb8d3 45957 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45958 fi
45959 ac_sed_frag=`expr $ac_sed_frag + 1`
45960 ac_beg=$ac_end
45961 ac_end=`expr $ac_end + $ac_max_sed_lines`
45962 fi
45963 done
45964 if test -z "$ac_sed_cmds"; then
45965 ac_sed_cmds=cat
45966 fi
45967fi # test -n "$CONFIG_FILES"
45968
45969_ACEOF
45970cat >>$CONFIG_STATUS <<\_ACEOF
45971for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45973 case $ac_file in
45974 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45975 cat >$tmp/stdin
45976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45980 * ) ac_file_in=$ac_file.in ;;
45981 esac
45982
45983 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45984 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45986 X"$ac_file" : 'X\(//\)[^/]' \| \
45987 X"$ac_file" : 'X\(//\)$' \| \
45988 X"$ac_file" : 'X\(/\)' \| \
45989 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45990echo X"$ac_file" |
45991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45993 /^X\(\/\/\)$/{ s//\1/; q; }
45994 /^X\(\/\).*/{ s//\1/; q; }
45995 s/.*/./; q'`
45996 { if $as_mkdir_p; then
45997 mkdir -p "$ac_dir"
45998 else
45999 as_dir="$ac_dir"
46000 as_dirs=
46001 while test ! -d "$as_dir"; do
46002 as_dirs="$as_dir $as_dirs"
46003 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46005 X"$as_dir" : 'X\(//\)[^/]' \| \
46006 X"$as_dir" : 'X\(//\)$' \| \
46007 X"$as_dir" : 'X\(/\)' \| \
46008 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46009echo X"$as_dir" |
46010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46012 /^X\(\/\/\)$/{ s//\1/; q; }
46013 /^X\(\/\).*/{ s//\1/; q; }
46014 s/.*/./; q'`
46015 done
46016 test ! -n "$as_dirs" || mkdir $as_dirs
46017 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46018echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46019 { (exit 1); exit 1; }; }; }
46020
46021 ac_builddir=.
46022
46023if test "$ac_dir" != .; then
46024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46025 # A "../" for each directory in $ac_dir_suffix.
46026 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46027else
46028 ac_dir_suffix= ac_top_builddir=
46029fi
46030
46031case $srcdir in
46032 .) # No --srcdir option. We are building in place.
46033 ac_srcdir=.
46034 if test -z "$ac_top_builddir"; then
46035 ac_top_srcdir=.
46036 else
46037 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46038 fi ;;
46039 [\\/]* | ?:[\\/]* ) # Absolute path.
46040 ac_srcdir=$srcdir$ac_dir_suffix;
46041 ac_top_srcdir=$srcdir ;;
46042 *) # Relative path.
46043 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46044 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46045esac
ac1cb8d3
VS
46046
46047# Do not use `cd foo && pwd` to compute absolute paths, because
46048# the directories may not exist.
46049case `pwd` in
46050.) ac_abs_builddir="$ac_dir";;
46051*)
46052 case "$ac_dir" in
46053 .) ac_abs_builddir=`pwd`;;
46054 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46055 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46056 esac;;
46057esac
46058case $ac_abs_builddir in
46059.) ac_abs_top_builddir=${ac_top_builddir}.;;
46060*)
46061 case ${ac_top_builddir}. in
46062 .) ac_abs_top_builddir=$ac_abs_builddir;;
46063 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46064 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46065 esac;;
46066esac
46067case $ac_abs_builddir in
46068.) ac_abs_srcdir=$ac_srcdir;;
46069*)
46070 case $ac_srcdir in
46071 .) ac_abs_srcdir=$ac_abs_builddir;;
46072 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46073 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46074 esac;;
46075esac
46076case $ac_abs_builddir in
46077.) ac_abs_top_srcdir=$ac_top_srcdir;;
46078*)
46079 case $ac_top_srcdir in
46080 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46081 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46082 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46083 esac;;
46084esac
a848cd7e
SC
46085
46086
46087 case $INSTALL in
46088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46089 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46090 esac
46091
a848cd7e
SC
46092 # Let's still pretend it is `configure' which instantiates (i.e., don't
46093 # use $as_me), people would be surprised to read:
46094 # /* config.h. Generated by config.status. */
46095 if test x"$ac_file" = x-; then
46096 configure_input=
46097 else
46098 configure_input="$ac_file. "
46099 fi
46100 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46101 sed 's,.*/,,'` by configure."
a848cd7e
SC
46102
46103 # First look for the input files in the build tree, otherwise in the
46104 # src tree.
46105 ac_file_inputs=`IFS=:
46106 for f in $ac_file_in; do
46107 case $f in
46108 -) echo $tmp/stdin ;;
46109 [\\/$]*)
ac1cb8d3
VS
46110 # Absolute (can't be DOS-style, as IFS=:)
46111 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46112echo "$as_me: error: cannot find input file: $f" >&2;}
46113 { (exit 1); exit 1; }; }
ac1cb8d3 46114 echo "$f";;
a848cd7e 46115 *) # Relative
ac1cb8d3
VS
46116 if test -f "$f"; then
46117 # Build tree
46118 echo "$f"
46119 elif test -f "$srcdir/$f"; then
46120 # Source tree
46121 echo "$srcdir/$f"
46122 else
46123 # /dev/null tree
46124 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46125echo "$as_me: error: cannot find input file: $f" >&2;}
46126 { (exit 1); exit 1; }; }
ac1cb8d3 46127 fi;;
a848cd7e
SC
46128 esac
46129 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46130
46131 if test x"$ac_file" != x-; then
46132 { echo "$as_me:$LINENO: creating $ac_file" >&5
46133echo "$as_me: creating $ac_file" >&6;}
46134 rm -f "$ac_file"
46135 fi
a848cd7e
SC
46136_ACEOF
46137cat >>$CONFIG_STATUS <<_ACEOF
46138 sed "$ac_vpsub
46139$extrasub
46140_ACEOF
46141cat >>$CONFIG_STATUS <<\_ACEOF
46142:t
46143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46144s,@configure_input@,$configure_input,;t t
46145s,@srcdir@,$ac_srcdir,;t t
46146s,@abs_srcdir@,$ac_abs_srcdir,;t t
46147s,@top_srcdir@,$ac_top_srcdir,;t t
46148s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46149s,@builddir@,$ac_builddir,;t t
46150s,@abs_builddir@,$ac_abs_builddir,;t t
46151s,@top_builddir@,$ac_top_builddir,;t t
46152s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46153s,@INSTALL@,$ac_INSTALL,;t t
46154" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46155 rm -f $tmp/stdin
46156 if test x"$ac_file" != x-; then
46157 mv $tmp/out $ac_file
46158 else
46159 cat $tmp/out
46160 rm -f $tmp/out
46161 fi
46162
ceec2216
RL
46163 # Run the commands associated with the file.
46164 case $ac_file in
46165 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46166 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46167 esac
a848cd7e
SC
46168done
46169_ACEOF
46170cat >>$CONFIG_STATUS <<\_ACEOF
46171
46172#
46173# CONFIG_HEADER section.
46174#
46175
46176# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46177# NAME is the cpp macro being defined and VALUE is the value it is being given.
46178#
46179# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46180ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46181ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46182ac_dC=' '
46183ac_dD=',;t'
46184# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46185ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46186ac_uB='$,\1#\2define\3'
46187ac_uC=' '
46188ac_uD=',;t'
46189
46190for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46192 case $ac_file in
46193 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46194 cat >$tmp/stdin
46195 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46197 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46199 * ) ac_file_in=$ac_file.in ;;
46200 esac
46201
46202 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46203echo "$as_me: creating $ac_file" >&6;}
46204
46205 # First look for the input files in the build tree, otherwise in the
46206 # src tree.
46207 ac_file_inputs=`IFS=:
46208 for f in $ac_file_in; do
46209 case $f in
46210 -) echo $tmp/stdin ;;
46211 [\\/$]*)
ac1cb8d3
VS
46212 # Absolute (can't be DOS-style, as IFS=:)
46213 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46214echo "$as_me: error: cannot find input file: $f" >&2;}
46215 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46216 # Do quote $f, to prevent DOS paths from being IFS'd.
46217 echo "$f";;
a848cd7e 46218 *) # Relative
ac1cb8d3
VS
46219 if test -f "$f"; then
46220 # Build tree
46221 echo "$f"
46222 elif test -f "$srcdir/$f"; then
46223 # Source tree
46224 echo "$srcdir/$f"
46225 else
46226 # /dev/null tree
46227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46228echo "$as_me: error: cannot find input file: $f" >&2;}
46229 { (exit 1); exit 1; }; }
ac1cb8d3 46230 fi;;
a848cd7e
SC
46231 esac
46232 done` || { (exit 1); exit 1; }
46233 # Remove the trailing spaces.
ac1cb8d3 46234 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46235
46236_ACEOF
46237
46238# Transform confdefs.h into two sed scripts, `conftest.defines' and
46239# `conftest.undefs', that substitutes the proper values into
46240# config.h.in to produce config.h. The first handles `#define'
46241# templates, and the second `#undef' templates.
46242# And first: Protect against being on the right side of a sed subst in
46243# config.status. Protect against being in an unquoted here document
46244# in config.status.
46245rm -f conftest.defines conftest.undefs
46246# Using a here document instead of a string reduces the quoting nightmare.
46247# Putting comments in sed scripts is not portable.
46248#
46249# `end' is used to avoid that the second main sed command (meant for
46250# 0-ary CPP macros) applies to n-ary macro definitions.
46251# See the Autoconf documentation for `clear'.
46252cat >confdef2sed.sed <<\_ACEOF
46253s/[\\&,]/\\&/g
46254s,[\\$`],\\&,g
46255t clear
46256: clear
ac1cb8d3 46257s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46258t end
ac1cb8d3 46259s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46260: end
46261_ACEOF
46262# If some macros were called several times there might be several times
46263# the same #defines, which is useless. Nevertheless, we may not want to
46264# sort them, since we want the *last* AC-DEFINE to be honored.
46265uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46266sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46267rm -f confdef2sed.sed
46268
46269# This sed command replaces #undef with comments. This is necessary, for
46270# example, in the case of _POSIX_SOURCE, which is predefined and required
46271# on some systems where configure will not decide to define it.
46272cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46273s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46274_ACEOF
46275
46276# Break up conftest.defines because some shells have a limit on the size
46277# of here documents, and old seds have small limits too (100 cmds).
46278echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46279echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46280echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46281echo ' :' >>$CONFIG_STATUS
46282rm -f conftest.tail
46283while grep . conftest.defines >/dev/null
46284do
46285 # Write a limited-size here document to $tmp/defines.sed.
46286 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46287 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46288 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46289 # Work around the forget-to-reset-the-flag bug.
46290 echo 't clr' >>$CONFIG_STATUS
46291 echo ': clr' >>$CONFIG_STATUS
46292 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46293 echo 'CEOF
46294 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46295 rm -f $tmp/in
46296 mv $tmp/out $tmp/in
46297' >>$CONFIG_STATUS
46298 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46299 rm -f conftest.defines
46300 mv conftest.tail conftest.defines
46301done
46302rm -f conftest.defines
46303echo ' fi # grep' >>$CONFIG_STATUS
46304echo >>$CONFIG_STATUS
46305
46306# Break up conftest.undefs because some shells have a limit on the size
46307# of here documents, and old seds have small limits too (100 cmds).
46308echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46309rm -f conftest.tail
46310while grep . conftest.undefs >/dev/null
46311do
46312 # Write a limited-size here document to $tmp/undefs.sed.
46313 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46314 # Speed up: don't consider the non `#undef'
ac1cb8d3 46315 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46316 # Work around the forget-to-reset-the-flag bug.
46317 echo 't clr' >>$CONFIG_STATUS
46318 echo ': clr' >>$CONFIG_STATUS
46319 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46320 echo 'CEOF
46321 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46322 rm -f $tmp/in
46323 mv $tmp/out $tmp/in
46324' >>$CONFIG_STATUS
46325 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46326 rm -f conftest.undefs
46327 mv conftest.tail conftest.undefs
46328done
46329rm -f conftest.undefs
46330
46331cat >>$CONFIG_STATUS <<\_ACEOF
46332 # Let's still pretend it is `configure' which instantiates (i.e., don't
46333 # use $as_me), people would be surprised to read:
46334 # /* config.h. Generated by config.status. */
46335 if test x"$ac_file" = x-; then
46336 echo "/* Generated by configure. */" >$tmp/config.h
46337 else
46338 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46339 fi
46340 cat $tmp/in >>$tmp/config.h
46341 rm -f $tmp/in
46342 if test x"$ac_file" != x-; then
46343 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46344 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46345echo "$as_me: $ac_file is unchanged" >&6;}
46346 else
46347 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46348$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46349 X"$ac_file" : 'X\(//\)[^/]' \| \
46350 X"$ac_file" : 'X\(//\)$' \| \
46351 X"$ac_file" : 'X\(/\)' \| \
46352 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46353echo X"$ac_file" |
46354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46356 /^X\(\/\/\)$/{ s//\1/; q; }
46357 /^X\(\/\).*/{ s//\1/; q; }
46358 s/.*/./; q'`
46359 { if $as_mkdir_p; then
46360 mkdir -p "$ac_dir"
46361 else
46362 as_dir="$ac_dir"
46363 as_dirs=
46364 while test ! -d "$as_dir"; do
46365 as_dirs="$as_dir $as_dirs"
46366 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46367$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46368 X"$as_dir" : 'X\(//\)[^/]' \| \
46369 X"$as_dir" : 'X\(//\)$' \| \
46370 X"$as_dir" : 'X\(/\)' \| \
46371 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46372echo X"$as_dir" |
46373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46375 /^X\(\/\/\)$/{ s//\1/; q; }
46376 /^X\(\/\).*/{ s//\1/; q; }
46377 s/.*/./; q'`
46378 done
46379 test ! -n "$as_dirs" || mkdir $as_dirs
46380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46381echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46382 { (exit 1); exit 1; }; }; }
46383
46384 rm -f $ac_file
46385 mv $tmp/config.h $ac_file
46386 fi
46387 else
46388 cat $tmp/config.h
46389 rm -f $tmp/config.h
46390 fi
46391done
46392_ACEOF
46393cat >>$CONFIG_STATUS <<\_ACEOF
46394
46395#
46396# CONFIG_COMMANDS section.
46397#
46398for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46399 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46400 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46401 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46402$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46403 X"$ac_dest" : 'X\(//\)[^/]' \| \
46404 X"$ac_dest" : 'X\(//\)$' \| \
46405 X"$ac_dest" : 'X\(/\)' \| \
46406 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46407echo X"$ac_dest" |
46408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46410 /^X\(\/\/\)$/{ s//\1/; q; }
46411 /^X\(\/\).*/{ s//\1/; q; }
46412 s/.*/./; q'`
ac1cb8d3
VS
46413 { if $as_mkdir_p; then
46414 mkdir -p "$ac_dir"
46415 else
46416 as_dir="$ac_dir"
46417 as_dirs=
46418 while test ! -d "$as_dir"; do
46419 as_dirs="$as_dir $as_dirs"
46420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46422 X"$as_dir" : 'X\(//\)[^/]' \| \
46423 X"$as_dir" : 'X\(//\)$' \| \
46424 X"$as_dir" : 'X\(/\)' \| \
46425 . : '\(.\)' 2>/dev/null ||
46426echo X"$as_dir" |
46427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46429 /^X\(\/\/\)$/{ s//\1/; q; }
46430 /^X\(\/\).*/{ s//\1/; q; }
46431 s/.*/./; q'`
46432 done
46433 test ! -n "$as_dirs" || mkdir $as_dirs
46434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46436 { (exit 1); exit 1; }; }; }
46437
a848cd7e
SC
46438 ac_builddir=.
46439
46440if test "$ac_dir" != .; then
46441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46442 # A "../" for each directory in $ac_dir_suffix.
46443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46444else
46445 ac_dir_suffix= ac_top_builddir=
46446fi
46447
46448case $srcdir in
46449 .) # No --srcdir option. We are building in place.
46450 ac_srcdir=.
46451 if test -z "$ac_top_builddir"; then
46452 ac_top_srcdir=.
46453 else
46454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46455 fi ;;
46456 [\\/]* | ?:[\\/]* ) # Absolute path.
46457 ac_srcdir=$srcdir$ac_dir_suffix;
46458 ac_top_srcdir=$srcdir ;;
46459 *) # Relative path.
46460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46462esac
ac1cb8d3
VS
46463
46464# Do not use `cd foo && pwd` to compute absolute paths, because
46465# the directories may not exist.
46466case `pwd` in
46467.) ac_abs_builddir="$ac_dir";;
46468*)
46469 case "$ac_dir" in
46470 .) ac_abs_builddir=`pwd`;;
46471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46473 esac;;
46474esac
46475case $ac_abs_builddir in
46476.) ac_abs_top_builddir=${ac_top_builddir}.;;
46477*)
46478 case ${ac_top_builddir}. in
46479 .) ac_abs_top_builddir=$ac_abs_builddir;;
46480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46482 esac;;
46483esac
46484case $ac_abs_builddir in
46485.) ac_abs_srcdir=$ac_srcdir;;
46486*)
46487 case $ac_srcdir in
46488 .) ac_abs_srcdir=$ac_abs_builddir;;
46489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46491 esac;;
46492esac
46493case $ac_abs_builddir in
46494.) ac_abs_top_srcdir=$ac_top_srcdir;;
46495*)
46496 case $ac_top_srcdir in
46497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46500 esac;;
46501esac
a848cd7e
SC
46502
46503
46504 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46505echo "$as_me: executing $ac_dest commands" >&6;}
46506 case $ac_dest in
ceec2216
RL
46507 wx-config ) rm -f wx-config
46508 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46509 ;;
a848cd7e
SC
46510 esac
46511done
46512_ACEOF
46513
46514cat >>$CONFIG_STATUS <<\_ACEOF
46515
46516{ (exit 0); exit 0; }
46517_ACEOF
46518chmod +x $CONFIG_STATUS
46519ac_clean_files=$ac_clean_files_save
46520
46521
46522# configure is writing to config.log, and then calls config.status.
46523# config.status does its own redirection, appending to config.log.
46524# Unfortunately, on DOS this fails, as config.log is still kept open
46525# by configure, so config.status won't be able to write to it; its
46526# output is simply discarded. So we exec the FD to /dev/null,
46527# effectively closing config.log, so it can be properly (re)opened and
46528# appended to by config.status. When coming back to configure, we
46529# need to make the FD available again.
46530if test "$no_create" != yes; then
46531 ac_cs_success=:
46532 ac_config_status_args=
46533 test "$silent" = yes &&
46534 ac_config_status_args="$ac_config_status_args --quiet"
46535 exec 5>/dev/null
46536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46537 exec 5>>config.log
46538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46539 # would make configure fail if this is the last instruction.
46540 $ac_cs_success || { (exit 1); exit 1; }
46541fi
46542
46543#
46544# CONFIG_SUBDIRS section.
46545#
46546if test "$no_recursion" != yes; then
46547
46548 # Remove --cache-file and --srcdir arguments so they do not pile up.
46549 ac_sub_configure_args=
46550 ac_prev=
46551 for ac_arg in $ac_configure_args; do
46552 if test -n "$ac_prev"; then
46553 ac_prev=
46554 continue
46555 fi
46556 case $ac_arg in
46557 -cache-file | --cache-file | --cache-fil | --cache-fi \
46558 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46559 ac_prev=cache_file ;;
46560 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46561 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46562 | --c=*)
46563 ;;
46564 --config-cache | -C)
46565 ;;
46566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46567 ac_prev=srcdir ;;
46568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46569 ;;
46570 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46571 ac_prev=prefix ;;
46572 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46573 ;;
46574 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46575 esac
46576 done
46577
46578 # Always prepend --prefix to ensure using the same prefix
46579 # in subdir configurations.
46580 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46581
46582 ac_popdir=`pwd`
46583 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46584
46585 # Do not complain, so a configure script can configure whichever
46586 # parts of a large source tree are present.
46587 test -d $srcdir/$ac_dir || continue
46588
46589 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46590echo "$as_me: configuring in $ac_dir" >&6;}
46591 { if $as_mkdir_p; then
46592 mkdir -p "$ac_dir"
46593 else
46594 as_dir="$ac_dir"
46595 as_dirs=
46596 while test ! -d "$as_dir"; do
46597 as_dirs="$as_dir $as_dirs"
46598 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46600 X"$as_dir" : 'X\(//\)[^/]' \| \
46601 X"$as_dir" : 'X\(//\)$' \| \
46602 X"$as_dir" : 'X\(/\)' \| \
46603 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46604echo X"$as_dir" |
46605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46607 /^X\(\/\/\)$/{ s//\1/; q; }
46608 /^X\(\/\).*/{ s//\1/; q; }
46609 s/.*/./; q'`
46610 done
46611 test ! -n "$as_dirs" || mkdir $as_dirs
46612 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46613echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46614 { (exit 1); exit 1; }; }; }
46615
46616 ac_builddir=.
46617
46618if test "$ac_dir" != .; then
46619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46620 # A "../" for each directory in $ac_dir_suffix.
46621 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46622else
46623 ac_dir_suffix= ac_top_builddir=
46624fi
46625
46626case $srcdir in
46627 .) # No --srcdir option. We are building in place.
46628 ac_srcdir=.
46629 if test -z "$ac_top_builddir"; then
46630 ac_top_srcdir=.
46631 else
46632 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46633 fi ;;
46634 [\\/]* | ?:[\\/]* ) # Absolute path.
46635 ac_srcdir=$srcdir$ac_dir_suffix;
46636 ac_top_srcdir=$srcdir ;;
46637 *) # Relative path.
46638 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46639 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46640esac
ac1cb8d3
VS
46641
46642# Do not use `cd foo && pwd` to compute absolute paths, because
46643# the directories may not exist.
46644case `pwd` in
46645.) ac_abs_builddir="$ac_dir";;
46646*)
46647 case "$ac_dir" in
46648 .) ac_abs_builddir=`pwd`;;
46649 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46650 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46651 esac;;
46652esac
46653case $ac_abs_builddir in
46654.) ac_abs_top_builddir=${ac_top_builddir}.;;
46655*)
46656 case ${ac_top_builddir}. in
46657 .) ac_abs_top_builddir=$ac_abs_builddir;;
46658 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46659 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46660 esac;;
46661esac
46662case $ac_abs_builddir in
46663.) ac_abs_srcdir=$ac_srcdir;;
46664*)
46665 case $ac_srcdir in
46666 .) ac_abs_srcdir=$ac_abs_builddir;;
46667 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46668 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46669 esac;;
46670esac
46671case $ac_abs_builddir in
46672.) ac_abs_top_srcdir=$ac_top_srcdir;;
46673*)
46674 case $ac_top_srcdir in
46675 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46676 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46677 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46678 esac;;
46679esac
a848cd7e
SC
46680
46681
46682 cd $ac_dir
46683
46684 # Check for guested configure; otherwise get Cygnus style configure.
46685 if test -f $ac_srcdir/configure.gnu; then
46686 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46687 elif test -f $ac_srcdir/configure; then
46688 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46689 elif test -f $ac_srcdir/configure.in; then
46690 ac_sub_configure=$ac_configure
46691 else
46692 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46693echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46694 ac_sub_configure=
46695 fi
46696
46697 # The recursion is here.
46698 if test -n "$ac_sub_configure"; then
46699 # Make the cache file name correct relative to the subdirectory.
46700 case $cache_file in
46701 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46702 *) # Relative path.
ac1cb8d3 46703 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46704 esac
46705
46706 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46707echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46708 # The eval makes quoting arguments work.
46709 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46710 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46711 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46712echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46713 { (exit 1); exit 1; }; }
46714 fi
46715
6ebeb4c7 46716 cd "$ac_popdir"
a848cd7e
SC
46717 done
46718fi
46719
46720
46721echo
77ffb593 46722echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46723echo ""
4d4ff94c 46724echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46725echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46726
77ffb593
JS
46727echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46728echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46729echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46730
77ffb593
JS
46731echo " What level of wxWidgets compatibility should be enabled?"
46732echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46733echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46734
77ffb593 46735echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46736echo " jpeg ${wxUSE_LIBJPEG-none}"
46737echo " png ${wxUSE_LIBPNG-none}"
46738echo " regex ${wxUSE_REGEX}"
46739echo " tiff ${wxUSE_LIBTIFF-none}"
46740if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46741echo " xpm ${wxUSE_LIBXPM-none}"
46742fi
46743echo " zlib ${wxUSE_ZLIB}"
46744echo " odbc ${wxUSE_ODBC}"
46745echo " expat ${wxUSE_EXPAT}"
46746echo " libmspack ${wxUSE_LIBMSPACK}"
46747echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46748echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46749
46750echo ""
46751