]> git.saurik.com Git - wxWidgets.git/blame - configure
Move LabelWrapper, TextSizerWrapper classes out of function body to accommodate some...
[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
15194if test "$wxUSE_GUI" = "yes"; then
15195 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15196
15197for ac_header in X11/Xlib.h
15198do
15199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15200if eval "test \"\${$as_ac_Header+set}\" = set"; then
15201 echo "$as_me:$LINENO: checking for $ac_header" >&5
15202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15203if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205fi
15206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208else
15209 # Is the header compilable?
15210echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219#include <$ac_header>
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15223 (eval $ac_compile) 2>conftest.er1
a848cd7e 15224 ac_status=$?
ac1cb8d3
VS
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
a848cd7e
SC
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
6ebeb4c7 15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247ac_header_compiler=no
15248fi
ac1cb8d3 15249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251echo "${ECHO_T}$ac_header_compiler" >&6
15252
15253# Is the header present?
15254echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15256cat >conftest.$ac_ext <<_ACEOF
15257/* confdefs.h. */
15258_ACEOF
15259cat confdefs.h >>conftest.$ac_ext
15260cat >>conftest.$ac_ext <<_ACEOF
15261/* end confdefs.h. */
15262#include <$ac_header>
15263_ACEOF
15264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null; then
15272 if test -s conftest.err; then
15273 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15275 else
15276 ac_cpp_err=
15277 fi
15278else
15279 ac_cpp_err=yes
15280fi
15281if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_header_preproc=no
15288fi
15289rm -f conftest.err conftest.$ac_ext
15290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291echo "${ECHO_T}$ac_header_preproc" >&6
15292
15293# So? What about this header?
ac1cb8d3
VS
15294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
a848cd7e
SC
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
a848cd7e 15301 ;;
ac1cb8d3 15302 no:yes:* )
a848cd7e
SC
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15315 (
15316 cat <<\_ASBOX
ac1cb8d3
VS
15317## ----------------------------------------- ##
15318## Report this to wx-dev@lists.wxwidgets.org ##
15319## ----------------------------------------- ##
a848cd7e
SC
15320_ASBOX
15321 ) |
15322 sed "s/^/$as_me: WARNING: /" >&2
15323 ;;
15324esac
15325echo "$as_me:$LINENO: checking for $ac_header" >&5
15326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15327if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329else
ac1cb8d3 15330 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15331fi
15332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334
15335fi
15336if test `eval echo '${'$as_ac_Header'}'` = yes; then
15337 cat >>confdefs.h <<_ACEOF
15338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339_ACEOF
15340
15341fi
15342
15343done
15344
15345
15346for ac_header in X11/XKBlib.h
15347do
15348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349echo "$as_me:$LINENO: checking for $ac_header" >&5
15350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15351if eval "test \"\${$as_ac_Header+set}\" = set"; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360
15361 #if HAVE_X11_XLIB_H
15362 #include <X11/Xlib.h>
15363 #endif
15364
15365
15366#include <$ac_header>
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15370 (eval $ac_compile) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
6ebeb4c7 15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 eval "$as_ac_Header=yes"
15390else
15391 echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394eval "$as_ac_Header=no"
15395fi
ac1cb8d3 15396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15397fi
15398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15400if test `eval echo '${'$as_ac_Header'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403_ACEOF
15404
15405fi
15406
15407done
15408
15409 fi
15410fi
15411
15412
15413echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15414echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15415if test "${ac_cv_c_const+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417else
15418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424
15425int
15426main ()
15427{
15428/* FIXME: Include the comments suggested by Paul. */
15429#ifndef __cplusplus
15430 /* Ultrix mips cc rejects this. */
15431 typedef int charset[2];
15432 const charset x;
15433 /* SunOS 4.1.1 cc rejects this. */
15434 char const *const *ccp;
15435 char **p;
15436 /* NEC SVR4.0.2 mips cc rejects this. */
15437 struct point {int x, y;};
15438 static struct point const zero = {0,0};
15439 /* AIX XL C 1.02.0.0 rejects this.
15440 It does not let you subtract one const X* pointer from another in
15441 an arm of an if-expression whose if-part is not a constant
15442 expression */
15443 const char *g = "string";
15444 ccp = &g + (g ? g-g : 0);
15445 /* HPUX 7.0 cc rejects these. */
15446 ++ccp;
15447 p = (char**) ccp;
15448 ccp = (char const *const *) p;
15449 { /* SCO 3.2v4 cc rejects this. */
15450 char *t;
15451 char const *s = 0 ? (char *) 0 : (char const *) 0;
15452
15453 *t++ = 0;
15454 }
15455 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15456 int x[] = {25, 17};
15457 const int *foo = &x[0];
15458 ++foo;
15459 }
15460 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15461 typedef const int *iptr;
15462 iptr p = 0;
15463 ++p;
15464 }
15465 { /* AIX XL C 1.02.0.0 rejects this saying
15466 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15467 struct s { int j; const int *ap[3]; };
15468 struct s *b; b->j = 5;
15469 }
15470 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15471 const int foo = 10;
15472 }
15473#endif
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15481 (eval $ac_compile) 2>conftest.er1
a848cd7e 15482 ac_status=$?
ac1cb8d3
VS
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
a848cd7e
SC
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
6ebeb4c7 15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_c_const=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_cv_c_const=no
15506fi
ac1cb8d3 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15508fi
15509echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15510echo "${ECHO_T}$ac_cv_c_const" >&6
15511if test $ac_cv_c_const = no; then
15512
15513cat >>confdefs.h <<\_ACEOF
15514#define const
15515_ACEOF
15516
15517fi
15518
15519echo "$as_me:$LINENO: checking for inline" >&5
15520echo $ECHO_N "checking for inline... $ECHO_C" >&6
15521if test "${ac_cv_c_inline+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523else
15524 ac_cv_c_inline=no
15525for ac_kw in inline __inline__ __inline; do
15526 cat >conftest.$ac_ext <<_ACEOF
15527/* confdefs.h. */
15528_ACEOF
15529cat confdefs.h >>conftest.$ac_ext
15530cat >>conftest.$ac_ext <<_ACEOF
15531/* end confdefs.h. */
15532#ifndef __cplusplus
15533typedef int foo_t;
15534static $ac_kw foo_t static_foo () {return 0; }
15535$ac_kw foo_t foo () {return 0; }
15536#endif
15537
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15541 (eval $ac_compile) 2>conftest.er1
a848cd7e 15542 ac_status=$?
ac1cb8d3
VS
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
a848cd7e
SC
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
6ebeb4c7 15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_c_inline=$ac_kw; break
15561else
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15567done
15568
15569fi
15570echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15571echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15572
15573
a848cd7e
SC
15574case $ac_cv_c_inline in
15575 inline | yes) ;;
ac1cb8d3
VS
15576 *)
15577 case $ac_cv_c_inline in
15578 no) ac_val=;;
15579 *) ac_val=$ac_cv_c_inline;;
15580 esac
15581 cat >>confdefs.h <<_ACEOF
15582#ifndef __cplusplus
15583#define inline $ac_val
15584#endif
de59c161 15585_ACEOF
ac1cb8d3 15586 ;;
a848cd7e
SC
15587esac
15588
15589
15590echo "$as_me:$LINENO: checking for char" >&5
15591echo $ECHO_N "checking for char... $ECHO_C" >&6
15592if test "${ac_cv_type_char+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
15601$ac_includes_default
15602int
15603main ()
15604{
15605if ((char *) 0)
15606 return 0;
15607if (sizeof (char))
15608 return 0;
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15615 (eval $ac_compile) 2>conftest.er1
a848cd7e 15616 ac_status=$?
ac1cb8d3
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
a848cd7e
SC
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
6ebeb4c7 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_type_char=yes
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639ac_cv_type_char=no
15640fi
ac1cb8d3 15641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15642fi
15643echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15644echo "${ECHO_T}$ac_cv_type_char" >&6
15645
15646echo "$as_me:$LINENO: checking size of char" >&5
15647echo $ECHO_N "checking size of char... $ECHO_C" >&6
15648if test "${ac_cv_sizeof_char+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 if test "$ac_cv_type_char" = yes; then
15652 # The cast to unsigned long works around a bug in the HP C Compiler
15653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15655 # This bug is HP SR number 8606223364.
15656 if test "$cross_compiling" = yes; then
15657 # Depending upon the size, compute the lo and hi bounds.
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15677 (eval $ac_compile) 2>conftest.er1
a848cd7e 15678 ac_status=$?
ac1cb8d3
VS
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
a848cd7e
SC
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
6ebeb4c7 15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_lo=0 ac_mid=0
15697 while :; do
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
15708static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15717 (eval $ac_compile) 2>conftest.er1
a848cd7e 15718 ac_status=$?
ac1cb8d3
VS
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
a848cd7e
SC
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
6ebeb4c7 15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid; break
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15742 if test $ac_lo -le $ac_mid; then
15743 ac_lo= ac_hi=
15744 break
15745 fi
15746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15747fi
ac1cb8d3 15748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15749 done
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
6ebeb4c7 15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_hi=-1 ac_mid=-1
15793 while :; do
15794 cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800$ac_includes_default
15801int
15802main ()
15803{
15804static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15805test_array [0] = 0
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest.$ac_objext
15812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15813 (eval $ac_compile) 2>conftest.er1
a848cd7e 15814 ac_status=$?
ac1cb8d3
VS
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
a848cd7e
SC
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
6ebeb4c7 15820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_lo=$ac_mid; break
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15838 if test $ac_mid -le $ac_hi; then
15839 ac_lo= ac_hi=
15840 break
15841 fi
15842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15843fi
ac1cb8d3 15844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15845 done
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo= ac_hi=
15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15853fi
ac1cb8d3 15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15855# Binary search between lo and hi bounds.
15856while test "x$ac_lo" != "x$ac_hi"; do
15857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15858 cat >conftest.$ac_ext <<_ACEOF
15859/* confdefs.h. */
15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
15864$ac_includes_default
15865int
15866main ()
15867{
15868static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15869test_array [0] = 0
15870
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext
15876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15877 (eval $ac_compile) 2>conftest.er1
a848cd7e 15878 ac_status=$?
ac1cb8d3
VS
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
a848cd7e
SC
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
6ebeb4c7 15884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_hi=$ac_mid
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901ac_lo=`expr '(' $ac_mid ')' + 1`
15902fi
ac1cb8d3 15903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15904done
15905case $ac_lo in
15906?*) ac_cv_sizeof_char=$ac_lo;;
15907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15908See \`config.log' for more details." >&5
15909echo "$as_me: error: cannot compute sizeof (char), 77
15910See \`config.log' for more details." >&2;}
15911 { (exit 1); exit 1; }; } ;;
15912esac
15913else
15914 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15917 { (exit 1); exit 1; }; }
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926long longval () { return (long) (sizeof (char)); }
15927unsigned long ulongval () { return (long) (sizeof (char)); }
15928#include <stdio.h>
15929#include <stdlib.h>
15930int
15931main ()
15932{
15933
15934 FILE *f = fopen ("conftest.val", "w");
15935 if (! f)
15936 exit (1);
15937 if (((long) (sizeof (char))) < 0)
15938 {
15939 long i = longval ();
15940 if (i != ((long) (sizeof (char))))
15941 exit (1);
15942 fprintf (f, "%ld\n", i);
15943 }
15944 else
15945 {
15946 unsigned long i = ulongval ();
15947 if (i != ((long) (sizeof (char))))
15948 exit (1);
15949 fprintf (f, "%lu\n", i);
15950 }
15951 exit (ferror (f) || fclose (f) != 0);
15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest$ac_exeext
15958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_sizeof_char=`cat conftest.val`
15969else
15970 echo "$as_me: program exited with status $ac_status" >&5
15971echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974( exit $ac_status )
15975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15976See \`config.log' for more details." >&5
15977echo "$as_me: error: cannot compute sizeof (char), 77
15978See \`config.log' for more details." >&2;}
15979 { (exit 1); exit 1; }; }
15980fi
ac1cb8d3 15981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15982fi
15983fi
15984rm -f conftest.val
15985else
15986 ac_cv_sizeof_char=0
15987fi
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15990echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15991cat >>confdefs.h <<_ACEOF
15992#define SIZEOF_CHAR $ac_cv_sizeof_char
15993_ACEOF
15994
15995
15996echo "$as_me:$LINENO: checking for short" >&5
15997echo $ECHO_N "checking for short... $ECHO_C" >&6
15998if test "${ac_cv_type_short+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001 cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008int
16009main ()
16010{
16011if ((short *) 0)
16012 return 0;
16013if (sizeof (short))
16014 return 0;
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16021 (eval $ac_compile) 2>conftest.er1
a848cd7e 16022 ac_status=$?
ac1cb8d3
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
a848cd7e
SC
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
6ebeb4c7 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_cv_type_short=yes
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_cv_type_short=no
16046fi
ac1cb8d3 16047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16048fi
16049echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16050echo "${ECHO_T}$ac_cv_type_short" >&6
16051
16052echo "$as_me:$LINENO: checking size of short" >&5
16053echo $ECHO_N "checking size of short... $ECHO_C" >&6
16054if test "${ac_cv_sizeof_short+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 if test "$ac_cv_type_short" = yes; then
16058 # The cast to unsigned long works around a bug in the HP C Compiler
16059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16061 # This bug is HP SR number 8606223364.
16062 if test "$cross_compiling" = yes; then
16063 # Depending upon the size, compute the lo and hi bounds.
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16075test_array [0] = 0
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16083 (eval $ac_compile) 2>conftest.er1
a848cd7e 16084 ac_status=$?
ac1cb8d3
VS
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
a848cd7e
SC
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
6ebeb4c7 16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_lo=0 ac_mid=0
16103 while :; do
16104 cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110$ac_includes_default
16111int
16112main ()
16113{
16114static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16115test_array [0] = 0
16116
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext
16122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16123 (eval $ac_compile) 2>conftest.er1
a848cd7e 16124 ac_status=$?
ac1cb8d3
VS
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
a848cd7e
SC
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
6ebeb4c7 16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=$ac_mid; break
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16148 if test $ac_lo -le $ac_mid; then
16149 ac_lo= ac_hi=
16150 break
16151 fi
16152 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16153fi
ac1cb8d3 16154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16155 done
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16171test_array [0] = 0
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16179 (eval $ac_compile) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
6ebeb4c7 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_hi=-1 ac_mid=-1
16199 while :; do
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206$ac_includes_default
16207int
16208main ()
16209{
16210static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16211test_array [0] = 0
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16219 (eval $ac_compile) 2>conftest.er1
a848cd7e 16220 ac_status=$?
ac1cb8d3
VS
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
a848cd7e
SC
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
6ebeb4c7 16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_lo=$ac_mid; break
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16244 if test $ac_mid -le $ac_hi; then
16245 ac_lo= ac_hi=
16246 break
16247 fi
16248 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16249fi
ac1cb8d3 16250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16251 done
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256ac_lo= ac_hi=
16257fi
ac1cb8d3 16258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16259fi
ac1cb8d3 16260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16261# Binary search between lo and hi bounds.
16262while test "x$ac_lo" != "x$ac_hi"; do
16263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16264 cat >conftest.$ac_ext <<_ACEOF
16265/* confdefs.h. */
16266_ACEOF
16267cat confdefs.h >>conftest.$ac_ext
16268cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */
16270$ac_includes_default
16271int
16272main ()
16273{
16274static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16275test_array [0] = 0
16276
16277 ;
16278 return 0;
16279}
16280_ACEOF
16281rm -f conftest.$ac_objext
16282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16283 (eval $ac_compile) 2>conftest.er1
a848cd7e 16284 ac_status=$?
ac1cb8d3
VS
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
a848cd7e
SC
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
6ebeb4c7 16290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_hi=$ac_mid
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307ac_lo=`expr '(' $ac_mid ')' + 1`
16308fi
ac1cb8d3 16309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16310done
16311case $ac_lo in
16312?*) ac_cv_sizeof_short=$ac_lo;;
16313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16314See \`config.log' for more details." >&5
16315echo "$as_me: error: cannot compute sizeof (short), 77
16316See \`config.log' for more details." >&2;}
16317 { (exit 1); exit 1; }; } ;;
16318esac
16319else
16320 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16321 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16322echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16323 { (exit 1); exit 1; }; }
16324else
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332long longval () { return (long) (sizeof (short)); }
16333unsigned long ulongval () { return (long) (sizeof (short)); }
16334#include <stdio.h>
16335#include <stdlib.h>
16336int
16337main ()
16338{
16339
16340 FILE *f = fopen ("conftest.val", "w");
16341 if (! f)
16342 exit (1);
16343 if (((long) (sizeof (short))) < 0)
16344 {
16345 long i = longval ();
16346 if (i != ((long) (sizeof (short))))
16347 exit (1);
16348 fprintf (f, "%ld\n", i);
16349 }
16350 else
16351 {
16352 unsigned long i = ulongval ();
16353 if (i != ((long) (sizeof (short))))
16354 exit (1);
16355 fprintf (f, "%lu\n", i);
16356 }
16357 exit (ferror (f) || fclose (f) != 0);
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest$ac_exeext
16364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16365 (eval $ac_link) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_sizeof_short=`cat conftest.val`
16375else
16376 echo "$as_me: program exited with status $ac_status" >&5
16377echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380( exit $ac_status )
16381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16382See \`config.log' for more details." >&5
16383echo "$as_me: error: cannot compute sizeof (short), 77
16384See \`config.log' for more details." >&2;}
16385 { (exit 1); exit 1; }; }
16386fi
ac1cb8d3 16387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16388fi
16389fi
16390rm -f conftest.val
16391else
16392 ac_cv_sizeof_short=0
16393fi
16394fi
16395echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16396echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_SHORT $ac_cv_sizeof_short
16399_ACEOF
16400
16401
16402echo "$as_me:$LINENO: checking for void *" >&5
16403echo $ECHO_N "checking for void *... $ECHO_C" >&6
16404if test "${ac_cv_type_void_p+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417if ((void * *) 0)
16418 return 0;
16419if (sizeof (void *))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
6ebeb4c7 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_type_void_p=yes
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_cv_type_void_p=no
16452fi
ac1cb8d3 16453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16456echo "${ECHO_T}$ac_cv_type_void_p" >&6
16457
16458echo "$as_me:$LINENO: checking size of void *" >&5
16459echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16460if test "${ac_cv_sizeof_void_p+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 if test "$ac_cv_type_void_p" = yes; then
16464 # The cast to unsigned long works around a bug in the HP C Compiler
16465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16467 # This bug is HP SR number 8606223364.
16468 if test "$cross_compiling" = yes; then
16469 # Depending upon the size, compute the lo and hi bounds.
16470cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16481test_array [0] = 0
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext
16488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16489 (eval $ac_compile) 2>conftest.er1
a848cd7e 16490 ac_status=$?
ac1cb8d3
VS
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
a848cd7e
SC
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
6ebeb4c7 16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_lo=0 ac_mid=0
16509 while :; do
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517int
16518main ()
16519{
16520static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16521test_array [0] = 0
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16529 (eval $ac_compile) 2>conftest.er1
a848cd7e 16530 ac_status=$?
ac1cb8d3
VS
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
a848cd7e
SC
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
6ebeb4c7 16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid; break
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16554 if test $ac_lo -le $ac_mid; then
16555 ac_lo= ac_hi=
16556 break
16557 fi
16558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16559fi
ac1cb8d3 16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16561 done
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
6ebeb4c7 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_hi=-1 ac_mid=-1
16605 while :; do
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16617test_array [0] = 0
16618
16619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext
16624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16625 (eval $ac_compile) 2>conftest.er1
a848cd7e 16626 ac_status=$?
ac1cb8d3
VS
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
a848cd7e
SC
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
6ebeb4c7 16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=$ac_mid; break
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16650 if test $ac_mid -le $ac_hi; then
16651 ac_lo= ac_hi=
16652 break
16653 fi
16654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16655fi
ac1cb8d3 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16657 done
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_lo= ac_hi=
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16665fi
ac1cb8d3 16666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16667# Binary search between lo and hi bounds.
16668while test "x$ac_lo" != "x$ac_hi"; do
16669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16670 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16689 (eval $ac_compile) 2>conftest.er1
a848cd7e 16690 ac_status=$?
ac1cb8d3
VS
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
a848cd7e
SC
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
6ebeb4c7 16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_hi=$ac_mid
16709else
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713ac_lo=`expr '(' $ac_mid ')' + 1`
16714fi
ac1cb8d3 16715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16716done
16717case $ac_lo in
16718?*) ac_cv_sizeof_void_p=$ac_lo;;
16719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16720See \`config.log' for more details." >&5
16721echo "$as_me: error: cannot compute sizeof (void *), 77
16722See \`config.log' for more details." >&2;}
16723 { (exit 1); exit 1; }; } ;;
16724esac
16725else
16726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16729 { (exit 1); exit 1; }; }
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738long longval () { return (long) (sizeof (void *)); }
16739unsigned long ulongval () { return (long) (sizeof (void *)); }
16740#include <stdio.h>
16741#include <stdlib.h>
16742int
16743main ()
16744{
16745
16746 FILE *f = fopen ("conftest.val", "w");
16747 if (! f)
16748 exit (1);
16749 if (((long) (sizeof (void *))) < 0)
16750 {
16751 long i = longval ();
16752 if (i != ((long) (sizeof (void *))))
16753 exit (1);
16754 fprintf (f, "%ld\n", i);
16755 }
16756 else
16757 {
16758 unsigned long i = ulongval ();
16759 if (i != ((long) (sizeof (void *))))
16760 exit (1);
16761 fprintf (f, "%lu\n", i);
16762 }
16763 exit (ferror (f) || fclose (f) != 0);
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_sizeof_void_p=`cat conftest.val`
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16788See \`config.log' for more details." >&5
16789echo "$as_me: error: cannot compute sizeof (void *), 77
16790See \`config.log' for more details." >&2;}
16791 { (exit 1); exit 1; }; }
16792fi
ac1cb8d3 16793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794fi
16795fi
16796rm -f conftest.val
16797else
16798 ac_cv_sizeof_void_p=0
16799fi
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16802echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16803cat >>confdefs.h <<_ACEOF
16804#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16805_ACEOF
16806
16807
16808echo "$as_me:$LINENO: checking for int" >&5
16809echo $ECHO_N "checking for int... $ECHO_C" >&6
16810if test "${ac_cv_type_int+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819$ac_includes_default
16820int
16821main ()
16822{
16823if ((int *) 0)
16824 return 0;
16825if (sizeof (int))
16826 return 0;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
6ebeb4c7 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_int=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_type_int=no
16858fi
ac1cb8d3 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16860fi
16861echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16862echo "${ECHO_T}$ac_cv_type_int" >&6
16863
16864echo "$as_me:$LINENO: checking size of int" >&5
16865echo $ECHO_N "checking size of int... $ECHO_C" >&6
16866if test "${ac_cv_sizeof_int+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 if test "$ac_cv_type_int" = yes; then
16870 # The cast to unsigned long works around a bug in the HP C Compiler
16871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16873 # This bug is HP SR number 8606223364.
16874 if test "$cross_compiling" = yes; then
16875 # Depending upon the size, compute the lo and hi bounds.
16876cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882$ac_includes_default
16883int
16884main ()
16885{
16886static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16887test_array [0] = 0
16888
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16895 (eval $ac_compile) 2>conftest.er1
a848cd7e 16896 ac_status=$?
ac1cb8d3
VS
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
a848cd7e
SC
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
6ebeb4c7 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_lo=0 ac_mid=0
16915 while :; do
16916 cat >conftest.$ac_ext <<_ACEOF
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
16922$ac_includes_default
16923int
16924main ()
16925{
16926static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16927test_array [0] = 0
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16935 (eval $ac_compile) 2>conftest.er1
a848cd7e 16936 ac_status=$?
ac1cb8d3
VS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
a848cd7e
SC
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
6ebeb4c7 16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_hi=$ac_mid; break
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16960 if test $ac_lo -le $ac_mid; then
16961 ac_lo= ac_hi=
16962 break
16963 fi
16964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16965fi
ac1cb8d3 16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16967 done
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
6ebeb4c7 16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_hi=-1 ac_mid=-1
17011 while :; do
17012 cat >conftest.$ac_ext <<_ACEOF
17013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
17018$ac_includes_default
17019int
17020main ()
17021{
17022static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17023test_array [0] = 0
17024
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17031 (eval $ac_compile) 2>conftest.er1
a848cd7e 17032 ac_status=$?
ac1cb8d3
VS
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
a848cd7e
SC
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
6ebeb4c7 17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_lo=$ac_mid; break
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17056 if test $ac_mid -le $ac_hi; then
17057 ac_lo= ac_hi=
17058 break
17059 fi
17060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17061fi
ac1cb8d3 17062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17063 done
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_lo= ac_hi=
17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17071fi
ac1cb8d3 17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17073# Binary search between lo and hi bounds.
17074while test "x$ac_lo" != "x$ac_hi"; do
17075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
17082$ac_includes_default
17083int
17084main ()
17085{
17086static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17087test_array [0] = 0
17088
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext
17094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17095 (eval $ac_compile) 2>conftest.er1
a848cd7e 17096 ac_status=$?
ac1cb8d3
VS
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
a848cd7e
SC
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
6ebeb4c7 17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_hi=$ac_mid
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_lo=`expr '(' $ac_mid ')' + 1`
17120fi
ac1cb8d3 17121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17122done
17123case $ac_lo in
17124?*) ac_cv_sizeof_int=$ac_lo;;
17125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (int), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; } ;;
17130esac
17131else
17132 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17135 { (exit 1); exit 1; }; }
17136else
17137 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143$ac_includes_default
17144long longval () { return (long) (sizeof (int)); }
17145unsigned long ulongval () { return (long) (sizeof (int)); }
17146#include <stdio.h>
17147#include <stdlib.h>
17148int
17149main ()
17150{
17151
17152 FILE *f = fopen ("conftest.val", "w");
17153 if (! f)
17154 exit (1);
17155 if (((long) (sizeof (int))) < 0)
17156 {
17157 long i = longval ();
17158 if (i != ((long) (sizeof (int))))
17159 exit (1);
17160 fprintf (f, "%ld\n", i);
17161 }
17162 else
17163 {
17164 unsigned long i = ulongval ();
17165 if (i != ((long) (sizeof (int))))
17166 exit (1);
17167 fprintf (f, "%lu\n", i);
17168 }
17169 exit (ferror (f) || fclose (f) != 0);
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_sizeof_int=`cat conftest.val`
17187else
17188 echo "$as_me: program exited with status $ac_status" >&5
17189echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192( exit $ac_status )
17193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17194See \`config.log' for more details." >&5
17195echo "$as_me: error: cannot compute sizeof (int), 77
17196See \`config.log' for more details." >&2;}
17197 { (exit 1); exit 1; }; }
17198fi
ac1cb8d3 17199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17200fi
17201fi
17202rm -f conftest.val
17203else
17204 ac_cv_sizeof_int=0
17205fi
17206fi
17207echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17208echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17209cat >>confdefs.h <<_ACEOF
17210#define SIZEOF_INT $ac_cv_sizeof_int
17211_ACEOF
17212
17213
17214echo "$as_me:$LINENO: checking for long" >&5
17215echo $ECHO_N "checking for long... $ECHO_C" >&6
17216if test "${ac_cv_type_long+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229if ((long *) 0)
17230 return 0;
17231if (sizeof (long))
17232 return 0;
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
6ebeb4c7 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_long=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_cv_type_long=no
17264fi
ac1cb8d3 17265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17268echo "${ECHO_T}$ac_cv_type_long" >&6
17269
17270echo "$as_me:$LINENO: checking size of long" >&5
17271echo $ECHO_N "checking size of long... $ECHO_C" >&6
17272if test "${ac_cv_sizeof_long+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 if test "$ac_cv_type_long" = yes; then
17276 # The cast to unsigned long works around a bug in the HP C Compiler
17277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17279 # This bug is HP SR number 8606223364.
17280 if test "$cross_compiling" = yes; then
17281 # Depending upon the size, compute the lo and hi bounds.
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288$ac_includes_default
17289int
17290main ()
17291{
17292static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17293test_array [0] = 0
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17301 (eval $ac_compile) 2>conftest.er1
a848cd7e 17302 ac_status=$?
ac1cb8d3
VS
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
a848cd7e
SC
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
6ebeb4c7 17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_lo=0 ac_mid=0
17321 while :; do
17322 cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329int
17330main ()
17331{
17332static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17333test_array [0] = 0
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
6ebeb4c7 17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_hi=$ac_mid; break
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17366 if test $ac_lo -le $ac_mid; then
17367 ac_lo= ac_hi=
17368 break
17369 fi
17370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17371fi
ac1cb8d3 17372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17373 done
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384$ac_includes_default
17385int
17386main ()
17387{
17388static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17389test_array [0] = 0
17390
17391 ;
17392 return 0;
17393}
17394_ACEOF
17395rm -f conftest.$ac_objext
17396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17397 (eval $ac_compile) 2>conftest.er1
a848cd7e 17398 ac_status=$?
ac1cb8d3
VS
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
a848cd7e
SC
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
6ebeb4c7 17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_hi=-1 ac_mid=-1
17417 while :; do
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
6ebeb4c7 17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_lo=$ac_mid; break
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17462 if test $ac_mid -le $ac_hi; then
17463 ac_lo= ac_hi=
17464 break
17465 fi
17466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469 done
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_lo= ac_hi=
17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17477fi
ac1cb8d3 17478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17479# Binary search between lo and hi bounds.
17480while test "x$ac_lo" != "x$ac_hi"; do
17481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488$ac_includes_default
17489int
17490main ()
17491{
17492static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17493test_array [0] = 0
17494
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
6ebeb4c7 17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_hi=$ac_mid
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_lo=`expr '(' $ac_mid ')' + 1`
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17528done
17529case $ac_lo in
17530?*) ac_cv_sizeof_long=$ac_lo;;
17531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17532See \`config.log' for more details." >&5
17533echo "$as_me: error: cannot compute sizeof (long), 77
17534See \`config.log' for more details." >&2;}
17535 { (exit 1); exit 1; }; } ;;
17536esac
17537else
17538 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17541 { (exit 1); exit 1; }; }
17542else
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550long longval () { return (long) (sizeof (long)); }
17551unsigned long ulongval () { return (long) (sizeof (long)); }
17552#include <stdio.h>
17553#include <stdlib.h>
17554int
17555main ()
17556{
17557
17558 FILE *f = fopen ("conftest.val", "w");
17559 if (! f)
17560 exit (1);
17561 if (((long) (sizeof (long))) < 0)
17562 {
17563 long i = longval ();
17564 if (i != ((long) (sizeof (long))))
17565 exit (1);
17566 fprintf (f, "%ld\n", i);
17567 }
17568 else
17569 {
17570 unsigned long i = ulongval ();
17571 if (i != ((long) (sizeof (long))))
17572 exit (1);
17573 fprintf (f, "%lu\n", i);
17574 }
17575 exit (ferror (f) || fclose (f) != 0);
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_sizeof_long=`cat conftest.val`
17593else
17594 echo "$as_me: program exited with status $ac_status" >&5
17595echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598( exit $ac_status )
17599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17600See \`config.log' for more details." >&5
17601echo "$as_me: error: cannot compute sizeof (long), 77
17602See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17604fi
ac1cb8d3 17605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17606fi
17607fi
17608rm -f conftest.val
17609else
17610 ac_cv_sizeof_long=0
17611fi
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17614echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17615cat >>confdefs.h <<_ACEOF
17616#define SIZEOF_LONG $ac_cv_sizeof_long
17617_ACEOF
17618
17619
17620echo "$as_me:$LINENO: checking for size_t" >&5
17621echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17622if test "${ac_cv_type_size_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635if ((size_t *) 0)
17636 return 0;
17637if (sizeof (size_t))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
6ebeb4c7 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_type_size_t=yes
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_cv_type_size_t=no
17670fi
ac1cb8d3 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17674echo "${ECHO_T}$ac_cv_type_size_t" >&6
17675
17676echo "$as_me:$LINENO: checking size of size_t" >&5
17677echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17678if test "${ac_cv_sizeof_size_t+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 if test "$ac_cv_type_size_t" = yes; then
17682 # The cast to unsigned long works around a bug in the HP C Compiler
17683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17685 # This bug is HP SR number 8606223364.
17686 if test "$cross_compiling" = yes; then
17687 # Depending upon the size, compute the lo and hi bounds.
17688cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694$ac_includes_default
17695int
17696main ()
17697{
17698static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17699test_array [0] = 0
17700
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext
17706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17707 (eval $ac_compile) 2>conftest.er1
a848cd7e 17708 ac_status=$?
ac1cb8d3
VS
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
a848cd7e
SC
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
6ebeb4c7 17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_lo=0 ac_mid=0
17727 while :; do
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
6ebeb4c7 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_hi=$ac_mid; break
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17772 if test $ac_lo -le $ac_mid; then
17773 ac_lo= ac_hi=
17774 break
17775 fi
17776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17777fi
ac1cb8d3 17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17779 done
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
6ebeb4c7 17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_hi=-1 ac_mid=-1
17823 while :; do
17824 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
17831int
17832main ()
17833{
17834static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17835test_array [0] = 0
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17843 (eval $ac_compile) 2>conftest.er1
a848cd7e 17844 ac_status=$?
ac1cb8d3
VS
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
a848cd7e
SC
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
6ebeb4c7 17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_lo=$ac_mid; break
17863else
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17868 if test $ac_mid -le $ac_hi; then
17869 ac_lo= ac_hi=
17870 break
17871 fi
17872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17873fi
ac1cb8d3 17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17875 done
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo= ac_hi=
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17883fi
ac1cb8d3 17884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17885# Binary search between lo and hi bounds.
17886while test "x$ac_lo" != "x$ac_hi"; do
17887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894$ac_includes_default
17895int
17896main ()
17897{
17898static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17899test_array [0] = 0
17900
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext
17906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17907 (eval $ac_compile) 2>conftest.er1
a848cd7e 17908 ac_status=$?
ac1cb8d3
VS
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
a848cd7e
SC
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
6ebeb4c7 17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_hi=$ac_mid
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931ac_lo=`expr '(' $ac_mid ')' + 1`
17932fi
ac1cb8d3 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17934done
17935case $ac_lo in
17936?*) ac_cv_sizeof_size_t=$ac_lo;;
17937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (size_t), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; } ;;
17942esac
17943else
17944 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17947 { (exit 1); exit 1; }; }
17948else
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956long longval () { return (long) (sizeof (size_t)); }
17957unsigned long ulongval () { return (long) (sizeof (size_t)); }
17958#include <stdio.h>
17959#include <stdlib.h>
17960int
17961main ()
17962{
17963
17964 FILE *f = fopen ("conftest.val", "w");
17965 if (! f)
17966 exit (1);
17967 if (((long) (sizeof (size_t))) < 0)
17968 {
17969 long i = longval ();
17970 if (i != ((long) (sizeof (size_t))))
17971 exit (1);
17972 fprintf (f, "%ld\n", i);
17973 }
17974 else
17975 {
17976 unsigned long i = ulongval ();
17977 if (i != ((long) (sizeof (size_t))))
17978 exit (1);
17979 fprintf (f, "%lu\n", i);
17980 }
17981 exit (ferror (f) || fclose (f) != 0);
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest$ac_exeext
17988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_sizeof_size_t=`cat conftest.val`
17999else
18000 echo "$as_me: program exited with status $ac_status" >&5
18001echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004( exit $ac_status )
18005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: cannot compute sizeof (size_t), 77
18008See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
18010fi
ac1cb8d3 18011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012fi
18013fi
18014rm -f conftest.val
18015else
18016 ac_cv_sizeof_size_t=0
18017fi
18018fi
18019echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18020echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18021cat >>confdefs.h <<_ACEOF
18022#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18023_ACEOF
18024
18025
18026
18027case "${host}" in
18028 arm-*-linux* )
18029 echo "$as_me:$LINENO: checking for long long" >&5
18030echo $ECHO_N "checking for long long... $ECHO_C" >&6
18031if test "${ac_cv_type_long_long+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034 cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
18040$ac_includes_default
18041int
18042main ()
18043{
18044if ((long long *) 0)
18045 return 0;
18046if (sizeof (long long))
18047 return 0;
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
6ebeb4c7 18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_type_long_long=yes
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_cv_type_long_long=no
18079fi
ac1cb8d3 18080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18081fi
18082echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18083echo "${ECHO_T}$ac_cv_type_long_long" >&6
18084
18085echo "$as_me:$LINENO: checking size of long long" >&5
18086echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18087if test "${ac_cv_sizeof_long_long+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 if test "$ac_cv_type_long_long" = yes; then
18091 # The cast to unsigned long works around a bug in the HP C Compiler
18092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18094 # This bug is HP SR number 8606223364.
18095 if test "$cross_compiling" = yes; then
18096 # Depending upon the size, compute the lo and hi bounds.
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
18103$ac_includes_default
18104int
18105main ()
18106{
18107static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18108test_array [0] = 0
18109
18110 ;
18111 return 0;
18112}
18113_ACEOF
18114rm -f conftest.$ac_objext
18115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18116 (eval $ac_compile) 2>conftest.er1
a848cd7e 18117 ac_status=$?
ac1cb8d3
VS
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
a848cd7e
SC
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
6ebeb4c7 18123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_lo=0 ac_mid=0
18136 while :; do
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143$ac_includes_default
18144int
18145main ()
18146{
18147static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18148test_array [0] = 0
18149
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18156 (eval $ac_compile) 2>conftest.er1
a848cd7e 18157 ac_status=$?
ac1cb8d3
VS
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
a848cd7e
SC
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
6ebeb4c7 18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_hi=$ac_mid; break
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18181 if test $ac_lo -le $ac_mid; then
18182 ac_lo= ac_hi=
18183 break
18184 fi
18185 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18186fi
ac1cb8d3 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18188 done
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
6ebeb4c7 18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_hi=-1 ac_mid=-1
18232 while :; do
18233 cat >conftest.$ac_ext <<_ACEOF
18234/* confdefs.h. */
18235_ACEOF
18236cat confdefs.h >>conftest.$ac_ext
18237cat >>conftest.$ac_ext <<_ACEOF
18238/* end confdefs.h. */
18239$ac_includes_default
18240int
18241main ()
18242{
18243static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18244test_array [0] = 0
18245
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext
18251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18252 (eval $ac_compile) 2>conftest.er1
a848cd7e 18253 ac_status=$?
ac1cb8d3
VS
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
a848cd7e
SC
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
6ebeb4c7 18259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_lo=$ac_mid; break
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18277 if test $ac_mid -le $ac_hi; then
18278 ac_lo= ac_hi=
18279 break
18280 fi
18281 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18282fi
ac1cb8d3 18283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18284 done
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289ac_lo= ac_hi=
18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18292fi
ac1cb8d3 18293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18294# Binary search between lo and hi bounds.
18295while test "x$ac_lo" != "x$ac_hi"; do
18296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18297 cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303$ac_includes_default
18304int
18305main ()
18306{
18307static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18308test_array [0] = 0
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18316 (eval $ac_compile) 2>conftest.er1
a848cd7e 18317 ac_status=$?
ac1cb8d3
VS
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
a848cd7e
SC
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
6ebeb4c7 18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_hi=$ac_mid
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340ac_lo=`expr '(' $ac_mid ')' + 1`
18341fi
ac1cb8d3 18342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18343done
18344case $ac_lo in
18345?*) ac_cv_sizeof_long_long=$ac_lo;;
18346'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18347See \`config.log' for more details." >&5
18348echo "$as_me: error: cannot compute sizeof (long long), 77
18349See \`config.log' for more details." >&2;}
18350 { (exit 1); exit 1; }; } ;;
18351esac
18352else
18353 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18354 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18355echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18356 { (exit 1); exit 1; }; }
18357else
18358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364$ac_includes_default
18365long longval () { return (long) (sizeof (long long)); }
18366unsigned long ulongval () { return (long) (sizeof (long long)); }
18367#include <stdio.h>
18368#include <stdlib.h>
18369int
18370main ()
18371{
18372
18373 FILE *f = fopen ("conftest.val", "w");
18374 if (! f)
18375 exit (1);
18376 if (((long) (sizeof (long long))) < 0)
18377 {
18378 long i = longval ();
18379 if (i != ((long) (sizeof (long long))))
18380 exit (1);
18381 fprintf (f, "%ld\n", i);
18382 }
18383 else
18384 {
18385 unsigned long i = ulongval ();
18386 if (i != ((long) (sizeof (long long))))
18387 exit (1);
18388 fprintf (f, "%lu\n", i);
18389 }
18390 exit (ferror (f) || fclose (f) != 0);
18391
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest$ac_exeext
18397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_sizeof_long_long=`cat conftest.val`
18408else
18409 echo "$as_me: program exited with status $ac_status" >&5
18410echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413( exit $ac_status )
18414{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18415See \`config.log' for more details." >&5
18416echo "$as_me: error: cannot compute sizeof (long long), 77
18417See \`config.log' for more details." >&2;}
18418 { (exit 1); exit 1; }; }
18419fi
ac1cb8d3 18420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18421fi
18422fi
18423rm -f conftest.val
18424else
18425 ac_cv_sizeof_long_long=0
18426fi
18427fi
18428echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18429echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18430cat >>confdefs.h <<_ACEOF
18431#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18432_ACEOF
18433
18434
18435 ;;
18436 *-hp-hpux* )
18437 echo "$as_me:$LINENO: checking for long long" >&5
18438echo $ECHO_N "checking for long long... $ECHO_C" >&6
18439if test "${ac_cv_type_long_long+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441else
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
18448$ac_includes_default
18449int
18450main ()
18451{
18452if ((long long *) 0)
18453 return 0;
18454if (sizeof (long long))
18455 return 0;
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18462 (eval $ac_compile) 2>conftest.er1
a848cd7e 18463 ac_status=$?
ac1cb8d3
VS
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
a848cd7e
SC
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
6ebeb4c7 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_cv_type_long_long=yes
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_cv_type_long_long=no
18487fi
ac1cb8d3 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18489fi
18490echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18491echo "${ECHO_T}$ac_cv_type_long_long" >&6
18492
18493echo "$as_me:$LINENO: checking size of long long" >&5
18494echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18495if test "${ac_cv_sizeof_long_long+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 if test "$ac_cv_type_long_long" = yes; then
18499 # The cast to unsigned long works around a bug in the HP C Compiler
18500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18502 # This bug is HP SR number 8606223364.
18503 if test "$cross_compiling" = yes; then
18504 # Depending upon the size, compute the lo and hi bounds.
18505cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511$ac_includes_default
18512int
18513main ()
18514{
18515static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18516test_array [0] = 0
18517
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18524 (eval $ac_compile) 2>conftest.er1
a848cd7e 18525 ac_status=$?
ac1cb8d3
VS
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
a848cd7e
SC
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
6ebeb4c7 18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_lo=0 ac_mid=0
18544 while :; do
18545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551$ac_includes_default
18552int
18553main ()
18554{
18555static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18556test_array [0] = 0
18557
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext
18563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18564 (eval $ac_compile) 2>conftest.er1
a848cd7e 18565 ac_status=$?
ac1cb8d3
VS
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
a848cd7e
SC
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
6ebeb4c7 18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_hi=$ac_mid; break
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18589 if test $ac_lo -le $ac_mid; then
18590 ac_lo= ac_hi=
18591 break
18592 fi
18593 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18594fi
ac1cb8d3 18595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18596 done
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
18607$ac_includes_default
18608int
18609main ()
18610{
18611static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18612test_array [0] = 0
18613
18614 ;
18615 return 0;
18616}
18617_ACEOF
18618rm -f conftest.$ac_objext
18619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18620 (eval $ac_compile) 2>conftest.er1
a848cd7e 18621 ac_status=$?
ac1cb8d3
VS
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
a848cd7e
SC
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
6ebeb4c7 18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_hi=-1 ac_mid=-1
18640 while :; do
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647$ac_includes_default
18648int
18649main ()
18650{
18651static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18652test_array [0] = 0
18653
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18660 (eval $ac_compile) 2>conftest.er1
a848cd7e 18661 ac_status=$?
ac1cb8d3
VS
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
a848cd7e
SC
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
6ebeb4c7 18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_lo=$ac_mid; break
18680else
18681 echo "$as_me: failed program was:" >&5
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
18684ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18685 if test $ac_mid -le $ac_hi; then
18686 ac_lo= ac_hi=
18687 break
18688 fi
18689 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18690fi
ac1cb8d3 18691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18692 done
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697ac_lo= ac_hi=
18698fi
ac1cb8d3 18699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18700fi
ac1cb8d3 18701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18702# Binary search between lo and hi bounds.
18703while test "x$ac_lo" != "x$ac_hi"; do
18704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712int
18713main ()
18714{
18715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18716test_array [0] = 0
18717
18718 ;
18719 return 0;
18720}
18721_ACEOF
18722rm -f conftest.$ac_objext
18723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18724 (eval $ac_compile) 2>conftest.er1
a848cd7e 18725 ac_status=$?
ac1cb8d3
VS
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
a848cd7e
SC
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
6ebeb4c7 18731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743 ac_hi=$ac_mid
18744else
18745 echo "$as_me: failed program was:" >&5
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
18748ac_lo=`expr '(' $ac_mid ')' + 1`
18749fi
ac1cb8d3 18750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18751done
18752case $ac_lo in
18753?*) ac_cv_sizeof_long_long=$ac_lo;;
18754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18755See \`config.log' for more details." >&5
18756echo "$as_me: error: cannot compute sizeof (long long), 77
18757See \`config.log' for more details." >&2;}
18758 { (exit 1); exit 1; }; } ;;
18759esac
18760else
18761 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18762 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18763echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18764 { (exit 1); exit 1; }; }
18765else
18766 cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
18773long longval () { return (long) (sizeof (long long)); }
18774unsigned long ulongval () { return (long) (sizeof (long long)); }
18775#include <stdio.h>
18776#include <stdlib.h>
18777int
18778main ()
18779{
18780
18781 FILE *f = fopen ("conftest.val", "w");
18782 if (! f)
18783 exit (1);
18784 if (((long) (sizeof (long long))) < 0)
18785 {
18786 long i = longval ();
18787 if (i != ((long) (sizeof (long long))))
18788 exit (1);
18789 fprintf (f, "%ld\n", i);
18790 }
18791 else
18792 {
18793 unsigned long i = ulongval ();
18794 if (i != ((long) (sizeof (long long))))
18795 exit (1);
18796 fprintf (f, "%lu\n", i);
18797 }
18798 exit (ferror (f) || fclose (f) != 0);
18799
18800 ;
18801 return 0;
18802}
18803_ACEOF
18804rm -f conftest$ac_exeext
18805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_sizeof_long_long=`cat conftest.val`
18816else
18817 echo "$as_me: program exited with status $ac_status" >&5
18818echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821( exit $ac_status )
18822{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18823See \`config.log' for more details." >&5
18824echo "$as_me: error: cannot compute sizeof (long long), 77
18825See \`config.log' for more details." >&2;}
18826 { (exit 1); exit 1; }; }
18827fi
ac1cb8d3 18828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18829fi
18830fi
18831rm -f conftest.val
18832else
18833 ac_cv_sizeof_long_long=0
18834fi
18835fi
18836echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18837echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18838cat >>confdefs.h <<_ACEOF
18839#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18840_ACEOF
18841
18842
18843 if test "$ac_cv_sizeof_long_long" != "0"; then
18844 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18845 fi
18846 ;;
18847 * )
18848 echo "$as_me:$LINENO: checking for long long" >&5
18849echo $ECHO_N "checking for long long... $ECHO_C" >&6
18850if test "${ac_cv_type_long_long+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860int
18861main ()
18862{
18863if ((long long *) 0)
18864 return 0;
18865if (sizeof (long long))
18866 return 0;
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18873 (eval $ac_compile) 2>conftest.er1
a848cd7e 18874 ac_status=$?
ac1cb8d3
VS
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
a848cd7e
SC
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
6ebeb4c7 18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_type_long_long=yes
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897ac_cv_type_long_long=no
18898fi
ac1cb8d3 18899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18900fi
18901echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18902echo "${ECHO_T}$ac_cv_type_long_long" >&6
18903
18904echo "$as_me:$LINENO: checking size of long long" >&5
18905echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18906if test "${ac_cv_sizeof_long_long+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 if test "$ac_cv_type_long_long" = yes; then
18910 # The cast to unsigned long works around a bug in the HP C Compiler
18911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18913 # This bug is HP SR number 8606223364.
18914 if test "$cross_compiling" = yes; then
18915 # Depending upon the size, compute the lo and hi bounds.
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922$ac_includes_default
18923int
18924main ()
18925{
18926static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18927test_array [0] = 0
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext
18934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18935 (eval $ac_compile) 2>conftest.er1
a848cd7e 18936 ac_status=$?
ac1cb8d3
VS
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
a848cd7e
SC
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
6ebeb4c7 18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_lo=0 ac_mid=0
18955 while :; do
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18967test_array [0] = 0
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18975 (eval $ac_compile) 2>conftest.er1
a848cd7e 18976 ac_status=$?
ac1cb8d3
VS
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
a848cd7e
SC
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
6ebeb4c7 18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_hi=$ac_mid; break
18995else
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19000 if test $ac_lo -le $ac_mid; then
19001 ac_lo= ac_hi=
19002 break
19003 fi
19004 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19005fi
ac1cb8d3 19006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19007 done
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018$ac_includes_default
19019int
19020main ()
19021{
19022static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19023test_array [0] = 0
19024
19025 ;
19026 return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext
19030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19031 (eval $ac_compile) 2>conftest.er1
a848cd7e 19032 ac_status=$?
ac1cb8d3
VS
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
a848cd7e
SC
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
6ebeb4c7 19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_hi=-1 ac_mid=-1
19051 while :; do
19052 cat >conftest.$ac_ext <<_ACEOF
19053/* confdefs.h. */
19054_ACEOF
19055cat confdefs.h >>conftest.$ac_ext
19056cat >>conftest.$ac_ext <<_ACEOF
19057/* end confdefs.h. */
19058$ac_includes_default
19059int
19060main ()
19061{
19062static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19063test_array [0] = 0
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19071 (eval $ac_compile) 2>conftest.er1
a848cd7e 19072 ac_status=$?
ac1cb8d3
VS
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
a848cd7e
SC
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
6ebeb4c7 19078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_lo=$ac_mid; break
19091else
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19096 if test $ac_mid -le $ac_hi; then
19097 ac_lo= ac_hi=
19098 break
19099 fi
19100 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19101fi
ac1cb8d3 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19103 done
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_lo= ac_hi=
19109fi
ac1cb8d3 19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19111fi
ac1cb8d3 19112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19113# Binary search between lo and hi bounds.
19114while test "x$ac_lo" != "x$ac_hi"; do
19115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19116 cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122$ac_includes_default
19123int
19124main ()
19125{
19126static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19127test_array [0] = 0
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19135 (eval $ac_compile) 2>conftest.er1
a848cd7e 19136 ac_status=$?
ac1cb8d3
VS
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
a848cd7e
SC
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
6ebeb4c7 19142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_hi=$ac_mid
19155else
19156 echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159ac_lo=`expr '(' $ac_mid ')' + 1`
19160fi
ac1cb8d3 19161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19162done
19163case $ac_lo in
19164?*) ac_cv_sizeof_long_long=$ac_lo;;
19165'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19166See \`config.log' for more details." >&5
19167echo "$as_me: error: cannot compute sizeof (long long), 77
19168See \`config.log' for more details." >&2;}
19169 { (exit 1); exit 1; }; } ;;
19170esac
19171else
19172 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19173 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19174echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19175 { (exit 1); exit 1; }; }
19176else
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183$ac_includes_default
19184long longval () { return (long) (sizeof (long long)); }
19185unsigned long ulongval () { return (long) (sizeof (long long)); }
19186#include <stdio.h>
19187#include <stdlib.h>
19188int
19189main ()
19190{
19191
19192 FILE *f = fopen ("conftest.val", "w");
19193 if (! f)
19194 exit (1);
19195 if (((long) (sizeof (long long))) < 0)
19196 {
19197 long i = longval ();
19198 if (i != ((long) (sizeof (long long))))
19199 exit (1);
19200 fprintf (f, "%ld\n", i);
19201 }
19202 else
19203 {
19204 unsigned long i = ulongval ();
19205 if (i != ((long) (sizeof (long long))))
19206 exit (1);
19207 fprintf (f, "%lu\n", i);
19208 }
19209 exit (ferror (f) || fclose (f) != 0);
19210
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest$ac_exeext
19216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_sizeof_long_long=`cat conftest.val`
19227else
19228 echo "$as_me: program exited with status $ac_status" >&5
19229echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232( exit $ac_status )
19233{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19234See \`config.log' for more details." >&5
19235echo "$as_me: error: cannot compute sizeof (long long), 77
19236See \`config.log' for more details." >&2;}
19237 { (exit 1); exit 1; }; }
19238fi
ac1cb8d3 19239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19240fi
19241fi
19242rm -f conftest.val
19243else
19244 ac_cv_sizeof_long_long=0
19245fi
19246fi
19247echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19248echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19249cat >>confdefs.h <<_ACEOF
19250#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19251_ACEOF
19252
19253
19254esac
19255
238ecede
MW
19256echo "$as_me:$LINENO: checking for wchar_t" >&5
19257echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19258if test "${ac_cv_type_wchar_t+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261 cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h. */
19267
83d8eb47
MW
19268 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19269 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19270 # error "fake wchar_t"
19271 #endif
19272 #ifdef HAVE_WCHAR_H
19273 # ifdef __CYGWIN__
19274 # include <stddef.h>
19275 # endif
19276 # include <wchar.h>
19277 #endif
19278 #ifdef HAVE_STDLIB_H
19279 # include <stdlib.h>
19280 #endif
19281 #include <stdio.h>
19282
19283
19284
19285int
19286main ()
19287{
19288if ((wchar_t *) 0)
19289 return 0;
19290if (sizeof (wchar_t))
19291 return 0;
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext
19297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19298 (eval $ac_compile) 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
6ebeb4c7 19305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest.$ac_objext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_type_wchar_t=yes
19318else
19319 echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322ac_cv_type_wchar_t=no
19323fi
19324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19325fi
19326echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19327echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19328
a848cd7e
SC
19329echo "$as_me:$LINENO: checking size of wchar_t" >&5
19330echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19331if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
238ecede
MW
19334 if test "$ac_cv_type_wchar_t" = yes; then
19335 # The cast to unsigned long works around a bug in the HP C Compiler
19336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19338 # This bug is HP SR number 8606223364.
19339 if test "$cross_compiling" = yes; then
19340 # Depending upon the size, compute the lo and hi bounds.
19341cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347
83d8eb47
MW
19348 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19349 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19350 # error "fake wchar_t"
19351 #endif
19352 #ifdef HAVE_WCHAR_H
19353 # ifdef __CYGWIN__
19354 # include <stddef.h>
19355 # endif
19356 # include <wchar.h>
19357 #endif
19358 #ifdef HAVE_STDLIB_H
19359 # include <stdlib.h>
19360 #endif
19361 #include <stdio.h>
19362
19363
19364
19365int
19366main ()
19367{
19368static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19369test_array [0] = 0
19370
19371 ;
19372 return 0;
19373}
19374_ACEOF
19375rm -f conftest.$ac_objext
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
6ebeb4c7 19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_lo=0 ac_mid=0
19397 while :; do
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404
83d8eb47
MW
19405 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19406 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19407 # error "fake wchar_t"
19408 #endif
19409 #ifdef HAVE_WCHAR_H
19410 # ifdef __CYGWIN__
19411 # include <stddef.h>
19412 # endif
19413 # include <wchar.h>
19414 #endif
19415 #ifdef HAVE_STDLIB_H
19416 # include <stdlib.h>
19417 #endif
19418 #include <stdio.h>
19419
19420
19421
19422int
19423main ()
19424{
19425static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19426test_array [0] = 0
19427
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext
19433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19434 (eval $ac_compile) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
6ebeb4c7 19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_hi=$ac_mid; break
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458ac_lo=`expr $ac_mid + 1`
19459 if test $ac_lo -le $ac_mid; then
19460 ac_lo= ac_hi=
19461 break
19462 fi
19463 ac_mid=`expr 2 '*' $ac_mid + 1`
19464fi
19465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 done
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477
83d8eb47
MW
19478 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19479 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19480 # error "fake wchar_t"
19481 #endif
19482 #ifdef HAVE_WCHAR_H
19483 # ifdef __CYGWIN__
19484 # include <stddef.h>
19485 # endif
19486 # include <wchar.h>
19487 #endif
19488 #ifdef HAVE_STDLIB_H
19489 # include <stdlib.h>
19490 #endif
19491 #include <stdio.h>
19492
19493
19494
19495int
19496main ()
19497{
19498static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19499test_array [0] = 0
19500
19501 ;
19502 return 0;
19503}
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
6ebeb4c7 19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_hi=-1 ac_mid=-1
19527 while :; do
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
83d8eb47
MW
19535 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19536 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19537 # error "fake wchar_t"
19538 #endif
19539 #ifdef HAVE_WCHAR_H
19540 # ifdef __CYGWIN__
19541 # include <stddef.h>
19542 # endif
19543 # include <wchar.h>
19544 #endif
19545 #ifdef HAVE_STDLIB_H
19546 # include <stdlib.h>
19547 #endif
19548 #include <stdio.h>
19549
19550
19551
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
6ebeb4c7 19571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_lo=$ac_mid; break
19584else
19585 echo "$as_me: failed program was:" >&5
19586sed 's/^/| /' conftest.$ac_ext >&5
19587
19588ac_hi=`expr '(' $ac_mid ')' - 1`
19589 if test $ac_mid -le $ac_hi; then
19590 ac_lo= ac_hi=
19591 break
19592 fi
19593 ac_mid=`expr 2 '*' $ac_mid`
19594fi
19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596 done
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601ac_lo= ac_hi=
19602fi
19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19604fi
19605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19606# Binary search between lo and hi bounds.
19607while test "x$ac_lo" != "x$ac_hi"; do
19608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615
83d8eb47
MW
19616 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19617 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19618 # error "fake wchar_t"
19619 #endif
19620 #ifdef HAVE_WCHAR_H
19621 # ifdef __CYGWIN__
19622 # include <stddef.h>
19623 # endif
19624 # include <wchar.h>
19625 #endif
19626 #ifdef HAVE_STDLIB_H
19627 # include <stdlib.h>
19628 #endif
19629 #include <stdio.h>
a848cd7e 19630
a848cd7e 19631
a848cd7e 19632
238ecede
MW
19633int
19634main ()
19635{
19636static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19637test_array [0] = 0
a848cd7e 19638
238ecede
MW
19639 ;
19640 return 0;
19641}
19642_ACEOF
19643rm -f conftest.$ac_objext
19644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
6ebeb4c7 19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_hi=$ac_mid
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669ac_lo=`expr '(' $ac_mid ')' + 1`
19670fi
19671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672done
19673case $ac_lo in
19674?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19676See \`config.log' for more details." >&5
19677echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19678See \`config.log' for more details." >&2;}
19679 { (exit 1); exit 1; }; } ;;
19680esac
19681else
19682 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19683 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19684echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19685 { (exit 1); exit 1; }; }
a848cd7e
SC
19686else
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693
83d8eb47
MW
19694 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19695 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19696 # error "fake wchar_t"
19697 #endif
19698 #ifdef HAVE_WCHAR_H
19699 # ifdef __CYGWIN__
19700 # include <stddef.h>
19701 # endif
19702 # include <wchar.h>
19703 #endif
19704 #ifdef HAVE_STDLIB_H
19705 # include <stdlib.h>
19706 #endif
19707 #include <stdio.h>
19708
19709
19710
19711long longval () { return (long) (sizeof (wchar_t)); }
19712unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19713#include <stdio.h>
19714#include <stdlib.h>
19715int
19716main ()
19717{
a848cd7e 19718
238ecede
MW
19719 FILE *f = fopen ("conftest.val", "w");
19720 if (! f)
19721 exit (1);
19722 if (((long) (sizeof (wchar_t))) < 0)
19723 {
19724 long i = longval ();
19725 if (i != ((long) (sizeof (wchar_t))))
19726 exit (1);
19727 fprintf (f, "%ld\n", i);
19728 }
19729 else
19730 {
19731 unsigned long i = ulongval ();
19732 if (i != ((long) (sizeof (wchar_t))))
19733 exit (1);
19734 fprintf (f, "%lu\n", i);
19735 }
19736 exit (ferror (f) || fclose (f) != 0);
19737
19738 ;
19739 return 0;
19740}
a848cd7e
SC
19741_ACEOF
19742rm -f conftest$ac_exeext
19743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744 (eval $ac_link) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
238ecede 19753 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19754else
19755 echo "$as_me: program exited with status $ac_status" >&5
19756echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759( exit $ac_status )
238ecede
MW
19760{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19761See \`config.log' for more details." >&5
19762echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19763See \`config.log' for more details." >&2;}
19764 { (exit 1); exit 1; }; }
a848cd7e 19765fi
ac1cb8d3 19766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19767fi
a848cd7e 19768fi
238ecede
MW
19769rm -f conftest.val
19770else
19771 ac_cv_sizeof_wchar_t=0
19772fi
19773fi
19774echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19775echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19776cat >>confdefs.h <<_ACEOF
238ecede 19777#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19778_ACEOF
19779
19780
47a7e797
MW
19781if test "$ac_cv_sizeof_wchar_t" != "0"; then
19782 wxUSE_WCHAR_T=yes
19783else
19784 wxUSE_WCHAR_T=no
19785fi
238ecede 19786
ba3d13e1
VZ
19787echo "$as_me:$LINENO: checking for va_copy" >&5
19788echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19789if test "${wx_cv_func_va_copy+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792
19793 cat >conftest.$ac_ext <<_ACEOF
19794
19795 #include <stdarg.h>
19796 void foo(char *f, ...)
19797 {
19798 va_list ap1, ap2;
19799 va_start(ap1, f);
19800 va_copy(ap2, ap1);
19801 va_end(ap2);
19802 va_end(ap1);
19803 }
5886b072
VZ
19804 int main()
19805 {
b902e639
VZ
19806 foo("hi", 17);
19807 return 0;
5886b072 19808 }
ba3d13e1
VZ
19809_ACEOF
19810rm -f conftest.$ac_objext conftest$ac_exeext
19811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
6ebeb4c7 19819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 wx_cv_func_va_copy=yes
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836wx_cv_func_va_copy=no
19837
19838fi
19839rm -f conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841
19842
19843fi
19844echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19845echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19846
19847if test $wx_cv_func_va_copy = "yes"; then
19848 cat >>confdefs.h <<\_ACEOF
19849#define HAVE_VA_COPY 1
19850_ACEOF
19851
19852else
19853 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19854echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19855if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858
19859 if test "$cross_compiling" = yes; then
19860 wx_cv_type_va_list_lvalue=yes
19861
19862else
19863 cat >conftest.$ac_ext <<_ACEOF
19864
19865 #include <stdarg.h>
19866 int foo(char *f, ...)
19867 {
19868 va_list ap1, ap2;
19869 va_start(ap1, f);
19870 ap2 = ap1;
19871 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19872 return 1;
19873 va_end(ap2);
19874 va_end(ap1);
19875 return 0;
19876 }
19877 int main()
19878 {
19879 return foo("hi", 17);
19880 }
19881_ACEOF
19882rm -f conftest$ac_exeext
19883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884 (eval $ac_link) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 wx_cv_type_va_list_lvalue=yes
19894else
19895 echo "$as_me: program exited with status $ac_status" >&5
19896echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899( exit $ac_status )
19900wx_cv_type_va_list_lvalue=no
19901fi
19902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19903fi
19904
19905
19906fi
19907echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19908echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19909
19910 if test $wx_cv_type_va_list_lvalue != "yes"; then
19911 cat >>confdefs.h <<\_ACEOF
19912#define VA_LIST_IS_ARRAY 1
19913_ACEOF
19914
19915 fi
19916fi
19917
a848cd7e
SC
19918# Check whether --enable-largefile or --disable-largefile was given.
19919if test "${enable_largefile+set}" = set; then
19920 enableval="$enable_largefile"
19921
19922fi;
19923if test "$enable_largefile" != no; then
19924 wx_largefile=no
19925
19926 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19927echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19928if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931
19932 cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938#define _FILE_OFFSET_BITS 64
19939 #include <sys/types.h>
19940int
19941main ()
19942{
19943typedef struct {
19944 unsigned int field: sizeof(off_t) == 8;
19945} wxlf;
19946
19947 ;
19948 return 0;
19949}
19950_ACEOF
19951rm -f conftest.$ac_objext
19952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19953 (eval $ac_compile) 2>conftest.er1
a848cd7e 19954 ac_status=$?
ac1cb8d3
VS
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
a848cd7e
SC
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
6ebeb4c7 19960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_sys_file_offset_bits=64
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977ac_cv_sys_file_offset_bits=no
19978fi
ac1cb8d3 19979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19980
19981
19982fi
19983echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19984echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19985
19986 if test "$ac_cv_sys_file_offset_bits" != no; then
19987 wx_largefile=yes
19988 cat >>confdefs.h <<_ACEOF
19989#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19990_ACEOF
19991
19992 fi
19993
19994 if test "x$wx_largefile" != "xyes"; then
19995
19996 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19997echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19998if test "${ac_cv_sys_large_files+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001
20002 cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008#define _LARGE_FILES 1
20009 #include <sys/types.h>
20010int
20011main ()
20012{
20013typedef struct {
20014 unsigned int field: sizeof(off_t) == 8;
20015} wxlf;
20016
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20023 (eval $ac_compile) 2>conftest.er1
a848cd7e 20024 ac_status=$?
ac1cb8d3
VS
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
a848cd7e
SC
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
6ebeb4c7 20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_sys_large_files=1
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047ac_cv_sys_large_files=no
20048fi
ac1cb8d3 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20050
20051
20052fi
20053echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20054echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20055
20056 if test "$ac_cv_sys_large_files" != no; then
20057 wx_largefile=yes
20058 cat >>confdefs.h <<_ACEOF
20059#define _LARGE_FILES $ac_cv_sys_large_files
20060_ACEOF
20061
20062 fi
20063
20064 fi
20065
20066 echo "$as_me:$LINENO: checking if large file support is available" >&5
20067echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20068 if test "x$wx_largefile" = "xyes"; then
20069 cat >>confdefs.h <<\_ACEOF
20070#define HAVE_LARGEFILE_SUPPORT 1
20071_ACEOF
20072
20073 fi
20074 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20075echo "${ECHO_T}$wx_largefile" >&6
20076fi
20077
5b674b9d
DE
20078
20079if test "x$wx_largefile" = "xyes"; then
20080 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20081 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20082
20083 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20084 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20085echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20086if test "${wx_cv_STDC_EXT_required+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089
20090
20091
20092 ac_ext=cc
20093ac_cpp='$CXXCPP $CPPFLAGS'
20094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20097
20098 cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
20104
20105int
20106main ()
20107{
20108
20109 #ifndef __STDC_EXT__
20110 choke me
20111 #endif
20112
20113 ;
20114 return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>conftest.er1
20120 ac_status=$?
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest.$ac_objext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 wx_cv_STDC_EXT_required=no
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143wx_cv_STDC_EXT_required=yes
20144
20145fi
20146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20147 ac_ext=c
20148ac_cpp='$CPP $CPPFLAGS'
20149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151ac_compiler_gnu=$ac_cv_c_compiler_gnu
20152
20153
20154
20155fi
20156echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20157echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20158 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20159 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20160 fi
20161 fi
5b674b9d
DE
20162 else
20163 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20164 fi
20165 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20166echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20167if test "${ac_cv_sys_largefile_source+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169else
20170 while :; do
20171 ac_cv_sys_largefile_source=no
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
20178#include <stdio.h>
20179int
20180main ()
20181{
20182return !fseeko;
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
6ebeb4c7 20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 break
20209else
20210 echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213fi
20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20215 cat >conftest.$ac_ext <<_ACEOF
20216/* confdefs.h. */
20217_ACEOF
20218cat confdefs.h >>conftest.$ac_ext
20219cat >>conftest.$ac_ext <<_ACEOF
20220/* end confdefs.h. */
20221#define _LARGEFILE_SOURCE 1
20222#include <stdio.h>
20223int
20224main ()
20225{
20226return !fseeko;
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
20232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
6ebeb4c7 20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_sys_largefile_source=1; break
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257fi
20258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20259 break
20260done
20261fi
20262echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20263echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20264if test "$ac_cv_sys_largefile_source" != no; then
20265
20266cat >>confdefs.h <<_ACEOF
20267#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20268_ACEOF
20269
20270fi
20271rm -f conftest*
20272
20273# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20274# in glibc 2.1.3, but that breaks too many other things.
20275# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20276echo "$as_me:$LINENO: checking for fseeko" >&5
20277echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20278if test "${ac_cv_func_fseeko+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
20287#include <stdio.h>
20288int
20289main ()
20290{
20291return fseeko && fseeko (stdin, 0, 0);
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext conftest$ac_exeext
20297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20298 (eval $ac_link) 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
6ebeb4c7 20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest$ac_exeext'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_func_fseeko=yes
20318else
20319 echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322ac_cv_func_fseeko=no
20323fi
20324rm -f conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20326fi
20327echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20328echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20329if test $ac_cv_func_fseeko = yes; then
20330
20331cat >>confdefs.h <<\_ACEOF
20332#define HAVE_FSEEKO 1
20333_ACEOF
20334
20335fi
20336
5b674b9d
DE
20337 if test "$ac_cv_sys_largefile_source" != no; then
20338 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20339 fi
20340 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20341fi
20342
20343echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20344echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20345if test "${ac_cv_c_bigendian+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347else
20348 ac_cv_c_bigendian=unknown
20349# See if sys/param.h defines the BYTE_ORDER macro.
20350cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
20356#include <sys/types.h>
20357#include <sys/param.h>
20358int
20359main ()
20360{
20361
20362#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20363 bogus endian macros
20364#endif
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20371 (eval $ac_compile) 2>conftest.er1
a848cd7e 20372 ac_status=$?
ac1cb8d3
VS
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
a848cd7e
SC
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
6ebeb4c7 20378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 # It does; now see whether it defined to BIG_ENDIAN or not.
20391cat >conftest.$ac_ext <<_ACEOF
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397#include <sys/types.h>
20398#include <sys/param.h>
20399int
20400main ()
20401{
20402
20403#if BYTE_ORDER != BIG_ENDIAN
20404 not big endian
20405#endif
20406 ;
20407 return 0;
20408}
20409_ACEOF
20410rm -f conftest.$ac_objext
20411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20412 (eval $ac_compile) 2>conftest.er1
a848cd7e 20413 ac_status=$?
ac1cb8d3
VS
20414 grep -v '^ *+' conftest.er1 >conftest.err
20415 rm -f conftest.er1
20416 cat conftest.err >&5
a848cd7e
SC
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
6ebeb4c7 20419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_c_bigendian=yes
20432else
20433 echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436ac_cv_c_bigendian=no
20437fi
ac1cb8d3 20438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20439else
20440 echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
20443fi
ac1cb8d3 20444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20445if test $ac_cv_c_bigendian = unknown; then
20446if test "$cross_compiling" = yes; then
20447 ac_cv_c_bigendian=unknown
20448else
20449 cat >conftest.$ac_ext <<_ACEOF
20450/* confdefs.h. */
20451_ACEOF
20452cat confdefs.h >>conftest.$ac_ext
20453cat >>conftest.$ac_ext <<_ACEOF
20454/* end confdefs.h. */
20455main () {
20456 /* Are we little or big endian? From Harbison&Steele. */
20457 union
20458 {
20459 long l;
20460 char c[sizeof (long)];
20461 } u;
20462 u.l = 1;
20463 exit (u.c[sizeof (long) - 1] == 1);
20464}
20465_ACEOF
20466rm -f conftest$ac_exeext
20467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20468 (eval $ac_link) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_c_bigendian=no
20478else
20479 echo "$as_me: program exited with status $ac_status" >&5
20480echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483( exit $ac_status )
20484ac_cv_c_bigendian=yes
20485fi
ac1cb8d3 20486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20487fi
20488fi
20489fi
20490echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20491echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20492if test $ac_cv_c_bigendian = unknown; then
20493 { 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
20494echo "$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;}
20495fi
20496if test $ac_cv_c_bigendian = yes; then
20497 cat >>confdefs.h <<\_ACEOF
20498#define WORDS_BIGENDIAN 1
20499_ACEOF
20500
20501fi
20502
20503
20504ac_ext=cc
20505ac_cpp='$CXXCPP $CPPFLAGS'
20506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20509echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20510echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20511if test -z "$CXXCPP"; then
20512 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515 # Double quotes because CXXCPP needs to be expanded
20516 for CXXCPP in "$CXX -E" "/lib/cpp"
20517 do
20518 ac_preproc_ok=false
20519for ac_cxx_preproc_warn_flag in '' yes
20520do
20521 # Use a header file that comes with gcc, so configuring glibc
20522 # with a fresh cross-compiler works.
20523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20524 # <limits.h> exists even on freestanding compilers.
20525 # On the NeXT, cc -E runs the code through the compiler's parser,
20526 # not just through cpp. "Syntax error" is here to catch this case.
20527 cat >conftest.$ac_ext <<_ACEOF
20528/* confdefs.h. */
20529_ACEOF
20530cat confdefs.h >>conftest.$ac_ext
20531cat >>conftest.$ac_ext <<_ACEOF
20532/* end confdefs.h. */
20533#ifdef __STDC__
20534# include <limits.h>
20535#else
20536# include <assert.h>
20537#endif
ac1cb8d3 20538 Syntax error
a848cd7e
SC
20539_ACEOF
20540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null; then
20548 if test -s conftest.err; then
20549 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20551 else
20552 ac_cpp_err=
20553 fi
20554else
20555 ac_cpp_err=yes
20556fi
20557if test -z "$ac_cpp_err"; then
20558 :
20559else
20560 echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 # Broken: fails on valid input.
20564continue
20565fi
20566rm -f conftest.err conftest.$ac_ext
20567
20568 # OK, works on sane cases. Now check whether non-existent headers
20569 # can be detected and how.
20570 cat >conftest.$ac_ext <<_ACEOF
20571/* confdefs.h. */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h. */
20576#include <ac_nonexistent.h>
20577_ACEOF
20578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } >/dev/null; then
20586 if test -s conftest.err; then
20587 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20589 else
20590 ac_cpp_err=
20591 fi
20592else
20593 ac_cpp_err=yes
20594fi
20595if test -z "$ac_cpp_err"; then
20596 # Broken: success on invalid input.
20597continue
20598else
20599 echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 # Passes both tests.
20603ac_preproc_ok=:
20604break
20605fi
20606rm -f conftest.err conftest.$ac_ext
20607
20608done
20609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20610rm -f conftest.err conftest.$ac_ext
20611if $ac_preproc_ok; then
20612 break
20613fi
20614
20615 done
20616 ac_cv_prog_CXXCPP=$CXXCPP
20617
20618fi
20619 CXXCPP=$ac_cv_prog_CXXCPP
20620else
20621 ac_cv_prog_CXXCPP=$CXXCPP
20622fi
20623echo "$as_me:$LINENO: result: $CXXCPP" >&5
20624echo "${ECHO_T}$CXXCPP" >&6
20625ac_preproc_ok=false
20626for ac_cxx_preproc_warn_flag in '' yes
20627do
20628 # Use a header file that comes with gcc, so configuring glibc
20629 # with a fresh cross-compiler works.
20630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20631 # <limits.h> exists even on freestanding compilers.
20632 # On the NeXT, cc -E runs the code through the compiler's parser,
20633 # not just through cpp. "Syntax error" is here to catch this case.
20634 cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
20640#ifdef __STDC__
20641# include <limits.h>
20642#else
20643# include <assert.h>
20644#endif
ac1cb8d3 20645 Syntax error
a848cd7e
SC
20646_ACEOF
20647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } >/dev/null; then
20655 if test -s conftest.err; then
20656 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20657 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20658 else
20659 ac_cpp_err=
20660 fi
20661else
20662 ac_cpp_err=yes
20663fi
20664if test -z "$ac_cpp_err"; then
20665 :
20666else
20667 echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 # Broken: fails on valid input.
20671continue
20672fi
20673rm -f conftest.err conftest.$ac_ext
20674
20675 # OK, works on sane cases. Now check whether non-existent headers
20676 # can be detected and how.
20677 cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h. */
20683#include <ac_nonexistent.h>
20684_ACEOF
20685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } >/dev/null; then
20693 if test -s conftest.err; then
20694 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20695 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20696 else
20697 ac_cpp_err=
20698 fi
20699else
20700 ac_cpp_err=yes
20701fi
20702if test -z "$ac_cpp_err"; then
20703 # Broken: success on invalid input.
20704continue
20705else
20706 echo "$as_me: failed program was:" >&5
20707sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 # Passes both tests.
20710ac_preproc_ok=:
20711break
20712fi
20713rm -f conftest.err conftest.$ac_ext
20714
20715done
20716# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20717rm -f conftest.err conftest.$ac_ext
20718if $ac_preproc_ok; then
20719 :
20720else
20721 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20722See \`config.log' for more details." >&5
20723echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20724See \`config.log' for more details." >&2;}
20725 { (exit 1); exit 1; }; }
20726fi
20727
20728ac_ext=cc
20729ac_cpp='$CXXCPP $CPPFLAGS'
20730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733
20734
20735
20736
20737
20738 ac_ext=cc
20739ac_cpp='$CXXCPP $CPPFLAGS'
20740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20743
20744
20745
20746for ac_header in iostream
20747do
20748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20749if eval "test \"\${$as_ac_Header+set}\" = set"; then
20750 echo "$as_me:$LINENO: checking for $ac_header" >&5
20751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20752if eval "test \"\${$as_ac_Header+set}\" = set"; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754fi
20755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20757else
20758 # Is the header compilable?
20759echo "$as_me:$LINENO: checking $ac_header usability" >&5
20760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20761cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
20767$ac_includes_default
20768#include <$ac_header>
20769_ACEOF
20770rm -f conftest.$ac_objext
20771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20772 (eval $ac_compile) 2>conftest.er1
a848cd7e 20773 ac_status=$?
ac1cb8d3
VS
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
a848cd7e
SC
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
6ebeb4c7 20779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_header_compiler=yes
20792else
20793 echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796ac_header_compiler=no
20797fi
ac1cb8d3 20798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20800echo "${ECHO_T}$ac_header_compiler" >&6
20801
20802# Is the header present?
20803echo "$as_me:$LINENO: checking $ac_header presence" >&5
20804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20805cat >conftest.$ac_ext <<_ACEOF
20806/* confdefs.h. */
20807_ACEOF
20808cat confdefs.h >>conftest.$ac_ext
20809cat >>conftest.$ac_ext <<_ACEOF
20810/* end confdefs.h. */
20811#include <$ac_header>
20812_ACEOF
20813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } >/dev/null; then
20821 if test -s conftest.err; then
20822 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20823 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20824 else
20825 ac_cpp_err=
20826 fi
20827else
20828 ac_cpp_err=yes
20829fi
20830if test -z "$ac_cpp_err"; then
20831 ac_header_preproc=yes
20832else
20833 echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ac_header_preproc=no
20837fi
20838rm -f conftest.err conftest.$ac_ext
20839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20840echo "${ECHO_T}$ac_header_preproc" >&6
20841
20842# So? What about this header?
ac1cb8d3
VS
20843case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20844 yes:no: )
a848cd7e
SC
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20849 ac_header_preproc=yes
a848cd7e 20850 ;;
ac1cb8d3 20851 no:yes:* )
a848cd7e
SC
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20864 (
20865 cat <<\_ASBOX
ac1cb8d3
VS
20866## ----------------------------------------- ##
20867## Report this to wx-dev@lists.wxwidgets.org ##
20868## ----------------------------------------- ##
a848cd7e
SC
20869_ASBOX
20870 ) |
20871 sed "s/^/$as_me: WARNING: /" >&2
20872 ;;
20873esac
20874echo "$as_me:$LINENO: checking for $ac_header" >&5
20875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20876if eval "test \"\${$as_ac_Header+set}\" = set"; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878else
ac1cb8d3 20879 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20880fi
20881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20883
20884fi
20885if test `eval echo '${'$as_ac_Header'}'` = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20888_ACEOF
20889
20890fi
20891
20892done
20893
20894
20895 if test "$ac_cv_header_iostream" = "yes" ; then
20896 :
20897 else
20898 cat >>confdefs.h <<\_ACEOF
20899#define wxUSE_IOSTREAMH 1
20900_ACEOF
20901
20902 fi
20903
20904 ac_ext=c
20905ac_cpp='$CPP $CPPFLAGS'
20906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910
20911
20912
20913 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20914echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20915if test "${wx_cv_cpp_bool+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917else
20918
20919
20920
20921 ac_ext=cc
20922ac_cpp='$CXXCPP $CPPFLAGS'
20923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20926
20927
20928 cat >conftest.$ac_ext <<_ACEOF
20929/* confdefs.h. */
20930_ACEOF
20931cat confdefs.h >>conftest.$ac_ext
20932cat >>conftest.$ac_ext <<_ACEOF
20933/* end confdefs.h. */
20934
20935
20936int
20937main ()
20938{
20939
20940 bool b = true;
20941
20942 return 0;
20943
20944 ;
20945 return 0;
20946}
20947_ACEOF
20948rm -f conftest.$ac_objext
20949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20950 (eval $ac_compile) 2>conftest.er1
a848cd7e 20951 ac_status=$?
ac1cb8d3
VS
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
a848cd7e
SC
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
6ebeb4c7 20957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969
20970 wx_cv_cpp_bool=yes
20971
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976
20977 wx_cv_cpp_bool=no
20978
20979
20980fi
ac1cb8d3 20981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20982
20983 ac_ext=c
20984ac_cpp='$CPP $CPPFLAGS'
20985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989
20990fi
20991echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20992echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20993
20994 if test "$wx_cv_cpp_bool" = "yes"; then
20995 cat >>confdefs.h <<\_ACEOF
20996#define HAVE_BOOL 1
20997_ACEOF
20998
20999 fi
21000
21001
21002
21003 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21004echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21005if test "${wx_cv_explicit+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007else
21008
21009
21010
21011 ac_ext=cc
21012ac_cpp='$CXXCPP $CPPFLAGS'
21013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21016
21017
21018 cat >conftest.$ac_ext <<_ACEOF
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024
21025 class Foo { public: explicit Foo(int) {} };
21026
21027int
21028main ()
21029{
21030
21031 return 0;
21032
21033 ;
21034 return 0;
21035}
21036_ACEOF
21037rm -f conftest.$ac_objext
21038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21039 (eval $ac_compile) 2>conftest.er1
a848cd7e 21040 ac_status=$?
ac1cb8d3
VS
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
a848cd7e
SC
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
6ebeb4c7 21046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058
21059 cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
21065
21066 class Foo { public: explicit Foo(int) {} };
21067 static void TakeFoo(const Foo& foo) { }
21068
21069int
21070main ()
21071{
21072
21073 TakeFoo(17);
21074 return 0;
21075
21076 ;
21077 return 0;
21078}
21079_ACEOF
21080rm -f conftest.$ac_objext
21081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21082 (eval $ac_compile) 2>conftest.er1
a848cd7e 21083 ac_status=$?
ac1cb8d3
VS
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
a848cd7e
SC
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
6ebeb4c7 21089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 wx_cv_explicit=no
21102else
21103 echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106wx_cv_explicit=yes
21107
21108fi
ac1cb8d3 21109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21110
21111else
21112 echo "$as_me: failed program was:" >&5
21113sed 's/^/| /' conftest.$ac_ext >&5
21114
21115wx_cv_explicit=no
21116
21117fi
ac1cb8d3 21118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21119
21120 ac_ext=c
21121ac_cpp='$CPP $CPPFLAGS'
21122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126
21127fi
21128echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21129echo "${ECHO_T}$wx_cv_explicit" >&6
21130
21131 if test "$wx_cv_explicit" = "yes"; then
21132 cat >>confdefs.h <<\_ACEOF
21133#define HAVE_EXPLICIT 1
21134_ACEOF
21135
21136 fi
21137
21138
21139echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21140echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21141if test "${ac_cv_cxx_const_cast+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143else
21144
21145
21146 ac_ext=cc
21147ac_cpp='$CXXCPP $CPPFLAGS'
21148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151
21152 cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h. */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h. */
21158
21159int
21160main ()
21161{
21162int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21163 ;
21164 return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext
21168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21169 (eval $ac_compile) 2>conftest.er1
a848cd7e 21170 ac_status=$?
ac1cb8d3
VS
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
a848cd7e
SC
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
6ebeb4c7 21176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_cxx_const_cast=yes
21189else
21190 echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193ac_cv_cxx_const_cast=no
21194fi
ac1cb8d3 21195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21196 ac_ext=c
21197ac_cpp='$CPP $CPPFLAGS'
21198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21200ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201
21202
21203fi
21204echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21205echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21206if test "$ac_cv_cxx_const_cast" = yes; then
21207
21208cat >>confdefs.h <<\_ACEOF
21209#define HAVE_CONST_CAST
21210_ACEOF
21211
21212fi
21213
7714864e
RL
21214echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21215echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21216if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218else
21219
21220
21221 ac_ext=cc
21222ac_cpp='$CXXCPP $CPPFLAGS'
21223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21226
21227 cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233#include <typeinfo>
21234class Base { public : Base () {} virtual void f () = 0;};
21235class Derived : public Base { public : Derived () {} virtual void f () {} };
21236class Unrelated { public : Unrelated () {} };
21237int g (Unrelated&) { return 0; }
21238int
21239main ()
21240{
21241
21242Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext
21248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21249 (eval $ac_compile) 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } &&
6ebeb4c7 21256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; } &&
21262 { ac_try='test -s conftest.$ac_objext'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 ac_cv_cxx_reinterpret_cast=yes
21269else
21270 echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273ac_cv_cxx_reinterpret_cast=no
21274fi
21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 ac_ext=c
21277ac_cpp='$CPP $CPPFLAGS'
21278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21280ac_compiler_gnu=$ac_cv_c_compiler_gnu
21281
21282
21283fi
21284echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21285echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21286if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21287
21288cat >>confdefs.h <<\_ACEOF
21289#define HAVE_REINTERPRET_CAST
21290_ACEOF
21291
21292fi
21293
a848cd7e
SC
21294echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21295echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21296if test "${ac_cv_cxx_static_cast+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298else
21299
21300
21301 ac_ext=cc
21302ac_cpp='$CXXCPP $CPPFLAGS'
21303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21306
21307 cat >conftest.$ac_ext <<_ACEOF
21308/* confdefs.h. */
21309_ACEOF
21310cat confdefs.h >>conftest.$ac_ext
21311cat >>conftest.$ac_ext <<_ACEOF
21312/* end confdefs.h. */
21313#include <typeinfo>
21314class Base { public : Base () {} virtual void f () = 0; };
21315class Derived : public Base { public : Derived () {} virtual void f () {} };
21316int g (Derived&) { return 0; }
21317int
21318main ()
21319{
21320
21321Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21322 ;
21323 return 0;
21324}
21325_ACEOF
21326rm -f conftest.$ac_objext
21327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21328 (eval $ac_compile) 2>conftest.er1
a848cd7e 21329 ac_status=$?
ac1cb8d3
VS
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
a848cd7e
SC
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
6ebeb4c7 21335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_cxx_static_cast=yes
21348else
21349 echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352ac_cv_cxx_static_cast=no
21353fi
ac1cb8d3 21354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21355 ac_ext=c
21356ac_cpp='$CPP $CPPFLAGS'
21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361
21362fi
21363echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21364echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21365if test "$ac_cv_cxx_static_cast" = yes; then
21366
21367cat >>confdefs.h <<\_ACEOF
21368#define HAVE_STATIC_CAST
21369_ACEOF
21370
21371fi
21372
21373
3c28b7cb
MW
21374if test "x$SUNCXX" = xyes; then
21375 CXXFLAGS="$CXXFLAGS -features=tmplife"
21376fi
21377
f56c22b4 21378if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21379 ac_ext=cc
21380ac_cpp='$CXXCPP $CPPFLAGS'
21381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21384
21385
f56c22b4
MW
21386 if test "$wxUSE_UNICODE" = "yes"; then
21387 std_string="std::wstring"
21388 char_type="wchar_t"
21389 else
21390 std_string="std::string"
21391 char_type="char"
21392 fi
21393
21394 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21395echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402#include <string>
a848cd7e
SC
21403int
21404main ()
21405{
f56c22b4 21406$std_string foo;
a848cd7e
SC
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext
21412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21413 (eval $ac_compile) 2>conftest.er1
a848cd7e 21414 ac_status=$?
ac1cb8d3
VS
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
a848cd7e
SC
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
6ebeb4c7 21420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; } &&
21426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 echo "$as_me:$LINENO: result: yes" >&5
21433echo "${ECHO_T}yes" >&6
0a08f02a
MB
21434 cat >>confdefs.h <<\_ACEOF
21435#define HAVE_STD_WSTRING 1
21436_ACEOF
21437
a848cd7e
SC
21438else
21439 echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
21441
21442echo "$as_me:$LINENO: result: no" >&5
21443echo "${ECHO_T}no" >&6
f56c22b4
MW
21444 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21445echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21446 cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452
21453 #ifdef HAVE_WCHAR_H
21454 # ifdef __CYGWIN__
21455 # include <stddef.h>
21456 # endif
21457 # include <wchar.h>
21458 #endif
21459 #ifdef HAVE_STDLIB_H
21460 # include <stdlib.h>
21461 #endif
21462 #include <stdio.h>
21463 #include <string>
21464
21465int
21466main ()
21467{
f56c22b4
MW
21468std::basic_string<$char_type> foo;
21469 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21470 ;
21471 return 0;
21472}
21473_ACEOF
21474rm -f conftest.$ac_objext
21475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21476 (eval $ac_compile) 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
6ebeb4c7 21483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; } &&
21489 { ac_try='test -s conftest.$ac_objext'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 echo "$as_me:$LINENO: result: yes" >&5
21496echo "${ECHO_T}yes" >&6
21497else
21498 echo "$as_me: failed program was:" >&5
21499sed 's/^/| /' conftest.$ac_ext >&5
21500
21501echo "$as_me:$LINENO: result: no" >&5
21502echo "${ECHO_T}no" >&6
f56c22b4 21503 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21504 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21505echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21506 { (exit 1); exit 1; }; }
21507 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21508 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21509echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21510 { (exit 1); exit 1; }; }
f56c22b4
MW
21511 else
21512 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21513echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21514 wxUSE_STD_STRING=no
21515 fi
21516
0a08f02a 21517
a848cd7e 21518fi
ac1cb8d3 21519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21520
0a08f02a
MB
21521fi
21522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21523
21524 ac_ext=c
21525ac_cpp='$CPP $CPPFLAGS'
21526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21528ac_compiler_gnu=$ac_cv_c_compiler_gnu
21529
21530fi
21531
21532if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21533 ac_ext=cc
21534ac_cpp='$CXXCPP $CPPFLAGS'
21535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21538
21539
21540 echo "$as_me:$LINENO: checking for std::istream" >&5
21541echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21542if test "${ac_cv_type_std__istream+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21544else
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 <iostream>
21552
21553int
21554main ()
21555{
21556if ((std::istream *) 0)
21557 return 0;
21558if (sizeof (std::istream))
21559 return 0;
21560 ;
21561 return 0;
21562}
21563_ACEOF
21564rm -f conftest.$ac_objext
21565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566 (eval $ac_compile) 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
6ebeb4c7 21573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_cv_type_std__istream=yes
21586else
21587 echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590ac_cv_type_std__istream=no
21591fi
21592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593fi
21594echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21595echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21596if test $ac_cv_type_std__istream = yes; then
21597
21598cat >>confdefs.h <<_ACEOF
21599#define HAVE_STD__ISTREAM 1
21600_ACEOF
21601
21602
21603else
21604 wxUSE_STD_IOSTREAM=no
21605fi
21606echo "$as_me:$LINENO: checking for std::ostream" >&5
21607echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21608if test "${ac_cv_type_std__ostream+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
21617#include <iostream>
21618
21619int
21620main ()
21621{
21622if ((std::ostream *) 0)
21623 return 0;
21624if (sizeof (std::ostream))
21625 return 0;
21626 ;
21627 return 0;
21628}
21629_ACEOF
21630rm -f conftest.$ac_objext
21631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21632 (eval $ac_compile) 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
6ebeb4c7 21639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest.$ac_objext'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651 ac_cv_type_std__ostream=yes
21652else
21653 echo "$as_me: failed program was:" >&5
21654sed 's/^/| /' conftest.$ac_ext >&5
21655
21656ac_cv_type_std__ostream=no
21657fi
21658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21659fi
21660echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21661echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21662if test $ac_cv_type_std__ostream = yes; then
21663
21664cat >>confdefs.h <<_ACEOF
21665#define HAVE_STD__OSTREAM 1
21666_ACEOF
21667
21668
21669else
21670 wxUSE_STD_IOSTREAM=no
21671fi
21672
21673
21674 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21675 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21676 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21677echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21678 { (exit 1); exit 1; }; }
21679 else
21680 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21681echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21682 fi
f56c22b4
MW
21683 fi
21684
21685 ac_ext=c
21686ac_cpp='$CPP $CPPFLAGS'
21687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21689ac_compiler_gnu=$ac_cv_c_compiler_gnu
21690
21691fi
21692
21693if test "$wxUSE_STL" = "yes"; then
21694 ac_ext=cc
21695ac_cpp='$CXXCPP $CPPFLAGS'
21696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21699
21700
21701 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21702echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21703 cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h. */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
21708/* end confdefs.h. */
21709#include <string>
0a08f02a
MB
21710 #include <functional>
21711 #include <algorithm>
21712 #include <vector>
21713 #include <list>
a848cd7e
SC
21714int
21715main ()
21716{
0a08f02a
MB
21717std::vector<int> moo;
21718 std::list<int> foo;
21719 std::vector<int>::iterator it =
21720 std::find_if(moo.begin(), moo.end(),
21721 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21722 ;
21723 return 0;
21724}
21725_ACEOF
21726rm -f conftest.$ac_objext
21727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21728 (eval $ac_compile) 2>conftest.er1
a848cd7e 21729 ac_status=$?
ac1cb8d3
VS
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
a848cd7e
SC
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
6ebeb4c7 21735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 echo "$as_me:$LINENO: result: yes" >&5
21748echo "${ECHO_T}yes" >&6
a848cd7e
SC
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753echo "$as_me:$LINENO: result: no" >&5
21754echo "${ECHO_T}no" >&6
0a08f02a
MB
21755 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21756echo "$as_me: error: Basic STL functionality missing" >&2;}
21757 { (exit 1); exit 1; }; }
a848cd7e 21758fi
ac1cb8d3 21759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21760
21761 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21762echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769#include <string>
21770int
21771main ()
21772{
21773std::string foo, bar;
21774 foo.compare(bar);
21775 foo.compare(1, 1, bar);
21776 foo.compare(1, 1, bar, 1, 1);
21777 foo.compare("");
21778 foo.compare(1, 1, "");
21779 foo.compare(1, 1, "", 2);
21780 ;
21781 return 0;
21782}
21783_ACEOF
21784rm -f conftest.$ac_objext
21785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21786 (eval $ac_compile) 2>conftest.er1
a848cd7e 21787 ac_status=$?
ac1cb8d3
VS
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
a848cd7e
SC
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
6ebeb4c7 21793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 echo "$as_me:$LINENO: result: yes" >&5
21806echo "${ECHO_T}yes" >&6
21807 cat >>confdefs.h <<\_ACEOF
21808#define HAVE_STD_STRING_COMPARE 1
21809_ACEOF
21810
21811else
21812 echo "$as_me: failed program was:" >&5
21813sed 's/^/| /' conftest.$ac_ext >&5
21814
21815echo "$as_me:$LINENO: result: no" >&5
21816echo "${ECHO_T}no" >&6
21817fi
ac1cb8d3 21818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21819
21820 if test "${ac_cv_header_hash_map+set}" = set; then
21821 echo "$as_me:$LINENO: checking for hash_map" >&5
21822echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21823if test "${ac_cv_header_hash_map+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825fi
21826echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21827echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21828else
21829 # Is the header compilable?
21830echo "$as_me:$LINENO: checking hash_map usability" >&5
21831echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21832cat >conftest.$ac_ext <<_ACEOF
21833/* confdefs.h. */
21834_ACEOF
21835cat confdefs.h >>conftest.$ac_ext
21836cat >>conftest.$ac_ext <<_ACEOF
21837/* end confdefs.h. */
21838$ac_includes_default
21839#include <hash_map>
21840_ACEOF
21841rm -f conftest.$ac_objext
21842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21843 (eval $ac_compile) 2>conftest.er1
bdcade0a 21844 ac_status=$?
ac1cb8d3
VS
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
bdcade0a
MB
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
6ebeb4c7 21850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; } &&
21856 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_header_compiler=yes
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_header_compiler=no
21868fi
ac1cb8d3 21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21871echo "${ECHO_T}$ac_header_compiler" >&6
21872
21873# Is the header present?
21874echo "$as_me:$LINENO: checking hash_map presence" >&5
21875echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21876cat >conftest.$ac_ext <<_ACEOF
21877/* confdefs.h. */
21878_ACEOF
21879cat confdefs.h >>conftest.$ac_ext
21880cat >>conftest.$ac_ext <<_ACEOF
21881/* end confdefs.h. */
21882#include <hash_map>
21883_ACEOF
21884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21886 ac_status=$?
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } >/dev/null; then
21892 if test -s conftest.err; then
21893 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21895 else
21896 ac_cpp_err=
21897 fi
21898else
21899 ac_cpp_err=yes
21900fi
21901if test -z "$ac_cpp_err"; then
21902 ac_header_preproc=yes
21903else
21904 echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ac_header_preproc=no
21908fi
21909rm -f conftest.err conftest.$ac_ext
21910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21911echo "${ECHO_T}$ac_header_preproc" >&6
21912
21913# So? What about this header?
ac1cb8d3
VS
21914case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21915 yes:no: )
bdcade0a
MB
21916 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21917echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21918 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21919echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21920 ac_header_preproc=yes
bdcade0a 21921 ;;
ac1cb8d3 21922 no:yes:* )
bdcade0a
MB
21923 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21924echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21925 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21926echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21928echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21930echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21931 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21932echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21933 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21934echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21935 (
21936 cat <<\_ASBOX
ac1cb8d3
VS
21937## ----------------------------------------- ##
21938## Report this to wx-dev@lists.wxwidgets.org ##
21939## ----------------------------------------- ##
bdcade0a
MB
21940_ASBOX
21941 ) |
21942 sed "s/^/$as_me: WARNING: /" >&2
21943 ;;
21944esac
21945echo "$as_me:$LINENO: checking for hash_map" >&5
21946echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21947if test "${ac_cv_header_hash_map+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21949else
21950 ac_cv_header_hash_map=$ac_header_preproc
21951fi
21952echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21953echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21954
21955fi
21956if test $ac_cv_header_hash_map = yes; then
21957 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21958echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21959 cat >conftest.$ac_ext <<_ACEOF
21960/* confdefs.h. */
21961_ACEOF
21962cat confdefs.h >>conftest.$ac_ext
21963cat >>conftest.$ac_ext <<_ACEOF
21964/* end confdefs.h. */
21965#include <hash_map>
21966 #include <hash_set>
21967int
21968main ()
21969{
21970std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21971 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21972 ;
21973 return 0;
21974}
21975_ACEOF
21976rm -f conftest.$ac_objext
21977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21978 (eval $ac_compile) 2>conftest.er1
bdcade0a 21979 ac_status=$?
ac1cb8d3
VS
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
bdcade0a
MB
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
6ebeb4c7 21985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; }; then
21997 echo "$as_me:$LINENO: result: yes" >&5
21998echo "${ECHO_T}yes" >&6
21999 cat >>confdefs.h <<\_ACEOF
22000#define HAVE_HASH_MAP 1
22001_ACEOF
22002
22003 cat >>confdefs.h <<\_ACEOF
22004#define HAVE_STD_HASH_MAP 1
22005_ACEOF
22006
22007else
22008 echo "$as_me: failed program was:" >&5
22009sed 's/^/| /' conftest.$ac_ext >&5
22010
22011echo "$as_me:$LINENO: result: no" >&5
22012echo "${ECHO_T}no" >&6
22013fi
ac1cb8d3 22014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22015
22016fi
22017
22018
22019
22020 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22021 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22022echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22023if test "${ac_cv_header_ext_hash_map+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025fi
22026echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22027echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22028else
22029 # Is the header compilable?
22030echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22031echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22032cat >conftest.$ac_ext <<_ACEOF
22033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
22038$ac_includes_default
22039#include <ext/hash_map>
22040_ACEOF
22041rm -f conftest.$ac_objext
22042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22043 (eval $ac_compile) 2>conftest.er1
bdcade0a 22044 ac_status=$?
ac1cb8d3
VS
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
bdcade0a
MB
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
6ebeb4c7 22050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22062 ac_header_compiler=yes
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067ac_header_compiler=no
22068fi
ac1cb8d3 22069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22071echo "${ECHO_T}$ac_header_compiler" >&6
22072
22073# Is the header present?
22074echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22075echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22076cat >conftest.$ac_ext <<_ACEOF
22077/* confdefs.h. */
22078_ACEOF
22079cat confdefs.h >>conftest.$ac_ext
22080cat >>conftest.$ac_ext <<_ACEOF
22081/* end confdefs.h. */
22082#include <ext/hash_map>
22083_ACEOF
22084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } >/dev/null; then
22092 if test -s conftest.err; then
22093 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22095 else
22096 ac_cpp_err=
22097 fi
22098else
22099 ac_cpp_err=yes
22100fi
22101if test -z "$ac_cpp_err"; then
22102 ac_header_preproc=yes
22103else
22104 echo "$as_me: failed program was:" >&5
22105sed 's/^/| /' conftest.$ac_ext >&5
22106
22107 ac_header_preproc=no
22108fi
22109rm -f conftest.err conftest.$ac_ext
22110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22111echo "${ECHO_T}$ac_header_preproc" >&6
22112
22113# So? What about this header?
ac1cb8d3
VS
22114case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22115 yes:no: )
bdcade0a
MB
22116 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22117echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22118 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22119echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22120 ac_header_preproc=yes
bdcade0a 22121 ;;
ac1cb8d3 22122 no:yes:* )
bdcade0a
MB
22123 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22124echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22125 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22126echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22128echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22130echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22131 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22132echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22133 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22134echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22135 (
22136 cat <<\_ASBOX
ac1cb8d3
VS
22137## ----------------------------------------- ##
22138## Report this to wx-dev@lists.wxwidgets.org ##
22139## ----------------------------------------- ##
bdcade0a
MB
22140_ASBOX
22141 ) |
22142 sed "s/^/$as_me: WARNING: /" >&2
22143 ;;
22144esac
22145echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22146echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22147if test "${ac_cv_header_ext_hash_map+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149else
22150 ac_cv_header_ext_hash_map=$ac_header_preproc
22151fi
22152echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22153echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22154
22155fi
22156if test $ac_cv_header_ext_hash_map = yes; then
22157 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22158echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22159 cat >conftest.$ac_ext <<_ACEOF
22160/* confdefs.h. */
22161_ACEOF
22162cat confdefs.h >>conftest.$ac_ext
22163cat >>conftest.$ac_ext <<_ACEOF
22164/* end confdefs.h. */
22165#include <ext/hash_map>
22166 #include <ext/hash_set>
22167int
22168main ()
22169{
22170__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22171 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22172 ;
22173 return 0;
22174}
22175_ACEOF
22176rm -f conftest.$ac_objext
22177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22178 (eval $ac_compile) 2>conftest.er1
bdcade0a 22179 ac_status=$?
ac1cb8d3
VS
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
bdcade0a
MB
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
6ebeb4c7 22185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; } &&
22191 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; }; then
22197 echo "$as_me:$LINENO: result: yes" >&5
22198echo "${ECHO_T}yes" >&6
22199 cat >>confdefs.h <<\_ACEOF
22200#define HAVE_EXT_HASH_MAP 1
22201_ACEOF
22202
22203 cat >>confdefs.h <<\_ACEOF
22204#define HAVE_GNU_CXX_HASH_MAP 1
22205_ACEOF
22206
22207else
22208 echo "$as_me: failed program was:" >&5
22209sed 's/^/| /' conftest.$ac_ext >&5
22210
22211echo "$as_me:$LINENO: result: no" >&5
22212echo "${ECHO_T}no" >&6
22213fi
ac1cb8d3 22214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22215
22216fi
22217
22218
a848cd7e
SC
22219
22220 ac_ext=c
22221ac_cpp='$CPP $CPPFLAGS'
22222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22224ac_compiler_gnu=$ac_cv_c_compiler_gnu
22225
22226fi
22227
22228
22229SEARCH_INCLUDE="\
22230 /usr/local/include \
22231 \
22232 /usr/Motif-2.1/include \
22233 /usr/Motif-1.2/include \
22234 /usr/include/Motif1.2 \
22235 /opt/xpm/include/X11 \
22236 /opt/GBxpm/include/ \
22237 /opt/GBxpm/X11/include/ \
22238 \
22239 /usr/dt/include \
22240 /usr/openwin/include \
22241 \
22242 /usr/include/Xm \
22243 \
22244 /usr/X11R6/include \
22245 /usr/X11R6.4/include \
22246 /usr/X11R5/include \
22247 /usr/X11R4/include \
22248 \
22249 /usr/include/X11R6 \
22250 /usr/include/X11R5 \
22251 /usr/include/X11R4 \
22252 \
22253 /usr/local/X11R6/include \
22254 /usr/local/X11R5/include \
22255 /usr/local/X11R4/include \
22256 \
22257 /usr/local/include/X11R6 \
22258 /usr/local/include/X11R5 \
22259 /usr/local/include/X11R4 \
22260 \
22261 /usr/X11/include \
22262 /usr/include/X11 \
22263 /usr/local/X11/include \
22264 /usr/local/include/X11 \
22265 \
22266 /usr/X386/include \
22267 /usr/x386/include \
22268 /usr/XFree86/include/X11 \
22269 \
22270 X:/XFree86/include \
22271 X:/XFree86/include/X11 \
22272 \
22273 /usr/include/gtk \
22274 /usr/local/include/gtk \
22275 /usr/include/glib \
22276 /usr/local/include/glib \
22277 \
22278 /usr/include/qt \
22279 /usr/local/include/qt \
22280 \
22281 /usr/local/arm/3.3.2/include \
22282 \
22283 /usr/include/windows \
22284 /usr/include/wine \
22285 /usr/local/include/wine \
22286 \
22287 /usr/unsupported/include \
22288 /usr/athena/include \
22289 /usr/local/x11r5/include \
22290 /usr/lpp/Xamples/include \
22291 \
22292 /usr/openwin/share/include"
22293
07158944 22294SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22295
3eca31dc
MW
22296if test "$build" != "$host" -a "$GCC" = yes; then
22297 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22298 cross_root=`dirname $cross_root`
22299 cross_root=`dirname $cross_root`
22300
22301 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22302 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22303
22304 if test -z "$PKG_CONFIG_PATH"; then
22305 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22306 export PKG_CONFIG_PATH
22307 fi
22308
22309 if test -z "$x_includes" -o "$x_includes" = NONE; then
22310
22311ac_find_includes=
22312for ac_dir in $SEARCH_INCLUDE /usr/include;
22313 do
22314 if test -f "$ac_dir/X11/Intrinsic.h"; then
22315 ac_find_includes=$ac_dir
22316 break
22317 fi
22318 done
22319
22320 x_includes=$ac_find_includes
22321 fi
22322 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22323
22324ac_find_libraries=
22325for ac_dir in $SEARCH_LIB /usr/lib;
22326 do
22327 for ac_extension in a so sl dylib dll.a; do
22328 if test -f "$ac_dir/libXt.$ac_extension"; then
22329 ac_find_libraries=$ac_dir
22330 break 2
22331 fi
22332 done
22333 done
22334
22335 x_libraries=$ac_find_libraries
22336 fi
22337 fi
22338fi
22339
a848cd7e
SC
22340
22341cat >confcache <<\_ACEOF
22342# This file is a shell script that caches the results of configure
22343# tests run on this system so they can be shared between configure
22344# scripts and configure runs, see configure's option --config-cache.
22345# It is not useful on other systems. If it contains results you don't
22346# want to keep, you may remove or edit it.
22347#
22348# config.status only pays attention to the cache file if you give it
22349# the --recheck option to rerun configure.
22350#
22351# `ac_cv_env_foo' variables (set or unset) will be overridden when
22352# loading this file, other *unset* `ac_cv_foo' will be assigned the
22353# following values.
22354
22355_ACEOF
22356
22357# The following way of writing the cache mishandles newlines in values,
22358# but we know of no workaround that is simple, portable, and efficient.
22359# So, don't put newlines in cache variables' values.
22360# Ultrix sh set writes to stderr and can't be redirected directly,
22361# and sets the high bit in the cache file unless we assign to the vars.
22362{
22363 (set) 2>&1 |
22364 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22365 *ac_space=\ *)
22366 # `set' does not quote correctly, so add quotes (double-quote
22367 # substitution turns \\\\ into \\, and sed turns \\ into \).
22368 sed -n \
ac1cb8d3
VS
22369 "s/'/'\\\\''/g;
22370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22371 ;;
22372 *)
22373 # `set' quotes correctly as required by POSIX, so do not add quotes.
22374 sed -n \
ac1cb8d3 22375 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22376 ;;
22377 esac;
22378} |
22379 sed '
22380 t clear
22381 : clear
22382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22383 t end
22384 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22385 : end' >>confcache
22386if diff $cache_file confcache >/dev/null 2>&1; then :; else
22387 if test -w $cache_file; then
22388 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22389 cat confcache >$cache_file
22390 else
22391 echo "not updating unwritable cache $cache_file"
22392 fi
22393fi
22394rm -f confcache
22395
22396if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22397 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22398echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22399if test "${wx_cv_lib_glibc21+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401else
22402
22403 cat >conftest.$ac_ext <<_ACEOF
22404/* confdefs.h. */
22405_ACEOF
22406cat confdefs.h >>conftest.$ac_ext
22407cat >>conftest.$ac_ext <<_ACEOF
22408/* end confdefs.h. */
22409#include <features.h>
22410int
22411main ()
22412{
22413
22414 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22415 not glibc 2.1
a848cd7e
SC
22416 #endif
22417
22418 ;
22419 return 0;
22420}
22421_ACEOF
22422rm -f conftest.$ac_objext
22423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22424 (eval $ac_compile) 2>conftest.er1
a848cd7e 22425 ac_status=$?
ac1cb8d3
VS
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
a848cd7e
SC
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
6ebeb4c7 22431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; } &&
22437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443
22444 wx_cv_lib_glibc21=yes
22445
22446else
22447 echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450
22451 wx_cv_lib_glibc21=no
22452
22453
22454fi
ac1cb8d3 22455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22456
22457fi
22458echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22459echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22460 if test "$wx_cv_lib_glibc21" = "yes"; then
22461 cat >>confdefs.h <<\_ACEOF
22462#define wxHAVE_GLIBC2 1
22463_ACEOF
22464
22465 fi
22466fi
22467
22468if test "x$wx_cv_lib_glibc21" = "xyes"; then
22469 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22470 cat >>confdefs.h <<\_ACEOF
22471#define _GNU_SOURCE 1
22472_ACEOF
22473
22474 fi
22475fi
22476
22477
22478
22479if test "$wxUSE_REGEX" != "no"; then
22480 cat >>confdefs.h <<\_ACEOF
22481#define wxUSE_REGEX 1
22482_ACEOF
22483
22484
22485 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22486 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22487echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22488 wxUSE_REGEX=builtin
22489 fi
22490
22491 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22492 if test "${ac_cv_header_regex_h+set}" = set; then
22493 echo "$as_me:$LINENO: checking for regex.h" >&5
22494echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22495if test "${ac_cv_header_regex_h+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497fi
22498echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22499echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22500else
22501 # Is the header compilable?
22502echo "$as_me:$LINENO: checking regex.h usability" >&5
22503echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22504cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510$ac_includes_default
22511#include <regex.h>
22512_ACEOF
22513rm -f conftest.$ac_objext
22514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22515 (eval $ac_compile) 2>conftest.er1
a848cd7e 22516 ac_status=$?
ac1cb8d3
VS
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
a848cd7e
SC
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
6ebeb4c7 22522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_header_compiler=yes
22535else
22536 echo "$as_me: failed program was:" >&5
22537sed 's/^/| /' conftest.$ac_ext >&5
22538
22539ac_header_compiler=no
22540fi
ac1cb8d3 22541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22543echo "${ECHO_T}$ac_header_compiler" >&6
22544
22545# Is the header present?
22546echo "$as_me:$LINENO: checking regex.h presence" >&5
22547echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22548cat >conftest.$ac_ext <<_ACEOF
22549/* confdefs.h. */
22550_ACEOF
22551cat confdefs.h >>conftest.$ac_ext
22552cat >>conftest.$ac_ext <<_ACEOF
22553/* end confdefs.h. */
22554#include <regex.h>
22555_ACEOF
22556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } >/dev/null; then
22564 if test -s conftest.err; then
22565 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22567 else
22568 ac_cpp_err=
22569 fi
22570else
22571 ac_cpp_err=yes
22572fi
22573if test -z "$ac_cpp_err"; then
22574 ac_header_preproc=yes
22575else
22576 echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ac_header_preproc=no
22580fi
22581rm -f conftest.err conftest.$ac_ext
22582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22583echo "${ECHO_T}$ac_header_preproc" >&6
22584
22585# So? What about this header?
ac1cb8d3
VS
22586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22587 yes:no: )
a848cd7e
SC
22588 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22589echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22590 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22591echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22592 ac_header_preproc=yes
a848cd7e 22593 ;;
ac1cb8d3 22594 no:yes:* )
a848cd7e
SC
22595 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22596echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22597 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22598echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22600echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22602echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22603 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22604echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22605 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22606echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22607 (
22608 cat <<\_ASBOX
ac1cb8d3
VS
22609## ----------------------------------------- ##
22610## Report this to wx-dev@lists.wxwidgets.org ##
22611## ----------------------------------------- ##
a848cd7e
SC
22612_ASBOX
22613 ) |
22614 sed "s/^/$as_me: WARNING: /" >&2
22615 ;;
22616esac
22617echo "$as_me:$LINENO: checking for regex.h" >&5
22618echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22619if test "${ac_cv_header_regex_h+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 ac_cv_header_regex_h=$ac_header_preproc
22623fi
22624echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22625echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22626
22627fi
22628if test $ac_cv_header_regex_h = yes; then
22629
22630for ac_func in regcomp
22631do
22632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22633echo "$as_me:$LINENO: checking for $ac_func" >&5
22634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22635if eval "test \"\${$as_ac_var+set}\" = set"; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637else
22638 cat >conftest.$ac_ext <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
ac1cb8d3
VS
22644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22646#define $ac_func innocuous_$ac_func
22647
a848cd7e
SC
22648/* System header to define __stub macros and hopefully few prototypes,
22649 which can conflict with char $ac_func (); below.
22650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22652
a848cd7e
SC
22653#ifdef __STDC__
22654# include <limits.h>
22655#else
22656# include <assert.h>
22657#endif
ac1cb8d3
VS
22658
22659#undef $ac_func
22660
a848cd7e
SC
22661/* Override any gcc2 internal prototype to avoid an error. */
22662#ifdef __cplusplus
22663extern "C"
22664{
22665#endif
22666/* We use char because int might match the return type of a gcc2
22667 builtin and then its argument prototype would still apply. */
22668char $ac_func ();
22669/* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22673choke me
22674#else
22675char (*f) () = $ac_func;
22676#endif
22677#ifdef __cplusplus
22678}
22679#endif
22680
22681int
22682main ()
22683{
22684return f != $ac_func;
22685 ;
22686 return 0;
22687}
22688_ACEOF
22689rm -f conftest.$ac_objext conftest$ac_exeext
22690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22691 (eval $ac_link) 2>conftest.er1
a848cd7e 22692 ac_status=$?
ac1cb8d3
VS
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
a848cd7e
SC
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
6ebeb4c7 22698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; } &&
22704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22710 eval "$as_ac_var=yes"
22711else
22712 echo "$as_me: failed program was:" >&5
22713sed 's/^/| /' conftest.$ac_ext >&5
22714
22715eval "$as_ac_var=no"
22716fi
ac1cb8d3
VS
22717rm -f conftest.err conftest.$ac_objext \
22718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22719fi
22720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22722if test `eval echo '${'$as_ac_var'}'` = yes; then
22723 cat >>confdefs.h <<_ACEOF
22724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22725_ACEOF
22726
22727fi
22728done
22729
22730fi
22731
22732
22733
22734 if test "x$ac_cv_func_regcomp" != "xyes"; then
22735 if test "$wxUSE_REGEX" = "sys" ; then
22736 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22737echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22738 { (exit 1); exit 1; }; }
22739 else
22740 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22741echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22742 wxUSE_REGEX=builtin
22743 fi
22744 else
22745 wxUSE_REGEX=sys
22746 cat >>confdefs.h <<\_ACEOF
22747#define WX_NO_REGEX_ADVANCED 1
22748_ACEOF
22749
22750 fi
22751 fi
22752fi
22753
22754
22755ZLIB_LINK=
22756if test "$wxUSE_ZLIB" != "no" ; then
22757 cat >>confdefs.h <<\_ACEOF
22758#define wxUSE_ZLIB 1
22759_ACEOF
22760
22761
22762 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22763 if test "$USE_DARWIN" = 1; then
22764 system_zlib_h_ok="yes"
22765 else
22766 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22767echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22768if test "${ac_cv_header_zlib_h+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22770else
22771 if test "$cross_compiling" = yes; then
22772 unset ac_cv_header_zlib_h
22773
22774else
22775 cat >conftest.$ac_ext <<_ACEOF
22776/* confdefs.h. */
22777_ACEOF
22778cat confdefs.h >>conftest.$ac_ext
22779cat >>conftest.$ac_ext <<_ACEOF
22780/* end confdefs.h. */
22781
22782 #include <zlib.h>
22783 #include <stdio.h>
22784
22785 int main()
22786 {
22787 FILE *f=fopen("conftestval", "w");
22788 if (!f) exit(1);
22789 fprintf(f, "%s",
22790 ZLIB_VERSION[0] == '1' &&
22791 (ZLIB_VERSION[2] > '1' ||
22792 (ZLIB_VERSION[2] == '1' &&
22793 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22794 exit(0);
22795 }
22796
22797_ACEOF
22798rm -f conftest$ac_exeext
22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }; then
22809 ac_cv_header_zlib_h=`cat conftestval`
22810else
22811 echo "$as_me: program exited with status $ac_status" >&5
22812echo "$as_me: failed program was:" >&5
22813sed 's/^/| /' conftest.$ac_ext >&5
22814
22815( exit $ac_status )
22816ac_cv_header_zlib_h=no
22817fi
ac1cb8d3 22818rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22819fi
22820
22821fi
22822echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22823echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22824 if test "${ac_cv_header_zlib_h+set}" = set; then
22825 echo "$as_me:$LINENO: checking for zlib.h" >&5
22826echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22827if test "${ac_cv_header_zlib_h+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829fi
22830echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22831echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22832else
22833 # Is the header compilable?
22834echo "$as_me:$LINENO: checking zlib.h usability" >&5
22835echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22836cat >conftest.$ac_ext <<_ACEOF
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
22842$ac_includes_default
22843#include <zlib.h>
22844_ACEOF
22845rm -f conftest.$ac_objext
22846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22847 (eval $ac_compile) 2>conftest.er1
a848cd7e 22848 ac_status=$?
ac1cb8d3
VS
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
a848cd7e
SC
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
6ebeb4c7 22854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; } &&
22860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 ac_header_compiler=yes
22867else
22868 echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871ac_header_compiler=no
22872fi
ac1cb8d3 22873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22875echo "${ECHO_T}$ac_header_compiler" >&6
22876
22877# Is the header present?
22878echo "$as_me:$LINENO: checking zlib.h presence" >&5
22879echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22880cat >conftest.$ac_ext <<_ACEOF
22881/* confdefs.h. */
22882_ACEOF
22883cat confdefs.h >>conftest.$ac_ext
22884cat >>conftest.$ac_ext <<_ACEOF
22885/* end confdefs.h. */
22886#include <zlib.h>
22887_ACEOF
22888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } >/dev/null; then
22896 if test -s conftest.err; then
22897 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22899 else
22900 ac_cpp_err=
22901 fi
22902else
22903 ac_cpp_err=yes
22904fi
22905if test -z "$ac_cpp_err"; then
22906 ac_header_preproc=yes
22907else
22908 echo "$as_me: failed program was:" >&5
22909sed 's/^/| /' conftest.$ac_ext >&5
22910
22911 ac_header_preproc=no
22912fi
22913rm -f conftest.err conftest.$ac_ext
22914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22915echo "${ECHO_T}$ac_header_preproc" >&6
22916
22917# So? What about this header?
ac1cb8d3
VS
22918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22919 yes:no: )
a848cd7e
SC
22920 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22921echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22922 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22923echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22924 ac_header_preproc=yes
a848cd7e 22925 ;;
ac1cb8d3 22926 no:yes:* )
a848cd7e
SC
22927 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22928echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22929 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22930echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22931 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22932echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22933 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22934echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22935 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22936echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22937 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22938echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22939 (
22940 cat <<\_ASBOX
ac1cb8d3
VS
22941## ----------------------------------------- ##
22942## Report this to wx-dev@lists.wxwidgets.org ##
22943## ----------------------------------------- ##
a848cd7e
SC
22944_ASBOX
22945 ) |
22946 sed "s/^/$as_me: WARNING: /" >&2
22947 ;;
22948esac
22949echo "$as_me:$LINENO: checking for zlib.h" >&5
22950echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22951if test "${ac_cv_header_zlib_h+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953else
22954 ac_cv_header_zlib_h=$ac_header_preproc
22955fi
22956echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22957echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22958
22959fi
22960
22961
22962
22963 system_zlib_h_ok=$ac_cv_header_zlib_h
22964 fi
22965
22966 if test "$system_zlib_h_ok" = "yes"; then
22967 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22968echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22969if test "${ac_cv_lib_z_deflate+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22971else
22972 ac_check_lib_save_LIBS=$LIBS
22973LIBS="-lz $LIBS"
22974cat >conftest.$ac_ext <<_ACEOF
22975/* confdefs.h. */
22976_ACEOF
22977cat confdefs.h >>conftest.$ac_ext
22978cat >>conftest.$ac_ext <<_ACEOF
22979/* end confdefs.h. */
22980
22981/* Override any gcc2 internal prototype to avoid an error. */
22982#ifdef __cplusplus
22983extern "C"
22984#endif
22985/* We use char because int might match the return type of a gcc2
22986 builtin and then its argument prototype would still apply. */
22987char deflate ();
22988int
22989main ()
22990{
22991deflate ();
22992 ;
22993 return 0;
22994}
22995_ACEOF
22996rm -f conftest.$ac_objext conftest$ac_exeext
22997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22998 (eval $ac_link) 2>conftest.er1
a848cd7e 22999 ac_status=$?
ac1cb8d3
VS
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
a848cd7e
SC
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
6ebeb4c7 23005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } &&
23011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23017 ac_cv_lib_z_deflate=yes
23018else
23019 echo "$as_me: failed program was:" >&5
23020sed 's/^/| /' conftest.$ac_ext >&5
23021
23022ac_cv_lib_z_deflate=no
23023fi
ac1cb8d3
VS
23024rm -f conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23026LIBS=$ac_check_lib_save_LIBS
23027fi
23028echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23029echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23030if test $ac_cv_lib_z_deflate = yes; then
23031 ZLIB_LINK=" -lz"
23032fi
23033
23034 fi
23035
23036 if test "x$ZLIB_LINK" = "x" ; then
23037 if test "$wxUSE_ZLIB" = "sys" ; then
23038 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23039echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23040 { (exit 1); exit 1; }; }
23041 else
23042 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23043echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23044 wxUSE_ZLIB=builtin
23045 fi
23046 else
23047 wxUSE_ZLIB=sys
23048 fi
23049 fi
23050fi
23051
23052
23053PNG_LINK=
23054if test "$wxUSE_LIBPNG" != "no" ; then
23055 cat >>confdefs.h <<\_ACEOF
23056#define wxUSE_LIBPNG 1
23057_ACEOF
23058
23059
23060 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23061 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23062echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23063 wxUSE_LIBPNG=sys
23064 fi
23065
23066 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23067 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23068echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23069 wxUSE_LIBPNG=builtin
23070 fi
23071
23072 if test "$wxUSE_MGL" != 1 ; then
23073 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23074 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23075echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23076if test "${ac_cv_header_png_h+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078else
23079 if test "$cross_compiling" = yes; then
23080 unset ac_cv_header_png_h
23081
23082else
23083 cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h. */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h. */
23089
23090 #include <png.h>
23091 #include <stdio.h>
23092
23093 int main()
23094 {
23095 FILE *f=fopen("conftestval", "w");
23096 if (!f) exit(1);
23097 fprintf(f, "%s",
23098 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23099 exit(0);
23100 }
23101
23102_ACEOF
23103rm -f conftest$ac_exeext
23104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23105 (eval $ac_link) 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 ac_cv_header_png_h=`cat conftestval`
23115else
23116 echo "$as_me: program exited with status $ac_status" >&5
23117echo "$as_me: failed program was:" >&5
23118sed 's/^/| /' conftest.$ac_ext >&5
23119
23120( exit $ac_status )
23121ac_cv_header_png_h=no
23122fi
ac1cb8d3 23123rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23124fi
23125
23126fi
23127echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23128echo "${ECHO_T}$ac_cv_header_png_h" >&6
23129 if test "${ac_cv_header_png_h+set}" = set; then
23130 echo "$as_me:$LINENO: checking for png.h" >&5
23131echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23132if test "${ac_cv_header_png_h+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134fi
23135echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23136echo "${ECHO_T}$ac_cv_header_png_h" >&6
23137else
23138 # Is the header compilable?
23139echo "$as_me:$LINENO: checking png.h usability" >&5
23140echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23141cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147$ac_includes_default
23148#include <png.h>
23149_ACEOF
23150rm -f conftest.$ac_objext
23151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23152 (eval $ac_compile) 2>conftest.er1
a848cd7e 23153 ac_status=$?
ac1cb8d3
VS
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
a848cd7e
SC
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } &&
6ebeb4c7 23159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_header_compiler=yes
23172else
23173 echo "$as_me: failed program was:" >&5
23174sed 's/^/| /' conftest.$ac_ext >&5
23175
23176ac_header_compiler=no
23177fi
ac1cb8d3 23178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23180echo "${ECHO_T}$ac_header_compiler" >&6
23181
23182# Is the header present?
23183echo "$as_me:$LINENO: checking png.h presence" >&5
23184echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23185cat >conftest.$ac_ext <<_ACEOF
23186/* confdefs.h. */
23187_ACEOF
23188cat confdefs.h >>conftest.$ac_ext
23189cat >>conftest.$ac_ext <<_ACEOF
23190/* end confdefs.h. */
23191#include <png.h>
23192_ACEOF
23193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } >/dev/null; then
23201 if test -s conftest.err; then
23202 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23204 else
23205 ac_cpp_err=
23206 fi
23207else
23208 ac_cpp_err=yes
23209fi
23210if test -z "$ac_cpp_err"; then
23211 ac_header_preproc=yes
23212else
23213 echo "$as_me: failed program was:" >&5
23214sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ac_header_preproc=no
23217fi
23218rm -f conftest.err conftest.$ac_ext
23219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23220echo "${ECHO_T}$ac_header_preproc" >&6
23221
23222# So? What about this header?
ac1cb8d3
VS
23223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23224 yes:no: )
a848cd7e
SC
23225 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23226echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23227 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23228echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23229 ac_header_preproc=yes
a848cd7e 23230 ;;
ac1cb8d3 23231 no:yes:* )
a848cd7e
SC
23232 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23233echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23234 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23235echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23236 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23237echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23239echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23240 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23241echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23242 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23243echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23244 (
23245 cat <<\_ASBOX
ac1cb8d3
VS
23246## ----------------------------------------- ##
23247## Report this to wx-dev@lists.wxwidgets.org ##
23248## ----------------------------------------- ##
a848cd7e
SC
23249_ASBOX
23250 ) |
23251 sed "s/^/$as_me: WARNING: /" >&2
23252 ;;
23253esac
23254echo "$as_me:$LINENO: checking for png.h" >&5
23255echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23256if test "${ac_cv_header_png_h+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258else
23259 ac_cv_header_png_h=$ac_header_preproc
23260fi
23261echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23262echo "${ECHO_T}$ac_cv_header_png_h" >&6
23263
23264fi
23265
23266
23267
23268 if test "$ac_cv_header_png_h" = "yes"; then
23269 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23270echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23271if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23273else
23274 ac_check_lib_save_LIBS=$LIBS
23275LIBS="-lpng -lz -lm $LIBS"
23276cat >conftest.$ac_ext <<_ACEOF
23277/* confdefs.h. */
23278_ACEOF
23279cat confdefs.h >>conftest.$ac_ext
23280cat >>conftest.$ac_ext <<_ACEOF
23281/* end confdefs.h. */
23282
23283/* Override any gcc2 internal prototype to avoid an error. */
23284#ifdef __cplusplus
23285extern "C"
23286#endif
23287/* We use char because int might match the return type of a gcc2
23288 builtin and then its argument prototype would still apply. */
23289char png_check_sig ();
23290int
23291main ()
23292{
23293png_check_sig ();
23294 ;
23295 return 0;
23296}
23297_ACEOF
23298rm -f conftest.$ac_objext conftest$ac_exeext
23299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23300 (eval $ac_link) 2>conftest.er1
a848cd7e 23301 ac_status=$?
ac1cb8d3
VS
23302 grep -v '^ *+' conftest.er1 >conftest.err
23303 rm -f conftest.er1
23304 cat conftest.err >&5
a848cd7e
SC
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } &&
6ebeb4c7 23307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; } &&
23313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; }; then
23319 ac_cv_lib_png_png_check_sig=yes
23320else
23321 echo "$as_me: failed program was:" >&5
23322sed 's/^/| /' conftest.$ac_ext >&5
23323
23324ac_cv_lib_png_png_check_sig=no
23325fi
ac1cb8d3
VS
23326rm -f conftest.err conftest.$ac_objext \
23327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23328LIBS=$ac_check_lib_save_LIBS
23329fi
23330echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23331echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23332if test $ac_cv_lib_png_png_check_sig = yes; then
23333 PNG_LINK=" -lpng -lz"
23334fi
23335
23336 fi
23337
23338 if test "x$PNG_LINK" = "x" ; then
23339 if test "$wxUSE_LIBPNG" = "sys" ; then
23340 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23341echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23342 { (exit 1); exit 1; }; }
23343 else
23344 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23345echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23346 wxUSE_LIBPNG=builtin
23347 fi
23348 else
23349 wxUSE_LIBPNG=sys
23350 fi
23351 fi
23352 fi
23353
23354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23355fi
23356
23357
23358JPEG_LINK=
23359if test "$wxUSE_LIBJPEG" != "no" ; then
23360 cat >>confdefs.h <<\_ACEOF
23361#define wxUSE_LIBJPEG 1
23362_ACEOF
23363
23364
23365 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23366 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23367echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23368 wxUSE_LIBJPEG=sys
23369 fi
23370
23371 if test "$wxUSE_MGL" != 1 ; then
23372 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23373 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23374echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23375 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377else
23378 cat >conftest.$ac_ext <<_ACEOF
23379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
23384
23385 #undef HAVE_STDLIB_H
23386 #include <stdio.h>
23387 #include <jpeglib.h>
23388
23389int
23390main ()
23391{
23392
23393
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext
23399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23400 (eval $ac_compile) 2>conftest.er1
a848cd7e 23401 ac_status=$?
ac1cb8d3
VS
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
a848cd7e
SC
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
6ebeb4c7 23407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_cv_header_jpeglib_h=yes
23420else
23421 echo "$as_me: failed program was:" >&5
23422sed 's/^/| /' conftest.$ac_ext >&5
23423
23424ac_cv_header_jpeglib_h=no
23425
23426fi
ac1cb8d3 23427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23428
23429fi
23430
23431 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23432echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23433
23434 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23435 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23436echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23437if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23439else
23440 ac_check_lib_save_LIBS=$LIBS
23441LIBS="-ljpeg $LIBS"
23442cat >conftest.$ac_ext <<_ACEOF
23443/* confdefs.h. */
23444_ACEOF
23445cat confdefs.h >>conftest.$ac_ext
23446cat >>conftest.$ac_ext <<_ACEOF
23447/* end confdefs.h. */
23448
23449/* Override any gcc2 internal prototype to avoid an error. */
23450#ifdef __cplusplus
23451extern "C"
23452#endif
23453/* We use char because int might match the return type of a gcc2
23454 builtin and then its argument prototype would still apply. */
23455char jpeg_read_header ();
23456int
23457main ()
23458{
23459jpeg_read_header ();
23460 ;
23461 return 0;
23462}
23463_ACEOF
23464rm -f conftest.$ac_objext conftest$ac_exeext
23465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23466 (eval $ac_link) 2>conftest.er1
a848cd7e 23467 ac_status=$?
ac1cb8d3
VS
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
a848cd7e
SC
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } &&
6ebeb4c7 23473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_lib_jpeg_jpeg_read_header=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490ac_cv_lib_jpeg_jpeg_read_header=no
23491fi
ac1cb8d3
VS
23492rm -f conftest.err conftest.$ac_objext \
23493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23494LIBS=$ac_check_lib_save_LIBS
23495fi
23496echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23497echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23498if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23499 JPEG_LINK=" -ljpeg"
23500fi
23501
23502 fi
23503
23504 if test "x$JPEG_LINK" = "x" ; then
23505 if test "$wxUSE_LIBJPEG" = "sys" ; then
23506 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23507echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23508 { (exit 1); exit 1; }; }
23509 else
23510 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23511echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23512 wxUSE_LIBJPEG=builtin
23513 fi
23514 else
23515 wxUSE_LIBJPEG=sys
23516 fi
23517 fi
23518 fi
23519fi
23520
23521
23522TIFF_LINK=
23523TIFF_PREREQ_LINKS=-lm
23524if test "$wxUSE_LIBTIFF" != "no" ; then
23525 cat >>confdefs.h <<\_ACEOF
23526#define wxUSE_LIBTIFF 1
23527_ACEOF
23528
23529
23530 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23531 if test "$wxUSE_LIBJPEG" = "sys"; then
23532 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23533 fi
23534 if test "$wxUSE_ZLIB" = "sys"; then
23535 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23536 fi
23537 if test "${ac_cv_header_tiffio_h+set}" = set; then
23538 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23539echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23540if test "${ac_cv_header_tiffio_h+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23542fi
23543echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23544echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23545else
23546 # Is the header compilable?
23547echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23548echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23549cat >conftest.$ac_ext <<_ACEOF
23550/* confdefs.h. */
23551_ACEOF
23552cat confdefs.h >>conftest.$ac_ext
23553cat >>conftest.$ac_ext <<_ACEOF
23554/* end confdefs.h. */
23555$ac_includes_default
23556#include <tiffio.h>
23557_ACEOF
23558rm -f conftest.$ac_objext
23559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23560 (eval $ac_compile) 2>conftest.er1
a848cd7e 23561 ac_status=$?
ac1cb8d3
VS
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
a848cd7e
SC
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
6ebeb4c7 23567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_header_compiler=yes
23580else
23581 echo "$as_me: failed program was:" >&5
23582sed 's/^/| /' conftest.$ac_ext >&5
23583
23584ac_header_compiler=no
23585fi
ac1cb8d3 23586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23588echo "${ECHO_T}$ac_header_compiler" >&6
23589
23590# Is the header present?
23591echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23592echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23593cat >conftest.$ac_ext <<_ACEOF
23594/* confdefs.h. */
23595_ACEOF
23596cat confdefs.h >>conftest.$ac_ext
23597cat >>conftest.$ac_ext <<_ACEOF
23598/* end confdefs.h. */
23599#include <tiffio.h>
23600_ACEOF
23601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } >/dev/null; then
23609 if test -s conftest.err; then
23610 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23612 else
23613 ac_cpp_err=
23614 fi
23615else
23616 ac_cpp_err=yes
23617fi
23618if test -z "$ac_cpp_err"; then
23619 ac_header_preproc=yes
23620else
23621 echo "$as_me: failed program was:" >&5
23622sed 's/^/| /' conftest.$ac_ext >&5
23623
23624 ac_header_preproc=no
23625fi
23626rm -f conftest.err conftest.$ac_ext
23627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23628echo "${ECHO_T}$ac_header_preproc" >&6
23629
23630# So? What about this header?
ac1cb8d3
VS
23631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23632 yes:no: )
a848cd7e
SC
23633 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23634echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23635 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23636echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23637 ac_header_preproc=yes
a848cd7e 23638 ;;
ac1cb8d3 23639 no:yes:* )
a848cd7e
SC
23640 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23641echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23642 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23643echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23644 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23645echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23646 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23647echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23648 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23649echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23650 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23651echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23652 (
23653 cat <<\_ASBOX
ac1cb8d3
VS
23654## ----------------------------------------- ##
23655## Report this to wx-dev@lists.wxwidgets.org ##
23656## ----------------------------------------- ##
a848cd7e
SC
23657_ASBOX
23658 ) |
23659 sed "s/^/$as_me: WARNING: /" >&2
23660 ;;
23661esac
23662echo "$as_me:$LINENO: checking for tiffio.h" >&5
23663echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23664if test "${ac_cv_header_tiffio_h+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666else
23667 ac_cv_header_tiffio_h=$ac_header_preproc
23668fi
23669echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23670echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23671
23672fi
23673if test $ac_cv_header_tiffio_h = yes; then
23674
23675 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23676echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23677if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23679else
23680 ac_check_lib_save_LIBS=$LIBS
23681LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23682cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
23688
23689/* Override any gcc2 internal prototype to avoid an error. */
23690#ifdef __cplusplus
23691extern "C"
23692#endif
23693/* We use char because int might match the return type of a gcc2
23694 builtin and then its argument prototype would still apply. */
23695char TIFFError ();
23696int
23697main ()
23698{
23699TIFFError ();
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext conftest$ac_exeext
23705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23706 (eval $ac_link) 2>conftest.er1
a848cd7e 23707 ac_status=$?
ac1cb8d3
VS
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
a848cd7e
SC
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
6ebeb4c7 23713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 ac_cv_lib_tiff_TIFFError=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730ac_cv_lib_tiff_TIFFError=no
23731fi
ac1cb8d3
VS
23732rm -f conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23734LIBS=$ac_check_lib_save_LIBS
23735fi
23736echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23737echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23738if test $ac_cv_lib_tiff_TIFFError = yes; then
23739 TIFF_LINK=" -ltiff"
23740fi
23741
23742
23743
23744fi
23745
23746
23747
23748 if test "x$TIFF_LINK" = "x" ; then
23749 if test "$wxUSE_LIBTIFF" = "sys" ; then
23750 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23751echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23752 { (exit 1); exit 1; }; }
23753 else
23754 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23755echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23756 wxUSE_LIBTIFF=builtin
23757 fi
23758 else
23759 wxUSE_LIBTIFF=sys
23760 fi
23761 fi
23762fi
23763
23764
47a7e797
MW
23765if test "$wxUSE_WCHAR_T" != "yes"; then
23766 if test "$wxUSE_EXPAT" != "no"; then
23767 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23768echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23769 wxUSE_EXPAT=no
23770 fi
23771 if test "$wxUSE_XML" != "no"; then
23772 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23773echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23774 wxUSE_XML=no
23775 fi
23776fi
23777
a848cd7e
SC
23778if test "$wxUSE_EXPAT" != "no"; then
23779 wxUSE_XML=yes
23780 cat >>confdefs.h <<\_ACEOF
23781#define wxUSE_EXPAT 1
23782_ACEOF
23783
23784 cat >>confdefs.h <<\_ACEOF
23785#define wxUSE_XML 1
23786_ACEOF
23787
23788
23789 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23790 if test "${ac_cv_header_expat_h+set}" = set; then
23791 echo "$as_me:$LINENO: checking for expat.h" >&5
23792echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23793if test "${ac_cv_header_expat_h+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795fi
23796echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23797echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23798else
23799 # Is the header compilable?
23800echo "$as_me:$LINENO: checking expat.h usability" >&5
23801echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23802cat >conftest.$ac_ext <<_ACEOF
23803/* confdefs.h. */
23804_ACEOF
23805cat confdefs.h >>conftest.$ac_ext
23806cat >>conftest.$ac_ext <<_ACEOF
23807/* end confdefs.h. */
23808$ac_includes_default
23809#include <expat.h>
23810_ACEOF
23811rm -f conftest.$ac_objext
23812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23813 (eval $ac_compile) 2>conftest.er1
a848cd7e 23814 ac_status=$?
ac1cb8d3
VS
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
a848cd7e
SC
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } &&
6ebeb4c7 23820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; } &&
23826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828 (eval $ac_try) 2>&5
23829 ac_status=$?
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; }; then
23832 ac_header_compiler=yes
23833else
23834 echo "$as_me: failed program was:" >&5
23835sed 's/^/| /' conftest.$ac_ext >&5
23836
23837ac_header_compiler=no
23838fi
ac1cb8d3 23839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23840echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23841echo "${ECHO_T}$ac_header_compiler" >&6
23842
23843# Is the header present?
23844echo "$as_me:$LINENO: checking expat.h presence" >&5
23845echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23846cat >conftest.$ac_ext <<_ACEOF
23847/* confdefs.h. */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h. */
23852#include <expat.h>
23853_ACEOF
23854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } >/dev/null; then
23862 if test -s conftest.err; then
23863 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23865 else
23866 ac_cpp_err=
23867 fi
23868else
23869 ac_cpp_err=yes
23870fi
23871if test -z "$ac_cpp_err"; then
23872 ac_header_preproc=yes
23873else
23874 echo "$as_me: failed program was:" >&5
23875sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 ac_header_preproc=no
23878fi
23879rm -f conftest.err conftest.$ac_ext
23880echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23881echo "${ECHO_T}$ac_header_preproc" >&6
23882
23883# So? What about this header?
ac1cb8d3
VS
23884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23885 yes:no: )
a848cd7e
SC
23886 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23887echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23888 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23889echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23890 ac_header_preproc=yes
a848cd7e 23891 ;;
ac1cb8d3 23892 no:yes:* )
a848cd7e
SC
23893 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23894echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23895 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23896echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23897 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23898echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23899 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23900echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23901 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23902echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23903 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23904echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23905 (
23906 cat <<\_ASBOX
ac1cb8d3
VS
23907## ----------------------------------------- ##
23908## Report this to wx-dev@lists.wxwidgets.org ##
23909## ----------------------------------------- ##
a848cd7e
SC
23910_ASBOX
23911 ) |
23912 sed "s/^/$as_me: WARNING: /" >&2
23913 ;;
23914esac
23915echo "$as_me:$LINENO: checking for expat.h" >&5
23916echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23917if test "${ac_cv_header_expat_h+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23919else
23920 ac_cv_header_expat_h=$ac_header_preproc
23921fi
23922echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23923echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23924
23925fi
23926if test $ac_cv_header_expat_h = yes; then
23927 found_expat_h=1
23928fi
23929
23930
23931 if test "x$found_expat_h" = "x1"; then
23932 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23933echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23934if test "${wx_cv_expat_is_not_broken+set}" = set; then
23935 echo $ECHO_N "(cached) $ECHO_C" >&6
23936else
23937
23938
23939
23940 ac_ext=cc
23941ac_cpp='$CXXCPP $CPPFLAGS'
23942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23945
23946 cat >conftest.$ac_ext <<_ACEOF
23947/* confdefs.h. */
23948_ACEOF
23949cat confdefs.h >>conftest.$ac_ext
23950cat >>conftest.$ac_ext <<_ACEOF
23951/* end confdefs.h. */
23952#include <expat.h>
23953int
23954main ()
23955{
23956
23957 ;
23958 return 0;
23959}
23960_ACEOF
23961rm -f conftest.$ac_objext
23962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23963 (eval $ac_compile) 2>conftest.er1
a848cd7e 23964 ac_status=$?
ac1cb8d3
VS
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
a848cd7e
SC
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } &&
6ebeb4c7 23970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; } &&
23976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 wx_cv_expat_is_not_broken=yes
23983else
23984 echo "$as_me: failed program was:" >&5
23985sed 's/^/| /' conftest.$ac_ext >&5
23986
23987wx_cv_expat_is_not_broken=no
23988
23989fi
ac1cb8d3 23990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23991 ac_ext=c
23992ac_cpp='$CPP $CPPFLAGS'
23993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23995ac_compiler_gnu=$ac_cv_c_compiler_gnu
23996
23997
23998
23999fi
24000echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24001echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24002 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24003 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24004echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24005if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007else
24008 ac_check_lib_save_LIBS=$LIBS
24009LIBS="-lexpat $LIBS"
24010cat >conftest.$ac_ext <<_ACEOF
24011/* confdefs.h. */
24012_ACEOF
24013cat confdefs.h >>conftest.$ac_ext
24014cat >>conftest.$ac_ext <<_ACEOF
24015/* end confdefs.h. */
24016
24017/* Override any gcc2 internal prototype to avoid an error. */
24018#ifdef __cplusplus
24019extern "C"
24020#endif
24021/* We use char because int might match the return type of a gcc2
24022 builtin and then its argument prototype would still apply. */
24023char XML_ParserCreate ();
24024int
24025main ()
24026{
24027XML_ParserCreate ();
24028 ;
24029 return 0;
24030}
24031_ACEOF
24032rm -f conftest.$ac_objext conftest$ac_exeext
24033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24034 (eval $ac_link) 2>conftest.er1
a848cd7e 24035 ac_status=$?
ac1cb8d3
VS
24036 grep -v '^ *+' conftest.er1 >conftest.err
24037 rm -f conftest.er1
24038 cat conftest.err >&5
a848cd7e
SC
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } &&
6ebeb4c7 24041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); }; } &&
24047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; }; then
24053 ac_cv_lib_expat_XML_ParserCreate=yes
24054else
24055 echo "$as_me: failed program was:" >&5
24056sed 's/^/| /' conftest.$ac_ext >&5
24057
24058ac_cv_lib_expat_XML_ParserCreate=no
24059fi
ac1cb8d3
VS
24060rm -f conftest.err conftest.$ac_objext \
24061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24062LIBS=$ac_check_lib_save_LIBS
24063fi
24064echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24065echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24066if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24067 EXPAT_LINK=" -lexpat"
24068fi
24069
24070 fi
24071 fi
24072 if test "x$EXPAT_LINK" = "x" ; then
24073 if test "$wxUSE_EXPAT" = "sys" ; then
24074 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24075echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24076 { (exit 1); exit 1; }; }
24077 else
24078 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24079echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24080 wxUSE_EXPAT=builtin
24081 fi
24082 else
24083 wxUSE_EXPAT=sys
24084 fi
24085 fi
24086 if test "$wxUSE_EXPAT" = "builtin" ; then
24087
24088
24089subdirs="$subdirs src/expat"
24090
24091 fi
24092fi
24093
24094
24095
24096if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24097 if test "${ac_cv_header_mspack_h+set}" = set; then
24098 echo "$as_me:$LINENO: checking for mspack.h" >&5
24099echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24100if test "${ac_cv_header_mspack_h+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102fi
24103echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24104echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24105else
24106 # Is the header compilable?
24107echo "$as_me:$LINENO: checking mspack.h usability" >&5
24108echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24109cat >conftest.$ac_ext <<_ACEOF
24110/* confdefs.h. */
24111_ACEOF
24112cat confdefs.h >>conftest.$ac_ext
24113cat >>conftest.$ac_ext <<_ACEOF
24114/* end confdefs.h. */
24115$ac_includes_default
24116#include <mspack.h>
24117_ACEOF
24118rm -f conftest.$ac_objext
24119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24120 (eval $ac_compile) 2>conftest.er1
a848cd7e 24121 ac_status=$?
ac1cb8d3
VS
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
a848cd7e
SC
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
6ebeb4c7 24127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; } &&
24133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 ac_header_compiler=yes
24140else
24141 echo "$as_me: failed program was:" >&5
24142sed 's/^/| /' conftest.$ac_ext >&5
24143
24144ac_header_compiler=no
24145fi
ac1cb8d3 24146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24148echo "${ECHO_T}$ac_header_compiler" >&6
24149
24150# Is the header present?
24151echo "$as_me:$LINENO: checking mspack.h presence" >&5
24152echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24153cat >conftest.$ac_ext <<_ACEOF
24154/* confdefs.h. */
24155_ACEOF
24156cat confdefs.h >>conftest.$ac_ext
24157cat >>conftest.$ac_ext <<_ACEOF
24158/* end confdefs.h. */
24159#include <mspack.h>
24160_ACEOF
24161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } >/dev/null; then
24169 if test -s conftest.err; then
24170 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24172 else
24173 ac_cpp_err=
24174 fi
24175else
24176 ac_cpp_err=yes
24177fi
24178if test -z "$ac_cpp_err"; then
24179 ac_header_preproc=yes
24180else
24181 echo "$as_me: failed program was:" >&5
24182sed 's/^/| /' conftest.$ac_ext >&5
24183
24184 ac_header_preproc=no
24185fi
24186rm -f conftest.err conftest.$ac_ext
24187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24188echo "${ECHO_T}$ac_header_preproc" >&6
24189
24190# So? What about this header?
ac1cb8d3
VS
24191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24192 yes:no: )
a848cd7e
SC
24193 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24194echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24195 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24196echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24197 ac_header_preproc=yes
a848cd7e 24198 ;;
ac1cb8d3 24199 no:yes:* )
a848cd7e
SC
24200 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24201echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24202 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24203echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24204 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24205echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24206 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24207echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24208 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24209echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24210 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24211echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24212 (
24213 cat <<\_ASBOX
ac1cb8d3
VS
24214## ----------------------------------------- ##
24215## Report this to wx-dev@lists.wxwidgets.org ##
24216## ----------------------------------------- ##
a848cd7e
SC
24217_ASBOX
24218 ) |
24219 sed "s/^/$as_me: WARNING: /" >&2
24220 ;;
24221esac
24222echo "$as_me:$LINENO: checking for mspack.h" >&5
24223echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24224if test "${ac_cv_header_mspack_h+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226else
24227 ac_cv_header_mspack_h=$ac_header_preproc
24228fi
24229echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24230echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24231
24232fi
24233if test $ac_cv_header_mspack_h = yes; then
24234 found_mspack_h=1
24235fi
24236
24237
24238 if test "x$found_mspack_h" = "x1"; then
24239 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24240echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24241if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24242 echo $ECHO_N "(cached) $ECHO_C" >&6
24243else
24244 ac_check_lib_save_LIBS=$LIBS
24245LIBS="-lmspack $LIBS"
24246cat >conftest.$ac_ext <<_ACEOF
24247/* confdefs.h. */
24248_ACEOF
24249cat confdefs.h >>conftest.$ac_ext
24250cat >>conftest.$ac_ext <<_ACEOF
24251/* end confdefs.h. */
24252
24253/* Override any gcc2 internal prototype to avoid an error. */
24254#ifdef __cplusplus
24255extern "C"
24256#endif
24257/* We use char because int might match the return type of a gcc2
24258 builtin and then its argument prototype would still apply. */
24259char mspack_create_chm_decompressor ();
24260int
24261main ()
24262{
24263mspack_create_chm_decompressor ();
24264 ;
24265 return 0;
24266}
24267_ACEOF
24268rm -f conftest.$ac_objext conftest$ac_exeext
24269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24270 (eval $ac_link) 2>conftest.er1
a848cd7e 24271 ac_status=$?
ac1cb8d3
VS
24272 grep -v '^ *+' conftest.er1 >conftest.err
24273 rm -f conftest.er1
24274 cat conftest.err >&5
a848cd7e
SC
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } &&
6ebeb4c7 24277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); }; } &&
24283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); }; }; then
24289 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24290else
24291 echo "$as_me: failed program was:" >&5
24292sed 's/^/| /' conftest.$ac_ext >&5
24293
24294ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24295fi
ac1cb8d3
VS
24296rm -f conftest.err conftest.$ac_objext \
24297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24298LIBS=$ac_check_lib_save_LIBS
24299fi
24300echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24301echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24302if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24303 MSPACK_LINK=" -lmspack"
24304fi
24305
24306 fi
24307 if test "x$MSPACK_LINK" = "x" ; then
24308 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24309 fi
24310fi
24311
24312if test "$wxUSE_LIBMSPACK" != "no"; then
24313 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24314#define wxUSE_LIBMSPACK 1
24315_ACEOF
24316
a848cd7e
SC
24317fi
24318
24319
24320
24321AFMINSTALL=
24322WIN32INSTALL=
24323
24324TOOLKIT=
24325TOOLKIT_INCLUDE=
24326WIDGET_SET=
24327
24328if test "$USE_WIN32" = 1 ; then
24329
24330for ac_header in w32api.h
24331do
24332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24333if eval "test \"\${$as_ac_Header+set}\" = set"; then
24334 echo "$as_me:$LINENO: checking for $ac_header" >&5
24335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24336if eval "test \"\${$as_ac_Header+set}\" = set"; then
24337 echo $ECHO_N "(cached) $ECHO_C" >&6
24338fi
24339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24341else
24342 # Is the header compilable?
24343echo "$as_me:$LINENO: checking $ac_header usability" >&5
24344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24345cat >conftest.$ac_ext <<_ACEOF
24346/* confdefs.h. */
24347_ACEOF
24348cat confdefs.h >>conftest.$ac_ext
24349cat >>conftest.$ac_ext <<_ACEOF
24350/* end confdefs.h. */
24351$ac_includes_default
24352#include <$ac_header>
24353_ACEOF
24354rm -f conftest.$ac_objext
24355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24356 (eval $ac_compile) 2>conftest.er1
a848cd7e 24357 ac_status=$?
ac1cb8d3
VS
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
a848cd7e
SC
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
6ebeb4c7 24363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24366 ac_status=$?
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; } &&
24369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 ac_header_compiler=yes
24376else
24377 echo "$as_me: failed program was:" >&5
24378sed 's/^/| /' conftest.$ac_ext >&5
24379
24380ac_header_compiler=no
24381fi
ac1cb8d3 24382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384echo "${ECHO_T}$ac_header_compiler" >&6
24385
24386# Is the header present?
24387echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24389cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */
24395#include <$ac_header>
24396_ACEOF
24397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24399 ac_status=$?
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } >/dev/null; then
24405 if test -s conftest.err; then
24406 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24408 else
24409 ac_cpp_err=
24410 fi
24411else
24412 ac_cpp_err=yes
24413fi
24414if test -z "$ac_cpp_err"; then
24415 ac_header_preproc=yes
24416else
24417 echo "$as_me: failed program was:" >&5
24418sed 's/^/| /' conftest.$ac_ext >&5
24419
24420 ac_header_preproc=no
24421fi
24422rm -f conftest.err conftest.$ac_ext
24423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24424echo "${ECHO_T}$ac_header_preproc" >&6
24425
24426# So? What about this header?
ac1cb8d3
VS
24427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24428 yes:no: )
a848cd7e
SC
24429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24433 ac_header_preproc=yes
a848cd7e 24434 ;;
ac1cb8d3 24435 no:yes:* )
a848cd7e
SC
24436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24448 (
24449 cat <<\_ASBOX
ac1cb8d3
VS
24450## ----------------------------------------- ##
24451## Report this to wx-dev@lists.wxwidgets.org ##
24452## ----------------------------------------- ##
a848cd7e
SC
24453_ASBOX
24454 ) |
24455 sed "s/^/$as_me: WARNING: /" >&2
24456 ;;
24457esac
24458echo "$as_me:$LINENO: checking for $ac_header" >&5
24459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24460if eval "test \"\${$as_ac_Header+set}\" = set"; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462else
ac1cb8d3 24463 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24464fi
24465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24467
24468fi
24469if test `eval echo '${'$as_ac_Header'}'` = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24472_ACEOF
24473
24474fi
24475
24476done
24477
24478 if test "${ac_cv_header_windows_h+set}" = set; then
24479 echo "$as_me:$LINENO: checking for windows.h" >&5
24480echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24481if test "${ac_cv_header_windows_h+set}" = set; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24483fi
24484echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24485echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24486else
24487 # Is the header compilable?
24488echo "$as_me:$LINENO: checking windows.h usability" >&5
24489echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24490cat >conftest.$ac_ext <<_ACEOF
24491/* confdefs.h. */
24492_ACEOF
24493cat confdefs.h >>conftest.$ac_ext
24494cat >>conftest.$ac_ext <<_ACEOF
24495/* end confdefs.h. */
24496$ac_includes_default
24497#include <windows.h>
24498_ACEOF
24499rm -f conftest.$ac_objext
24500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24501 (eval $ac_compile) 2>conftest.er1
a848cd7e 24502 ac_status=$?
ac1cb8d3
VS
24503 grep -v '^ *+' conftest.er1 >conftest.err
24504 rm -f conftest.er1
24505 cat conftest.err >&5
a848cd7e
SC
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } &&
6ebeb4c7 24508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; }; then
24520 ac_header_compiler=yes
24521else
24522 echo "$as_me: failed program was:" >&5
24523sed 's/^/| /' conftest.$ac_ext >&5
24524
24525ac_header_compiler=no
24526fi
ac1cb8d3 24527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24529echo "${ECHO_T}$ac_header_compiler" >&6
24530
24531# Is the header present?
24532echo "$as_me:$LINENO: checking windows.h presence" >&5
24533echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24534cat >conftest.$ac_ext <<_ACEOF
24535/* confdefs.h. */
24536_ACEOF
24537cat confdefs.h >>conftest.$ac_ext
24538cat >>conftest.$ac_ext <<_ACEOF
24539/* end confdefs.h. */
24540#include <windows.h>
24541_ACEOF
24542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } >/dev/null; then
24550 if test -s conftest.err; then
24551 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24553 else
24554 ac_cpp_err=
24555 fi
24556else
24557 ac_cpp_err=yes
24558fi
24559if test -z "$ac_cpp_err"; then
24560 ac_header_preproc=yes
24561else
24562 echo "$as_me: failed program was:" >&5
24563sed 's/^/| /' conftest.$ac_ext >&5
24564
24565 ac_header_preproc=no
24566fi
24567rm -f conftest.err conftest.$ac_ext
24568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24569echo "${ECHO_T}$ac_header_preproc" >&6
24570
24571# So? What about this header?
ac1cb8d3
VS
24572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24573 yes:no: )
a848cd7e
SC
24574 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24575echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24576 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24577echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24578 ac_header_preproc=yes
a848cd7e 24579 ;;
ac1cb8d3 24580 no:yes:* )
a848cd7e
SC
24581 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24582echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24583 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24584echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24586echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24588echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24589 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24590echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24591 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24592echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24593 (
24594 cat <<\_ASBOX
ac1cb8d3
VS
24595## ----------------------------------------- ##
24596## Report this to wx-dev@lists.wxwidgets.org ##
24597## ----------------------------------------- ##
a848cd7e
SC
24598_ASBOX
24599 ) |
24600 sed "s/^/$as_me: WARNING: /" >&2
24601 ;;
24602esac
24603echo "$as_me:$LINENO: checking for windows.h" >&5
24604echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24605if test "${ac_cv_header_windows_h+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24607else
24608 ac_cv_header_windows_h=$ac_header_preproc
24609fi
24610echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24611echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24612
24613fi
24614if test $ac_cv_header_windows_h = yes; then
24615 :
24616else
24617
24618 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24619echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24620 { (exit 1); exit 1; }; }
24621
24622fi
24623
24624
24625
24626 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24627
24628 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24629 LIBS="$LIBS -loleacc"
24630 fi
24631
24632 case "${host}" in
24633 *-*-cygwin* )
24634 LIBS="$LIBS -lkernel32 -luser32"
24635 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24636 esac
24637
24638 if test "$wxUSE_ODBC" = "sys" ; then
24639 wxUSE_ODBC = "yes"
24640 fi
24641 if test "$wxUSE_ODBC" = "yes" ; then
24642 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24643 cat >>confdefs.h <<\_ACEOF
24644#define wxUSE_ODBC 1
24645_ACEOF
24646
24647 fi
24648
24649 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24650 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24651
24652 WIN32INSTALL=win32install
24653fi
24654
24655if test "$wxUSE_GUI" = "yes"; then
24656 USE_GUI=1
24657
24658 GUI_TK_LIBRARY=
24659
24660 WXGTK12=
24661 WXGTK127=
24662 WXGTK20=
24663 WXGPE=
24664
207bc66c
RN
24665 if test "$wxUSE_COCOA" = 1 ; then
24666 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24667 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24668echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24669 wxUSE_PRINTING_ARCHITECTURE=no
24670 fi
24671 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24672 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24673echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24674 wxUSE_DRAG_AND_DROP=no
24675 fi
24676 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24677 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24678echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24679 wxUSE_DRAGIMAGE=no
24680 fi
24681 fi
24682
a848cd7e
SC
24683 if test "$wxUSE_MSW" = 1 ; then
24684 TOOLKIT=MSW
24685 GUIDIST=MSW_DIST
24686
ceec2216 24687 case "${host}" in
a848cd7e
SC
24688 *-*-mingw32* )
24689 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24690 esac
24691 fi
24692
24693 if test "$wxUSE_GTK" = 1; then
24694 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24695echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24696
24697 gtk_version_cached=1
24698 if test "${wx_cv_lib_gtk+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24700else
24701
24702 gtk_version_cached=0
24703 echo "$as_me:$LINENO: result: " >&5
24704echo "${ECHO_T}" >&6
24705
24706 GTK_MODULES=
24707 if test "$wxUSE_THREADS" = "yes"; then
24708 GTK_MODULES=gthread
24709 fi
24710
f597b41c 24711 wx_cv_lib_gtk=
f34ca037 24712 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24713 # Check whether --enable-gtktest or --disable-gtktest was given.
24714if test "${enable_gtktest+set}" = set; then
24715 enableval="$enable_gtktest"
24716
24717else
24718 enable_gtktest=yes
24719fi;
24720
24721 pkg_config_args=gtk+-2.0
24722 for module in . $GTK_MODULES
24723 do
24724 case "$module" in
24725 gthread)
24726 pkg_config_args="$pkg_config_args gthread-2.0"
24727 ;;
24728 esac
24729 done
24730
24731 no_gtk=""
24732
24733 # Extract the first word of "pkg-config", so it can be a program name with args.
24734set dummy pkg-config; ac_word=$2
24735echo "$as_me:$LINENO: checking for $ac_word" >&5
24736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24737if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24738 echo $ECHO_N "(cached) $ECHO_C" >&6
24739else
24740 case $PKG_CONFIG in
24741 [\\/]* | ?:[\\/]*)
24742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24743 ;;
24744 *)
24745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24746for as_dir in $PATH
24747do
24748 IFS=$as_save_IFS
24749 test -z "$as_dir" && as_dir=.
24750 for ac_exec_ext in '' $ac_executable_extensions; do
24751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24754 break 2
24755 fi
24756done
24757done
24758
24759 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24760 ;;
24761esac
24762fi
24763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24764
24765if test -n "$PKG_CONFIG"; then
24766 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24767echo "${ECHO_T}$PKG_CONFIG" >&6
24768else
24769 echo "$as_me:$LINENO: result: no" >&5
24770echo "${ECHO_T}no" >&6
24771fi
24772
24773
24774 if test x$PKG_CONFIG != xno ; then
24775 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24776 :
24777 else
c2218763 24778 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24779 no_gtk=yes
24780 PKG_CONFIG=no
24781 fi
24782 else
24783 no_gtk=yes
24784 fi
24785
24786 min_gtk_version=2.0.0
24787 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24788echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24789
24790 if test x$PKG_CONFIG != xno ; then
24791 ## don't try to run the test against uninstalled libtool libs
24792 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24793 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24794 enable_gtktest=no
24795 fi
24796
24797 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24798 :
24799 else
24800 no_gtk=yes
24801 fi
24802 fi
24803
24804 if test x"$no_gtk" = x ; then
24805 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24806 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24807 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24808 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24809 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24810 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24811 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24813 if test "x$enable_gtktest" = "xyes" ; then
24814 ac_save_CFLAGS="$CFLAGS"
24815 ac_save_LIBS="$LIBS"
24816 CFLAGS="$CFLAGS $GTK_CFLAGS"
24817 LIBS="$GTK_LIBS $LIBS"
24818 rm -f conf.gtktest
24819 if test "$cross_compiling" = yes; then
24820 echo $ac_n "cross compiling; assumed OK... $ac_c"
24821else
24822 cat >conftest.$ac_ext <<_ACEOF
24823/* confdefs.h. */
24824_ACEOF
24825cat confdefs.h >>conftest.$ac_ext
24826cat >>conftest.$ac_ext <<_ACEOF
24827/* end confdefs.h. */
24828
24829#include <gtk/gtk.h>
24830#include <stdio.h>
24831#include <stdlib.h>
24832
24833int
24834main ()
24835{
24836 int major, minor, micro;
24837 char *tmp_version;
24838
24839 system ("touch conf.gtktest");
24840
24841 /* HP/UX 9 (%@#!) writes to sscanf strings */
24842 tmp_version = g_strdup("$min_gtk_version");
24843 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24844 printf("%s, bad version string\n", "$min_gtk_version");
24845 exit(1);
24846 }
24847
24848 if ((gtk_major_version != $gtk_config_major_version) ||
24849 (gtk_minor_version != $gtk_config_minor_version) ||
24850 (gtk_micro_version != $gtk_config_micro_version))
24851 {
24852 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24853 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24854 gtk_major_version, gtk_minor_version, gtk_micro_version);
24855 printf ("*** was found! If pkg-config was correct, then it is best\n");
24856 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24857 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24858 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24859 printf("*** required on your system.\n");
24860 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24861 printf("*** to point to the correct configuration files\n");
24862 }
24863 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24864 (gtk_minor_version != GTK_MINOR_VERSION) ||
24865 (gtk_micro_version != GTK_MICRO_VERSION))
24866 {
24867 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24868 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24869 printf("*** library (version %d.%d.%d)\n",
24870 gtk_major_version, gtk_minor_version, gtk_micro_version);
24871 }
24872 else
24873 {
24874 if ((gtk_major_version > major) ||
24875 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24876 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24877 {
24878 return 0;
24879 }
24880 else
24881 {
24882 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24883 gtk_major_version, gtk_minor_version, gtk_micro_version);
24884 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24885 major, minor, micro);
24886 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24887 printf("***\n");
24888 printf("*** If you have already installed a sufficiently new version, this error\n");
24889 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24890 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24891 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24892 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24893 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24894 printf("*** so that the correct libraries are found at run-time))\n");
24895 }
24896 }
24897 return 1;
24898}
24899
24900_ACEOF
24901rm -f conftest$ac_exeext
24902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903 (eval $ac_link) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24908 (eval $ac_try) 2>&5
24909 ac_status=$?
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); }; }; then
24912 :
24913else
24914 echo "$as_me: program exited with status $ac_status" >&5
24915echo "$as_me: failed program was:" >&5
24916sed 's/^/| /' conftest.$ac_ext >&5
24917
24918( exit $ac_status )
24919no_gtk=yes
24920fi
ac1cb8d3 24921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24922fi
24923 CFLAGS="$ac_save_CFLAGS"
24924 LIBS="$ac_save_LIBS"
24925 fi
24926 fi
24927 if test "x$no_gtk" = x ; then
24928 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24929echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24930 wx_cv_lib_gtk=2.0
24931 else
24932 echo "$as_me:$LINENO: result: no" >&5
24933echo "${ECHO_T}no" >&6
24934 if test "$PKG_CONFIG" = "no" ; then
24935 echo "*** A new enough version of pkg-config was not found."
24936 echo "*** See http://pkgconfig.sourceforge.net"
24937 else
24938 if test -f conf.gtktest ; then
24939 :
24940 else
24941 echo "*** Could not run GTK+ test program, checking why..."
24942 ac_save_CFLAGS="$CFLAGS"
24943 ac_save_LIBS="$LIBS"
24944 CFLAGS="$CFLAGS $GTK_CFLAGS"
24945 LIBS="$LIBS $GTK_LIBS"
24946 cat >conftest.$ac_ext <<_ACEOF
24947/* confdefs.h. */
24948_ACEOF
24949cat confdefs.h >>conftest.$ac_ext
24950cat >>conftest.$ac_ext <<_ACEOF
24951/* end confdefs.h. */
24952
24953#include <gtk/gtk.h>
24954#include <stdio.h>
24955
24956int
24957main ()
24958{
24959 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24960 ;
24961 return 0;
24962}
24963_ACEOF
24964rm -f conftest.$ac_objext conftest$ac_exeext
24965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24966 (eval $ac_link) 2>conftest.er1
a848cd7e 24967 ac_status=$?
ac1cb8d3
VS
24968 grep -v '^ *+' conftest.er1 >conftest.err
24969 rm -f conftest.er1
24970 cat conftest.err >&5
a848cd7e
SC
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } &&
6ebeb4c7 24973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }; } &&
24979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24981 (eval $ac_try) 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); }; }; then
24985 echo "*** The test program compiled, but did not run. This usually means"
24986 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24987 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24988 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24989 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24990 echo "*** is required on your system"
24991 echo "***"
24992 echo "*** If you have an old version installed, it is best to remove it, although"
24993 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24994else
24995 echo "$as_me: failed program was:" >&5
24996sed 's/^/| /' conftest.$ac_ext >&5
24997
24998 echo "*** The test program failed to compile or link. See the file config.log for the"
24999 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25000fi
ac1cb8d3
VS
25001rm -f conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25003 CFLAGS="$ac_save_CFLAGS"
25004 LIBS="$ac_save_LIBS"
25005 fi
25006 fi
25007 GTK_CFLAGS=""
25008 GTK_LIBS=""
25009 :
25010 fi
25011
25012
25013 rm -f conf.gtktest
25014
f597b41c
MW
25015 fi
25016
f34ca037
MW
25017 if test -z "$wx_cv_lib_gtk"; then
25018 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25019
25020# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25021if test "${with_gtk_prefix+set}" = set; then
25022 withval="$with_gtk_prefix"
25023 gtk_config_prefix="$withval"
25024else
25025 gtk_config_prefix=""
25026fi;
25027
25028# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25029if test "${with_gtk_exec_prefix+set}" = set; then
25030 withval="$with_gtk_exec_prefix"
25031 gtk_config_exec_prefix="$withval"
25032else
25033 gtk_config_exec_prefix=""
25034fi;
25035# Check whether --enable-gtktest or --disable-gtktest was given.
25036if test "${enable_gtktest+set}" = set; then
25037 enableval="$enable_gtktest"
25038
25039else
25040 enable_gtktest=yes
25041fi;
25042
25043 for module in . $GTK_MODULES
25044 do
25045 case "$module" in
25046 gthread)
25047 gtk_config_args="$gtk_config_args gthread"
25048 ;;
25049 esac
25050 done
25051
25052 if test x$gtk_config_exec_prefix != x ; then
25053 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25054 if test x${GTK_CONFIG+set} != xset ; then
25055 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25056 fi
25057 fi
25058 if test x$gtk_config_prefix != x ; then
25059 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25060 if test x${GTK_CONFIG+set} != xset ; then
25061 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25062 fi
25063 fi
25064
25065 # Extract the first word of "gtk-config", so it can be a program name with args.
25066set dummy gtk-config; ac_word=$2
25067echo "$as_me:$LINENO: checking for $ac_word" >&5
25068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25069if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071else
25072 case $GTK_CONFIG in
25073 [\\/]* | ?:[\\/]*)
25074 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25075 ;;
25076 *)
25077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25078for as_dir in $PATH
25079do
25080 IFS=$as_save_IFS
25081 test -z "$as_dir" && as_dir=.
25082 for ac_exec_ext in '' $ac_executable_extensions; do
25083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25084 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25086 break 2
25087 fi
25088done
25089done
25090
25091 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25092 ;;
25093esac
25094fi
25095GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25096
25097if test -n "$GTK_CONFIG"; then
25098 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25099echo "${ECHO_T}$GTK_CONFIG" >&6
25100else
25101 echo "$as_me:$LINENO: result: no" >&5
25102echo "${ECHO_T}no" >&6
25103fi
25104
25105 min_gtk_version=1.2.7
25106 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25107echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25108 no_gtk=""
25109 if test "$GTK_CONFIG" = "no" ; then
25110 no_gtk=yes
25111 else
25112 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25113 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25114 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25115 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25116 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25118 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25120 if test "x$enable_gtktest" = "xyes" ; then
25121 ac_save_CFLAGS="$CFLAGS"
25122 ac_save_LIBS="$LIBS"
25123 CFLAGS="$CFLAGS $GTK_CFLAGS"
25124 LIBS="$GTK_LIBS $LIBS"
25125 rm -f conf.gtktest
25126 if test "$cross_compiling" = yes; then
25127 echo $ac_n "cross compiling; assumed OK... $ac_c"
25128else
25129 cat >conftest.$ac_ext <<_ACEOF
25130/* confdefs.h. */
25131_ACEOF
25132cat confdefs.h >>conftest.$ac_ext
25133cat >>conftest.$ac_ext <<_ACEOF
25134/* end confdefs.h. */
25135
25136#include <gtk/gtk.h>
25137#include <stdio.h>
25138#include <stdlib.h>
25139
25140int
25141main ()
25142{
25143 int major, minor, micro;
25144 char *tmp_version;
25145
25146 system ("touch conf.gtktest");
25147
25148 /* HP/UX 9 (%@#!) writes to sscanf strings */
25149 tmp_version = g_strdup("$min_gtk_version");
25150 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25151 printf("%s, bad version string\n", "$min_gtk_version");
25152 exit(1);
25153 }
25154
25155 if ((gtk_major_version != $gtk_config_major_version) ||
25156 (gtk_minor_version != $gtk_config_minor_version) ||
25157 (gtk_micro_version != $gtk_config_micro_version))
25158 {
25159 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25160 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25161 gtk_major_version, gtk_minor_version, gtk_micro_version);
25162 printf ("*** was found! If gtk-config was correct, then it is best\n");
25163 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25164 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25165 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25166 printf("*** required on your system.\n");
25167 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25168 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25169 printf("*** before re-running configure\n");
25170 }
25171#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25172 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25173 (gtk_minor_version != GTK_MINOR_VERSION) ||
25174 (gtk_micro_version != GTK_MICRO_VERSION))
25175 {
25176 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25177 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25178 printf("*** library (version %d.%d.%d)\n",
25179 gtk_major_version, gtk_minor_version, gtk_micro_version);
25180 }
25181#endif /* defined (GTK_MAJOR_VERSION) ... */
25182 else
25183 {
25184 if ((gtk_major_version > major) ||
25185 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25186 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25187 {
25188 return 0;
25189 }
25190 else
25191 {
25192 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25193 gtk_major_version, gtk_minor_version, gtk_micro_version);
25194 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25195 major, minor, micro);
25196 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25197 printf("***\n");
25198 printf("*** If you have already installed a sufficiently new version, this error\n");
25199 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25200 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25201 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25202 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25203 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25204 printf("*** so that the correct libraries are found at run-time))\n");
25205 }
25206 }
25207 return 1;
25208}
25209
25210_ACEOF
25211rm -f conftest$ac_exeext
25212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25213 (eval $ac_link) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 :
25223else
25224 echo "$as_me: program exited with status $ac_status" >&5
25225echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228( exit $ac_status )
25229no_gtk=yes
25230fi
ac1cb8d3 25231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25232fi
25233 CFLAGS="$ac_save_CFLAGS"
25234 LIBS="$ac_save_LIBS"
25235 fi
25236 fi
25237 if test "x$no_gtk" = x ; then
25238 echo "$as_me:$LINENO: result: yes" >&5
25239echo "${ECHO_T}yes" >&6
25240 wx_cv_lib_gtk=1.2.7
25241 else
25242 echo "$as_me:$LINENO: result: no" >&5
25243echo "${ECHO_T}no" >&6
25244 if test "$GTK_CONFIG" = "no" ; then
25245 echo "*** The gtk-config script installed by GTK could not be found"
25246 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25247 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25248 echo "*** full path to gtk-config."
25249 else
25250 if test -f conf.gtktest ; then
25251 :
25252 else
25253 echo "*** Could not run GTK test program, checking why..."
25254 CFLAGS="$CFLAGS $GTK_CFLAGS"
25255 LIBS="$LIBS $GTK_LIBS"
25256 cat >conftest.$ac_ext <<_ACEOF
25257/* confdefs.h. */
25258_ACEOF
25259cat confdefs.h >>conftest.$ac_ext
25260cat >>conftest.$ac_ext <<_ACEOF
25261/* end confdefs.h. */
25262
25263#include <gtk/gtk.h>
25264#include <stdio.h>
25265
25266int
25267main ()
25268{
25269 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25270 ;
25271 return 0;
25272}
25273_ACEOF
25274rm -f conftest.$ac_objext conftest$ac_exeext
25275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25276 (eval $ac_link) 2>conftest.er1
a848cd7e 25277 ac_status=$?
ac1cb8d3
VS
25278 grep -v '^ *+' conftest.er1 >conftest.err
25279 rm -f conftest.er1
25280 cat conftest.err >&5
a848cd7e
SC
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); } &&
6ebeb4c7 25283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; } &&
25289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; }; then
25295 echo "*** The test program compiled, but did not run. This usually means"
25296 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25297 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25298 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25299 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25300 echo "*** is required on your system"
25301 echo "***"
25302 echo "*** If you have an old version installed, it is best to remove it, although"
25303 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25304 echo "***"
25305 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25306 echo "*** came with the system with the command"
25307 echo "***"
25308 echo "*** rpm --erase --nodeps gtk gtk-devel"
25309else
25310 echo "$as_me: failed program was:" >&5
25311sed 's/^/| /' conftest.$ac_ext >&5
25312
25313 echo "*** The test program failed to compile or link. See the file config.log for the"
25314 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25315 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25316 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25317fi
ac1cb8d3
VS
25318rm -f conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25320 CFLAGS="$ac_save_CFLAGS"
25321 LIBS="$ac_save_LIBS"
25322 fi
25323 fi
25324 GTK_CFLAGS=""
25325 GTK_LIBS=""
25326 :
25327 fi
25328
25329
25330 rm -f conf.gtktest
25331
25332
f34ca037 25333 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25334
25335# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25336if test "${with_gtk_prefix+set}" = set; then
25337 withval="$with_gtk_prefix"
25338 gtk_config_prefix="$withval"
25339else
25340 gtk_config_prefix=""
25341fi;
25342
25343# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25344if test "${with_gtk_exec_prefix+set}" = set; then
25345 withval="$with_gtk_exec_prefix"
25346 gtk_config_exec_prefix="$withval"
25347else
25348 gtk_config_exec_prefix=""
25349fi;
25350# Check whether --enable-gtktest or --disable-gtktest was given.
25351if test "${enable_gtktest+set}" = set; then
25352 enableval="$enable_gtktest"
25353
25354else
25355 enable_gtktest=yes
25356fi;
25357
25358 for module in . $GTK_MODULES
25359 do
25360 case "$module" in
25361 gthread)
25362 gtk_config_args="$gtk_config_args gthread"
25363 ;;
25364 esac
25365 done
25366
25367 if test x$gtk_config_exec_prefix != x ; then
25368 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25369 if test x${GTK_CONFIG+set} != xset ; then
25370 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25371 fi
25372 fi
25373 if test x$gtk_config_prefix != x ; then
25374 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25375 if test x${GTK_CONFIG+set} != xset ; then
25376 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25377 fi
25378 fi
25379
25380 # Extract the first word of "gtk-config", so it can be a program name with args.
25381set dummy gtk-config; ac_word=$2
25382echo "$as_me:$LINENO: checking for $ac_word" >&5
25383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25384if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387 case $GTK_CONFIG in
25388 [\\/]* | ?:[\\/]*)
25389 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25390 ;;
25391 *)
25392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25393for as_dir in $PATH
25394do
25395 IFS=$as_save_IFS
25396 test -z "$as_dir" && as_dir=.
25397 for ac_exec_ext in '' $ac_executable_extensions; do
25398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25399 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25401 break 2
25402 fi
25403done
25404done
25405
25406 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25407 ;;
25408esac
25409fi
25410GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25411
25412if test -n "$GTK_CONFIG"; then
25413 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25414echo "${ECHO_T}$GTK_CONFIG" >&6
25415else
25416 echo "$as_me:$LINENO: result: no" >&5
25417echo "${ECHO_T}no" >&6
25418fi
25419
25420 min_gtk_version=1.2.3
25421 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25422echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25423 no_gtk=""
25424 if test "$GTK_CONFIG" = "no" ; then
25425 no_gtk=yes
25426 else
25427 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25428 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25429 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25430 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25431 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25432 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25433 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25434 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25435 if test "x$enable_gtktest" = "xyes" ; then
25436 ac_save_CFLAGS="$CFLAGS"
25437 ac_save_LIBS="$LIBS"
25438 CFLAGS="$CFLAGS $GTK_CFLAGS"
25439 LIBS="$GTK_LIBS $LIBS"
25440 rm -f conf.gtktest
25441 if test "$cross_compiling" = yes; then
25442 echo $ac_n "cross compiling; assumed OK... $ac_c"
25443else
25444 cat >conftest.$ac_ext <<_ACEOF
25445/* confdefs.h. */
25446_ACEOF
25447cat confdefs.h >>conftest.$ac_ext
25448cat >>conftest.$ac_ext <<_ACEOF
25449/* end confdefs.h. */
25450
25451#include <gtk/gtk.h>
25452#include <stdio.h>
25453#include <stdlib.h>
25454
25455int
25456main ()
25457{
25458 int major, minor, micro;
25459 char *tmp_version;
25460
25461 system ("touch conf.gtktest");
25462
25463 /* HP/UX 9 (%@#!) writes to sscanf strings */
25464 tmp_version = g_strdup("$min_gtk_version");
25465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25466 printf("%s, bad version string\n", "$min_gtk_version");
25467 exit(1);
25468 }
25469
25470 if ((gtk_major_version != $gtk_config_major_version) ||
25471 (gtk_minor_version != $gtk_config_minor_version) ||
25472 (gtk_micro_version != $gtk_config_micro_version))
25473 {
25474 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25476 gtk_major_version, gtk_minor_version, gtk_micro_version);
25477 printf ("*** was found! If gtk-config was correct, then it is best\n");
25478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25481 printf("*** required on your system.\n");
25482 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25483 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25484 printf("*** before re-running configure\n");
25485 }
25486#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25487 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25488 (gtk_minor_version != GTK_MINOR_VERSION) ||
25489 (gtk_micro_version != GTK_MICRO_VERSION))
25490 {
25491 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25492 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25493 printf("*** library (version %d.%d.%d)\n",
25494 gtk_major_version, gtk_minor_version, gtk_micro_version);
25495 }
25496#endif /* defined (GTK_MAJOR_VERSION) ... */
25497 else
25498 {
25499 if ((gtk_major_version > major) ||
25500 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25501 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25502 {
25503 return 0;
25504 }
25505 else
25506 {
25507 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25508 gtk_major_version, gtk_minor_version, gtk_micro_version);
25509 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25510 major, minor, micro);
25511 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25512 printf("***\n");
25513 printf("*** If you have already installed a sufficiently new version, this error\n");
25514 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25515 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25516 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25517 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25518 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25519 printf("*** so that the correct libraries are found at run-time))\n");
25520 }
25521 }
25522 return 1;
25523}
25524
25525_ACEOF
25526rm -f conftest$ac_exeext
25527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528 (eval $ac_link) 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 :
25538else
25539 echo "$as_me: program exited with status $ac_status" >&5
25540echo "$as_me: failed program was:" >&5
25541sed 's/^/| /' conftest.$ac_ext >&5
25542
25543( exit $ac_status )
25544no_gtk=yes
25545fi
ac1cb8d3 25546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25547fi
25548 CFLAGS="$ac_save_CFLAGS"
25549 LIBS="$ac_save_LIBS"
25550 fi
25551 fi
25552 if test "x$no_gtk" = x ; then
25553 echo "$as_me:$LINENO: result: yes" >&5
25554echo "${ECHO_T}yes" >&6
25555 wx_cv_lib_gtk=1.2.3
25556 else
25557 echo "$as_me:$LINENO: result: no" >&5
25558echo "${ECHO_T}no" >&6
25559 if test "$GTK_CONFIG" = "no" ; then
25560 echo "*** The gtk-config script installed by GTK could not be found"
25561 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25562 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25563 echo "*** full path to gtk-config."
25564 else
25565 if test -f conf.gtktest ; then
25566 :
25567 else
25568 echo "*** Could not run GTK test program, checking why..."
25569 CFLAGS="$CFLAGS $GTK_CFLAGS"
25570 LIBS="$LIBS $GTK_LIBS"
25571 cat >conftest.$ac_ext <<_ACEOF
25572/* confdefs.h. */
25573_ACEOF
25574cat confdefs.h >>conftest.$ac_ext
25575cat >>conftest.$ac_ext <<_ACEOF
25576/* end confdefs.h. */
25577
25578#include <gtk/gtk.h>
25579#include <stdio.h>
25580
25581int
25582main ()
25583{
25584 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25585 ;
25586 return 0;
25587}
25588_ACEOF
25589rm -f conftest.$ac_objext conftest$ac_exeext
25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25591 (eval $ac_link) 2>conftest.er1
a848cd7e 25592 ac_status=$?
ac1cb8d3
VS
25593 grep -v '^ *+' conftest.er1 >conftest.err
25594 rm -f conftest.er1
25595 cat conftest.err >&5
a848cd7e
SC
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
6ebeb4c7 25598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 echo "*** The test program compiled, but did not run. This usually means"
25611 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25612 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25613 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25614 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25615 echo "*** is required on your system"
25616 echo "***"
25617 echo "*** If you have an old version installed, it is best to remove it, although"
25618 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25619 echo "***"
25620 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25621 echo "*** came with the system with the command"
25622 echo "***"
25623 echo "*** rpm --erase --nodeps gtk gtk-devel"
25624else
25625 echo "$as_me: failed program was:" >&5
25626sed 's/^/| /' conftest.$ac_ext >&5
25627
25628 echo "*** The test program failed to compile or link. See the file config.log for the"
25629 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25630 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25631 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25632fi
ac1cb8d3
VS
25633rm -f conftest.err conftest.$ac_objext \
25634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25635 CFLAGS="$ac_save_CFLAGS"
25636 LIBS="$ac_save_LIBS"
25637 fi
25638 fi
25639 GTK_CFLAGS=""
25640 GTK_LIBS=""
25641 :
25642 fi
25643
25644
25645 rm -f conf.gtktest
25646
f34ca037 25647 fi
a848cd7e
SC
25648 fi
25649 fi
25650
25651 if test -z "$wx_cv_lib_gtk"; then
25652 wx_cv_lib_gtk=none
25653 else
25654 wx_cv_cflags_gtk=$GTK_CFLAGS
25655 wx_cv_libs_gtk=$GTK_LIBS
25656 fi
25657
25658
25659fi
25660
25661
25662 if test "$gtk_version_cached" = 1; then
25663 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25664echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25665 fi
25666
25667 case "$wx_cv_lib_gtk" in
25668 2.0) WXGTK20=1
25669 TOOLKIT_VERSION=2
25670 ;;
25671 1.2.7) WXGTK127=1
25672 WXGTK12=1
25673 ;;
25674 1.2.3) WXGTK12=1
25675 ;;
25676 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25677The development files for GTK+ were not found. For GTK+ 2, please
25678ensure that pkg-config is in the path and that gtk+-2.0.pc is
25679installed. For GTK+ 1.2 please check that gtk-config is in the path,
25680and that the version is 1.2.3 or above. Also check that the
25681libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25682--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25683 " >&5
25684echo "$as_me: error:
f597b41c
MW
25685The development files for GTK+ were not found. For GTK+ 2, please
25686ensure that pkg-config is in the path and that gtk+-2.0.pc is
25687installed. For GTK+ 1.2 please check that gtk-config is in the path,
25688and that the version is 1.2.3 or above. Also check that the
25689libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25690--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25691 " >&2;}
25692 { (exit 1); exit 1; }; }
25693 ;;
25694 esac
25695
25696 if test "$WXGTK20" = 1; then
304205f1
VS
25697 save_CFLAGS="$CFLAGS"
25698 save_LIBS="$LIBS"
9d271838 25699 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25700 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25701
9755e73b 25702
304205f1
VS
25703for ac_func in pango_font_family_is_monospace
25704do
25705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25706echo "$as_me:$LINENO: checking for $ac_func" >&5
25707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25708if eval "test \"\${$as_ac_var+set}\" = set"; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25710else
25711 cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h. */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h. */
25717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25719#define $ac_func innocuous_$ac_func
25720
25721/* System header to define __stub macros and hopefully few prototypes,
25722 which can conflict with char $ac_func (); below.
25723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25724 <limits.h> exists even on freestanding compilers. */
25725
25726#ifdef __STDC__
25727# include <limits.h>
25728#else
25729# include <assert.h>
25730#endif
25731
25732#undef $ac_func
25733
25734/* Override any gcc2 internal prototype to avoid an error. */
25735#ifdef __cplusplus
25736extern "C"
25737{
25738#endif
25739/* We use char because int might match the return type of a gcc2
25740 builtin and then its argument prototype would still apply. */
25741char $ac_func ();
25742/* The GNU C library defines this for functions which it implements
25743 to always fail with ENOSYS. Some functions are actually named
25744 something starting with __ and the normal name is an alias. */
25745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25746choke me
25747#else
25748char (*f) () = $ac_func;
25749#endif
25750#ifdef __cplusplus
25751}
25752#endif
25753
25754int
25755main ()
25756{
25757return f != $ac_func;
25758 ;
25759 return 0;
25760}
25761_ACEOF
25762rm -f conftest.$ac_objext conftest$ac_exeext
25763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25764 (eval $ac_link) 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } &&
6ebeb4c7 25771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; } &&
25777 { ac_try='test -s conftest$ac_exeext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783 eval "$as_ac_var=yes"
25784else
25785 echo "$as_me: failed program was:" >&5
25786sed 's/^/| /' conftest.$ac_ext >&5
25787
25788eval "$as_ac_var=no"
25789fi
25790rm -f conftest.err conftest.$ac_objext \
25791 conftest$ac_exeext conftest.$ac_ext
25792fi
25793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25795if test `eval echo '${'$as_ac_var'}'` = yes; then
25796 cat >>confdefs.h <<_ACEOF
25797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25798_ACEOF
25799
25800fi
25801done
25802
9755e73b 25803
abc736fd
MW
25804 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25805echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25806 cat >conftest.$ac_ext <<_ACEOF
25807/* confdefs.h. */
25808_ACEOF
25809cat confdefs.h >>conftest.$ac_ext
25810cat >>conftest.$ac_ext <<_ACEOF
25811/* end confdefs.h. */
25812
25813 #include <gtk/gtk.h>
25814
25815int
25816main ()
25817{
25818
25819 void *f = gtk_icon_size_lookup;
25820
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825rm -f conftest.$ac_objext
25826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25827 (eval $ac_compile) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
6ebeb4c7 25834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); }; } &&
25840 { ac_try='test -s conftest.$ac_objext'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; }; then
25846
25847 echo "$as_me:$LINENO: result: no" >&5
25848echo "${ECHO_T}no" >&6
25849
25850else
25851 echo "$as_me: failed program was:" >&5
25852sed 's/^/| /' conftest.$ac_ext >&5
25853
25854
25855 cat >>confdefs.h <<\_ACEOF
25856#define NEED_GTK_ICON_SIZE_LOOKUP 1
25857_ACEOF
25858
25859 echo "$as_me:$LINENO: result: yes" >&5
25860echo "${ECHO_T}yes" >&6
25861
25862fi
25863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25864
9755e73b
VS
25865 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25866echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25867 cat >conftest.$ac_ext <<_ACEOF
25868/* confdefs.h. */
25869_ACEOF
25870cat confdefs.h >>conftest.$ac_ext
25871cat >>conftest.$ac_ext <<_ACEOF
25872/* end confdefs.h. */
25873
25874 #include <gtk/gtk.h>
25875
25876int
25877main ()
25878{
25879
25880 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 25881 Not GTK+ 2.4
9755e73b
VS
25882 #endif
25883
25884 ;
25885 return 0;
25886}
25887_ACEOF
25888rm -f conftest.$ac_objext
25889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25890 (eval $ac_compile) 2>conftest.er1
25891 ac_status=$?
25892 grep -v '^ *+' conftest.er1 >conftest.err
25893 rm -f conftest.er1
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } &&
6ebeb4c7 25897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; } &&
25903 { ac_try='test -s conftest.$ac_objext'
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; }; then
25909
25910 cat >>confdefs.h <<\_ACEOF
25911#define __WXGTK24__ 1
25912_ACEOF
25913
25914 echo "$as_me:$LINENO: result: yes" >&5
25915echo "${ECHO_T}yes" >&6
25916
25917else
25918 echo "$as_me: failed program was:" >&5
25919sed 's/^/| /' conftest.$ac_ext >&5
25920
25921
25922 echo "$as_me:$LINENO: result: no" >&5
25923echo "${ECHO_T}no" >&6
25924
25925fi
25926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927
304205f1
VS
25928 CFLAGS="$save_CFLAGS"
25929 LIBS="$save_LIBS"
a848cd7e
SC
25930 else
25931 if test "$wxUSE_UNICODE" = "yes"; then
25932 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25933echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25934 wxUSE_UNICODE=no
25935 fi
25936 fi
25937
25938 if test "$USE_DARWIN" != 1; then
25939
25940for ac_func in poll
25941do
25942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25943echo "$as_me:$LINENO: checking for $ac_func" >&5
25944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25945if eval "test \"\${$as_ac_var+set}\" = set"; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25947else
25948 cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
ac1cb8d3
VS
25954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25956#define $ac_func innocuous_$ac_func
25957
a848cd7e
SC
25958/* System header to define __stub macros and hopefully few prototypes,
25959 which can conflict with char $ac_func (); below.
25960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25961 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25962
a848cd7e
SC
25963#ifdef __STDC__
25964# include <limits.h>
25965#else
25966# include <assert.h>
25967#endif
ac1cb8d3
VS
25968
25969#undef $ac_func
25970
a848cd7e
SC
25971/* Override any gcc2 internal prototype to avoid an error. */
25972#ifdef __cplusplus
25973extern "C"
25974{
25975#endif
25976/* We use char because int might match the return type of a gcc2
25977 builtin and then its argument prototype would still apply. */
25978char $ac_func ();
25979/* The GNU C library defines this for functions which it implements
25980 to always fail with ENOSYS. Some functions are actually named
25981 something starting with __ and the normal name is an alias. */
25982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25983choke me
25984#else
25985char (*f) () = $ac_func;
25986#endif
25987#ifdef __cplusplus
25988}
25989#endif
25990
25991int
25992main ()
25993{
25994return f != $ac_func;
25995 ;
25996 return 0;
25997}
25998_ACEOF
25999rm -f conftest.$ac_objext conftest$ac_exeext
26000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26001 (eval $ac_link) 2>conftest.er1
a848cd7e 26002 ac_status=$?
ac1cb8d3
VS
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
a848cd7e
SC
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
6ebeb4c7 26008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; } &&
26014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; }; then
26020 eval "$as_ac_var=yes"
26021else
26022 echo "$as_me: failed program was:" >&5
26023sed 's/^/| /' conftest.$ac_ext >&5
26024
26025eval "$as_ac_var=no"
26026fi
ac1cb8d3
VS
26027rm -f conftest.err conftest.$ac_objext \
26028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26029fi
26030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26032if test `eval echo '${'$as_ac_var'}'` = yes; then
26033 cat >>confdefs.h <<_ACEOF
26034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26035_ACEOF
26036
26037fi
26038done
26039
26040 fi
26041
26042 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26043 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26044
26045 AFMINSTALL=afminstall
26046 TOOLKIT=GTK
26047 GUIDIST=GTK_DIST
26048
26049 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26050echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26051if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26052 echo $ECHO_N "(cached) $ECHO_C" >&6
26053else
26054 ac_check_lib_save_LIBS=$LIBS
26055LIBS="-lgdk $LIBS"
26056cat >conftest.$ac_ext <<_ACEOF
26057/* confdefs.h. */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h. */
26062
26063/* Override any gcc2 internal prototype to avoid an error. */
26064#ifdef __cplusplus
26065extern "C"
26066#endif
26067/* We use char because int might match the return type of a gcc2
26068 builtin and then its argument prototype would still apply. */
26069char gdk_im_open ();
26070int
26071main ()
26072{
26073gdk_im_open ();
26074 ;
26075 return 0;
26076}
26077_ACEOF
26078rm -f conftest.$ac_objext conftest$ac_exeext
26079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26080 (eval $ac_link) 2>conftest.er1
a848cd7e 26081 ac_status=$?
ac1cb8d3
VS
26082 grep -v '^ *+' conftest.er1 >conftest.err
26083 rm -f conftest.er1
26084 cat conftest.err >&5
a848cd7e
SC
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } &&
6ebeb4c7 26087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_lib_gdk_gdk_im_open=yes
26100else
26101 echo "$as_me: failed program was:" >&5
26102sed 's/^/| /' conftest.$ac_ext >&5
26103
26104ac_cv_lib_gdk_gdk_im_open=no
26105fi
ac1cb8d3
VS
26106rm -f conftest.err conftest.$ac_objext \
26107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26108LIBS=$ac_check_lib_save_LIBS
26109fi
26110echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26111echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26112if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26113 cat >>confdefs.h <<\_ACEOF
26114#define HAVE_XIM 1
26115_ACEOF
26116
26117fi
26118
26119
26120
26121 if test "$wxUSE_GPE" = "yes"; then
26122 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26123echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26124
26125ac_find_libraries=
26126for ac_dir in $SEARCH_LIB /usr/lib;
26127 do
3eca31dc 26128 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26129 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26130 ac_find_libraries=$ac_dir
26131 break 2
26132 fi
26133 done
26134 done
26135
26136 if test "$ac_find_libraries" != "" ; then
26137
26138 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26139 result=$?
26140 if test $result = 0; then
26141 ac_path_to_link=""
26142 else
26143 ac_path_to_link=" -L$ac_find_libraries"
26144 fi
26145
26146 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26147 WXGPE=1
26148 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26149echo "${ECHO_T}found at $ac_find_libraries" >&6
26150 else
26151 echo "$as_me:$LINENO: result: not found" >&5
26152echo "${ECHO_T}not found" >&6
26153 fi
26154
26155 fi
26156 fi
26157
26158 if test "$wxUSE_MGL" = 1; then
26159 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26160echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26161 if test "x$MGL_ROOT" = x ; then
26162 echo "$as_me:$LINENO: result: not found" >&5
26163echo "${ECHO_T}not found" >&6
26164 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26165echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26166 { (exit 1); exit 1; }; }
26167 else
26168 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26169echo "${ECHO_T}$MGL_ROOT" >&6
26170 fi
26171
26172 echo "$as_me:$LINENO: checking for libmgl location" >&5
26173echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26174 case "${host}" in
26175 *-*-linux* )
26176 if test "x$wxUSE_SHARED" = xyes ; then
26177 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26178 else
26179 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26180 fi
26181 ;;
26182 *-pc-msdosdjgpp )
26183 mgl_os_candidates="dos32/dj2"
26184 ;;
26185 *)
26186 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26187echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26188 { (exit 1); exit 1; }; }
26189 esac
26190
26191 mgl_lib_type=""
26192 mgl_os=""
26193
26194 for mgl_os_i in $mgl_os_candidates ; do
26195 if test "x$mgl_os" = x ; then
26196 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26197 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26198 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26199 mgl_lib_type=debug
26200 mgl_os=$mgl_os_i
26201 fi
26202 fi
26203 if test "x$mgl_lib_type" = x ; then
26204 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26205 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26206 mgl_lib_type=release
26207 mgl_os=$mgl_os_i
26208 fi
26209 fi
26210 fi
26211 done
26212
26213 if test "x$mgl_os" = x ; then
26214 echo "$as_me:$LINENO: result: not found" >&5
26215echo "${ECHO_T}not found" >&6
26216 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26217echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26218 { (exit 1); exit 1; }; }
26219 fi
26220 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26221echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26222
26223 wxUSE_UNIVERSAL="yes"
26224
26225 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26226 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26227
26228 AFMINSTALL=afminstall
26229 TOOLKIT=MGL
26230 GUIDIST=MGL_DIST
26231 fi
26232
26233 if test "$wxUSE_MICROWIN" = 1; then
26234 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26235echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26236 if test "x$MICROWINDOWS" = x ; then
26237 echo "$as_me:$LINENO: result: not found" >&5
26238echo "${ECHO_T}not found" >&6
26239 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26240echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26241 { (exit 1); exit 1; }; }
26242 else
26243 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26244echo "${ECHO_T}$MICROWINDOWS" >&6
26245 fi
26246
26247 if test -f $MICROWINDOWS/lib/libmwin.a; then
26248 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26249echo "${ECHO_T}MicroWindows' libraries found." >&6
26250 else
26251 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26252echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26253 { (exit 1); exit 1; }; }
26254 fi
26255
26256 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26257 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26258
26259 wxUSE_UNIVERSAL="yes"
26260
26261 AFMINSTALL=afminstall
26262 TOOLKIT=MICROWIN
26263 GUIDIST=MICROWIN_DIST
26264
26265 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26266 fi
26267
74b84332 26268 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26269
26270if test "x$ac_path_x_has_been_run" != xyes; then
26271 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26272echo $ECHO_N "checking for X... $ECHO_C" >&6
26273
6ebeb4c7 26274ac_path_x_has_been_run=yes
a848cd7e
SC
26275
26276# Check whether --with-x or --without-x was given.
26277if test "${with_x+set}" = set; then
26278 withval="$with_x"
26279
26280fi;
26281# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26282if test "x$with_x" = xno; then
26283 # The user explicitly disabled X.
26284 have_x=disabled
26285else
26286 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26287 # Both variables are already set.
26288 have_x=yes
26289 else
26290 if test "${ac_cv_have_x+set}" = set; then
26291 echo $ECHO_N "(cached) $ECHO_C" >&6
26292else
26293 # One or both of the vars are not set, and there is no cached value.
26294ac_x_includes=no ac_x_libraries=no
26295rm -fr conftest.dir
26296if mkdir conftest.dir; then
26297 cd conftest.dir
26298 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26299 cat >Imakefile <<'_ACEOF'
26300acfindx:
26301 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26302_ACEOF
26303 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26304 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26305 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26306 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26307 for ac_extension in a so sl; do
26308 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26309 test -f $ac_im_libdir/libX11.$ac_extension; then
26310 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26311 fi
26312 done
26313 # Screen out bogus values from the imake configuration. They are
26314 # bogus both because they are the default anyway, and because
26315 # using them would break gcc on systems where it needs fixed includes.
26316 case $ac_im_incroot in
26317 /usr/include) ;;
26318 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26319 esac
26320 case $ac_im_usrlibdir in
26321 /usr/lib | /lib) ;;
26322 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26323 esac
26324 fi
26325 cd ..
26326 rm -fr conftest.dir
26327fi
26328
26329# Standard set of common directories for X headers.
26330# Check X11 before X11Rn because it is often a symlink to the current release.
26331ac_x_header_dirs='
26332/usr/X11/include
26333/usr/X11R6/include
26334/usr/X11R5/include
26335/usr/X11R4/include
26336
26337/usr/include/X11
26338/usr/include/X11R6
26339/usr/include/X11R5
26340/usr/include/X11R4
26341
26342/usr/local/X11/include
26343/usr/local/X11R6/include
26344/usr/local/X11R5/include
26345/usr/local/X11R4/include
26346
26347/usr/local/include/X11
26348/usr/local/include/X11R6
26349/usr/local/include/X11R5
26350/usr/local/include/X11R4
26351
26352/usr/X386/include
26353/usr/x386/include
26354/usr/XFree86/include/X11
26355
26356/usr/include
26357/usr/local/include
26358/usr/unsupported/include
26359/usr/athena/include
26360/usr/local/x11r5/include
26361/usr/lpp/Xamples/include
26362
26363/usr/openwin/include
26364/usr/openwin/share/include'
26365
26366if test "$ac_x_includes" = no; then
6ebeb4c7 26367 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26368 # First, try using that file with no special directory specified.
26369 cat >conftest.$ac_ext <<_ACEOF
26370/* confdefs.h. */
26371_ACEOF
26372cat confdefs.h >>conftest.$ac_ext
26373cat >>conftest.$ac_ext <<_ACEOF
26374/* end confdefs.h. */
26375#include <X11/Intrinsic.h>
26376_ACEOF
26377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } >/dev/null; then
26385 if test -s conftest.err; then
26386 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26388 else
26389 ac_cpp_err=
26390 fi
26391else
26392 ac_cpp_err=yes
26393fi
26394if test -z "$ac_cpp_err"; then
26395 # We can compile using X headers with no special include directory.
26396ac_x_includes=
26397else
26398 echo "$as_me: failed program was:" >&5
26399sed 's/^/| /' conftest.$ac_ext >&5
26400
26401 for ac_dir in $ac_x_header_dirs; do
26402 if test -r "$ac_dir/X11/Intrinsic.h"; then
26403 ac_x_includes=$ac_dir
26404 break
26405 fi
26406done
26407fi
26408rm -f conftest.err conftest.$ac_ext
26409fi # $ac_x_includes = no
26410
26411if test "$ac_x_libraries" = no; then
26412 # Check for the libraries.
26413 # See if we find them without any special options.
26414 # Don't add to $LIBS permanently.
26415 ac_save_LIBS=$LIBS
26416 LIBS="-lXt $LIBS"
26417 cat >conftest.$ac_ext <<_ACEOF
26418/* confdefs.h. */
26419_ACEOF
26420cat confdefs.h >>conftest.$ac_ext
26421cat >>conftest.$ac_ext <<_ACEOF
26422/* end confdefs.h. */
26423#include <X11/Intrinsic.h>
26424int
26425main ()
26426{
26427XtMalloc (0)
26428 ;
26429 return 0;
26430}
26431_ACEOF
26432rm -f conftest.$ac_objext conftest$ac_exeext
26433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26434 (eval $ac_link) 2>conftest.er1
a848cd7e 26435 ac_status=$?
ac1cb8d3
VS
26436 grep -v '^ *+' conftest.er1 >conftest.err
26437 rm -f conftest.er1
26438 cat conftest.err >&5
a848cd7e
SC
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
6ebeb4c7 26441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443 (eval $ac_try) 2>&5
26444 ac_status=$?
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); }; } &&
26447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 LIBS=$ac_save_LIBS
26454# We can link X programs with no special library path.
26455ac_x_libraries=
26456else
26457 echo "$as_me: failed program was:" >&5
26458sed 's/^/| /' conftest.$ac_ext >&5
26459
26460LIBS=$ac_save_LIBS
26461for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26462do
26463 # Don't even attempt the hair of trying to link an X program!
26464 for ac_extension in a so sl; do
26465 if test -r $ac_dir/libXt.$ac_extension; then
26466 ac_x_libraries=$ac_dir
26467 break 2
26468 fi
26469 done
26470done
26471fi
ac1cb8d3
VS
26472rm -f conftest.err conftest.$ac_objext \
26473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26474fi # $ac_x_libraries = no
26475
26476if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26477 # Didn't find X anywhere. Cache the known absence of X.
26478 ac_cv_have_x="have_x=no"
26479else
26480 # Record where we found X for the cache.
26481 ac_cv_have_x="have_x=yes \
ac1cb8d3 26482 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26483fi
26484fi
26485
26486 fi
26487 eval "$ac_cv_have_x"
26488fi # $with_x != no
26489
26490if test "$have_x" != yes; then
26491 echo "$as_me:$LINENO: result: $have_x" >&5
26492echo "${ECHO_T}$have_x" >&6
26493 no_x=yes
26494else
26495 # If each of the values was on the command line, it overrides each guess.
26496 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26497 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26498 # Update the cache value to reflect the command line values.
26499 ac_cv_have_x="have_x=yes \
26500 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26501 # It might be that x_includes is empty (headers are found in the
26502 # standard search path. Then output the corresponding message
26503 ac_out_x_includes=$x_includes
26504 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26505 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26506echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26507fi
26508
6ebeb4c7 26509fi
a848cd7e
SC
26510if test "$no_x" = yes; then
26511 # Not all programs may use this symbol, but it does not hurt to define it.
26512
26513cat >>confdefs.h <<\_ACEOF
26514#define X_DISPLAY_MISSING 1
26515_ACEOF
26516
26517 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26518else
26519 if test -n "$x_includes"; then
26520 X_CFLAGS="$X_CFLAGS -I$x_includes"
26521 fi
26522
26523 # It would also be nice to do this for all -L options, not just this one.
26524 if test -n "$x_libraries"; then
26525 X_LIBS="$X_LIBS -L$x_libraries"
26526 # For Solaris; some versions of Sun CC require a space after -R and
26527 # others require no space. Words are not sufficient . . . .
26528 case `(uname -sr) 2>/dev/null` in
26529 "SunOS 5"*)
26530 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26531echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26532 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26533 cat >conftest.$ac_ext <<_ACEOF
26534/* confdefs.h. */
26535_ACEOF
26536cat confdefs.h >>conftest.$ac_ext
26537cat >>conftest.$ac_ext <<_ACEOF
26538/* end confdefs.h. */
26539
26540int
26541main ()
26542{
26543
26544 ;
26545 return 0;
26546}
26547_ACEOF
26548rm -f conftest.$ac_objext conftest$ac_exeext
26549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26550 (eval $ac_link) 2>conftest.er1
a848cd7e 26551 ac_status=$?
ac1cb8d3
VS
26552 grep -v '^ *+' conftest.er1 >conftest.err
26553 rm -f conftest.er1
26554 cat conftest.err >&5
a848cd7e
SC
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
6ebeb4c7 26557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; } &&
26563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; }; then
26569 ac_R_nospace=yes
26570else
26571 echo "$as_me: failed program was:" >&5
26572sed 's/^/| /' conftest.$ac_ext >&5
26573
26574ac_R_nospace=no
26575fi
ac1cb8d3
VS
26576rm -f conftest.err conftest.$ac_objext \
26577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26578 if test $ac_R_nospace = yes; then
26579 echo "$as_me:$LINENO: result: no" >&5
26580echo "${ECHO_T}no" >&6
26581 X_LIBS="$X_LIBS -R$x_libraries"
26582 else
26583 LIBS="$ac_xsave_LIBS -R $x_libraries"
26584 cat >conftest.$ac_ext <<_ACEOF
26585/* confdefs.h. */
26586_ACEOF
26587cat confdefs.h >>conftest.$ac_ext
26588cat >>conftest.$ac_ext <<_ACEOF
26589/* end confdefs.h. */
26590
26591int
26592main ()
26593{
26594
26595 ;
26596 return 0;
26597}
26598_ACEOF
26599rm -f conftest.$ac_objext conftest$ac_exeext
26600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26601 (eval $ac_link) 2>conftest.er1
a848cd7e 26602 ac_status=$?
ac1cb8d3
VS
26603 grep -v '^ *+' conftest.er1 >conftest.err
26604 rm -f conftest.er1
26605 cat conftest.err >&5
a848cd7e
SC
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
6ebeb4c7 26608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_R_space=yes
26621else
26622 echo "$as_me: failed program was:" >&5
26623sed 's/^/| /' conftest.$ac_ext >&5
26624
26625ac_R_space=no
26626fi
ac1cb8d3
VS
26627rm -f conftest.err conftest.$ac_objext \
26628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26629 if test $ac_R_space = yes; then
26630 echo "$as_me:$LINENO: result: yes" >&5
26631echo "${ECHO_T}yes" >&6
26632 X_LIBS="$X_LIBS -R $x_libraries"
26633 else
26634 echo "$as_me:$LINENO: result: neither works" >&5
26635echo "${ECHO_T}neither works" >&6
26636 fi
26637 fi
26638 LIBS=$ac_xsave_LIBS
26639 esac
26640 fi
26641
26642 # Check for system-dependent libraries X programs must link with.
26643 # Do this before checking for the system-independent R6 libraries
26644 # (-lICE), since we may need -lsocket or whatever for X linking.
26645
26646 if test "$ISC" = yes; then
26647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26648 else
26649 # Martyn Johnson says this is needed for Ultrix, if the X
26650 # libraries were built with DECnet support. And Karl Berry says
26651 # the Alpha needs dnet_stub (dnet does not exist).
26652 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26653 cat >conftest.$ac_ext <<_ACEOF
26654/* confdefs.h. */
26655_ACEOF
26656cat confdefs.h >>conftest.$ac_ext
26657cat >>conftest.$ac_ext <<_ACEOF
26658/* end confdefs.h. */
26659
26660/* Override any gcc2 internal prototype to avoid an error. */
26661#ifdef __cplusplus
26662extern "C"
26663#endif
26664/* We use char because int might match the return type of a gcc2
26665 builtin and then its argument prototype would still apply. */
26666char XOpenDisplay ();
26667int
26668main ()
26669{
26670XOpenDisplay ();
26671 ;
26672 return 0;
26673}
26674_ACEOF
26675rm -f conftest.$ac_objext conftest$ac_exeext
26676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26677 (eval $ac_link) 2>conftest.er1
a848cd7e 26678 ac_status=$?
ac1cb8d3
VS
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
a848cd7e
SC
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
6ebeb4c7 26684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 :
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26702echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26703if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706 ac_check_lib_save_LIBS=$LIBS
26707LIBS="-ldnet $LIBS"
26708cat >conftest.$ac_ext <<_ACEOF
26709/* confdefs.h. */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h. */
26714
26715/* Override any gcc2 internal prototype to avoid an error. */
26716#ifdef __cplusplus
26717extern "C"
26718#endif
26719/* We use char because int might match the return type of a gcc2
26720 builtin and then its argument prototype would still apply. */
26721char dnet_ntoa ();
26722int
26723main ()
26724{
26725dnet_ntoa ();
26726 ;
26727 return 0;
26728}
26729_ACEOF
26730rm -f conftest.$ac_objext conftest$ac_exeext
26731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26732 (eval $ac_link) 2>conftest.er1
a848cd7e 26733 ac_status=$?
ac1cb8d3
VS
26734 grep -v '^ *+' conftest.er1 >conftest.err
26735 rm -f conftest.er1
26736 cat conftest.err >&5
a848cd7e
SC
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
6ebeb4c7 26739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741 (eval $ac_try) 2>&5
26742 ac_status=$?
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); }; } &&
26745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; }; then
26751 ac_cv_lib_dnet_dnet_ntoa=yes
26752else
26753 echo "$as_me: failed program was:" >&5
26754sed 's/^/| /' conftest.$ac_ext >&5
26755
26756ac_cv_lib_dnet_dnet_ntoa=no
26757fi
ac1cb8d3
VS
26758rm -f conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26760LIBS=$ac_check_lib_save_LIBS
26761fi
26762echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26763echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26764if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26765 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26766fi
26767
26768 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26769 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26770echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26771if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26772 echo $ECHO_N "(cached) $ECHO_C" >&6
26773else
26774 ac_check_lib_save_LIBS=$LIBS
26775LIBS="-ldnet_stub $LIBS"
26776cat >conftest.$ac_ext <<_ACEOF
26777/* confdefs.h. */
26778_ACEOF
26779cat confdefs.h >>conftest.$ac_ext
26780cat >>conftest.$ac_ext <<_ACEOF
26781/* end confdefs.h. */
26782
26783/* Override any gcc2 internal prototype to avoid an error. */
26784#ifdef __cplusplus
26785extern "C"
26786#endif
26787/* We use char because int might match the return type of a gcc2
26788 builtin and then its argument prototype would still apply. */
26789char dnet_ntoa ();
26790int
26791main ()
26792{
26793dnet_ntoa ();
26794 ;
26795 return 0;
26796}
26797_ACEOF
26798rm -f conftest.$ac_objext conftest$ac_exeext
26799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26800 (eval $ac_link) 2>conftest.er1
a848cd7e 26801 ac_status=$?
ac1cb8d3
VS
26802 grep -v '^ *+' conftest.er1 >conftest.err
26803 rm -f conftest.er1
26804 cat conftest.err >&5
a848cd7e
SC
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } &&
6ebeb4c7 26807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26809 (eval $ac_try) 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; } &&
26813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; }; then
26819 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26820else
26821 echo "$as_me: failed program was:" >&5
26822sed 's/^/| /' conftest.$ac_ext >&5
26823
26824ac_cv_lib_dnet_stub_dnet_ntoa=no
26825fi
ac1cb8d3
VS
26826rm -f conftest.err conftest.$ac_objext \
26827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26828LIBS=$ac_check_lib_save_LIBS
26829fi
26830echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26831echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26832if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26833 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26834fi
26835
26836 fi
26837fi
ac1cb8d3
VS
26838rm -f conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26840 LIBS="$ac_xsave_LIBS"
26841
26842 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26843 # to get the SysV transport functions.
26844 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26845 # needs -lnsl.
26846 # The nsl library prevents programs from opening the X display
26847 # on Irix 5.2, according to T.E. Dickey.
26848 # The functions gethostbyname, getservbyname, and inet_addr are
26849 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26850 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26851echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26852if test "${ac_cv_func_gethostbyname+set}" = set; then
26853 echo $ECHO_N "(cached) $ECHO_C" >&6
26854else
26855 cat >conftest.$ac_ext <<_ACEOF
26856/* confdefs.h. */
26857_ACEOF
26858cat confdefs.h >>conftest.$ac_ext
26859cat >>conftest.$ac_ext <<_ACEOF
26860/* end confdefs.h. */
ac1cb8d3
VS
26861/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26863#define gethostbyname innocuous_gethostbyname
26864
a848cd7e
SC
26865/* System header to define __stub macros and hopefully few prototypes,
26866 which can conflict with char gethostbyname (); below.
26867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26869
a848cd7e
SC
26870#ifdef __STDC__
26871# include <limits.h>
26872#else
26873# include <assert.h>
26874#endif
ac1cb8d3
VS
26875
26876#undef gethostbyname
26877
a848cd7e
SC
26878/* Override any gcc2 internal prototype to avoid an error. */
26879#ifdef __cplusplus
26880extern "C"
26881{
26882#endif
26883/* We use char because int might match the return type of a gcc2
26884 builtin and then its argument prototype would still apply. */
26885char gethostbyname ();
26886/* The GNU C library defines this for functions which it implements
26887 to always fail with ENOSYS. Some functions are actually named
26888 something starting with __ and the normal name is an alias. */
26889#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26890choke me
26891#else
26892char (*f) () = gethostbyname;
26893#endif
26894#ifdef __cplusplus
26895}
26896#endif
26897
26898int
26899main ()
26900{
26901return f != gethostbyname;
26902 ;
26903 return 0;
26904}
26905_ACEOF
26906rm -f conftest.$ac_objext conftest$ac_exeext
26907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26908 (eval $ac_link) 2>conftest.er1
a848cd7e 26909 ac_status=$?
ac1cb8d3
VS
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
a848cd7e
SC
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
6ebeb4c7 26915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; } &&
26921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; }; then
26927 ac_cv_func_gethostbyname=yes
26928else
26929 echo "$as_me: failed program was:" >&5
26930sed 's/^/| /' conftest.$ac_ext >&5
26931
26932ac_cv_func_gethostbyname=no
26933fi
ac1cb8d3
VS
26934rm -f conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26936fi
26937echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26938echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26939
26940 if test $ac_cv_func_gethostbyname = no; then
26941 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26942echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26943if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26945else
26946 ac_check_lib_save_LIBS=$LIBS
26947LIBS="-lnsl $LIBS"
26948cat >conftest.$ac_ext <<_ACEOF
26949/* confdefs.h. */
26950_ACEOF
26951cat confdefs.h >>conftest.$ac_ext
26952cat >>conftest.$ac_ext <<_ACEOF
26953/* end confdefs.h. */
26954
26955/* Override any gcc2 internal prototype to avoid an error. */
26956#ifdef __cplusplus
26957extern "C"
26958#endif
26959/* We use char because int might match the return type of a gcc2
26960 builtin and then its argument prototype would still apply. */
26961char gethostbyname ();
26962int
26963main ()
26964{
26965gethostbyname ();
26966 ;
26967 return 0;
26968}
26969_ACEOF
26970rm -f conftest.$ac_objext conftest$ac_exeext
26971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26972 (eval $ac_link) 2>conftest.er1
26973 ac_status=$?
26974 grep -v '^ *+' conftest.er1 >conftest.err
26975 rm -f conftest.er1
26976 cat conftest.err >&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } &&
6ebeb4c7 26979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest$ac_exeext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26991 ac_cv_lib_nsl_gethostbyname=yes
26992else
26993 echo "$as_me: failed program was:" >&5
26994sed 's/^/| /' conftest.$ac_ext >&5
26995
26996ac_cv_lib_nsl_gethostbyname=no
26997fi
26998rm -f conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
27000LIBS=$ac_check_lib_save_LIBS
27001fi
27002echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27003echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27004if test $ac_cv_lib_nsl_gethostbyname = yes; then
27005 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27006fi
27007
27008 if test $ac_cv_lib_nsl_gethostbyname = no; then
27009 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27010echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27011if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27012 echo $ECHO_N "(cached) $ECHO_C" >&6
27013else
27014 ac_check_lib_save_LIBS=$LIBS
27015LIBS="-lbsd $LIBS"
27016cat >conftest.$ac_ext <<_ACEOF
27017/* confdefs.h. */
27018_ACEOF
27019cat confdefs.h >>conftest.$ac_ext
27020cat >>conftest.$ac_ext <<_ACEOF
27021/* end confdefs.h. */
27022
27023/* Override any gcc2 internal prototype to avoid an error. */
27024#ifdef __cplusplus
27025extern "C"
27026#endif
27027/* We use char because int might match the return type of a gcc2
27028 builtin and then its argument prototype would still apply. */
27029char gethostbyname ();
27030int
27031main ()
27032{
27033gethostbyname ();
27034 ;
27035 return 0;
27036}
27037_ACEOF
27038rm -f conftest.$ac_objext conftest$ac_exeext
27039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27040 (eval $ac_link) 2>conftest.er1
a848cd7e 27041 ac_status=$?
ac1cb8d3
VS
27042 grep -v '^ *+' conftest.er1 >conftest.err
27043 rm -f conftest.er1
27044 cat conftest.err >&5
a848cd7e
SC
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } &&
6ebeb4c7 27047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
27059 ac_cv_lib_bsd_gethostbyname=yes
27060else
27061 echo "$as_me: failed program was:" >&5
27062sed 's/^/| /' conftest.$ac_ext >&5
27063
27064ac_cv_lib_bsd_gethostbyname=no
27065fi
ac1cb8d3
VS
27066rm -f conftest.err conftest.$ac_objext \
27067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27068LIBS=$ac_check_lib_save_LIBS
27069fi
27070echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27071echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27072if test $ac_cv_lib_bsd_gethostbyname = yes; then
27073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27074fi
27075
27076 fi
27077 fi
27078
27079 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27080 # socket/setsockopt and other routines are undefined under SCO ODT
27081 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27082 # on later versions), says Simon Leinen: it contains gethostby*
27083 # variants that don't use the name server (or something). -lsocket
27084 # must be given before -lnsl if both are needed. We assume that
27085 # if connect needs -lnsl, so does gethostbyname.
27086 echo "$as_me:$LINENO: checking for connect" >&5
27087echo $ECHO_N "checking for connect... $ECHO_C" >&6
27088if test "${ac_cv_func_connect+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090else
27091 cat >conftest.$ac_ext <<_ACEOF
27092/* confdefs.h. */
27093_ACEOF
27094cat confdefs.h >>conftest.$ac_ext
27095cat >>conftest.$ac_ext <<_ACEOF
27096/* end confdefs.h. */
ac1cb8d3
VS
27097/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27099#define connect innocuous_connect
27100
a848cd7e
SC
27101/* System header to define __stub macros and hopefully few prototypes,
27102 which can conflict with char connect (); below.
27103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27105
a848cd7e
SC
27106#ifdef __STDC__
27107# include <limits.h>
27108#else
27109# include <assert.h>
27110#endif
ac1cb8d3
VS
27111
27112#undef connect
27113
a848cd7e
SC
27114/* Override any gcc2 internal prototype to avoid an error. */
27115#ifdef __cplusplus
27116extern "C"
27117{
27118#endif
27119/* We use char because int might match the return type of a gcc2
27120 builtin and then its argument prototype would still apply. */
27121char connect ();
27122/* The GNU C library defines this for functions which it implements
27123 to always fail with ENOSYS. Some functions are actually named
27124 something starting with __ and the normal name is an alias. */
27125#if defined (__stub_connect) || defined (__stub___connect)
27126choke me
27127#else
27128char (*f) () = connect;
27129#endif
27130#ifdef __cplusplus
27131}
27132#endif
27133
27134int
27135main ()
27136{
27137return f != connect;
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext conftest$ac_exeext
27143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27144 (eval $ac_link) 2>conftest.er1
a848cd7e 27145 ac_status=$?
ac1cb8d3
VS
27146 grep -v '^ *+' conftest.er1 >conftest.err
27147 rm -f conftest.er1
27148 cat conftest.err >&5
a848cd7e
SC
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } &&
6ebeb4c7 27151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; } &&
27157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27163 ac_cv_func_connect=yes
27164else
27165 echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168ac_cv_func_connect=no
27169fi
ac1cb8d3
VS
27170rm -f conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27172fi
27173echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27174echo "${ECHO_T}$ac_cv_func_connect" >&6
27175
27176 if test $ac_cv_func_connect = no; then
27177 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27178echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27179if test "${ac_cv_lib_socket_connect+set}" = set; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27184cat >conftest.$ac_ext <<_ACEOF
27185/* confdefs.h. */
27186_ACEOF
27187cat confdefs.h >>conftest.$ac_ext
27188cat >>conftest.$ac_ext <<_ACEOF
27189/* end confdefs.h. */
27190
27191/* Override any gcc2 internal prototype to avoid an error. */
27192#ifdef __cplusplus
27193extern "C"
27194#endif
27195/* We use char because int might match the return type of a gcc2
27196 builtin and then its argument prototype would still apply. */
27197char connect ();
27198int
27199main ()
27200{
27201connect ();
27202 ;
27203 return 0;
27204}
27205_ACEOF
27206rm -f conftest.$ac_objext conftest$ac_exeext
27207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27208 (eval $ac_link) 2>conftest.er1
a848cd7e 27209 ac_status=$?
ac1cb8d3
VS
27210 grep -v '^ *+' conftest.er1 >conftest.err
27211 rm -f conftest.er1
27212 cat conftest.err >&5
a848cd7e
SC
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } &&
6ebeb4c7 27215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_cv_lib_socket_connect=yes
27228else
27229 echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
27232ac_cv_lib_socket_connect=no
27233fi
ac1cb8d3
VS
27234rm -f conftest.err conftest.$ac_objext \
27235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27236LIBS=$ac_check_lib_save_LIBS
27237fi
27238echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27239echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27240if test $ac_cv_lib_socket_connect = yes; then
27241 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27242fi
27243
27244 fi
27245
27246 # Guillermo Gomez says -lposix is necessary on A/UX.
27247 echo "$as_me:$LINENO: checking for remove" >&5
27248echo $ECHO_N "checking for remove... $ECHO_C" >&6
27249if test "${ac_cv_func_remove+set}" = set; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27251else
27252 cat >conftest.$ac_ext <<_ACEOF
27253/* confdefs.h. */
27254_ACEOF
27255cat confdefs.h >>conftest.$ac_ext
27256cat >>conftest.$ac_ext <<_ACEOF
27257/* end confdefs.h. */
ac1cb8d3
VS
27258/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27260#define remove innocuous_remove
27261
a848cd7e
SC
27262/* System header to define __stub macros and hopefully few prototypes,
27263 which can conflict with char remove (); below.
27264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27265 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27266
a848cd7e
SC
27267#ifdef __STDC__
27268# include <limits.h>
27269#else
27270# include <assert.h>
27271#endif
ac1cb8d3
VS
27272
27273#undef remove
27274
a848cd7e
SC
27275/* Override any gcc2 internal prototype to avoid an error. */
27276#ifdef __cplusplus
27277extern "C"
27278{
27279#endif
27280/* We use char because int might match the return type of a gcc2
27281 builtin and then its argument prototype would still apply. */
27282char remove ();
27283/* The GNU C library defines this for functions which it implements
27284 to always fail with ENOSYS. Some functions are actually named
27285 something starting with __ and the normal name is an alias. */
27286#if defined (__stub_remove) || defined (__stub___remove)
27287choke me
27288#else
27289char (*f) () = remove;
27290#endif
27291#ifdef __cplusplus
27292}
27293#endif
27294
27295int
27296main ()
27297{
27298return f != remove;
27299 ;
27300 return 0;
27301}
27302_ACEOF
27303rm -f conftest.$ac_objext conftest$ac_exeext
27304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27305 (eval $ac_link) 2>conftest.er1
a848cd7e 27306 ac_status=$?
ac1cb8d3
VS
27307 grep -v '^ *+' conftest.er1 >conftest.err
27308 rm -f conftest.er1
27309 cat conftest.err >&5
a848cd7e
SC
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } &&
6ebeb4c7 27312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; } &&
27318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 ac_cv_func_remove=yes
27325else
27326 echo "$as_me: failed program was:" >&5
27327sed 's/^/| /' conftest.$ac_ext >&5
27328
27329ac_cv_func_remove=no
27330fi
ac1cb8d3
VS
27331rm -f conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27333fi
27334echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27335echo "${ECHO_T}$ac_cv_func_remove" >&6
27336
27337 if test $ac_cv_func_remove = no; then
27338 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27339echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27340if test "${ac_cv_lib_posix_remove+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342else
27343 ac_check_lib_save_LIBS=$LIBS
27344LIBS="-lposix $LIBS"
27345cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
27351
27352/* Override any gcc2 internal prototype to avoid an error. */
27353#ifdef __cplusplus
27354extern "C"
27355#endif
27356/* We use char because int might match the return type of a gcc2
27357 builtin and then its argument prototype would still apply. */
27358char remove ();
27359int
27360main ()
27361{
27362remove ();
27363 ;
27364 return 0;
27365}
27366_ACEOF
27367rm -f conftest.$ac_objext conftest$ac_exeext
27368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27369 (eval $ac_link) 2>conftest.er1
a848cd7e 27370 ac_status=$?
ac1cb8d3
VS
27371 grep -v '^ *+' conftest.er1 >conftest.err
27372 rm -f conftest.er1
27373 cat conftest.err >&5
a848cd7e
SC
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } &&
6ebeb4c7 27376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; } &&
27382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; }; then
27388 ac_cv_lib_posix_remove=yes
27389else
27390 echo "$as_me: failed program was:" >&5
27391sed 's/^/| /' conftest.$ac_ext >&5
27392
27393ac_cv_lib_posix_remove=no
27394fi
ac1cb8d3
VS
27395rm -f conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27397LIBS=$ac_check_lib_save_LIBS
27398fi
27399echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27400echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27401if test $ac_cv_lib_posix_remove = yes; then
27402 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27403fi
27404
27405 fi
27406
27407 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27408 echo "$as_me:$LINENO: checking for shmat" >&5
27409echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27410if test "${ac_cv_func_shmat+set}" = set; then
27411 echo $ECHO_N "(cached) $ECHO_C" >&6
27412else
27413 cat >conftest.$ac_ext <<_ACEOF
27414/* confdefs.h. */
27415_ACEOF
27416cat confdefs.h >>conftest.$ac_ext
27417cat >>conftest.$ac_ext <<_ACEOF
27418/* end confdefs.h. */
ac1cb8d3
VS
27419/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27421#define shmat innocuous_shmat
27422
a848cd7e
SC
27423/* System header to define __stub macros and hopefully few prototypes,
27424 which can conflict with char shmat (); below.
27425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27426 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27427
a848cd7e
SC
27428#ifdef __STDC__
27429# include <limits.h>
27430#else
27431# include <assert.h>
27432#endif
ac1cb8d3
VS
27433
27434#undef shmat
27435
a848cd7e
SC
27436/* Override any gcc2 internal prototype to avoid an error. */
27437#ifdef __cplusplus
27438extern "C"
27439{
27440#endif
27441/* We use char because int might match the return type of a gcc2
27442 builtin and then its argument prototype would still apply. */
27443char shmat ();
27444/* The GNU C library defines this for functions which it implements
27445 to always fail with ENOSYS. Some functions are actually named
27446 something starting with __ and the normal name is an alias. */
27447#if defined (__stub_shmat) || defined (__stub___shmat)
27448choke me
27449#else
27450char (*f) () = shmat;
27451#endif
27452#ifdef __cplusplus
27453}
27454#endif
27455
27456int
27457main ()
27458{
27459return f != shmat;
27460 ;
27461 return 0;
27462}
27463_ACEOF
27464rm -f conftest.$ac_objext conftest$ac_exeext
27465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27466 (eval $ac_link) 2>conftest.er1
a848cd7e 27467 ac_status=$?
ac1cb8d3
VS
27468 grep -v '^ *+' conftest.er1 >conftest.err
27469 rm -f conftest.er1
27470 cat conftest.err >&5
a848cd7e
SC
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
6ebeb4c7 27473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; } &&
27479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485 ac_cv_func_shmat=yes
27486else
27487 echo "$as_me: failed program was:" >&5
27488sed 's/^/| /' conftest.$ac_ext >&5
27489
27490ac_cv_func_shmat=no
27491fi
ac1cb8d3
VS
27492rm -f conftest.err conftest.$ac_objext \
27493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27494fi
27495echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27496echo "${ECHO_T}$ac_cv_func_shmat" >&6
27497
27498 if test $ac_cv_func_shmat = no; then
27499 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27500echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27501if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27503else
27504 ac_check_lib_save_LIBS=$LIBS
27505LIBS="-lipc $LIBS"
27506cat >conftest.$ac_ext <<_ACEOF
27507/* confdefs.h. */
27508_ACEOF
27509cat confdefs.h >>conftest.$ac_ext
27510cat >>conftest.$ac_ext <<_ACEOF
27511/* end confdefs.h. */
27512
27513/* Override any gcc2 internal prototype to avoid an error. */
27514#ifdef __cplusplus
27515extern "C"
27516#endif
27517/* We use char because int might match the return type of a gcc2
27518 builtin and then its argument prototype would still apply. */
27519char shmat ();
27520int
27521main ()
27522{
27523shmat ();
27524 ;
27525 return 0;
27526}
27527_ACEOF
27528rm -f conftest.$ac_objext conftest$ac_exeext
27529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27530 (eval $ac_link) 2>conftest.er1
a848cd7e 27531 ac_status=$?
ac1cb8d3
VS
27532 grep -v '^ *+' conftest.er1 >conftest.err
27533 rm -f conftest.er1
27534 cat conftest.err >&5
a848cd7e
SC
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); } &&
6ebeb4c7 27537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; } &&
27543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; }; then
27549 ac_cv_lib_ipc_shmat=yes
27550else
27551 echo "$as_me: failed program was:" >&5
27552sed 's/^/| /' conftest.$ac_ext >&5
27553
27554ac_cv_lib_ipc_shmat=no
27555fi
ac1cb8d3
VS
27556rm -f conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27558LIBS=$ac_check_lib_save_LIBS
27559fi
27560echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27561echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27562if test $ac_cv_lib_ipc_shmat = yes; then
27563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27564fi
27565
27566 fi
27567 fi
27568
27569 # Check for libraries that X11R6 Xt/Xaw programs need.
27570 ac_save_LDFLAGS=$LDFLAGS
27571 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27572 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27573 # check for ICE first), but we must link in the order -lSM -lICE or
27574 # we get undefined symbols. So assume we have SM if we have ICE.
27575 # These have to be linked with before -lX11, unlike the other
27576 # libraries we check for below, so use a different variable.
27577 # John Interrante, Karl Berry
27578 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27579echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27580if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582else
27583 ac_check_lib_save_LIBS=$LIBS
27584LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27585cat >conftest.$ac_ext <<_ACEOF
27586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
27590/* end confdefs.h. */
27591
27592/* Override any gcc2 internal prototype to avoid an error. */
27593#ifdef __cplusplus
27594extern "C"
27595#endif
27596/* We use char because int might match the return type of a gcc2
27597 builtin and then its argument prototype would still apply. */
27598char IceConnectionNumber ();
27599int
27600main ()
27601{
27602IceConnectionNumber ();
27603 ;
27604 return 0;
27605}
27606_ACEOF
27607rm -f conftest.$ac_objext conftest$ac_exeext
27608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27609 (eval $ac_link) 2>conftest.er1
a848cd7e 27610 ac_status=$?
ac1cb8d3
VS
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
a848cd7e
SC
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
6ebeb4c7 27616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; } &&
27622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; }; then
27628 ac_cv_lib_ICE_IceConnectionNumber=yes
27629else
27630 echo "$as_me: failed program was:" >&5
27631sed 's/^/| /' conftest.$ac_ext >&5
27632
27633ac_cv_lib_ICE_IceConnectionNumber=no
27634fi
ac1cb8d3
VS
27635rm -f conftest.err conftest.$ac_objext \
27636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27637LIBS=$ac_check_lib_save_LIBS
27638fi
27639echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27640echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27641if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27642 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27643fi
27644
27645 LDFLAGS=$ac_save_LDFLAGS
27646
27647fi
27648
27649
27650 if test "$no_x" = "yes"; then
27651 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27652echo "$as_me: error: X11 not found" >&2;}
27653 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27654 fi
27655
74b84332
VS
27656 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27657 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27658 AFMINSTALL=afminstall
27659 COMPILED_X_PROGRAM=0
27660
74b84332
VS
27661 fi
27662
27663 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27664 if test "$wxUSE_NANOX" = "yes"; then
27665 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27666echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27667 if test "x$MICROWIN" = x ; then
27668 echo "$as_me:$LINENO: result: not found" >&5
27669echo "${ECHO_T}not found" >&6
27670 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27671echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27672 { (exit 1); exit 1; }; }
27673 else
27674 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27675echo "${ECHO_T}$MICROWIN" >&6
27676 cat >>confdefs.h <<\_ACEOF
27677#define wxUSE_NANOX 1
27678_ACEOF
27679
27680 fi
27681 fi
27682
27683 if test "$wxUSE_UNICODE" = "yes"; then
27684
27685 succeeded=no
27686
27687 if test -z "$PKG_CONFIG"; then
27688 # Extract the first word of "pkg-config", so it can be a program name with args.
27689set dummy pkg-config; ac_word=$2
27690echo "$as_me:$LINENO: checking for $ac_word" >&5
27691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27692if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27694else
27695 case $PKG_CONFIG in
27696 [\\/]* | ?:[\\/]*)
27697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27698 ;;
27699 *)
27700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27701for as_dir in $PATH
27702do
27703 IFS=$as_save_IFS
27704 test -z "$as_dir" && as_dir=.
27705 for ac_exec_ext in '' $ac_executable_extensions; do
27706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27709 break 2
27710 fi
27711done
27712done
27713
27714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27715 ;;
27716esac
27717fi
27718PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27719
27720if test -n "$PKG_CONFIG"; then
27721 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27722echo "${ECHO_T}$PKG_CONFIG" >&6
27723else
27724 echo "$as_me:$LINENO: result: no" >&5
27725echo "${ECHO_T}no" >&6
27726fi
27727
27728 fi
27729
27730 if test "$PKG_CONFIG" = "no" ; then
27731 echo "*** The pkg-config script could not be found. Make sure it is"
27732 echo "*** in your path, or set the PKG_CONFIG environment variable"
27733 echo "*** to the full path to pkg-config."
27734 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27735 else
27736 PKG_CONFIG_MIN_VERSION=0.9.0
27737 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27738 echo "$as_me:$LINENO: checking for pangox" >&5
27739echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27740
27741 if $PKG_CONFIG --exists "pangox" ; then
27742 echo "$as_me:$LINENO: result: yes" >&5
27743echo "${ECHO_T}yes" >&6
27744 succeeded=yes
27745
27746 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27747echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27748 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27749 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27750echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27751
27752 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27753echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27754 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27755 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27756echo "${ECHO_T}$PANGOX_LIBS" >&6
27757 else
27758 PANGOX_CFLAGS=""
27759 PANGOX_LIBS=""
27760 ## If we have a custom action on failure, don't print errors, but
27761 ## do set a variable so people can do so.
27762 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27763
27764 fi
27765
27766
27767
27768 else
27769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27771 fi
27772 fi
27773
27774 if test $succeeded = yes; then
27775
27776 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27778
27779 else
27780
27781 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27782echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27783 { (exit 1); exit 1; }; }
27784
27785
27786 fi
27787
27788
27789 succeeded=no
27790
27791 if test -z "$PKG_CONFIG"; then
27792 # Extract the first word of "pkg-config", so it can be a program name with args.
27793set dummy pkg-config; ac_word=$2
27794echo "$as_me:$LINENO: checking for $ac_word" >&5
27795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27796if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27798else
27799 case $PKG_CONFIG in
27800 [\\/]* | ?:[\\/]*)
27801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27802 ;;
27803 *)
27804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27805for as_dir in $PATH
27806do
27807 IFS=$as_save_IFS
27808 test -z "$as_dir" && as_dir=.
27809 for ac_exec_ext in '' $ac_executable_extensions; do
27810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27813 break 2
27814 fi
27815done
27816done
27817
27818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27819 ;;
27820esac
27821fi
27822PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27823
27824if test -n "$PKG_CONFIG"; then
27825 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27826echo "${ECHO_T}$PKG_CONFIG" >&6
27827else
27828 echo "$as_me:$LINENO: result: no" >&5
27829echo "${ECHO_T}no" >&6
27830fi
27831
27832 fi
27833
27834 if test "$PKG_CONFIG" = "no" ; then
27835 echo "*** The pkg-config script could not be found. Make sure it is"
27836 echo "*** in your path, or set the PKG_CONFIG environment variable"
27837 echo "*** to the full path to pkg-config."
27838 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27839 else
27840 PKG_CONFIG_MIN_VERSION=0.9.0
27841 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27842 echo "$as_me:$LINENO: checking for pangoft2" >&5
27843echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27844
27845 if $PKG_CONFIG --exists "pangoft2" ; then
27846 echo "$as_me:$LINENO: result: yes" >&5
27847echo "${ECHO_T}yes" >&6
27848 succeeded=yes
27849
27850 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27851echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27852 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27853 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27854echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27855
27856 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27857echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27858 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27859 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27860echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27861 else
27862 PANGOFT2_CFLAGS=""
27863 PANGOFT2_LIBS=""
27864 ## If we have a custom action on failure, don't print errors, but
27865 ## do set a variable so people can do so.
27866 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27867
27868 fi
27869
27870
27871
27872 else
27873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27875 fi
27876 fi
27877
27878 if test $succeeded = yes; then
27879
27880 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27881 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27882
27883 else
27884
27885 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27886echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27887 wxUSE_PRINTING_ARCHITECTURE="no"
27888
27889
27890 fi
27891
27892
27893 succeeded=no
27894
27895 if test -z "$PKG_CONFIG"; then
27896 # Extract the first word of "pkg-config", so it can be a program name with args.
27897set dummy pkg-config; ac_word=$2
27898echo "$as_me:$LINENO: checking for $ac_word" >&5
27899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27900if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27902else
27903 case $PKG_CONFIG in
27904 [\\/]* | ?:[\\/]*)
27905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27906 ;;
27907 *)
27908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27909for as_dir in $PATH
27910do
27911 IFS=$as_save_IFS
27912 test -z "$as_dir" && as_dir=.
27913 for ac_exec_ext in '' $ac_executable_extensions; do
27914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27917 break 2
27918 fi
27919done
27920done
27921
27922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27923 ;;
27924esac
27925fi
27926PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27927
27928if test -n "$PKG_CONFIG"; then
27929 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27930echo "${ECHO_T}$PKG_CONFIG" >&6
27931else
27932 echo "$as_me:$LINENO: result: no" >&5
27933echo "${ECHO_T}no" >&6
27934fi
27935
27936 fi
27937
27938 if test "$PKG_CONFIG" = "no" ; then
27939 echo "*** The pkg-config script could not be found. Make sure it is"
27940 echo "*** in your path, or set the PKG_CONFIG environment variable"
27941 echo "*** to the full path to pkg-config."
27942 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27943 else
27944 PKG_CONFIG_MIN_VERSION=0.9.0
27945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27946 echo "$as_me:$LINENO: checking for pangoxft" >&5
27947echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27948
27949 if $PKG_CONFIG --exists "pangoxft" ; then
27950 echo "$as_me:$LINENO: result: yes" >&5
27951echo "${ECHO_T}yes" >&6
27952 succeeded=yes
27953
27954 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27955echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27956 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27957 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27958echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27959
27960 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27961echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27962 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27963 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27964echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27965 else
27966 PANGOXFT_CFLAGS=""
27967 PANGOXFT_LIBS=""
27968 ## If we have a custom action on failure, don't print errors, but
27969 ## do set a variable so people can do so.
27970 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27971
27972 fi
27973
27974
27975
27976 else
27977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27979 fi
27980 fi
27981
27982 if test $succeeded = yes; then
27983
4ae1af05
MB
27984 cat >>confdefs.h <<\_ACEOF
27985#define HAVE_PANGO_XFT 1
27986_ACEOF
27987
a848cd7e
SC
27988 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27989 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27990
27991 else
27992
27993 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27994echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27995
27996
27997 fi
27998
304205f1
VS
27999 save_CFLAGS="$CFLAGS"
28000 save_LIBS="$LIBS"
28001 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28002 LIBS="$LIBS $PANGOX_LIBS"
28003
28004for ac_func in pango_font_family_is_monospace
28005do
28006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28007echo "$as_me:$LINENO: checking for $ac_func" >&5
28008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28009if eval "test \"\${$as_ac_var+set}\" = set"; then
28010 echo $ECHO_N "(cached) $ECHO_C" >&6
28011else
28012 cat >conftest.$ac_ext <<_ACEOF
28013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
28018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28020#define $ac_func innocuous_$ac_func
28021
28022/* System header to define __stub macros and hopefully few prototypes,
28023 which can conflict with char $ac_func (); below.
28024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28025 <limits.h> exists even on freestanding compilers. */
28026
28027#ifdef __STDC__
28028# include <limits.h>
28029#else
28030# include <assert.h>
28031#endif
28032
28033#undef $ac_func
28034
28035/* Override any gcc2 internal prototype to avoid an error. */
28036#ifdef __cplusplus
28037extern "C"
28038{
28039#endif
28040/* We use char because int might match the return type of a gcc2
28041 builtin and then its argument prototype would still apply. */
28042char $ac_func ();
28043/* The GNU C library defines this for functions which it implements
28044 to always fail with ENOSYS. Some functions are actually named
28045 something starting with __ and the normal name is an alias. */
28046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28047choke me
28048#else
28049char (*f) () = $ac_func;
28050#endif
28051#ifdef __cplusplus
28052}
28053#endif
28054
28055int
28056main ()
28057{
28058return f != $ac_func;
28059 ;
28060 return 0;
28061}
28062_ACEOF
28063rm -f conftest.$ac_objext conftest$ac_exeext
28064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28065 (eval $ac_link) 2>conftest.er1
28066 ac_status=$?
28067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
6ebeb4c7 28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28074 (eval $ac_try) 2>&5
28075 ac_status=$?
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; } &&
28078 { ac_try='test -s conftest$ac_exeext'
28079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080 (eval $ac_try) 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; }; then
28084 eval "$as_ac_var=yes"
28085else
28086 echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089eval "$as_ac_var=no"
28090fi
28091rm -f conftest.err conftest.$ac_objext \
28092 conftest$ac_exeext conftest.$ac_ext
28093fi
28094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28096if test `eval echo '${'$as_ac_var'}'` = yes; then
28097 cat >>confdefs.h <<_ACEOF
28098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28099_ACEOF
28100
28101fi
28102done
28103
28104 CFLAGS="$save_CFLAGS"
28105 LIBS="$save_LIBS"
a848cd7e
SC
28106 fi
28107
28108 wxUSE_UNIVERSAL="yes"
28109
28110 if test "$wxUSE_NANOX" = "yes"; then
28111 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28112 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"
28113 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28114 else
28115 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28116 fi
28117
a848cd7e
SC
28118 TOOLKIT=X11
28119 GUIDIST=X11_DIST
28120 fi
28121
28122 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28123 if test "$wxUSE_UNICODE" = "yes"; then
28124 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28125echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28126 { (exit 1); exit 1; }; }
28127 fi
28128
74b84332
VS
28129 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28130echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28131
74b84332
VS
28132ac_find_includes=
28133for ac_dir in $SEARCH_INCLUDE /usr/include;
28134 do
28135 if test -f "$ac_dir/Xm/Xm.h"; then
28136 ac_find_includes=$ac_dir
28137 break
28138 fi
28139 done
a848cd7e 28140
74b84332
VS
28141 if test "$ac_find_includes" != "" ; then
28142 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28143echo "${ECHO_T}found in $ac_find_includes" >&6
28144
28145 if test "x$ac_find_includes" = "x/usr/include"; then
28146 ac_path_to_include=""
28147 else
28148 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28149 result=$?
28150 if test $result = 0; then
28151 ac_path_to_include=""
28152 else
28153 ac_path_to_include=" -I$ac_find_includes"
28154 fi
a848cd7e
SC
28155 fi
28156
74b84332
VS
28157 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28158 else
28159 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28160/* confdefs.h. */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h. */
28165
74b84332
VS
28166 #include <Xm/Xm.h>
28167
a848cd7e
SC
28168int
28169main ()
28170{
28171
74b84332
VS
28172 int version;
28173 version = xmUseVersion;
28174
a848cd7e
SC
28175 ;
28176 return 0;
28177}
28178_ACEOF
74b84332
VS
28179rm -f conftest.$ac_objext
28180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28181 (eval $ac_compile) 2>conftest.er1
a848cd7e 28182 ac_status=$?
ac1cb8d3
VS
28183 grep -v '^ *+' conftest.er1 >conftest.err
28184 rm -f conftest.er1
28185 cat conftest.err >&5
a848cd7e
SC
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } &&
6ebeb4c7 28188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
74b84332 28194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
74b84332
VS
28200
28201 echo "$as_me:$LINENO: result: found in default search path" >&5
28202echo "${ECHO_T}found in default search path" >&6
28203 COMPILED_X_PROGRAM=1
28204
a848cd7e
SC
28205else
28206 echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
a848cd7e 28209
74b84332
VS
28210 echo "$as_me:$LINENO: result: no" >&5
28211echo "${ECHO_T}no" >&6
28212 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28213echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28214 { (exit 1); exit 1; }; }
a848cd7e 28215
a848cd7e 28216
a848cd7e 28217fi
74b84332
VS
28218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28219 fi
28220
28221 if test "$COMPILED_X_PROGRAM" = 0; then
28222 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28223echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28224
28225ac_find_libraries=
28226for ac_dir in $SEARCH_LIB /usr/lib;
28227 do
3eca31dc 28228 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28229 if test -f "$ac_dir/libXm.$ac_extension"; then
28230 ac_find_libraries=$ac_dir
28231 break 2
a848cd7e 28232 fi
74b84332
VS
28233 done
28234 done
a848cd7e 28235
74b84332
VS
28236 if test "$ac_find_libraries" != "" ; then
28237 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28238echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28239
74b84332
VS
28240
28241 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28242 result=$?
28243 if test $result = 0; then
28244 ac_path_to_link=""
a848cd7e 28245 else
74b84332
VS
28246 ac_path_to_link=" -L$ac_find_libraries"
28247 fi
28248
28249 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28250 else
28251 save_CFLAGS=$CFLAGS
28252 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28253
28254 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
28260
74b84332
VS
28261 #include <Xm/Xm.h>
28262
a848cd7e
SC
28263int
28264main ()
28265{
74b84332
VS
28266
28267 int version;
28268 version = xmUseVersion;
28269
a848cd7e
SC
28270 ;
28271 return 0;
28272}
28273_ACEOF
74b84332
VS
28274rm -f conftest.$ac_objext
28275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28276 (eval $ac_compile) 2>conftest.er1
a848cd7e 28277 ac_status=$?
ac1cb8d3
VS
28278 grep -v '^ *+' conftest.er1 >conftest.err
28279 rm -f conftest.er1
28280 cat conftest.err >&5
a848cd7e
SC
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } &&
6ebeb4c7 28283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; } &&
74b84332 28289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
74b84332
VS
28295
28296 echo "$as_me:$LINENO: result: found in default search path" >&5
28297echo "${ECHO_T}found in default search path" >&6
28298 COMPILED_X_PROGRAM=1
28299
a848cd7e
SC
28300else
28301 echo "$as_me: failed program was:" >&5
28302sed 's/^/| /' conftest.$ac_ext >&5
28303
74b84332
VS
28304
28305 echo "$as_me:$LINENO: result: no" >&5
28306echo "${ECHO_T}no" >&6
28307 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28308echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28309 { (exit 1); exit 1; }; }
28310
28311
28312fi
28313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28314
28315 CFLAGS=$save_CFLAGS
28316 fi
28317 fi
28318
28319 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28320echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28321 libp_link=""
28322 libsm_ice_link=""
28323 libs_found=0
28324 for libp in "" " -lXp"; do
28325 if test "$libs_found" = "0"; then
28326 for libsm_ice in "" " -lSM -lICE"; do
28327 if test "$libs_found" = "0"; then
28328 save_LIBS="$LIBS"
28329 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28330 save_CFLAGS=$CFLAGS
28331 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28332
28333 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28334/* confdefs.h. */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h. */
28339
74b84332
VS
28340 #include <Xm/Xm.h>
28341 #include <Xm/List.h>
28342
a848cd7e
SC
28343int
28344main ()
28345{
74b84332
VS
28346
28347 XmString string = NULL;
28348 Widget w = NULL;
28349 int position = 0;
28350 XmListAddItem(w, string, position);
28351
a848cd7e
SC
28352 ;
28353 return 0;
28354}
28355_ACEOF
28356rm -f conftest.$ac_objext conftest$ac_exeext
28357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28358 (eval $ac_link) 2>conftest.er1
a848cd7e 28359 ac_status=$?
ac1cb8d3
VS
28360 grep -v '^ *+' conftest.er1 >conftest.err
28361 rm -f conftest.er1
28362 cat conftest.err >&5
a848cd7e
SC
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } &&
6ebeb4c7 28365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28368 ac_status=$?
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; } &&
28371 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
28377
28378 libp_link="$libp"
28379 libsm_ice_link="$libsm_ice"
28380 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28381echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28382 libs_found=1
28383
28384else
28385 echo "$as_me: failed program was:" >&5
28386sed 's/^/| /' conftest.$ac_ext >&5
28387
28388
28389
28390fi
ac1cb8d3
VS
28391rm -f conftest.err conftest.$ac_objext \
28392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28393
28394 LIBS="$save_LIBS"
28395 CFLAGS=$save_CFLAGS
28396 fi
28397 done
28398 fi
28399 done
28400
28401 if test "$libs_found" = "0"; then
28402 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28403echo "${ECHO_T}can't find the right libraries" >&6
28404 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28405echo "$as_me: error: can't link a simple motif program" >&2;}
28406 { (exit 1); exit 1; }; }
28407 fi
28408
28409 save_CFLAGS=$CFLAGS
28410 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28411 echo "$as_me:$LINENO: checking for Motif 2" >&5
28412echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28413 cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h. */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h. */
28419
28420 #include <Xm/Xm.h>
28421
28422int
28423main ()
28424{
28425
28426 #if XmVersion < 2000
04e525a0 28427 Not Motif 2
a848cd7e
SC
28428 #endif
28429
28430 ;
28431 return 0;
28432}
28433_ACEOF
28434rm -f conftest.$ac_objext
28435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28436 (eval $ac_compile) 2>conftest.er1
a848cd7e 28437 ac_status=$?
ac1cb8d3
VS
28438 grep -v '^ *+' conftest.er1 >conftest.err
28439 rm -f conftest.er1
28440 cat conftest.err >&5
a848cd7e
SC
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); } &&
6ebeb4c7 28443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455
28456 cat >>confdefs.h <<\_ACEOF
28457#define __WXMOTIF20__ 1
28458_ACEOF
28459
28460 echo "$as_me:$LINENO: result: found" >&5
28461echo "${ECHO_T}found" >&6
28462
28463else
28464 echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467
28468 cat >>confdefs.h <<\_ACEOF
28469#define __WXMOTIF20__ 0
28470_ACEOF
28471
28472 echo "$as_me:$LINENO: result: not found" >&5
28473echo "${ECHO_T}not found" >&6
28474
2113bc77
MW
28475fi
28476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28477
28478 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28479echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28480 cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
28486
28487 #include <Xm/Xm.h>
28488
28489int
28490main ()
28491{
28492
28493 #if !defined(LesstifVersion) || LesstifVersion <= 0
04e525a0 28494 Not Lesstif
2113bc77
MW
28495 #endif
28496
28497 ;
28498 return 0;
28499}
28500_ACEOF
28501rm -f conftest.$ac_objext
28502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28503 (eval $ac_compile) 2>conftest.er1
28504 ac_status=$?
28505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
6ebeb4c7 28510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try='test -s conftest.$ac_objext'
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; }; then
28522
28523 cat >>confdefs.h <<\_ACEOF
28524#define __WXLESSTIF__ 1
28525_ACEOF
28526
28527 echo "$as_me:$LINENO: result: yes" >&5
28528echo "${ECHO_T}yes" >&6
28529
28530else
28531 echo "$as_me: failed program was:" >&5
28532sed 's/^/| /' conftest.$ac_ext >&5
28533
28534
28535 cat >>confdefs.h <<\_ACEOF
28536#define __WXLESSTIF__ 0
28537_ACEOF
28538
28539 echo "$as_me:$LINENO: result: no" >&5
28540echo "${ECHO_T}no" >&6
28541
a848cd7e 28542fi
ac1cb8d3 28543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28544 CFLAGS=$save_CFLAGS
28545
28546 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28547 TOOLKIT=MOTIF
28548 GUIDIST=MOTIF_DIST
28549 fi
28550
74b84332 28551 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28552 if test "$wxUSE_LIBXPM" = "sys"; then
28553 echo "$as_me:$LINENO: checking for Xpm library" >&5
28554echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28555
28556ac_find_libraries=
28557for ac_dir in $SEARCH_LIB /usr/lib;
28558 do
3eca31dc 28559 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28560 if test -f "$ac_dir/libXpm.$ac_extension"; then
28561 ac_find_libraries=$ac_dir
28562 break 2
28563 fi
28564 done
28565 done
28566
28567 if test "$ac_find_libraries" != "" ; then
28568
28569 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28570 result=$?
28571 if test $result = 0; then
28572 ac_path_to_link=""
28573 else
28574 ac_path_to_link=" -L$ac_find_libraries"
28575 fi
28576
28577 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28578 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28579echo "${ECHO_T}found at $ac_find_libraries" >&6
28580
28581 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28582echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28583if test "${wx_cv_x11_xpm_h+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28585else
28586
28587 save_CFLAGS=$CFLAGS
28588 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28589
28590 cat >conftest.$ac_ext <<_ACEOF
28591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
28596
28597 #include <X11/xpm.h>
28598
28599int
28600main ()
28601{
28602
28603 int version;
28604 version = XpmLibraryVersion();
28605
28606 ;
28607 return 0;
28608}
28609_ACEOF
28610rm -f conftest.$ac_objext
28611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28612 (eval $ac_compile) 2>conftest.er1
a848cd7e 28613 ac_status=$?
ac1cb8d3
VS
28614 grep -v '^ *+' conftest.er1 >conftest.err
28615 rm -f conftest.er1
28616 cat conftest.err >&5
a848cd7e
SC
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } &&
6ebeb4c7 28619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; } &&
28625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 wx_cv_x11_xpm_h=yes
28632else
28633 echo "$as_me: failed program was:" >&5
28634sed 's/^/| /' conftest.$ac_ext >&5
28635
28636wx_cv_x11_xpm_h=no
28637
28638fi
ac1cb8d3 28639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28640
28641 CFLAGS=$save_CFLAGS
28642
28643
28644fi
28645echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28646echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28647
28648 if test $wx_cv_x11_xpm_h = "yes"; then
28649 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28650 cat >>confdefs.h <<\_ACEOF
28651#define wxHAVE_LIB_XPM 1
28652_ACEOF
28653
28654 else
28655 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28656echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28657 fi
28658 fi
28659
28660 fi
28661
28662 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28663echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28664if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667 ac_check_lib_save_LIBS=$LIBS
28668LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28669cat >conftest.$ac_ext <<_ACEOF
28670/* confdefs.h. */
28671_ACEOF
28672cat confdefs.h >>conftest.$ac_ext
28673cat >>conftest.$ac_ext <<_ACEOF
28674/* end confdefs.h. */
28675
28676/* Override any gcc2 internal prototype to avoid an error. */
28677#ifdef __cplusplus
28678extern "C"
28679#endif
28680/* We use char because int might match the return type of a gcc2
28681 builtin and then its argument prototype would still apply. */
28682char XShapeQueryExtension ();
28683int
28684main ()
28685{
28686XShapeQueryExtension ();
28687 ;
28688 return 0;
28689}
28690_ACEOF
28691rm -f conftest.$ac_objext conftest$ac_exeext
28692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28693 (eval $ac_link) 2>conftest.er1
a848cd7e 28694 ac_status=$?
ac1cb8d3
VS
28695 grep -v '^ *+' conftest.er1 >conftest.err
28696 rm -f conftest.er1
28697 cat conftest.err >&5
a848cd7e
SC
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); } &&
6ebeb4c7 28700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); }; } &&
28706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; }; then
28712 ac_cv_lib_Xext_XShapeQueryExtension=yes
28713else
28714 echo "$as_me: failed program was:" >&5
28715sed 's/^/| /' conftest.$ac_ext >&5
28716
28717ac_cv_lib_Xext_XShapeQueryExtension=no
28718fi
ac1cb8d3
VS
28719rm -f conftest.err conftest.$ac_objext \
28720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28721LIBS=$ac_check_lib_save_LIBS
28722fi
28723echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28724echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28725if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28726
28727 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28728 wxHAVE_XEXT_LIB=1
28729
28730fi
28731
28732
28733 if test "$wxHAVE_XEXT_LIB" = 1; then
28734 save_CFLAGS="$CFLAGS"
28735 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28736
28737 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28738echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28739 cat >conftest.$ac_ext <<_ACEOF
28740/* confdefs.h. */
28741_ACEOF
28742cat confdefs.h >>conftest.$ac_ext
28743cat >>conftest.$ac_ext <<_ACEOF
28744/* end confdefs.h. */
28745
28746 #include <X11/Xlib.h>
28747 #include <X11/extensions/shape.h>
28748
28749int
28750main ()
28751{
28752
28753 int dummy1, dummy2;
28754 XShapeQueryExtension((Display*)NULL,
28755 (int*)NULL, (int*)NULL);
28756
28757 ;
28758 return 0;
28759}
28760_ACEOF
28761rm -f conftest.$ac_objext
28762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28763 (eval $ac_compile) 2>conftest.er1
a848cd7e 28764 ac_status=$?
ac1cb8d3
VS
28765 grep -v '^ *+' conftest.er1 >conftest.err
28766 rm -f conftest.er1
28767 cat conftest.err >&5
a848cd7e
SC
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
6ebeb4c7 28770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } &&
28776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; }; then
28782
28783 cat >>confdefs.h <<\_ACEOF
28784#define HAVE_XSHAPE 1
28785_ACEOF
28786
28787 echo "$as_me:$LINENO: result: found" >&5
28788echo "${ECHO_T}found" >&6
28789
28790else
28791 echo "$as_me: failed program was:" >&5
28792sed 's/^/| /' conftest.$ac_ext >&5
28793
28794
28795 echo "$as_me:$LINENO: result: not found" >&5
28796echo "${ECHO_T}not found" >&6
28797
28798fi
ac1cb8d3 28799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28800 CFLAGS="$save_CFLAGS"
28801
28802 fi
28803 fi
28804
28805 if test "$wxUSE_MAC" = 1; then
28806 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28807echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28808 if test "$GCC" = yes; then
28809 echo "$as_me:$LINENO: result: gcc" >&5
28810echo "${ECHO_T}gcc" >&6
28811 CPPFLAGS_PASCAL="-fpascal-strings"
28812 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28813 echo "$as_me:$LINENO: result: xlc" >&5
28814echo "${ECHO_T}xlc" >&6
28815 CPPFLAGS_PASCAL="-qmacpstr"
28816 else
28817 echo "$as_me:$LINENO: result: none" >&5
28818echo "${ECHO_T}none" >&6
28819 fi
28820
1e9e8aba
DE
28821 if test "x$wxUSE_UNIX" = "xyes"; then
28822 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28823 else
28824 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28825 fi
a848cd7e 28826
a848cd7e
SC
28827 TOOLKIT=MAC
28828 GUIDIST=MACX_DIST
dd21ced8 28829 WXBASEPORT="_carbon"
a848cd7e
SC
28830 fi
28831
28832 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28833 TOOLKIT=COCOA
28834 GUIDIST=COCOA_DIST
28835 fi
28836
28837 if test "$wxUSE_PM" = 1; then
28838 TOOLKIT=PM
de59c161
RD
28839 GUIDIST=PM_DIST
28840 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28841echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28842if test "${wx_cv_spbcdata+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28844else
28845
28846 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
28852
28853 #define INCL_PM
28854 #include <os2.h>
28855
28856int
28857main ()
28858{
28859
28860 SPBCDATA test;
28861
28862 ;
28863 return 0;
28864}
28865_ACEOF
28866rm -f conftest.$ac_objext
28867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28868 (eval $ac_compile) 2>conftest.er1
de59c161 28869 ac_status=$?
ac1cb8d3
VS
28870 grep -v '^ *+' conftest.er1 >conftest.err
28871 rm -f conftest.er1
28872 cat conftest.err >&5
de59c161
RD
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
6ebeb4c7 28875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28878 ac_status=$?
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; } &&
28881 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; }; then
28887 wx_cv_spbcdata=yes
28888else
28889 echo "$as_me: failed program was:" >&5
28890sed 's/^/| /' conftest.$ac_ext >&5
28891
28892wx_cv_spbcdata=no
28893
28894fi
ac1cb8d3 28895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28896
28897
28898fi
28899echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28900echo "${ECHO_T}$wx_cv_spbcdata" >&6
28901
28902 if test $wx_cv_spbcdata = "yes"; then
28903 cat >>confdefs.h <<\_ACEOF
28904#define HAVE_SPBCDATA 1
28905_ACEOF
28906
28907 fi
a848cd7e
SC
28908 fi
28909
28910 if test "$TOOLKIT" = "PM" ; then
28911 TOOLKIT_DIR="os2"
28912 else
28913 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28914 fi
28915
a848cd7e 28916 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28917 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28918 WIDGET_SET=univ
a848cd7e
SC
28919 fi
28920
28921 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28922 DISTDIR="wx\$(TOOLKIT)"
28923else
28924 USE_GUI=0
28925
28926 TOOLKIT_DIR="base"
28927
28928 if test "$USE_WIN32" = 1 ; then
a848cd7e 28929 TOOLKIT="MSW"
a848cd7e
SC
28930 fi
28931
a848cd7e
SC
28932 GUIDIST="BASE_DIST"
28933 DISTDIR="wxBase"
28934fi
28935
28936
28937
28938
28939IODBC_C_SRC=""
28940
28941
28942if test "$TOOLKIT" != "MSW" ; then
28943
28944 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28945
28946 if test "${ac_cv_header_sql_h+set}" = set; then
28947 echo "$as_me:$LINENO: checking for sql.h" >&5
28948echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28949if test "${ac_cv_header_sql_h+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951fi
28952echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28953echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28954else
28955 # Is the header compilable?
28956echo "$as_me:$LINENO: checking sql.h usability" >&5
28957echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28958cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
28964$ac_includes_default
28965#include <sql.h>
28966_ACEOF
28967rm -f conftest.$ac_objext
28968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28969 (eval $ac_compile) 2>conftest.er1
a848cd7e 28970 ac_status=$?
ac1cb8d3
VS
28971 grep -v '^ *+' conftest.er1 >conftest.err
28972 rm -f conftest.er1
28973 cat conftest.err >&5
a848cd7e
SC
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); } &&
6ebeb4c7 28976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28978 (eval $ac_try) 2>&5
28979 ac_status=$?
28980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981 (exit $ac_status); }; } &&
28982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28984 (eval $ac_try) 2>&5
28985 ac_status=$?
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); }; }; then
28988 ac_header_compiler=yes
28989else
28990 echo "$as_me: failed program was:" >&5
28991sed 's/^/| /' conftest.$ac_ext >&5
28992
28993ac_header_compiler=no
28994fi
ac1cb8d3 28995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28997echo "${ECHO_T}$ac_header_compiler" >&6
28998
28999# Is the header present?
29000echo "$as_me:$LINENO: checking sql.h presence" >&5
29001echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29002cat >conftest.$ac_ext <<_ACEOF
29003/* confdefs.h. */
29004_ACEOF
29005cat confdefs.h >>conftest.$ac_ext
29006cat >>conftest.$ac_ext <<_ACEOF
29007/* end confdefs.h. */
29008#include <sql.h>
29009_ACEOF
29010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29012 ac_status=$?
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } >/dev/null; then
29018 if test -s conftest.err; then
29019 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29021 else
29022 ac_cpp_err=
29023 fi
29024else
29025 ac_cpp_err=yes
29026fi
29027if test -z "$ac_cpp_err"; then
29028 ac_header_preproc=yes
29029else
29030 echo "$as_me: failed program was:" >&5
29031sed 's/^/| /' conftest.$ac_ext >&5
29032
29033 ac_header_preproc=no
29034fi
29035rm -f conftest.err conftest.$ac_ext
29036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29037echo "${ECHO_T}$ac_header_preproc" >&6
29038
29039# So? What about this header?
ac1cb8d3
VS
29040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29041 yes:no: )
a848cd7e
SC
29042 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29043echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29044 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29045echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29046 ac_header_preproc=yes
a848cd7e 29047 ;;
ac1cb8d3 29048 no:yes:* )
a848cd7e
SC
29049 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29050echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29051 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29052echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29054echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29055 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29056echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29057 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29058echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29059 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29060echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29061 (
29062 cat <<\_ASBOX
ac1cb8d3
VS
29063## ----------------------------------------- ##
29064## Report this to wx-dev@lists.wxwidgets.org ##
29065## ----------------------------------------- ##
a848cd7e
SC
29066_ASBOX
29067 ) |
29068 sed "s/^/$as_me: WARNING: /" >&2
29069 ;;
29070esac
29071echo "$as_me:$LINENO: checking for sql.h" >&5
29072echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29073if test "${ac_cv_header_sql_h+set}" = set; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29075else
29076 ac_cv_header_sql_h=$ac_header_preproc
29077fi
29078echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29079echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29080
29081fi
29082if test $ac_cv_header_sql_h = yes; then
29083 found_sql_h=1
29084fi
29085
29086
29087 if test "x$found_sql_h" = "x1" ; then
29088 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29089echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29090if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092else
29093 ac_check_lib_save_LIBS=$LIBS
29094LIBS="-liodbc $LIBS"
29095cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
29101
29102/* Override any gcc2 internal prototype to avoid an error. */
29103#ifdef __cplusplus
29104extern "C"
29105#endif
29106/* We use char because int might match the return type of a gcc2
29107 builtin and then its argument prototype would still apply. */
29108char SQLAllocEnv ();
29109int
29110main ()
29111{
29112SQLAllocEnv ();
29113 ;
29114 return 0;
29115}
29116_ACEOF
29117rm -f conftest.$ac_objext conftest$ac_exeext
29118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29119 (eval $ac_link) 2>conftest.er1
a848cd7e 29120 ac_status=$?
ac1cb8d3
VS
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
a848cd7e
SC
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
6ebeb4c7 29126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_cv_lib_iodbc_SQLAllocEnv=yes
29139else
29140 echo "$as_me: failed program was:" >&5
29141sed 's/^/| /' conftest.$ac_ext >&5
29142
29143ac_cv_lib_iodbc_SQLAllocEnv=no
29144fi
ac1cb8d3
VS
29145rm -f conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29147LIBS=$ac_check_lib_save_LIBS
29148fi
29149echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29150echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29151if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29152 ODBC_LINK=" -liodbc"
29153else
29154
29155 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29156echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29157if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 ac_check_lib_save_LIBS=$LIBS
29161LIBS="-lunixodbc $LIBS"
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168
29169/* Override any gcc2 internal prototype to avoid an error. */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173/* We use char because int might match the return type of a gcc2
29174 builtin and then its argument prototype would still apply. */
29175char SQLAllocEnv ();
29176int
29177main ()
29178{
29179SQLAllocEnv ();
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184rm -f conftest.$ac_objext conftest$ac_exeext
29185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29186 (eval $ac_link) 2>conftest.er1
a848cd7e 29187 ac_status=$?
ac1cb8d3
VS
29188 grep -v '^ *+' conftest.er1 >conftest.err
29189 rm -f conftest.er1
29190 cat conftest.err >&5
a848cd7e
SC
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } &&
6ebeb4c7 29193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210ac_cv_lib_unixodbc_SQLAllocEnv=no
29211fi
ac1cb8d3
VS
29212rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29214LIBS=$ac_check_lib_save_LIBS
29215fi
29216echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29217echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29218if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29219 ODBC_LINK=" -lunixodbc"
29220else
29221
29222 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29223echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29224if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226else
29227 ac_check_lib_save_LIBS=$LIBS
29228LIBS="-lodbc $LIBS"
29229cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
29235
29236/* Override any gcc2 internal prototype to avoid an error. */
29237#ifdef __cplusplus
29238extern "C"
29239#endif
29240/* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29242char SQLAllocEnv ();
29243int
29244main ()
29245{
29246SQLAllocEnv ();
29247 ;
29248 return 0;
29249}
29250_ACEOF
29251rm -f conftest.$ac_objext conftest$ac_exeext
29252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29253 (eval $ac_link) 2>conftest.er1
a848cd7e 29254 ac_status=$?
ac1cb8d3
VS
29255 grep -v '^ *+' conftest.er1 >conftest.err
29256 rm -f conftest.er1
29257 cat conftest.err >&5
a848cd7e
SC
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } &&
6ebeb4c7 29260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; } &&
29266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268 (eval $ac_try) 2>&5
29269 ac_status=$?
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_lib_odbc_SQLAllocEnv=yes
29273else
29274 echo "$as_me: failed program was:" >&5
29275sed 's/^/| /' conftest.$ac_ext >&5
29276
29277ac_cv_lib_odbc_SQLAllocEnv=no
29278fi
ac1cb8d3
VS
29279rm -f conftest.err conftest.$ac_objext \
29280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29281LIBS=$ac_check_lib_save_LIBS
29282fi
29283echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29284echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29285if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29286 ODBC_LINK=" -lodbc"
29287fi
29288
29289
29290fi
29291
29292
29293fi
29294
29295 fi
29296 if test "x$ODBC_LINK" = "x" ; then
29297 if test "$wxUSE_ODBC" = "sys" ; then
29298 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29299echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29300 { (exit 1); exit 1; }; }
29301 else
29302 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29303echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29304 wxUSE_ODBC=builtin
29305 fi
29306 else
29307 wxUSE_ODBC=sys
29308 fi
29309 fi
a848cd7e 29310
2da0c077
RD
29311 if test "$wxUSE_ODBC" = "builtin" ; then
29312 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29313#define wxUSE_BUILTIN_IODBC 1
29314_ACEOF
29315
a848cd7e
SC
29316 fi
29317fi
29318
2da0c077
RD
29319if test "$wxUSE_ODBC" != "no" ; then
29320 cat >>confdefs.h <<\_ACEOF
29321#define wxUSE_ODBC 1
29322_ACEOF
29323
29324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29325
29326 WXODBCFLAG="-D_IODBC_"
29327fi
a848cd7e 29328
01cb68df 29329
a848cd7e 29330if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29331 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29332 echo "$as_me:$LINENO: checking for Xinerama" >&5
29333echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29334
29335ac_find_libraries=
29336for ac_dir in $SEARCH_LIB /usr/lib;
29337 do
3eca31dc 29338 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29339 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29340 ac_find_libraries=$ac_dir
29341 break 2
29342 fi
29343 done
29344 done
29345
29346 if test "$ac_find_libraries" != "" ; then
29347
29348 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29349 result=$?
29350 if test $result = 0; then
29351 ac_path_to_link=""
29352 else
29353 ac_path_to_link=" -L$ac_find_libraries"
29354 fi
29355
29356 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29357 LDFLAGS="$LDFLAGS $ac_path_to_link"
29358 fi
29359 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29360 echo "$as_me:$LINENO: result: yes" >&5
29361echo "${ECHO_T}yes" >&6
29362
29363 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29364echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29365
29366ac_find_libraries=
29367for ac_dir in $SEARCH_LIB /usr/lib;
29368 do
3eca31dc 29369 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29370 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29371 ac_find_libraries=$ac_dir
29372 break 2
29373 fi
29374 done
29375 done
29376
29377 if test "$ac_find_libraries" != "" ; then
29378 echo "$as_me:$LINENO: result: yes" >&5
29379echo "${ECHO_T}yes" >&6
29380
29381for ac_header in X11/extensions/xf86vmode.h
29382do
29383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384echo "$as_me:$LINENO: checking for $ac_header" >&5
29385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29386if eval "test \"\${$as_ac_Header+set}\" = set"; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29388else
29389 cat >conftest.$ac_ext <<_ACEOF
29390/* confdefs.h. */
29391_ACEOF
29392cat confdefs.h >>conftest.$ac_ext
29393cat >>conftest.$ac_ext <<_ACEOF
29394/* end confdefs.h. */
29395
29396 #if HAVE_X11_XLIB_H
29397 #include <X11/Xlib.h>
29398 #endif
29399
29400
29401#include <$ac_header>
29402_ACEOF
29403rm -f conftest.$ac_objext
29404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29405 (eval $ac_compile) 2>conftest.er1
a848cd7e 29406 ac_status=$?
ac1cb8d3
VS
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
a848cd7e
SC
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } &&
6ebeb4c7 29412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 eval "$as_ac_Header=yes"
29425else
29426 echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
29429eval "$as_ac_Header=no"
29430fi
ac1cb8d3 29431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29432fi
29433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29435if test `eval echo '${'$as_ac_Header'}'` = yes; then
29436 cat >>confdefs.h <<_ACEOF
29437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29438_ACEOF
29439
29440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29441
29442fi
29443
29444done
29445
29446 else
29447 echo "$as_me:$LINENO: result: no" >&5
29448echo "${ECHO_T}no" >&6
29449 fi
29450
29451 else
29452 echo "$as_me:$LINENO: result: no" >&5
29453echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29454 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29455echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29456 wxUSE_DISPLAY="no"
29457 fi
01cb68df
RG
29458 elif test "$wxUSE_MSW" = 1; then
29459
29460
29461for ac_header in multimon.h ddraw.h
29462do
29463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29464echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29466if eval "test \"\${$as_ac_Header+set}\" = set"; then
29467 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29468else
5294a27e 29469 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29470/* confdefs.h. */
29471_ACEOF
29472cat confdefs.h >>conftest.$ac_ext
29473cat >>conftest.$ac_ext <<_ACEOF
29474/* end confdefs.h. */
5294a27e
VZ
29475#include <windows.h>
29476
01cb68df
RG
29477#include <$ac_header>
29478_ACEOF
29479rm -f conftest.$ac_objext
29480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29481 (eval $ac_compile) 2>conftest.er1
01cb68df 29482 ac_status=$?
ac1cb8d3
VS
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
01cb68df
RG
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
6ebeb4c7 29488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
5294a27e 29500 eval "$as_ac_Header=yes"
01cb68df
RG
29501else
29502 echo "$as_me: failed program was:" >&5
29503sed 's/^/| /' conftest.$ac_ext >&5
29504
5294a27e 29505eval "$as_ac_Header=no"
01cb68df 29506fi
ac1cb8d3 29507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29508fi
29509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29511if test `eval echo '${'$as_ac_Header'}'` = yes; then
29512 cat >>confdefs.h <<_ACEOF
29513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29514_ACEOF
29515
29516else
29517
5294a27e
VZ
29518 wxUSE_DISPLAY="no"
29519 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29520echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29521
29522fi
29523
29524done
29525
a848cd7e
SC
29526 fi
29527fi
29528
29529
29530USE_OPENGL=0
29531if test "$wxUSE_OPENGL" = "yes"; then
29532 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29533 OPENGL_LIBS="-framework OpenGL -framework AGL"
29534 elif test "$wxUSE_MSW" = 1; then
29535 OPENGL_LIBS="-lopengl32 -lglu32"
29536 else
29537
29538
29539ac_find_includes=
29540for ac_dir in $SEARCH_INCLUDE /usr/include;
29541 do
29542 if test -f "$ac_dir/GL/gl.h"; then
29543 ac_find_includes=$ac_dir
29544 break
29545 fi
29546 done
29547
29548 if test "$ac_find_includes" != "" ; then
29549 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29550echo "${ECHO_T}found in $ac_find_includes" >&6
29551
29552 if test "x$ac_find_includes" = "x/usr/include"; then
29553 ac_path_to_include=""
29554 else
29555 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29556 result=$?
29557 if test $result = 0; then
29558 ac_path_to_include=""
29559 else
29560 ac_path_to_include=" -I$ac_find_includes"
29561 fi
29562 fi
29563
29564 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29565 fi
29566
29567 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29568 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29569echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29570if test "${ac_cv_header_GL_gl_h+set}" = set; then
29571 echo $ECHO_N "(cached) $ECHO_C" >&6
29572fi
29573echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29574echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29575else
29576 # Is the header compilable?
29577echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29578echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29579cat >conftest.$ac_ext <<_ACEOF
29580/* confdefs.h. */
29581_ACEOF
29582cat confdefs.h >>conftest.$ac_ext
29583cat >>conftest.$ac_ext <<_ACEOF
29584/* end confdefs.h. */
29585$ac_includes_default
29586#include <GL/gl.h>
29587_ACEOF
29588rm -f conftest.$ac_objext
29589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29590 (eval $ac_compile) 2>conftest.er1
a848cd7e 29591 ac_status=$?
ac1cb8d3
VS
29592 grep -v '^ *+' conftest.er1 >conftest.err
29593 rm -f conftest.er1
29594 cat conftest.err >&5
a848cd7e
SC
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); } &&
6ebeb4c7 29597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_header_compiler=yes
29610else
29611 echo "$as_me: failed program was:" >&5
29612sed 's/^/| /' conftest.$ac_ext >&5
29613
29614ac_header_compiler=no
29615fi
ac1cb8d3 29616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29618echo "${ECHO_T}$ac_header_compiler" >&6
29619
29620# Is the header present?
29621echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29622echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29623cat >conftest.$ac_ext <<_ACEOF
29624/* confdefs.h. */
29625_ACEOF
29626cat confdefs.h >>conftest.$ac_ext
29627cat >>conftest.$ac_ext <<_ACEOF
29628/* end confdefs.h. */
29629#include <GL/gl.h>
29630_ACEOF
29631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29633 ac_status=$?
29634 grep -v '^ *+' conftest.er1 >conftest.err
29635 rm -f conftest.er1
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } >/dev/null; then
29639 if test -s conftest.err; then
29640 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29642 else
29643 ac_cpp_err=
29644 fi
29645else
29646 ac_cpp_err=yes
29647fi
29648if test -z "$ac_cpp_err"; then
29649 ac_header_preproc=yes
29650else
29651 echo "$as_me: failed program was:" >&5
29652sed 's/^/| /' conftest.$ac_ext >&5
29653
29654 ac_header_preproc=no
29655fi
29656rm -f conftest.err conftest.$ac_ext
29657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29658echo "${ECHO_T}$ac_header_preproc" >&6
29659
29660# So? What about this header?
ac1cb8d3
VS
29661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29662 yes:no: )
a848cd7e
SC
29663 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29664echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29665 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29666echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29667 ac_header_preproc=yes
a848cd7e 29668 ;;
ac1cb8d3 29669 no:yes:* )
a848cd7e
SC
29670 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29671echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29672 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29673echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29674 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29675echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29676 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29677echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29678 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29679echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29680 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29681echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29682 (
29683 cat <<\_ASBOX
ac1cb8d3
VS
29684## ----------------------------------------- ##
29685## Report this to wx-dev@lists.wxwidgets.org ##
29686## ----------------------------------------- ##
a848cd7e
SC
29687_ASBOX
29688 ) |
29689 sed "s/^/$as_me: WARNING: /" >&2
29690 ;;
29691esac
29692echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29693echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29694if test "${ac_cv_header_GL_gl_h+set}" = set; then
29695 echo $ECHO_N "(cached) $ECHO_C" >&6
29696else
29697 ac_cv_header_GL_gl_h=$ac_header_preproc
29698fi
29699echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29700echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29701
29702fi
29703if test $ac_cv_header_GL_gl_h = yes; then
29704
29705 found_gl=0
29706
29707 echo "$as_me:$LINENO: checking for -lGL" >&5
29708echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29709
29710ac_find_libraries=
29711for ac_dir in $SEARCH_LIB /usr/lib;
29712 do
3eca31dc 29713 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29714 if test -f "$ac_dir/libGL.$ac_extension"; then
29715 ac_find_libraries=$ac_dir
29716 break 2
29717 fi
29718 done
29719 done
29720
29721 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29722 echo "$as_me:$LINENO: result: yes" >&5
29723echo "${ECHO_T}yes" >&6
29724
a848cd7e
SC
29725
29726 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29727 result=$?
29728 if test $result = 0; then
29729 ac_path_to_link=""
29730 else
29731 ac_path_to_link=" -L$ac_find_libraries"
29732 fi
29733
29734 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29735 LDFLAGS_GL="$ac_path_to_link"
29736 fi
29737
69120ee4
VZ
29738 echo "$as_me:$LINENO: checking for -lGLU" >&5
29739echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29740
29741ac_find_libraries=
29742for ac_dir in $SEARCH_LIB /usr/lib;
29743 do
3eca31dc 29744 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29745 if test -f "$ac_dir/libGLU.$ac_extension"; then
29746 ac_find_libraries=$ac_dir
29747 break 2
29748 fi
29749 done
29750 done
29751
29752 if test "$ac_find_libraries" != "" ; then
29753
29754 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29755 result=$?
29756 if test $result = 0; then
29757 ac_path_to_link=""
29758 else
29759 ac_path_to_link=" -L$ac_find_libraries"
29760 fi
29761
29762 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29763 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29764 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29765 fi
29766
29767 found_gl=1
29768 OPENGL_LIBS="-lGL -lGLU"
29769 echo "$as_me:$LINENO: result: yes" >&5
29770echo "${ECHO_T}yes" >&6
69120ee4
VZ
29771 else
29772 echo "$as_me:$LINENO: result: no" >&5
29773echo "${ECHO_T}no" >&6
a848cd7e 29774 fi
69120ee4
VZ
29775 else
29776 echo "$as_me:$LINENO: result: no" >&5
29777echo "${ECHO_T}no" >&6
a848cd7e
SC
29778 fi
29779
29780 if test "$found_gl" != 1; then
a848cd7e
SC
29781 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29782echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29783
29784ac_find_libraries=
29785for ac_dir in $SEARCH_LIB /usr/lib;
29786 do
3eca31dc 29787 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29788 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29789 ac_find_libraries=$ac_dir
29790 break 2
29791 fi
29792 done
29793 done
29794
29795 if test "$ac_find_libraries" != "" ; then
29796
29797 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29798 result=$?
29799 if test $result = 0; then
29800 ac_path_to_link=""
29801 else
29802 ac_path_to_link=" -L$ac_find_libraries"
29803 fi
29804
29805 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29806 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29807 echo "$as_me:$LINENO: result: yes" >&5
29808echo "${ECHO_T}yes" >&6
29809 else
29810 echo "$as_me:$LINENO: result: no" >&5
29811echo "${ECHO_T}no" >&6
29812 fi
29813 fi
29814
29815fi
29816
29817
29818
29819 if test "x$OPENGL_LIBS" = "x"; then
29820 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29821echo "$as_me: error: OpenGL libraries not available" >&2;}
29822 { (exit 1); exit 1; }; }
29823 fi
29824 fi
29825
29826 if test "$wxUSE_OPENGL" = "yes"; then
29827 USE_OPENGL=1
29828 cat >>confdefs.h <<\_ACEOF
29829#define wxUSE_OPENGL 1
29830_ACEOF
29831
29832 cat >>confdefs.h <<\_ACEOF
29833#define wxUSE_GLCANVAS 1
29834_ACEOF
29835
29836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29837 fi
29838fi
29839
a848cd7e
SC
29840
29841if test -n "$TOOLKIT" ; then
29842 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29843fi
29844
a848cd7e
SC
29845
29846
29847if test "$wxUSE_SHARED" = "yes"; then
29848 case "${host}" in
29849 *-pc-msdosdjgpp )
29850 wxUSE_SHARED=no
29851 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29852echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29853 ;;
29854 esac
29855fi
29856
a848cd7e 29857if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29858
29859
29860 found_versioning=no
29861
29862
29863 if test $found_versioning = no ; then
29864 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29865echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29866if test "${wx_cv_version_script+set}" = set; then
29867 echo $ECHO_N "(cached) $ECHO_C" >&6
29868else
29869
29870 echo "VER_1 { *; };" >conftest.sym
29871 echo "int main() { return 0; }" >conftest.cpp
29872
29873 if { ac_try='
29874 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29875 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; } ; then
29881 if test -s conftest.stderr ; then
29882 wx_cv_version_script=no
29883 else
29884 wx_cv_version_script=yes
29885 fi
29886 else
29887 wx_cv_version_script=no
29888 fi
e5d4b470
MW
29889
29890 if test $wx_cv_version_script = yes
29891 then
29892 echo "struct B { virtual ~B() { } }; \
29893 struct D : public B { }; \
29894 void F() { D d; }" > conftest.cpp
29895
29896 if { ac_try='
29897 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29898 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='
29905 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29906 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; }
29912 then
29913 if { ac_try='
29914 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29915 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; }
29921 then
29922 wx_cv_version_script=yes
29923 else
29924 wx_cv_version_script=no
29925 fi
29926 fi
29927 fi
29928
a848cd7e 29929 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29930 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29931
29932fi
29933echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29934echo "${ECHO_T}$wx_cv_version_script" >&6
29935 if test $wx_cv_version_script = yes ; then
29936 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29937 fi
29938 fi
29939
29940
29941 case "${host}" in
29942 *-*-linux* | *-*-gnu* )
29943 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29944 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29945 ;;
a848cd7e
SC
29946
29947 *-*-solaris2* )
29948 if test "$GCC" = yes ; then
29949 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29950
29951 saveLdflags="$LDFLAGS"
29952 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29953 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29954echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29955 cat >conftest.$ac_ext <<_ACEOF
29956/* confdefs.h. */
29957_ACEOF
29958cat confdefs.h >>conftest.$ac_ext
29959cat >>conftest.$ac_ext <<_ACEOF
29960/* end confdefs.h. */
29961
29962int
29963main ()
29964{
29965
29966 ;
29967 return 0;
29968}
29969_ACEOF
29970rm -f conftest.$ac_objext conftest$ac_exeext
29971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29972 (eval $ac_link) 2>conftest.er1
a848cd7e 29973 ac_status=$?
ac1cb8d3
VS
29974 grep -v '^ *+' conftest.er1 >conftest.err
29975 rm -f conftest.er1
29976 cat conftest.err >&5
a848cd7e
SC
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } &&
6ebeb4c7 29979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981 (eval $ac_try) 2>&5
29982 ac_status=$?
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; } &&
29985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987 (eval $ac_try) 2>&5
29988 ac_status=$?
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; }; then
29991
29992 echo "$as_me:$LINENO: result: yes" >&5
29993echo "${ECHO_T}yes" >&6
29994 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29995 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29996
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001
30002 echo "$as_me:$LINENO: result: no" >&5
30003echo "${ECHO_T}no" >&6
30004 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30005echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30006 LDFLAGS="$saveLdflags -Wl,-R,/"
30007 cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h. */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h. */
30013
30014int
30015main ()
30016{
30017
30018 ;
30019 return 0;
30020}
30021_ACEOF
30022rm -f conftest.$ac_objext conftest$ac_exeext
30023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30024 (eval $ac_link) 2>conftest.er1
a848cd7e 30025 ac_status=$?
ac1cb8d3
VS
30026 grep -v '^ *+' conftest.er1 >conftest.err
30027 rm -f conftest.er1
30028 cat conftest.err >&5
a848cd7e
SC
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } &&
6ebeb4c7 30031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30033 (eval $ac_try) 2>&5
30034 ac_status=$?
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); }; } &&
30037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30039 (eval $ac_try) 2>&5
30040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; }; then
30043
ffa0583f 30044 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30045echo "${ECHO_T}yes" >&6
ffa0583f
RL
30046 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30047 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30048
a848cd7e
SC
30049else
30050 echo "$as_me: failed program was:" >&5
30051sed 's/^/| /' conftest.$ac_ext >&5
30052
30053
30054 echo "$as_me:$LINENO: result: no" >&5
30055echo "${ECHO_T}no" >&6
30056
30057fi
ac1cb8d3
VS
30058rm -f conftest.err conftest.$ac_objext \
30059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30060
30061fi
ac1cb8d3
VS
30062rm -f conftest.err conftest.$ac_objext \
30063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30064 LDFLAGS="$saveLdflags"
30065 else
a848cd7e 30066 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30067 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30068 fi
30069 ;;
30070
cfda0ea8 30071 *-*-darwin* )
0caebc27
MW
30072 install_name_tool=`which install_name_tool`
30073 if test "$install_name_tool" -a -x "$install_name_tool"; then
30074 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30075 cat <<EOF >change-install-names
a848cd7e
SC
30076#!/bin/sh
30077libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30078inst_cmd="install_name_tool "
30079for i in \${libnames} ; do
30080 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30081done
30082\${inst_cmd} \${3}
30083EOF
0caebc27
MW
30084 chmod +x change-install-names
30085 fi
a848cd7e
SC
30086 ;;
30087
30088 *-*-cygwin* | *-*-mingw32* )
30089 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30090 ;;
30091
81f90336
MW
30092 *-*-hpux* )
30093 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30094 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30095 ;;
30096
a848cd7e 30097 esac
ceec2216 30098
ffa0583f
RL
30099 if test $wxUSE_RPATH = "no"; then
30100 SAMPLES_RPATH_FLAG=''
30101 SAMPLES_RPATH_POSTLINK=''
30102 WXCONFIG_RPATH=''
30103 fi
30104
30105 SHARED=1
30106
30107else
30108
ceec2216
RL
30109 config_linkage_component="-static"
30110 SHARED=0
ffa0583f 30111
ceec2216 30112fi
a848cd7e 30113
a848cd7e 30114
ceec2216
RL
30115UNICODE=0
30116lib_unicode_suffix=
30117WX_CHARTYPE="ansi"
30118if test "$wxUSE_UNICODE" = "yes"; then
30119 lib_unicode_suffix=u
30120 WX_CHARTYPE="unicode"
30121 UNICODE=1
a848cd7e
SC
30122fi
30123
ceec2216
RL
30124lib_debug_suffix=
30125WX_DEBUGTYPE="release"
30126DEBUG_FLAG=0
30127if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30128 lib_debug_suffix=d
30129 WX_DEBUGTYPE="debug"
30130 DEBUG_FLAG=1
30131fi
a848cd7e 30132
ceec2216
RL
30133WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30134WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30135
ceec2216
RL
30136DEBUG_INFO=0
30137if test "$wxUSE_DEBUG_INFO" = "yes"; then
30138 DEBUG_INFO=1
30139fi
a848cd7e 30140
ceec2216 30141WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30142
ceec2216 30143TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30144
ceec2216 30145TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30146
ceec2216
RL
30147if test "$cross_compiling" = "yes"; then
30148 HOST_SUFFIX="-$host_alias"
30149 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30150 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30151fi
30152
dd21ced8 30153WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30154if test "${TOOLKIT_DIR}" = "os2"; then
30155 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30156else
30157 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30158fi
ceec2216
RL
30159
30160
30161
1d1af5ea
DE
30162if test "$wxUSE_COCOA" = 1; then
30163
30164
30165 ac_ext=c
30166ac_cpp='$CPP $CPPFLAGS'
30167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30169ac_compiler_gnu=$ac_cv_c_compiler_gnu
30170
30171ac_ext=m
30172
30173 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30174echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30175 cat >conftest.$ac_ext <<_ACEOF
30176/* confdefs.h. */
30177_ACEOF
30178cat confdefs.h >>conftest.$ac_ext
30179cat >>conftest.$ac_ext <<_ACEOF
30180/* end confdefs.h. */
30181#include <AppKit/NSEvent.h>
30182#include <CoreFoundation/CoreFoundation.h>
30183
30184int
30185main ()
30186{
30187
30188 ;
30189 return 0;
30190}
30191_ACEOF
30192rm -f conftest.$ac_objext
30193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30194 (eval $ac_compile) 2>conftest.er1
30195 ac_status=$?
30196 grep -v '^ *+' conftest.er1 >conftest.err
30197 rm -f conftest.er1
30198 cat conftest.err >&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } &&
6ebeb4c7 30201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; }; then
30213 echo "$as_me:$LINENO: result: no" >&5
30214echo "${ECHO_T}no" >&6
30215else
30216 echo "$as_me: failed program was:" >&5
30217sed 's/^/| /' conftest.$ac_ext >&5
30218
30219echo "$as_me:$LINENO: result: yes" >&5
30220echo "${ECHO_T}yes" >&6
30221 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30222echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30223 cat >conftest.$ac_ext <<_ACEOF
30224/* confdefs.h. */
30225_ACEOF
30226cat confdefs.h >>conftest.$ac_ext
30227cat >>conftest.$ac_ext <<_ACEOF
30228/* end confdefs.h. */
30229#define __Point__ 1
30230#include <AppKit/NSEvent.h>
30231#include <CoreFoundation/CoreFoundation.h>
30232
30233int
30234main ()
30235{
30236
30237 ;
30238 return 0;
30239}
30240_ACEOF
30241rm -f conftest.$ac_objext
30242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30243 (eval $ac_compile) 2>conftest.er1
30244 ac_status=$?
30245 grep -v '^ *+' conftest.er1 >conftest.err
30246 rm -f conftest.er1
30247 cat conftest.err >&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } &&
6ebeb4c7 30250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; } &&
30256 { ac_try='test -s conftest.$ac_objext'
30257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258 (eval $ac_try) 2>&5
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; }; then
30262 echo "$as_me:$LINENO: result: yes" >&5
30263echo "${ECHO_T}yes" >&6
30264 cat >>confdefs.h <<\_ACEOF
30265#define __Point__ 1
30266_ACEOF
30267
30268
30269else
30270 echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273{ { echo "$as_me:$LINENO: error: no
30274See \`config.log' for more details." >&5
30275echo "$as_me: error: no
30276See \`config.log' for more details." >&2;}
30277 { (exit 1); exit 1; }; }
30278
30279fi
30280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30281
30282fi
30283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30284 ac_ext=c
30285ac_cpp='$CPP $CPPFLAGS'
30286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30288ac_compiler_gnu=$ac_cv_c_compiler_gnu
30289
30290fi
30291
a848cd7e 30292if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30293 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30294 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30295
a848cd7e 30296 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30297
30298 # Extract the first word of "Rez", so it can be a program name with args.
30299set dummy Rez; ac_word=$2
30300echo "$as_me:$LINENO: checking for $ac_word" >&5
30301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30302if test "${ac_cv_prog_RESCOMP+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30304else
30305 if test -n "$RESCOMP"; then
30306 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30307else
30308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30309for as_dir in $PATH
30310do
30311 IFS=$as_save_IFS
30312 test -z "$as_dir" && as_dir=.
30313 for ac_exec_ext in '' $ac_executable_extensions; do
30314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30315 ac_cv_prog_RESCOMP="Rez"
30316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30317 break 2
30318 fi
30319done
30320done
30321
30322 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30323fi
30324fi
30325RESCOMP=$ac_cv_prog_RESCOMP
30326if test -n "$RESCOMP"; then
30327 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30328echo "${ECHO_T}$RESCOMP" >&6
30329else
30330 echo "$as_me:$LINENO: result: no" >&5
30331echo "${ECHO_T}no" >&6
30332fi
30333
30334 # Extract the first word of "DeRez", so it can be a program name with args.
30335set dummy DeRez; ac_word=$2
30336echo "$as_me:$LINENO: checking for $ac_word" >&5
30337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30338if test "${ac_cv_prog_DEREZ+set}" = set; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30340else
30341 if test -n "$DEREZ"; then
30342 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30343else
30344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30345for as_dir in $PATH
30346do
30347 IFS=$as_save_IFS
30348 test -z "$as_dir" && as_dir=.
30349 for ac_exec_ext in '' $ac_executable_extensions; do
30350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30351 ac_cv_prog_DEREZ="DeRez"
30352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30353 break 2
30354 fi
30355done
30356done
30357
30358 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30359fi
30360fi
30361DEREZ=$ac_cv_prog_DEREZ
30362if test -n "$DEREZ"; then
30363 echo "$as_me:$LINENO: result: $DEREZ" >&5
30364echo "${ECHO_T}$DEREZ" >&6
30365else
30366 echo "$as_me:$LINENO: result: no" >&5
30367echo "${ECHO_T}no" >&6
30368fi
30369
30370 # Extract the first word of "SetFile", so it can be a program name with args.
30371set dummy SetFile; ac_word=$2
30372echo "$as_me:$LINENO: checking for $ac_word" >&5
30373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30374if test "${ac_cv_prog_SETFILE+set}" = set; then
30375 echo $ECHO_N "(cached) $ECHO_C" >&6
30376else
30377 if test -n "$SETFILE"; then
30378 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30379else
30380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30381for as_dir in $PATH
30382do
30383 IFS=$as_save_IFS
30384 test -z "$as_dir" && as_dir=.
30385 for ac_exec_ext in '' $ac_executable_extensions; do
30386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30387 ac_cv_prog_SETFILE="SetFile"
30388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30389 break 2
30390 fi
30391done
30392done
30393
30394 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30395fi
30396fi
30397SETFILE=$ac_cv_prog_SETFILE
30398if test -n "$SETFILE"; then
30399 echo "$as_me:$LINENO: result: $SETFILE" >&5
30400echo "${ECHO_T}$SETFILE" >&6
30401else
30402 echo "$as_me:$LINENO: result: no" >&5
30403echo "${ECHO_T}no" >&6
30404fi
30405
30406
30407 MACSETFILE="\$(SETFILE)"
30408
30409 if test "$wxUSE_MAC" = 1; then
1a79f136 30410 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30411
1a79f136 30412 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30413 else
30414 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30415 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30416 fi
30417else
ffa0583f
RL
30418 MACSETFILE="@true"
30419 MACRESWXCONFIG="@true"
a848cd7e
SC
30420
30421 if test "$wxUSE_PM" = 1; then
30422 MACRESCOMP="emxbind -ep"
30423 else
ffa0583f 30424 MACRESCOMP="@true"
a848cd7e
SC
30425 fi
30426fi
30427
30428
30429
30430echo "$as_me:$LINENO: checking for mode_t" >&5
30431echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30432if test "${ac_cv_type_mode_t+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30434else
30435 cat >conftest.$ac_ext <<_ACEOF
30436/* confdefs.h. */
30437_ACEOF
30438cat confdefs.h >>conftest.$ac_ext
30439cat >>conftest.$ac_ext <<_ACEOF
30440/* end confdefs.h. */
30441$ac_includes_default
30442int
30443main ()
30444{
30445if ((mode_t *) 0)
30446 return 0;
30447if (sizeof (mode_t))
30448 return 0;
30449 ;
30450 return 0;
30451}
30452_ACEOF
30453rm -f conftest.$ac_objext
30454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30455 (eval $ac_compile) 2>conftest.er1
a848cd7e 30456 ac_status=$?
ac1cb8d3
VS
30457 grep -v '^ *+' conftest.er1 >conftest.err
30458 rm -f conftest.er1
30459 cat conftest.err >&5
a848cd7e
SC
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); } &&
6ebeb4c7 30462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30464 (eval $ac_try) 2>&5
30465 ac_status=$?
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); }; } &&
30468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30470 (eval $ac_try) 2>&5
30471 ac_status=$?
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); }; }; then
30474 ac_cv_type_mode_t=yes
30475else
30476 echo "$as_me: failed program was:" >&5
30477sed 's/^/| /' conftest.$ac_ext >&5
30478
30479ac_cv_type_mode_t=no
30480fi
ac1cb8d3 30481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30482fi
30483echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30484echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30485if test $ac_cv_type_mode_t = yes; then
30486 :
30487else
30488
30489cat >>confdefs.h <<_ACEOF
30490#define mode_t int
30491_ACEOF
30492
30493fi
30494
30495echo "$as_me:$LINENO: checking for off_t" >&5
30496echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30497if test "${ac_cv_type_off_t+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30499else
30500 cat >conftest.$ac_ext <<_ACEOF
30501/* confdefs.h. */
30502_ACEOF
30503cat confdefs.h >>conftest.$ac_ext
30504cat >>conftest.$ac_ext <<_ACEOF
30505/* end confdefs.h. */
30506$ac_includes_default
30507int
30508main ()
30509{
30510if ((off_t *) 0)
30511 return 0;
30512if (sizeof (off_t))
30513 return 0;
30514 ;
30515 return 0;
30516}
30517_ACEOF
30518rm -f conftest.$ac_objext
30519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30520 (eval $ac_compile) 2>conftest.er1
a848cd7e 30521 ac_status=$?
ac1cb8d3
VS
30522 grep -v '^ *+' conftest.er1 >conftest.err
30523 rm -f conftest.er1
30524 cat conftest.err >&5
a848cd7e
SC
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } &&
6ebeb4c7 30527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; } &&
30533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535 (eval $ac_try) 2>&5
30536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; }; then
30539 ac_cv_type_off_t=yes
30540else
30541 echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544ac_cv_type_off_t=no
30545fi
ac1cb8d3 30546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30547fi
30548echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30549echo "${ECHO_T}$ac_cv_type_off_t" >&6
30550if test $ac_cv_type_off_t = yes; then
30551 :
30552else
30553
30554cat >>confdefs.h <<_ACEOF
30555#define off_t long
30556_ACEOF
30557
30558fi
30559
30560echo "$as_me:$LINENO: checking for pid_t" >&5
30561echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30562if test "${ac_cv_type_pid_t+set}" = set; then
30563 echo $ECHO_N "(cached) $ECHO_C" >&6
30564else
30565 cat >conftest.$ac_ext <<_ACEOF
30566/* confdefs.h. */
30567_ACEOF
30568cat confdefs.h >>conftest.$ac_ext
30569cat >>conftest.$ac_ext <<_ACEOF
30570/* end confdefs.h. */
30571$ac_includes_default
30572int
30573main ()
30574{
30575if ((pid_t *) 0)
30576 return 0;
30577if (sizeof (pid_t))
30578 return 0;
30579 ;
30580 return 0;
30581}
30582_ACEOF
30583rm -f conftest.$ac_objext
30584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30585 (eval $ac_compile) 2>conftest.er1
a848cd7e 30586 ac_status=$?
ac1cb8d3
VS
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
a848cd7e
SC
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
6ebeb4c7 30592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30594 (eval $ac_try) 2>&5
30595 ac_status=$?
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; } &&
30598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30600 (eval $ac_try) 2>&5
30601 ac_status=$?
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); }; }; then
30604 ac_cv_type_pid_t=yes
30605else
30606 echo "$as_me: failed program was:" >&5
30607sed 's/^/| /' conftest.$ac_ext >&5
30608
30609ac_cv_type_pid_t=no
30610fi
ac1cb8d3 30611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30612fi
30613echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30614echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30615if test $ac_cv_type_pid_t = yes; then
30616 :
30617else
30618
30619cat >>confdefs.h <<_ACEOF
30620#define pid_t int
30621_ACEOF
30622
30623fi
30624
30625echo "$as_me:$LINENO: checking for size_t" >&5
30626echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30627if test "${ac_cv_type_size_t+set}" = set; then
30628 echo $ECHO_N "(cached) $ECHO_C" >&6
30629else
30630 cat >conftest.$ac_ext <<_ACEOF
30631/* confdefs.h. */
30632_ACEOF
30633cat confdefs.h >>conftest.$ac_ext
30634cat >>conftest.$ac_ext <<_ACEOF
30635/* end confdefs.h. */
30636$ac_includes_default
30637int
30638main ()
30639{
30640if ((size_t *) 0)
30641 return 0;
30642if (sizeof (size_t))
30643 return 0;
30644 ;
30645 return 0;
30646}
30647_ACEOF
30648rm -f conftest.$ac_objext
30649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30650 (eval $ac_compile) 2>conftest.er1
a848cd7e 30651 ac_status=$?
ac1cb8d3
VS
30652 grep -v '^ *+' conftest.er1 >conftest.err
30653 rm -f conftest.er1
30654 cat conftest.err >&5
a848cd7e
SC
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } &&
6ebeb4c7 30657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30660 ac_status=$?
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ac_cv_type_size_t=yes
30670else
30671 echo "$as_me: failed program was:" >&5
30672sed 's/^/| /' conftest.$ac_ext >&5
30673
30674ac_cv_type_size_t=no
30675fi
ac1cb8d3 30676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30677fi
30678echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30679echo "${ECHO_T}$ac_cv_type_size_t" >&6
30680if test $ac_cv_type_size_t = yes; then
30681 :
30682else
30683
30684cat >>confdefs.h <<_ACEOF
30685#define size_t unsigned
30686_ACEOF
30687
30688fi
30689
30690echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30691echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30692if test "${ac_cv_type_uid_t+set}" = set; then
30693 echo $ECHO_N "(cached) $ECHO_C" >&6
30694else
30695 cat >conftest.$ac_ext <<_ACEOF
30696/* confdefs.h. */
30697_ACEOF
30698cat confdefs.h >>conftest.$ac_ext
30699cat >>conftest.$ac_ext <<_ACEOF
30700/* end confdefs.h. */
30701#include <sys/types.h>
30702
30703_ACEOF
30704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30705 $EGREP "uid_t" >/dev/null 2>&1; then
30706 ac_cv_type_uid_t=yes
30707else
30708 ac_cv_type_uid_t=no
30709fi
30710rm -f conftest*
30711
30712fi
30713echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30714echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30715if test $ac_cv_type_uid_t = no; then
30716
30717cat >>confdefs.h <<\_ACEOF
30718#define uid_t int
30719_ACEOF
30720
30721
30722cat >>confdefs.h <<\_ACEOF
30723#define gid_t int
30724_ACEOF
30725
30726fi
30727
30728
d51253e8
RL
30729echo "$as_me:$LINENO: checking for ssize_t" >&5
30730echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30731if test "${ac_cv_type_ssize_t+set}" = set; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
30733else
30734 cat >conftest.$ac_ext <<_ACEOF
30735/* confdefs.h. */
30736_ACEOF
30737cat confdefs.h >>conftest.$ac_ext
30738cat >>conftest.$ac_ext <<_ACEOF
30739/* end confdefs.h. */
30740$ac_includes_default
30741int
30742main ()
30743{
30744if ((ssize_t *) 0)
30745 return 0;
30746if (sizeof (ssize_t))
30747 return 0;
30748 ;
30749 return 0;
30750}
30751_ACEOF
30752rm -f conftest.$ac_objext
30753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30754 (eval $ac_compile) 2>conftest.er1
30755 ac_status=$?
30756 grep -v '^ *+' conftest.er1 >conftest.err
30757 rm -f conftest.er1
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } &&
6ebeb4c7 30761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763 (eval $ac_try) 2>&5
30764 ac_status=$?
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); }; } &&
30767 { ac_try='test -s conftest.$ac_objext'
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; }; then
30773 ac_cv_type_ssize_t=yes
30774else
30775 echo "$as_me: failed program was:" >&5
30776sed 's/^/| /' conftest.$ac_ext >&5
30777
30778ac_cv_type_ssize_t=no
30779fi
30780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30781fi
30782echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30783echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30784if test $ac_cv_type_ssize_t = yes; then
30785
30786cat >>confdefs.h <<_ACEOF
30787#define HAVE_SSIZE_T 1
30788_ACEOF
30789
30790
30791fi
30792
30793
a848cd7e
SC
30794
30795
30796ac_ext=cc
30797ac_cpp='$CXXCPP $CPPFLAGS'
30798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30801
30802echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30803echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30804if test "${wx_cv_size_t_is_uint+set}" = set; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806else
30807
30808 cat >conftest.$ac_ext <<_ACEOF
30809/* confdefs.h. */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h. */
30814#include <stddef.h>
30815int
30816main ()
30817{
30818
30819 return 0; }
30820
30821 struct Foo { void foo(size_t); void foo(unsigned int); };
30822
30823 int bar() {
30824
30825 ;
30826 return 0;
30827}
30828_ACEOF
30829rm -f conftest.$ac_objext
30830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30831 (eval $ac_compile) 2>conftest.er1
a848cd7e 30832 ac_status=$?
ac1cb8d3
VS
30833 grep -v '^ *+' conftest.er1 >conftest.err
30834 rm -f conftest.er1
30835 cat conftest.err >&5
a848cd7e
SC
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
6ebeb4c7 30838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840 (eval $ac_try) 2>&5
30841 ac_status=$?
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; } &&
30844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30846 (eval $ac_try) 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
30850 wx_cv_size_t_is_uint=no
30851else
30852 echo "$as_me: failed program was:" >&5
30853sed 's/^/| /' conftest.$ac_ext >&5
30854
30855wx_cv_size_t_is_uint=yes
30856
30857fi
ac1cb8d3 30858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30859
30860
30861fi
30862echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30863echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30864
30865if test "$wx_cv_size_t_is_uint" = "yes"; then
30866 cat >>confdefs.h <<\_ACEOF
30867#define wxSIZE_T_IS_UINT 1
30868_ACEOF
30869
30870else
30871 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30872echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30873if test "${wx_cv_size_t_is_ulong+set}" = set; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876 cat >conftest.$ac_ext <<_ACEOF
30877/* confdefs.h. */
30878_ACEOF
30879cat confdefs.h >>conftest.$ac_ext
30880cat >>conftest.$ac_ext <<_ACEOF
30881/* end confdefs.h. */
30882#include <stddef.h>
30883int
30884main ()
30885{
30886
30887 return 0; }
30888
30889 struct Foo { void foo(size_t); void foo(unsigned long); };
30890
30891 int bar() {
30892
30893 ;
30894 return 0;
30895}
30896_ACEOF
30897rm -f conftest.$ac_objext
30898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30899 (eval $ac_compile) 2>conftest.er1
a848cd7e 30900 ac_status=$?
ac1cb8d3
VS
30901 grep -v '^ *+' conftest.er1 >conftest.err
30902 rm -f conftest.er1
30903 cat conftest.err >&5
a848cd7e
SC
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } &&
6ebeb4c7 30906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; } &&
30912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918 wx_cv_size_t_is_ulong=no
30919else
30920 echo "$as_me: failed program was:" >&5
30921sed 's/^/| /' conftest.$ac_ext >&5
30922
30923wx_cv_size_t_is_ulong=yes
30924
30925fi
ac1cb8d3 30926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30927
30928fi
30929echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30930echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30931
30932 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30933 cat >>confdefs.h <<\_ACEOF
30934#define wxSIZE_T_IS_ULONG 1
30935_ACEOF
30936
30937 fi
30938fi
30939
30940ac_ext=c
30941ac_cpp='$CPP $CPPFLAGS'
30942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30944ac_compiler_gnu=$ac_cv_c_compiler_gnu
30945
30946
30947
30948echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30949echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30950if test "${wx_cv_struct_pw_gecos+set}" = set; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30952else
30953
30954 cat >conftest.$ac_ext <<_ACEOF
30955/* confdefs.h. */
30956_ACEOF
30957cat confdefs.h >>conftest.$ac_ext
30958cat >>conftest.$ac_ext <<_ACEOF
30959/* end confdefs.h. */
30960#include <pwd.h>
30961int
30962main ()
30963{
30964
30965 char *p;
30966 struct passwd *pw;
30967 p = pw->pw_gecos;
30968
30969 ;
30970 return 0;
30971}
30972_ACEOF
30973rm -f conftest.$ac_objext
30974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30975 (eval $ac_compile) 2>conftest.er1
a848cd7e 30976 ac_status=$?
ac1cb8d3
VS
30977 grep -v '^ *+' conftest.er1 >conftest.err
30978 rm -f conftest.er1
30979 cat conftest.err >&5
a848cd7e
SC
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
6ebeb4c7 30982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30984 (eval $ac_try) 2>&5
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; } &&
30988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; }; then
30994
30995 wx_cv_struct_pw_gecos=yes
30996
30997else
30998 echo "$as_me: failed program was:" >&5
30999sed 's/^/| /' conftest.$ac_ext >&5
31000
31001
31002 wx_cv_struct_pw_gecos=no
31003
31004
31005fi
ac1cb8d3 31006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31007
31008
31009fi
31010echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31011echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31012
31013if test "$wx_cv_struct_pw_gecos" = "yes"; then
31014 cat >>confdefs.h <<\_ACEOF
31015#define HAVE_PW_GECOS 1
31016_ACEOF
31017
31018fi
31019
31020
47a7e797 31021if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31022 cat >>confdefs.h <<\_ACEOF
31023#define wxUSE_WCHAR_T 1
31024_ACEOF
31025
31026
31027 WCSLEN_FOUND=0
31028 WCHAR_LINK=
31029
31030for ac_func in wcslen
31031do
31032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31033echo "$as_me:$LINENO: checking for $ac_func" >&5
31034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31035if eval "test \"\${$as_ac_var+set}\" = set"; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
ac1cb8d3
VS
31044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31046#define $ac_func innocuous_$ac_func
31047
a848cd7e
SC
31048/* System header to define __stub macros and hopefully few prototypes,
31049 which can conflict with char $ac_func (); below.
31050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31052
a848cd7e
SC
31053#ifdef __STDC__
31054# include <limits.h>
31055#else
31056# include <assert.h>
31057#endif
ac1cb8d3
VS
31058
31059#undef $ac_func
31060
a848cd7e
SC
31061/* Override any gcc2 internal prototype to avoid an error. */
31062#ifdef __cplusplus
31063extern "C"
31064{
31065#endif
31066/* We use char because int might match the return type of a gcc2
31067 builtin and then its argument prototype would still apply. */
31068char $ac_func ();
31069/* The GNU C library defines this for functions which it implements
31070 to always fail with ENOSYS. Some functions are actually named
31071 something starting with __ and the normal name is an alias. */
31072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31073choke me
31074#else
31075char (*f) () = $ac_func;
31076#endif
31077#ifdef __cplusplus
31078}
31079#endif
31080
31081int
31082main ()
31083{
31084return f != $ac_func;
31085 ;
31086 return 0;
31087}
31088_ACEOF
31089rm -f conftest.$ac_objext conftest$ac_exeext
31090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31091 (eval $ac_link) 2>conftest.er1
a848cd7e 31092 ac_status=$?
ac1cb8d3
VS
31093 grep -v '^ *+' conftest.er1 >conftest.err
31094 rm -f conftest.er1
31095 cat conftest.err >&5
a848cd7e
SC
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); } &&
6ebeb4c7 31098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100 (eval $ac_try) 2>&5
31101 ac_status=$?
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); }; } &&
31104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106 (eval $ac_try) 2>&5
31107 ac_status=$?
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; }; then
31110 eval "$as_ac_var=yes"
31111else
31112 echo "$as_me: failed program was:" >&5
31113sed 's/^/| /' conftest.$ac_ext >&5
31114
31115eval "$as_ac_var=no"
31116fi
ac1cb8d3
VS
31117rm -f conftest.err conftest.$ac_objext \
31118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31119fi
31120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31122if test `eval echo '${'$as_ac_var'}'` = yes; then
31123 cat >>confdefs.h <<_ACEOF
31124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31125_ACEOF
31126 WCSLEN_FOUND=1
31127fi
31128done
31129
31130
31131 if test "$WCSLEN_FOUND" = 0; then
31132 if test "$TOOLKIT" = "MSW"; then
31133 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31134echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31135if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31136 echo $ECHO_N "(cached) $ECHO_C" >&6
31137else
31138 ac_check_lib_save_LIBS=$LIBS
31139LIBS="-lmsvcrt $LIBS"
31140cat >conftest.$ac_ext <<_ACEOF
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
31146
31147/* Override any gcc2 internal prototype to avoid an error. */
31148#ifdef __cplusplus
31149extern "C"
31150#endif
31151/* We use char because int might match the return type of a gcc2
31152 builtin and then its argument prototype would still apply. */
31153char wcslen ();
31154int
31155main ()
31156{
31157wcslen ();
31158 ;
31159 return 0;
31160}
31161_ACEOF
31162rm -f conftest.$ac_objext conftest$ac_exeext
31163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31164 (eval $ac_link) 2>conftest.er1
a848cd7e 31165 ac_status=$?
ac1cb8d3
VS
31166 grep -v '^ *+' conftest.er1 >conftest.err
31167 rm -f conftest.er1
31168 cat conftest.err >&5
a848cd7e
SC
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } &&
6ebeb4c7 31171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; } &&
31177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31179 (eval $ac_try) 2>&5
31180 ac_status=$?
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); }; }; then
31183 ac_cv_lib_msvcrt_wcslen=yes
31184else
31185 echo "$as_me: failed program was:" >&5
31186sed 's/^/| /' conftest.$ac_ext >&5
31187
31188ac_cv_lib_msvcrt_wcslen=no
31189fi
ac1cb8d3
VS
31190rm -f conftest.err conftest.$ac_objext \
31191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31192LIBS=$ac_check_lib_save_LIBS
31193fi
31194echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31195echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31196if test $ac_cv_lib_msvcrt_wcslen = yes; then
31197 WCHAR_OK=1
31198fi
31199
31200 else
31201 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31202echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31203if test "${ac_cv_lib_w_wcslen+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205else
31206 ac_check_lib_save_LIBS=$LIBS
31207LIBS="-lw $LIBS"
31208cat >conftest.$ac_ext <<_ACEOF
31209/* confdefs.h. */
31210_ACEOF
31211cat confdefs.h >>conftest.$ac_ext
31212cat >>conftest.$ac_ext <<_ACEOF
31213/* end confdefs.h. */
31214
31215/* Override any gcc2 internal prototype to avoid an error. */
31216#ifdef __cplusplus
31217extern "C"
31218#endif
31219/* We use char because int might match the return type of a gcc2
31220 builtin and then its argument prototype would still apply. */
31221char wcslen ();
31222int
31223main ()
31224{
31225wcslen ();
31226 ;
31227 return 0;
31228}
31229_ACEOF
31230rm -f conftest.$ac_objext conftest$ac_exeext
31231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31232 (eval $ac_link) 2>conftest.er1
a848cd7e 31233 ac_status=$?
ac1cb8d3
VS
31234 grep -v '^ *+' conftest.er1 >conftest.err
31235 rm -f conftest.er1
31236 cat conftest.err >&5
a848cd7e
SC
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } &&
6ebeb4c7 31239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31248 ac_status=$?
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; }; then
31251 ac_cv_lib_w_wcslen=yes
31252else
31253 echo "$as_me: failed program was:" >&5
31254sed 's/^/| /' conftest.$ac_ext >&5
31255
31256ac_cv_lib_w_wcslen=no
31257fi
ac1cb8d3
VS
31258rm -f conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31260LIBS=$ac_check_lib_save_LIBS
31261fi
31262echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31263echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31264if test $ac_cv_lib_w_wcslen = yes; then
31265
31266 WCHAR_LINK=" -lw"
31267 WCSLEN_FOUND=1
31268
31269fi
31270
31271 fi
31272 fi
31273
31274 if test "$WCSLEN_FOUND" = 1; then
31275 cat >>confdefs.h <<\_ACEOF
31276#define HAVE_WCSLEN 1
31277_ACEOF
31278
31279 fi
31280
efdf6afe 31281 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31282 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31283 fi
31284
efdf6afe
VZ
31285 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31286echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31287if test "${ac_cv_type_mbstate_t+set}" = set; then
31288 echo $ECHO_N "(cached) $ECHO_C" >&6
31289else
31290 cat >conftest.$ac_ext <<_ACEOF
31291/* confdefs.h. */
31292_ACEOF
31293cat confdefs.h >>conftest.$ac_ext
31294cat >>conftest.$ac_ext <<_ACEOF
31295/* end confdefs.h. */
31296#include <wchar.h>
31297
31298int
31299main ()
31300{
31301if ((mbstate_t *) 0)
31302 return 0;
31303if (sizeof (mbstate_t))
31304 return 0;
31305 ;
31306 return 0;
31307}
31308_ACEOF
31309rm -f conftest.$ac_objext
31310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31311 (eval $ac_compile) 2>conftest.er1
31312 ac_status=$?
31313 grep -v '^ *+' conftest.er1 >conftest.err
31314 rm -f conftest.er1
31315 cat conftest.err >&5
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); } &&
31318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320 (eval $ac_try) 2>&5
31321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; } &&
31324 { ac_try='test -s conftest.$ac_objext'
31325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31326 (eval $ac_try) 2>&5
31327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
31330 ac_cv_type_mbstate_t=yes
31331else
31332 echo "$as_me: failed program was:" >&5
31333sed 's/^/| /' conftest.$ac_ext >&5
31334
31335ac_cv_type_mbstate_t=no
31336fi
31337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31338fi
31339echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31340echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31341if test $ac_cv_type_mbstate_t = yes; then
31342
31343cat >>confdefs.h <<_ACEOF
31344#define HAVE_MBSTATE_T 1
31345_ACEOF
31346
a848cd7e
SC
31347
31348for ac_func in wcsrtombs
31349do
31350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351echo "$as_me:$LINENO: checking for $ac_func" >&5
31352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31353if eval "test \"\${$as_ac_var+set}\" = set"; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356 cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
ac1cb8d3
VS
31362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31364#define $ac_func innocuous_$ac_func
31365
a848cd7e
SC
31366/* System header to define __stub macros and hopefully few prototypes,
31367 which can conflict with char $ac_func (); below.
31368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31370
a848cd7e
SC
31371#ifdef __STDC__
31372# include <limits.h>
31373#else
31374# include <assert.h>
31375#endif
ac1cb8d3
VS
31376
31377#undef $ac_func
31378
a848cd7e
SC
31379/* Override any gcc2 internal prototype to avoid an error. */
31380#ifdef __cplusplus
31381extern "C"
31382{
31383#endif
31384/* We use char because int might match the return type of a gcc2
31385 builtin and then its argument prototype would still apply. */
31386char $ac_func ();
31387/* The GNU C library defines this for functions which it implements
31388 to always fail with ENOSYS. Some functions are actually named
31389 something starting with __ and the normal name is an alias. */
31390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31391choke me
31392#else
31393char (*f) () = $ac_func;
31394#endif
31395#ifdef __cplusplus
31396}
31397#endif
31398
31399int
31400main ()
31401{
31402return f != $ac_func;
31403 ;
31404 return 0;
31405}
31406_ACEOF
31407rm -f conftest.$ac_objext conftest$ac_exeext
31408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31409 (eval $ac_link) 2>conftest.er1
a848cd7e 31410 ac_status=$?
ac1cb8d3
VS
31411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
a848cd7e
SC
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
6ebeb4c7 31416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418 (eval $ac_try) 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424 (eval $ac_try) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; }; then
31428 eval "$as_ac_var=yes"
31429else
31430 echo "$as_me: failed program was:" >&5
31431sed 's/^/| /' conftest.$ac_ext >&5
31432
31433eval "$as_ac_var=no"
31434fi
ac1cb8d3
VS
31435rm -f conftest.err conftest.$ac_objext \
31436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31437fi
31438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31440if test `eval echo '${'$as_ac_var'}'` = yes; then
31441 cat >>confdefs.h <<_ACEOF
31442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31443_ACEOF
31444
31445fi
31446done
31447
efdf6afe
VZ
31448fi
31449
a848cd7e
SC
31450else
31451 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31452echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31453fi
31454
31455
31456
31457ac_ext=cc
31458ac_cpp='$CXXCPP $CPPFLAGS'
31459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31462
31463
31464
4a767dd5
VZ
31465
31466for ac_func in snprintf vsnprintf
a848cd7e
SC
31467do
31468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31469echo "$as_me:$LINENO: checking for $ac_func" >&5
31470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31471if eval "test \"\${$as_ac_var+set}\" = set"; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31473else
31474 cat >conftest.$ac_ext <<_ACEOF
31475/* confdefs.h. */
31476_ACEOF
31477cat confdefs.h >>conftest.$ac_ext
31478cat >>conftest.$ac_ext <<_ACEOF
31479/* end confdefs.h. */
ac1cb8d3
VS
31480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31482#define $ac_func innocuous_$ac_func
31483
a848cd7e
SC
31484/* System header to define __stub macros and hopefully few prototypes,
31485 which can conflict with char $ac_func (); below.
31486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31488
a848cd7e
SC
31489#ifdef __STDC__
31490# include <limits.h>
31491#else
31492# include <assert.h>
31493#endif
ac1cb8d3
VS
31494
31495#undef $ac_func
31496
a848cd7e
SC
31497/* Override any gcc2 internal prototype to avoid an error. */
31498#ifdef __cplusplus
31499extern "C"
31500{
31501#endif
31502/* We use char because int might match the return type of a gcc2
31503 builtin and then its argument prototype would still apply. */
31504char $ac_func ();
31505/* The GNU C library defines this for functions which it implements
31506 to always fail with ENOSYS. Some functions are actually named
31507 something starting with __ and the normal name is an alias. */
31508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31509choke me
31510#else
31511char (*f) () = $ac_func;
31512#endif
31513#ifdef __cplusplus
31514}
31515#endif
31516
31517int
31518main ()
31519{
31520return f != $ac_func;
31521 ;
31522 return 0;
31523}
31524_ACEOF
31525rm -f conftest.$ac_objext conftest$ac_exeext
31526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31527 (eval $ac_link) 2>conftest.er1
a848cd7e 31528 ac_status=$?
ac1cb8d3
VS
31529 grep -v '^ *+' conftest.er1 >conftest.err
31530 rm -f conftest.er1
31531 cat conftest.err >&5
a848cd7e
SC
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); } &&
6ebeb4c7 31534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 eval "$as_ac_var=yes"
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
31551eval "$as_ac_var=no"
31552fi
ac1cb8d3
VS
31553rm -f conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31555fi
31556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31558if test `eval echo '${'$as_ac_var'}'` = yes; then
31559 cat >>confdefs.h <<_ACEOF
31560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31561_ACEOF
31562
31563fi
31564done
31565
31566
31567if test "$ac_cv_func_vsnprintf" = "yes"; then
31568 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31569echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31570if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31572else
31573
efdf6afe 31574 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580
31581 #include <stdio.h>
31582 #include <stdarg.h>
efdf6afe
VZ
31583 #ifdef __MSL__
31584 #if __MSL__ >= 0x6000
31585 namespace std {}
31586 using namespace std;
31587 #endif
31588 #endif
a848cd7e
SC
31589
31590int
31591main ()
31592{
31593
31594 char *buf;
31595 va_list ap;
efdf6afe
VZ
31596 const char *fmt = "%s";
31597 vsnprintf(buf, 10u, fmt, ap);
c122b164
DE
31598
31599 ;
31600 return 0;
31601}
31602_ACEOF
31603rm -f conftest.$ac_objext
31604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31605 (eval $ac_compile) 2>conftest.er1
31606 ac_status=$?
31607 grep -v '^ *+' conftest.er1 >conftest.err
31608 rm -f conftest.er1
31609 cat conftest.err >&5
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); } &&
6ebeb4c7 31612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 wx_cv_func_vsnprintf_decl=yes
31625else
31626 echo "$as_me: failed program was:" >&5
31627sed 's/^/| /' conftest.$ac_ext >&5
31628
a848cd7e
SC
31629wx_cv_func_vsnprintf_decl=no
31630
31631fi
ac1cb8d3 31632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31633
31634
31635fi
31636echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31637echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31638
31639 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31640 cat >>confdefs.h <<\_ACEOF
31641#define HAVE_VSNPRINTF_DECL 1
31642_ACEOF
31643
31644 fi
31645fi
31646
4a767dd5
VZ
31647if test "$ac_cv_func_snprintf" = "yes"; then
31648 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
31649echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
31650if test "${wx_cv_func_snprintf_decl+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
31653
31654 cat >conftest.$ac_ext <<_ACEOF
31655/* confdefs.h. */
31656_ACEOF
31657cat confdefs.h >>conftest.$ac_ext
31658cat >>conftest.$ac_ext <<_ACEOF
31659/* end confdefs.h. */
31660
31661 #include <stdio.h>
31662 #include <stdarg.h>
31663 #ifdef __MSL__
31664 #if __MSL__ >= 0x6000
31665 namespace std {}
31666 using namespace std;
31667 #endif
31668 #endif
31669
31670int
31671main ()
31672{
31673
31674 char *buf;
31675 const char *fmt = "%s";
31676 snprintf(buf, 10u, fmt, "wx");
31677
31678 ;
31679 return 0;
31680}
31681_ACEOF
31682rm -f conftest.$ac_objext
31683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31684 (eval $ac_compile) 2>conftest.er1
31685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31693 (eval $ac_try) 2>&5
31694 ac_status=$?
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
31698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31699 (eval $ac_try) 2>&5
31700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; }; then
31703 wx_cv_func_snprintf_decl=yes
31704else
31705 echo "$as_me: failed program was:" >&5
31706sed 's/^/| /' conftest.$ac_ext >&5
31707
31708wx_cv_func_snprintf_decl=no
31709
31710fi
31711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31712
31713
31714fi
31715echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
31716echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
31717
31718 if test "$wx_cv_func_snprintf_decl" = "yes"; then
31719 cat >>confdefs.h <<\_ACEOF
31720#define HAVE_SNPRINTF_DECL 1
31721_ACEOF
31722
31723 fi
31724fi
31725
a848cd7e
SC
31726if test "$wxUSE_UNICODE" = yes; then
31727
31728
31729
fbe47c7b
VS
31730
31731
31732
31733for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31734do
31735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31736echo "$as_me:$LINENO: checking for $ac_func" >&5
31737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31738if eval "test \"\${$as_ac_var+set}\" = set"; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31740else
31741 cat >conftest.$ac_ext <<_ACEOF
31742/* confdefs.h. */
31743_ACEOF
31744cat confdefs.h >>conftest.$ac_ext
31745cat >>conftest.$ac_ext <<_ACEOF
31746/* end confdefs.h. */
ac1cb8d3
VS
31747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31749#define $ac_func innocuous_$ac_func
31750
a848cd7e
SC
31751/* System header to define __stub macros and hopefully few prototypes,
31752 which can conflict with char $ac_func (); below.
31753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31754 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31755
a848cd7e
SC
31756#ifdef __STDC__
31757# include <limits.h>
31758#else
31759# include <assert.h>
31760#endif
ac1cb8d3
VS
31761
31762#undef $ac_func
31763
a848cd7e
SC
31764/* Override any gcc2 internal prototype to avoid an error. */
31765#ifdef __cplusplus
31766extern "C"
31767{
31768#endif
31769/* We use char because int might match the return type of a gcc2
31770 builtin and then its argument prototype would still apply. */
31771char $ac_func ();
31772/* The GNU C library defines this for functions which it implements
31773 to always fail with ENOSYS. Some functions are actually named
31774 something starting with __ and the normal name is an alias. */
31775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31776choke me
31777#else
31778char (*f) () = $ac_func;
31779#endif
31780#ifdef __cplusplus
31781}
31782#endif
31783
31784int
31785main ()
31786{
31787return f != $ac_func;
31788 ;
31789 return 0;
31790}
31791_ACEOF
31792rm -f conftest.$ac_objext conftest$ac_exeext
31793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31794 (eval $ac_link) 2>conftest.er1
a848cd7e 31795 ac_status=$?
ac1cb8d3
VS
31796 grep -v '^ *+' conftest.er1 >conftest.err
31797 rm -f conftest.er1
31798 cat conftest.err >&5
a848cd7e
SC
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); } &&
6ebeb4c7 31801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31803 (eval $ac_try) 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; } &&
31807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; }; then
31813 eval "$as_ac_var=yes"
31814else
31815 echo "$as_me: failed program was:" >&5
31816sed 's/^/| /' conftest.$ac_ext >&5
31817
31818eval "$as_ac_var=no"
31819fi
ac1cb8d3
VS
31820rm -f conftest.err conftest.$ac_objext \
31821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31822fi
31823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31825if test `eval echo '${'$as_ac_var'}'` = yes; then
31826 cat >>confdefs.h <<_ACEOF
31827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31828_ACEOF
31829
31830fi
31831done
31832
31833
31834 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31835echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31836 cat >conftest.$ac_ext <<_ACEOF
31837/* confdefs.h. */
31838_ACEOF
31839cat confdefs.h >>conftest.$ac_ext
31840cat >>conftest.$ac_ext <<_ACEOF
31841/* end confdefs.h. */
31842#include <wchar.h>
31843int
31844main ()
31845{
31846&_vsnwprintf;
31847 ;
31848 return 0;
31849}
31850_ACEOF
31851rm -f conftest.$ac_objext
31852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31853 (eval $ac_compile) 2>conftest.er1
a848cd7e 31854 ac_status=$?
ac1cb8d3
VS
31855 grep -v '^ *+' conftest.er1 >conftest.err
31856 rm -f conftest.er1
31857 cat conftest.err >&5
a848cd7e
SC
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); } &&
6ebeb4c7 31860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862 (eval $ac_try) 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; } &&
31866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; }; then
31872 echo "$as_me:$LINENO: result: yes" >&5
31873echo "${ECHO_T}yes" >&6
31874 cat >>confdefs.h <<\_ACEOF
31875#define HAVE__VSNWPRINTF 1
31876_ACEOF
31877
31878else
31879 echo "$as_me: failed program was:" >&5
31880sed 's/^/| /' conftest.$ac_ext >&5
31881
31882echo "$as_me:$LINENO: result: no" >&5
31883echo "${ECHO_T}no" >&6
31884fi
ac1cb8d3 31885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31886fi
31887
31888ac_ext=c
31889ac_cpp='$CPP $CPPFLAGS'
31890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31892ac_compiler_gnu=$ac_cv_c_compiler_gnu
31893
31894
6ebeb4c7
VZ
31895if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31896
31897for ac_func in fnmatch
31898do
31899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31900echo "$as_me:$LINENO: checking for $ac_func" >&5
31901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31902if eval "test \"\${$as_ac_var+set}\" = set"; then
31903 echo $ECHO_N "(cached) $ECHO_C" >&6
31904else
31905 cat >conftest.$ac_ext <<_ACEOF
31906/* confdefs.h. */
31907_ACEOF
31908cat confdefs.h >>conftest.$ac_ext
31909cat >>conftest.$ac_ext <<_ACEOF
31910/* end confdefs.h. */
31911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31913#define $ac_func innocuous_$ac_func
31914
31915/* System header to define __stub macros and hopefully few prototypes,
31916 which can conflict with char $ac_func (); below.
31917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31918 <limits.h> exists even on freestanding compilers. */
31919
31920#ifdef __STDC__
31921# include <limits.h>
31922#else
31923# include <assert.h>
31924#endif
31925
31926#undef $ac_func
31927
31928/* Override any gcc2 internal prototype to avoid an error. */
31929#ifdef __cplusplus
31930extern "C"
31931{
31932#endif
31933/* We use char because int might match the return type of a gcc2
31934 builtin and then its argument prototype would still apply. */
31935char $ac_func ();
31936/* The GNU C library defines this for functions which it implements
31937 to always fail with ENOSYS. Some functions are actually named
31938 something starting with __ and the normal name is an alias. */
31939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31940choke me
31941#else
31942char (*f) () = $ac_func;
31943#endif
31944#ifdef __cplusplus
31945}
31946#endif
31947
31948int
31949main ()
31950{
31951return f != $ac_func;
31952 ;
31953 return 0;
31954}
31955_ACEOF
31956rm -f conftest.$ac_objext conftest$ac_exeext
31957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31958 (eval $ac_link) 2>conftest.er1
31959 ac_status=$?
31960 grep -v '^ *+' conftest.er1 >conftest.err
31961 rm -f conftest.er1
31962 cat conftest.err >&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); } &&
31965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31967 (eval $ac_try) 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; } &&
31971 { ac_try='test -s conftest$ac_exeext'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; }; then
31977 eval "$as_ac_var=yes"
31978else
31979 echo "$as_me: failed program was:" >&5
31980sed 's/^/| /' conftest.$ac_ext >&5
31981
31982eval "$as_ac_var=no"
31983fi
31984rm -f conftest.err conftest.$ac_objext \
31985 conftest$ac_exeext conftest.$ac_ext
31986fi
31987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31989if test `eval echo '${'$as_ac_var'}'` = yes; then
31990 cat >>confdefs.h <<_ACEOF
31991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31992_ACEOF
31993
31994fi
31995done
31996
31997fi
31998
31999if test "$wxUSE_FILE" = "yes"; then
32000
32001for ac_func in fsync
32002do
32003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32004echo "$as_me:$LINENO: checking for $ac_func" >&5
32005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32006if eval "test \"\${$as_ac_var+set}\" = set"; then
32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32008else
32009 cat >conftest.$ac_ext <<_ACEOF
32010/* confdefs.h. */
32011_ACEOF
32012cat confdefs.h >>conftest.$ac_ext
32013cat >>conftest.$ac_ext <<_ACEOF
32014/* end confdefs.h. */
32015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32017#define $ac_func innocuous_$ac_func
32018
32019/* System header to define __stub macros and hopefully few prototypes,
32020 which can conflict with char $ac_func (); below.
32021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32022 <limits.h> exists even on freestanding compilers. */
32023
32024#ifdef __STDC__
32025# include <limits.h>
32026#else
32027# include <assert.h>
32028#endif
32029
32030#undef $ac_func
32031
32032/* Override any gcc2 internal prototype to avoid an error. */
32033#ifdef __cplusplus
32034extern "C"
32035{
32036#endif
32037/* We use char because int might match the return type of a gcc2
32038 builtin and then its argument prototype would still apply. */
32039char $ac_func ();
32040/* The GNU C library defines this for functions which it implements
32041 to always fail with ENOSYS. Some functions are actually named
32042 something starting with __ and the normal name is an alias. */
32043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32044choke me
32045#else
32046char (*f) () = $ac_func;
32047#endif
32048#ifdef __cplusplus
32049}
32050#endif
32051
32052int
32053main ()
32054{
32055return f != $ac_func;
32056 ;
32057 return 0;
32058}
32059_ACEOF
32060rm -f conftest.$ac_objext conftest$ac_exeext
32061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32062 (eval $ac_link) 2>conftest.er1
32063 ac_status=$?
32064 grep -v '^ *+' conftest.er1 >conftest.err
32065 rm -f conftest.er1
32066 cat conftest.err >&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); } &&
32069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; } &&
32075 { ac_try='test -s conftest$ac_exeext'
32076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32077 (eval $ac_try) 2>&5
32078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 eval "$as_ac_var=yes"
32082else
32083 echo "$as_me: failed program was:" >&5
32084sed 's/^/| /' conftest.$ac_ext >&5
32085
32086eval "$as_ac_var=no"
32087fi
32088rm -f conftest.err conftest.$ac_objext \
32089 conftest$ac_exeext conftest.$ac_ext
32090fi
32091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32092echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32093if test `eval echo '${'$as_ac_var'}'` = yes; then
32094 cat >>confdefs.h <<_ACEOF
32095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32096_ACEOF
32097
32098fi
32099done
32100
32101fi
a848cd7e
SC
32102
32103
32104if test "$TOOLKIT" != "MSW"; then
32105
32106
32107
32108
32109ac_ext=cc
32110ac_cpp='$CXXCPP $CPPFLAGS'
32111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32114
32115
32116
32117
32118# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32119if test "${with_libiconv_prefix+set}" = set; then
32120 withval="$with_libiconv_prefix"
32121
32122 for dir in `echo "$withval" | tr : ' '`; do
32123 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32124 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32125 done
32126
32127fi;
32128
32129 echo "$as_me:$LINENO: checking for iconv" >&5
32130echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32131if test "${am_cv_func_iconv+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32133else
32134
32135 am_cv_func_iconv="no, consider installing GNU libiconv"
32136 am_cv_lib_iconv=no
32137 cat >conftest.$ac_ext <<_ACEOF
32138/* confdefs.h. */
32139_ACEOF
32140cat confdefs.h >>conftest.$ac_ext
32141cat >>conftest.$ac_ext <<_ACEOF
32142/* end confdefs.h. */
32143#include <stdlib.h>
32144#include <iconv.h>
32145int
32146main ()
32147{
32148iconv_t cd = iconv_open("","");
32149 iconv(cd,NULL,NULL,NULL,NULL);
32150 iconv_close(cd);
32151 ;
32152 return 0;
32153}
32154_ACEOF
32155rm -f conftest.$ac_objext conftest$ac_exeext
32156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32157 (eval $ac_link) 2>conftest.er1
a848cd7e 32158 ac_status=$?
ac1cb8d3
VS
32159 grep -v '^ *+' conftest.er1 >conftest.err
32160 rm -f conftest.er1
32161 cat conftest.err >&5
a848cd7e
SC
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); } &&
6ebeb4c7 32164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32166 (eval $ac_try) 2>&5
32167 ac_status=$?
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); }; } &&
32170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32172 (eval $ac_try) 2>&5
32173 ac_status=$?
32174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175 (exit $ac_status); }; }; then
32176 am_cv_func_iconv=yes
32177else
32178 echo "$as_me: failed program was:" >&5
32179sed 's/^/| /' conftest.$ac_ext >&5
32180
32181fi
ac1cb8d3
VS
32182rm -f conftest.err conftest.$ac_objext \
32183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32184 if test "$am_cv_func_iconv" != yes; then
32185 am_save_LIBS="$LIBS"
32186 LIBS="$LIBS -liconv"
32187 cat >conftest.$ac_ext <<_ACEOF
32188/* confdefs.h. */
32189_ACEOF
32190cat confdefs.h >>conftest.$ac_ext
32191cat >>conftest.$ac_ext <<_ACEOF
32192/* end confdefs.h. */
32193#include <stdlib.h>
32194#include <iconv.h>
32195int
32196main ()
32197{
32198iconv_t cd = iconv_open("","");
32199 iconv(cd,NULL,NULL,NULL,NULL);
32200 iconv_close(cd);
32201 ;
32202 return 0;
32203}
32204_ACEOF
32205rm -f conftest.$ac_objext conftest$ac_exeext
32206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32207 (eval $ac_link) 2>conftest.er1
a848cd7e 32208 ac_status=$?
ac1cb8d3
VS
32209 grep -v '^ *+' conftest.er1 >conftest.err
32210 rm -f conftest.er1
32211 cat conftest.err >&5
a848cd7e
SC
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); } &&
6ebeb4c7 32214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; } &&
32220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32222 (eval $ac_try) 2>&5
32223 ac_status=$?
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
32226 am_cv_lib_iconv=yes
32227 am_cv_func_iconv=yes
32228else
32229 echo "$as_me: failed program was:" >&5
32230sed 's/^/| /' conftest.$ac_ext >&5
32231
32232fi
ac1cb8d3
VS
32233rm -f conftest.err conftest.$ac_objext \
32234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32235 LIBS="$am_save_LIBS"
32236 fi
32237
32238fi
32239echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32240echo "${ECHO_T}$am_cv_func_iconv" >&6
32241 if test "$am_cv_func_iconv" = yes; then
32242
32243cat >>confdefs.h <<\_ACEOF
32244#define HAVE_ICONV 1
32245_ACEOF
32246
32247 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32248echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32249if test "${wx_cv_func_iconv_const+set}" = set; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32251else
32252 cat >conftest.$ac_ext <<_ACEOF
32253/* confdefs.h. */
32254_ACEOF
32255cat confdefs.h >>conftest.$ac_ext
32256cat >>conftest.$ac_ext <<_ACEOF
32257/* end confdefs.h. */
32258
32259#include <stdlib.h>
32260#include <iconv.h>
32261extern
32262#ifdef __cplusplus
32263"C"
32264#endif
32265#if defined(__STDC__) || defined(__cplusplus)
32266size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32267#else
32268size_t iconv();
32269#endif
32270
32271int
32272main ()
32273{
32274
32275 ;
32276 return 0;
32277}
32278_ACEOF
32279rm -f conftest.$ac_objext
32280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32281 (eval $ac_compile) 2>conftest.er1
a848cd7e 32282 ac_status=$?
ac1cb8d3
VS
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
a848cd7e
SC
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } &&
6ebeb4c7 32288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; } &&
32294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296 (eval $ac_try) 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32300 wx_cv_func_iconv_const="no"
32301else
32302 echo "$as_me: failed program was:" >&5
32303sed 's/^/| /' conftest.$ac_ext >&5
32304
32305wx_cv_func_iconv_const="yes"
32306
32307fi
ac1cb8d3 32308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32309
32310fi
32311echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32312echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32313
32314 iconv_const=
32315 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32316 iconv_const="const"
32317 fi
32318
32319
32320cat >>confdefs.h <<_ACEOF
32321#define ICONV_CONST $iconv_const
32322_ACEOF
32323
32324 fi
32325 LIBICONV=
32326 if test "$am_cv_lib_iconv" = yes; then
32327 LIBICONV="-liconv"
32328 fi
32329
32330
32331LIBS="$LIBICONV $LIBS"
32332ac_ext=c
32333ac_cpp='$CPP $CPPFLAGS'
32334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32336ac_compiler_gnu=$ac_cv_c_compiler_gnu
32337
32338
32339if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32340
32341for ac_func in sigaction
32342do
32343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32344echo "$as_me:$LINENO: checking for $ac_func" >&5
32345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32346if eval "test \"\${$as_ac_var+set}\" = set"; then
32347 echo $ECHO_N "(cached) $ECHO_C" >&6
32348else
32349 cat >conftest.$ac_ext <<_ACEOF
32350/* confdefs.h. */
32351_ACEOF
32352cat confdefs.h >>conftest.$ac_ext
32353cat >>conftest.$ac_ext <<_ACEOF
32354/* end confdefs.h. */
ac1cb8d3
VS
32355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32357#define $ac_func innocuous_$ac_func
32358
a848cd7e
SC
32359/* System header to define __stub macros and hopefully few prototypes,
32360 which can conflict with char $ac_func (); below.
32361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32363
a848cd7e
SC
32364#ifdef __STDC__
32365# include <limits.h>
32366#else
32367# include <assert.h>
32368#endif
ac1cb8d3
VS
32369
32370#undef $ac_func
32371
a848cd7e
SC
32372/* Override any gcc2 internal prototype to avoid an error. */
32373#ifdef __cplusplus
32374extern "C"
32375{
32376#endif
32377/* We use char because int might match the return type of a gcc2
32378 builtin and then its argument prototype would still apply. */
32379char $ac_func ();
32380/* The GNU C library defines this for functions which it implements
32381 to always fail with ENOSYS. Some functions are actually named
32382 something starting with __ and the normal name is an alias. */
32383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32384choke me
32385#else
32386char (*f) () = $ac_func;
32387#endif
32388#ifdef __cplusplus
32389}
32390#endif
32391
32392int
32393main ()
32394{
32395return f != $ac_func;
32396 ;
32397 return 0;
32398}
32399_ACEOF
32400rm -f conftest.$ac_objext conftest$ac_exeext
32401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32402 (eval $ac_link) 2>conftest.er1
a848cd7e 32403 ac_status=$?
ac1cb8d3
VS
32404 grep -v '^ *+' conftest.er1 >conftest.err
32405 rm -f conftest.er1
32406 cat conftest.err >&5
a848cd7e
SC
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); } &&
6ebeb4c7 32409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411 (eval $ac_try) 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; } &&
32415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417 (eval $ac_try) 2>&5
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
32421 eval "$as_ac_var=yes"
32422else
32423 echo "$as_me: failed program was:" >&5
32424sed 's/^/| /' conftest.$ac_ext >&5
32425
32426eval "$as_ac_var=no"
32427fi
ac1cb8d3
VS
32428rm -f conftest.err conftest.$ac_objext \
32429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32430fi
32431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32433if test `eval echo '${'$as_ac_var'}'` = yes; then
32434 cat >>confdefs.h <<_ACEOF
32435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32436_ACEOF
32437
32438fi
32439done
32440
32441
32442 if test "$ac_cv_func_sigaction" = "no"; then
32443 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32444echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32445 wxUSE_ON_FATAL_EXCEPTION=no
32446 fi
32447
32448 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32449
32450
32451 ac_ext=cc
32452ac_cpp='$CXXCPP $CPPFLAGS'
32453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32456
32457
32458 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32459echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32460if test "${wx_cv_type_sa_handler+set}" = set; then
32461 echo $ECHO_N "(cached) $ECHO_C" >&6
32462else
32463
32464 cat >conftest.$ac_ext <<_ACEOF
32465/* confdefs.h. */
32466_ACEOF
32467cat confdefs.h >>conftest.$ac_ext
32468cat >>conftest.$ac_ext <<_ACEOF
32469/* end confdefs.h. */
32470#include <signal.h>
32471int
32472main ()
32473{
32474
32475 extern void testSigHandler(int);
32476
32477 struct sigaction sa;
32478 sa.sa_handler = testSigHandler;
32479
32480 ;
32481 return 0;
32482}
32483_ACEOF
32484rm -f conftest.$ac_objext
32485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32486 (eval $ac_compile) 2>conftest.er1
a848cd7e 32487 ac_status=$?
ac1cb8d3
VS
32488 grep -v '^ *+' conftest.er1 >conftest.err
32489 rm -f conftest.er1
32490 cat conftest.err >&5
a848cd7e
SC
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); } &&
6ebeb4c7 32493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32495 (eval $ac_try) 2>&5
32496 ac_status=$?
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501 (eval $ac_try) 2>&5
32502 ac_status=$?
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; }; then
32505
32506 wx_cv_type_sa_handler=int
32507
32508else
32509 echo "$as_me: failed program was:" >&5
32510sed 's/^/| /' conftest.$ac_ext >&5
32511
32512
32513 wx_cv_type_sa_handler=void
32514
32515fi
ac1cb8d3 32516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32517
32518fi
32519echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32520echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32521
32522 ac_ext=c
32523ac_cpp='$CPP $CPPFLAGS'
32524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32526ac_compiler_gnu=$ac_cv_c_compiler_gnu
32527
32528
32529 cat >>confdefs.h <<_ACEOF
32530#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32531_ACEOF
32532
32533 fi
32534fi
32535
eaff0f0d
VZ
32536if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32537
32538
32539 ac_ext=cc
32540ac_cpp='$CXXCPP $CPPFLAGS'
32541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32544
32545
32546 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32547echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32548if test "${wx_cv_func_backtrace+set}" = set; then
32549 echo $ECHO_N "(cached) $ECHO_C" >&6
32550else
32551
32552 cat >conftest.$ac_ext <<_ACEOF
32553/* confdefs.h. */
32554_ACEOF
32555cat confdefs.h >>conftest.$ac_ext
32556cat >>conftest.$ac_ext <<_ACEOF
32557/* end confdefs.h. */
32558#include <execinfo.h>
32559int
32560main ()
32561{
32562
32563 void *trace[1];
32564 char **messages;
32565
32566 backtrace(trace, 1);
32567 messages = backtrace_symbols(trace, 1);
32568
32569 ;
32570 return 0;
32571}
32572_ACEOF
32573rm -f conftest.$ac_objext
32574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32575 (eval $ac_compile) 2>conftest.er1
32576 ac_status=$?
32577 grep -v '^ *+' conftest.er1 >conftest.err
32578 rm -f conftest.er1
32579 cat conftest.err >&5
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); } &&
6ebeb4c7 32582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584 (eval $ac_try) 2>&5
32585 ac_status=$?
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); }; } &&
32588 { ac_try='test -s conftest.$ac_objext'
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; }; then
32594 wx_cv_func_backtrace=yes
32595else
32596 echo "$as_me: failed program was:" >&5
32597sed 's/^/| /' conftest.$ac_ext >&5
32598
32599wx_cv_func_backtrace=no
32600
32601fi
32602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32603
32604
32605fi
32606echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32607echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32608
32609
32610 if test "$wx_cv_func_backtrace" = "no"; then
32611 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32612echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32613 wxUSE_STACKWALKER=no
32614 else
32615 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32616echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32617if test "${wx_cv_func_cxa_demangle+set}" = set; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32619else
32620
32621 cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
32627#include <cxxabi.h>
32628int
32629main ()
32630{
32631
32632 int rc;
32633 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32634
32635 ;
32636 return 0;
32637}
32638_ACEOF
dfe0c803
JS
32639rm -f conftest.$ac_objext conftest$ac_exeext
32640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32641 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32642 ac_status=$?
32643 grep -v '^ *+' conftest.er1 >conftest.err
32644 rm -f conftest.er1
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } &&
6ebeb4c7 32648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650 (eval $ac_try) 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
dfe0c803 32654 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 wx_cv_func_cxa_demangle=yes
32661else
32662 echo "$as_me: failed program was:" >&5
32663sed 's/^/| /' conftest.$ac_ext >&5
32664
32665wx_cv_func_cxa_demangle=no
32666
32667fi
dfe0c803
JS
32668rm -f conftest.err conftest.$ac_objext \
32669 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32670
32671
32672fi
32673echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32674echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32675
32676 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32677 cat >>confdefs.h <<\_ACEOF
32678#define HAVE_CXA_DEMANGLE 1
32679_ACEOF
32680
32681 fi
32682 fi
32683
32684 ac_ext=c
32685ac_cpp='$CPP $CPPFLAGS'
32686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32688ac_compiler_gnu=$ac_cv_c_compiler_gnu
32689
32690fi
32691
898beab1
DE
32692if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32693 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32694echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32695 wxUSE_STACKWALKER=no
32696fi
32697
32698
a848cd7e
SC
32699
32700
32701for ac_func in mkstemp mktemp
32702do
32703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32704echo "$as_me:$LINENO: checking for $ac_func" >&5
32705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32706if eval "test \"\${$as_ac_var+set}\" = set"; then
32707 echo $ECHO_N "(cached) $ECHO_C" >&6
32708else
32709 cat >conftest.$ac_ext <<_ACEOF
32710/* confdefs.h. */
32711_ACEOF
32712cat confdefs.h >>conftest.$ac_ext
32713cat >>conftest.$ac_ext <<_ACEOF
32714/* end confdefs.h. */
ac1cb8d3
VS
32715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32717#define $ac_func innocuous_$ac_func
32718
a848cd7e
SC
32719/* System header to define __stub macros and hopefully few prototypes,
32720 which can conflict with char $ac_func (); below.
32721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32722 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32723
a848cd7e
SC
32724#ifdef __STDC__
32725# include <limits.h>
32726#else
32727# include <assert.h>
32728#endif
ac1cb8d3
VS
32729
32730#undef $ac_func
32731
a848cd7e
SC
32732/* Override any gcc2 internal prototype to avoid an error. */
32733#ifdef __cplusplus
32734extern "C"
32735{
32736#endif
32737/* We use char because int might match the return type of a gcc2
32738 builtin and then its argument prototype would still apply. */
32739char $ac_func ();
32740/* The GNU C library defines this for functions which it implements
32741 to always fail with ENOSYS. Some functions are actually named
32742 something starting with __ and the normal name is an alias. */
32743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32744choke me
32745#else
32746char (*f) () = $ac_func;
32747#endif
32748#ifdef __cplusplus
32749}
32750#endif
32751
32752int
32753main ()
32754{
32755return f != $ac_func;
32756 ;
32757 return 0;
32758}
32759_ACEOF
32760rm -f conftest.$ac_objext conftest$ac_exeext
32761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32762 (eval $ac_link) 2>conftest.er1
a848cd7e 32763 ac_status=$?
ac1cb8d3
VS
32764 grep -v '^ *+' conftest.er1 >conftest.err
32765 rm -f conftest.er1
32766 cat conftest.err >&5
a848cd7e
SC
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
6ebeb4c7 32769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 eval "$as_ac_var=yes"
32782else
32783 echo "$as_me: failed program was:" >&5
32784sed 's/^/| /' conftest.$ac_ext >&5
32785
32786eval "$as_ac_var=no"
32787fi
ac1cb8d3
VS
32788rm -f conftest.err conftest.$ac_objext \
32789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32790fi
32791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32793if test `eval echo '${'$as_ac_var'}'` = yes; then
32794 cat >>confdefs.h <<_ACEOF
32795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32796_ACEOF
32797 break
32798fi
32799done
32800
32801
32802echo "$as_me:$LINENO: checking for statfs" >&5
32803echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32804if test "${wx_cv_func_statfs+set}" = set; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32806else
32807 cat >conftest.$ac_ext <<_ACEOF
32808/* confdefs.h. */
32809_ACEOF
32810cat confdefs.h >>conftest.$ac_ext
32811cat >>conftest.$ac_ext <<_ACEOF
32812/* end confdefs.h. */
32813
32814 #if defined(__BSD__)
84ae7ca4
VZ
32815 #include <sys/param.h>
32816 #include <sys/mount.h>
a848cd7e 32817 #else
84ae7ca4 32818 #include <sys/vfs.h>
a848cd7e
SC
32819 #endif
32820
32821int
32822main ()
32823{
32824
32825 long l;
32826 struct statfs fs;
32827 statfs("/", &fs);
32828 l = fs.f_bsize;
32829 l += fs.f_blocks;
32830 l += fs.f_bavail;
32831
32832 ;
32833 return 0;
32834}
32835_ACEOF
32836rm -f conftest.$ac_objext
32837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32838 (eval $ac_compile) 2>conftest.er1
a848cd7e 32839 ac_status=$?
ac1cb8d3
VS
32840 grep -v '^ *+' conftest.er1 >conftest.err
32841 rm -f conftest.er1
32842 cat conftest.err >&5
a848cd7e
SC
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } &&
6ebeb4c7 32845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847 (eval $ac_try) 2>&5
32848 ac_status=$?
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853 (eval $ac_try) 2>&5
32854 ac_status=$?
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); }; }; then
84ae7ca4 32857 wx_cv_func_statfs=yes
a848cd7e
SC
32858else
32859 echo "$as_me: failed program was:" >&5
32860sed 's/^/| /' conftest.$ac_ext >&5
32861
84ae7ca4 32862wx_cv_func_statfs=no
a848cd7e
SC
32863
32864fi
ac1cb8d3 32865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32866
32867fi
32868echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32869echo "${ECHO_T}$wx_cv_func_statfs" >&6
32870
32871if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
32872
32873
32874 ac_ext=cc
32875ac_cpp='$CXXCPP $CPPFLAGS'
32876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32879
32880 echo "$as_me:$LINENO: checking for statfs declaration" >&5
32881echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
32882if test "${wx_cv_func_statfs_decl+set}" = set; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32884else
0683aca6
VZ
32885 cat >conftest.$ac_ext <<_ACEOF
32886/* confdefs.h. */
32887_ACEOF
32888cat confdefs.h >>conftest.$ac_ext
32889cat >>conftest.$ac_ext <<_ACEOF
32890/* end confdefs.h. */
84ae7ca4 32891
0683aca6
VZ
32892 #if defined(__BSD__)
32893 #include <sys/param.h>
32894 #include <sys/mount.h>
32895 #else
32896 #include <sys/vfs.h>
32897 #endif
32898
32899int
32900main ()
32901{
32902
32903 struct statfs fs;
32904 statfs("", &fs);
32905
32906 ;
32907 return 0;
32908}
32909_ACEOF
32910rm -f conftest.$ac_objext
32911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32912 (eval $ac_compile) 2>conftest.er1
32913 ac_status=$?
32914 grep -v '^ *+' conftest.er1 >conftest.err
32915 rm -f conftest.er1
32916 cat conftest.err >&5
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); } &&
32919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; } &&
32925 { ac_try='test -s conftest.$ac_objext'
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 wx_cv_func_statfs_decl=yes
32932else
32933 echo "$as_me: failed program was:" >&5
32934sed 's/^/| /' conftest.$ac_ext >&5
32935
32936wx_cv_func_statfs_decl=no
32937
32938fi
32939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
32940
32941fi
32942echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
32943echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
32944 ac_ext=c
32945ac_cpp='$CPP $CPPFLAGS'
32946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32948ac_compiler_gnu=$ac_cv_c_compiler_gnu
32949
32950
32951 if test "$wx_cv_func_statfs_decl" = "yes"; then
32952 cat >>confdefs.h <<\_ACEOF
32953#define HAVE_STATFS_DECL 1
32954_ACEOF
32955
32956 fi
32957
a848cd7e
SC
32958 wx_cv_type_statvfs_t="struct statfs"
32959 cat >>confdefs.h <<\_ACEOF
32960#define HAVE_STATFS 1
32961_ACEOF
32962
32963else
32964 echo "$as_me:$LINENO: checking for statvfs" >&5
32965echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32966if test "${wx_cv_func_statvfs+set}" = set; then
32967 echo $ECHO_N "(cached) $ECHO_C" >&6
32968else
32969 cat >conftest.$ac_ext <<_ACEOF
32970/* confdefs.h. */
32971_ACEOF
32972cat confdefs.h >>conftest.$ac_ext
32973cat >>conftest.$ac_ext <<_ACEOF
32974/* end confdefs.h. */
32975
32976 #include <stddef.h>
32977 #include <sys/statvfs.h>
32978
32979int
32980main ()
32981{
32982
32983 statvfs("/", NULL);
32984
32985 ;
32986 return 0;
32987}
32988_ACEOF
32989rm -f conftest.$ac_objext
32990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32991 (eval $ac_compile) 2>conftest.er1
a848cd7e 32992 ac_status=$?
ac1cb8d3
VS
32993 grep -v '^ *+' conftest.er1 >conftest.err
32994 rm -f conftest.er1
32995 cat conftest.err >&5
a848cd7e
SC
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); } &&
6ebeb4c7 32998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33006 (eval $ac_try) 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
33010 wx_cv_func_statvfs=yes
33011else
33012 echo "$as_me: failed program was:" >&5
33013sed 's/^/| /' conftest.$ac_ext >&5
33014
33015wx_cv_func_statvfs=no
33016
33017fi
ac1cb8d3 33018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33019
33020fi
33021echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33022echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33023
33024 if test "$wx_cv_func_statvfs" = "yes"; then
33025
33026
33027 ac_ext=cc
33028ac_cpp='$CXXCPP $CPPFLAGS'
33029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33032
33033
33034 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33035echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33036if test "${wx_cv_type_statvfs_t+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33038else
33039 cat >conftest.$ac_ext <<_ACEOF
33040/* confdefs.h. */
33041_ACEOF
33042cat confdefs.h >>conftest.$ac_ext
33043cat >>conftest.$ac_ext <<_ACEOF
33044/* end confdefs.h. */
33045
33046 #include <sys/statvfs.h>
33047
33048int
33049main ()
33050{
33051
33052 long l;
33053 statvfs_t fs;
33054 statvfs("/", &fs);
33055 l = fs.f_bsize;
33056 l += fs.f_blocks;
33057 l += fs.f_bavail;
33058
33059 ;
33060 return 0;
33061}
33062_ACEOF
33063rm -f conftest.$ac_objext
33064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33065 (eval $ac_compile) 2>conftest.er1
a848cd7e 33066 ac_status=$?
ac1cb8d3
VS
33067 grep -v '^ *+' conftest.er1 >conftest.err
33068 rm -f conftest.er1
33069 cat conftest.err >&5
a848cd7e
SC
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } &&
6ebeb4c7 33072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33074 (eval $ac_try) 2>&5
33075 ac_status=$?
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); }; } &&
33078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080 (eval $ac_try) 2>&5
33081 ac_status=$?
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); }; }; then
33084 wx_cv_type_statvfs_t=statvfs_t
33085else
33086 echo "$as_me: failed program was:" >&5
33087sed 's/^/| /' conftest.$ac_ext >&5
33088
33089
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. */
33096
33097 #include <sys/statvfs.h>
33098
33099int
33100main ()
33101{
33102
33103 long l;
33104 struct statvfs fs;
33105 statvfs("/", &fs);
33106 l = fs.f_bsize;
33107 l += fs.f_blocks;
33108 l += fs.f_bavail;
33109
33110 ;
33111 return 0;
33112}
33113_ACEOF
33114rm -f conftest.$ac_objext
33115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33116 (eval $ac_compile) 2>conftest.er1
a848cd7e 33117 ac_status=$?
ac1cb8d3
VS
33118 grep -v '^ *+' conftest.er1 >conftest.err
33119 rm -f conftest.er1
33120 cat conftest.err >&5
a848cd7e
SC
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } &&
6ebeb4c7 33123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33125 (eval $ac_try) 2>&5
33126 ac_status=$?
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; } &&
33129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33131 (eval $ac_try) 2>&5
33132 ac_status=$?
33133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134 (exit $ac_status); }; }; then
33135 wx_cv_type_statvfs_t="struct statvfs"
33136else
33137 echo "$as_me: failed program was:" >&5
33138sed 's/^/| /' conftest.$ac_ext >&5
33139
33140wx_cv_type_statvfs_t="unknown"
33141
33142fi
ac1cb8d3 33143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33144
33145
33146fi
ac1cb8d3 33147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33148
33149fi
33150echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
33151echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
33152
33153 ac_ext=c
33154ac_cpp='$CPP $CPPFLAGS'
33155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157ac_compiler_gnu=$ac_cv_c_compiler_gnu
33158
33159
33160 if test "$wx_cv_type_statvfs_t" != "unknown"; then
33161 cat >>confdefs.h <<\_ACEOF
33162#define HAVE_STATVFS 1
33163_ACEOF
33164
33165 fi
33166 else
33167 wx_cv_type_statvfs_t="unknown"
33168 fi
33169fi
33170
33171if test "$wx_cv_type_statvfs_t" != "unknown"; then
33172 cat >>confdefs.h <<_ACEOF
33173#define WX_STATFS_T $wx_cv_type_statvfs_t
33174_ACEOF
33175
33176else
33177 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
33178echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
33179fi
33180
33181if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
33182
33183
33184for ac_func in fcntl flock
33185do
33186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33187echo "$as_me:$LINENO: checking for $ac_func" >&5
33188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33189if eval "test \"\${$as_ac_var+set}\" = set"; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
33193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
ac1cb8d3
VS
33198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200#define $ac_func innocuous_$ac_func
33201
a848cd7e
SC
33202/* System header to define __stub macros and hopefully few prototypes,
33203 which can conflict with char $ac_func (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33206
a848cd7e
SC
33207#ifdef __STDC__
33208# include <limits.h>
33209#else
33210# include <assert.h>
33211#endif
ac1cb8d3
VS
33212
33213#undef $ac_func
33214
a848cd7e
SC
33215/* Override any gcc2 internal prototype to avoid an error. */
33216#ifdef __cplusplus
33217extern "C"
33218{
33219#endif
33220/* We use char because int might match the return type of a gcc2
33221 builtin and then its argument prototype would still apply. */
33222char $ac_func ();
33223/* The GNU C library defines this for functions which it implements
33224 to always fail with ENOSYS. Some functions are actually named
33225 something starting with __ and the normal name is an alias. */
33226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33227choke me
33228#else
33229char (*f) () = $ac_func;
33230#endif
33231#ifdef __cplusplus
33232}
33233#endif
33234
33235int
33236main ()
33237{
33238return f != $ac_func;
33239 ;
33240 return 0;
33241}
33242_ACEOF
33243rm -f conftest.$ac_objext conftest$ac_exeext
33244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33245 (eval $ac_link) 2>conftest.er1
a848cd7e 33246 ac_status=$?
ac1cb8d3
VS
33247 grep -v '^ *+' conftest.er1 >conftest.err
33248 rm -f conftest.er1
33249 cat conftest.err >&5
a848cd7e
SC
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); } &&
6ebeb4c7 33252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 eval "$as_ac_var=yes"
33265else
33266 echo "$as_me: failed program was:" >&5
33267sed 's/^/| /' conftest.$ac_ext >&5
33268
33269eval "$as_ac_var=no"
33270fi
ac1cb8d3
VS
33271rm -f conftest.err conftest.$ac_objext \
33272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33273fi
33274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33276if test `eval echo '${'$as_ac_var'}'` = yes; then
33277 cat >>confdefs.h <<_ACEOF
33278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33279_ACEOF
33280 break
33281fi
33282done
33283
33284
33285 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33286 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33287echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33288 wxUSE_SNGLINST_CHECKER=no
33289 fi
33290fi
33291
33292
33293for ac_func in timegm
33294do
33295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33296echo "$as_me:$LINENO: checking for $ac_func" >&5
33297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33298if eval "test \"\${$as_ac_var+set}\" = set"; then
33299 echo $ECHO_N "(cached) $ECHO_C" >&6
33300else
33301 cat >conftest.$ac_ext <<_ACEOF
33302/* confdefs.h. */
33303_ACEOF
33304cat confdefs.h >>conftest.$ac_ext
33305cat >>conftest.$ac_ext <<_ACEOF
33306/* end confdefs.h. */
ac1cb8d3
VS
33307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33309#define $ac_func innocuous_$ac_func
33310
a848cd7e
SC
33311/* System header to define __stub macros and hopefully few prototypes,
33312 which can conflict with char $ac_func (); below.
33313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33314 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33315
a848cd7e
SC
33316#ifdef __STDC__
33317# include <limits.h>
33318#else
33319# include <assert.h>
33320#endif
ac1cb8d3
VS
33321
33322#undef $ac_func
33323
a848cd7e
SC
33324/* Override any gcc2 internal prototype to avoid an error. */
33325#ifdef __cplusplus
33326extern "C"
33327{
33328#endif
33329/* We use char because int might match the return type of a gcc2
33330 builtin and then its argument prototype would still apply. */
33331char $ac_func ();
33332/* The GNU C library defines this for functions which it implements
33333 to always fail with ENOSYS. Some functions are actually named
33334 something starting with __ and the normal name is an alias. */
33335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33336choke me
33337#else
33338char (*f) () = $ac_func;
33339#endif
33340#ifdef __cplusplus
33341}
33342#endif
33343
33344int
33345main ()
33346{
33347return f != $ac_func;
33348 ;
33349 return 0;
33350}
33351_ACEOF
33352rm -f conftest.$ac_objext conftest$ac_exeext
33353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33354 (eval $ac_link) 2>conftest.er1
a848cd7e 33355 ac_status=$?
ac1cb8d3
VS
33356 grep -v '^ *+' conftest.er1 >conftest.err
33357 rm -f conftest.er1
33358 cat conftest.err >&5
a848cd7e
SC
33359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360 (exit $ac_status); } &&
6ebeb4c7 33361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33363 (eval $ac_try) 2>&5
33364 ac_status=$?
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); }; } &&
33367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
33373 eval "$as_ac_var=yes"
33374else
33375 echo "$as_me: failed program was:" >&5
33376sed 's/^/| /' conftest.$ac_ext >&5
33377
33378eval "$as_ac_var=no"
33379fi
ac1cb8d3
VS
33380rm -f conftest.err conftest.$ac_objext \
33381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33382fi
33383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33385if test `eval echo '${'$as_ac_var'}'` = yes; then
33386 cat >>confdefs.h <<_ACEOF
33387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33388_ACEOF
33389
33390fi
33391done
33392
33393
33394
33395
33396for ac_func in putenv setenv
33397do
33398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33399echo "$as_me:$LINENO: checking for $ac_func" >&5
33400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33401if eval "test \"\${$as_ac_var+set}\" = set"; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33403else
33404 cat >conftest.$ac_ext <<_ACEOF
33405/* confdefs.h. */
33406_ACEOF
33407cat confdefs.h >>conftest.$ac_ext
33408cat >>conftest.$ac_ext <<_ACEOF
33409/* end confdefs.h. */
ac1cb8d3
VS
33410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33412#define $ac_func innocuous_$ac_func
33413
a848cd7e
SC
33414/* System header to define __stub macros and hopefully few prototypes,
33415 which can conflict with char $ac_func (); below.
33416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33418
a848cd7e
SC
33419#ifdef __STDC__
33420# include <limits.h>
33421#else
33422# include <assert.h>
33423#endif
ac1cb8d3
VS
33424
33425#undef $ac_func
33426
a848cd7e
SC
33427/* Override any gcc2 internal prototype to avoid an error. */
33428#ifdef __cplusplus
33429extern "C"
33430{
33431#endif
33432/* We use char because int might match the return type of a gcc2
33433 builtin and then its argument prototype would still apply. */
33434char $ac_func ();
33435/* The GNU C library defines this for functions which it implements
33436 to always fail with ENOSYS. Some functions are actually named
33437 something starting with __ and the normal name is an alias. */
33438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33439choke me
33440#else
33441char (*f) () = $ac_func;
33442#endif
33443#ifdef __cplusplus
33444}
33445#endif
33446
33447int
33448main ()
33449{
33450return f != $ac_func;
33451 ;
33452 return 0;
33453}
33454_ACEOF
33455rm -f conftest.$ac_objext conftest$ac_exeext
33456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33457 (eval $ac_link) 2>conftest.er1
a848cd7e 33458 ac_status=$?
ac1cb8d3
VS
33459 grep -v '^ *+' conftest.er1 >conftest.err
33460 rm -f conftest.er1
33461 cat conftest.err >&5
a848cd7e
SC
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); } &&
6ebeb4c7 33464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466 (eval $ac_try) 2>&5
33467 ac_status=$?
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; } &&
33470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33472 (eval $ac_try) 2>&5
33473 ac_status=$?
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); }; }; then
33476 eval "$as_ac_var=yes"
33477else
33478 echo "$as_me: failed program was:" >&5
33479sed 's/^/| /' conftest.$ac_ext >&5
33480
33481eval "$as_ac_var=no"
33482fi
ac1cb8d3
VS
33483rm -f conftest.err conftest.$ac_objext \
33484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33485fi
33486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33488if test `eval echo '${'$as_ac_var'}'` = yes; then
33489 cat >>confdefs.h <<_ACEOF
33490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33491_ACEOF
33492 break
33493fi
33494done
33495
33496
33497HAVE_SOME_SLEEP_FUNC=0
33498if test "$USE_BEOS" = 1; then
33499 cat >>confdefs.h <<\_ACEOF
33500#define HAVE_SLEEP 1
33501_ACEOF
33502
33503 HAVE_SOME_SLEEP_FUNC=1
33504fi
33505
33506if test "$USE_DARWIN" = 1; then
33507 cat >>confdefs.h <<\_ACEOF
33508#define HAVE_USLEEP 1
33509_ACEOF
33510
33511 HAVE_SOME_SLEEP_FUNC=1
33512fi
33513
33514if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33515 POSIX4_LINK=
33516
33517for ac_func in nanosleep
33518do
33519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33520echo "$as_me:$LINENO: checking for $ac_func" >&5
33521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33522if eval "test \"\${$as_ac_var+set}\" = set"; then
33523 echo $ECHO_N "(cached) $ECHO_C" >&6
33524else
33525 cat >conftest.$ac_ext <<_ACEOF
33526/* confdefs.h. */
33527_ACEOF
33528cat confdefs.h >>conftest.$ac_ext
33529cat >>conftest.$ac_ext <<_ACEOF
33530/* end confdefs.h. */
ac1cb8d3
VS
33531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33533#define $ac_func innocuous_$ac_func
33534
a848cd7e
SC
33535/* System header to define __stub macros and hopefully few prototypes,
33536 which can conflict with char $ac_func (); below.
33537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33539
a848cd7e
SC
33540#ifdef __STDC__
33541# include <limits.h>
33542#else
33543# include <assert.h>
33544#endif
ac1cb8d3
VS
33545
33546#undef $ac_func
33547
a848cd7e
SC
33548/* Override any gcc2 internal prototype to avoid an error. */
33549#ifdef __cplusplus
33550extern "C"
33551{
33552#endif
33553/* We use char because int might match the return type of a gcc2
33554 builtin and then its argument prototype would still apply. */
33555char $ac_func ();
33556/* The GNU C library defines this for functions which it implements
33557 to always fail with ENOSYS. Some functions are actually named
33558 something starting with __ and the normal name is an alias. */
33559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33560choke me
33561#else
33562char (*f) () = $ac_func;
33563#endif
33564#ifdef __cplusplus
33565}
33566#endif
33567
33568int
33569main ()
33570{
33571return f != $ac_func;
33572 ;
33573 return 0;
33574}
33575_ACEOF
33576rm -f conftest.$ac_objext conftest$ac_exeext
33577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33578 (eval $ac_link) 2>conftest.er1
a848cd7e 33579 ac_status=$?
ac1cb8d3
VS
33580 grep -v '^ *+' conftest.er1 >conftest.err
33581 rm -f conftest.er1
33582 cat conftest.err >&5
a848cd7e
SC
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
6ebeb4c7 33585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; } &&
33591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 eval "$as_ac_var=yes"
33598else
33599 echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602eval "$as_ac_var=no"
33603fi
ac1cb8d3
VS
33604rm -f conftest.err conftest.$ac_objext \
33605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33606fi
33607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33609if test `eval echo '${'$as_ac_var'}'` = yes; then
33610 cat >>confdefs.h <<_ACEOF
33611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33612_ACEOF
33613 cat >>confdefs.h <<\_ACEOF
33614#define HAVE_NANOSLEEP 1
33615_ACEOF
33616
33617else
33618
33619 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33620echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33621if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33622 echo $ECHO_N "(cached) $ECHO_C" >&6
33623else
33624 ac_check_lib_save_LIBS=$LIBS
33625LIBS="-lposix4 $LIBS"
33626cat >conftest.$ac_ext <<_ACEOF
33627/* confdefs.h. */
33628_ACEOF
33629cat confdefs.h >>conftest.$ac_ext
33630cat >>conftest.$ac_ext <<_ACEOF
33631/* end confdefs.h. */
33632
33633/* Override any gcc2 internal prototype to avoid an error. */
33634#ifdef __cplusplus
33635extern "C"
33636#endif
33637/* We use char because int might match the return type of a gcc2
33638 builtin and then its argument prototype would still apply. */
33639char nanosleep ();
33640int
33641main ()
33642{
33643nanosleep ();
33644 ;
33645 return 0;
33646}
33647_ACEOF
33648rm -f conftest.$ac_objext conftest$ac_exeext
33649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33650 (eval $ac_link) 2>conftest.er1
a848cd7e 33651 ac_status=$?
ac1cb8d3
VS
33652 grep -v '^ *+' conftest.er1 >conftest.err
33653 rm -f conftest.er1
33654 cat conftest.err >&5
a848cd7e
SC
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); } &&
6ebeb4c7 33657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 ac_cv_lib_posix4_nanosleep=yes
33670else
33671 echo "$as_me: failed program was:" >&5
33672sed 's/^/| /' conftest.$ac_ext >&5
33673
33674ac_cv_lib_posix4_nanosleep=no
33675fi
ac1cb8d3
VS
33676rm -f conftest.err conftest.$ac_objext \
33677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33678LIBS=$ac_check_lib_save_LIBS
33679fi
33680echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33681echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33682if test $ac_cv_lib_posix4_nanosleep = yes; then
33683
33684 cat >>confdefs.h <<\_ACEOF
33685#define HAVE_NANOSLEEP 1
33686_ACEOF
33687
33688 POSIX4_LINK=" -lposix4"
33689
33690else
33691
33692
33693for ac_func in usleep
33694do
33695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33696echo "$as_me:$LINENO: checking for $ac_func" >&5
33697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33698if eval "test \"\${$as_ac_var+set}\" = set"; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33700else
33701 cat >conftest.$ac_ext <<_ACEOF
33702/* confdefs.h. */
33703_ACEOF
33704cat confdefs.h >>conftest.$ac_ext
33705cat >>conftest.$ac_ext <<_ACEOF
33706/* end confdefs.h. */
ac1cb8d3
VS
33707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33709#define $ac_func innocuous_$ac_func
33710
a848cd7e
SC
33711/* System header to define __stub macros and hopefully few prototypes,
33712 which can conflict with char $ac_func (); below.
33713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33714 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33715
a848cd7e
SC
33716#ifdef __STDC__
33717# include <limits.h>
33718#else
33719# include <assert.h>
33720#endif
ac1cb8d3
VS
33721
33722#undef $ac_func
33723
a848cd7e
SC
33724/* Override any gcc2 internal prototype to avoid an error. */
33725#ifdef __cplusplus
33726extern "C"
33727{
33728#endif
33729/* We use char because int might match the return type of a gcc2
33730 builtin and then its argument prototype would still apply. */
33731char $ac_func ();
33732/* The GNU C library defines this for functions which it implements
33733 to always fail with ENOSYS. Some functions are actually named
33734 something starting with __ and the normal name is an alias. */
33735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33736choke me
33737#else
33738char (*f) () = $ac_func;
33739#endif
33740#ifdef __cplusplus
33741}
33742#endif
33743
33744int
33745main ()
33746{
33747return f != $ac_func;
33748 ;
33749 return 0;
33750}
33751_ACEOF
33752rm -f conftest.$ac_objext conftest$ac_exeext
33753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33754 (eval $ac_link) 2>conftest.er1
a848cd7e 33755 ac_status=$?
ac1cb8d3
VS
33756 grep -v '^ *+' conftest.er1 >conftest.err
33757 rm -f conftest.er1
33758 cat conftest.err >&5
a848cd7e
SC
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); } &&
6ebeb4c7 33761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33763 (eval $ac_try) 2>&5
33764 ac_status=$?
33765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); }; } &&
33767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769 (eval $ac_try) 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; }; then
33773 eval "$as_ac_var=yes"
33774else
33775 echo "$as_me: failed program was:" >&5
33776sed 's/^/| /' conftest.$ac_ext >&5
33777
33778eval "$as_ac_var=no"
33779fi
ac1cb8d3
VS
33780rm -f conftest.err conftest.$ac_objext \
33781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33782fi
33783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33785if test `eval echo '${'$as_ac_var'}'` = yes; then
33786 cat >>confdefs.h <<_ACEOF
33787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33788_ACEOF
33789 cat >>confdefs.h <<\_ACEOF
33790#define HAVE_USLEEP 1
33791_ACEOF
33792
33793else
33794 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33795echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33796
33797fi
33798done
33799
33800
33801
33802fi
33803
33804
33805
33806fi
33807done
33808
33809fi
33810
33811
33812
33813for ac_func in uname gethostname
33814do
33815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33816echo "$as_me:$LINENO: checking for $ac_func" >&5
33817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33818if eval "test \"\${$as_ac_var+set}\" = set"; then
33819 echo $ECHO_N "(cached) $ECHO_C" >&6
33820else
33821 cat >conftest.$ac_ext <<_ACEOF
33822/* confdefs.h. */
33823_ACEOF
33824cat confdefs.h >>conftest.$ac_ext
33825cat >>conftest.$ac_ext <<_ACEOF
33826/* end confdefs.h. */
ac1cb8d3
VS
33827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33829#define $ac_func innocuous_$ac_func
33830
a848cd7e
SC
33831/* System header to define __stub macros and hopefully few prototypes,
33832 which can conflict with char $ac_func (); below.
33833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33835
a848cd7e
SC
33836#ifdef __STDC__
33837# include <limits.h>
33838#else
33839# include <assert.h>
33840#endif
ac1cb8d3
VS
33841
33842#undef $ac_func
33843
a848cd7e
SC
33844/* Override any gcc2 internal prototype to avoid an error. */
33845#ifdef __cplusplus
33846extern "C"
33847{
33848#endif
33849/* We use char because int might match the return type of a gcc2
33850 builtin and then its argument prototype would still apply. */
33851char $ac_func ();
33852/* The GNU C library defines this for functions which it implements
33853 to always fail with ENOSYS. Some functions are actually named
33854 something starting with __ and the normal name is an alias. */
33855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33856choke me
33857#else
33858char (*f) () = $ac_func;
33859#endif
33860#ifdef __cplusplus
33861}
33862#endif
33863
33864int
33865main ()
33866{
33867return f != $ac_func;
33868 ;
33869 return 0;
33870}
33871_ACEOF
33872rm -f conftest.$ac_objext conftest$ac_exeext
33873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33874 (eval $ac_link) 2>conftest.er1
a848cd7e 33875 ac_status=$?
ac1cb8d3
VS
33876 grep -v '^ *+' conftest.er1 >conftest.err
33877 rm -f conftest.er1
33878 cat conftest.err >&5
a848cd7e
SC
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } &&
6ebeb4c7 33881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; } &&
33887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889 (eval $ac_try) 2>&5
33890 ac_status=$?
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; }; then
33893 eval "$as_ac_var=yes"
33894else
33895 echo "$as_me: failed program was:" >&5
33896sed 's/^/| /' conftest.$ac_ext >&5
33897
33898eval "$as_ac_var=no"
33899fi
ac1cb8d3
VS
33900rm -f conftest.err conftest.$ac_objext \
33901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33902fi
33903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33905if test `eval echo '${'$as_ac_var'}'` = yes; then
33906 cat >>confdefs.h <<_ACEOF
33907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33908_ACEOF
33909 break
33910fi
33911done
33912
33913
33914
33915
33916ac_ext=cc
33917ac_cpp='$CXXCPP $CPPFLAGS'
33918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33921
33922
33923
33924for ac_func in strtok_r
33925do
33926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33927echo "$as_me:$LINENO: checking for $ac_func" >&5
33928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33929if eval "test \"\${$as_ac_var+set}\" = set"; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931else
33932 cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h. */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h. */
ac1cb8d3
VS
33938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33940#define $ac_func innocuous_$ac_func
33941
a848cd7e
SC
33942/* System header to define __stub macros and hopefully few prototypes,
33943 which can conflict with char $ac_func (); below.
33944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33945 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33946
a848cd7e
SC
33947#ifdef __STDC__
33948# include <limits.h>
33949#else
33950# include <assert.h>
33951#endif
ac1cb8d3
VS
33952
33953#undef $ac_func
33954
a848cd7e
SC
33955/* Override any gcc2 internal prototype to avoid an error. */
33956#ifdef __cplusplus
33957extern "C"
33958{
33959#endif
33960/* We use char because int might match the return type of a gcc2
33961 builtin and then its argument prototype would still apply. */
33962char $ac_func ();
33963/* The GNU C library defines this for functions which it implements
33964 to always fail with ENOSYS. Some functions are actually named
33965 something starting with __ and the normal name is an alias. */
33966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33967choke me
33968#else
33969char (*f) () = $ac_func;
33970#endif
33971#ifdef __cplusplus
33972}
33973#endif
33974
33975int
33976main ()
33977{
33978return f != $ac_func;
33979 ;
33980 return 0;
33981}
33982_ACEOF
33983rm -f conftest.$ac_objext conftest$ac_exeext
33984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33985 (eval $ac_link) 2>conftest.er1
a848cd7e 33986 ac_status=$?
ac1cb8d3
VS
33987 grep -v '^ *+' conftest.er1 >conftest.err
33988 rm -f conftest.er1
33989 cat conftest.err >&5
a848cd7e
SC
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); } &&
6ebeb4c7 33992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994 (eval $ac_try) 2>&5
33995 ac_status=$?
33996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997 (exit $ac_status); }; } &&
33998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000 (eval $ac_try) 2>&5
34001 ac_status=$?
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); }; }; then
34004 eval "$as_ac_var=yes"
34005else
34006 echo "$as_me: failed program was:" >&5
34007sed 's/^/| /' conftest.$ac_ext >&5
34008
34009eval "$as_ac_var=no"
34010fi
ac1cb8d3
VS
34011rm -f conftest.err conftest.$ac_objext \
34012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34013fi
34014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34016if test `eval echo '${'$as_ac_var'}'` = yes; then
34017 cat >>confdefs.h <<_ACEOF
34018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34019_ACEOF
34020
34021fi
34022done
34023
34024
34025ac_ext=c
34026ac_cpp='$CPP $CPPFLAGS'
34027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34029ac_compiler_gnu=$ac_cv_c_compiler_gnu
34030
34031
34032INET_LINK=
34033
34034for ac_func in inet_addr
34035do
34036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34037echo "$as_me:$LINENO: checking for $ac_func" >&5
34038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34039if eval "test \"\${$as_ac_var+set}\" = set"; then
34040 echo $ECHO_N "(cached) $ECHO_C" >&6
34041else
34042 cat >conftest.$ac_ext <<_ACEOF
34043/* confdefs.h. */
34044_ACEOF
34045cat confdefs.h >>conftest.$ac_ext
34046cat >>conftest.$ac_ext <<_ACEOF
34047/* end confdefs.h. */
ac1cb8d3
VS
34048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34050#define $ac_func innocuous_$ac_func
34051
a848cd7e
SC
34052/* System header to define __stub macros and hopefully few prototypes,
34053 which can conflict with char $ac_func (); below.
34054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34056
a848cd7e
SC
34057#ifdef __STDC__
34058# include <limits.h>
34059#else
34060# include <assert.h>
34061#endif
ac1cb8d3
VS
34062
34063#undef $ac_func
34064
a848cd7e
SC
34065/* Override any gcc2 internal prototype to avoid an error. */
34066#ifdef __cplusplus
34067extern "C"
34068{
34069#endif
34070/* We use char because int might match the return type of a gcc2
34071 builtin and then its argument prototype would still apply. */
34072char $ac_func ();
34073/* The GNU C library defines this for functions which it implements
34074 to always fail with ENOSYS. Some functions are actually named
34075 something starting with __ and the normal name is an alias. */
34076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34077choke me
34078#else
34079char (*f) () = $ac_func;
34080#endif
34081#ifdef __cplusplus
34082}
34083#endif
34084
34085int
34086main ()
34087{
34088return f != $ac_func;
34089 ;
34090 return 0;
34091}
34092_ACEOF
34093rm -f conftest.$ac_objext conftest$ac_exeext
34094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34095 (eval $ac_link) 2>conftest.er1
a848cd7e 34096 ac_status=$?
ac1cb8d3
VS
34097 grep -v '^ *+' conftest.er1 >conftest.err
34098 rm -f conftest.er1
34099 cat conftest.err >&5
a848cd7e
SC
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } &&
6ebeb4c7 34102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34104 (eval $ac_try) 2>&5
34105 ac_status=$?
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); }; } &&
34108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 eval "$as_ac_var=yes"
34115else
34116 echo "$as_me: failed program was:" >&5
34117sed 's/^/| /' conftest.$ac_ext >&5
34118
34119eval "$as_ac_var=no"
34120fi
ac1cb8d3
VS
34121rm -f conftest.err conftest.$ac_objext \
34122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34123fi
34124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34126if test `eval echo '${'$as_ac_var'}'` = yes; then
34127 cat >>confdefs.h <<_ACEOF
34128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34129_ACEOF
34130 cat >>confdefs.h <<\_ACEOF
34131#define HAVE_INET_ADDR 1
34132_ACEOF
34133
34134else
34135
34136 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
34137echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
34138if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
34139 echo $ECHO_N "(cached) $ECHO_C" >&6
34140else
34141 ac_check_lib_save_LIBS=$LIBS
34142LIBS="-lnsl $LIBS"
34143cat >conftest.$ac_ext <<_ACEOF
34144/* confdefs.h. */
34145_ACEOF
34146cat confdefs.h >>conftest.$ac_ext
34147cat >>conftest.$ac_ext <<_ACEOF
34148/* end confdefs.h. */
34149
34150/* Override any gcc2 internal prototype to avoid an error. */
34151#ifdef __cplusplus
34152extern "C"
34153#endif
34154/* We use char because int might match the return type of a gcc2
34155 builtin and then its argument prototype would still apply. */
34156char inet_addr ();
34157int
34158main ()
34159{
34160inet_addr ();
34161 ;
34162 return 0;
34163}
34164_ACEOF
34165rm -f conftest.$ac_objext conftest$ac_exeext
34166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34167 (eval $ac_link) 2>conftest.er1
a848cd7e 34168 ac_status=$?
ac1cb8d3
VS
34169 grep -v '^ *+' conftest.er1 >conftest.err
34170 rm -f conftest.er1
34171 cat conftest.err >&5
a848cd7e
SC
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); } &&
6ebeb4c7 34174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34176 (eval $ac_try) 2>&5
34177 ac_status=$?
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; } &&
34180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34182 (eval $ac_try) 2>&5
34183 ac_status=$?
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); }; }; then
34186 ac_cv_lib_nsl_inet_addr=yes
34187else
34188 echo "$as_me: failed program was:" >&5
34189sed 's/^/| /' conftest.$ac_ext >&5
34190
34191ac_cv_lib_nsl_inet_addr=no
34192fi
ac1cb8d3
VS
34193rm -f conftest.err conftest.$ac_objext \
34194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34195LIBS=$ac_check_lib_save_LIBS
34196fi
34197echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34198echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34199if test $ac_cv_lib_nsl_inet_addr = yes; then
34200 INET_LINK="nsl"
34201else
34202
34203 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34204echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34205if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34206 echo $ECHO_N "(cached) $ECHO_C" >&6
34207else
34208 ac_check_lib_save_LIBS=$LIBS
34209LIBS="-lresolv $LIBS"
34210cat >conftest.$ac_ext <<_ACEOF
34211/* confdefs.h. */
34212_ACEOF
34213cat confdefs.h >>conftest.$ac_ext
34214cat >>conftest.$ac_ext <<_ACEOF
34215/* end confdefs.h. */
34216
34217/* Override any gcc2 internal prototype to avoid an error. */
34218#ifdef __cplusplus
34219extern "C"
34220#endif
34221/* We use char because int might match the return type of a gcc2
34222 builtin and then its argument prototype would still apply. */
34223char inet_addr ();
34224int
34225main ()
34226{
34227inet_addr ();
34228 ;
34229 return 0;
34230}
34231_ACEOF
34232rm -f conftest.$ac_objext conftest$ac_exeext
34233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34234 (eval $ac_link) 2>conftest.er1
a848cd7e 34235 ac_status=$?
ac1cb8d3
VS
34236 grep -v '^ *+' conftest.er1 >conftest.err
34237 rm -f conftest.er1
34238 cat conftest.err >&5
a848cd7e
SC
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); } &&
6ebeb4c7 34241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34243 (eval $ac_try) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); }; } &&
34247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249 (eval $ac_try) 2>&5
34250 ac_status=$?
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); }; }; then
34253 ac_cv_lib_resolv_inet_addr=yes
34254else
34255 echo "$as_me: failed program was:" >&5
34256sed 's/^/| /' conftest.$ac_ext >&5
34257
34258ac_cv_lib_resolv_inet_addr=no
34259fi
ac1cb8d3
VS
34260rm -f conftest.err conftest.$ac_objext \
34261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34262LIBS=$ac_check_lib_save_LIBS
34263fi
34264echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34265echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34266if test $ac_cv_lib_resolv_inet_addr = yes; then
34267 INET_LINK="resolv"
34268else
34269
34270 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34271echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34272if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34273 echo $ECHO_N "(cached) $ECHO_C" >&6
34274else
34275 ac_check_lib_save_LIBS=$LIBS
34276LIBS="-lsocket $LIBS"
34277cat >conftest.$ac_ext <<_ACEOF
34278/* confdefs.h. */
34279_ACEOF
34280cat confdefs.h >>conftest.$ac_ext
34281cat >>conftest.$ac_ext <<_ACEOF
34282/* end confdefs.h. */
34283
34284/* Override any gcc2 internal prototype to avoid an error. */
34285#ifdef __cplusplus
34286extern "C"
34287#endif
34288/* We use char because int might match the return type of a gcc2
34289 builtin and then its argument prototype would still apply. */
34290char inet_addr ();
34291int
34292main ()
34293{
34294inet_addr ();
34295 ;
34296 return 0;
34297}
34298_ACEOF
34299rm -f conftest.$ac_objext conftest$ac_exeext
34300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34301 (eval $ac_link) 2>conftest.er1
a848cd7e 34302 ac_status=$?
ac1cb8d3
VS
34303 grep -v '^ *+' conftest.er1 >conftest.err
34304 rm -f conftest.er1
34305 cat conftest.err >&5
a848cd7e
SC
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } &&
6ebeb4c7 34308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310 (eval $ac_try) 2>&5
34311 ac_status=$?
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); }; } &&
34314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316 (eval $ac_try) 2>&5
34317 ac_status=$?
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); }; }; then
34320 ac_cv_lib_socket_inet_addr=yes
34321else
34322 echo "$as_me: failed program was:" >&5
34323sed 's/^/| /' conftest.$ac_ext >&5
34324
34325ac_cv_lib_socket_inet_addr=no
34326fi
ac1cb8d3
VS
34327rm -f conftest.err conftest.$ac_objext \
34328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34329LIBS=$ac_check_lib_save_LIBS
34330fi
34331echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34332echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34333if test $ac_cv_lib_socket_inet_addr = yes; then
34334 INET_LINK="socket"
34335
34336fi
34337
34338
34339
34340fi
34341
34342
34343
34344fi
34345
34346
34347
34348fi
34349done
34350
34351
34352
34353for ac_func in inet_aton
34354do
34355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34356echo "$as_me:$LINENO: checking for $ac_func" >&5
34357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34358if eval "test \"\${$as_ac_var+set}\" = set"; then
34359 echo $ECHO_N "(cached) $ECHO_C" >&6
34360else
34361 cat >conftest.$ac_ext <<_ACEOF
34362/* confdefs.h. */
34363_ACEOF
34364cat confdefs.h >>conftest.$ac_ext
34365cat >>conftest.$ac_ext <<_ACEOF
34366/* end confdefs.h. */
ac1cb8d3
VS
34367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34369#define $ac_func innocuous_$ac_func
34370
a848cd7e
SC
34371/* System header to define __stub macros and hopefully few prototypes,
34372 which can conflict with char $ac_func (); below.
34373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34375
a848cd7e
SC
34376#ifdef __STDC__
34377# include <limits.h>
34378#else
34379# include <assert.h>
34380#endif
ac1cb8d3
VS
34381
34382#undef $ac_func
34383
a848cd7e
SC
34384/* Override any gcc2 internal prototype to avoid an error. */
34385#ifdef __cplusplus
34386extern "C"
34387{
34388#endif
34389/* We use char because int might match the return type of a gcc2
34390 builtin and then its argument prototype would still apply. */
34391char $ac_func ();
34392/* The GNU C library defines this for functions which it implements
34393 to always fail with ENOSYS. Some functions are actually named
34394 something starting with __ and the normal name is an alias. */
34395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34396choke me
34397#else
34398char (*f) () = $ac_func;
34399#endif
34400#ifdef __cplusplus
34401}
34402#endif
34403
34404int
34405main ()
34406{
34407return f != $ac_func;
34408 ;
34409 return 0;
34410}
34411_ACEOF
34412rm -f conftest.$ac_objext conftest$ac_exeext
34413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34414 (eval $ac_link) 2>conftest.er1
a848cd7e 34415 ac_status=$?
ac1cb8d3
VS
34416 grep -v '^ *+' conftest.er1 >conftest.err
34417 rm -f conftest.er1
34418 cat conftest.err >&5
a848cd7e
SC
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); } &&
6ebeb4c7 34421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34423 (eval $ac_try) 2>&5
34424 ac_status=$?
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); }; } &&
34427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429 (eval $ac_try) 2>&5
34430 ac_status=$?
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); }; }; then
34433 eval "$as_ac_var=yes"
34434else
34435 echo "$as_me: failed program was:" >&5
34436sed 's/^/| /' conftest.$ac_ext >&5
34437
34438eval "$as_ac_var=no"
34439fi
ac1cb8d3
VS
34440rm -f conftest.err conftest.$ac_objext \
34441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34442fi
34443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34445if test `eval echo '${'$as_ac_var'}'` = yes; then
34446 cat >>confdefs.h <<_ACEOF
34447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34448_ACEOF
34449 cat >>confdefs.h <<\_ACEOF
34450#define HAVE_INET_ATON 1
34451_ACEOF
34452
34453else
34454
34455 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34456echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34457echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34458if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34459 echo $ECHO_N "(cached) $ECHO_C" >&6
34460else
34461 ac_check_lib_save_LIBS=$LIBS
34462LIBS="-l$INET_LINK $LIBS"
34463cat >conftest.$ac_ext <<_ACEOF
34464/* confdefs.h. */
34465_ACEOF
34466cat confdefs.h >>conftest.$ac_ext
34467cat >>conftest.$ac_ext <<_ACEOF
34468/* end confdefs.h. */
34469
34470/* Override any gcc2 internal prototype to avoid an error. */
34471#ifdef __cplusplus
34472extern "C"
34473#endif
34474/* We use char because int might match the return type of a gcc2
34475 builtin and then its argument prototype would still apply. */
34476char inet_aton ();
34477int
34478main ()
34479{
34480inet_aton ();
34481 ;
34482 return 0;
34483}
34484_ACEOF
34485rm -f conftest.$ac_objext conftest$ac_exeext
34486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34487 (eval $ac_link) 2>conftest.er1
a848cd7e 34488 ac_status=$?
ac1cb8d3
VS
34489 grep -v '^ *+' conftest.er1 >conftest.err
34490 rm -f conftest.er1
34491 cat conftest.err >&5
a848cd7e
SC
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); } &&
6ebeb4c7 34494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; } &&
34500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34502 (eval $ac_try) 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; }; then
34506 eval "$as_ac_Lib=yes"
34507else
34508 echo "$as_me: failed program was:" >&5
34509sed 's/^/| /' conftest.$ac_ext >&5
34510
34511eval "$as_ac_Lib=no"
34512fi
ac1cb8d3
VS
34513rm -f conftest.err conftest.$ac_objext \
34514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34515LIBS=$ac_check_lib_save_LIBS
34516fi
34517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34518echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34519if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34520 cat >>confdefs.h <<\_ACEOF
34521#define HAVE_INET_ATON 1
34522_ACEOF
34523
34524fi
34525
34526
34527fi
34528done
34529
34530
34531if test "x$INET_LINK" != "x"; then
34532 cat >>confdefs.h <<\_ACEOF
34533#define HAVE_INET_ADDR 1
34534_ACEOF
34535
34536 INET_LINK=" -l$INET_LINK"
34537fi
34538
34539fi
34540
34541
34542
34543EXTRALIBS_ESD=
34544echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34545echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34546if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34547 echo $ECHO_N "(cached) $ECHO_C" >&6
34548else
34549 ac_check_lib_save_LIBS=$LIBS
34550LIBS="-lesd $LIBS"
34551cat >conftest.$ac_ext <<_ACEOF
34552/* confdefs.h. */
34553_ACEOF
34554cat confdefs.h >>conftest.$ac_ext
34555cat >>conftest.$ac_ext <<_ACEOF
34556/* end confdefs.h. */
34557
34558/* Override any gcc2 internal prototype to avoid an error. */
34559#ifdef __cplusplus
34560extern "C"
34561#endif
34562/* We use char because int might match the return type of a gcc2
34563 builtin and then its argument prototype would still apply. */
34564char esd_close ();
34565int
34566main ()
34567{
34568esd_close ();
34569 ;
34570 return 0;
34571}
34572_ACEOF
34573rm -f conftest.$ac_objext conftest$ac_exeext
34574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34575 (eval $ac_link) 2>conftest.er1
a848cd7e 34576 ac_status=$?
ac1cb8d3
VS
34577 grep -v '^ *+' conftest.er1 >conftest.err
34578 rm -f conftest.er1
34579 cat conftest.err >&5
a848cd7e
SC
34580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 (exit $ac_status); } &&
6ebeb4c7 34582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584 (eval $ac_try) 2>&5
34585 ac_status=$?
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; } &&
34588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590 (eval $ac_try) 2>&5
34591 ac_status=$?
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; }; then
34594 ac_cv_lib_esd_esd_close=yes
34595else
34596 echo "$as_me: failed program was:" >&5
34597sed 's/^/| /' conftest.$ac_ext >&5
34598
34599ac_cv_lib_esd_esd_close=no
34600fi
ac1cb8d3
VS
34601rm -f conftest.err conftest.$ac_objext \
34602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34603LIBS=$ac_check_lib_save_LIBS
34604fi
34605echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34606echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34607if test $ac_cv_lib_esd_esd_close = yes; then
34608
34609
34610for ac_header in esd.h
34611do
34612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34613if eval "test \"\${$as_ac_Header+set}\" = set"; then
34614 echo "$as_me:$LINENO: checking for $ac_header" >&5
34615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34616if eval "test \"\${$as_ac_Header+set}\" = set"; then
34617 echo $ECHO_N "(cached) $ECHO_C" >&6
34618fi
34619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34621else
34622 # Is the header compilable?
34623echo "$as_me:$LINENO: checking $ac_header usability" >&5
34624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34625cat >conftest.$ac_ext <<_ACEOF
34626/* confdefs.h. */
34627_ACEOF
34628cat confdefs.h >>conftest.$ac_ext
34629cat >>conftest.$ac_ext <<_ACEOF
34630/* end confdefs.h. */
34631$ac_includes_default
34632#include <$ac_header>
34633_ACEOF
34634rm -f conftest.$ac_objext
34635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34636 (eval $ac_compile) 2>conftest.er1
a848cd7e 34637 ac_status=$?
ac1cb8d3
VS
34638 grep -v '^ *+' conftest.er1 >conftest.err
34639 rm -f conftest.er1
34640 cat conftest.err >&5
a848cd7e
SC
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } &&
6ebeb4c7 34643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; } &&
34649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651 (eval $ac_try) 2>&5
34652 ac_status=$?
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); }; }; then
34655 ac_header_compiler=yes
34656else
34657 echo "$as_me: failed program was:" >&5
34658sed 's/^/| /' conftest.$ac_ext >&5
34659
34660ac_header_compiler=no
34661fi
ac1cb8d3 34662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34664echo "${ECHO_T}$ac_header_compiler" >&6
34665
34666# Is the header present?
34667echo "$as_me:$LINENO: checking $ac_header presence" >&5
34668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34669cat >conftest.$ac_ext <<_ACEOF
34670/* confdefs.h. */
34671_ACEOF
34672cat confdefs.h >>conftest.$ac_ext
34673cat >>conftest.$ac_ext <<_ACEOF
34674/* end confdefs.h. */
34675#include <$ac_header>
34676_ACEOF
34677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34679 ac_status=$?
34680 grep -v '^ *+' conftest.er1 >conftest.err
34681 rm -f conftest.er1
34682 cat conftest.err >&5
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } >/dev/null; then
34685 if test -s conftest.err; then
34686 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34688 else
34689 ac_cpp_err=
34690 fi
34691else
34692 ac_cpp_err=yes
34693fi
34694if test -z "$ac_cpp_err"; then
34695 ac_header_preproc=yes
34696else
34697 echo "$as_me: failed program was:" >&5
34698sed 's/^/| /' conftest.$ac_ext >&5
34699
34700 ac_header_preproc=no
34701fi
34702rm -f conftest.err conftest.$ac_ext
34703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34704echo "${ECHO_T}$ac_header_preproc" >&6
34705
34706# So? What about this header?
ac1cb8d3
VS
34707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34708 yes:no: )
a848cd7e
SC
34709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34713 ac_header_preproc=yes
a848cd7e 34714 ;;
ac1cb8d3 34715 no:yes:* )
a848cd7e
SC
34716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34728 (
34729 cat <<\_ASBOX
ac1cb8d3
VS
34730## ----------------------------------------- ##
34731## Report this to wx-dev@lists.wxwidgets.org ##
34732## ----------------------------------------- ##
a848cd7e
SC
34733_ASBOX
34734 ) |
34735 sed "s/^/$as_me: WARNING: /" >&2
34736 ;;
34737esac
34738echo "$as_me:$LINENO: checking for $ac_header" >&5
34739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34740if eval "test \"\${$as_ac_Header+set}\" = set"; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34742else
ac1cb8d3 34743 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34744fi
34745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34747
34748fi
34749if test `eval echo '${'$as_ac_Header'}'` = yes; then
34750 cat >>confdefs.h <<_ACEOF
34751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34752_ACEOF
34753
34754 EXTRALIBS_ESD="-lesd"
34755
34756fi
34757
34758done
34759
34760
34761fi
34762
34763
34764
34765echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34766echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34767cat >conftest.$ac_ext <<_ACEOF
34768/* confdefs.h. */
34769_ACEOF
34770cat confdefs.h >>conftest.$ac_ext
34771cat >>conftest.$ac_ext <<_ACEOF
34772/* end confdefs.h. */
34773#ifdef __linux__
34774 #include <linux/cdrom.h>
34775 #else
34776 /* For Solaris */
34777 #include <sys/cdio.h>
34778 #endif
34779
34780int
34781main ()
34782{
34783struct cdrom_tocentry entry, old_entry;
34784 ;
34785 return 0;
34786}
34787_ACEOF
34788rm -f conftest.$ac_objext
34789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34790 (eval $ac_compile) 2>conftest.er1
a848cd7e 34791 ac_status=$?
ac1cb8d3
VS
34792 grep -v '^ *+' conftest.er1 >conftest.err
34793 rm -f conftest.er1
34794 cat conftest.err >&5
a848cd7e
SC
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); } &&
6ebeb4c7 34797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; } &&
34803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805 (eval $ac_try) 2>&5
34806 ac_status=$?
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); }; }; then
34809 echo "$as_me:$LINENO: result: yes" >&5
34810echo "${ECHO_T}yes" >&6
34811 cat >>confdefs.h <<\_ACEOF
34812#define HAVE_KNOWN_CDROM_INTERFACE 1
34813_ACEOF
34814
34815else
34816 echo "$as_me: failed program was:" >&5
34817sed 's/^/| /' conftest.$ac_ext >&5
34818
34819echo "$as_me:$LINENO: result: no" >&5
34820echo "${ECHO_T}no" >&6
34821fi
ac1cb8d3 34822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34823
34824
34825cat >confcache <<\_ACEOF
34826# This file is a shell script that caches the results of configure
34827# tests run on this system so they can be shared between configure
34828# scripts and configure runs, see configure's option --config-cache.
34829# It is not useful on other systems. If it contains results you don't
34830# want to keep, you may remove or edit it.
34831#
34832# config.status only pays attention to the cache file if you give it
34833# the --recheck option to rerun configure.
34834#
34835# `ac_cv_env_foo' variables (set or unset) will be overridden when
34836# loading this file, other *unset* `ac_cv_foo' will be assigned the
34837# following values.
34838
34839_ACEOF
34840
34841# The following way of writing the cache mishandles newlines in values,
34842# but we know of no workaround that is simple, portable, and efficient.
34843# So, don't put newlines in cache variables' values.
34844# Ultrix sh set writes to stderr and can't be redirected directly,
34845# and sets the high bit in the cache file unless we assign to the vars.
34846{
34847 (set) 2>&1 |
34848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34849 *ac_space=\ *)
34850 # `set' does not quote correctly, so add quotes (double-quote
34851 # substitution turns \\\\ into \\, and sed turns \\ into \).
34852 sed -n \
ac1cb8d3
VS
34853 "s/'/'\\\\''/g;
34854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34855 ;;
34856 *)
34857 # `set' quotes correctly as required by POSIX, so do not add quotes.
34858 sed -n \
ac1cb8d3 34859 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34860 ;;
34861 esac;
34862} |
34863 sed '
34864 t clear
34865 : clear
34866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34867 t end
34868 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34869 : end' >>confcache
34870if diff $cache_file confcache >/dev/null 2>&1; then :; else
34871 if test -w $cache_file; then
34872 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34873 cat confcache >$cache_file
34874 else
34875 echo "not updating unwritable cache $cache_file"
34876 fi
34877fi
34878rm -f confcache
34879
34880
34881CPP_MT_FLAG=
34882if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34883
34884
34885 THREADS_LINK=
34886 THREADS_CFLAGS=
34887
34888 if test "$wxUSE_THREADS" = "yes" ; then
34889 if test "$USE_BEOS" = 1; then
34890 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34891echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34892 wxUSE_THREADS="no"
34893 fi
34894 fi
34895
34896 if test "$wxUSE_THREADS" = "yes" ; then
34897
34898
34899 THREAD_OPTS="-pthread"
34900 case "${host}" in
34901 *-*-solaris2* | *-*-sunos4* )
34902 if test "x$GCC" = "xyes"; then
34903 THREAD_OPTS="-pthreads $THREAD_OPTS"
34904 else
34905 THREAD_OPTS="-mt $THREAD_OPTS"
34906 fi
34907 ;;
34908 *-*-freebsd*)
34909 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34910 ;;
34911 *-*-darwin* | *-*-cygwin* )
34912 THREAD_OPTS=""
34913 ;;
34914 *-*-aix*)
34915 THREAD_OPTS="pthreads"
34916 ;;
34917 *-hp-hpux* )
00421666
MW
34918 if test "x$GCC" = "xyes"; then
34919 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
34920 THREAD_OPTS=""
34921 else
efdf6afe 34922 THREAD_OPTS=""
a848cd7e
SC
34923 fi
34924 ;;
34925
34926 *-*-irix* )
34927 if test "x$GCC" = "xyes"; then
34928 THREAD_OPTS=""
34929 fi
34930 ;;
34931
34932 *-*-*UnixWare*)
34933 if test "x$GCC" != "xyes"; then
34934 THREAD_OPTS="-Ethread"
34935 fi
34936 ;;
34937 esac
34938
34939 THREAD_OPTS="$THREAD_OPTS pthread none"
34940
34941 THREADS_OK=no
34942 for flag in $THREAD_OPTS; do
34943 case $flag in
34944 none)
34945 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34946echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34947 ;;
34948
34949 -*)
34950 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34951echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34952 THREADS_CFLAGS="$flag"
34953 ;;
34954
34955 *)
34956 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34957echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34958 THREADS_LINK="-l$flag"
34959 ;;
34960 esac
34961
34962 save_LIBS="$LIBS"
34963 save_CFLAGS="$CFLAGS"
34964 LIBS="$THREADS_LINK $LIBS"
34965 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34966
34967 cat >conftest.$ac_ext <<_ACEOF
34968/* confdefs.h. */
34969_ACEOF
34970cat confdefs.h >>conftest.$ac_ext
34971cat >>conftest.$ac_ext <<_ACEOF
34972/* end confdefs.h. */
34973#include <pthread.h>
34974int
34975main ()
34976{
34977pthread_create(0,0,0,0);
34978 ;
34979 return 0;
34980}
34981_ACEOF
34982rm -f conftest.$ac_objext conftest$ac_exeext
34983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34984 (eval $ac_link) 2>conftest.er1
a848cd7e 34985 ac_status=$?
ac1cb8d3
VS
34986 grep -v '^ *+' conftest.er1 >conftest.err
34987 rm -f conftest.er1
34988 cat conftest.err >&5
a848cd7e
SC
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); } &&
6ebeb4c7 34991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34994 ac_status=$?
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; } &&
34997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999 (eval $ac_try) 2>&5
35000 ac_status=$?
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; }; then
35003 THREADS_OK=yes
35004else
35005 echo "$as_me: failed program was:" >&5
35006sed 's/^/| /' conftest.$ac_ext >&5
35007
35008fi
ac1cb8d3
VS
35009rm -f conftest.err conftest.$ac_objext \
35010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35011
35012 LIBS="$save_LIBS"
35013 CFLAGS="$save_CFLAGS"
35014
35015 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35016echo "${ECHO_T}$THREADS_OK" >&6
35017 if test "x$THREADS_OK" = "xyes"; then
35018 break;
35019 fi
35020
35021 THREADS_LINK=""
35022 THREADS_CFLAGS=""
35023 done
35024
35025 if test "x$THREADS_OK" != "xyes"; then
35026 wxUSE_THREADS=no
35027 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35028echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35029 else
35030 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35031 LIBS="$THREADS_LINK $LIBS"
35032
35033 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35034echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35035 flag=no
35036 case "${host}" in
35037 *-aix*)
35038 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35039 flag="-D_THREAD_SAFE"
35040 ;;
35041 *-freebsd*)
35042 flag="-D_THREAD_SAFE"
35043 ;;
35044 *-hp-hpux* )
35045 flag="-D_REENTRANT"
35046 if test "x$GCC" != "xyes"; then
35047 flag="$flag -D_RWSTD_MULTI_THREAD"
35048 fi
35049 ;;
35050 *solaris* | alpha*-osf*)
35051 flag="-D_REENTRANT"
35052 ;;
35053 esac
35054 echo "$as_me:$LINENO: result: ${flag}" >&5
35055echo "${ECHO_T}${flag}" >&6
35056 if test "x$flag" != xno; then
35057 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35058 fi
35059
35060 if test "x$THREADS_CFLAGS" != "x"; then
35061 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35062 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35063 fi
35064 fi
35065 fi
35066
35067 if test "$wxUSE_THREADS" = "yes" ; then
35068
35069for ac_func in thr_setconcurrency
35070do
35071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35072echo "$as_me:$LINENO: checking for $ac_func" >&5
35073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35074if eval "test \"\${$as_ac_var+set}\" = set"; then
35075 echo $ECHO_N "(cached) $ECHO_C" >&6
35076else
35077 cat >conftest.$ac_ext <<_ACEOF
35078/* confdefs.h. */
35079_ACEOF
35080cat confdefs.h >>conftest.$ac_ext
35081cat >>conftest.$ac_ext <<_ACEOF
35082/* end confdefs.h. */
ac1cb8d3
VS
35083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35085#define $ac_func innocuous_$ac_func
35086
a848cd7e
SC
35087/* System header to define __stub macros and hopefully few prototypes,
35088 which can conflict with char $ac_func (); below.
35089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35091
a848cd7e
SC
35092#ifdef __STDC__
35093# include <limits.h>
35094#else
35095# include <assert.h>
35096#endif
ac1cb8d3
VS
35097
35098#undef $ac_func
35099
a848cd7e
SC
35100/* Override any gcc2 internal prototype to avoid an error. */
35101#ifdef __cplusplus
35102extern "C"
35103{
35104#endif
35105/* We use char because int might match the return type of a gcc2
35106 builtin and then its argument prototype would still apply. */
35107char $ac_func ();
35108/* The GNU C library defines this for functions which it implements
35109 to always fail with ENOSYS. Some functions are actually named
35110 something starting with __ and the normal name is an alias. */
35111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35112choke me
35113#else
35114char (*f) () = $ac_func;
35115#endif
35116#ifdef __cplusplus
35117}
35118#endif
35119
35120int
35121main ()
35122{
35123return f != $ac_func;
35124 ;
35125 return 0;
35126}
35127_ACEOF
35128rm -f conftest.$ac_objext conftest$ac_exeext
35129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35130 (eval $ac_link) 2>conftest.er1
a848cd7e 35131 ac_status=$?
ac1cb8d3
VS
35132 grep -v '^ *+' conftest.er1 >conftest.err
35133 rm -f conftest.er1
35134 cat conftest.err >&5
a848cd7e
SC
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); } &&
6ebeb4c7 35137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139 (eval $ac_try) 2>&5
35140 ac_status=$?
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); }; } &&
35143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145 (eval $ac_try) 2>&5
35146 ac_status=$?
35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148 (exit $ac_status); }; }; then
35149 eval "$as_ac_var=yes"
35150else
35151 echo "$as_me: failed program was:" >&5
35152sed 's/^/| /' conftest.$ac_ext >&5
35153
35154eval "$as_ac_var=no"
35155fi
ac1cb8d3
VS
35156rm -f conftest.err conftest.$ac_objext \
35157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35158fi
35159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35161if test `eval echo '${'$as_ac_var'}'` = yes; then
35162 cat >>confdefs.h <<_ACEOF
35163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35164_ACEOF
35165
35166fi
35167done
35168
35169
6ebeb4c7
VZ
35170 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
35171echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
35172if test "${wx_cv_func_pthread_cleanup+set}" = set; then
35173 echo $ECHO_N "(cached) $ECHO_C" >&6
35174else
35175
35176 cat >conftest.$ac_ext <<_ACEOF
35177/* confdefs.h. */
35178_ACEOF
35179cat confdefs.h >>conftest.$ac_ext
35180cat >>conftest.$ac_ext <<_ACEOF
35181/* end confdefs.h. */
35182#include <pthread.h>
35183 void ThreadCleanupFunc(void *p);
35184
35185int
35186main ()
35187{
35188
35189 void *p;
35190 pthread_cleanup_push(ThreadCleanupFunc, p);
35191 pthread_cleanup_pop(0);
35192
35193 ;
35194 return 0;
35195}
35196_ACEOF
35197rm -f conftest.$ac_objext
35198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35199 (eval $ac_compile) 2>conftest.er1
35200 ac_status=$?
35201 grep -v '^ *+' conftest.er1 >conftest.err
35202 rm -f conftest.er1
35203 cat conftest.err >&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); } &&
35206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35208 (eval $ac_try) 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; } &&
35212 { ac_try='test -s conftest.$ac_objext'
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; }; then
35218
35219 wx_cv_func_pthread_cleanup=yes
35220
35221else
35222 echo "$as_me: failed program was:" >&5
35223sed 's/^/| /' conftest.$ac_ext >&5
35224
35225
35226 wx_cv_func_pthread_cleanup=no
35227
35228
35229fi
35230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35231
35232fi
35233echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
35234echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
35235 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
35236 cat >>confdefs.h <<\_ACEOF
35237#define wxHAVE_PTHREAD_CLEANUP 1
35238_ACEOF
35239
35240 fi
35241
a848cd7e
SC
35242
35243for ac_header in sched.h
35244do
35245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35246if eval "test \"\${$as_ac_Header+set}\" = set"; then
35247 echo "$as_me:$LINENO: checking for $ac_header" >&5
35248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35249if eval "test \"\${$as_ac_Header+set}\" = set"; then
35250 echo $ECHO_N "(cached) $ECHO_C" >&6
35251fi
35252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35254else
35255 # Is the header compilable?
35256echo "$as_me:$LINENO: checking $ac_header usability" >&5
35257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35258cat >conftest.$ac_ext <<_ACEOF
35259/* confdefs.h. */
35260_ACEOF
35261cat confdefs.h >>conftest.$ac_ext
35262cat >>conftest.$ac_ext <<_ACEOF
35263/* end confdefs.h. */
35264$ac_includes_default
35265#include <$ac_header>
35266_ACEOF
35267rm -f conftest.$ac_objext
35268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35269 (eval $ac_compile) 2>conftest.er1
a848cd7e 35270 ac_status=$?
ac1cb8d3
VS
35271 grep -v '^ *+' conftest.er1 >conftest.err
35272 rm -f conftest.er1
35273 cat conftest.err >&5
a848cd7e
SC
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } &&
6ebeb4c7 35276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35278 (eval $ac_try) 2>&5
35279 ac_status=$?
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); }; } &&
35282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284 (eval $ac_try) 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; }; then
35288 ac_header_compiler=yes
35289else
35290 echo "$as_me: failed program was:" >&5
35291sed 's/^/| /' conftest.$ac_ext >&5
35292
35293ac_header_compiler=no
35294fi
ac1cb8d3 35295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35297echo "${ECHO_T}$ac_header_compiler" >&6
35298
35299# Is the header present?
35300echo "$as_me:$LINENO: checking $ac_header presence" >&5
35301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35302cat >conftest.$ac_ext <<_ACEOF
35303/* confdefs.h. */
35304_ACEOF
35305cat confdefs.h >>conftest.$ac_ext
35306cat >>conftest.$ac_ext <<_ACEOF
35307/* end confdefs.h. */
35308#include <$ac_header>
35309_ACEOF
35310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35312 ac_status=$?
35313 grep -v '^ *+' conftest.er1 >conftest.err
35314 rm -f conftest.er1
35315 cat conftest.err >&5
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); } >/dev/null; then
35318 if test -s conftest.err; then
35319 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35321 else
35322 ac_cpp_err=
35323 fi
35324else
35325 ac_cpp_err=yes
35326fi
35327if test -z "$ac_cpp_err"; then
35328 ac_header_preproc=yes
35329else
35330 echo "$as_me: failed program was:" >&5
35331sed 's/^/| /' conftest.$ac_ext >&5
35332
35333 ac_header_preproc=no
35334fi
35335rm -f conftest.err conftest.$ac_ext
35336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35337echo "${ECHO_T}$ac_header_preproc" >&6
35338
35339# So? What about this header?
ac1cb8d3
VS
35340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35341 yes:no: )
a848cd7e
SC
35342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35346 ac_header_preproc=yes
a848cd7e 35347 ;;
ac1cb8d3 35348 no:yes:* )
a848cd7e
SC
35349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35361 (
35362 cat <<\_ASBOX
ac1cb8d3
VS
35363## ----------------------------------------- ##
35364## Report this to wx-dev@lists.wxwidgets.org ##
35365## ----------------------------------------- ##
a848cd7e
SC
35366_ASBOX
35367 ) |
35368 sed "s/^/$as_me: WARNING: /" >&2
35369 ;;
35370esac
35371echo "$as_me:$LINENO: checking for $ac_header" >&5
35372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35373if eval "test \"\${$as_ac_Header+set}\" = set"; then
35374 echo $ECHO_N "(cached) $ECHO_C" >&6
35375else
ac1cb8d3 35376 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35377fi
35378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35380
35381fi
35382if test `eval echo '${'$as_ac_Header'}'` = yes; then
35383 cat >>confdefs.h <<_ACEOF
35384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35385_ACEOF
35386
35387fi
35388
35389done
35390
35391 if test "$ac_cv_header_sched_h" = "yes"; then
35392 echo "$as_me:$LINENO: checking for sched_yield" >&5
35393echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35394if test "${ac_cv_func_sched_yield+set}" = set; then
35395 echo $ECHO_N "(cached) $ECHO_C" >&6
35396else
35397 cat >conftest.$ac_ext <<_ACEOF
35398/* confdefs.h. */
35399_ACEOF
35400cat confdefs.h >>conftest.$ac_ext
35401cat >>conftest.$ac_ext <<_ACEOF
35402/* end confdefs.h. */
ac1cb8d3
VS
35403/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35405#define sched_yield innocuous_sched_yield
35406
a848cd7e
SC
35407/* System header to define __stub macros and hopefully few prototypes,
35408 which can conflict with char sched_yield (); below.
35409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35411
a848cd7e
SC
35412#ifdef __STDC__
35413# include <limits.h>
35414#else
35415# include <assert.h>
35416#endif
ac1cb8d3
VS
35417
35418#undef sched_yield
35419
a848cd7e
SC
35420/* Override any gcc2 internal prototype to avoid an error. */
35421#ifdef __cplusplus
35422extern "C"
35423{
35424#endif
35425/* We use char because int might match the return type of a gcc2
35426 builtin and then its argument prototype would still apply. */
35427char sched_yield ();
35428/* The GNU C library defines this for functions which it implements
35429 to always fail with ENOSYS. Some functions are actually named
35430 something starting with __ and the normal name is an alias. */
35431#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35432choke me
35433#else
35434char (*f) () = sched_yield;
35435#endif
35436#ifdef __cplusplus
35437}
35438#endif
35439
35440int
35441main ()
35442{
35443return f != sched_yield;
35444 ;
35445 return 0;
35446}
35447_ACEOF
35448rm -f conftest.$ac_objext conftest$ac_exeext
35449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35450 (eval $ac_link) 2>conftest.er1
a848cd7e 35451 ac_status=$?
ac1cb8d3
VS
35452 grep -v '^ *+' conftest.er1 >conftest.err
35453 rm -f conftest.er1
35454 cat conftest.err >&5
a848cd7e
SC
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); } &&
6ebeb4c7 35457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; } &&
35463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35465 (eval $ac_try) 2>&5
35466 ac_status=$?
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); }; }; then
35469 ac_cv_func_sched_yield=yes
35470else
35471 echo "$as_me: failed program was:" >&5
35472sed 's/^/| /' conftest.$ac_ext >&5
35473
35474ac_cv_func_sched_yield=no
35475fi
ac1cb8d3
VS
35476rm -f conftest.err conftest.$ac_objext \
35477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35478fi
35479echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35480echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35481if test $ac_cv_func_sched_yield = yes; then
35482 cat >>confdefs.h <<\_ACEOF
35483#define HAVE_SCHED_YIELD 1
35484_ACEOF
35485
35486else
35487
35488 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35489echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35490if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35491 echo $ECHO_N "(cached) $ECHO_C" >&6
35492else
35493 ac_check_lib_save_LIBS=$LIBS
35494LIBS="-lposix4 $LIBS"
35495cat >conftest.$ac_ext <<_ACEOF
35496/* confdefs.h. */
35497_ACEOF
35498cat confdefs.h >>conftest.$ac_ext
35499cat >>conftest.$ac_ext <<_ACEOF
35500/* end confdefs.h. */
35501
35502/* Override any gcc2 internal prototype to avoid an error. */
35503#ifdef __cplusplus
35504extern "C"
35505#endif
35506/* We use char because int might match the return type of a gcc2
35507 builtin and then its argument prototype would still apply. */
35508char sched_yield ();
35509int
35510main ()
35511{
35512sched_yield ();
35513 ;
35514 return 0;
35515}
35516_ACEOF
35517rm -f conftest.$ac_objext conftest$ac_exeext
35518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35519 (eval $ac_link) 2>conftest.er1
a848cd7e 35520 ac_status=$?
ac1cb8d3
VS
35521 grep -v '^ *+' conftest.er1 >conftest.err
35522 rm -f conftest.er1
35523 cat conftest.err >&5
a848cd7e
SC
35524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525 (exit $ac_status); } &&
6ebeb4c7 35526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35528 (eval $ac_try) 2>&5
35529 ac_status=$?
35530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); }; } &&
35532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35538 ac_cv_lib_posix4_sched_yield=yes
35539else
35540 echo "$as_me: failed program was:" >&5
35541sed 's/^/| /' conftest.$ac_ext >&5
35542
35543ac_cv_lib_posix4_sched_yield=no
35544fi
ac1cb8d3
VS
35545rm -f conftest.err conftest.$ac_objext \
35546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35547LIBS=$ac_check_lib_save_LIBS
35548fi
35549echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35550echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35551if test $ac_cv_lib_posix4_sched_yield = yes; then
35552 cat >>confdefs.h <<\_ACEOF
35553#define HAVE_SCHED_YIELD 1
35554_ACEOF
35555 POSIX4_LINK=" -lposix4"
35556else
35557 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35558echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35559
35560fi
35561
35562
35563
35564fi
35565
35566 fi
35567
35568 HAVE_PRIOR_FUNCS=0
35569 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35570echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35571if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35572 echo $ECHO_N "(cached) $ECHO_C" >&6
35573else
35574 cat >conftest.$ac_ext <<_ACEOF
35575/* confdefs.h. */
35576_ACEOF
35577cat confdefs.h >>conftest.$ac_ext
35578cat >>conftest.$ac_ext <<_ACEOF
35579/* end confdefs.h. */
ac1cb8d3
VS
35580/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35582#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35583
a848cd7e
SC
35584/* System header to define __stub macros and hopefully few prototypes,
35585 which can conflict with char pthread_attr_getschedpolicy (); below.
35586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35587 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35588
a848cd7e
SC
35589#ifdef __STDC__
35590# include <limits.h>
35591#else
35592# include <assert.h>
35593#endif
ac1cb8d3
VS
35594
35595#undef pthread_attr_getschedpolicy
35596
a848cd7e
SC
35597/* Override any gcc2 internal prototype to avoid an error. */
35598#ifdef __cplusplus
35599extern "C"
35600{
35601#endif
35602/* We use char because int might match the return type of a gcc2
35603 builtin and then its argument prototype would still apply. */
35604char pthread_attr_getschedpolicy ();
35605/* The GNU C library defines this for functions which it implements
35606 to always fail with ENOSYS. Some functions are actually named
35607 something starting with __ and the normal name is an alias. */
35608#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35609choke me
35610#else
35611char (*f) () = pthread_attr_getschedpolicy;
35612#endif
35613#ifdef __cplusplus
35614}
35615#endif
35616
35617int
35618main ()
35619{
35620return f != pthread_attr_getschedpolicy;
35621 ;
35622 return 0;
35623}
35624_ACEOF
35625rm -f conftest.$ac_objext conftest$ac_exeext
35626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35627 (eval $ac_link) 2>conftest.er1
a848cd7e 35628 ac_status=$?
ac1cb8d3
VS
35629 grep -v '^ *+' conftest.er1 >conftest.err
35630 rm -f conftest.er1
35631 cat conftest.err >&5
a848cd7e
SC
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); } &&
6ebeb4c7 35634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35637 ac_status=$?
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; } &&
35640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; }; then
35646 ac_cv_func_pthread_attr_getschedpolicy=yes
35647else
35648 echo "$as_me: failed program was:" >&5
35649sed 's/^/| /' conftest.$ac_ext >&5
35650
35651ac_cv_func_pthread_attr_getschedpolicy=no
35652fi
ac1cb8d3
VS
35653rm -f conftest.err conftest.$ac_objext \
35654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35655fi
35656echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35657echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35658if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35659 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35660echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35661if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35662 echo $ECHO_N "(cached) $ECHO_C" >&6
35663else
35664 cat >conftest.$ac_ext <<_ACEOF
35665/* confdefs.h. */
35666_ACEOF
35667cat confdefs.h >>conftest.$ac_ext
35668cat >>conftest.$ac_ext <<_ACEOF
35669/* end confdefs.h. */
ac1cb8d3
VS
35670/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35672#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35673
a848cd7e
SC
35674/* System header to define __stub macros and hopefully few prototypes,
35675 which can conflict with char pthread_attr_setschedparam (); below.
35676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35678
a848cd7e
SC
35679#ifdef __STDC__
35680# include <limits.h>
35681#else
35682# include <assert.h>
35683#endif
ac1cb8d3
VS
35684
35685#undef pthread_attr_setschedparam
35686
a848cd7e
SC
35687/* Override any gcc2 internal prototype to avoid an error. */
35688#ifdef __cplusplus
35689extern "C"
35690{
35691#endif
35692/* We use char because int might match the return type of a gcc2
35693 builtin and then its argument prototype would still apply. */
35694char pthread_attr_setschedparam ();
35695/* The GNU C library defines this for functions which it implements
35696 to always fail with ENOSYS. Some functions are actually named
35697 something starting with __ and the normal name is an alias. */
35698#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35699choke me
35700#else
35701char (*f) () = pthread_attr_setschedparam;
35702#endif
35703#ifdef __cplusplus
35704}
35705#endif
35706
35707int
35708main ()
35709{
35710return f != pthread_attr_setschedparam;
35711 ;
35712 return 0;
35713}
35714_ACEOF
35715rm -f conftest.$ac_objext conftest$ac_exeext
35716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35717 (eval $ac_link) 2>conftest.er1
a848cd7e 35718 ac_status=$?
ac1cb8d3
VS
35719 grep -v '^ *+' conftest.er1 >conftest.err
35720 rm -f conftest.er1
35721 cat conftest.err >&5
a848cd7e
SC
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); } &&
6ebeb4c7 35724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726 (eval $ac_try) 2>&5
35727 ac_status=$?
35728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); }; } &&
35730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35732 (eval $ac_try) 2>&5
35733 ac_status=$?
35734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735 (exit $ac_status); }; }; then
35736 ac_cv_func_pthread_attr_setschedparam=yes
35737else
35738 echo "$as_me: failed program was:" >&5
35739sed 's/^/| /' conftest.$ac_ext >&5
35740
35741ac_cv_func_pthread_attr_setschedparam=no
35742fi
ac1cb8d3
VS
35743rm -f conftest.err conftest.$ac_objext \
35744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35745fi
35746echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35747echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35748if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35749 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35750echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35751if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35752 echo $ECHO_N "(cached) $ECHO_C" >&6
35753else
35754 cat >conftest.$ac_ext <<_ACEOF
35755/* confdefs.h. */
35756_ACEOF
35757cat confdefs.h >>conftest.$ac_ext
35758cat >>conftest.$ac_ext <<_ACEOF
35759/* end confdefs.h. */
ac1cb8d3
VS
35760/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35762#define sched_get_priority_max innocuous_sched_get_priority_max
35763
a848cd7e
SC
35764/* System header to define __stub macros and hopefully few prototypes,
35765 which can conflict with char sched_get_priority_max (); below.
35766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35767 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35768
a848cd7e
SC
35769#ifdef __STDC__
35770# include <limits.h>
35771#else
35772# include <assert.h>
35773#endif
ac1cb8d3
VS
35774
35775#undef sched_get_priority_max
35776
a848cd7e
SC
35777/* Override any gcc2 internal prototype to avoid an error. */
35778#ifdef __cplusplus
35779extern "C"
35780{
35781#endif
35782/* We use char because int might match the return type of a gcc2
35783 builtin and then its argument prototype would still apply. */
35784char sched_get_priority_max ();
35785/* The GNU C library defines this for functions which it implements
35786 to always fail with ENOSYS. Some functions are actually named
35787 something starting with __ and the normal name is an alias. */
35788#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35789choke me
35790#else
35791char (*f) () = sched_get_priority_max;
35792#endif
35793#ifdef __cplusplus
35794}
35795#endif
35796
35797int
35798main ()
35799{
35800return f != sched_get_priority_max;
35801 ;
35802 return 0;
35803}
35804_ACEOF
35805rm -f conftest.$ac_objext conftest$ac_exeext
35806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35807 (eval $ac_link) 2>conftest.er1
a848cd7e 35808 ac_status=$?
ac1cb8d3
VS
35809 grep -v '^ *+' conftest.er1 >conftest.err
35810 rm -f conftest.er1
35811 cat conftest.err >&5
a848cd7e
SC
35812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); } &&
6ebeb4c7 35814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35816 (eval $ac_try) 2>&5
35817 ac_status=$?
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); }; } &&
35820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; }; then
35826 ac_cv_func_sched_get_priority_max=yes
35827else
35828 echo "$as_me: failed program was:" >&5
35829sed 's/^/| /' conftest.$ac_ext >&5
35830
35831ac_cv_func_sched_get_priority_max=no
35832fi
ac1cb8d3
VS
35833rm -f conftest.err conftest.$ac_objext \
35834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35835fi
35836echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35837echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35838if test $ac_cv_func_sched_get_priority_max = yes; then
35839 HAVE_PRIOR_FUNCS=1
35840else
35841 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35842echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35843if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35845else
35846 ac_check_lib_save_LIBS=$LIBS
35847LIBS="-lposix4 $LIBS"
35848cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h. */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h. */
35854
35855/* Override any gcc2 internal prototype to avoid an error. */
35856#ifdef __cplusplus
35857extern "C"
35858#endif
35859/* We use char because int might match the return type of a gcc2
35860 builtin and then its argument prototype would still apply. */
35861char sched_get_priority_max ();
35862int
35863main ()
35864{
35865sched_get_priority_max ();
35866 ;
35867 return 0;
35868}
35869_ACEOF
35870rm -f conftest.$ac_objext conftest$ac_exeext
35871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35872 (eval $ac_link) 2>conftest.er1
a848cd7e 35873 ac_status=$?
ac1cb8d3
VS
35874 grep -v '^ *+' conftest.er1 >conftest.err
35875 rm -f conftest.er1
35876 cat conftest.err >&5
a848cd7e
SC
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); } &&
6ebeb4c7 35879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881 (eval $ac_try) 2>&5
35882 ac_status=$?
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); }; } &&
35885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35888 ac_status=$?
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; }; then
35891 ac_cv_lib_posix4_sched_get_priority_max=yes
35892else
35893 echo "$as_me: failed program was:" >&5
35894sed 's/^/| /' conftest.$ac_ext >&5
35895
35896ac_cv_lib_posix4_sched_get_priority_max=no
35897fi
ac1cb8d3
VS
35898rm -f conftest.err conftest.$ac_objext \
35899 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35900LIBS=$ac_check_lib_save_LIBS
35901fi
35902echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35903echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35904if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35905
35906 HAVE_PRIOR_FUNCS=1
35907 POSIX4_LINK=" -lposix4"
35908
35909fi
35910
35911
35912fi
35913
35914
35915fi
35916
35917
35918fi
35919
35920
35921 if test "$HAVE_PRIOR_FUNCS" = 1; then
35922 cat >>confdefs.h <<\_ACEOF
35923#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35924_ACEOF
35925
35926 else
35927 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35928echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35929 fi
35930
35931 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35932echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35933if test "${ac_cv_func_pthread_cancel+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936 cat >conftest.$ac_ext <<_ACEOF
35937/* confdefs.h. */
35938_ACEOF
35939cat confdefs.h >>conftest.$ac_ext
35940cat >>conftest.$ac_ext <<_ACEOF
35941/* end confdefs.h. */
ac1cb8d3
VS
35942/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35944#define pthread_cancel innocuous_pthread_cancel
35945
a848cd7e
SC
35946/* System header to define __stub macros and hopefully few prototypes,
35947 which can conflict with char pthread_cancel (); below.
35948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35950
a848cd7e
SC
35951#ifdef __STDC__
35952# include <limits.h>
35953#else
35954# include <assert.h>
35955#endif
ac1cb8d3
VS
35956
35957#undef pthread_cancel
35958
a848cd7e
SC
35959/* Override any gcc2 internal prototype to avoid an error. */
35960#ifdef __cplusplus
35961extern "C"
35962{
35963#endif
35964/* We use char because int might match the return type of a gcc2
35965 builtin and then its argument prototype would still apply. */
35966char pthread_cancel ();
35967/* The GNU C library defines this for functions which it implements
35968 to always fail with ENOSYS. Some functions are actually named
35969 something starting with __ and the normal name is an alias. */
35970#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35971choke me
35972#else
35973char (*f) () = pthread_cancel;
35974#endif
35975#ifdef __cplusplus
35976}
35977#endif
35978
35979int
35980main ()
35981{
35982return f != pthread_cancel;
35983 ;
35984 return 0;
35985}
35986_ACEOF
35987rm -f conftest.$ac_objext conftest$ac_exeext
35988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35989 (eval $ac_link) 2>conftest.er1
a848cd7e 35990 ac_status=$?
ac1cb8d3
VS
35991 grep -v '^ *+' conftest.er1 >conftest.err
35992 rm -f conftest.er1
35993 cat conftest.err >&5
a848cd7e
SC
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } &&
6ebeb4c7 35996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35998 (eval $ac_try) 2>&5
35999 ac_status=$?
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); }; } &&
36002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36005 ac_status=$?
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; }; then
36008 ac_cv_func_pthread_cancel=yes
36009else
36010 echo "$as_me: failed program was:" >&5
36011sed 's/^/| /' conftest.$ac_ext >&5
36012
36013ac_cv_func_pthread_cancel=no
36014fi
ac1cb8d3
VS
36015rm -f conftest.err conftest.$ac_objext \
36016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36017fi
36018echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36019echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36020if test $ac_cv_func_pthread_cancel = yes; then
36021 cat >>confdefs.h <<\_ACEOF
36022#define HAVE_PTHREAD_CANCEL 1
36023_ACEOF
36024
36025else
36026 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36027echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36028fi
36029
36030
abc736fd
MW
36031 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36032echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36033if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36034 echo $ECHO_N "(cached) $ECHO_C" >&6
36035else
36036 cat >conftest.$ac_ext <<_ACEOF
36037/* confdefs.h. */
36038_ACEOF
36039cat confdefs.h >>conftest.$ac_ext
36040cat >>conftest.$ac_ext <<_ACEOF
36041/* end confdefs.h. */
36042/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36044#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36045
36046/* System header to define __stub macros and hopefully few prototypes,
36047 which can conflict with char pthread_attr_setstacksize (); below.
36048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36049 <limits.h> exists even on freestanding compilers. */
36050
36051#ifdef __STDC__
36052# include <limits.h>
36053#else
36054# include <assert.h>
36055#endif
36056
36057#undef pthread_attr_setstacksize
36058
36059/* Override any gcc2 internal prototype to avoid an error. */
36060#ifdef __cplusplus
36061extern "C"
36062{
36063#endif
36064/* We use char because int might match the return type of a gcc2
36065 builtin and then its argument prototype would still apply. */
36066char pthread_attr_setstacksize ();
36067/* The GNU C library defines this for functions which it implements
36068 to always fail with ENOSYS. Some functions are actually named
36069 something starting with __ and the normal name is an alias. */
36070#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36071choke me
36072#else
36073char (*f) () = pthread_attr_setstacksize;
36074#endif
36075#ifdef __cplusplus
36076}
36077#endif
36078
36079int
36080main ()
36081{
36082return f != pthread_attr_setstacksize;
36083 ;
36084 return 0;
36085}
36086_ACEOF
36087rm -f conftest.$ac_objext conftest$ac_exeext
36088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36089 (eval $ac_link) 2>conftest.er1
36090 ac_status=$?
36091 grep -v '^ *+' conftest.er1 >conftest.err
36092 rm -f conftest.er1
36093 cat conftest.err >&5
36094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095 (exit $ac_status); } &&
6ebeb4c7 36096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36098 (eval $ac_try) 2>&5
36099 ac_status=$?
36100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36101 (exit $ac_status); }; } &&
36102 { ac_try='test -s conftest$ac_exeext'
36103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36104 (eval $ac_try) 2>&5
36105 ac_status=$?
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); }; }; then
36108 ac_cv_func_pthread_attr_setstacksize=yes
36109else
36110 echo "$as_me: failed program was:" >&5
36111sed 's/^/| /' conftest.$ac_ext >&5
36112
36113ac_cv_func_pthread_attr_setstacksize=no
36114fi
36115rm -f conftest.err conftest.$ac_objext \
36116 conftest$ac_exeext conftest.$ac_ext
36117fi
36118echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
36119echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
36120if test $ac_cv_func_pthread_attr_setstacksize = yes; then
36121 cat >>confdefs.h <<\_ACEOF
36122#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
36123_ACEOF
36124
36125fi
36126
a848cd7e
SC
36127
36128
36129 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
36130echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
36131if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
36132 echo $ECHO_N "(cached) $ECHO_C" >&6
36133else
36134
36135 cat >conftest.$ac_ext <<_ACEOF
36136/* confdefs.h. */
36137_ACEOF
36138cat confdefs.h >>conftest.$ac_ext
36139cat >>conftest.$ac_ext <<_ACEOF
36140/* end confdefs.h. */
36141#include <pthread.h>
36142int
36143main ()
36144{
36145
36146 pthread_mutexattr_t attr;
36147 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
36148
36149 ;
36150 return 0;
36151}
36152_ACEOF
36153rm -f conftest.$ac_objext
36154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36155 (eval $ac_compile) 2>conftest.er1
a848cd7e 36156 ac_status=$?
ac1cb8d3
VS
36157 grep -v '^ *+' conftest.er1 >conftest.err
36158 rm -f conftest.er1
36159 cat conftest.err >&5
a848cd7e
SC
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } &&
6ebeb4c7 36162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36165 ac_status=$?
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; } &&
36168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174
36175 wx_cv_type_pthread_mutexattr_t=yes
36176
36177else
36178 echo "$as_me: failed program was:" >&5
36179sed 's/^/| /' conftest.$ac_ext >&5
36180
36181
36182 wx_cv_type_pthread_mutexattr_t=no
36183
36184
36185fi
ac1cb8d3 36186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36187
36188fi
36189echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
36190echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
36191
36192 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
36193 cat >>confdefs.h <<\_ACEOF
36194#define HAVE_PTHREAD_MUTEXATTR_T 1
36195_ACEOF
36196
36197 else
36198 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
36199echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
36200if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
36201 echo $ECHO_N "(cached) $ECHO_C" >&6
36202else
36203
36204 cat >conftest.$ac_ext <<_ACEOF
36205/* confdefs.h. */
36206_ACEOF
36207cat confdefs.h >>conftest.$ac_ext
36208cat >>conftest.$ac_ext <<_ACEOF
36209/* end confdefs.h. */
36210#include <pthread.h>
36211int
36212main ()
36213{
36214
36215 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
36216
36217 ;
36218 return 0;
36219}
36220_ACEOF
36221rm -f conftest.$ac_objext
36222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36223 (eval $ac_compile) 2>conftest.er1
a848cd7e 36224 ac_status=$?
ac1cb8d3
VS
36225 grep -v '^ *+' conftest.er1 >conftest.err
36226 rm -f conftest.er1
36227 cat conftest.err >&5
a848cd7e
SC
36228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229 (exit $ac_status); } &&
6ebeb4c7 36230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232 (eval $ac_try) 2>&5
36233 ac_status=$?
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); }; } &&
36236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238 (eval $ac_try) 2>&5
36239 ac_status=$?
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); }; }; then
36242
36243 wx_cv_type_pthread_rec_mutex_init=yes
36244
36245else
36246 echo "$as_me: failed program was:" >&5
36247sed 's/^/| /' conftest.$ac_ext >&5
36248
36249
36250 wx_cv_type_pthread_rec_mutex_init=no
36251
36252
36253fi
ac1cb8d3 36254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36255
36256fi
36257echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36258echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36259 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36260 cat >>confdefs.h <<\_ACEOF
36261#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36262_ACEOF
36263
36264 else
36265 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36266echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36267 fi
36268 fi
36269 fi
36270
36271else
36272 if test "$wxUSE_THREADS" = "yes" ; then
36273 case "${host}" in
36274 *-*-mingw32* )
36275 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36276echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36277if test "${wx_cv_cflags_mthread+set}" = set; then
36278 echo $ECHO_N "(cached) $ECHO_C" >&6
36279else
36280
36281 CFLAGS_OLD="$CFLAGS"
36282 CFLAGS="$CFLAGS -mthreads"
36283 cat >conftest.$ac_ext <<_ACEOF
36284/* confdefs.h. */
36285_ACEOF
36286cat confdefs.h >>conftest.$ac_ext
36287cat >>conftest.$ac_ext <<_ACEOF
36288/* end confdefs.h. */
36289
36290int
36291main ()
36292{
36293
36294 ;
36295 return 0;
36296}
36297_ACEOF
36298rm -f conftest.$ac_objext
36299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36300 (eval $ac_compile) 2>conftest.er1
a848cd7e 36301 ac_status=$?
ac1cb8d3
VS
36302 grep -v '^ *+' conftest.er1 >conftest.err
36303 rm -f conftest.er1
36304 cat conftest.err >&5
a848cd7e
SC
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); } &&
6ebeb4c7 36307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36310 ac_status=$?
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; } &&
36313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; }; then
36319 wx_cv_cflags_mthread=yes
36320else
36321 echo "$as_me: failed program was:" >&5
36322sed 's/^/| /' conftest.$ac_ext >&5
36323
36324wx_cv_cflags_mthread=no
36325
36326fi
ac1cb8d3 36327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36328
36329
36330fi
36331echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36332echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36333
36334 if test "$wx_cv_cflags_mthread" = "yes"; then
36335 CXXFLAGS="$CXXFLAGS -mthreads"
36336 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36337 LDFLAGS="$LDFLAGS -mthreads"
36338 else
36339 CFLAGS="$CFLAGS_OLD"
36340 fi
36341 ;;
36342 *-pc-os2*emx )
36343 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36344 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36345 LDFLAGS="$LDFLAGS -Zmt"
36346 ;;
36347 esac
36348 fi
36349fi
36350
36351if test "$wxUSE_THREADS" = "yes"; then
36352 cat >>confdefs.h <<\_ACEOF
36353#define wxUSE_THREADS 1
36354_ACEOF
36355
36356
36357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36358else
36359 if test "$ac_cv_func_strtok_r" = "yes"; then
36360 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36361echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36362 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36363 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36364 echo "$as_me:$LINENO: result: yes" >&5
36365echo "${ECHO_T}yes" >&6
36366 else
36367 echo "$as_me:$LINENO: result: no" >&5
36368echo "${ECHO_T}no" >&6
36369 fi
36370 fi
36371fi
36372
36373if test "$WXGTK20" = 1 ; then
36374 cat >>confdefs.h <<_ACEOF
36375#define __WXGTK20__ $WXGTK20
36376_ACEOF
36377
36378 WXGTK12=1
36379fi
36380
36381if test "$WXGTK12" = 1 ; then
36382 cat >>confdefs.h <<_ACEOF
36383#define __WXGTK12__ $WXGTK12
36384_ACEOF
36385
36386fi
36387
36388if test "$WXGTK127" = 1 ; then
36389 cat >>confdefs.h <<_ACEOF
36390#define __WXGTK127__ $WXGTK127
36391_ACEOF
36392
36393fi
36394
36395if test "$WXGPE" = 1 ; then
36396 cat >>confdefs.h <<_ACEOF
36397#define __WXGPE__ $WXGPE
36398_ACEOF
36399
36400fi
36401
36402WXDEBUG=
36403
36404if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36405 WXDEBUG="-g"
36406 wxUSE_OPTIMISE=no
36407fi
36408
36409if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36410 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36411 if test "$GCC" = yes; then
36412 WXDEBUG="-ggdb"
36413 fi
a848cd7e
SC
36414fi
36415
36416if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36417 cat >>confdefs.h <<\_ACEOF
36418#define WXDEBUG 1
36419_ACEOF
36420
36421 WXDEBUG_DEFINE="-D__WXDEBUG__"
36422else
36423 if test "$wxUSE_GTK" = 1 ; then
36424 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36425 fi
36426fi
36427
36428if test "$wxUSE_MEM_TRACING" = "yes" ; then
36429 cat >>confdefs.h <<\_ACEOF
36430#define wxUSE_MEMORY_TRACING 1
36431_ACEOF
36432
36433 cat >>confdefs.h <<\_ACEOF
36434#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36435_ACEOF
36436
36437 cat >>confdefs.h <<\_ACEOF
36438#define wxUSE_DEBUG_NEW_ALWAYS 1
36439_ACEOF
36440
36441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36442fi
36443
36444if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36445 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36446fi
36447
36448PROFILE=
36449if test "$wxUSE_PROFILE" = "yes" ; then
36450 PROFILE=" -pg"
36451fi
36452
36453CODE_GEN_FLAGS=
36454CODE_GEN_FLAGS_CXX=
36455if test "$GCC" = "yes" ; then
36456 if test "$wxUSE_NO_RTTI" = "yes" ; then
36457 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36458 fi
36459 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36460 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36461 fi
36462 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36463 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36464 fi
36465
36466 case "${host}" in
36467 powerpc*-*-aix* )
36468 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36469 ;;
36470 *-hppa* )
36471 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36472 ;;
36473 esac
36474fi
36475
36476OPTIMISE=
36477if test "$wxUSE_OPTIMISE" = "no" ; then
36478 if test "$GCC" = yes ; then
36479 OPTIMISE="-O0"
36480 fi
36481else
36482 if test "$GCC" = yes ; then
36483 OPTIMISE="-O2"
36484
36485 case "${host}" in
36486 i586-*-*|i686-*-* )
36487 OPTIMISE="${OPTIMISE} "
36488 ;;
36489 esac
36490 else
36491 OPTIMISE="-O"
36492 fi
36493fi
36494
36495
36496if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36497 cat >>confdefs.h <<\_ACEOF
36498#define WXWIN_COMPATIBILITY_2_2 1
36499_ACEOF
36500
36501
36502 WXWIN_COMPATIBILITY_2_4="yes"
36503fi
36504
36505if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define WXWIN_COMPATIBILITY_2_4 1
36508_ACEOF
36509
36510fi
36511
36512
36513if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36514 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36515#define wxUSE_GUI 1
36516_ACEOF
36517
36518
370fd4c2 36519 fi
a848cd7e
SC
36520
36521
36522if test "$wxUSE_UNIX" = "yes"; then
36523 cat >>confdefs.h <<\_ACEOF
36524#define wxUSE_UNIX 1
36525_ACEOF
36526
36527fi
36528
36529
36530if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36531
36532 HAVE_DL_FUNCS=0
36533 HAVE_SHL_FUNCS=0
36534 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36535 if test "$USE_DARWIN" = 1; then
36536 HAVE_DL_FUNCS=1
47a7e797
MW
36537 elif test "$USE_DOS" = 1; then
36538 HAVE_DL_FUNCS=0
a848cd7e
SC
36539 else
36540
36541for ac_func in dlopen
36542do
36543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36544echo "$as_me:$LINENO: checking for $ac_func" >&5
36545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36546if eval "test \"\${$as_ac_var+set}\" = set"; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36548else
36549 cat >conftest.$ac_ext <<_ACEOF
36550/* confdefs.h. */
36551_ACEOF
36552cat confdefs.h >>conftest.$ac_ext
36553cat >>conftest.$ac_ext <<_ACEOF
36554/* end confdefs.h. */
ac1cb8d3
VS
36555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36557#define $ac_func innocuous_$ac_func
36558
a848cd7e
SC
36559/* System header to define __stub macros and hopefully few prototypes,
36560 which can conflict with char $ac_func (); below.
36561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36563
a848cd7e
SC
36564#ifdef __STDC__
36565# include <limits.h>
36566#else
36567# include <assert.h>
36568#endif
ac1cb8d3
VS
36569
36570#undef $ac_func
36571
a848cd7e
SC
36572/* Override any gcc2 internal prototype to avoid an error. */
36573#ifdef __cplusplus
36574extern "C"
36575{
36576#endif
36577/* We use char because int might match the return type of a gcc2
36578 builtin and then its argument prototype would still apply. */
36579char $ac_func ();
36580/* The GNU C library defines this for functions which it implements
36581 to always fail with ENOSYS. Some functions are actually named
36582 something starting with __ and the normal name is an alias. */
36583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36584choke me
36585#else
36586char (*f) () = $ac_func;
36587#endif
36588#ifdef __cplusplus
36589}
36590#endif
36591
36592int
36593main ()
36594{
36595return f != $ac_func;
36596 ;
36597 return 0;
36598}
36599_ACEOF
36600rm -f conftest.$ac_objext conftest$ac_exeext
36601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36602 (eval $ac_link) 2>conftest.er1
a848cd7e 36603 ac_status=$?
ac1cb8d3
VS
36604 grep -v '^ *+' conftest.er1 >conftest.err
36605 rm -f conftest.er1
36606 cat conftest.err >&5
a848cd7e
SC
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); } &&
6ebeb4c7 36609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36612 ac_status=$?
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; } &&
36615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36617 (eval $ac_try) 2>&5
36618 ac_status=$?
36619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); }; }; then
36621 eval "$as_ac_var=yes"
36622else
36623 echo "$as_me: failed program was:" >&5
36624sed 's/^/| /' conftest.$ac_ext >&5
36625
36626eval "$as_ac_var=no"
36627fi
ac1cb8d3
VS
36628rm -f conftest.err conftest.$ac_objext \
36629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36630fi
36631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36633if test `eval echo '${'$as_ac_var'}'` = yes; then
36634 cat >>confdefs.h <<_ACEOF
36635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36636_ACEOF
36637
36638 cat >>confdefs.h <<\_ACEOF
36639#define HAVE_DLOPEN 1
36640_ACEOF
36641
36642 HAVE_DL_FUNCS=1
36643
36644else
36645
36646 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36647echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36648if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36649 echo $ECHO_N "(cached) $ECHO_C" >&6
36650else
36651 ac_check_lib_save_LIBS=$LIBS
36652LIBS="-ldl $LIBS"
36653cat >conftest.$ac_ext <<_ACEOF
36654/* confdefs.h. */
36655_ACEOF
36656cat confdefs.h >>conftest.$ac_ext
36657cat >>conftest.$ac_ext <<_ACEOF
36658/* end confdefs.h. */
36659
36660/* Override any gcc2 internal prototype to avoid an error. */
36661#ifdef __cplusplus
36662extern "C"
36663#endif
36664/* We use char because int might match the return type of a gcc2
36665 builtin and then its argument prototype would still apply. */
36666char dlopen ();
36667int
36668main ()
36669{
36670dlopen ();
36671 ;
36672 return 0;
36673}
36674_ACEOF
36675rm -f conftest.$ac_objext conftest$ac_exeext
36676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36677 (eval $ac_link) 2>conftest.er1
a848cd7e 36678 ac_status=$?
ac1cb8d3
VS
36679 grep -v '^ *+' conftest.er1 >conftest.err
36680 rm -f conftest.er1
36681 cat conftest.err >&5
a848cd7e
SC
36682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683 (exit $ac_status); } &&
6ebeb4c7 36684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36686 (eval $ac_try) 2>&5
36687 ac_status=$?
36688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); }; } &&
36690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692 (eval $ac_try) 2>&5
36693 ac_status=$?
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); }; }; then
36696 ac_cv_lib_dl_dlopen=yes
36697else
36698 echo "$as_me: failed program was:" >&5
36699sed 's/^/| /' conftest.$ac_ext >&5
36700
36701ac_cv_lib_dl_dlopen=no
36702fi
ac1cb8d3
VS
36703rm -f conftest.err conftest.$ac_objext \
36704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36705LIBS=$ac_check_lib_save_LIBS
36706fi
36707echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36708echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36709if test $ac_cv_lib_dl_dlopen = yes; then
36710
36711 cat >>confdefs.h <<\_ACEOF
36712#define HAVE_DLOPEN 1
36713_ACEOF
36714
36715 HAVE_DL_FUNCS=1
36716 DL_LINK=" -ldl$DL_LINK"
36717
36718else
36719
36720
36721for ac_func in shl_load
36722do
36723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36724echo "$as_me:$LINENO: checking for $ac_func" >&5
36725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36726if eval "test \"\${$as_ac_var+set}\" = set"; then
36727 echo $ECHO_N "(cached) $ECHO_C" >&6
36728else
36729 cat >conftest.$ac_ext <<_ACEOF
36730/* confdefs.h. */
36731_ACEOF
36732cat confdefs.h >>conftest.$ac_ext
36733cat >>conftest.$ac_ext <<_ACEOF
36734/* end confdefs.h. */
ac1cb8d3
VS
36735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36737#define $ac_func innocuous_$ac_func
36738
a848cd7e
SC
36739/* System header to define __stub macros and hopefully few prototypes,
36740 which can conflict with char $ac_func (); below.
36741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36742 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36743
a848cd7e
SC
36744#ifdef __STDC__
36745# include <limits.h>
36746#else
36747# include <assert.h>
36748#endif
ac1cb8d3
VS
36749
36750#undef $ac_func
36751
a848cd7e
SC
36752/* Override any gcc2 internal prototype to avoid an error. */
36753#ifdef __cplusplus
36754extern "C"
36755{
36756#endif
36757/* We use char because int might match the return type of a gcc2
36758 builtin and then its argument prototype would still apply. */
36759char $ac_func ();
36760/* The GNU C library defines this for functions which it implements
36761 to always fail with ENOSYS. Some functions are actually named
36762 something starting with __ and the normal name is an alias. */
36763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36764choke me
36765#else
36766char (*f) () = $ac_func;
36767#endif
36768#ifdef __cplusplus
36769}
36770#endif
36771
36772int
36773main ()
36774{
36775return f != $ac_func;
36776 ;
36777 return 0;
36778}
36779_ACEOF
36780rm -f conftest.$ac_objext conftest$ac_exeext
36781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36782 (eval $ac_link) 2>conftest.er1
a848cd7e 36783 ac_status=$?
ac1cb8d3
VS
36784 grep -v '^ *+' conftest.er1 >conftest.err
36785 rm -f conftest.er1
36786 cat conftest.err >&5
a848cd7e
SC
36787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); } &&
6ebeb4c7 36789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36791 (eval $ac_try) 2>&5
36792 ac_status=$?
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); }; } &&
36795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797 (eval $ac_try) 2>&5
36798 ac_status=$?
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); }; }; then
36801 eval "$as_ac_var=yes"
36802else
36803 echo "$as_me: failed program was:" >&5
36804sed 's/^/| /' conftest.$ac_ext >&5
36805
36806eval "$as_ac_var=no"
36807fi
ac1cb8d3
VS
36808rm -f conftest.err conftest.$ac_objext \
36809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36810fi
36811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36813if test `eval echo '${'$as_ac_var'}'` = yes; then
36814 cat >>confdefs.h <<_ACEOF
36815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36816_ACEOF
36817
36818 cat >>confdefs.h <<\_ACEOF
36819#define HAVE_SHL_LOAD 1
36820_ACEOF
36821
36822 HAVE_SHL_FUNCS=1
36823
36824else
36825
36826 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36827echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36828if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36829 echo $ECHO_N "(cached) $ECHO_C" >&6
36830else
36831 ac_check_lib_save_LIBS=$LIBS
36832LIBS="-lshl_load $LIBS"
36833cat >conftest.$ac_ext <<_ACEOF
36834/* confdefs.h. */
36835_ACEOF
36836cat confdefs.h >>conftest.$ac_ext
36837cat >>conftest.$ac_ext <<_ACEOF
36838/* end confdefs.h. */
36839
36840/* Override any gcc2 internal prototype to avoid an error. */
36841#ifdef __cplusplus
36842extern "C"
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 dld ();
36847int
36848main ()
36849{
36850dld ();
36851 ;
36852 return 0;
36853}
36854_ACEOF
36855rm -f conftest.$ac_objext conftest$ac_exeext
36856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36857 (eval $ac_link) 2>conftest.er1
a848cd7e 36858 ac_status=$?
ac1cb8d3
VS
36859 grep -v '^ *+' conftest.er1 >conftest.err
36860 rm -f conftest.er1
36861 cat conftest.err >&5
a848cd7e
SC
36862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863 (exit $ac_status); } &&
6ebeb4c7 36864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36866 (eval $ac_try) 2>&5
36867 ac_status=$?
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); }; } &&
36870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872 (eval $ac_try) 2>&5
36873 ac_status=$?
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); }; }; then
36876 ac_cv_lib_shl_load_dld=yes
36877else
36878 echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
36881ac_cv_lib_shl_load_dld=no
36882fi
ac1cb8d3
VS
36883rm -f conftest.err conftest.$ac_objext \
36884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36885LIBS=$ac_check_lib_save_LIBS
36886fi
36887echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36888echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36889if test $ac_cv_lib_shl_load_dld = yes; then
36890
36891 HAVE_SHL_FUNCS=1
36892 DL_LINK=" -ldld$DL_LINK"
36893
36894fi
36895
36896
36897fi
36898done
36899
36900
36901fi
36902
36903
36904fi
36905done
36906
36907
36908 if test "$HAVE_DL_FUNCS" = 1; then
36909
36910for ac_func in dlerror
36911do
36912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36913echo "$as_me:$LINENO: checking for $ac_func" >&5
36914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36915if eval "test \"\${$as_ac_var+set}\" = set"; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36917else
36918 cat >conftest.$ac_ext <<_ACEOF
36919/* confdefs.h. */
36920_ACEOF
36921cat confdefs.h >>conftest.$ac_ext
36922cat >>conftest.$ac_ext <<_ACEOF
36923/* end confdefs.h. */
ac1cb8d3
VS
36924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36926#define $ac_func innocuous_$ac_func
36927
a848cd7e
SC
36928/* System header to define __stub macros and hopefully few prototypes,
36929 which can conflict with char $ac_func (); below.
36930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36931 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36932
a848cd7e
SC
36933#ifdef __STDC__
36934# include <limits.h>
36935#else
36936# include <assert.h>
36937#endif
ac1cb8d3
VS
36938
36939#undef $ac_func
36940
a848cd7e
SC
36941/* Override any gcc2 internal prototype to avoid an error. */
36942#ifdef __cplusplus
36943extern "C"
36944{
36945#endif
36946/* We use char because int might match the return type of a gcc2
36947 builtin and then its argument prototype would still apply. */
36948char $ac_func ();
36949/* The GNU C library defines this for functions which it implements
36950 to always fail with ENOSYS. Some functions are actually named
36951 something starting with __ and the normal name is an alias. */
36952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36953choke me
36954#else
36955char (*f) () = $ac_func;
36956#endif
36957#ifdef __cplusplus
36958}
36959#endif
36960
36961int
36962main ()
36963{
36964return f != $ac_func;
36965 ;
36966 return 0;
36967}
36968_ACEOF
36969rm -f conftest.$ac_objext conftest$ac_exeext
36970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36971 (eval $ac_link) 2>conftest.er1
a848cd7e 36972 ac_status=$?
ac1cb8d3
VS
36973 grep -v '^ *+' conftest.er1 >conftest.err
36974 rm -f conftest.er1
36975 cat conftest.err >&5
a848cd7e
SC
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); } &&
6ebeb4c7 36978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980 (eval $ac_try) 2>&5
36981 ac_status=$?
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); }; } &&
36984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36986 (eval $ac_try) 2>&5
36987 ac_status=$?
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); }; }; then
36990 eval "$as_ac_var=yes"
36991else
36992 echo "$as_me: failed program was:" >&5
36993sed 's/^/| /' conftest.$ac_ext >&5
36994
36995eval "$as_ac_var=no"
36996fi
ac1cb8d3
VS
36997rm -f conftest.err conftest.$ac_objext \
36998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36999fi
37000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37002if test `eval echo '${'$as_ac_var'}'` = yes; then
37003 cat >>confdefs.h <<_ACEOF
37004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37005_ACEOF
37006 cat >>confdefs.h <<\_ACEOF
37007#define HAVE_DLERROR 1
37008_ACEOF
37009
37010else
37011
37012 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37013echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37014if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37015 echo $ECHO_N "(cached) $ECHO_C" >&6
37016else
37017 ac_check_lib_save_LIBS=$LIBS
37018LIBS="-ldl $LIBS"
37019cat >conftest.$ac_ext <<_ACEOF
37020/* confdefs.h. */
37021_ACEOF
37022cat confdefs.h >>conftest.$ac_ext
37023cat >>conftest.$ac_ext <<_ACEOF
37024/* end confdefs.h. */
37025
37026/* Override any gcc2 internal prototype to avoid an error. */
37027#ifdef __cplusplus
37028extern "C"
37029#endif
37030/* We use char because int might match the return type of a gcc2
37031 builtin and then its argument prototype would still apply. */
37032char dlerror ();
37033int
37034main ()
37035{
37036dlerror ();
37037 ;
37038 return 0;
37039}
37040_ACEOF
37041rm -f conftest.$ac_objext conftest$ac_exeext
37042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37043 (eval $ac_link) 2>conftest.er1
a848cd7e 37044 ac_status=$?
ac1cb8d3
VS
37045 grep -v '^ *+' conftest.er1 >conftest.err
37046 rm -f conftest.er1
37047 cat conftest.err >&5
a848cd7e
SC
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); } &&
6ebeb4c7 37050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37052 (eval $ac_try) 2>&5
37053 ac_status=$?
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); }; } &&
37056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058 (eval $ac_try) 2>&5
37059 ac_status=$?
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); }; }; then
37062 ac_cv_lib_dl_dlerror=yes
37063else
37064 echo "$as_me: failed program was:" >&5
37065sed 's/^/| /' conftest.$ac_ext >&5
37066
37067ac_cv_lib_dl_dlerror=no
37068fi
ac1cb8d3
VS
37069rm -f conftest.err conftest.$ac_objext \
37070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37071LIBS=$ac_check_lib_save_LIBS
37072fi
37073echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37074echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37075if test $ac_cv_lib_dl_dlerror = yes; then
37076 cat >>confdefs.h <<\_ACEOF
37077#define HAVE_DLERROR 1
37078_ACEOF
37079
37080fi
37081
37082
37083
37084fi
37085done
37086
37087 fi
37088 fi
37089
37090 if test "$HAVE_DL_FUNCS" = 0; then
37091 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37092 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37093 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37094echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37095 wxUSE_DYNAMIC_LOADER=no
37096 wxUSE_DYNLIB_CLASS=no
37097 else
37098 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37099echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37100 fi
37101 fi
37102 fi
37103 fi
37104fi
37105
37106if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
37107 cat >>confdefs.h <<\_ACEOF
37108#define wxUSE_DYNAMIC_LOADER 1
37109_ACEOF
37110
37111fi
37112if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37113 cat >>confdefs.h <<\_ACEOF
37114#define wxUSE_DYNLIB_CLASS 1
37115_ACEOF
37116
37117fi
37118
37119
37120
37121if test "$wxUSE_PLUGINS" = "yes" ; then
37122 if test "$wxUSE_SHARED" = "no" ; then
37123 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
37124echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
37125 wxUSE_PLUGINS=no
37126 fi
37127 if test "$wxUSE_MONOLITHIC" = "yes" ; then
37128 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
37129echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
37130 wxUSE_PLUGINS=no
37131 fi
37132 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
37133 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
37134echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
37135 wxUSE_PLUGINS=no
37136 fi
37137 if test "$wxUSE_PLUGINS" = "yes" ; then
37138 cat >>confdefs.h <<\_ACEOF
37139#define wxUSE_PLUGINS 1
37140_ACEOF
37141
37142 fi
37143fi
37144
37145
37146if test "$wxUSE_STL" = "yes"; then
37147 cat >>confdefs.h <<\_ACEOF
37148#define wxUSE_STL 1
37149_ACEOF
37150
37151fi
37152
37153if test "$wxUSE_APPLE_IEEE" = "yes"; then
37154 cat >>confdefs.h <<\_ACEOF
37155#define wxUSE_APPLE_IEEE 1
37156_ACEOF
37157
37158fi
37159
37160if test "$wxUSE_TIMER" = "yes"; then
37161 cat >>confdefs.h <<\_ACEOF
37162#define wxUSE_TIMER 1
37163_ACEOF
37164
37165fi
37166
9c112555 37167if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37168
37169for ac_header in sys/soundcard.h
37170do
37171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37172if eval "test \"\${$as_ac_Header+set}\" = set"; then
37173 echo "$as_me:$LINENO: checking for $ac_header" >&5
37174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37175if eval "test \"\${$as_ac_Header+set}\" = set"; then
37176 echo $ECHO_N "(cached) $ECHO_C" >&6
37177fi
37178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37180else
37181 # Is the header compilable?
37182echo "$as_me:$LINENO: checking $ac_header usability" >&5
37183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37184cat >conftest.$ac_ext <<_ACEOF
37185/* confdefs.h. */
37186_ACEOF
37187cat confdefs.h >>conftest.$ac_ext
37188cat >>conftest.$ac_ext <<_ACEOF
37189/* end confdefs.h. */
37190$ac_includes_default
37191#include <$ac_header>
37192_ACEOF
37193rm -f conftest.$ac_objext
37194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37195 (eval $ac_compile) 2>conftest.er1
a848cd7e 37196 ac_status=$?
ac1cb8d3
VS
37197 grep -v '^ *+' conftest.er1 >conftest.err
37198 rm -f conftest.er1
37199 cat conftest.err >&5
a848cd7e
SC
37200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201 (exit $ac_status); } &&
6ebeb4c7 37202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204 (eval $ac_try) 2>&5
37205 ac_status=$?
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); }; } &&
37208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37211 ac_status=$?
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; }; then
37214 ac_header_compiler=yes
37215else
37216 echo "$as_me: failed program was:" >&5
37217sed 's/^/| /' conftest.$ac_ext >&5
37218
37219ac_header_compiler=no
37220fi
ac1cb8d3 37221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37223echo "${ECHO_T}$ac_header_compiler" >&6
37224
37225# Is the header present?
37226echo "$as_me:$LINENO: checking $ac_header presence" >&5
37227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37228cat >conftest.$ac_ext <<_ACEOF
37229/* confdefs.h. */
37230_ACEOF
37231cat confdefs.h >>conftest.$ac_ext
37232cat >>conftest.$ac_ext <<_ACEOF
37233/* end confdefs.h. */
37234#include <$ac_header>
37235_ACEOF
37236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37238 ac_status=$?
37239 grep -v '^ *+' conftest.er1 >conftest.err
37240 rm -f conftest.er1
37241 cat conftest.err >&5
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); } >/dev/null; then
37244 if test -s conftest.err; then
37245 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37247 else
37248 ac_cpp_err=
37249 fi
37250else
37251 ac_cpp_err=yes
37252fi
37253if test -z "$ac_cpp_err"; then
37254 ac_header_preproc=yes
37255else
37256 echo "$as_me: failed program was:" >&5
37257sed 's/^/| /' conftest.$ac_ext >&5
37258
37259 ac_header_preproc=no
37260fi
37261rm -f conftest.err conftest.$ac_ext
37262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37263echo "${ECHO_T}$ac_header_preproc" >&6
37264
37265# So? What about this header?
ac1cb8d3
VS
37266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37267 yes:no: )
a848cd7e
SC
37268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37272 ac_header_preproc=yes
a848cd7e 37273 ;;
ac1cb8d3 37274 no:yes:* )
a848cd7e
SC
37275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37282echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37287 (
37288 cat <<\_ASBOX
ac1cb8d3
VS
37289## ----------------------------------------- ##
37290## Report this to wx-dev@lists.wxwidgets.org ##
37291## ----------------------------------------- ##
a848cd7e
SC
37292_ASBOX
37293 ) |
37294 sed "s/^/$as_me: WARNING: /" >&2
37295 ;;
37296esac
37297echo "$as_me:$LINENO: checking for $ac_header" >&5
37298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37299if eval "test \"\${$as_ac_Header+set}\" = set"; then
37300 echo $ECHO_N "(cached) $ECHO_C" >&6
37301else
ac1cb8d3 37302 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37303fi
37304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37306
37307fi
37308if test `eval echo '${'$as_ac_Header'}'` = yes; then
37309 cat >>confdefs.h <<_ACEOF
37310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37311_ACEOF
37312
9c112555
MW
37313else
37314 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
37315fi
37316
37317done
37318
9c112555
MW
37319fi
37320WITH_PLUGIN_SDL=0
37321if test "$wxUSE_SOUND" = "yes"; then
37322 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37323 if test "$wxUSE_LIBSDL" != "no"; then
37324
37325# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37326if test "${with_sdl_prefix+set}" = set; then
37327 withval="$with_sdl_prefix"
37328 sdl_prefix="$withval"
37329else
37330 sdl_prefix=""
37331fi;
37332
37333# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37334if test "${with_sdl_exec_prefix+set}" = set; then
37335 withval="$with_sdl_exec_prefix"
37336 sdl_exec_prefix="$withval"
37337else
37338 sdl_exec_prefix=""
37339fi;
37340# Check whether --enable-sdltest or --disable-sdltest was given.
37341if test "${enable_sdltest+set}" = set; then
37342 enableval="$enable_sdltest"
37343
37344else
37345 enable_sdltest=yes
37346fi;
37347
37348 if test x$sdl_exec_prefix != x ; then
37349 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37350 if test x${SDL_CONFIG+set} != xset ; then
37351 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37352 fi
37353 fi
37354 if test x$sdl_prefix != x ; then
37355 sdl_args="$sdl_args --prefix=$sdl_prefix"
37356 if test x${SDL_CONFIG+set} != xset ; then
37357 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37358 fi
37359 fi
37360
37361
37362 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37363 # Extract the first word of "sdl-config", so it can be a program name with args.
37364set dummy sdl-config; ac_word=$2
37365echo "$as_me:$LINENO: checking for $ac_word" >&5
37366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37367if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37368 echo $ECHO_N "(cached) $ECHO_C" >&6
37369else
37370 case $SDL_CONFIG in
37371 [\\/]* | ?:[\\/]*)
37372 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37373 ;;
37374 *)
37375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37376for as_dir in $PATH
37377do
37378 IFS=$as_save_IFS
37379 test -z "$as_dir" && as_dir=.
37380 for ac_exec_ext in '' $ac_executable_extensions; do
37381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37382 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37384 break 2
37385 fi
37386done
37387done
37388
37389 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37390 ;;
37391esac
37392fi
37393SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37394
37395if test -n "$SDL_CONFIG"; then
37396 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37397echo "${ECHO_T}$SDL_CONFIG" >&6
37398else
37399 echo "$as_me:$LINENO: result: no" >&5
37400echo "${ECHO_T}no" >&6
37401fi
37402
37403 min_sdl_version=1.2.0
37404 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37405echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37406 no_sdl=""
37407 if test "$SDL_CONFIG" = "no" ; then
37408 no_sdl=yes
37409 else
37410 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37411 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37412
37413 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37414 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37415 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37416 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37417 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37418 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37419 if test "x$enable_sdltest" = "xyes" ; then
37420 ac_save_CFLAGS="$CFLAGS"
94acd38e 37421 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37422 ac_save_LIBS="$LIBS"
37423 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37424 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37425 LIBS="$LIBS $SDL_LIBS"
37426 rm -f conf.sdltest
37427 if test "$cross_compiling" = yes; then
37428 echo $ac_n "cross compiling; assumed OK... $ac_c"
37429else
37430 cat >conftest.$ac_ext <<_ACEOF
37431/* confdefs.h. */
37432_ACEOF
37433cat confdefs.h >>conftest.$ac_ext
37434cat >>conftest.$ac_ext <<_ACEOF
37435/* end confdefs.h. */
37436
37437#include <stdio.h>
37438#include <stdlib.h>
37439#include <string.h>
37440#include "SDL.h"
37441
37442char*
37443my_strdup (char *str)
37444{
37445 char *new_str;
37446
37447 if (str)
37448 {
37449 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37450 strcpy (new_str, str);
37451 }
37452 else
37453 new_str = NULL;
37454
37455 return new_str;
37456}
37457
37458int main (int argc, char *argv[])
37459{
37460 int major, minor, micro;
37461 char *tmp_version;
37462
37463 /* This hangs on some systems (?)
37464 system ("touch conf.sdltest");
37465 */
37466 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37467
37468 /* HP/UX 9 (%@#!) writes to sscanf strings */
37469 tmp_version = my_strdup("$min_sdl_version");
37470 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37471 printf("%s, bad version string\n", "$min_sdl_version");
37472 exit(1);
37473 }
37474
37475 if (($sdl_major_version > major) ||
37476 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37477 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37478 {
37479 return 0;
37480 }
37481 else
37482 {
37483 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37484 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37485 printf("*** best to upgrade to the required version.\n");
37486 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37487 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37488 printf("*** config.cache before re-running configure\n");
37489 return 1;
37490 }
37491}
37492
37493
37494_ACEOF
37495rm -f conftest$ac_exeext
37496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37497 (eval $ac_link) 2>&5
37498 ac_status=$?
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502 (eval $ac_try) 2>&5
37503 ac_status=$?
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; }; then
37506 :
37507else
37508 echo "$as_me: program exited with status $ac_status" >&5
37509echo "$as_me: failed program was:" >&5
37510sed 's/^/| /' conftest.$ac_ext >&5
37511
37512( exit $ac_status )
37513no_sdl=yes
37514fi
ac1cb8d3 37515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37516fi
37517 CFLAGS="$ac_save_CFLAGS"
94acd38e 37518 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37519 LIBS="$ac_save_LIBS"
37520 fi
37521 fi
37522 if test "x$no_sdl" = x ; then
37523 echo "$as_me:$LINENO: result: yes" >&5
37524echo "${ECHO_T}yes" >&6
37525
37526 EXTRALIBS_SDL="$SDL_LIBS"
37527 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37528 cat >>confdefs.h <<\_ACEOF
37529#define wxUSE_LIBSDL 1
37530_ACEOF
37531
37532
37533 else
37534 echo "$as_me:$LINENO: result: no" >&5
37535echo "${ECHO_T}no" >&6
37536 if test "$SDL_CONFIG" = "no" ; then
37537 echo "*** The sdl-config script installed by SDL could not be found"
37538 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37539 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37540 echo "*** full path to sdl-config."
37541 else
37542 if test -f conf.sdltest ; then
37543 :
37544 else
37545 echo "*** Could not run SDL test program, checking why..."
37546 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37547 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37548 LIBS="$LIBS $SDL_LIBS"
37549 cat >conftest.$ac_ext <<_ACEOF
37550/* confdefs.h. */
37551_ACEOF
37552cat confdefs.h >>conftest.$ac_ext
37553cat >>conftest.$ac_ext <<_ACEOF
37554/* end confdefs.h. */
37555
37556#include <stdio.h>
37557#include "SDL.h"
37558
37559int main(int argc, char *argv[])
37560{ return 0; }
37561#undef main
37562#define main K_and_R_C_main
37563
37564int
37565main ()
37566{
37567 return 0;
37568 ;
37569 return 0;
37570}
37571_ACEOF
37572rm -f conftest.$ac_objext conftest$ac_exeext
37573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37574 (eval $ac_link) 2>conftest.er1
a848cd7e 37575 ac_status=$?
ac1cb8d3
VS
37576 grep -v '^ *+' conftest.er1 >conftest.err
37577 rm -f conftest.er1
37578 cat conftest.err >&5
a848cd7e
SC
37579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580 (exit $ac_status); } &&
6ebeb4c7 37581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37583 (eval $ac_try) 2>&5
37584 ac_status=$?
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); }; } &&
37587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37590 ac_status=$?
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; }; then
37593 echo "*** The test program compiled, but did not run. This usually means"
37594 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37595 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37596 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37597 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37598 echo "*** is required on your system"
37599 echo "***"
37600 echo "*** If you have an old version installed, it is best to remove it, although"
37601 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37602else
37603 echo "$as_me: failed program was:" >&5
37604sed 's/^/| /' conftest.$ac_ext >&5
37605
37606 echo "*** The test program failed to compile or link. See the file config.log for the"
37607 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37608 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37609 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37610fi
ac1cb8d3
VS
37611rm -f conftest.err conftest.$ac_objext \
37612 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37613 CFLAGS="$ac_save_CFLAGS"
94acd38e 37614 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37615 LIBS="$ac_save_LIBS"
37616 fi
37617 fi
37618 SDL_CFLAGS=""
37619 SDL_LIBS=""
37620 wxUSE_LIBSDL="no"
37621 fi
37622
37623
37624 rm -f conf.sdltest
37625
37626 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37627 WITH_PLUGIN_SDL=1
37628 fi
37629 fi
37630 fi
37631
37632 cat >>confdefs.h <<\_ACEOF
37633#define wxUSE_SOUND 1
37634_ACEOF
37635
37636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37637fi
37638
d1c38808
VZ
37639if test "$WXGTK20" = 1; then
37640 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37641 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37642
37643
37644 succeeded=no
37645
37646 if test -z "$PKG_CONFIG"; then
37647 # Extract the first word of "pkg-config", so it can be a program name with args.
37648set dummy pkg-config; ac_word=$2
37649echo "$as_me:$LINENO: checking for $ac_word" >&5
37650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37651if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37652 echo $ECHO_N "(cached) $ECHO_C" >&6
37653else
37654 case $PKG_CONFIG in
37655 [\\/]* | ?:[\\/]*)
37656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37657 ;;
37658 *)
37659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37660for as_dir in $PATH
37661do
37662 IFS=$as_save_IFS
37663 test -z "$as_dir" && as_dir=.
37664 for ac_exec_ext in '' $ac_executable_extensions; do
37665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37668 break 2
37669 fi
37670done
37671done
37672
37673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37674 ;;
37675esac
37676fi
37677PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37678
37679if test -n "$PKG_CONFIG"; then
37680 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37681echo "${ECHO_T}$PKG_CONFIG" >&6
37682else
37683 echo "$as_me:$LINENO: result: no" >&5
37684echo "${ECHO_T}no" >&6
37685fi
37686
37687 fi
37688
37689 if test "$PKG_CONFIG" = "no" ; then
37690 echo "*** The pkg-config script could not be found. Make sure it is"
37691 echo "*** in your path, or set the PKG_CONFIG environment variable"
37692 echo "*** to the full path to pkg-config."
37693 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37694 else
37695 PKG_CONFIG_MIN_VERSION=0.9.0
37696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37697 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37698echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37699
ffa762ff 37700 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37701 echo "$as_me:$LINENO: result: yes" >&5
37702echo "${ECHO_T}yes" >&6
37703 succeeded=yes
37704
37705 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37706echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37707 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37708 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37709echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37710
37711 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37712echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37713 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37714 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37715echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37716 else
37717 LIBGNOMEPRINTUI_CFLAGS=""
37718 LIBGNOMEPRINTUI_LIBS=""
37719 ## If we have a custom action on failure, don't print errors, but
37720 ## do set a variable so people can do so.
ffa762ff 37721 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37722
37723 fi
37724
37725
37726
37727 else
37728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37730 fi
37731 fi
37732
37733 if test $succeeded = yes; then
37734
d1c38808
VZ
37735 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37736 cat >>confdefs.h <<\_ACEOF
37737#define wxUSE_LIBGNOMEPRINT 1
37738_ACEOF
37739
37740
37741 else
37742
37743 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37744echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37745 wxUSE_LIBGNOMEPRINT="no"
37746
37747
37748 fi
37749
37750 fi
37751 fi
37752fi
37753
37754
a848cd7e
SC
37755if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37756 cat >>confdefs.h <<\_ACEOF
37757#define wxUSE_CMDLINE_PARSER 1
37758_ACEOF
37759
37760fi
37761
37762if test "$wxUSE_STOPWATCH" = "yes"; then
37763 cat >>confdefs.h <<\_ACEOF
37764#define wxUSE_STOPWATCH 1
37765_ACEOF
37766
37767fi
37768
37769if test "$wxUSE_DATETIME" = "yes"; then
37770 cat >>confdefs.h <<\_ACEOF
37771#define wxUSE_DATETIME 1
37772_ACEOF
37773
37774fi
37775
37776if test "$wxUSE_FILE" = "yes"; then
37777 cat >>confdefs.h <<\_ACEOF
37778#define wxUSE_FILE 1
37779_ACEOF
37780
37781fi
37782
37783if test "$wxUSE_FFILE" = "yes"; then
37784 cat >>confdefs.h <<\_ACEOF
37785#define wxUSE_FFILE 1
37786_ACEOF
37787
37788fi
37789
37790if test "$wxUSE_FILESYSTEM" = "yes"; then
37791 cat >>confdefs.h <<\_ACEOF
37792#define wxUSE_FILESYSTEM 1
37793_ACEOF
37794
37795fi
37796
37797if test "$wxUSE_FS_ZIP" = "yes"; then
37798 cat >>confdefs.h <<\_ACEOF
37799#define wxUSE_FS_ZIP 1
37800_ACEOF
37801
37802fi
37803
9e8e867f 37804if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37805 cat >>confdefs.h <<\_ACEOF
9e8e867f 37806#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37807_ACEOF
37808
37809fi
37810
37811if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37812 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37813 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37814echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37815 elif test "$wxUSE_ZLIB" = "no"; then
37816 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37817echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37818 else
37819 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37820#define wxUSE_ZIPSTREAM 1
37821_ACEOF
37822
81f90336 37823 fi
a848cd7e
SC
37824fi
37825
a848cd7e 37826if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37827 if test "$USE_UNIX" != 1; then
37828 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37829echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37830 wxUSE_ON_FATAL_EXCEPTION=no
37831 else
37832 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37833#define wxUSE_ON_FATAL_EXCEPTION 1
37834_ACEOF
37835
18228ab4 37836 fi
a848cd7e
SC
37837fi
37838
eaff0f0d
VZ
37839if test "$wxUSE_STACKWALKER" = "yes"; then
37840 cat >>confdefs.h <<\_ACEOF
37841#define wxUSE_STACKWALKER 1
37842_ACEOF
37843
37844fi
37845
36b6448c 37846if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37847 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37848 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37849echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37850 wxUSE_DEBUGREPORT=no
37851 else
37852 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37853#define wxUSE_DEBUGREPORT 1
37854_ACEOF
37855
21dfc162
MW
37856 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37858 fi
dfe0c803 37859 fi
36b6448c
VZ
37860fi
37861
a848cd7e
SC
37862if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37863 cat >>confdefs.h <<\_ACEOF
37864#define wxUSE_SNGLINST_CHECKER 1
37865_ACEOF
37866
37867fi
37868
37869if test "$wxUSE_BUSYINFO" = "yes"; then
37870 cat >>confdefs.h <<\_ACEOF
37871#define wxUSE_BUSYINFO 1
37872_ACEOF
37873
37874fi
37875
37876if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37877 cat >>confdefs.h <<\_ACEOF
37878#define wxUSE_STD_IOSTREAM 1
37879_ACEOF
37880
37881fi
37882
59746b65
MW
37883if test "$wxUSE_STD_STRING" = "yes"; then
37884 cat >>confdefs.h <<\_ACEOF
37885#define wxUSE_STD_STRING 1
37886_ACEOF
37887
37888fi
37889
07158944
VZ
37890if test "$wxUSE_STDPATHS" = "yes"; then
37891 cat >>confdefs.h <<\_ACEOF
37892#define wxUSE_STDPATHS 1
37893_ACEOF
37894
37895fi
37896
a848cd7e
SC
37897if test "$wxUSE_TEXTBUFFER" = "yes"; then
37898 cat >>confdefs.h <<\_ACEOF
37899#define wxUSE_TEXTBUFFER 1
37900_ACEOF
37901
37902fi
37903
37904if test "$wxUSE_TEXTFILE" = "yes"; then
37905 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37906 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37907echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37908 else
37909 cat >>confdefs.h <<\_ACEOF
37910#define wxUSE_TEXTFILE 1
37911_ACEOF
37912
37913 fi
37914fi
37915
37916if test "$wxUSE_CONFIG" = "yes" ; then
37917 if test "$wxUSE_TEXTFILE" != "yes"; then
37918 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37919echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37920 else
37921 cat >>confdefs.h <<\_ACEOF
37922#define wxUSE_CONFIG 1
89be85c2
VS
37923_ACEOF
37924
37925 cat >>confdefs.h <<\_ACEOF
37926#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37927_ACEOF
37928
37929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37930 fi
37931fi
37932
37933if test "$wxUSE_INTL" = "yes" ; then
37934 if test "$wxUSE_FILE" != "yes"; then
37935 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37936echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37937 else
37938 cat >>confdefs.h <<\_ACEOF
37939#define wxUSE_INTL 1
37940_ACEOF
37941
37942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37943 GUIDIST="$GUIDIST INTL_DIST"
37944 fi
37945fi
37946
37947if test "$wxUSE_LOG" = "yes"; then
37948 cat >>confdefs.h <<\_ACEOF
37949#define wxUSE_LOG 1
37950_ACEOF
37951
37952
37953 if test "$wxUSE_LOGGUI" = "yes"; then
37954 cat >>confdefs.h <<\_ACEOF
37955#define wxUSE_LOGGUI 1
37956_ACEOF
37957
37958 fi
37959
37960 if test "$wxUSE_LOGWINDOW" = "yes"; then
37961 cat >>confdefs.h <<\_ACEOF
37962#define wxUSE_LOGWINDOW 1
37963_ACEOF
37964
37965 fi
37966
37967 if test "$wxUSE_LOGDIALOG" = "yes"; then
37968 cat >>confdefs.h <<\_ACEOF
37969#define wxUSE_LOG_DIALOG 1
37970_ACEOF
37971
37972 fi
0b78747f
MW
37973
37974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37975fi
37976
37977if test "$wxUSE_LONGLONG" = "yes"; then
37978 cat >>confdefs.h <<\_ACEOF
37979#define wxUSE_LONGLONG 1
37980_ACEOF
37981
37982fi
37983
37984if test "$wxUSE_GEOMETRY" = "yes"; then
37985 cat >>confdefs.h <<\_ACEOF
37986#define wxUSE_GEOMETRY 1
37987_ACEOF
37988
37989fi
37990
a848cd7e
SC
37991if test "$wxUSE_STREAMS" = "yes" ; then
37992 cat >>confdefs.h <<\_ACEOF
37993#define wxUSE_STREAMS 1
37994_ACEOF
37995
37996fi
37997
37998
37999if test "$wxUSE_DATETIME" = "yes"; then
38000
38001for ac_func in strptime
38002do
38003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38004echo "$as_me:$LINENO: checking for $ac_func" >&5
38005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38006if eval "test \"\${$as_ac_var+set}\" = set"; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38008else
38009 cat >conftest.$ac_ext <<_ACEOF
38010/* confdefs.h. */
38011_ACEOF
38012cat confdefs.h >>conftest.$ac_ext
38013cat >>conftest.$ac_ext <<_ACEOF
38014/* end confdefs.h. */
ac1cb8d3
VS
38015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38017#define $ac_func innocuous_$ac_func
38018
a848cd7e
SC
38019/* System header to define __stub macros and hopefully few prototypes,
38020 which can conflict with char $ac_func (); below.
38021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38022 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38023
a848cd7e
SC
38024#ifdef __STDC__
38025# include <limits.h>
38026#else
38027# include <assert.h>
38028#endif
ac1cb8d3
VS
38029
38030#undef $ac_func
38031
a848cd7e
SC
38032/* Override any gcc2 internal prototype to avoid an error. */
38033#ifdef __cplusplus
38034extern "C"
38035{
38036#endif
38037/* We use char because int might match the return type of a gcc2
38038 builtin and then its argument prototype would still apply. */
38039char $ac_func ();
38040/* The GNU C library defines this for functions which it implements
38041 to always fail with ENOSYS. Some functions are actually named
38042 something starting with __ and the normal name is an alias. */
38043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38044choke me
38045#else
38046char (*f) () = $ac_func;
38047#endif
38048#ifdef __cplusplus
38049}
38050#endif
38051
38052int
38053main ()
38054{
38055return f != $ac_func;
38056 ;
38057 return 0;
38058}
38059_ACEOF
38060rm -f conftest.$ac_objext conftest$ac_exeext
38061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38062 (eval $ac_link) 2>conftest.er1
a848cd7e 38063 ac_status=$?
ac1cb8d3
VS
38064 grep -v '^ *+' conftest.er1 >conftest.err
38065 rm -f conftest.er1
38066 cat conftest.err >&5
a848cd7e
SC
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); } &&
6ebeb4c7 38069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071 (eval $ac_try) 2>&5
38072 ac_status=$?
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); }; } &&
38075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38078 ac_status=$?
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; }; then
38081 eval "$as_ac_var=yes"
38082else
38083 echo "$as_me: failed program was:" >&5
38084sed 's/^/| /' conftest.$ac_ext >&5
38085
38086eval "$as_ac_var=no"
38087fi
ac1cb8d3
VS
38088rm -f conftest.err conftest.$ac_objext \
38089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38090fi
38091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38092echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38093if test `eval echo '${'$as_ac_var'}'` = yes; then
38094 cat >>confdefs.h <<_ACEOF
38095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38096_ACEOF
38097
38098fi
38099done
38100
38101
38102 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38103echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38104if test "${wx_cv_var_timezone+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106else
38107
38108 cat >conftest.$ac_ext <<_ACEOF
38109/* confdefs.h. */
38110_ACEOF
38111cat confdefs.h >>conftest.$ac_ext
38112cat >>conftest.$ac_ext <<_ACEOF
38113/* end confdefs.h. */
38114
38115 #include <time.h>
38116
38117int
38118main ()
38119{
38120
38121 int tz;
38122 tz = timezone;
38123
38124 ;
38125 return 0;
38126}
38127_ACEOF
38128rm -f conftest.$ac_objext
38129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38130 (eval $ac_compile) 2>conftest.er1
a848cd7e 38131 ac_status=$?
ac1cb8d3
VS
38132 grep -v '^ *+' conftest.er1 >conftest.err
38133 rm -f conftest.er1
38134 cat conftest.err >&5
a848cd7e
SC
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); } &&
6ebeb4c7 38137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
38140 ac_status=$?
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; } &&
38143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145 (eval $ac_try) 2>&5
38146 ac_status=$?
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); }; }; then
38149
38150 wx_cv_var_timezone=timezone
38151
38152else
38153 echo "$as_me: failed program was:" >&5
38154sed 's/^/| /' conftest.$ac_ext >&5
38155
38156
38157 cat >conftest.$ac_ext <<_ACEOF
38158/* confdefs.h. */
38159_ACEOF
38160cat confdefs.h >>conftest.$ac_ext
38161cat >>conftest.$ac_ext <<_ACEOF
38162/* end confdefs.h. */
38163
38164 #include <time.h>
38165
38166int
38167main ()
38168{
38169
38170 int tz;
38171 tz = _timezone;
38172
38173 ;
38174 return 0;
38175}
38176_ACEOF
38177rm -f conftest.$ac_objext
38178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38179 (eval $ac_compile) 2>conftest.er1
a848cd7e 38180 ac_status=$?
ac1cb8d3
VS
38181 grep -v '^ *+' conftest.er1 >conftest.err
38182 rm -f conftest.er1
38183 cat conftest.err >&5
a848cd7e
SC
38184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); } &&
6ebeb4c7 38186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38188 (eval $ac_try) 2>&5
38189 ac_status=$?
38190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191 (exit $ac_status); }; } &&
38192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38194 (eval $ac_try) 2>&5
38195 ac_status=$?
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); }; }; then
38198
38199 wx_cv_var_timezone=_timezone
38200
38201else
38202 echo "$as_me: failed program was:" >&5
38203sed 's/^/| /' conftest.$ac_ext >&5
38204
38205
38206 cat >conftest.$ac_ext <<_ACEOF
38207/* confdefs.h. */
38208_ACEOF
38209cat confdefs.h >>conftest.$ac_ext
38210cat >>conftest.$ac_ext <<_ACEOF
38211/* end confdefs.h. */
38212
38213 #include <time.h>
38214
38215int
38216main ()
38217{
38218
38219 int tz;
38220 tz = __timezone;
38221
38222 ;
38223 return 0;
38224}
38225_ACEOF
38226rm -f conftest.$ac_objext
38227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38228 (eval $ac_compile) 2>conftest.er1
a848cd7e 38229 ac_status=$?
ac1cb8d3
VS
38230 grep -v '^ *+' conftest.er1 >conftest.err
38231 rm -f conftest.er1
38232 cat conftest.err >&5
a848cd7e
SC
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); } &&
6ebeb4c7 38235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38238 ac_status=$?
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; } &&
38241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38243 (eval $ac_try) 2>&5
38244 ac_status=$?
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); }; }; then
38247
38248 wx_cv_var_timezone=__timezone
38249
38250else
38251 echo "$as_me: failed program was:" >&5
38252sed 's/^/| /' conftest.$ac_ext >&5
38253
38254
38255 if test "$USE_DOS" = 0 ; then
38256 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38257echo "$as_me: WARNING: no timezone variable" >&2;}
38258 fi
38259
38260
38261fi
ac1cb8d3 38262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38263
38264
38265fi
ac1cb8d3 38266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38267
38268
38269fi
ac1cb8d3 38270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38271
38272
38273fi
38274echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38275echo "${ECHO_T}$wx_cv_var_timezone" >&6
38276
38277 if test "x$wx_cv_var_timezone" != x ; then
38278 cat >>confdefs.h <<_ACEOF
38279#define WX_TIMEZONE $wx_cv_var_timezone
38280_ACEOF
38281
38282 fi
38283
38284
38285for ac_func in localtime
38286do
38287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38288echo "$as_me:$LINENO: checking for $ac_func" >&5
38289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38290if eval "test \"\${$as_ac_var+set}\" = set"; then
38291 echo $ECHO_N "(cached) $ECHO_C" >&6
38292else
38293 cat >conftest.$ac_ext <<_ACEOF
38294/* confdefs.h. */
38295_ACEOF
38296cat confdefs.h >>conftest.$ac_ext
38297cat >>conftest.$ac_ext <<_ACEOF
38298/* end confdefs.h. */
ac1cb8d3
VS
38299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38301#define $ac_func innocuous_$ac_func
38302
a848cd7e
SC
38303/* System header to define __stub macros and hopefully few prototypes,
38304 which can conflict with char $ac_func (); below.
38305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38307
a848cd7e
SC
38308#ifdef __STDC__
38309# include <limits.h>
38310#else
38311# include <assert.h>
38312#endif
ac1cb8d3
VS
38313
38314#undef $ac_func
38315
a848cd7e
SC
38316/* Override any gcc2 internal prototype to avoid an error. */
38317#ifdef __cplusplus
38318extern "C"
38319{
38320#endif
38321/* We use char because int might match the return type of a gcc2
38322 builtin and then its argument prototype would still apply. */
38323char $ac_func ();
38324/* The GNU C library defines this for functions which it implements
38325 to always fail with ENOSYS. Some functions are actually named
38326 something starting with __ and the normal name is an alias. */
38327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38328choke me
38329#else
38330char (*f) () = $ac_func;
38331#endif
38332#ifdef __cplusplus
38333}
38334#endif
38335
38336int
38337main ()
38338{
38339return f != $ac_func;
38340 ;
38341 return 0;
38342}
38343_ACEOF
38344rm -f conftest.$ac_objext conftest$ac_exeext
38345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38346 (eval $ac_link) 2>conftest.er1
a848cd7e 38347 ac_status=$?
ac1cb8d3
VS
38348 grep -v '^ *+' conftest.er1 >conftest.err
38349 rm -f conftest.er1
38350 cat conftest.err >&5
a848cd7e
SC
38351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); } &&
6ebeb4c7 38353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38355 (eval $ac_try) 2>&5
38356 ac_status=$?
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); }; } &&
38359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; }; then
38365 eval "$as_ac_var=yes"
38366else
38367 echo "$as_me: failed program was:" >&5
38368sed 's/^/| /' conftest.$ac_ext >&5
38369
38370eval "$as_ac_var=no"
38371fi
ac1cb8d3
VS
38372rm -f conftest.err conftest.$ac_objext \
38373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38374fi
38375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38377if test `eval echo '${'$as_ac_var'}'` = yes; then
38378 cat >>confdefs.h <<_ACEOF
38379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38380_ACEOF
38381
38382fi
38383done
38384
38385
38386 if test "$ac_cv_func_localtime" = "yes"; then
38387 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38388echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38389if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38390 echo $ECHO_N "(cached) $ECHO_C" >&6
38391else
38392
38393 cat >conftest.$ac_ext <<_ACEOF
38394/* confdefs.h. */
38395_ACEOF
38396cat confdefs.h >>conftest.$ac_ext
38397cat >>conftest.$ac_ext <<_ACEOF
38398/* end confdefs.h. */
38399
38400 #include <time.h>
38401
38402int
38403main ()
38404{
38405
38406 struct tm tm;
38407 tm.tm_gmtoff++;
38408
38409 ;
38410 return 0;
38411}
38412_ACEOF
38413rm -f conftest.$ac_objext
38414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38415 (eval $ac_compile) 2>conftest.er1
a848cd7e 38416 ac_status=$?
ac1cb8d3
VS
38417 grep -v '^ *+' conftest.er1 >conftest.err
38418 rm -f conftest.er1
38419 cat conftest.err >&5
a848cd7e
SC
38420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421 (exit $ac_status); } &&
6ebeb4c7 38422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38424 (eval $ac_try) 2>&5
38425 ac_status=$?
38426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427 (exit $ac_status); }; } &&
38428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430 (eval $ac_try) 2>&5
38431 ac_status=$?
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); }; }; then
38434
38435 wx_cv_struct_tm_has_gmtoff=yes
38436
38437else
38438 echo "$as_me: failed program was:" >&5
38439sed 's/^/| /' conftest.$ac_ext >&5
38440
38441wx_cv_struct_tm_has_gmtoff=no
38442
38443fi
ac1cb8d3 38444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38445
38446fi
38447echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38448echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38449 fi
38450
38451 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38452 cat >>confdefs.h <<\_ACEOF
38453#define WX_GMTOFF_IN_TM 1
38454_ACEOF
38455
38456 fi
38457
38458
38459
38460for ac_func in gettimeofday ftime
38461do
38462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38463echo "$as_me:$LINENO: checking for $ac_func" >&5
38464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38465if eval "test \"\${$as_ac_var+set}\" = set"; then
38466 echo $ECHO_N "(cached) $ECHO_C" >&6
38467else
38468 cat >conftest.$ac_ext <<_ACEOF
38469/* confdefs.h. */
38470_ACEOF
38471cat confdefs.h >>conftest.$ac_ext
38472cat >>conftest.$ac_ext <<_ACEOF
38473/* end confdefs.h. */
ac1cb8d3
VS
38474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38476#define $ac_func innocuous_$ac_func
38477
a848cd7e
SC
38478/* System header to define __stub macros and hopefully few prototypes,
38479 which can conflict with char $ac_func (); below.
38480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38482
a848cd7e
SC
38483#ifdef __STDC__
38484# include <limits.h>
38485#else
38486# include <assert.h>
38487#endif
ac1cb8d3
VS
38488
38489#undef $ac_func
38490
a848cd7e
SC
38491/* Override any gcc2 internal prototype to avoid an error. */
38492#ifdef __cplusplus
38493extern "C"
38494{
38495#endif
38496/* We use char because int might match the return type of a gcc2
38497 builtin and then its argument prototype would still apply. */
38498char $ac_func ();
38499/* The GNU C library defines this for functions which it implements
38500 to always fail with ENOSYS. Some functions are actually named
38501 something starting with __ and the normal name is an alias. */
38502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38503choke me
38504#else
38505char (*f) () = $ac_func;
38506#endif
38507#ifdef __cplusplus
38508}
38509#endif
38510
38511int
38512main ()
38513{
38514return f != $ac_func;
38515 ;
38516 return 0;
38517}
38518_ACEOF
38519rm -f conftest.$ac_objext conftest$ac_exeext
38520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38521 (eval $ac_link) 2>conftest.er1
a848cd7e 38522 ac_status=$?
ac1cb8d3
VS
38523 grep -v '^ *+' conftest.er1 >conftest.err
38524 rm -f conftest.er1
38525 cat conftest.err >&5
a848cd7e
SC
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); } &&
6ebeb4c7 38528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; } &&
38534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38537 ac_status=$?
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; }; then
38540 eval "$as_ac_var=yes"
38541else
38542 echo "$as_me: failed program was:" >&5
38543sed 's/^/| /' conftest.$ac_ext >&5
38544
38545eval "$as_ac_var=no"
38546fi
ac1cb8d3
VS
38547rm -f conftest.err conftest.$ac_objext \
38548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38549fi
38550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38552if test `eval echo '${'$as_ac_var'}'` = yes; then
38553 cat >>confdefs.h <<_ACEOF
38554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38555_ACEOF
38556 break
38557fi
38558done
38559
38560
38561 if test "$ac_cv_func_gettimeofday" = "yes"; then
38562 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38563echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38564if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38565 echo $ECHO_N "(cached) $ECHO_C" >&6
38566else
38567
38568
38569
38570 ac_ext=cc
38571ac_cpp='$CXXCPP $CPPFLAGS'
38572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38575
38576
38577 cat >conftest.$ac_ext <<_ACEOF
38578/* confdefs.h. */
38579_ACEOF
38580cat confdefs.h >>conftest.$ac_ext
38581cat >>conftest.$ac_ext <<_ACEOF
38582/* end confdefs.h. */
38583
38584 #include <sys/time.h>
38585 #include <unistd.h>
38586
38587int
38588main ()
38589{
38590
38591 struct timeval tv;
38592 gettimeofday(&tv, NULL);
38593
38594 ;
38595 return 0;
38596}
38597_ACEOF
38598rm -f conftest.$ac_objext
38599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38600 (eval $ac_compile) 2>conftest.er1
a848cd7e 38601 ac_status=$?
ac1cb8d3
VS
38602 grep -v '^ *+' conftest.er1 >conftest.err
38603 rm -f conftest.er1
38604 cat conftest.err >&5
a848cd7e
SC
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } &&
6ebeb4c7 38607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38609 (eval $ac_try) 2>&5
38610 ac_status=$?
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); }; } &&
38613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38615 (eval $ac_try) 2>&5
38616 ac_status=$?
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); }; }; then
38619 wx_cv_func_gettimeofday_has_2_args=yes
38620else
38621 echo "$as_me: failed program was:" >&5
38622sed 's/^/| /' conftest.$ac_ext >&5
38623
38624cat >conftest.$ac_ext <<_ACEOF
38625/* confdefs.h. */
38626_ACEOF
38627cat confdefs.h >>conftest.$ac_ext
38628cat >>conftest.$ac_ext <<_ACEOF
38629/* end confdefs.h. */
38630
38631 #include <sys/time.h>
38632 #include <unistd.h>
38633
38634int
38635main ()
38636{
38637
38638 struct timeval tv;
38639 gettimeofday(&tv);
38640
38641 ;
38642 return 0;
38643}
38644_ACEOF
38645rm -f conftest.$ac_objext
38646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38647 (eval $ac_compile) 2>conftest.er1
a848cd7e 38648 ac_status=$?
ac1cb8d3
VS
38649 grep -v '^ *+' conftest.er1 >conftest.err
38650 rm -f conftest.er1
38651 cat conftest.err >&5
a848cd7e
SC
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); } &&
6ebeb4c7 38654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38656 (eval $ac_try) 2>&5
38657 ac_status=$?
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); }; } &&
38660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38662 (eval $ac_try) 2>&5
38663 ac_status=$?
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); }; }; then
38666 wx_cv_func_gettimeofday_has_2_args=no
38667else
38668 echo "$as_me: failed program was:" >&5
38669sed 's/^/| /' conftest.$ac_ext >&5
38670
38671
38672 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38673echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38674 wx_cv_func_gettimeofday_has_2_args=unknown
38675
38676
38677fi
ac1cb8d3 38678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38679
38680fi
ac1cb8d3 38681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38682 ac_ext=c
38683ac_cpp='$CPP $CPPFLAGS'
38684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38686ac_compiler_gnu=$ac_cv_c_compiler_gnu
38687
38688
38689fi
38690echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38691echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38692
38693 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38694 cat >>confdefs.h <<\_ACEOF
38695#define WX_GETTIMEOFDAY_NO_TZ 1
38696_ACEOF
38697
38698 fi
38699 fi
38700
38701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38702fi
38703
38704
38705if test "$wxUSE_SOCKETS" = "yes"; then
38706 if test "$wxUSE_MGL" = "1"; then
38707 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38708echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38709 wxUSE_SOCKETS="no"
38710 fi
38711fi
38712
38713if test "$wxUSE_SOCKETS" = "yes"; then
38714 if test "$TOOLKIT" != "MSW"; then
38715 echo "$as_me:$LINENO: checking for socket" >&5
38716echo $ECHO_N "checking for socket... $ECHO_C" >&6
38717if test "${ac_cv_func_socket+set}" = set; then
38718 echo $ECHO_N "(cached) $ECHO_C" >&6
38719else
38720 cat >conftest.$ac_ext <<_ACEOF
38721/* confdefs.h. */
38722_ACEOF
38723cat confdefs.h >>conftest.$ac_ext
38724cat >>conftest.$ac_ext <<_ACEOF
38725/* end confdefs.h. */
ac1cb8d3
VS
38726/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38728#define socket innocuous_socket
38729
a848cd7e
SC
38730/* System header to define __stub macros and hopefully few prototypes,
38731 which can conflict with char socket (); below.
38732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38733 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38734
a848cd7e
SC
38735#ifdef __STDC__
38736# include <limits.h>
38737#else
38738# include <assert.h>
38739#endif
ac1cb8d3
VS
38740
38741#undef socket
38742
a848cd7e
SC
38743/* Override any gcc2 internal prototype to avoid an error. */
38744#ifdef __cplusplus
38745extern "C"
38746{
38747#endif
38748/* We use char because int might match the return type of a gcc2
38749 builtin and then its argument prototype would still apply. */
38750char socket ();
38751/* The GNU C library defines this for functions which it implements
38752 to always fail with ENOSYS. Some functions are actually named
38753 something starting with __ and the normal name is an alias. */
38754#if defined (__stub_socket) || defined (__stub___socket)
38755choke me
38756#else
38757char (*f) () = socket;
38758#endif
38759#ifdef __cplusplus
38760}
38761#endif
38762
38763int
38764main ()
38765{
38766return f != socket;
38767 ;
38768 return 0;
38769}
38770_ACEOF
38771rm -f conftest.$ac_objext conftest$ac_exeext
38772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38773 (eval $ac_link) 2>conftest.er1
a848cd7e 38774 ac_status=$?
ac1cb8d3
VS
38775 grep -v '^ *+' conftest.er1 >conftest.err
38776 rm -f conftest.er1
38777 cat conftest.err >&5
a848cd7e
SC
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } &&
6ebeb4c7 38780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; } &&
38786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38788 (eval $ac_try) 2>&5
38789 ac_status=$?
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); }; }; then
38792 ac_cv_func_socket=yes
38793else
38794 echo "$as_me: failed program was:" >&5
38795sed 's/^/| /' conftest.$ac_ext >&5
38796
38797ac_cv_func_socket=no
38798fi
ac1cb8d3
VS
38799rm -f conftest.err conftest.$ac_objext \
38800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38801fi
38802echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38803echo "${ECHO_T}$ac_cv_func_socket" >&6
38804if test $ac_cv_func_socket = yes; then
38805 :
38806else
38807
38808 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38809echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38810if test "${ac_cv_lib_socket_socket+set}" = set; then
38811 echo $ECHO_N "(cached) $ECHO_C" >&6
38812else
38813 ac_check_lib_save_LIBS=$LIBS
38814LIBS="-lsocket $LIBS"
38815cat >conftest.$ac_ext <<_ACEOF
38816/* confdefs.h. */
38817_ACEOF
38818cat confdefs.h >>conftest.$ac_ext
38819cat >>conftest.$ac_ext <<_ACEOF
38820/* end confdefs.h. */
38821
38822/* Override any gcc2 internal prototype to avoid an error. */
38823#ifdef __cplusplus
38824extern "C"
38825#endif
38826/* We use char because int might match the return type of a gcc2
38827 builtin and then its argument prototype would still apply. */
38828char socket ();
38829int
38830main ()
38831{
38832socket ();
38833 ;
38834 return 0;
38835}
38836_ACEOF
38837rm -f conftest.$ac_objext conftest$ac_exeext
38838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38839 (eval $ac_link) 2>conftest.er1
a848cd7e 38840 ac_status=$?
ac1cb8d3
VS
38841 grep -v '^ *+' conftest.er1 >conftest.err
38842 rm -f conftest.er1
38843 cat conftest.err >&5
a848cd7e
SC
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); } &&
6ebeb4c7 38846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38848 (eval $ac_try) 2>&5
38849 ac_status=$?
38850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851 (exit $ac_status); }; } &&
38852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38854 (eval $ac_try) 2>&5
38855 ac_status=$?
38856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38857 (exit $ac_status); }; }; then
38858 ac_cv_lib_socket_socket=yes
38859else
38860 echo "$as_me: failed program was:" >&5
38861sed 's/^/| /' conftest.$ac_ext >&5
38862
38863ac_cv_lib_socket_socket=no
38864fi
ac1cb8d3
VS
38865rm -f conftest.err conftest.$ac_objext \
38866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38867LIBS=$ac_check_lib_save_LIBS
38868fi
38869echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38870echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38871if test $ac_cv_lib_socket_socket = yes; then
38872 if test "$INET_LINK" != " -lsocket"; then
38873 INET_LINK="$INET_LINK -lsocket"
38874 fi
38875else
38876
38877 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38878echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38879 wxUSE_SOCKETS=no
38880
38881
38882fi
38883
38884
38885
38886fi
38887
38888 fi
38889fi
38890
38891if test "$wxUSE_SOCKETS" = "yes" ; then
38892 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38893 ac_ext=cc
38894ac_cpp='$CXXCPP $CPPFLAGS'
38895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38898
38899 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38900echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38901if test "${wx_cv_type_getsockname3+set}" = set; then
38902 echo $ECHO_N "(cached) $ECHO_C" >&6
38903else
38904
38905 cat >conftest.$ac_ext <<_ACEOF
38906/* confdefs.h. */
38907_ACEOF
38908cat confdefs.h >>conftest.$ac_ext
38909cat >>conftest.$ac_ext <<_ACEOF
38910/* end confdefs.h. */
38911
38912 #include <sys/types.h>
38913 #include <sys/socket.h>
38914
38915int
38916main ()
38917{
38918
38919 socklen_t len;
38920 getsockname(0, 0, &len);
38921
38922 ;
38923 return 0;
38924}
38925_ACEOF
38926rm -f conftest.$ac_objext
38927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38928 (eval $ac_compile) 2>conftest.er1
a848cd7e 38929 ac_status=$?
ac1cb8d3
VS
38930 grep -v '^ *+' conftest.er1 >conftest.err
38931 rm -f conftest.er1
38932 cat conftest.err >&5
a848cd7e
SC
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); } &&
6ebeb4c7 38935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38937 (eval $ac_try) 2>&5
38938 ac_status=$?
38939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); }; } &&
38941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38943 (eval $ac_try) 2>&5
38944 ac_status=$?
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); }; }; then
38947 wx_cv_type_getsockname3=socklen_t
38948else
38949 echo "$as_me: failed program was:" >&5
38950sed 's/^/| /' conftest.$ac_ext >&5
38951
38952
38953 CFLAGS_OLD="$CFLAGS"
38954 if test "$GCC" = yes ; then
38955 CFLAGS="$CFLAGS -Werror"
38956 fi
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 size_t len;
38973 getsockname(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
ac1cb8d3 38981 (eval $ac_compile) 2>conftest.er1
a848cd7e 38982 ac_status=$?
ac1cb8d3
VS
38983 grep -v '^ *+' conftest.er1 >conftest.err
38984 rm -f conftest.er1
38985 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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'
a848cd7e
SC
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_getsockname3=size_t
39001else
39002 echo "$as_me: failed program was:" >&5
39003sed 's/^/| /' conftest.$ac_ext >&5
39004
39005cat >conftest.$ac_ext <<_ACEOF
39006/* confdefs.h. */
39007_ACEOF
39008cat confdefs.h >>conftest.$ac_ext
39009cat >>conftest.$ac_ext <<_ACEOF
39010/* end confdefs.h. */
39011
39012 #include <sys/types.h>
39013 #include <sys/socket.h>
39014
39015int
39016main ()
39017{
39018
39019 int len;
39020 getsockname(0, 0, &len);
39021
39022 ;
39023 return 0;
39024}
39025_ACEOF
39026rm -f conftest.$ac_objext
39027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39028 (eval $ac_compile) 2>conftest.er1
a848cd7e 39029 ac_status=$?
ac1cb8d3
VS
39030 grep -v '^ *+' conftest.er1 >conftest.err
39031 rm -f conftest.er1
39032 cat conftest.err >&5
a848cd7e
SC
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } &&
6ebeb4c7 39035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
39047 wx_cv_type_getsockname3=int
39048else
39049 echo "$as_me: failed program was:" >&5
39050sed 's/^/| /' conftest.$ac_ext >&5
39051
39052wx_cv_type_getsockname3=unknown
39053
39054fi
ac1cb8d3 39055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39056
39057fi
ac1cb8d3 39058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39059
39060 CFLAGS="$CFLAGS_OLD"
39061
39062
39063fi
ac1cb8d3 39064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39065
39066fi
39067echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39068echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39069
39070 if test "$wx_cv_type_getsockname3" = "unknown"; then
39071 wxUSE_SOCKETS=no
39072 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39073echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39074 else
39075 cat >>confdefs.h <<_ACEOF
39076#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39077_ACEOF
39078
39079 fi
39080 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39081echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39082if test "${wx_cv_type_getsockopt5+set}" = set; then
39083 echo $ECHO_N "(cached) $ECHO_C" >&6
39084else
39085
39086 cat >conftest.$ac_ext <<_ACEOF
39087/* confdefs.h. */
39088_ACEOF
39089cat confdefs.h >>conftest.$ac_ext
39090cat >>conftest.$ac_ext <<_ACEOF
39091/* end confdefs.h. */
39092
39093 #include <sys/types.h>
39094 #include <sys/socket.h>
39095
39096int
39097main ()
39098{
39099
39100 socklen_t len;
39101 getsockopt(0, 0, 0, 0, &len);
39102
39103 ;
39104 return 0;
39105}
39106_ACEOF
39107rm -f conftest.$ac_objext
39108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39109 (eval $ac_compile) 2>conftest.er1
39110 ac_status=$?
39111 grep -v '^ *+' conftest.er1 >conftest.err
39112 rm -f conftest.er1
39113 cat conftest.err >&5
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); } &&
6ebeb4c7 39116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118 (eval $ac_try) 2>&5
39119 ac_status=$?
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); }; } &&
39122 { ac_try='test -s conftest.$ac_objext'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39125 ac_status=$?
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; }; then
39128 wx_cv_type_getsockopt5=socklen_t
39129else
39130 echo "$as_me: failed program was:" >&5
39131sed 's/^/| /' conftest.$ac_ext >&5
39132
39133
39134 CFLAGS_OLD="$CFLAGS"
39135 if test "$GCC" = yes ; then
39136 CFLAGS="$CFLAGS -Werror"
39137 fi
39138
39139 cat >conftest.$ac_ext <<_ACEOF
39140/* confdefs.h. */
39141_ACEOF
39142cat confdefs.h >>conftest.$ac_ext
39143cat >>conftest.$ac_ext <<_ACEOF
39144/* end confdefs.h. */
39145
39146 #include <sys/types.h>
39147 #include <sys/socket.h>
39148
39149int
39150main ()
39151{
39152
39153 size_t len;
39154 getsockopt(0, 0, 0, 0, &len);
39155
39156 ;
39157 return 0;
39158}
39159_ACEOF
39160rm -f conftest.$ac_objext
39161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39162 (eval $ac_compile) 2>conftest.er1
39163 ac_status=$?
39164 grep -v '^ *+' conftest.er1 >conftest.err
39165 rm -f conftest.er1
39166 cat conftest.err >&5
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); } &&
6ebeb4c7 39169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39171 (eval $ac_try) 2>&5
39172 ac_status=$?
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); }; } &&
39175 { ac_try='test -s conftest.$ac_objext'
39176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39177 (eval $ac_try) 2>&5
39178 ac_status=$?
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); }; }; then
39181 wx_cv_type_getsockopt5=size_t
39182else
39183 echo "$as_me: failed program was:" >&5
39184sed 's/^/| /' conftest.$ac_ext >&5
39185
39186cat >conftest.$ac_ext <<_ACEOF
39187/* confdefs.h. */
39188_ACEOF
39189cat confdefs.h >>conftest.$ac_ext
39190cat >>conftest.$ac_ext <<_ACEOF
39191/* end confdefs.h. */
39192
39193 #include <sys/types.h>
39194 #include <sys/socket.h>
39195
39196int
39197main ()
39198{
39199
39200 int len;
39201 getsockopt(0, 0, 0, 0, &len);
39202
39203 ;
39204 return 0;
39205}
39206_ACEOF
39207rm -f conftest.$ac_objext
39208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39209 (eval $ac_compile) 2>conftest.er1
39210 ac_status=$?
39211 grep -v '^ *+' conftest.er1 >conftest.err
39212 rm -f conftest.er1
39213 cat conftest.err >&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } &&
6ebeb4c7 39216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39219 ac_status=$?
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; } &&
39222 { ac_try='test -s conftest.$ac_objext'
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 wx_cv_type_getsockopt5=int
39229else
39230 echo "$as_me: failed program was:" >&5
39231sed 's/^/| /' conftest.$ac_ext >&5
39232
39233wx_cv_type_getsockopt5=unknown
39234
39235fi
39236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39237
39238fi
39239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240
39241 CFLAGS="$CFLAGS_OLD"
39242
39243
39244fi
39245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39246
39247fi
39248echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39249echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39250
39251 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39252 wxUSE_SOCKETS=no
39253 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39254echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39255 else
39256 cat >>confdefs.h <<_ACEOF
39257#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39258_ACEOF
39259
39260 fi
4d4ff94c
VZ
39261 ac_ext=c
39262ac_cpp='$CPP $CPPFLAGS'
39263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39265ac_compiler_gnu=$ac_cv_c_compiler_gnu
39266
a848cd7e
SC
39267 fi
39268fi
39269
39270if test "$wxUSE_SOCKETS" = "yes" ; then
39271 cat >>confdefs.h <<\_ACEOF
39272#define wxUSE_SOCKETS 1
39273_ACEOF
39274
39275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39276fi
39277
39278if test "$wxUSE_PROTOCOL" = "yes"; then
39279 if test "$wxUSE_SOCKETS" != "yes"; then
39280 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39281echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39282 wxUSE_PROTOCOL=no
39283 fi
39284fi
39285
39286if test "$wxUSE_PROTOCOL" = "yes"; then
39287 cat >>confdefs.h <<\_ACEOF
39288#define wxUSE_PROTOCOL 1
39289_ACEOF
39290
39291
39292 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39293 cat >>confdefs.h <<\_ACEOF
39294#define wxUSE_PROTOCOL_HTTP 1
39295_ACEOF
39296
39297 fi
39298 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39299 cat >>confdefs.h <<\_ACEOF
39300#define wxUSE_PROTOCOL_FTP 1
39301_ACEOF
39302
39303 fi
39304 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39305 cat >>confdefs.h <<\_ACEOF
39306#define wxUSE_PROTOCOL_FILE 1
39307_ACEOF
39308
39309 fi
39310else
39311 if test "$wxUSE_FS_INET" = "yes"; then
39312 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39313echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39314 wxUSE_FS_INET="no"
39315 fi
39316fi
39317
39318if test "$wxUSE_URL" = "yes"; then
39319 if test "$wxUSE_PROTOCOL" != "yes"; then
39320 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39321echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39322 wxUSE_URL=no
39323 fi
39324 if test "$wxUSE_URL" = "yes"; then
39325 cat >>confdefs.h <<\_ACEOF
39326#define wxUSE_URL 1
39327_ACEOF
39328
39329 fi
39330fi
39331
39332if test "$wxUSE_FS_INET" = "yes"; then
39333 cat >>confdefs.h <<\_ACEOF
39334#define wxUSE_FS_INET 1
39335_ACEOF
39336
39337fi
39338
39339
ee45c548
MW
39340if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39341 wxUSE_JOYSTICK=no
39342
39343 if test "$TOOLKIT" = "MSW"; then
39344 wxUSE_JOYSTICK=yes
39345
39346 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39347 if test "$USE_DARWIN" = 1; then
39348 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39349echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39350 ac_ext=cc
39351ac_cpp='$CXXCPP $CPPFLAGS'
39352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39355
39356 cat >conftest.$ac_ext <<_ACEOF
39357/* confdefs.h. */
39358_ACEOF
39359cat confdefs.h >>conftest.$ac_ext
39360cat >>conftest.$ac_ext <<_ACEOF
39361/* end confdefs.h. */
39362 #include <IOKit/hid/IOHIDLib.h>
39363int
39364main ()
39365{
39366 IOHIDQueueInterface *qi = NULL;
39367 IOHIDCallbackFunction cb = NULL;
39368 qi->setEventCallout(NULL, cb, NULL, NULL);
39369 ;
39370 return 0;
39371}
39372_ACEOF
39373rm -f conftest.$ac_objext
39374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39375 (eval $ac_compile) 2>conftest.er1
39376 ac_status=$?
39377 grep -v '^ *+' conftest.er1 >conftest.err
39378 rm -f conftest.er1
39379 cat conftest.err >&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); } &&
6ebeb4c7 39382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384 (eval $ac_try) 2>&5
39385 ac_status=$?
39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); }; } &&
39388 { ac_try='test -s conftest.$ac_objext'
39389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390 (eval $ac_try) 2>&5
39391 ac_status=$?
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); }; }; then
39394 wxUSE_JOYSTICK=yes
a848cd7e 39395
ee45c548
MW
39396else
39397 echo "$as_me: failed program was:" >&5
39398sed 's/^/| /' conftest.$ac_ext >&5
39399
39400fi
39401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39402 ac_ext=c
39403ac_cpp='$CPP $CPPFLAGS'
39404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39406ac_compiler_gnu=$ac_cv_c_compiler_gnu
39407
39408 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39409echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39410 fi
39411
39412 else
a848cd7e
SC
39413
39414for ac_header in linux/joystick.h
39415do
39416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39417if eval "test \"\${$as_ac_Header+set}\" = set"; then
39418 echo "$as_me:$LINENO: checking for $ac_header" >&5
39419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39420if eval "test \"\${$as_ac_Header+set}\" = set"; then
39421 echo $ECHO_N "(cached) $ECHO_C" >&6
39422fi
39423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39425else
39426 # Is the header compilable?
39427echo "$as_me:$LINENO: checking $ac_header usability" >&5
39428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39429cat >conftest.$ac_ext <<_ACEOF
39430/* confdefs.h. */
39431_ACEOF
39432cat confdefs.h >>conftest.$ac_ext
39433cat >>conftest.$ac_ext <<_ACEOF
39434/* end confdefs.h. */
39435$ac_includes_default
39436#include <$ac_header>
39437_ACEOF
39438rm -f conftest.$ac_objext
39439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39440 (eval $ac_compile) 2>conftest.er1
a848cd7e 39441 ac_status=$?
ac1cb8d3
VS
39442 grep -v '^ *+' conftest.er1 >conftest.err
39443 rm -f conftest.er1
39444 cat conftest.err >&5
a848cd7e
SC
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); } &&
6ebeb4c7 39447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449 (eval $ac_try) 2>&5
39450 ac_status=$?
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); }; } &&
39453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39456 ac_status=$?
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; }; then
39459 ac_header_compiler=yes
39460else
39461 echo "$as_me: failed program was:" >&5
39462sed 's/^/| /' conftest.$ac_ext >&5
39463
39464ac_header_compiler=no
39465fi
ac1cb8d3 39466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39468echo "${ECHO_T}$ac_header_compiler" >&6
39469
39470# Is the header present?
39471echo "$as_me:$LINENO: checking $ac_header presence" >&5
39472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39473cat >conftest.$ac_ext <<_ACEOF
39474/* confdefs.h. */
39475_ACEOF
39476cat confdefs.h >>conftest.$ac_ext
39477cat >>conftest.$ac_ext <<_ACEOF
39478/* end confdefs.h. */
39479#include <$ac_header>
39480_ACEOF
39481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39483 ac_status=$?
39484 grep -v '^ *+' conftest.er1 >conftest.err
39485 rm -f conftest.er1
39486 cat conftest.err >&5
39487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488 (exit $ac_status); } >/dev/null; then
39489 if test -s conftest.err; then
39490 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39492 else
39493 ac_cpp_err=
39494 fi
39495else
39496 ac_cpp_err=yes
39497fi
39498if test -z "$ac_cpp_err"; then
39499 ac_header_preproc=yes
39500else
39501 echo "$as_me: failed program was:" >&5
39502sed 's/^/| /' conftest.$ac_ext >&5
39503
39504 ac_header_preproc=no
39505fi
39506rm -f conftest.err conftest.$ac_ext
39507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39508echo "${ECHO_T}$ac_header_preproc" >&6
39509
39510# So? What about this header?
ac1cb8d3
VS
39511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39512 yes:no: )
a848cd7e
SC
39513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39517 ac_header_preproc=yes
a848cd7e 39518 ;;
ac1cb8d3 39519 no:yes:* )
a848cd7e
SC
39520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39532 (
39533 cat <<\_ASBOX
ac1cb8d3
VS
39534## ----------------------------------------- ##
39535## Report this to wx-dev@lists.wxwidgets.org ##
39536## ----------------------------------------- ##
a848cd7e
SC
39537_ASBOX
39538 ) |
39539 sed "s/^/$as_me: WARNING: /" >&2
39540 ;;
39541esac
39542echo "$as_me:$LINENO: checking for $ac_header" >&5
39543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39544if eval "test \"\${$as_ac_Header+set}\" = set"; then
39545 echo $ECHO_N "(cached) $ECHO_C" >&6
39546else
ac1cb8d3 39547 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39548fi
39549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39551
39552fi
39553if test `eval echo '${'$as_ac_Header'}'` = yes; then
39554 cat >>confdefs.h <<_ACEOF
39555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39556_ACEOF
ee45c548 39557 wxUSE_JOYSTICK=yes
a848cd7e
SC
39558fi
39559
39560done
39561
ee45c548 39562 fi
4cb1d3da 39563
ee45c548
MW
39564 if test "$wxUSE_JOYSTICK" = "yes"; then
39565 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39566#define wxUSE_JOYSTICK 1
39567_ACEOF
39568
ee45c548
MW
39569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39570 else
39571 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39572echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39573 fi
39574fi
39575
39576
39577
39578if test "$wxUSE_FONTMAP" = "yes" ; then
39579 cat >>confdefs.h <<\_ACEOF
39580#define wxUSE_FONTMAP 1
39581_ACEOF
39582
39583fi
39584
39585if test "$wxUSE_UNICODE" = "yes" ; then
39586 cat >>confdefs.h <<\_ACEOF
39587#define wxUSE_UNICODE 1
39588_ACEOF
39589
39590
39591 if test "$USE_WIN32" != 1; then
39592 wxUSE_UNICODE_MSLU=no
39593 fi
39594
39595 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39596 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39597echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39598if test "${ac_cv_lib_unicows_main+set}" = set; then
39599 echo $ECHO_N "(cached) $ECHO_C" >&6
39600else
39601 ac_check_lib_save_LIBS=$LIBS
39602LIBS="-lunicows $LIBS"
39603cat >conftest.$ac_ext <<_ACEOF
39604/* confdefs.h. */
39605_ACEOF
39606cat confdefs.h >>conftest.$ac_ext
39607cat >>conftest.$ac_ext <<_ACEOF
39608/* end confdefs.h. */
39609
39610
39611int
39612main ()
39613{
39614main ();
39615 ;
39616 return 0;
39617}
39618_ACEOF
39619rm -f conftest.$ac_objext conftest$ac_exeext
39620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39621 (eval $ac_link) 2>conftest.er1
a848cd7e 39622 ac_status=$?
ac1cb8d3
VS
39623 grep -v '^ *+' conftest.er1 >conftest.err
39624 rm -f conftest.er1
39625 cat conftest.err >&5
a848cd7e
SC
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); } &&
6ebeb4c7 39628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630 (eval $ac_try) 2>&5
39631 ac_status=$?
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); }; } &&
39634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636 (eval $ac_try) 2>&5
39637 ac_status=$?
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); }; }; then
39640 ac_cv_lib_unicows_main=yes
39641else
39642 echo "$as_me: failed program was:" >&5
39643sed 's/^/| /' conftest.$ac_ext >&5
39644
39645ac_cv_lib_unicows_main=no
39646fi
ac1cb8d3
VS
39647rm -f conftest.err conftest.$ac_objext \
39648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39649LIBS=$ac_check_lib_save_LIBS
39650fi
39651echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39652echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39653if test $ac_cv_lib_unicows_main = yes; then
39654
39655 cat >>confdefs.h <<\_ACEOF
39656#define wxUSE_UNICODE_MSLU 1
39657_ACEOF
39658
39659
39660else
39661
39662 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39663 Applications will only run on Windows NT/2000/XP!" >&5
39664echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39665 Applications will only run on Windows NT/2000/XP!" >&2;}
39666 wxUSE_UNICODE_MSLU=no
39667
39668fi
39669
39670 fi
39671fi
39672
39673if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39674 cat >>confdefs.h <<\_ACEOF
39675#define wxUSE_EXPERIMENTAL_PRINTF 1
39676_ACEOF
39677
39678fi
39679
39680
39681if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39682 cat >>confdefs.h <<\_ACEOF
39683#define wxUSE_POSTSCRIPT 1
39684_ACEOF
39685
39686fi
39687
39688cat >>confdefs.h <<\_ACEOF
39689#define wxUSE_AFM_FOR_POSTSCRIPT 1
39690_ACEOF
39691
39692
39693cat >>confdefs.h <<\_ACEOF
39694#define wxUSE_NORMALIZED_PS_FONTS 1
39695_ACEOF
39696
39697
39698
39699if test "$wxUSE_CONSTRAINTS" = "yes"; then
39700 cat >>confdefs.h <<\_ACEOF
39701#define wxUSE_CONSTRAINTS 1
39702_ACEOF
39703
39704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39705fi
39706
8a7b1113
VZ
39707if test "$wxUSE_MDI" = "yes"; then
39708 cat >>confdefs.h <<\_ACEOF
39709#define wxUSE_MDI 1
39710_ACEOF
39711
39712
39713 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39714 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39715#define wxUSE_MDI_ARCHITECTURE 1
39716_ACEOF
39717
8a7b1113
VZ
39718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39719 fi
a848cd7e
SC
39720fi
39721
39722if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39723 cat >>confdefs.h <<\_ACEOF
39724#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39725_ACEOF
39726
39727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39728 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39730 fi
39731fi
39732
39733if test "$wxUSE_HELP" = "yes"; then
39734 cat >>confdefs.h <<\_ACEOF
39735#define wxUSE_HELP 1
39736_ACEOF
39737
39738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39739
39740 if test "$wxUSE_MSW" = 1; then
39741 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39742 cat >>confdefs.h <<\_ACEOF
39743#define wxUSE_MS_HTML_HELP 1
39744_ACEOF
39745
39746 fi
39747 fi
39748
39749 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39750 if test "$wxUSE_HTML" = "yes"; then
39751 cat >>confdefs.h <<\_ACEOF
39752#define wxUSE_WXHTML_HELP 1
39753_ACEOF
39754
39755 else
39756 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39757echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39758 wxUSE_WXHTML_HELP=no
39759 fi
39760 fi
39761fi
39762
39763if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39764 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39765 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39766echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39767 else
39768 cat >>confdefs.h <<\_ACEOF
39769#define wxUSE_PRINTING_ARCHITECTURE 1
39770_ACEOF
39771
39772 fi
39773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39774fi
39775
39776if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39777 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39778echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39779 { (exit 1); exit 1; }; }
39780fi
39781
39782
efdf6afe
VZ
39783if test "$wxUSE_METAFILE" = "yes"; then
39784 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
39785 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
39786echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
39787 wxUSE_METAFILE=no
39788 fi
39789fi
39790
39791
a848cd7e
SC
39792if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39793 -o "$wxUSE_CLIPBOARD" = "yes" \
39794 -o "$wxUSE_OLE" = "yes" \
39795 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39796
39797for ac_header in ole2.h
39798do
39799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39800if eval "test \"\${$as_ac_Header+set}\" = set"; then
39801 echo "$as_me:$LINENO: checking for $ac_header" >&5
39802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39803if eval "test \"\${$as_ac_Header+set}\" = set"; then
39804 echo $ECHO_N "(cached) $ECHO_C" >&6
39805fi
39806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39808else
39809 # Is the header compilable?
39810echo "$as_me:$LINENO: checking $ac_header usability" >&5
39811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39812cat >conftest.$ac_ext <<_ACEOF
39813/* confdefs.h. */
39814_ACEOF
39815cat confdefs.h >>conftest.$ac_ext
39816cat >>conftest.$ac_ext <<_ACEOF
39817/* end confdefs.h. */
39818$ac_includes_default
39819#include <$ac_header>
39820_ACEOF
39821rm -f conftest.$ac_objext
39822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39823 (eval $ac_compile) 2>conftest.er1
a848cd7e 39824 ac_status=$?
ac1cb8d3
VS
39825 grep -v '^ *+' conftest.er1 >conftest.err
39826 rm -f conftest.er1
39827 cat conftest.err >&5
a848cd7e
SC
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); } &&
6ebeb4c7 39830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39832 (eval $ac_try) 2>&5
39833 ac_status=$?
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); }; } &&
39836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39839 ac_status=$?
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; }; then
39842 ac_header_compiler=yes
39843else
39844 echo "$as_me: failed program was:" >&5
39845sed 's/^/| /' conftest.$ac_ext >&5
39846
39847ac_header_compiler=no
39848fi
ac1cb8d3 39849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39851echo "${ECHO_T}$ac_header_compiler" >&6
39852
39853# Is the header present?
39854echo "$as_me:$LINENO: checking $ac_header presence" >&5
39855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39856cat >conftest.$ac_ext <<_ACEOF
39857/* confdefs.h. */
39858_ACEOF
39859cat confdefs.h >>conftest.$ac_ext
39860cat >>conftest.$ac_ext <<_ACEOF
39861/* end confdefs.h. */
39862#include <$ac_header>
39863_ACEOF
39864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39866 ac_status=$?
39867 grep -v '^ *+' conftest.er1 >conftest.err
39868 rm -f conftest.er1
39869 cat conftest.err >&5
39870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39871 (exit $ac_status); } >/dev/null; then
39872 if test -s conftest.err; then
39873 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39875 else
39876 ac_cpp_err=
39877 fi
39878else
39879 ac_cpp_err=yes
39880fi
39881if test -z "$ac_cpp_err"; then
39882 ac_header_preproc=yes
39883else
39884 echo "$as_me: failed program was:" >&5
39885sed 's/^/| /' conftest.$ac_ext >&5
39886
39887 ac_header_preproc=no
39888fi
39889rm -f conftest.err conftest.$ac_ext
39890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39891echo "${ECHO_T}$ac_header_preproc" >&6
39892
39893# So? What about this header?
ac1cb8d3
VS
39894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39895 yes:no: )
a848cd7e
SC
39896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39900 ac_header_preproc=yes
a848cd7e 39901 ;;
ac1cb8d3 39902 no:yes:* )
a848cd7e
SC
39903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39915 (
39916 cat <<\_ASBOX
ac1cb8d3
VS
39917## ----------------------------------------- ##
39918## Report this to wx-dev@lists.wxwidgets.org ##
39919## ----------------------------------------- ##
a848cd7e
SC
39920_ASBOX
39921 ) |
39922 sed "s/^/$as_me: WARNING: /" >&2
39923 ;;
39924esac
39925echo "$as_me:$LINENO: checking for $ac_header" >&5
39926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39927if eval "test \"\${$as_ac_Header+set}\" = set"; then
39928 echo $ECHO_N "(cached) $ECHO_C" >&6
39929else
ac1cb8d3 39930 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39931fi
39932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39934
39935fi
39936if test `eval echo '${'$as_ac_Header'}'` = yes; then
39937 cat >>confdefs.h <<_ACEOF
39938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39939_ACEOF
39940
39941fi
39942
39943done
39944
39945
39946 if test "$ac_cv_header_ole2_h" = "yes" ; then
39947 if test "$GCC" = yes ; then
39948
39949
39950 ac_ext=cc
39951ac_cpp='$CXXCPP $CPPFLAGS'
39952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39955
39956
39957 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39958echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39959 cat >conftest.$ac_ext <<_ACEOF
39960/* confdefs.h. */
39961_ACEOF
39962cat confdefs.h >>conftest.$ac_ext
39963cat >>conftest.$ac_ext <<_ACEOF
39964/* end confdefs.h. */
39965#include <windows.h>
39966 #include <ole2.h>
39967int
39968main ()
39969{
39970
39971 ;
39972 return 0;
39973}
39974_ACEOF
39975rm -f conftest.$ac_objext
39976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39977 (eval $ac_compile) 2>conftest.er1
a848cd7e 39978 ac_status=$?
ac1cb8d3
VS
39979 grep -v '^ *+' conftest.er1 >conftest.err
39980 rm -f conftest.er1
39981 cat conftest.err >&5
a848cd7e
SC
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); } &&
6ebeb4c7 39984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; } &&
39990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39992 (eval $ac_try) 2>&5
39993 ac_status=$?
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); }; }; then
39996 echo "$as_me:$LINENO: result: no" >&5
39997echo "${ECHO_T}no" >&6
39998else
39999 echo "$as_me: failed program was:" >&5
40000sed 's/^/| /' conftest.$ac_ext >&5
40001
40002echo "$as_me:$LINENO: result: yes" >&5
40003echo "${ECHO_T}yes" >&6
40004 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40005fi
ac1cb8d3 40006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40007 ac_ext=c
40008ac_cpp='$CPP $CPPFLAGS'
40009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40011ac_compiler_gnu=$ac_cv_c_compiler_gnu
40012
a848cd7e
SC
40013 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40014 if test "$wxUSE_OLE" = "yes" ; then
40015 cat >>confdefs.h <<\_ACEOF
40016#define wxUSE_OLE 1
40017_ACEOF
40018
0b78747f 40019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40020 fi
40021 fi
40022
40023 if test "$wxUSE_DATAOBJ" = "yes" ; then
40024 cat >>confdefs.h <<\_ACEOF
40025#define wxUSE_DATAOBJ 1
40026_ACEOF
40027
40028 fi
40029 else
40030 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40031echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40032
40033 wxUSE_CLIPBOARD=no
40034 wxUSE_DRAG_AND_DROP=no
40035 wxUSE_DATAOBJ=no
40036 wxUSE_OLE=no
40037 fi
40038
40039 if test "$wxUSE_METAFILE" = "yes"; then
40040 cat >>confdefs.h <<\_ACEOF
40041#define wxUSE_METAFILE 1
40042_ACEOF
40043
40044
40045 cat >>confdefs.h <<\_ACEOF
40046#define wxUSE_ENH_METAFILE 1
40047_ACEOF
40048
40049 fi
40050fi
40051
40052if test "$wxUSE_IPC" = "yes"; then
0b78747f 40053 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40054 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40055echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40056 wxUSE_IPC=no
a848cd7e
SC
40057 fi
40058
0b78747f
MW
40059 if test "$wxUSE_IPC" = "yes"; then
40060 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40061#define wxUSE_IPC 1
40062_ACEOF
40063
0b78747f
MW
40064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40065 fi
a848cd7e
SC
40066fi
40067
eb730a0c 40068if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40069 if test "$wxUSE_MGL" = 1; then
40070 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40071echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40072 wxUSE_DATAOBJ=no
40073 else
40074 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40075#define wxUSE_DATAOBJ 1
40076_ACEOF
40077
2113bc77 40078 fi
eb730a0c
JS
40079else
40080 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40081echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40082 wxUSE_CLIPBOARD=no
40083 wxUSE_DRAG_AND_DROP=no
40084fi
40085
a848cd7e
SC
40086if test "$wxUSE_CLIPBOARD" = "yes"; then
40087 if test "$wxUSE_MGL" = 1; then
40088 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40089echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40090 wxUSE_CLIPBOARD=no
40091 fi
40092
40093 if test "$wxUSE_CLIPBOARD" = "yes"; then
40094 cat >>confdefs.h <<\_ACEOF
40095#define wxUSE_CLIPBOARD 1
40096_ACEOF
40097
a848cd7e
SC
40098 fi
40099fi
40100
40101if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40102 if test "$wxUSE_GTK" = 1; then
40103 if test "$WXGTK12" != 1; then
40104 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40105echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40106 wxUSE_DRAG_AND_DROP=no
40107 fi
40108 fi
40109
40110 if test "$wxUSE_MOTIF" = 1; then
40111 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40112echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40113 wxUSE_DRAG_AND_DROP=no
40114 fi
40115
40116 if test "$wxUSE_X11" = 1; then
40117 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40118echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40119 wxUSE_DRAG_AND_DROP=no
40120 fi
40121
40122 if test "$wxUSE_MGL" = 1; then
40123 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40124echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40125 wxUSE_DRAG_AND_DROP=no
40126 fi
40127
40128 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40129 cat >>confdefs.h <<\_ACEOF
40130#define wxUSE_DRAG_AND_DROP 1
40131_ACEOF
40132
40133 fi
40134
40135fi
40136
40137if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
40138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
40139fi
40140
40141if test "$wxUSE_SPLINES" = "yes" ; then
40142 cat >>confdefs.h <<\_ACEOF
40143#define wxUSE_SPLINES 1
40144_ACEOF
40145
40146fi
40147
fbe2ca43
SN
40148if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
40149 cat >>confdefs.h <<\_ACEOF
40150#define wxUSE_MOUSEWHEEL 1
40151_ACEOF
40152
40153fi
40154
a848cd7e
SC
40155
40156USES_CONTROLS=0
40157if test "$wxUSE_CONTROLS" = "yes"; then
40158 USES_CONTROLS=1
40159fi
40160
40161if test "$wxUSE_ACCEL" = "yes"; then
40162 cat >>confdefs.h <<\_ACEOF
40163#define wxUSE_ACCEL 1
40164_ACEOF
40165
40166 USES_CONTROLS=1
40167fi
40168
40169if test "$wxUSE_BUTTON" = "yes"; then
40170 cat >>confdefs.h <<\_ACEOF
40171#define wxUSE_BUTTON 1
40172_ACEOF
40173
40174 USES_CONTROLS=1
40175fi
40176
40177if test "$wxUSE_BMPBUTTON" = "yes"; then
40178 cat >>confdefs.h <<\_ACEOF
40179#define wxUSE_BMPBUTTON 1
40180_ACEOF
40181
40182 USES_CONTROLS=1
40183fi
40184
40185if test "$wxUSE_CALCTRL" = "yes"; then
40186 cat >>confdefs.h <<\_ACEOF
40187#define wxUSE_CALENDARCTRL 1
40188_ACEOF
40189
40190 USES_CONTROLS=1
40191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
40192fi
40193
40194if test "$wxUSE_CARET" = "yes"; then
40195 cat >>confdefs.h <<\_ACEOF
40196#define wxUSE_CARET 1
40197_ACEOF
40198
40199 USES_CONTROLS=1
40200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
40201fi
40202
40203if test "$wxUSE_COMBOBOX" = "yes"; then
40204 cat >>confdefs.h <<\_ACEOF
40205#define wxUSE_COMBOBOX 1
40206_ACEOF
40207
40208 USES_CONTROLS=1
40209fi
40210
40211if test "$wxUSE_CHOICE" = "yes"; then
40212 cat >>confdefs.h <<\_ACEOF
40213#define wxUSE_CHOICE 1
40214_ACEOF
40215
40216 USES_CONTROLS=1
40217fi
40218
92bbdbcd
WS
40219if test "$wxUSE_CHOICEBOOK" = "yes"; then
40220 cat >>confdefs.h <<\_ACEOF
40221#define wxUSE_CHOICEBOOK 1
40222_ACEOF
40223
40224 USES_CONTROLS=1
40225fi
40226
a848cd7e
SC
40227if test "$wxUSE_CHECKBOX" = "yes"; then
40228 cat >>confdefs.h <<\_ACEOF
40229#define wxUSE_CHECKBOX 1
40230_ACEOF
40231
40232 USES_CONTROLS=1
40233fi
40234
40235if test "$wxUSE_CHECKLST" = "yes"; then
40236 cat >>confdefs.h <<\_ACEOF
40237#define wxUSE_CHECKLISTBOX 1
40238_ACEOF
40239
40240 USES_CONTROLS=1
40241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40242fi
40243
da98e9be
VZ
40244if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40245 cat >>confdefs.h <<\_ACEOF
40246#define wxUSE_DATEPICKCTRL 1
40247_ACEOF
40248
40249 USES_CONTROLS=1
40250fi
40251
a848cd7e
SC
40252if test "$wxUSE_DISPLAY" = "yes"; then
40253 cat >>confdefs.h <<\_ACEOF
40254#define wxUSE_DISPLAY 1
40255_ACEOF
40256
0b78747f 40257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40258fi
40259
40260if test "$wxUSE_GAUGE" = "yes"; then
40261 cat >>confdefs.h <<\_ACEOF
40262#define wxUSE_GAUGE 1
40263_ACEOF
40264
40265 USES_CONTROLS=1
40266fi
40267
40268if test "$wxUSE_GRID" = "yes"; then
40269 cat >>confdefs.h <<\_ACEOF
40270#define wxUSE_GRID 1
40271_ACEOF
40272
40273 USES_CONTROLS=1
40274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40275fi
40276
40277if test "$wxUSE_IMAGLIST" = "yes"; then
40278 cat >>confdefs.h <<\_ACEOF
40279#define wxUSE_IMAGLIST 1
40280_ACEOF
40281
40282fi
40283
40284if test "$wxUSE_LISTBOOK" = "yes"; then
40285 cat >>confdefs.h <<\_ACEOF
40286#define wxUSE_LISTBOOK 1
40287_ACEOF
40288
40289 USES_CONTROLS=1
40290fi
40291
40292if test "$wxUSE_LISTBOX" = "yes"; then
40293 cat >>confdefs.h <<\_ACEOF
40294#define wxUSE_LISTBOX 1
40295_ACEOF
40296
40297 USES_CONTROLS=1
0b78747f 40298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40299fi
40300
40301if test "$wxUSE_LISTCTRL" = "yes"; then
40302 if test "$wxUSE_IMAGLIST" = "yes"; then
40303 cat >>confdefs.h <<\_ACEOF
40304#define wxUSE_LISTCTRL 1
40305_ACEOF
40306
40307 USES_CONTROLS=1
40308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40309 else
40310 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40311echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40312 fi
40313fi
40314
40315if test "$wxUSE_NOTEBOOK" = "yes"; then
40316 cat >>confdefs.h <<\_ACEOF
40317#define wxUSE_NOTEBOOK 1
40318_ACEOF
40319
40320 USES_CONTROLS=1
40321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40322fi
40323
40324
40325if test "$wxUSE_RADIOBOX" = "yes"; then
40326 cat >>confdefs.h <<\_ACEOF
40327#define wxUSE_RADIOBOX 1
40328_ACEOF
40329
40330 USES_CONTROLS=1
40331fi
40332
40333if test "$wxUSE_RADIOBTN" = "yes"; then
40334 cat >>confdefs.h <<\_ACEOF
40335#define wxUSE_RADIOBTN 1
40336_ACEOF
40337
40338 USES_CONTROLS=1
40339fi
40340
40341if test "$wxUSE_SASH" = "yes"; then
40342 cat >>confdefs.h <<\_ACEOF
40343#define wxUSE_SASH 1
40344_ACEOF
40345
40346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40347fi
40348
40349if test "$wxUSE_SCROLLBAR" = "yes"; then
40350 cat >>confdefs.h <<\_ACEOF
40351#define wxUSE_SCROLLBAR 1
40352_ACEOF
40353
40354 USES_CONTROLS=1
40355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40356fi
40357
40358if test "$wxUSE_SLIDER" = "yes"; then
40359 cat >>confdefs.h <<\_ACEOF
40360#define wxUSE_SLIDER 1
40361_ACEOF
40362
40363 USES_CONTROLS=1
40364fi
40365
40366if test "$wxUSE_SPINBTN" = "yes"; then
40367 cat >>confdefs.h <<\_ACEOF
40368#define wxUSE_SPINBTN 1
40369_ACEOF
40370
40371 USES_CONTROLS=1
40372fi
40373
40374if test "$wxUSE_SPINCTRL" = "yes"; then
40375 cat >>confdefs.h <<\_ACEOF
40376#define wxUSE_SPINCTRL 1
40377_ACEOF
40378
40379 USES_CONTROLS=1
40380fi
40381
40382if test "$wxUSE_SPLITTER" = "yes"; then
40383 cat >>confdefs.h <<\_ACEOF
40384#define wxUSE_SPLITTER 1
40385_ACEOF
40386
40387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40388fi
40389
40390if test "$wxUSE_STATBMP" = "yes"; then
40391 cat >>confdefs.h <<\_ACEOF
40392#define wxUSE_STATBMP 1
40393_ACEOF
40394
40395 USES_CONTROLS=1
40396fi
40397
40398if test "$wxUSE_STATBOX" = "yes"; then
40399 cat >>confdefs.h <<\_ACEOF
40400#define wxUSE_STATBOX 1
40401_ACEOF
40402
40403 USES_CONTROLS=1
40404fi
40405
40406if test "$wxUSE_STATTEXT" = "yes"; then
40407 cat >>confdefs.h <<\_ACEOF
40408#define wxUSE_STATTEXT 1
40409_ACEOF
40410
40411 USES_CONTROLS=1
40412fi
40413
40414if test "$wxUSE_STATLINE" = "yes"; then
40415 cat >>confdefs.h <<\_ACEOF
40416#define wxUSE_STATLINE 1
40417_ACEOF
40418
40419 USES_CONTROLS=1
40420fi
40421
40422if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40423 cat >>confdefs.h <<\_ACEOF
40424#define wxUSE_NATIVE_STATUSBAR 1
40425_ACEOF
40426
a848cd7e
SC
40427 cat >>confdefs.h <<\_ACEOF
40428#define wxUSE_STATUSBAR 1
40429_ACEOF
40430
40431 USES_CONTROLS=1
40432
40433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40434fi
40435
40436if test "$wxUSE_TABDIALOG" = "yes"; then
40437 cat >>confdefs.h <<\_ACEOF
40438#define wxUSE_TAB_DIALOG 1
40439_ACEOF
40440
a848cd7e
SC
40441fi
40442
40443if test "$wxUSE_TEXTCTRL" = "yes"; then
40444 cat >>confdefs.h <<\_ACEOF
40445#define wxUSE_TEXTCTRL 1
40446_ACEOF
40447
40448 USES_CONTROLS=1
40449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40450fi
40451
40452if test "$wxUSE_TOGGLEBTN" = "yes"; then
40453 if test "$wxUSE_COCOA" = 1 ; then
40454 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40455echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40456 wxUSE_TOGGLEBTN=no
40457 fi
40458 if test "$wxUSE_UNIVERSAL" = "yes"; then
40459 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40460echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40461 wxUSE_TOGGLEBTN=no
40462 fi
40463
40464 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40465 cat >>confdefs.h <<\_ACEOF
40466#define wxUSE_TOGGLEBTN 1
40467_ACEOF
40468
40469 USES_CONTROLS=1
40470 fi
40471fi
40472
40473if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40474 cat >>confdefs.h <<\_ACEOF
40475#define wxUSE_TOOLBAR_SIMPLE 1
40476_ACEOF
40477
40478 wxUSE_TOOLBAR="yes"
40479 USES_CONTROLS=1
40480fi
40481
40482if test "$wxUSE_TOOLBAR" = "yes"; then
40483 cat >>confdefs.h <<\_ACEOF
40484#define wxUSE_TOOLBAR 1
40485_ACEOF
40486
40487 USES_CONTROLS=1
40488
40489 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40490 wxUSE_TOOLBAR_NATIVE="yes"
40491 fi
40492
40493 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40494 cat >>confdefs.h <<\_ACEOF
40495#define wxUSE_TOOLBAR_NATIVE 1
40496_ACEOF
40497
40498 USES_CONTROLS=1
40499 fi
40500
40501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40502fi
40503
40504if test "$wxUSE_TOOLTIPS" = "yes"; then
40505 if test "$wxUSE_MOTIF" = 1; then
40506 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40507echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40508 else
40509 if test "$wxUSE_UNIVERSAL" = "yes"; then
40510 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40511echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40512 else
40513 cat >>confdefs.h <<\_ACEOF
40514#define wxUSE_TOOLTIPS 1
40515_ACEOF
40516
40517 fi
40518 fi
40519fi
40520
40521if test "$wxUSE_TREECTRL" = "yes"; then
40522 if test "$wxUSE_IMAGLIST" = "yes"; then
40523 cat >>confdefs.h <<\_ACEOF
40524#define wxUSE_TREECTRL 1
40525_ACEOF
40526
40527 USES_CONTROLS=1
40528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40529 else
40530 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40531echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40532 fi
40533fi
40534
40535if test "$wxUSE_POPUPWIN" = "yes"; then
40536 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40537 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40538echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40539 else
40540 if test "$wxUSE_PM" = 1; then
40541 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40542echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40543 else
40544 cat >>confdefs.h <<\_ACEOF
40545#define wxUSE_POPUPWIN 1
40546_ACEOF
40547
0b78747f 40548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40549
40550 USES_CONTROLS=1
40551 fi
40552 fi
40553fi
40554
0dcd06dd 40555if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40556 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40557 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40558echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40559 else
40560 cat >>confdefs.h <<\_ACEOF
40561#define wxUSE_DIALUP_MANAGER 1
40562_ACEOF
40563
40564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40565 fi
40566fi
40567
a848cd7e
SC
40568if test "$wxUSE_TIPWINDOW" = "yes"; then
40569 if test "$wxUSE_PM" = 1; then
40570 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40571echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40572 else
40573 cat >>confdefs.h <<\_ACEOF
40574#define wxUSE_TIPWINDOW 1
40575_ACEOF
40576
40577 fi
40578fi
40579
40580if test "$USES_CONTROLS" = 1; then
40581 cat >>confdefs.h <<\_ACEOF
40582#define wxUSE_CONTROLS 1
40583_ACEOF
40584
40585fi
40586
40587
40588if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_ACCESSIBILITY 1
40591_ACEOF
40592
40593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40594fi
40595
38b4a946
VZ
40596if test "$wxUSE_DC_CACHEING" = "yes"; then
40597 cat >>confdefs.h <<\_ACEOF
40598#define wxUSE_DC_CACHEING 1
40599_ACEOF
40600
40601fi
40602
a848cd7e
SC
40603if test "$wxUSE_DRAGIMAGE" = "yes"; then
40604 cat >>confdefs.h <<\_ACEOF
40605#define wxUSE_DRAGIMAGE 1
40606_ACEOF
40607
40608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40609fi
40610
40611if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40612 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40613 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40614echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40615 else
40616 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40617#define wxUSE_EXCEPTIONS 1
40618_ACEOF
40619
07bea8f0
VS
40620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40621 fi
a848cd7e
SC
40622fi
40623
40624USE_HTML=0
40625if test "$wxUSE_HTML" = "yes"; then
40626 cat >>confdefs.h <<\_ACEOF
40627#define wxUSE_HTML 1
40628_ACEOF
40629
40630 USE_HTML=1
40631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40632 if test "$wxUSE_MAC" = 1; then
40633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40634 fi
a848cd7e 40635fi
646b6ec1 40636if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40637 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40638 old_CPPFLAGS="$CPPFLAGS"
40639 CPPFLAGS="$CPPFLAGS -x objective-c++"
40640 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40641echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40642if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40643 echo $ECHO_N "(cached) $ECHO_C" >&6
40644else
40645 cat >conftest.$ac_ext <<_ACEOF
40646/* confdefs.h. */
40647_ACEOF
40648cat confdefs.h >>conftest.$ac_ext
40649cat >>conftest.$ac_ext <<_ACEOF
40650/* end confdefs.h. */
40651#include <Carbon/Carbon.h>
40652
40653#include <WebKit/HIWebView.h>
40654_ACEOF
40655rm -f conftest.$ac_objext
40656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40657 (eval $ac_compile) 2>conftest.er1
40658 ac_status=$?
40659 grep -v '^ *+' conftest.er1 >conftest.err
40660 rm -f conftest.er1
40661 cat conftest.err >&5
40662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663 (exit $ac_status); } &&
6ebeb4c7 40664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40666 (eval $ac_try) 2>&5
40667 ac_status=$?
40668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669 (exit $ac_status); }; } &&
40670 { ac_try='test -s conftest.$ac_objext'
40671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40672 (eval $ac_try) 2>&5
40673 ac_status=$?
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); }; }; then
40676 ac_cv_header_WebKit_HIWebView_h=yes
40677else
40678 echo "$as_me: failed program was:" >&5
40679sed 's/^/| /' conftest.$ac_ext >&5
40680
40681ac_cv_header_WebKit_HIWebView_h=no
40682fi
40683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40684fi
40685echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40686echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40687if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40688
40689 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40690#define wxUSE_WEBKIT 1
40691_ACEOF
40692
07bea8f0
VS
40693 WEBKIT_LINK="-framework WebKit"
40694
40695else
40696
40697 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40698echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40699 wxUSE_WEBKIT=no
40700
646b6ec1
VS
40701fi
40702
07bea8f0
VS
40703
40704 CPPFLAGS="$old_CPPFLAGS"
40705 elif test "$wxUSE_COCOA" = 1; then
40706 cat >>confdefs.h <<\_ACEOF
40707#define wxUSE_WEBKIT 1
40708_ACEOF
40709
40710 else
40711 wxUSE_WEBKIT=no
40712 fi
40713fi
40714
9a8f0513
VS
40715USE_XRC=0
40716if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40717 if test "$wxUSE_XML" != "yes"; then
40718 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40719echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40720 wxUSE_XRC=no
40721 else
40722 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40723#define wxUSE_XRC 1
40724_ACEOF
40725
d2ebf0b7
VS
40726 USE_XRC=1
40727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40728 fi
9a8f0513 40729fi
07bea8f0 40730
a848cd7e
SC
40731if test "$wxUSE_MENUS" = "yes"; then
40732 cat >>confdefs.h <<\_ACEOF
40733#define wxUSE_MENUS 1
40734_ACEOF
40735
40736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40737fi
40738
40739if test "$wxUSE_METAFILE" = "yes"; then
40740 cat >>confdefs.h <<\_ACEOF
40741#define wxUSE_METAFILE 1
40742_ACEOF
40743
40744fi
40745
40746if test "$wxUSE_MIMETYPE" = "yes"; then
40747 cat >>confdefs.h <<\_ACEOF
40748#define wxUSE_MIMETYPE 1
40749_ACEOF
40750
40751fi
40752
40753if test "$wxUSE_MINIFRAME" = "yes"; then
40754 cat >>confdefs.h <<\_ACEOF
40755#define wxUSE_MINIFRAME 1
40756_ACEOF
40757
40758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40759fi
40760
40761if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40762 cat >>confdefs.h <<\_ACEOF
40763#define wxUSE_SYSTEM_OPTIONS 1
40764_ACEOF
40765
40766 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40767 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40769 fi
40770fi
40771
40772
40773if test "$wxUSE_VALIDATORS" = "yes"; then
40774 cat >>confdefs.h <<\_ACEOF
40775#define wxUSE_VALIDATORS 1
40776_ACEOF
40777
40778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40779fi
40780
40781if test "$wxUSE_PALETTE" = "yes" ; then
40782 cat >>confdefs.h <<\_ACEOF
40783#define wxUSE_PALETTE 1
40784_ACEOF
40785
40786fi
40787
40788if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40789 LIBS=" -lunicows $LIBS"
40790fi
40791
40792
40793if test "$wxUSE_IMAGE" = "yes" ; then
40794 cat >>confdefs.h <<\_ACEOF
40795#define wxUSE_IMAGE 1
40796_ACEOF
40797
40798
40799 if test "$wxUSE_GIF" = "yes" ; then
40800 cat >>confdefs.h <<\_ACEOF
40801#define wxUSE_GIF 1
40802_ACEOF
40803
40804 fi
40805
40806 if test "$wxUSE_PCX" = "yes" ; then
40807 cat >>confdefs.h <<\_ACEOF
40808#define wxUSE_PCX 1
40809_ACEOF
40810
40811 fi
40812
40813 if test "$wxUSE_IFF" = "yes" ; then
40814 cat >>confdefs.h <<\_ACEOF
40815#define wxUSE_IFF 1
40816_ACEOF
40817
40818 fi
40819
40820 if test "$wxUSE_PNM" = "yes" ; then
40821 cat >>confdefs.h <<\_ACEOF
40822#define wxUSE_PNM 1
40823_ACEOF
40824
40825 fi
40826
40827 if test "$wxUSE_XPM" = "yes" ; then
40828 cat >>confdefs.h <<\_ACEOF
40829#define wxUSE_XPM 1
40830_ACEOF
40831
40832 fi
40833
40834 if test "$wxUSE_ICO_CUR" = "yes" ; then
40835 cat >>confdefs.h <<\_ACEOF
40836#define wxUSE_ICO_CUR 1
40837_ACEOF
40838
40839 fi
40840fi
40841
40842
40843if test "$wxUSE_CHOICEDLG" = "yes"; then
40844 cat >>confdefs.h <<\_ACEOF
40845#define wxUSE_CHOICEDLG 1
40846_ACEOF
40847
40848fi
40849
40850if test "$wxUSE_COLOURDLG" = "yes"; then
40851 cat >>confdefs.h <<\_ACEOF
40852#define wxUSE_COLOURDLG 1
40853_ACEOF
40854
40855fi
40856
40857if test "$wxUSE_FILEDLG" = "yes"; then
40858 cat >>confdefs.h <<\_ACEOF
40859#define wxUSE_FILEDLG 1
40860_ACEOF
40861
40862fi
40863
40864if test "$wxUSE_FINDREPLDLG" = "yes"; then
40865 cat >>confdefs.h <<\_ACEOF
40866#define wxUSE_FINDREPLDLG 1
40867_ACEOF
40868
40869fi
40870
40871if test "$wxUSE_FONTDLG" = "yes"; then
40872 cat >>confdefs.h <<\_ACEOF
40873#define wxUSE_FONTDLG 1
40874_ACEOF
40875
40876fi
40877
40878if test "$wxUSE_DIRDLG" = "yes"; then
40879 if test "$wxUSE_TREECTRL" != "yes"; then
40880 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40881echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40882 else
40883 cat >>confdefs.h <<\_ACEOF
40884#define wxUSE_DIRDLG 1
40885_ACEOF
40886
40887 fi
40888fi
40889
40890if test "$wxUSE_MSGDLG" = "yes"; then
40891 cat >>confdefs.h <<\_ACEOF
40892#define wxUSE_MSGDLG 1
40893_ACEOF
40894
40895fi
40896
40897if test "$wxUSE_NUMBERDLG" = "yes"; then
40898 cat >>confdefs.h <<\_ACEOF
40899#define wxUSE_NUMBERDLG 1
40900_ACEOF
40901
40902fi
40903
40904if test "$wxUSE_PROGRESSDLG" = "yes"; then
40905 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40906 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40907echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40908 else
40909 cat >>confdefs.h <<\_ACEOF
40910#define wxUSE_PROGRESSDLG 1
40911_ACEOF
40912
40913 fi
40914fi
40915
40916if test "$wxUSE_SPLASH" = "yes"; then
40917 cat >>confdefs.h <<\_ACEOF
40918#define wxUSE_SPLASH 1
40919_ACEOF
40920
2057db16 40921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40922fi
40923
40924if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40925 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40926 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40927echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40928 else
40929 cat >>confdefs.h <<\_ACEOF
40930#define wxUSE_STARTUP_TIPS 1
40931_ACEOF
40932
40933 fi
40934fi
40935
40936if test "$wxUSE_TEXTDLG" = "yes"; then
40937 cat >>confdefs.h <<\_ACEOF
40938#define wxUSE_TEXTDLG 1
40939_ACEOF
40940
40941fi
40942
40943if test "$wxUSE_WIZARDDLG" = "yes"; then
40944 cat >>confdefs.h <<\_ACEOF
40945#define wxUSE_WIZARDDLG 1
40946_ACEOF
40947
40948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40949fi
40950
40951
ce756cb0 40952if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40953 if test "$wxUSE_GTK" = 1; then
40954 wxUSE_GSTREAMER="yes"
40955
ce756cb0 40956
dae87f93 40957 succeeded=no
ce756cb0 40958
dae87f93
RN
40959 if test -z "$PKG_CONFIG"; then
40960 # Extract the first word of "pkg-config", so it can be a program name with args.
40961set dummy pkg-config; ac_word=$2
40962echo "$as_me:$LINENO: checking for $ac_word" >&5
40963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40964if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40965 echo $ECHO_N "(cached) $ECHO_C" >&6
40966else
40967 case $PKG_CONFIG in
40968 [\\/]* | ?:[\\/]*)
40969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40970 ;;
40971 *)
40972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40973for as_dir in $PATH
40974do
40975 IFS=$as_save_IFS
40976 test -z "$as_dir" && as_dir=.
40977 for ac_exec_ext in '' $ac_executable_extensions; do
40978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40981 break 2
40982 fi
40983done
40984done
40985
40986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40987 ;;
40988esac
40989fi
40990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40991
40992if test -n "$PKG_CONFIG"; then
40993 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40994echo "${ECHO_T}$PKG_CONFIG" >&6
40995else
40996 echo "$as_me:$LINENO: result: no" >&5
40997echo "${ECHO_T}no" >&6
40998fi
40999
41000 fi
41001
41002 if test "$PKG_CONFIG" = "no" ; then
41003 echo "*** The pkg-config script could not be found. Make sure it is"
41004 echo "*** in your path, or set the PKG_CONFIG environment variable"
41005 echo "*** to the full path to pkg-config."
41006 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41007 else
41008 PKG_CONFIG_MIN_VERSION=0.9.0
41009 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41010 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41011echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41012
41013 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41014 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41015echo "${ECHO_T}yes" >&6
dae87f93 41016 succeeded=yes
ce756cb0 41017
dae87f93
RN
41018 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41019echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41020 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41021 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41022echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41023
41024 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41025echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41026 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41027 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41028echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41029 else
41030 GSTREAMER_CFLAGS=""
41031 GSTREAMER_LIBS=""
41032 ## If we have a custom action on failure, don't print errors, but
41033 ## do set a variable so people can do so.
41034 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41035
dae87f93
RN
41036 fi
41037
41038
41039
41040 else
41041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41043 fi
41044 fi
41045
41046 if test $succeeded = yes; then
41047
41048 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41049 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41050
ce756cb0 41051 else
dae87f93
RN
41052
41053 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41054echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41055 wxUSE_GSTREAMER="no"
41056
41057 fi
41058
41059
41060
41061
41062
41063 if test "x$GST_INSPECT" == "x"; then
41064 # Extract the first word of "gst-inspect", so it can be a program name with args.
41065set dummy gst-inspect; ac_word=$2
41066echo "$as_me:$LINENO: checking for $ac_word" >&5
41067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41068if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41069 echo $ECHO_N "(cached) $ECHO_C" >&6
41070else
41071 if test -n "$GST_INSPECT"; then
41072 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41073else
41074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41075for as_dir in $PATH
41076do
41077 IFS=$as_save_IFS
41078 test -z "$as_dir" && as_dir=.
41079 for ac_exec_ext in '' $ac_executable_extensions; do
41080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41081 ac_cv_prog_GST_INSPECT="gst-inspect"
41082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41083 break 2
ce756cb0 41084 fi
dae87f93
RN
41085done
41086done
41087
41088fi
41089fi
41090GST_INSPECT=$ac_cv_prog_GST_INSPECT
41091if test -n "$GST_INSPECT"; then
41092 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41093echo "${ECHO_T}$GST_INSPECT" >&6
41094else
41095 echo "$as_me:$LINENO: result: no" >&5
41096echo "${ECHO_T}no" >&6
41097fi
41098
41099 fi
41100
41101 if test "x$GST_INSPECT" != "x"; then
41102 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41103echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41104 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41105 echo "$as_me:$LINENO: result: found." >&5
41106echo "${ECHO_T}found." >&6
ce756cb0 41107
ce756cb0 41108 else
dae87f93
RN
41109 echo "$as_me:$LINENO: result: not found." >&5
41110echo "${ECHO_T}not found." >&6
41111
41112 wxUSE_GSTREAMER="no"
41113 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41114echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41115
41116 fi
41117 fi
41118
41119
41120 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41121echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41122if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41123 echo $ECHO_N "(cached) $ECHO_C" >&6
41124else
41125 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41126/* confdefs.h. */
41127_ACEOF
41128cat confdefs.h >>conftest.$ac_ext
41129cat >>conftest.$ac_ext <<_ACEOF
41130/* end confdefs.h. */
dae87f93 41131#include <gst/gst.h>
ce756cb0 41132
dae87f93 41133#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
41134_ACEOF
41135rm -f conftest.$ac_objext
41136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41137 (eval $ac_compile) 2>conftest.er1
41138 ac_status=$?
41139 grep -v '^ *+' conftest.er1 >conftest.err
41140 rm -f conftest.er1
41141 cat conftest.err >&5
41142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41143 (exit $ac_status); } &&
6ebeb4c7 41144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
41145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41146 (eval $ac_try) 2>&5
41147 ac_status=$?
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; } &&
41150 { ac_try='test -s conftest.$ac_objext'
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; }; then
dae87f93 41156 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
41157else
41158 echo "$as_me: failed program was:" >&5
41159sed 's/^/| /' conftest.$ac_ext >&5
41160
dae87f93 41161ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
41162fi
41163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
41164fi
41165echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41166echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
41167if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
41168 :
41169else
ce756cb0 41170
dae87f93
RN
41171 wxUSE_GSTREAMER="no"
41172 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
41173echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 41174
dae87f93 41175fi
ce756cb0 41176
dae87f93
RN
41177
41178
41179 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
41180echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
41181
41182ac_find_libraries=
41183for ac_dir in $SEARCH_LIB /usr/lib;
41184 do
3eca31dc 41185 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
41186 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
41187 ac_find_libraries=$ac_dir
41188 break 2
41189 fi
41190 done
41191 done
41192
ce756cb0 41193
dae87f93
RN
41194 if test "$ac_find_libraries" = "" ; then
41195 echo "$as_me:$LINENO: result: no" >&5
41196echo "${ECHO_T}no" >&6
41197 wxUSE_GSTREAMER="no"
41198 else
41199 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41200echo "${ECHO_T}yes" >&6
dae87f93 41201 fi
ce756cb0 41202
dae87f93
RN
41203 if test "$wxUSE_GSTREAMER" = "yes"; then
41204 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
41205#define wxUSE_GSTREAMER 1
41206_ACEOF
41207
dae87f93
RN
41208 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
41209echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
41210 fi
41211 fi
41212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
41213 cat >>confdefs.h <<\_ACEOF
41214#define wxUSE_MEDIACTRL 1
41215_ACEOF
41216
41217fi
41218
41219
a848cd7e
SC
41220if test "$cross_compiling" = "yes"; then
41221 OSINFO="\"$host\""
41222else
41223 OSINFO=`uname -s -r -m`
41224 OSINFO="\"$OSINFO\""
41225fi
41226
41227cat >>confdefs.h <<_ACEOF
41228#define WXWIN_OS_DESCRIPTION $OSINFO
41229_ACEOF
41230
41231
41232
41233if test "x$prefix" != "xNONE"; then
41234 wxPREFIX=$prefix
41235else
41236 wxPREFIX=$ac_default_prefix
41237fi
41238
41239cat >>confdefs.h <<_ACEOF
41240#define wxINSTALL_PREFIX "$wxPREFIX"
41241_ACEOF
41242
41243
a848cd7e
SC
41244
41245
41246CORE_BASE_LIBS="net base"
41247CORE_GUI_LIBS="adv core"
41248
41249if test "$wxUSE_XML" = "yes" ; then
41250 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41251fi
41252if test "$wxUSE_ODBC" != "no" ; then
41253 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41254 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41255fi
41256if test "$wxUSE_HTML" = "yes" ; then
41257 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41258fi
61639efb
VZ
41259if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41260 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41261fi
9a8f0513
VS
41262if test "$wxUSE_XRC" = "yes" ; then
41263 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41264fi
a848cd7e
SC
41265
41266if test "$wxUSE_GUI" != "yes"; then
41267 CORE_GUI_LIBS=""
41268fi
41269
41270
41271
41272
41273
41274
41275
41276
41277if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41278 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41279 if test "$USE_DARWIN" = 1; then
41280 LDFLAGS="$LDFLAGS -framework QuickTime"
41281 else
41282 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41283 fi
07bea8f0 41284 fi
5dcf30a0 41285 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41286 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41287 else
41288 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41289 fi
a848cd7e
SC
41290fi
41291if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41292 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41293 if test "$wxUSE_MEDIACTRL" = "yes"; then
41294 LDFLAGS="$LDFLAGS -framework QuickTime"
41295 fi
a848cd7e 41296fi
19b27e78
MW
41297if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41298 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41299fi
a848cd7e
SC
41300
41301
41302LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41303
41304have_cos=0
41305have_floor=0
41306
41307for ac_func in cos
41308do
41309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41310echo "$as_me:$LINENO: checking for $ac_func" >&5
41311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41312if eval "test \"\${$as_ac_var+set}\" = set"; then
41313 echo $ECHO_N "(cached) $ECHO_C" >&6
41314else
41315 cat >conftest.$ac_ext <<_ACEOF
41316/* confdefs.h. */
41317_ACEOF
41318cat confdefs.h >>conftest.$ac_ext
41319cat >>conftest.$ac_ext <<_ACEOF
41320/* end confdefs.h. */
ac1cb8d3
VS
41321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41323#define $ac_func innocuous_$ac_func
41324
a848cd7e
SC
41325/* System header to define __stub macros and hopefully few prototypes,
41326 which can conflict with char $ac_func (); below.
41327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41328 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41329
a848cd7e
SC
41330#ifdef __STDC__
41331# include <limits.h>
41332#else
41333# include <assert.h>
41334#endif
ac1cb8d3
VS
41335
41336#undef $ac_func
41337
a848cd7e
SC
41338/* Override any gcc2 internal prototype to avoid an error. */
41339#ifdef __cplusplus
41340extern "C"
41341{
41342#endif
41343/* We use char because int might match the return type of a gcc2
41344 builtin and then its argument prototype would still apply. */
41345char $ac_func ();
41346/* The GNU C library defines this for functions which it implements
41347 to always fail with ENOSYS. Some functions are actually named
41348 something starting with __ and the normal name is an alias. */
41349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41350choke me
41351#else
41352char (*f) () = $ac_func;
41353#endif
41354#ifdef __cplusplus
41355}
41356#endif
41357
41358int
41359main ()
41360{
41361return f != $ac_func;
41362 ;
41363 return 0;
41364}
41365_ACEOF
41366rm -f conftest.$ac_objext conftest$ac_exeext
41367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41368 (eval $ac_link) 2>conftest.er1
a848cd7e 41369 ac_status=$?
ac1cb8d3
VS
41370 grep -v '^ *+' conftest.er1 >conftest.err
41371 rm -f conftest.er1
41372 cat conftest.err >&5
a848cd7e
SC
41373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41374 (exit $ac_status); } &&
6ebeb4c7 41375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41377 (eval $ac_try) 2>&5
41378 ac_status=$?
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); }; } &&
41381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41383 (eval $ac_try) 2>&5
41384 ac_status=$?
41385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); }; }; then
41387 eval "$as_ac_var=yes"
41388else
41389 echo "$as_me: failed program was:" >&5
41390sed 's/^/| /' conftest.$ac_ext >&5
41391
41392eval "$as_ac_var=no"
41393fi
ac1cb8d3
VS
41394rm -f conftest.err conftest.$ac_objext \
41395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41396fi
41397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41398echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41399if test `eval echo '${'$as_ac_var'}'` = yes; then
41400 cat >>confdefs.h <<_ACEOF
41401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41402_ACEOF
41403 have_cos=1
41404fi
41405done
41406
41407
41408for ac_func in floor
41409do
41410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41411echo "$as_me:$LINENO: checking for $ac_func" >&5
41412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41413if eval "test \"\${$as_ac_var+set}\" = set"; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41415else
41416 cat >conftest.$ac_ext <<_ACEOF
41417/* confdefs.h. */
41418_ACEOF
41419cat confdefs.h >>conftest.$ac_ext
41420cat >>conftest.$ac_ext <<_ACEOF
41421/* end confdefs.h. */
ac1cb8d3
VS
41422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41424#define $ac_func innocuous_$ac_func
41425
a848cd7e
SC
41426/* System header to define __stub macros and hopefully few prototypes,
41427 which can conflict with char $ac_func (); below.
41428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41429 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41430
a848cd7e
SC
41431#ifdef __STDC__
41432# include <limits.h>
41433#else
41434# include <assert.h>
41435#endif
ac1cb8d3
VS
41436
41437#undef $ac_func
41438
a848cd7e
SC
41439/* Override any gcc2 internal prototype to avoid an error. */
41440#ifdef __cplusplus
41441extern "C"
41442{
41443#endif
41444/* We use char because int might match the return type of a gcc2
41445 builtin and then its argument prototype would still apply. */
41446char $ac_func ();
41447/* The GNU C library defines this for functions which it implements
41448 to always fail with ENOSYS. Some functions are actually named
41449 something starting with __ and the normal name is an alias. */
41450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41451choke me
41452#else
41453char (*f) () = $ac_func;
41454#endif
41455#ifdef __cplusplus
41456}
41457#endif
41458
41459int
41460main ()
41461{
41462return f != $ac_func;
41463 ;
41464 return 0;
41465}
41466_ACEOF
41467rm -f conftest.$ac_objext conftest$ac_exeext
41468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41469 (eval $ac_link) 2>conftest.er1
a848cd7e 41470 ac_status=$?
ac1cb8d3
VS
41471 grep -v '^ *+' conftest.er1 >conftest.err
41472 rm -f conftest.er1
41473 cat conftest.err >&5
a848cd7e
SC
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); } &&
6ebeb4c7 41476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41479 ac_status=$?
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; } &&
41482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488 eval "$as_ac_var=yes"
41489else
41490 echo "$as_me: failed program was:" >&5
41491sed 's/^/| /' conftest.$ac_ext >&5
41492
41493eval "$as_ac_var=no"
41494fi
ac1cb8d3
VS
41495rm -f conftest.err conftest.$ac_objext \
41496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41497fi
41498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41500if test `eval echo '${'$as_ac_var'}'` = yes; then
41501 cat >>confdefs.h <<_ACEOF
41502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41503_ACEOF
41504 have_floor=1
41505fi
41506done
41507
41508echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41509echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41510if test "$have_cos" = 1 -a "$have_floor" = 1; then
41511 echo "$as_me:$LINENO: result: yes" >&5
41512echo "${ECHO_T}yes" >&6
41513else
41514 echo "$as_me:$LINENO: result: no" >&5
41515echo "${ECHO_T}no" >&6
41516 LIBS="$LIBS -lm"
41517 # use different functions to avoid configure caching
41518 have_sin=0
41519 have_ceil=0
41520
41521for ac_func in sin
41522do
41523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41524echo "$as_me:$LINENO: checking for $ac_func" >&5
41525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41526if eval "test \"\${$as_ac_var+set}\" = set"; then
41527 echo $ECHO_N "(cached) $ECHO_C" >&6
41528else
41529 cat >conftest.$ac_ext <<_ACEOF
41530/* confdefs.h. */
41531_ACEOF
41532cat confdefs.h >>conftest.$ac_ext
41533cat >>conftest.$ac_ext <<_ACEOF
41534/* end confdefs.h. */
ac1cb8d3
VS
41535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41537#define $ac_func innocuous_$ac_func
41538
a848cd7e
SC
41539/* System header to define __stub macros and hopefully few prototypes,
41540 which can conflict with char $ac_func (); below.
41541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41543
a848cd7e
SC
41544#ifdef __STDC__
41545# include <limits.h>
41546#else
41547# include <assert.h>
41548#endif
ac1cb8d3
VS
41549
41550#undef $ac_func
41551
a848cd7e
SC
41552/* Override any gcc2 internal prototype to avoid an error. */
41553#ifdef __cplusplus
41554extern "C"
41555{
41556#endif
41557/* We use char because int might match the return type of a gcc2
41558 builtin and then its argument prototype would still apply. */
41559char $ac_func ();
41560/* The GNU C library defines this for functions which it implements
41561 to always fail with ENOSYS. Some functions are actually named
41562 something starting with __ and the normal name is an alias. */
41563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41564choke me
41565#else
41566char (*f) () = $ac_func;
41567#endif
41568#ifdef __cplusplus
41569}
41570#endif
41571
41572int
41573main ()
41574{
41575return f != $ac_func;
41576 ;
41577 return 0;
41578}
41579_ACEOF
41580rm -f conftest.$ac_objext conftest$ac_exeext
41581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41582 (eval $ac_link) 2>conftest.er1
a848cd7e 41583 ac_status=$?
ac1cb8d3
VS
41584 grep -v '^ *+' conftest.er1 >conftest.err
41585 rm -f conftest.er1
41586 cat conftest.err >&5
a848cd7e
SC
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); } &&
6ebeb4c7 41589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591 (eval $ac_try) 2>&5
41592 ac_status=$?
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); }; } &&
41595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41597 (eval $ac_try) 2>&5
41598 ac_status=$?
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); }; }; then
41601 eval "$as_ac_var=yes"
41602else
41603 echo "$as_me: failed program was:" >&5
41604sed 's/^/| /' conftest.$ac_ext >&5
41605
41606eval "$as_ac_var=no"
41607fi
ac1cb8d3
VS
41608rm -f conftest.err conftest.$ac_objext \
41609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41610fi
41611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41613if test `eval echo '${'$as_ac_var'}'` = yes; then
41614 cat >>confdefs.h <<_ACEOF
41615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41616_ACEOF
41617 have_sin=1
41618fi
41619done
41620
41621
41622for ac_func in ceil
41623do
41624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41625echo "$as_me:$LINENO: checking for $ac_func" >&5
41626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41627if eval "test \"\${$as_ac_var+set}\" = set"; then
41628 echo $ECHO_N "(cached) $ECHO_C" >&6
41629else
41630 cat >conftest.$ac_ext <<_ACEOF
41631/* confdefs.h. */
41632_ACEOF
41633cat confdefs.h >>conftest.$ac_ext
41634cat >>conftest.$ac_ext <<_ACEOF
41635/* end confdefs.h. */
ac1cb8d3
VS
41636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41638#define $ac_func innocuous_$ac_func
41639
a848cd7e
SC
41640/* System header to define __stub macros and hopefully few prototypes,
41641 which can conflict with char $ac_func (); below.
41642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41643 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41644
a848cd7e
SC
41645#ifdef __STDC__
41646# include <limits.h>
41647#else
41648# include <assert.h>
41649#endif
ac1cb8d3
VS
41650
41651#undef $ac_func
41652
a848cd7e
SC
41653/* Override any gcc2 internal prototype to avoid an error. */
41654#ifdef __cplusplus
41655extern "C"
41656{
41657#endif
41658/* We use char because int might match the return type of a gcc2
41659 builtin and then its argument prototype would still apply. */
41660char $ac_func ();
41661/* The GNU C library defines this for functions which it implements
41662 to always fail with ENOSYS. Some functions are actually named
41663 something starting with __ and the normal name is an alias. */
41664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41665choke me
41666#else
41667char (*f) () = $ac_func;
41668#endif
41669#ifdef __cplusplus
41670}
41671#endif
41672
41673int
41674main ()
41675{
41676return f != $ac_func;
41677 ;
41678 return 0;
41679}
41680_ACEOF
41681rm -f conftest.$ac_objext conftest$ac_exeext
41682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41683 (eval $ac_link) 2>conftest.er1
a848cd7e 41684 ac_status=$?
ac1cb8d3
VS
41685 grep -v '^ *+' conftest.er1 >conftest.err
41686 rm -f conftest.er1
41687 cat conftest.err >&5
a848cd7e
SC
41688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689 (exit $ac_status); } &&
6ebeb4c7 41690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41692 (eval $ac_try) 2>&5
41693 ac_status=$?
41694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695 (exit $ac_status); }; } &&
41696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41698 (eval $ac_try) 2>&5
41699 ac_status=$?
41700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701 (exit $ac_status); }; }; then
41702 eval "$as_ac_var=yes"
41703else
41704 echo "$as_me: failed program was:" >&5
41705sed 's/^/| /' conftest.$ac_ext >&5
41706
41707eval "$as_ac_var=no"
41708fi
ac1cb8d3
VS
41709rm -f conftest.err conftest.$ac_objext \
41710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41711fi
41712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41714if test `eval echo '${'$as_ac_var'}'` = yes; then
41715 cat >>confdefs.h <<_ACEOF
41716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41717_ACEOF
41718 have_ceil=1
41719fi
41720done
41721
41722 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41723echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41724 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41725 echo "$as_me:$LINENO: result: yes" >&5
41726echo "${ECHO_T}yes" >&6
41727 else
41728 echo "$as_me:$LINENO: result: no" >&5
41729echo "${ECHO_T}no" >&6
41730 # not sure we should warn the user, crash, etc.
41731 fi
41732fi
41733
41734if test "$wxUSE_GUI" = "yes"; then
41735
41736
8bce5cda
MW
41737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41738 dynamic erase event exec font image minimal mobile \
41739 mobile/wxedit mobile/styles propsize render \
41740 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41741
41742 if test "$wxUSE_MONOLITHIC" != "yes"; then
41743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41744 fi
0b78747f 41745 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41747 if test "$wxUSE_UNIVERSAL" != "yes"; then
41748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41749 fi
41750 fi
41751 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41753 fi
a848cd7e
SC
41754else
41755 SAMPLES_SUBDIRS="console"
41756fi
41757
41758
ceec2216 41759INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41760-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41761
41762if test "$GXX" = yes ; then
6ebeb4c7 41763 CWARNINGS="-Wall -Wundef"
5294a27e 41764 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41765fi
a848cd7e
SC
41766
41767EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41768
0c3c69fc 41769CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41770CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41771CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41772
95986553
DE
41773if test "x$MWCC" = "xyes"; then
41774
41775 CC="$CC -cwd source -I-"
41776 CXX="$CXX -cwd source -I-"
41777fi
41778
a848cd7e 41779
0c3c69fc 41780LIBS=`echo $LIBS`
a848cd7e
SC
41781EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41782EXTRALIBS_XML="$EXPAT_LINK"
41783EXTRALIBS_HTML="$MSPACK_LINK"
41784EXTRALIBS_ODBC="$ODBC_LINK"
41785if test "$wxUSE_GUI" = "yes"; then
2e350179 41786 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41787fi
41788if test "$wxUSE_OPENGL" = "yes"; then
41789 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41790fi
41791
41792LDFLAGS="$LDFLAGS $PROFILE"
41793
41794if test "$wxUSE_GTK" = 1; then
41795 WXCONFIG_INCLUDE=
41796else
41797 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41798fi
41799
41800WXCONFIG_EXTRALIBS="$LIBS"
41801
41802if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41803 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41804fi
41805if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41806 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41807fi
41808if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41809 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41810fi
41811if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41812 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41813fi
41814if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41815 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41816fi
41817if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41818 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41819fi
41820if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41821 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41822fi
41823
41824for i in $wxconfig_3rdparty ; do
74802184 41825 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41826done
41827
41828
41829if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41830 WXUNIV=1
41831else
41832 WXUNIV=0
41833fi
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843if test $wxUSE_MONOLITHIC = "yes" ; then
41844 MONOLITHIC=1
41845else
41846 MONOLITHIC=0
41847fi
41848
41849if test $wxUSE_PLUGINS = "yes" ; then
41850 USE_PLUGINS=1
41851else
41852 USE_PLUGINS=0
41853fi
41854
41855if test $wxUSE_ODBC != "no" ; then
41856 USE_ODBC=1
41857else
41858 USE_ODBC=0
41859fi
41860
16358932
VZ
41861if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41862 USE_QA=1
41863else
41864 USE_QA=0
41865fi
41866
a848cd7e
SC
41867if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41868 OFFICIAL_BUILD=1
41869else
41870 OFFICIAL_BUILD=0
41871fi
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
ceec2216 41891
d1c38808 41892
a848cd7e
SC
41893
41894
41895TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41896
41897
41898
41899
41900
41901
41902
41903
4d4ff94c
VZ
41904case "$TOOLKIT" in
41905 GTK)
41906 TOOLKIT_USER="GTK+"
41907 if test "$WXGTK20" = 1; then
41908 TOOLKIT_USER="$TOOLKIT_USER 2"
41909 fi
9a8f0513 41910 ;;
4d4ff94c
VZ
41911
41912 *)
41913 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41914 ;;
4d4ff94c 41915esac
a848cd7e 41916
fb00f58d
JS
41917if test "$wxUSE_WINE" = "yes"; then
41918 BAKEFILE_FORCE_PLATFORM=win32
41919fi
41920
9a8f0513 41921
1e9e8aba
DE
41922
41923
a848cd7e
SC
41924 if test "x$BAKEFILE_HOST" = "x"; then
41925 BAKEFILE_HOST="${host}"
41926 fi
41927
41928 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41929
41930 if test -n "$ac_tool_prefix"; then
41931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41933echo "$as_me:$LINENO: checking for $ac_word" >&5
41934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41935if test "${ac_cv_prog_RANLIB+set}" = set; then
41936 echo $ECHO_N "(cached) $ECHO_C" >&6
41937else
41938 if test -n "$RANLIB"; then
41939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41940else
41941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41942for as_dir in $PATH
41943do
41944 IFS=$as_save_IFS
41945 test -z "$as_dir" && as_dir=.
41946 for ac_exec_ext in '' $ac_executable_extensions; do
41947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41950 break 2
41951 fi
41952done
41953done
41954
41955fi
41956fi
41957RANLIB=$ac_cv_prog_RANLIB
41958if test -n "$RANLIB"; then
41959 echo "$as_me:$LINENO: result: $RANLIB" >&5
41960echo "${ECHO_T}$RANLIB" >&6
41961else
41962 echo "$as_me:$LINENO: result: no" >&5
41963echo "${ECHO_T}no" >&6
41964fi
41965
41966fi
41967if test -z "$ac_cv_prog_RANLIB"; then
41968 ac_ct_RANLIB=$RANLIB
41969 # Extract the first word of "ranlib", so it can be a program name with args.
41970set dummy ranlib; ac_word=$2
41971echo "$as_me:$LINENO: checking for $ac_word" >&5
41972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41973if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41974 echo $ECHO_N "(cached) $ECHO_C" >&6
41975else
41976 if test -n "$ac_ct_RANLIB"; then
41977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41978else
41979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41980for as_dir in $PATH
41981do
41982 IFS=$as_save_IFS
41983 test -z "$as_dir" && as_dir=.
41984 for ac_exec_ext in '' $ac_executable_extensions; do
41985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41986 ac_cv_prog_ac_ct_RANLIB="ranlib"
41987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41988 break 2
41989 fi
41990done
41991done
41992
41993 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41994fi
41995fi
41996ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41997if test -n "$ac_ct_RANLIB"; then
41998 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41999echo "${ECHO_T}$ac_ct_RANLIB" >&6
42000else
42001 echo "$as_me:$LINENO: result: no" >&5
42002echo "${ECHO_T}no" >&6
42003fi
42004
42005 RANLIB=$ac_ct_RANLIB
42006else
42007 RANLIB="$ac_cv_prog_RANLIB"
42008fi
42009
42010 # Find a good install program. We prefer a C program (faster),
42011# so one script is as good as another. But avoid the broken or
42012# incompatible versions:
42013# SysV /etc/install, /usr/sbin/install
42014# SunOS /usr/etc/install
42015# IRIX /sbin/install
42016# AIX /bin/install
42017# AmigaOS /C/install, which installs bootblocks on floppy discs
42018# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42019# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42020# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42021# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42022# ./install, which can be erroneously created by make from ./install.sh.
42023echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42024echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42025if test -z "$INSTALL"; then
42026if test "${ac_cv_path_install+set}" = set; then
42027 echo $ECHO_N "(cached) $ECHO_C" >&6
42028else
42029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42030for as_dir in $PATH
42031do
42032 IFS=$as_save_IFS
42033 test -z "$as_dir" && as_dir=.
42034 # Account for people who put trailing slashes in PATH elements.
42035case $as_dir/ in
42036 ./ | .// | /cC/* | \
42037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42039 /usr/ucb/* ) ;;
42040 *)
42041 # OSF1 and SCO ODT 3.0 have their own names for install.
42042 # Don't use installbsd from OSF since it installs stuff as root
42043 # by default.
42044 for ac_prog in ginstall scoinst install; do
42045 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42046 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42047 if test $ac_prog = install &&
42048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42049 # AIX install. It has an incompatible calling convention.
42050 :
42051 elif test $ac_prog = install &&
42052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42053 # program-specific install script used by HP pwplus--don't use.
42054 :
42055 else
42056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42057 break 3
42058 fi
42059 fi
a848cd7e
SC
42060 done
42061 done
42062 ;;
42063esac
42064done
42065
42066
42067fi
42068 if test "${ac_cv_path_install+set}" = set; then
42069 INSTALL=$ac_cv_path_install
42070 else
42071 # As a last resort, use the slow shell script. We don't cache a
42072 # path for INSTALL within a source directory, because that will
42073 # break other packages using the cache if that directory is
42074 # removed, or if the path is relative.
42075 INSTALL=$ac_install_sh
42076 fi
42077fi
42078echo "$as_me:$LINENO: result: $INSTALL" >&5
42079echo "${ECHO_T}$INSTALL" >&6
42080
42081# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42082# It thinks the first close brace ends the variable substitution.
42083test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42084
42085test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42086
42087test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42088
42089 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42090echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42091LN_S=$as_ln_s
42092if test "$LN_S" = "ln -s"; then
42093 echo "$as_me:$LINENO: result: yes" >&5
42094echo "${ECHO_T}yes" >&6
42095else
42096 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42097echo "${ECHO_T}no, using $LN_S" >&6
42098fi
42099
42100
42101 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42102echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42103set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42104if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42105 echo $ECHO_N "(cached) $ECHO_C" >&6
42106else
42107 cat >conftest.make <<\_ACEOF
42108all:
42109 @echo 'ac_maketemp="$(MAKE)"'
42110_ACEOF
42111# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42112eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42113if test -n "$ac_maketemp"; then
42114 eval ac_cv_prog_make_${ac_make}_set=yes
42115else
42116 eval ac_cv_prog_make_${ac_make}_set=no
42117fi
42118rm -f conftest.make
42119fi
42120if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42121 echo "$as_me:$LINENO: result: yes" >&5
42122echo "${ECHO_T}yes" >&6
42123 SET_MAKE=
42124else
42125 echo "$as_me:$LINENO: result: no" >&5
42126echo "${ECHO_T}no" >&6
42127 SET_MAKE="MAKE=${MAKE-make}"
42128fi
42129
42130
42131
42132 if test -n "$ac_tool_prefix"; then
42133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
42134set dummy ${ac_tool_prefix}ar; ac_word=$2
42135echo "$as_me:$LINENO: checking for $ac_word" >&5
42136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42137if test "${ac_cv_prog_AR+set}" = set; then
42138 echo $ECHO_N "(cached) $ECHO_C" >&6
42139else
42140 if test -n "$AR"; then
42141 ac_cv_prog_AR="$AR" # Let the user override the test.
42142else
42143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42144for as_dir in $PATH
42145do
42146 IFS=$as_save_IFS
42147 test -z "$as_dir" && as_dir=.
42148 for ac_exec_ext in '' $ac_executable_extensions; do
42149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42150 ac_cv_prog_AR="${ac_tool_prefix}ar"
42151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42152 break 2
42153 fi
42154done
42155done
42156
42157fi
42158fi
42159AR=$ac_cv_prog_AR
42160if test -n "$AR"; then
42161 echo "$as_me:$LINENO: result: $AR" >&5
42162echo "${ECHO_T}$AR" >&6
42163else
42164 echo "$as_me:$LINENO: result: no" >&5
42165echo "${ECHO_T}no" >&6
42166fi
42167
42168fi
42169if test -z "$ac_cv_prog_AR"; then
42170 ac_ct_AR=$AR
42171 # Extract the first word of "ar", so it can be a program name with args.
42172set dummy ar; ac_word=$2
42173echo "$as_me:$LINENO: checking for $ac_word" >&5
42174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42175if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42176 echo $ECHO_N "(cached) $ECHO_C" >&6
42177else
42178 if test -n "$ac_ct_AR"; then
42179 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42180else
42181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42182for as_dir in $PATH
42183do
42184 IFS=$as_save_IFS
42185 test -z "$as_dir" && as_dir=.
42186 for ac_exec_ext in '' $ac_executable_extensions; do
42187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42188 ac_cv_prog_ac_ct_AR="ar"
42189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42190 break 2
42191 fi
42192done
42193done
42194
42195 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
42196fi
42197fi
42198ac_ct_AR=$ac_cv_prog_ac_ct_AR
42199if test -n "$ac_ct_AR"; then
42200 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
42201echo "${ECHO_T}$ac_ct_AR" >&6
42202else
42203 echo "$as_me:$LINENO: result: no" >&5
42204echo "${ECHO_T}no" >&6
42205fi
42206
42207 AR=$ac_ct_AR
42208else
42209 AR="$ac_cv_prog_AR"
42210fi
42211
42212 if test -n "$ac_tool_prefix"; then
42213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42214set dummy ${ac_tool_prefix}strip; ac_word=$2
42215echo "$as_me:$LINENO: checking for $ac_word" >&5
42216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42217if test "${ac_cv_prog_STRIP+set}" = set; then
42218 echo $ECHO_N "(cached) $ECHO_C" >&6
42219else
42220 if test -n "$STRIP"; then
42221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42222else
42223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42224for as_dir in $PATH
42225do
42226 IFS=$as_save_IFS
42227 test -z "$as_dir" && as_dir=.
42228 for ac_exec_ext in '' $ac_executable_extensions; do
42229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42232 break 2
42233 fi
42234done
42235done
42236
42237fi
42238fi
42239STRIP=$ac_cv_prog_STRIP
42240if test -n "$STRIP"; then
42241 echo "$as_me:$LINENO: result: $STRIP" >&5
42242echo "${ECHO_T}$STRIP" >&6
42243else
42244 echo "$as_me:$LINENO: result: no" >&5
42245echo "${ECHO_T}no" >&6
42246fi
42247
42248fi
42249if test -z "$ac_cv_prog_STRIP"; then
42250 ac_ct_STRIP=$STRIP
42251 # Extract the first word of "strip", so it can be a program name with args.
42252set dummy strip; ac_word=$2
42253echo "$as_me:$LINENO: checking for $ac_word" >&5
42254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42255if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42256 echo $ECHO_N "(cached) $ECHO_C" >&6
42257else
42258 if test -n "$ac_ct_STRIP"; then
42259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42260else
42261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42262for as_dir in $PATH
42263do
42264 IFS=$as_save_IFS
42265 test -z "$as_dir" && as_dir=.
42266 for ac_exec_ext in '' $ac_executable_extensions; do
42267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42268 ac_cv_prog_ac_ct_STRIP="strip"
42269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42270 break 2
42271 fi
42272done
42273done
42274
42275 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42276fi
42277fi
42278ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42279if test -n "$ac_ct_STRIP"; then
42280 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42281echo "${ECHO_T}$ac_ct_STRIP" >&6
42282else
42283 echo "$as_me:$LINENO: result: no" >&5
42284echo "${ECHO_T}no" >&6
42285fi
42286
42287 STRIP=$ac_ct_STRIP
42288else
42289 STRIP="$ac_cv_prog_STRIP"
42290fi
42291
42292 if test -n "$ac_tool_prefix"; then
42293 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42294set dummy ${ac_tool_prefix}nm; ac_word=$2
42295echo "$as_me:$LINENO: checking for $ac_word" >&5
42296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42297if test "${ac_cv_prog_NM+set}" = set; then
42298 echo $ECHO_N "(cached) $ECHO_C" >&6
42299else
42300 if test -n "$NM"; then
42301 ac_cv_prog_NM="$NM" # Let the user override the test.
42302else
42303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42304for as_dir in $PATH
42305do
42306 IFS=$as_save_IFS
42307 test -z "$as_dir" && as_dir=.
42308 for ac_exec_ext in '' $ac_executable_extensions; do
42309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42310 ac_cv_prog_NM="${ac_tool_prefix}nm"
42311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42312 break 2
42313 fi
42314done
42315done
42316
42317fi
42318fi
42319NM=$ac_cv_prog_NM
42320if test -n "$NM"; then
42321 echo "$as_me:$LINENO: result: $NM" >&5
42322echo "${ECHO_T}$NM" >&6
42323else
42324 echo "$as_me:$LINENO: result: no" >&5
42325echo "${ECHO_T}no" >&6
42326fi
42327
42328fi
42329if test -z "$ac_cv_prog_NM"; then
42330 ac_ct_NM=$NM
42331 # Extract the first word of "nm", so it can be a program name with args.
42332set dummy nm; ac_word=$2
42333echo "$as_me:$LINENO: checking for $ac_word" >&5
42334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42335if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42336 echo $ECHO_N "(cached) $ECHO_C" >&6
42337else
42338 if test -n "$ac_ct_NM"; then
42339 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42340else
42341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42342for as_dir in $PATH
42343do
42344 IFS=$as_save_IFS
42345 test -z "$as_dir" && as_dir=.
42346 for ac_exec_ext in '' $ac_executable_extensions; do
42347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42348 ac_cv_prog_ac_ct_NM="nm"
42349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42350 break 2
42351 fi
42352done
42353done
42354
42355 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42356fi
42357fi
42358ac_ct_NM=$ac_cv_prog_ac_ct_NM
42359if test -n "$ac_ct_NM"; then
42360 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42361echo "${ECHO_T}$ac_ct_NM" >&6
42362else
42363 echo "$as_me:$LINENO: result: no" >&5
42364echo "${ECHO_T}no" >&6
42365fi
42366
42367 NM=$ac_ct_NM
42368else
42369 NM="$ac_cv_prog_NM"
42370fi
42371
42372
42373 case ${BAKEFILE_HOST} in
42374 *-hp-hpux* )
1e9e8aba 42375 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42376 ;;
42377 *) INSTALL_DIR="$INSTALL -d"
42378 ;;
42379 esac
42380
42381
42382 LDFLAGS_GUI=
42383 case ${BAKEFILE_HOST} in
42384 *-*-cygwin* | *-*-mingw32* )
42385 LDFLAGS_GUI="-mwindows"
42386 esac
42387
42388
42389 fi
42390
42391 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42392echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42393if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42394 echo $ECHO_N "(cached) $ECHO_C" >&6
42395else
42396
42397 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42398 egrep -s GNU > /dev/null); then
42399 bakefile_cv_prog_makeisgnu="yes"
42400 else
42401 bakefile_cv_prog_makeisgnu="no"
42402 fi
42403
42404fi
42405echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42406echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42407
42408 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42409 IF_GNU_MAKE=""
42410 else
42411 IF_GNU_MAKE="#"
42412 fi
42413
42414
42415
42416 PLATFORM_UNIX=0
42417 PLATFORM_WIN32=0
42418 PLATFORM_MSDOS=0
42419 PLATFORM_MAC=0
1e9e8aba 42420 PLATFORM_MACOS=0
a848cd7e
SC
42421 PLATFORM_MACOSX=0
42422 PLATFORM_OS2=0
1e9e8aba 42423 PLATFORM_BEOS=0
a848cd7e
SC
42424
42425 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42426 case "${BAKEFILE_HOST}" in
810b94f0 42427 *-*-mingw32* )
a848cd7e
SC
42428 PLATFORM_WIN32=1
42429 ;;
42430 *-pc-msdosdjgpp )
42431 PLATFORM_MSDOS=1
42432 ;;
42433 *-pc-os2_emx | *-pc-os2-emx )
42434 PLATFORM_OS2=1
42435 ;;
47bd5406 42436 *-*-darwin* )
a848cd7e
SC
42437 PLATFORM_MAC=1
42438 PLATFORM_MACOSX=1
42439 ;;
1e9e8aba
DE
42440 *-*-beos* )
42441 PLATFORM_BEOS=1
42442 ;;
42443 powerpc-apple-macos* )
42444 PLATFORM_MAC=1
42445 PLATFORM_MACOS=1
42446 ;;
a848cd7e
SC
42447 * )
42448 PLATFORM_UNIX=1
42449 ;;
42450 esac
42451 else
42452 case "$BAKEFILE_FORCE_PLATFORM" in
42453 win32 )
42454 PLATFORM_WIN32=1
42455 ;;
42456 msdos )
42457 PLATFORM_MSDOS=1
42458 ;;
42459 os2 )
42460 PLATFORM_OS2=1
42461 ;;
42462 darwin )
42463 PLATFORM_MAC=1
42464 PLATFORM_MACOSX=1
42465 ;;
42466 unix )
42467 PLATFORM_UNIX=1
42468 ;;
1e9e8aba
DE
42469 beos )
42470 PLATFORM_BEOS=1
42471 ;;
a848cd7e
SC
42472 * )
42473 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42474echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42475 { (exit 1); exit 1; }; }
42476 ;;
42477 esac
42478 fi
42479
42480
42481
42482
42483
42484
42485
42486
42487
1e9e8aba
DE
42488
42489
a848cd7e
SC
42490 # Check whether --enable-omf or --disable-omf was given.
42491if test "${enable_omf+set}" = set; then
42492 enableval="$enable_omf"
42493 bk_os2_use_omf="$enableval"
42494fi;
42495
42496 case "${BAKEFILE_HOST}" in
42497 *-*-darwin* )
47bd5406
VZ
42498 if test "x$GCC" = "xyes"; then
42499 CFLAGS="$CFLAGS -fno-common"
42500 CXXFLAGS="$CXXFLAGS -fno-common"
42501 fi
42502 if test "x$XLCC" = "xyes"; then
42503 CFLAGS="$CFLAGS -qnocommon"
42504 CXXFLAGS="$CXXFLAGS -qnocommon"
42505 fi
a848cd7e
SC
42506 ;;
42507
42508 *-pc-os2_emx | *-pc-os2-emx )
42509 if test "x$bk_os2_use_omf" = "xyes" ; then
42510 AR=emxomfar
42511 RANLIB=:
42512 LDFLAGS="-Zomf $LDFLAGS"
42513 CFLAGS="-Zomf $CFLAGS"
42514 CXXFLAGS="-Zomf $CXXFLAGS"
42515 OS2_LIBEXT="lib"
42516 else
42517 OS2_LIBEXT="a"
42518 fi
42519 ;;
1e9e8aba
DE
42520
42521 i*86-*-beos* )
42522 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42523 ;;
a848cd7e
SC
42524 esac
42525
42526
42527 SO_SUFFIX="so"
42528 SO_SUFFIX_MODULE="so"
42529 EXEEXT=""
42530 LIBPREFIX="lib"
42531 LIBEXT=".a"
42532 DLLPREFIX="lib"
42533 DLLPREFIX_MODULE=""
42534 DLLIMP_SUFFIX=""
810b94f0 42535 dlldir="$libdir"
a848cd7e
SC
42536
42537 case "${BAKEFILE_HOST}" in
42538 *-hp-hpux* )
42539 SO_SUFFIX="sl"
42540 SO_SUFFIX_MODULE="sl"
42541 ;;
42542 *-*-aix* )
42543 SO_SUFFIX="a"
42544 SO_SUFFIX_MODULE="a"
42545 ;;
810b94f0
MW
42546 *-*-cygwin* )
42547 SO_SUFFIX="dll"
42548 SO_SUFFIX_MODULE="dll"
42549 DLLIMP_SUFFIX="dll.a"
42550 EXEEXT=".exe"
42551 DLLPREFIX="cyg"
42552 dlldir="$bindir"
42553 ;;
42554 *-*-mingw32* )
a848cd7e
SC
42555 SO_SUFFIX="dll"
42556 SO_SUFFIX_MODULE="dll"
42557 DLLIMP_SUFFIX="dll.a"
42558 EXEEXT=".exe"
42559 DLLPREFIX=""
810b94f0 42560 dlldir="$bindir"
a848cd7e
SC
42561 ;;
42562 *-pc-msdosdjgpp )
42563 EXEEXT=".exe"
42564 DLLPREFIX=""
810b94f0 42565 dlldir="$bindir"
a848cd7e
SC
42566 ;;
42567 *-pc-os2_emx | *-pc-os2-emx )
42568 SO_SUFFIX="dll"
42569 SO_SUFFIX_MODULE="dll"
42570 DLLIMP_SUFFIX=$OS2_LIBEXT
42571 EXEEXT=".exe"
42572 DLLPREFIX=""
42573 LIBPREFIX=""
42574 LIBEXT=".$OS2_LIBEXT"
810b94f0 42575 dlldir="$bindir"
a848cd7e 42576 ;;
47bd5406 42577 *-*-darwin* )
a848cd7e
SC
42578 SO_SUFFIX="dylib"
42579 SO_SUFFIX_MODULE="bundle"
42580 ;;
42581 esac
42582
42583 if test "x$DLLIMP_SUFFIX" = "x" ; then
42584 DLLIMP_SUFFIX="$SO_SUFFIX"
42585 fi
42586
42587
42588
42589
42590
42591
42592
42593
42594
42595
42596
810b94f0 42597
1e9e8aba
DE
42598 PIC_FLAG=""
42599 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42600 PIC_FLAG="-fPIC"
42601 fi
42602
1e9e8aba
DE
42603 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42604 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42605 WINDOWS_IMPLIB=0
1e9e8aba 42606
a848cd7e
SC
42607 case "${BAKEFILE_HOST}" in
42608 *-hp-hpux* )
1e9e8aba 42609 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42610 LDFLAGS="$LDFLAGS -L/usr/lib"
42611
42612 SHARED_LD_CC="${CC} -b -o"
42613 SHARED_LD_CXX="${CXX} -b -o"
42614 PIC_FLAG="+Z"
42615 fi
42616 ;;
42617
42618 *-*-linux* )
42619 if test "x$GCC" != "xyes"; then
42620 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42621echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42622if test "${bakefile_cv_prog_icc+set}" = set; then
42623 echo $ECHO_N "(cached) $ECHO_C" >&6
42624else
42625
42626 cat >conftest.$ac_ext <<_ACEOF
42627/* confdefs.h. */
42628_ACEOF
42629cat confdefs.h >>conftest.$ac_ext
42630cat >>conftest.$ac_ext <<_ACEOF
42631/* end confdefs.h. */
42632
42633int
42634main ()
42635{
42636
42637 #ifndef __INTEL_COMPILER
42638 #error Not icc
42639 #endif
42640
42641 ;
42642 return 0;
42643}
42644_ACEOF
42645rm -f conftest.$ac_objext
42646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42647 (eval $ac_compile) 2>conftest.er1
a848cd7e 42648 ac_status=$?
ac1cb8d3
VS
42649 grep -v '^ *+' conftest.er1 >conftest.err
42650 rm -f conftest.er1
42651 cat conftest.err >&5
a848cd7e
SC
42652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42653 (exit $ac_status); } &&
6ebeb4c7 42654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42656 (eval $ac_try) 2>&5
42657 ac_status=$?
42658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); }; } &&
42660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42662 (eval $ac_try) 2>&5
42663 ac_status=$?
42664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); }; }; then
42666 bakefile_cv_prog_icc=yes
42667else
42668 echo "$as_me: failed program was:" >&5
42669sed 's/^/| /' conftest.$ac_ext >&5
42670
42671bakefile_cv_prog_icc=no
42672
42673fi
ac1cb8d3 42674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42675
42676fi
42677echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42678echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42679 if test "$bakefile_cv_prog_icc" = "yes"; then
42680 PIC_FLAG="-KPIC"
42681 fi
42682 fi
42683 ;;
42684
42685 *-*-solaris2* )
42686 if test "x$GCC" != xyes ; then
42687 SHARED_LD_CC="${CC} -G -o"
42688 SHARED_LD_CXX="${CXX} -G -o"
42689 PIC_FLAG="-KPIC"
42690 fi
42691 ;;
42692
42693 *-*-darwin* )
42694
42695 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42696echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42697if test "${wx_cv_gcc31+set}" = set; then
42698 echo $ECHO_N "(cached) $ECHO_C" >&6
42699else
42700
42701 cat >conftest.$ac_ext <<_ACEOF
42702/* confdefs.h. */
42703_ACEOF
42704cat confdefs.h >>conftest.$ac_ext
42705cat >>conftest.$ac_ext <<_ACEOF
42706/* end confdefs.h. */
42707
42708int
42709main ()
42710{
42711
42712 #if (__GNUC__ < 3) || \
42713 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42714 #error old gcc
42715 #endif
42716
42717 ;
42718 return 0;
42719}
42720_ACEOF
42721rm -f conftest.$ac_objext
42722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42723 (eval $ac_compile) 2>conftest.er1
a848cd7e 42724 ac_status=$?
ac1cb8d3
VS
42725 grep -v '^ *+' conftest.er1 >conftest.err
42726 rm -f conftest.er1
42727 cat conftest.err >&5
a848cd7e
SC
42728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42729 (exit $ac_status); } &&
6ebeb4c7 42730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42732 (eval $ac_try) 2>&5
42733 ac_status=$?
42734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735 (exit $ac_status); }; } &&
42736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42738 (eval $ac_try) 2>&5
42739 ac_status=$?
42740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42741 (exit $ac_status); }; }; then
42742
42743 wx_cv_gcc31=yes
42744
42745else
42746 echo "$as_me: failed program was:" >&5
42747sed 's/^/| /' conftest.$ac_ext >&5
42748
42749
42750 wx_cv_gcc31=no
42751
42752
42753fi
ac1cb8d3 42754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42755
42756fi
42757echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42758echo "${ECHO_T}$wx_cv_gcc31" >&6
42759 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42760
42761D='$'
42762cat <<EOF >shared-ld-sh
a848cd7e
SC
42763#!/bin/sh
42764#-----------------------------------------------------------------------------
42765#-- Name: distrib/mac/shared-ld-sh
42766#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42767#-- Author: Gilles Depeyrot
42768#-- Copyright: (c) 2002 Gilles Depeyrot
42769#-- Licence: any use permitted
42770#-----------------------------------------------------------------------------
42771
42772verbose=0
42773args=""
42774objects=""
42775linking_flag="-dynamiclib"
810b94f0 42776ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42777
473276a9
VS
42778while test ${D}# -gt 0; do
42779 case ${D}1 in
a848cd7e
SC
42780
42781 -v)
42782 verbose=1
42783 ;;
42784
42785 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42786 # collect these options and values
473276a9 42787 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42788 shift
42789 ;;
42790
810b94f0
MW
42791 -s|-Wl,*)
42792 # collect these load args
42793 ldargs="${D}{ldargs} ${D}1"
2113bc77 42794 ;;
810b94f0
MW
42795
42796 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42797 # collect these options
473276a9 42798 args="${D}{args} ${D}1"
a848cd7e
SC
42799 ;;
42800
42801 -dynamiclib|-bundle)
473276a9 42802 linking_flag="${D}1"
a848cd7e
SC
42803 ;;
42804
42805 -*)
473276a9 42806 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42807 exit 1
42808 ;;
42809
42810 *.o | *.a | *.dylib)
42811 # collect object files
473276a9 42812 objects="${D}{objects} ${D}1"
a848cd7e
SC
42813 ;;
42814
42815 *)
473276a9 42816 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42817 exit 1
42818 ;;
42819
42820 esac
42821 shift
42822done
42823
810b94f0
MW
42824status=0
42825
a848cd7e
SC
42826#
42827# Link one module containing all the others
42828#
473276a9 42829if test ${D}{verbose} = 1; then
810b94f0 42830 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42831fi
810b94f0 42832c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42833status=${D}?
a848cd7e
SC
42834
42835#
810b94f0
MW
42836# Link the shared library from the single module created, but only if the
42837# previous command didn't fail:
a848cd7e 42838#
810b94f0
MW
42839if test ${D}{status} = 0; then
42840 if test ${D}{verbose} = 1; then
42841 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42842 fi
42843 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42844 status=${D}?
a848cd7e
SC
42845fi
42846
42847#
42848# Remove intermediate module
42849#
473276a9 42850rm -f master.${D}${D}.o
a848cd7e 42851
810b94f0 42852exit ${D}status
a848cd7e 42853EOF
473276a9 42854
a848cd7e
SC
42855 chmod +x shared-ld-sh
42856
42857 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42858 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42859 SHARED_LD_CXX="$SHARED_LD_CC"
42860 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42861 else
42862 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42863 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42864 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42865 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42866 fi
42867
47bd5406
VZ
42868 if test "x$GCC" == "xyes"; then
42869 PIC_FLAG="-dynamic -fPIC"
42870 fi
42871 if test "x$XLCC" = "xyes"; then
42872 PIC_FLAG="-dynamic -DPIC"
42873 fi
a848cd7e
SC
42874 ;;
42875
42876 *-*-aix* )
42877 if test "x$GCC" != "xyes"; then
42878 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42879set dummy makeC++SharedLib; ac_word=$2
42880echo "$as_me:$LINENO: checking for $ac_word" >&5
42881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42882if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42883 echo $ECHO_N "(cached) $ECHO_C" >&6
42884else
42885 if test -n "$AIX_CXX_LD"; then
42886 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42887else
42888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42889for as_dir in $PATH
42890do
42891 IFS=$as_save_IFS
42892 test -z "$as_dir" && as_dir=.
42893 for ac_exec_ext in '' $ac_executable_extensions; do
42894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42895 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42897 break 2
42898 fi
42899done
42900done
42901
42902 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42903fi
42904fi
42905AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42906if test -n "$AIX_CXX_LD"; then
42907 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42908echo "${ECHO_T}$AIX_CXX_LD" >&6
42909else
42910 echo "$as_me:$LINENO: result: no" >&5
42911echo "${ECHO_T}no" >&6
42912fi
42913
42914 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42915 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42916 fi
42917 ;;
42918
42919 *-*-beos* )
1e9e8aba
DE
42920 SHARED_LD_CC="${LD} -nostart -o"
42921 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42922 ;;
42923
42924 *-*-irix* )
42925 if test "x$GCC" != "xyes"; then
42926 PIC_FLAG="-KPIC"
42927 fi
42928 ;;
42929
42930 *-*-cygwin* | *-*-mingw32* )
42931 PIC_FLAG=""
1e9e8aba
DE
42932 SHARED_LD_CC="\$(CC) -shared -o"
42933 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42934 WINDOWS_IMPLIB=1
a848cd7e
SC
42935 ;;
42936
42937 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42938 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42939 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42940 PIC_FLAG=""
473276a9
VS
42941
42942D='$'
42943cat <<EOF >dllar.sh
42944#!/bin/sh
42945#
42946# dllar - a tool to build both a .dll and an .a file
42947# from a set of object (.o) files for EMX/OS2.
42948#
42949# Written by Andrew Zabolotny, bit@freya.etu.ru
42950# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42951#
42952# This script will accept a set of files on the command line.
42953# All the public symbols from the .o files will be exported into
42954# a .DEF file, then linker will be run (through gcc) against them to
42955# build a shared library consisting of all given .o files. All libraries
42956# (.a) will be first decompressed into component .o files then act as
42957# described above. You can optionally give a description (-d "description")
42958# which will be put into .DLL. To see the list of accepted options (as well
42959# as command-line format) simply run this program without options. The .DLL
42960# is built to be imported by name (there is no guarantee that new versions
42961# of the library you build will have same ordinals for same symbols).
42962#
42963# dllar is free software; you can redistribute it and/or modify
42964# it under the terms of the GNU General Public License as published by
42965# the Free Software Foundation; either version 2, or (at your option)
42966# any later version.
42967#
42968# dllar is distributed in the hope that it will be useful,
42969# but WITHOUT ANY WARRANTY; without even the implied warranty of
42970# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42971# GNU General Public License for more details.
42972#
42973# You should have received a copy of the GNU General Public License
42974# along with dllar; see the file COPYING. If not, write to the Free
42975# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42976# 02111-1307, USA.
42977
42978# To successfuly run this program you will need:
42979# - Current drive should have LFN support (HPFS, ext2, network, etc)
42980# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42981# - gcc
42982# (used to build the .dll)
42983# - emxexp
42984# (used to create .def file from .o files)
42985# - emximp
42986# (used to create .a file from .def file)
42987# - GNU text utilites (cat, sort, uniq)
42988# used to process emxexp output
42989# - GNU file utilities (mv, rm)
42990# - GNU sed
42991# - lxlite (optional, see flag below)
42992# (used for general .dll cleanup)
42993#
42994
42995flag_USE_LXLITE=1;
42996
42997#
42998# helper functions
42999# basnam, variant of basename, which does _not_ remove the path, _iff_
43000# second argument (suffix to remove) is given
43001basnam(){
43002 case ${D}# in
43003 1)
1e9e8aba 43004 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43005 ;;
43006 2)
43007 echo ${D}1 | sed 's/'${D}2'${D}//'
43008 ;;
43009 *)
43010 echo "error in basnam ${D}*"
43011 exit 8
43012 ;;
43013 esac
43014}
43015
43016# Cleanup temporary files and output
43017CleanUp() {
43018 cd ${D}curDir
43019 for i in ${D}inputFiles ; do
43020 case ${D}i in
43021 *!)
43022 rm -rf \`basnam ${D}i !\`
43023 ;;
43024 *)
43025 ;;
43026 esac
43027 done
43028
43029 # Kill result in case of failure as there is just to many stupid make/nmake
43030 # things out there which doesn't do this.
1e9e8aba 43031 if [ ${D}# -eq 0 ]; then
473276a9
VS
43032 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43033 fi
43034}
43035
43036# Print usage and exit script with rc=1.
43037PrintHelp() {
b1d22ded
DE
43038 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43039 echo ' [-name-mangler-script script.sh]'
43040 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43041 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43042 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43043 echo ' [*.o] [*.a]'
473276a9
VS
43044 echo '*> "output_file" should have no extension.'
43045 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43046 echo ' The import library name is derived from this and is set to "name".a,'
43047 echo ' unless overridden by -import'
43048 echo '*> "importlib_name" should have no extension.'
43049 echo ' If it has the .o, or .a extension, it is automatically removed.'
43050 echo ' This name is used as the import library name and may be longer and'
43051 echo ' more descriptive than the DLL name which has to follow the old '
43052 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43053 echo '*> "script.sh may be given to override the output_file name by a'
43054 echo ' different name. It is mainly useful if the regular make process'
43055 echo ' of some package does not take into account OS/2 restriction of'
43056 echo ' DLL name lengths. It takes the importlib name as input and is'
43057 echo ' supposed to procude a shorter name as output. The script should'
43058 echo ' expect to get importlib_name without extension and should produce'
43059 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43060 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43061 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43062 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43063 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43064 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43065 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43066 echo ' If the last character of a symbol is "*", all symbols beginning'
43067 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43068 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43069 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43070 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43071 echo ' C runtime DLLs.'
b1d22ded 43072 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43073 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43074 echo ' unchanged to GCC at the end of command line.'
43075 echo '*> If you create a DLL from a library and you do not specify -o,'
43076 echo ' the basename for DLL and import library will be set to library name,'
43077 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43078 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43079 echo ' library will be renamed into gcc_s.a.'
43080 echo '--------'
43081 echo 'Example:'
43082 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43083 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43084 CleanUp
43085 exit 1
43086}
43087
43088# Execute a command.
43089# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43090# @Uses Whatever CleanUp() uses.
43091doCommand() {
43092 echo "${D}*"
43093 eval ${D}*
43094 rcCmd=${D}?
43095
1e9e8aba 43096 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43097 echo "command failed, exit code="${D}rcCmd
43098 CleanUp
43099 exit ${D}rcCmd
43100 fi
43101}
43102
43103# main routine
43104# setup globals
43105cmdLine=${D}*
43106outFile=""
43107outimpFile=""
43108inputFiles=""
b1d22ded 43109renameScript=""
473276a9
VS
43110description=""
43111CC=gcc.exe
43112CFLAGS="-s -Zcrtdll"
43113EXTRA_CFLAGS=""
43114EXPORT_BY_ORDINALS=0
43115exclude_symbols=""
43116library_flags=""
43117curDir=\`pwd\`
43118curDirS=curDir
43119case ${D}curDirS in
43120*/)
43121 ;;
43122*)
43123 curDirS=${D}{curDirS}"/"
43124 ;;
43125esac
43126# Parse commandline
43127libsToLink=0
b1d22ded 43128omfLinking=0
1e9e8aba 43129while [ ${D}1 ]; do
473276a9
VS
43130 case ${D}1 in
43131 -ord*)
43132 EXPORT_BY_ORDINALS=1;
43133 ;;
43134 -o*)
43135 shift
43136 outFile=${D}1
43137 ;;
43138 -i*)
43139 shift
43140 outimpFile=${D}1
43141 ;;
b1d22ded
DE
43142 -name-mangler-script)
43143 shift
43144 renameScript=${D}1
43145 ;;
473276a9
VS
43146 -d*)
43147 shift
43148 description=${D}1
43149 ;;
43150 -f*)
43151 shift
43152 CFLAGS=${D}1
43153 ;;
43154 -c*)
43155 shift
43156 CC=${D}1
43157 ;;
43158 -h*)
43159 PrintHelp
43160 ;;
43161 -ex*)
43162 shift
43163 exclude_symbols=${D}{exclude_symbols}${D}1" "
43164 ;;
43165 -libf*)
43166 shift
43167 library_flags=${D}{library_flags}${D}1" "
43168 ;;
43169 -nocrt*)
43170 CFLAGS="-s"
43171 ;;
43172 -nolxl*)
43173 flag_USE_LXLITE=0
43174 ;;
43175 -* | /*)
43176 case ${D}1 in
43177 -L* | -l*)
43178 libsToLink=1
43179 ;;
b1d22ded
DE
43180 -Zomf)
43181 omfLinking=1
43182 ;;
473276a9
VS
43183 *)
43184 ;;
43185 esac
43186 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43187 ;;
b1d22ded
DE
43188 *.dll)
43189 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
43190 if [ ${D}omfLinking -eq 1 ]; then
43191 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
43192 else
43193 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
43194 fi
43195 ;;
473276a9
VS
43196 *)
43197 found=0;
1e9e8aba 43198 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
43199 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43200 else
43201 for file in ${D}1 ; do
1e9e8aba 43202 if [ -f ${D}file ]; then
473276a9
VS
43203 inputFiles="${D}{inputFiles} ${D}file"
43204 found=1
43205 fi
43206 done
1e9e8aba 43207 if [ ${D}found -eq 0 ]; then
473276a9
VS
43208 echo "ERROR: No file(s) found: "${D}1
43209 exit 8
43210 fi
43211 fi
43212 ;;
43213 esac
43214 shift
43215done # iterate cmdline words
43216
43217#
1e9e8aba 43218if [ -z "${D}inputFiles" ]; then
473276a9
VS
43219 echo "dllar: no input files"
43220 PrintHelp
43221fi
43222
43223# Now extract all .o files from .a files
43224newInputFiles=""
43225for file in ${D}inputFiles ; do
43226 case ${D}file in
43227 *.a | *.lib)
43228 case ${D}file in
43229 *.a)
43230 suffix=".a"
43231 AR="ar"
43232 ;;
43233 *.lib)
43234 suffix=".lib"
43235 AR="emxomfar"
43236 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43237 ;;
43238 *)
43239 ;;
43240 esac
43241 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43242 mkdir ${D}dirname
1e9e8aba 43243 if [ ${D}? -ne 0 ]; then
473276a9
VS
43244 echo "Failed to create subdirectory ./${D}dirname"
43245 CleanUp
43246 exit 8;
43247 fi
43248 # Append '!' to indicate archive
43249 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43250 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43251 cd ${D}curDir
43252 found=0;
43253 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43254 if [ -f ${D}subfile ]; then
473276a9 43255 found=1
1e9e8aba 43256 if [ -s ${D}subfile ]; then
473276a9
VS
43257 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43258 newInputFiles="${D}newInputFiles ${D}subfile"
43259 fi
43260 fi
43261 done
1e9e8aba
DE
43262 if [ ${D}found -eq 0 ]; then
43263 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43264 fi
43265 ;;
43266 *)
43267 newInputFiles="${D}{newInputFiles} ${D}file"
43268 ;;
43269 esac
43270done
43271inputFiles="${D}newInputFiles"
43272
43273# Output filename(s).
43274do_backup=0;
1e9e8aba 43275if [ -z ${D}outFile ]; then
473276a9
VS
43276 do_backup=1;
43277 set outFile ${D}inputFiles; outFile=${D}2
43278fi
43279
43280# If it is an archive, remove the '!' and the '_%' suffixes
43281case ${D}outFile in
43282*_%!)
43283 outFile=\`basnam ${D}outFile _%!\`
43284 ;;
43285*)
43286 ;;
43287esac
43288case ${D}outFile in
43289*.dll)
43290 outFile=\`basnam ${D}outFile .dll\`
43291 ;;
43292*.DLL)
43293 outFile=\`basnam ${D}outFile .DLL\`
43294 ;;
43295*.o)
43296 outFile=\`basnam ${D}outFile .o\`
43297 ;;
43298*.obj)
43299 outFile=\`basnam ${D}outFile .obj\`
43300 ;;
43301*.a)
43302 outFile=\`basnam ${D}outFile .a\`
43303 ;;
43304*.lib)
43305 outFile=\`basnam ${D}outFile .lib\`
43306 ;;
43307*)
43308 ;;
43309esac
43310case ${D}outimpFile in
43311*.a)
43312 outimpFile=\`basnam ${D}outimpFile .a\`
43313 ;;
43314*.lib)
43315 outimpFile=\`basnam ${D}outimpFile .lib\`
43316 ;;
43317*)
43318 ;;
43319esac
1e9e8aba 43320if [ -z ${D}outimpFile ]; then
473276a9
VS
43321 outimpFile=${D}outFile
43322fi
43323defFile="${D}{outFile}.def"
43324arcFile="${D}{outimpFile}.a"
43325arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43326
43327#create ${D}dllFile as something matching 8.3 restrictions,
43328if [ -z ${D}renameScript ] ; then
43329 dllFile="${D}outFile"
43330else
43331 dllFile=\`${D}renameScript ${D}outimpFile\`
43332fi
473276a9 43333
1e9e8aba
DE
43334if [ ${D}do_backup -ne 0 ] ; then
43335 if [ -f ${D}arcFile ] ; then
473276a9
VS
43336 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43337 fi
1e9e8aba 43338 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43339 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43340 fi
43341fi
43342
43343# Extract public symbols from all the object files.
43344tmpdefFile=${D}{defFile}_%
43345rm -f ${D}tmpdefFile
43346for file in ${D}inputFiles ; do
43347 case ${D}file in
43348 *!)
43349 ;;
43350 *)
43351 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43352 ;;
43353 esac
43354done
43355
43356# Create the def file.
43357rm -f ${D}defFile
43358echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43359dllFile="${D}{dllFile}.dll"
43360if [ ! -z ${D}description ]; then
1e9e8aba 43361 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43362fi
43363echo "EXPORTS" >> ${D}defFile
43364
43365doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43366grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43367
43368# Checks if the export is ok or not.
43369for word in ${D}exclude_symbols; do
43370 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43371 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43372done
43373
43374
1e9e8aba
DE
43375if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43376 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43377 sed '
43378 N
43379 : loop
1e9e8aba 43380 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43381 t loop
43382 ' > ${D}{tmpdefFile}%
43383 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43384else
43385 rm -f ${D}{tmpdefFile}%
43386fi
43387cat ${D}tmpdefFile >> ${D}defFile
43388rm -f ${D}tmpdefFile
43389
43390# Do linking, create implib, and apply lxlite.
43391gccCmdl="";
43392for file in ${D}inputFiles ; do
43393 case ${D}file in
43394 *!)
43395 ;;
43396 *)
43397 gccCmdl="${D}gccCmdl ${D}file"
43398 ;;
43399 esac
43400done
43401doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43402touch "${D}{outFile}.dll"
43403
43404doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43405if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43406 add_flags="";
1e9e8aba 43407 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43408 add_flags="-ynd"
43409 fi
43410 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43411fi
43412doCommand "emxomf -s -l ${D}arcFile"
43413
43414# Successful exit.
43415CleanUp 1
43416exit 0
43417EOF
43418
43419 chmod +x dllar.sh
a848cd7e
SC
43420 ;;
43421
1e9e8aba 43422 powerpc-apple-macos* | \
a848cd7e
SC
43423 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43424 *-*-sunos4* | \
43425 *-*-osf* | \
43426 *-*-dgux5* | \
47a7e797
MW
43427 *-*-sysv5* | \
43428 *-pc-msdosdjgpp )
a848cd7e
SC
43429 ;;
43430
43431 *)
43432 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43433echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43434 { (exit 1); exit 1; }; }
43435 esac
43436
2057db16
VS
43437 if test "x$PIC_FLAG" != "x" ; then
43438 PIC_FLAG="$PIC_FLAG -DPIC"
43439 fi
43440
a848cd7e
SC
43441 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43442 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43443 fi
43444 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43445 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43446 fi
43447
43448
43449
43450
43451
43452
43453
43454
810b94f0 43455
a848cd7e
SC
43456 USE_SOVERSION=0
43457 USE_SOVERLINUX=0
43458 USE_SOVERSOLARIS=0
810b94f0 43459 USE_SOVERCYGWIN=0
a848cd7e
SC
43460 USE_SOSYMLINKS=0
43461 USE_MACVERSION=0
43462 SONAME_FLAG=
43463
43464 case "${BAKEFILE_HOST}" in
b1d22ded 43465 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43466 SONAME_FLAG="-Wl,-soname,"
43467 USE_SOVERSION=1
43468 USE_SOVERLINUX=1
43469 USE_SOSYMLINKS=1
43470 ;;
43471
a848cd7e
SC
43472 *-*-solaris2* )
43473 SONAME_FLAG="-h "
43474 USE_SOVERSION=1
43475 USE_SOVERSOLARIS=1
43476 USE_SOSYMLINKS=1
43477 ;;
43478
43479 *-*-darwin* )
43480 USE_MACVERSION=1
43481 USE_SOVERSION=1
43482 USE_SOSYMLINKS=1
43483 ;;
810b94f0
MW
43484
43485 *-*-cygwin* )
43486 USE_SOVERSION=1
43487 USE_SOVERCYGWIN=1
43488 ;;
a848cd7e
SC
43489 esac
43490
43491
43492
43493
43494
43495
43496
43497
43498
810b94f0 43499
a848cd7e
SC
43500 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43501echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43502 DEPS_TRACKING=0
43503
43504 if test "x$GCC" = "xyes"; then
43505 DEPSMODE=gcc
43506 DEPS_TRACKING=1
43507 case "${BAKEFILE_HOST}" in
47bd5406 43508 *-*-darwin* )
a848cd7e
SC
43509 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43510 ;;
43511 * )
43512 DEPSFLAG_GCC="-MMD"
43513 ;;
43514 esac
43515 echo "$as_me:$LINENO: result: gcc" >&5
43516echo "${ECHO_T}gcc" >&6
b1d22ded 43517 elif test "x$MWCC" = "xyes"; then
81f90336 43518 DEPSMODE=mwcc
b1d22ded 43519 DEPS_TRACKING=1
81f90336 43520 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43521 echo "$as_me:$LINENO: result: mwcc" >&5
43522echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43523 elif test "x$SUNCC" = "xyes"; then
43524 DEPSMODE=suncc
43525 DEPS_TRACKING=1
43526 DEPSFLAG_SUNCC="-xM1"
43527 echo "$as_me:$LINENO: result: suncc" >&5
43528echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43529 else
43530 echo "$as_me:$LINENO: result: none" >&5
43531echo "${ECHO_T}none" >&6
43532 fi
43533
43534 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43535
43536D='$'
43537cat <<EOF >bk-deps
a848cd7e
SC
43538#!/bin/sh
43539
43540# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43541# script. It is used to track C/C++ files dependencies in portable way.
43542#
43543# Permission is given to use this file in any way.
43544
473276a9 43545DEPSMODE=${DEPSMODE}
a848cd7e 43546DEPSDIR=.deps
473276a9 43547DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43548DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43549DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43550
473276a9 43551mkdir -p ${D}DEPSDIR
a848cd7e 43552
473276a9
VS
43553if test ${D}DEPSMODE = gcc ; then
43554 ${D}* ${D}{DEPSFLAG_GCC}
43555 status=${D}?
43556 if test ${D}{status} != 0 ; then
43557 exit ${D}{status}
a848cd7e
SC
43558 fi
43559 # move created file to the location we want it in:
473276a9
VS
43560 while test ${D}# -gt 0; do
43561 case "${D}1" in
a848cd7e
SC
43562 -o )
43563 shift
473276a9 43564 objfile=${D}1
a848cd7e
SC
43565 ;;
43566 -* )
43567 ;;
43568 * )
473276a9 43569 srcfile=${D}1
a848cd7e
SC
43570 ;;
43571 esac
43572 shift
43573 done
1e9e8aba
DE
43574 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43575 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43576 if test -f ${D}depfile ; then
43577 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43578 rm -f ${D}depfile
a848cd7e 43579 else
1e9e8aba 43580 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43581 if test -f ${D}depfile ; then
43582 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43583 rm -f ${D}depfile
a848cd7e
SC
43584 fi
43585 fi
43586 exit 0
81f90336
MW
43587elif test ${D}DEPSMODE = mwcc ; then
43588 ${D}*
43589 status=${D}?
43590 if test ${D}{status} != 0 ; then
43591 exit ${D}{status}
43592 fi
43593 # Run mwcc again with -MM and redirect into the dep file we want
43594 # NOTE: We can't use shift here because we need ${D}* to be valid
43595 prevarg=
43596 for arg in ${D}* ; do
43597 if test "${D}prevarg" = "-o"; then
43598 objfile=${D}arg
43599 else
43600 case "${D}arg" in
43601 -* )
43602 ;;
43603 * )
43604 srcfile=${D}arg
43605 ;;
43606 esac
43607 fi
43608 prevarg="${D}arg"
43609 done
43610 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43611 exit 0
a9e5b1f0
MW
43612elif test ${D}DEPSMODE = suncc; then
43613 ${D}* || exit
43614 # Run compiler again with deps flag and redirect into the dep file.
43615 # It doesn't work if the '-o FILE' option is used, but without it the
43616 # dependency file will contain the wrong name for the object. So it is
43617 # removed from the command line, and the dep file is fixed with sed.
43618 cmd=""
43619 while test ${D}# -gt 0; do
43620 case "${D}1" in
43621 -o )
43622 shift
43623 objfile=${D}1
43624 ;;
43625 * )
43626 eval arg${D}#=\\${D}1
43627 cmd="${D}cmd \\${D}arg${D}#"
43628 ;;
43629 esac
43630 shift
43631 done
43632 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43633 exit 0
a848cd7e 43634else
473276a9
VS
43635 ${D}*
43636 exit ${D}?
a848cd7e
SC
43637fi
43638EOF
473276a9 43639
a848cd7e
SC
43640 chmod +x bk-deps
43641 fi
43642
43643
43644
43645
43646 RESCOMP=
43647 SETFILE=
43648
43649 case ${BAKEFILE_HOST} in
43650 *-*-cygwin* | *-*-mingw32* )
43651 if test "$build" != "$host" ; then
43652 RESCOMP=$host_alias-windres
43653 else
43654 # Extract the first word of "windres", so it can be a program name with args.
43655set dummy windres; ac_word=$2
43656echo "$as_me:$LINENO: checking for $ac_word" >&5
43657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43658if test "${ac_cv_prog_RESCOMP+set}" = set; then
43659 echo $ECHO_N "(cached) $ECHO_C" >&6
43660else
43661 if test -n "$RESCOMP"; then
43662 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43663else
43664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43665for as_dir in $PATH
43666do
43667 IFS=$as_save_IFS
43668 test -z "$as_dir" && as_dir=.
43669 for ac_exec_ext in '' $ac_executable_extensions; do
43670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43671 ac_cv_prog_RESCOMP="windres"
43672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43673 break 2
43674 fi
43675done
43676done
43677
43678 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43679fi
43680fi
43681RESCOMP=$ac_cv_prog_RESCOMP
43682if test -n "$RESCOMP"; then
43683 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43684echo "${ECHO_T}$RESCOMP" >&6
43685else
43686 echo "$as_me:$LINENO: result: no" >&5
43687echo "${ECHO_T}no" >&6
43688fi
43689
43690 fi
43691 ;;
43692
1e9e8aba 43693 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43694 # Extract the first word of "Rez", so it can be a program name with args.
43695set dummy Rez; ac_word=$2
43696echo "$as_me:$LINENO: checking for $ac_word" >&5
43697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43698if test "${ac_cv_prog_RESCOMP+set}" = set; then
43699 echo $ECHO_N "(cached) $ECHO_C" >&6
43700else
43701 if test -n "$RESCOMP"; then
43702 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43703else
43704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43705for as_dir in $PATH
43706do
43707 IFS=$as_save_IFS
43708 test -z "$as_dir" && as_dir=.
43709 for ac_exec_ext in '' $ac_executable_extensions; do
43710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43711 ac_cv_prog_RESCOMP="Rez"
43712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43713 break 2
43714 fi
43715done
43716done
43717
43718 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43719fi
43720fi
43721RESCOMP=$ac_cv_prog_RESCOMP
43722if test -n "$RESCOMP"; then
43723 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43724echo "${ECHO_T}$RESCOMP" >&6
43725else
43726 echo "$as_me:$LINENO: result: no" >&5
43727echo "${ECHO_T}no" >&6
43728fi
43729
43730 # Extract the first word of "SetFile", so it can be a program name with args.
43731set dummy SetFile; ac_word=$2
43732echo "$as_me:$LINENO: checking for $ac_word" >&5
43733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43734if test "${ac_cv_prog_SETFILE+set}" = set; then
43735 echo $ECHO_N "(cached) $ECHO_C" >&6
43736else
43737 if test -n "$SETFILE"; then
43738 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43739else
43740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43741for as_dir in $PATH
43742do
43743 IFS=$as_save_IFS
43744 test -z "$as_dir" && as_dir=.
43745 for ac_exec_ext in '' $ac_executable_extensions; do
43746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43747 ac_cv_prog_SETFILE="SetFile"
43748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43749 break 2
43750 fi
43751done
43752done
43753
43754 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43755fi
43756fi
43757SETFILE=$ac_cv_prog_SETFILE
43758if test -n "$SETFILE"; then
43759 echo "$as_me:$LINENO: result: $SETFILE" >&5
43760echo "${ECHO_T}$SETFILE" >&6
43761else
43762 echo "$as_me:$LINENO: result: no" >&5
43763echo "${ECHO_T}no" >&6
43764fi
43765
43766 ;;
43767 esac
43768
43769
43770
43771
43772
c9469659 43773 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43774
dcc1b6ad 43775
c9469659 43776BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43777
646b6ec1 43778
74b84332 43779
a848cd7e
SC
43780 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43781if test "${enable_precomp_headers+set}" = set; then
43782 enableval="$enable_precomp_headers"
43783 bk_use_pch="$enableval"
43784fi;
43785
43786 GCC_PCH=0
43787
43788 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43789 if test "x$GCC" = "xyes"; then
43790 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43791echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43792 cat >conftest.$ac_ext <<_ACEOF
43793/* confdefs.h. */
43794_ACEOF
43795cat confdefs.h >>conftest.$ac_ext
43796cat >>conftest.$ac_ext <<_ACEOF
43797/* end confdefs.h. */
43798
43799int
43800main ()
43801{
43802
43803 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43804 #error "no pch support"
43805 #endif
43806 #if (__GNUC__ < 3)
43807 #error "no pch support"
43808 #endif
43809 #if (__GNUC__ == 3) && \
43810 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43811 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43812 #error "no pch support"
43813 #endif
43814
43815 ;
43816 return 0;
43817}
43818_ACEOF
43819rm -f conftest.$ac_objext
43820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43821 (eval $ac_compile) 2>conftest.er1
a848cd7e 43822 ac_status=$?
ac1cb8d3
VS
43823 grep -v '^ *+' conftest.er1 >conftest.err
43824 rm -f conftest.er1
43825 cat conftest.err >&5
a848cd7e
SC
43826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827 (exit $ac_status); } &&
6ebeb4c7 43828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43830 (eval $ac_try) 2>&5
43831 ac_status=$?
43832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); }; } &&
43834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43836 (eval $ac_try) 2>&5
43837 ac_status=$?
43838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43839 (exit $ac_status); }; }; then
43840
43841 echo "$as_me:$LINENO: result: yes" >&5
43842echo "${ECHO_T}yes" >&6
a848cd7e
SC
43843 GCC_PCH=1
43844
43845else
43846 echo "$as_me: failed program was:" >&5
43847sed 's/^/| /' conftest.$ac_ext >&5
43848
43849
43850 echo "$as_me:$LINENO: result: no" >&5
43851echo "${ECHO_T}no" >&6
43852
43853fi
ac1cb8d3 43854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43855 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43856
43857D='$'
43858cat <<EOF >bk-make-pch
a848cd7e
SC
43859#!/bin/sh
43860
43861# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43862# script. It is used to generated precompiled headers.
43863#
43864# Permission is given to use this file in any way.
43865
1e9e8aba
DE
43866outfile="${D}{1}"
43867header="${D}{2}"
a848cd7e
SC
43868shift
43869shift
43870
43871compiler=
43872headerfile=
1e9e8aba
DE
43873while test ${D}{#} -gt 0; do
43874 case "${D}{1}" in
a848cd7e 43875 -I* )
1e9e8aba
DE
43876 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43877 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43878 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43879 fi
43880 ;;
43881 esac
1e9e8aba 43882 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43883 shift
43884done
43885
1e9e8aba
DE
43886if test "x${D}{headerfile}" = "x" ; then
43887 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43888else
1e9e8aba
DE
43889 if test -f ${D}{outfile} ; then
43890 rm -f ${D}{outfile}
a848cd7e 43891 else
1e9e8aba 43892 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43893 fi
1e9e8aba 43894 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43895 mkdir -p .deps
43896 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43897 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43898 exit ${D}{?}
a848cd7e
SC
43899fi
43900EOF
1e9e8aba 43901
a848cd7e
SC
43902 chmod +x bk-make-pch
43903 fi
43904 fi
43905 fi
43906
43907
43908
a848cd7e
SC
43909 COND_BUILD_DEBUG="#"
43910 if test "x$BUILD" = "xdebug" ; then
43911 COND_BUILD_DEBUG=""
43912 fi
43913
43914 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43915 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43916 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43917 fi
43918
43919 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43920 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43921 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43922 fi
43923
43924 COND_BUILD_DEBUG_UNICODE_0="#"
43925 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43926 COND_BUILD_DEBUG_UNICODE_0=""
43927 fi
43928
43929 COND_BUILD_DEBUG_UNICODE_1="#"
43930 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43931 COND_BUILD_DEBUG_UNICODE_1=""
43932 fi
43933
43934 COND_BUILD_RELEASE="#"
43935 if test "x$BUILD" = "xrelease" ; then
43936 COND_BUILD_RELEASE=""
43937 fi
43938
43939 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43940 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43941 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43942 fi
43943
43944 COND_BUILD_RELEASE_UNICODE_0="#"
43945 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43946 COND_BUILD_RELEASE_UNICODE_0=""
43947 fi
43948
43949 COND_BUILD_RELEASE_UNICODE_1="#"
43950 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43951 COND_BUILD_RELEASE_UNICODE_1=""
43952 fi
43953
43954 COND_DEBUG_FLAG_1="#"
43955 if test "x$DEBUG_FLAG" = "x1" ; then
43956 COND_DEBUG_FLAG_1=""
43957 fi
43958
43959 COND_DEBUG_INFO_0="#"
43960 if test "x$DEBUG_INFO" = "x0" ; then
43961 COND_DEBUG_INFO_0=""
43962 fi
43963
43964 COND_DEBUG_INFO_1="#"
43965 if test "x$DEBUG_INFO" = "x1" ; then
43966 COND_DEBUG_INFO_1=""
43967 fi
43968
43969 COND_DEPS_TRACKING_0="#"
43970 if test "x$DEPS_TRACKING" = "x0" ; then
43971 COND_DEPS_TRACKING_0=""
43972 fi
43973
43974 COND_DEPS_TRACKING_1="#"
43975 if test "x$DEPS_TRACKING" = "x1" ; then
43976 COND_DEPS_TRACKING_1=""
43977 fi
43978
43979 COND_GCC_PCH_1="#"
43980 if test "x$GCC_PCH" = "x1" ; then
43981 COND_GCC_PCH_1=""
43982 fi
43983
43984 COND_MONOLITHIC_0="#"
43985 if test "x$MONOLITHIC" = "x0" ; then
43986 COND_MONOLITHIC_0=""
43987 fi
43988
43989 COND_MONOLITHIC_0_SHARED_0="#"
43990 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43991 COND_MONOLITHIC_0_SHARED_0=""
43992 fi
43993
43994 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43995 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43996 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43997 fi
43998
90970d69
DE
43999 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44000 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44001 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44002 fi
44003
a848cd7e
SC
44004 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44005 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44006 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44007 fi
44008
6671c68b
VZ
44009 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44010 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44011 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44012 fi
44013
a848cd7e
SC
44014 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44015 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44016 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44017 fi
44018
ceec2216
RL
44019 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44020 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44021 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44022 fi
44023
a848cd7e
SC
44024 COND_MONOLITHIC_0_SHARED_1="#"
44025 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44026 COND_MONOLITHIC_0_SHARED_1=""
44027 fi
44028
44029 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44030 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44031 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44032 fi
44033
90970d69
DE
44034 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44035 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44036 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44037 fi
44038
a848cd7e
SC
44039 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44040 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44041 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44042 fi
44043
6671c68b
VZ
44044 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44045 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44046 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44047 fi
44048
a848cd7e
SC
44049 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44050 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44051 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44052 fi
44053
ceec2216
RL
44054 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44055 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44056 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44057 fi
44058
a848cd7e
SC
44059 COND_MONOLITHIC_0_USE_ODBC_1="#"
44060 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44061 COND_MONOLITHIC_0_USE_ODBC_1=""
44062 fi
44063
44064 COND_MONOLITHIC_1="#"
44065 if test "x$MONOLITHIC" = "x1" ; then
44066 COND_MONOLITHIC_1=""
44067 fi
44068
44069 COND_MONOLITHIC_1_SHARED_0="#"
44070 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44071 COND_MONOLITHIC_1_SHARED_0=""
44072 fi
44073
44074 COND_MONOLITHIC_1_SHARED_1="#"
44075 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44076 COND_MONOLITHIC_1_SHARED_1=""
44077 fi
44078
44079 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44080 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44081 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44082 fi
44083
44084 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44085 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44086 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44087 fi
44088
eb730a0c
JS
44089 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44090 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44091 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44092 fi
44093
a848cd7e
SC
44094 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44095 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44096 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44097 fi
44098
44099 COND_PLATFORM_MACOSX_1="#"
44100 if test "x$PLATFORM_MACOSX" = "x1" ; then
44101 COND_PLATFORM_MACOSX_1=""
44102 fi
44103
a30f955f
VS
44104 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44105 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44106 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44107 fi
44108
a848cd7e
SC
44109 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44110 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44111 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44112 fi
44113
44114 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44115 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44116 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44117 fi
44118
44119 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
44120 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
44121 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
44122 fi
44123
fc480dc1
DE
44124 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
44125 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44126 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
44127 fi
44128
1e9e8aba
DE
44129 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44130 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44131 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44132 fi
44133
ebee3cd0
VS
44134 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
44135 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
44136 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
44137 fi
44138
44139 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
44140 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
44141 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
44142 fi
44143
a848cd7e
SC
44144 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
44145 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
44146 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
44147 fi
44148
44149 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
44150 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44151 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
44152 fi
44153
b48a2016
DE
44154 COND_PLATFORM_MACOS_1="#"
44155 if test "x$PLATFORM_MACOS" = "x1" ; then
44156 COND_PLATFORM_MACOS_1=""
44157 fi
44158
083508af
MW
44159 COND_PLATFORM_MAC_1="#"
44160 if test "x$PLATFORM_MAC" = "x1" ; then
44161 COND_PLATFORM_MAC_1=""
44162 fi
44163
83d8eb47
MW
44164 COND_PLATFORM_MSDOS_1="#"
44165 if test "x$PLATFORM_MSDOS" = "x1" ; then
44166 COND_PLATFORM_MSDOS_1=""
44167 fi
44168
a848cd7e
SC
44169 COND_PLATFORM_OS2_1="#"
44170 if test "x$PLATFORM_OS2" = "x1" ; then
44171 COND_PLATFORM_OS2_1=""
44172 fi
44173
44174 COND_PLATFORM_UNIX_0="#"
44175 if test "x$PLATFORM_UNIX" = "x0" ; then
44176 COND_PLATFORM_UNIX_0=""
44177 fi
44178
44179 COND_PLATFORM_UNIX_1="#"
44180 if test "x$PLATFORM_UNIX" = "x1" ; then
44181 COND_PLATFORM_UNIX_1=""
44182 fi
44183
44184 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
44185 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
44186 COND_PLATFORM_UNIX_1_USE_GUI_1=""
44187 fi
44188
44189 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
44190 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
44191 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
44192 fi
44193
44194 COND_PLATFORM_WIN32_0="#"
44195 if test "x$PLATFORM_WIN32" = "x0" ; then
44196 COND_PLATFORM_WIN32_0=""
44197 fi
44198
44199 COND_PLATFORM_WIN32_1="#"
44200 if test "x$PLATFORM_WIN32" = "x1" ; then
44201 COND_PLATFORM_WIN32_1=""
44202 fi
44203
44204 COND_SHARED_0="#"
44205 if test "x$SHARED" = "x0" ; then
44206 COND_SHARED_0=""
44207 fi
44208
083508af
MW
44209 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
44210 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
44211 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
44212 fi
44213
44214 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
44215 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
44216 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
44217 fi
44218
44219 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
44220 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44221 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44222 fi
44223
a848cd7e
SC
44224 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44225 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44226 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44227 fi
44228
44229 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44230 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44231 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44232 fi
44233
44234 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44235 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44236 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44237 fi
44238
44239 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44240 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44241 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44242 fi
44243
083508af
MW
44244 COND_SHARED_0_USE_XRC_1="#"
44245 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44246 COND_SHARED_0_USE_XRC_1=""
44247 fi
44248
a848cd7e
SC
44249 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44250 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44251 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44252 fi
44253
44254 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44255 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44256 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44257 fi
44258
44259 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44260 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44261 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44262 fi
44263
44264 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44265 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44266 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44267 fi
44268
44269 COND_SHARED_1="#"
44270 if test "x$SHARED" = "x1" ; then
44271 COND_SHARED_1=""
44272 fi
44273
44274 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44275 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44276 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44277 fi
44278
083508af
MW
44279 COND_SHARED_1_USE_XRC_1="#"
44280 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44281 COND_SHARED_1_USE_XRC_1=""
44282 fi
44283
a30f955f
VS
44284 COND_TOOLKIT_="#"
44285 if test "x$TOOLKIT" = "x" ; then
44286 COND_TOOLKIT_=""
44287 fi
44288
a848cd7e
SC
44289 COND_TOOLKIT_COCOA="#"
44290 if test "x$TOOLKIT" = "xCOCOA" ; then
44291 COND_TOOLKIT_COCOA=""
44292 fi
44293
a49baeab
DE
44294 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44295 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44296 COND_TOOLKIT_COCOA_USE_GUI_1=""
44297 fi
44298
a848cd7e
SC
44299 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44300 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44301 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44302 fi
44303
44304 COND_TOOLKIT_GTK="#"
44305 if test "x$TOOLKIT" = "xGTK" ; then
44306 COND_TOOLKIT_GTK=""
44307 fi
44308
44309 COND_TOOLKIT_GTK_USE_GUI_1="#"
44310 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44311 COND_TOOLKIT_GTK_USE_GUI_1=""
44312 fi
44313
44314 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44315 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44316 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44317 fi
44318
44319 COND_TOOLKIT_MAC="#"
44320 if test "x$TOOLKIT" = "xMAC" ; then
44321 COND_TOOLKIT_MAC=""
44322 fi
44323
44324 COND_TOOLKIT_MAC_USE_GUI_1="#"
44325 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44326 COND_TOOLKIT_MAC_USE_GUI_1=""
44327 fi
44328
44329 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44330 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44331 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44332 fi
44333
44334 COND_TOOLKIT_MGL="#"
44335 if test "x$TOOLKIT" = "xMGL" ; then
44336 COND_TOOLKIT_MGL=""
44337 fi
44338
44339 COND_TOOLKIT_MGL_USE_GUI_1="#"
44340 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44341 COND_TOOLKIT_MGL_USE_GUI_1=""
44342 fi
44343
44344 COND_TOOLKIT_MOTIF="#"
44345 if test "x$TOOLKIT" = "xMOTIF" ; then
44346 COND_TOOLKIT_MOTIF=""
44347 fi
44348
44349 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44350 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44351 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44352 fi
44353
44354 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44355 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44356 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44357 fi
44358
44359 COND_TOOLKIT_MSW="#"
44360 if test "x$TOOLKIT" = "xMSW" ; then
44361 COND_TOOLKIT_MSW=""
44362 fi
44363
44364 COND_TOOLKIT_MSW_USE_GUI_1="#"
44365 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44366 COND_TOOLKIT_MSW_USE_GUI_1=""
44367 fi
44368
44369 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44370 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44371 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44372 fi
44373
44374 COND_TOOLKIT_PM="#"
44375 if test "x$TOOLKIT" = "xPM" ; then
44376 COND_TOOLKIT_PM=""
44377 fi
44378
44379 COND_TOOLKIT_PM_USE_GUI_1="#"
44380 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44381 COND_TOOLKIT_PM_USE_GUI_1=""
44382 fi
44383
44384 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44385 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44386 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44387 fi
44388
3fd9c298
DE
44389 COND_TOOLKIT_WINCE="#"
44390 if test "x$TOOLKIT" = "xWINCE" ; then
44391 COND_TOOLKIT_WINCE=""
44392 fi
44393
44394 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44395 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44396 COND_TOOLKIT_WINCE_USE_GUI_1=""
44397 fi
44398
44399 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44400 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44401 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44402 fi
44403
a848cd7e
SC
44404 COND_TOOLKIT_X11="#"
44405 if test "x$TOOLKIT" = "xX11" ; then
44406 COND_TOOLKIT_X11=""
44407 fi
44408
44409 COND_TOOLKIT_X11_USE_GUI_1="#"
44410 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44411 COND_TOOLKIT_X11_USE_GUI_1=""
44412 fi
44413
44414 COND_UNICODE_1="#"
44415 if test "x$UNICODE" = "x1" ; then
44416 COND_UNICODE_1=""
44417 fi
44418
44419 COND_USE_EXCEPTIONS_0="#"
44420 if test "x$USE_EXCEPTIONS" = "x0" ; then
44421 COND_USE_EXCEPTIONS_0=""
44422 fi
44423
44424 COND_USE_EXCEPTIONS_1="#"
44425 if test "x$USE_EXCEPTIONS" = "x1" ; then
44426 COND_USE_EXCEPTIONS_1=""
44427 fi
44428
44429 COND_USE_GUI_0="#"
44430 if test "x$USE_GUI" = "x0" ; then
44431 COND_USE_GUI_0=""
44432 fi
44433
44434 COND_USE_GUI_1="#"
44435 if test "x$USE_GUI" = "x1" ; then
44436 COND_USE_GUI_1=""
44437 fi
44438
44439 COND_USE_GUI_1_WXUNIV_0="#"
44440 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44441 COND_USE_GUI_1_WXUNIV_0=""
44442 fi
44443
44444 COND_USE_GUI_1_WXUNIV_1="#"
44445 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44446 COND_USE_GUI_1_WXUNIV_1=""
44447 fi
44448
44449 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44450 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44451 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44452 fi
44453
44454 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44455 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44456 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44457 fi
44458
44459 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44460 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44461 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44462 fi
44463
083508af
MW
44464 COND_USE_ODBC_1="#"
44465 if test "x$USE_ODBC" = "x1" ; then
44466 COND_USE_ODBC_1=""
44467 fi
44468
44469 COND_USE_OPENGL_1="#"
44470 if test "x$USE_OPENGL" = "x1" ; then
44471 COND_USE_OPENGL_1=""
44472 fi
44473
a848cd7e
SC
44474 COND_USE_PLUGINS_0="#"
44475 if test "x$USE_PLUGINS" = "x0" ; then
44476 COND_USE_PLUGINS_0=""
44477 fi
44478
0b78747f
MW
44479 COND_USE_RTTI_0="#"
44480 if test "x$USE_RTTI" = "x0" ; then
44481 COND_USE_RTTI_0=""
44482 fi
44483
44484 COND_USE_RTTI_1="#"
44485 if test "x$USE_RTTI" = "x1" ; then
44486 COND_USE_RTTI_1=""
44487 fi
44488
a848cd7e
SC
44489 COND_USE_SOSYMLINKS_1="#"
44490 if test "x$USE_SOSYMLINKS" = "x1" ; then
44491 COND_USE_SOSYMLINKS_1=""
44492 fi
44493
eb730a0c
JS
44494 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44495 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44496 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44497 fi
44498
a848cd7e
SC
44499 COND_USE_SOVERLINUX_1="#"
44500 if test "x$USE_SOVERLINUX" = "x1" ; then
44501 COND_USE_SOVERLINUX_1=""
44502 fi
44503
44504 COND_USE_SOVERSION_0="#"
44505 if test "x$USE_SOVERSION" = "x0" ; then
44506 COND_USE_SOVERSION_0=""
44507 fi
44508
44509 COND_USE_SOVERSOLARIS_1="#"
44510 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44511 COND_USE_SOVERSOLARIS_1=""
44512 fi
44513
0b78747f
MW
44514 COND_USE_THREADS_0="#"
44515 if test "x$USE_THREADS" = "x0" ; then
44516 COND_USE_THREADS_0=""
44517 fi
44518
44519 COND_USE_THREADS_1="#"
44520 if test "x$USE_THREADS" = "x1" ; then
44521 COND_USE_THREADS_1=""
44522 fi
44523
a13a7f89
RL
44524 COND_USE_XRC_1="#"
44525 if test "x$USE_XRC" = "x1" ; then
44526 COND_USE_XRC_1=""
44527 fi
44528
eb730a0c
JS
44529 COND_WINDOWS_IMPLIB_1="#"
44530 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44531 COND_WINDOWS_IMPLIB_1=""
44532 fi
44533
a848cd7e
SC
44534 COND_WITH_PLUGIN_SDL_1="#"
44535 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44536 COND_WITH_PLUGIN_SDL_1=""
44537 fi
44538
1e6eb025
VZ
44539 COND_WXUNIV_0="#"
44540 if test "x$WXUNIV" = "x0" ; then
44541 COND_WXUNIV_0=""
44542 fi
44543
a848cd7e
SC
44544 COND_WXUNIV_1="#"
44545 if test "x$WXUNIV" = "x1" ; then
44546 COND_WXUNIV_1=""
44547 fi
44548
44549 COND_WXUSE_EXPAT_BUILTIN="#"
44550 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44551 COND_WXUSE_EXPAT_BUILTIN=""
44552 fi
44553
44554 COND_WXUSE_LIBJPEG_BUILTIN="#"
44555 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44556 COND_WXUSE_LIBJPEG_BUILTIN=""
44557 fi
44558
44559 COND_WXUSE_LIBPNG_BUILTIN="#"
44560 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44561 COND_WXUSE_LIBPNG_BUILTIN=""
44562 fi
44563
44564 COND_WXUSE_LIBTIFF_BUILTIN="#"
44565 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44566 COND_WXUSE_LIBTIFF_BUILTIN=""
44567 fi
44568
44569 COND_WXUSE_ODBC_BUILTIN="#"
44570 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44571 COND_WXUSE_ODBC_BUILTIN=""
44572 fi
44573
44574 COND_WXUSE_REGEX_BUILTIN="#"
44575 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44576 COND_WXUSE_REGEX_BUILTIN=""
44577 fi
44578
44579 COND_WXUSE_ZLIB_BUILTIN="#"
44580 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44581 COND_WXUSE_ZLIB_BUILTIN=""
44582 fi
44583
44584
44585
810b94f0
MW
44586 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44587 { { 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
44588echo "$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;}
44589 { (exit 1); exit 1; }; }
44590 fi
44591
2057db16
VS
44592 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44593 { { 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
44594echo "$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;}
44595 { (exit 1); exit 1; }; }
44596 fi
44597
a848cd7e 44598
fb00f58d
JS
44599if test "$wxUSE_WINE" = "yes"; then
44600 RESCOMP=wrc
44601fi
44602
ceec2216
RL
44603if test "$wxUSE_SHARED" = "yes"; then
44604
44605 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44606 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44607
5b674b9d
DE
44608 case "${host}" in
44609 *-pc-os2_emx | *-pc-os2-emx )
44610 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44611 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44612 cp -p ${srcdir}/src/os2/dllnames.sh .
44613 cp -p ${srcdir}/src/os2/dllar.sh .
44614 ;;
44615 esac
ceec2216
RL
44616else
44617
44618 EXE_LINKER="$CXX -o"
44619
44620fi
69120ee4
VZ
44621if test "$wxUSE_OMF" = "yes"; then
44622 case "${host}" in
44623 *-pc-os2_emx | *-pc-os2-emx )
44624 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44625 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44626 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44627 ;;
44628 esac
44629fi
a848cd7e 44630
ddd14b14
RR
44631GCC_PRAGMA_FLAGS=""
44632PCH_FLAGS=""
87dd70d3 44633
c08ebc62 44634if test $GCC_PCH = 1 ; then
ddd14b14 44635 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44636 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44637else
44638 if test "$GCC" = yes; then
44639 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44640echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44641 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44642/* confdefs.h. */
44643_ACEOF
44644cat confdefs.h >>conftest.$ac_ext
44645cat >>conftest.$ac_ext <<_ACEOF
44646/* end confdefs.h. */
44647
44648int
44649main ()
44650{
44651#if (__GNUC__ < 4)
04e525a0 44652 Not GCC 4.0 or greater
87ae5038 44653 #endif
87dd70d3
RR
44654
44655 ;
44656 return 0;
44657}
44658_ACEOF
44659rm -f conftest.$ac_objext
44660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44661 (eval $ac_compile) 2>conftest.er1
44662 ac_status=$?
44663 grep -v '^ *+' conftest.er1 >conftest.err
44664 rm -f conftest.er1
44665 cat conftest.err >&5
44666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44667 (exit $ac_status); } &&
6ebeb4c7 44668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44670 (eval $ac_try) 2>&5
44671 ac_status=$?
44672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44673 (exit $ac_status); }; } &&
44674 { ac_try='test -s conftest.$ac_objext'
44675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44676 (eval $ac_try) 2>&5
44677 ac_status=$?
44678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44679 (exit $ac_status); }; }; then
44680 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44681 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44682echo "${ECHO_T}yes" >&6
44683else
44684 echo "$as_me: failed program was:" >&5
44685sed 's/^/| /' conftest.$ac_ext >&5
44686
44687echo "$as_me:$LINENO: result: no" >&5
44688echo "${ECHO_T}no" >&6
87ae5038 44689 case "${host}" in
cfda0ea8 44690 *-*-darwin* )
87ae5038
RR
44691 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44692 ;;
44693 *-*-mingw32* )
44694 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44695 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44696 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44697 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44698echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44699 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44700/* confdefs.h. */
44701_ACEOF
44702cat confdefs.h >>conftest.$ac_ext
44703cat >>conftest.$ac_ext <<_ACEOF
44704/* end confdefs.h. */
44705
44706int
44707main ()
44708{
44709#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44710 Not GCC 3.2 or greater
87ae5038 44711 #endif
ddd14b14
RR
44712
44713 ;
44714 return 0;
44715}
44716_ACEOF
44717rm -f conftest.$ac_objext
44718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44719 (eval $ac_compile) 2>conftest.er1
44720 ac_status=$?
44721 grep -v '^ *+' conftest.er1 >conftest.err
44722 rm -f conftest.er1
44723 cat conftest.err >&5
44724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725 (exit $ac_status); } &&
6ebeb4c7 44726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44728 (eval $ac_try) 2>&5
44729 ac_status=$?
44730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44731 (exit $ac_status); }; } &&
44732 { ac_try='test -s conftest.$ac_objext'
44733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44734 (eval $ac_try) 2>&5
44735 ac_status=$?
44736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737 (exit $ac_status); }; }; then
44738 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44739 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44740echo "${ECHO_T}yes" >&6
44741else
44742 echo "$as_me: failed program was:" >&5
44743sed 's/^/| /' conftest.$ac_ext >&5
44744
44745echo "$as_me:$LINENO: result: no" >&5
44746echo "${ECHO_T}no" >&6
3314e67b 44747fi
ddd14b14 44748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44749 fi
44750 ;;
44751 *-pc-os2_emx | *-pc-os2-emx )
44752 if test "$wxUSE_STL" = "yes"; then
44753 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44754echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44755 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44756/* confdefs.h. */
44757_ACEOF
44758cat confdefs.h >>conftest.$ac_ext
44759cat >>conftest.$ac_ext <<_ACEOF
44760/* end confdefs.h. */
44761
44762int
44763main ()
44764{
44765#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44766 Not GCC 3.2 or greater
87ae5038 44767 #endif
ddd14b14
RR
44768
44769 ;
44770 return 0;
44771}
44772_ACEOF
44773rm -f conftest.$ac_objext
44774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44775 (eval $ac_compile) 2>conftest.er1
44776 ac_status=$?
44777 grep -v '^ *+' conftest.er1 >conftest.err
44778 rm -f conftest.er1
44779 cat conftest.err >&5
44780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44781 (exit $ac_status); } &&
6ebeb4c7 44782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44784 (eval $ac_try) 2>&5
44785 ac_status=$?
44786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787 (exit $ac_status); }; } &&
44788 { ac_try='test -s conftest.$ac_objext'
44789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44790 (eval $ac_try) 2>&5
44791 ac_status=$?
44792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44793 (exit $ac_status); }; }; then
44794 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44795 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44796echo "${ECHO_T}yes" >&6
44797else
44798 echo "$as_me: failed program was:" >&5
44799sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44800
ddd14b14
RR
44801echo "$as_me:$LINENO: result: no" >&5
44802echo "${ECHO_T}no" >&6
44803fi
44804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44805 fi
44806 ;;
44807 esac
44808
44809fi
44810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44811 fi
ddd14b14
RR
44812fi
44813CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44814
44815
44816SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
a848cd7e
SC
44859
44860
44861
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
ddd14b14 44877
a848cd7e
SC
44878
44879
44880echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44881echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44882set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44883if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44884 echo $ECHO_N "(cached) $ECHO_C" >&6
44885else
44886 cat >conftest.make <<\_ACEOF
44887all:
44888 @echo 'ac_maketemp="$(MAKE)"'
44889_ACEOF
44890# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44891eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44892if test -n "$ac_maketemp"; then
44893 eval ac_cv_prog_make_${ac_make}_set=yes
44894else
44895 eval ac_cv_prog_make_${ac_make}_set=no
44896fi
44897rm -f conftest.make
44898fi
44899if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44900 echo "$as_me:$LINENO: result: yes" >&5
44901echo "${ECHO_T}yes" >&6
44902 SET_MAKE=
44903else
44904 echo "$as_me:$LINENO: result: no" >&5
44905echo "${ECHO_T}no" >&6
44906 SET_MAKE="MAKE=${MAKE-make}"
44907fi
44908
44909
a848cd7e 44910
ceec2216
RL
44911 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44912
a848cd7e 44913
ceec2216 44914 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44915
a848cd7e 44916
ceec2216 44917 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44918
ceec2216
RL
44919
44920 ac_config_files="$ac_config_files version-script Makefile"
44921
44922
44923 ac_config_commands="$ac_config_commands wx-config
44924 "
a848cd7e
SC
44925
44926
9103d280
RL
44927
44928
a848cd7e
SC
44929if test "$wxUSE_GUI" = "yes"; then
44930 SUBDIRS="samples demos utils contrib"
44931else SUBDIRS="samples utils"
44932fi
44933
44934
44935
44936# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44937if test "${with_cppunit_prefix+set}" = set; then
44938 withval="$with_cppunit_prefix"
44939 cppunit_config_prefix="$withval"
44940else
44941 cppunit_config_prefix=""
44942fi;
44943
44944# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44945if test "${with_cppunit_exec_prefix+set}" = set; then
44946 withval="$with_cppunit_exec_prefix"
44947 cppunit_config_exec_prefix="$withval"
44948else
44949 cppunit_config_exec_prefix=""
44950fi;
44951
44952 if test x$cppunit_config_exec_prefix != x ; then
44953 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44954 if test x${CPPUNIT_CONFIG+set} != xset ; then
44955 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44956 fi
44957 fi
44958 if test x$cppunit_config_prefix != x ; then
44959 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44960 if test x${CPPUNIT_CONFIG+set} != xset ; then
44961 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44962 fi
44963 fi
44964
44965 # Extract the first word of "cppunit-config", so it can be a program name with args.
44966set dummy cppunit-config; ac_word=$2
44967echo "$as_me:$LINENO: checking for $ac_word" >&5
44968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44969if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44970 echo $ECHO_N "(cached) $ECHO_C" >&6
44971else
44972 case $CPPUNIT_CONFIG in
44973 [\\/]* | ?:[\\/]*)
44974 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44975 ;;
44976 *)
44977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44978for as_dir in $PATH
44979do
44980 IFS=$as_save_IFS
44981 test -z "$as_dir" && as_dir=.
44982 for ac_exec_ext in '' $ac_executable_extensions; do
44983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44984 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44986 break 2
44987 fi
44988done
44989done
44990
44991 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44992 ;;
44993esac
44994fi
44995CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44996
44997if test -n "$CPPUNIT_CONFIG"; then
44998 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44999echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45000else
45001 echo "$as_me:$LINENO: result: no" >&5
45002echo "${ECHO_T}no" >&6
45003fi
45004
45005 cppunit_version_min=1.8.0
45006
45007 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45008echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45009 no_cppunit=""
45010 if test "$CPPUNIT_CONFIG" = "no" ; then
45011 no_cppunit=yes
45012 else
45013 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45014 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45015 cppunit_version=`$CPPUNIT_CONFIG --version`
45016
45017 cppunit_major_version=`echo $cppunit_version | \
45018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45019 cppunit_minor_version=`echo $cppunit_version | \
45020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45021 cppunit_micro_version=`echo $cppunit_version | \
45022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45023
45024 cppunit_major_min=`echo $cppunit_version_min | \
45025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45026 cppunit_minor_min=`echo $cppunit_version_min | \
45027 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45028 cppunit_micro_min=`echo $cppunit_version_min | \
45029 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45030
45031 cppunit_version_proper=`expr \
45032 $cppunit_major_version \> $cppunit_major_min \| \
45033 $cppunit_major_version \= $cppunit_major_min \& \
45034 $cppunit_minor_version \> $cppunit_minor_min \| \
45035 $cppunit_major_version \= $cppunit_major_min \& \
45036 $cppunit_minor_version \= $cppunit_minor_min \& \
45037 $cppunit_micro_version \>= $cppunit_micro_min `
45038
45039 if test "$cppunit_version_proper" = "1" ; then
45040 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45041echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45042 else
45043 echo "$as_me:$LINENO: result: no" >&5
45044echo "${ECHO_T}no" >&6
45045 no_cppunit=yes
45046 fi
45047 fi
45048
45049 if test "x$no_cppunit" = x ; then
c2218763 45050 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45051 else
45052 CPPUNIT_CFLAGS=""
45053 CPPUNIT_LIBS=""
c2218763 45054 :
a848cd7e
SC
45055 fi
45056
45057
45058
45059
45060
45061for subdir in `echo $SUBDIRS`; do
45062 if test -d ${srcdir}/${subdir} ; then
45063 if test "$wxUSE_GUI" = "yes"; then
45064 if test ${subdir} = "samples"; then
45065 makefiles="samples/Makefile.in $makefiles"
45066 for sample in `echo $SAMPLES_SUBDIRS`; do
45067 if test -d $srcdir/samples/$sample; then
45068 makefiles="samples/$sample/Makefile.in $makefiles"
45069 fi
45070 done
9c112555
MW
45071 else
45072 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45073 eval "disabled=\$$disabled_var"
45074 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45075 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45076 fi
45077 else if test ${subdir} = "samples"; then
45078 makefiles="samples/Makefile.in samples/console/Makefile.in"
45079 elif test ${subdir} = "utils"; then
6537ccf8
VS
45080 makefiles=""
45081 for util in HelpGen tex2rtf ; do
45082 if test -d $srcdir/utils/$util ; then
45083 makefiles="utils/$util/Makefile.in \
45084 utils/$util/src/Makefile.in \
45085 $makefiles"
45086 fi
45087 done
a848cd7e
SC
45088 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45089 fi
45090 fi
45091
45092 for mkin in $makefiles ; do
45093 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45094 ac_config_files="$ac_config_files $mk"
45095
45096 done
45097 fi
45098done
45099
45100
45101cat >confcache <<\_ACEOF
45102# This file is a shell script that caches the results of configure
45103# tests run on this system so they can be shared between configure
45104# scripts and configure runs, see configure's option --config-cache.
45105# It is not useful on other systems. If it contains results you don't
45106# want to keep, you may remove or edit it.
45107#
45108# config.status only pays attention to the cache file if you give it
45109# the --recheck option to rerun configure.
45110#
45111# `ac_cv_env_foo' variables (set or unset) will be overridden when
45112# loading this file, other *unset* `ac_cv_foo' will be assigned the
45113# following values.
45114
45115_ACEOF
45116
45117# The following way of writing the cache mishandles newlines in values,
45118# but we know of no workaround that is simple, portable, and efficient.
45119# So, don't put newlines in cache variables' values.
45120# Ultrix sh set writes to stderr and can't be redirected directly,
45121# and sets the high bit in the cache file unless we assign to the vars.
45122{
45123 (set) 2>&1 |
45124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45125 *ac_space=\ *)
45126 # `set' does not quote correctly, so add quotes (double-quote
45127 # substitution turns \\\\ into \\, and sed turns \\ into \).
45128 sed -n \
ac1cb8d3
VS
45129 "s/'/'\\\\''/g;
45130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45131 ;;
45132 *)
45133 # `set' quotes correctly as required by POSIX, so do not add quotes.
45134 sed -n \
ac1cb8d3 45135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45136 ;;
45137 esac;
45138} |
45139 sed '
45140 t clear
45141 : clear
45142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45143 t end
45144 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45145 : end' >>confcache
45146if diff $cache_file confcache >/dev/null 2>&1; then :; else
45147 if test -w $cache_file; then
45148 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45149 cat confcache >$cache_file
45150 else
45151 echo "not updating unwritable cache $cache_file"
45152 fi
45153fi
45154rm -f confcache
45155
45156test "x$prefix" = xNONE && prefix=$ac_default_prefix
45157# Let make expand exec_prefix.
45158test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45159
45160# VPATH may cause trouble with some makes, so we remove $(srcdir),
45161# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45162# trailing colons and then remove the whole line if VPATH becomes empty
45163# (actually we leave an empty line to preserve line numbers).
45164if test "x$srcdir" = x.; then
ac1cb8d3 45165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45166s/:*\$(srcdir):*/:/;
45167s/:*\${srcdir}:*/:/;
45168s/:*@srcdir@:*/:/;
ac1cb8d3 45169s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45170s/:*$//;
ac1cb8d3 45171s/^[^=]*=[ ]*$//;
a848cd7e
SC
45172}'
45173fi
45174
45175DEFS=-DHAVE_CONFIG_H
45176
45177ac_libobjs=
45178ac_ltlibobjs=
45179for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45180 # 1. Remove the extension, and $U if already installed.
45181 ac_i=`echo "$ac_i" |
ac1cb8d3 45182 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45183 # 2. Add them.
45184 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45185 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45186done
45187LIBOBJS=$ac_libobjs
45188
45189LTLIBOBJS=$ac_ltlibobjs
45190
45191
45192
45193: ${CONFIG_STATUS=./config.status}
45194ac_clean_files_save=$ac_clean_files
45195ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45196{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45197echo "$as_me: creating $CONFIG_STATUS" >&6;}
45198cat >$CONFIG_STATUS <<_ACEOF
45199#! $SHELL
45200# Generated by $as_me.
45201# Run this file to recreate the current configuration.
45202# Compiler output produced by configure, useful for debugging
45203# configure, is in config.log if it exists.
45204
45205debug=false
45206ac_cs_recheck=false
45207ac_cs_silent=false
45208SHELL=\${CONFIG_SHELL-$SHELL}
45209_ACEOF
45210
45211cat >>$CONFIG_STATUS <<\_ACEOF
45212## --------------------- ##
45213## M4sh Initialization. ##
45214## --------------------- ##
45215
45216# Be Bourne compatible
45217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45218 emulate sh
45219 NULLCMD=:
45220 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45221 # is contrary to our usage. Disable this feature.
45222 alias -g '${1+"$@"}'='"$@"'
45223elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45224 set -o posix
45225fi
ac1cb8d3 45226DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45227
45228# Support unset when possible.
ac1cb8d3 45229if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45230 as_unset=unset
45231else
45232 as_unset=false
45233fi
45234
45235
45236# Work around bugs in pre-3.0 UWIN ksh.
45237$as_unset ENV MAIL MAILPATH
45238PS1='$ '
45239PS2='> '
45240PS4='+ '
45241
45242# NLS nuisances.
45243for as_var in \
45244 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45245 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45246 LC_TELEPHONE LC_TIME
45247do
ac1cb8d3 45248 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45249 eval $as_var=C; export $as_var
45250 else
45251 $as_unset $as_var
45252 fi
45253done
45254
45255# Required to use basename.
45256if expr a : '\(a\)' >/dev/null 2>&1; then
45257 as_expr=expr
45258else
45259 as_expr=false
45260fi
45261
45262if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45263 as_basename=basename
45264else
45265 as_basename=false
45266fi
45267
45268
45269# Name of the executable.
45270as_me=`$as_basename "$0" ||
45271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45272 X"$0" : 'X\(//\)$' \| \
45273 X"$0" : 'X\(/\)$' \| \
45274 . : '\(.\)' 2>/dev/null ||
45275echo X/"$0" |
45276 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45277 /^X\/\(\/\/\)$/{ s//\1/; q; }
45278 /^X\/\(\/\).*/{ s//\1/; q; }
45279 s/.*/./; q'`
45280
45281
45282# PATH needs CR, and LINENO needs CR and PATH.
45283# Avoid depending upon Character Ranges.
45284as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45286as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45287as_cr_digits='0123456789'
45288as_cr_alnum=$as_cr_Letters$as_cr_digits
45289
45290# The user is always right.
45291if test "${PATH_SEPARATOR+set}" != set; then
45292 echo "#! /bin/sh" >conf$$.sh
45293 echo "exit 0" >>conf$$.sh
45294 chmod +x conf$$.sh
45295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45296 PATH_SEPARATOR=';'
45297 else
45298 PATH_SEPARATOR=:
45299 fi
45300 rm -f conf$$.sh
45301fi
45302
45303
45304 as_lineno_1=$LINENO
45305 as_lineno_2=$LINENO
45306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45307 test "x$as_lineno_1" != "x$as_lineno_2" &&
45308 test "x$as_lineno_3" = "x$as_lineno_2" || {
45309 # Find who we are. Look in the path if we contain no path at all
45310 # relative or not.
45311 case $0 in
45312 *[\\/]* ) as_myself=$0 ;;
45313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45314for as_dir in $PATH
45315do
45316 IFS=$as_save_IFS
45317 test -z "$as_dir" && as_dir=.
45318 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45319done
45320
45321 ;;
45322 esac
45323 # We did not find ourselves, most probably we were run as `sh COMMAND'
45324 # in which case we are not to be found in the path.
45325 if test "x$as_myself" = x; then
45326 as_myself=$0
45327 fi
45328 if test ! -f "$as_myself"; then
45329 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45330echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45331 { (exit 1); exit 1; }; }
45332 fi
45333 case $CONFIG_SHELL in
45334 '')
45335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45336for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45337do
45338 IFS=$as_save_IFS
45339 test -z "$as_dir" && as_dir=.
45340 for as_base in sh bash ksh sh5; do
45341 case $as_dir in
45342 /*)
45343 if ("$as_dir/$as_base" -c '
45344 as_lineno_1=$LINENO
45345 as_lineno_2=$LINENO
45346 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45347 test "x$as_lineno_1" != "x$as_lineno_2" &&
45348 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45349 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45350 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45351 CONFIG_SHELL=$as_dir/$as_base
45352 export CONFIG_SHELL
45353 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45354 fi;;
45355 esac
45356 done
45357done
45358;;
45359 esac
45360
45361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45362 # uniformly replaced by the line number. The first 'sed' inserts a
45363 # line-number line before each line; the second 'sed' does the real
45364 # work. The second script uses 'N' to pair each line-number line
45365 # with the numbered line, and appends trailing '-' during
45366 # substitution so that $LINENO is not a special case at line end.
45367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45368 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45369 sed '=' <$as_myself |
45370 sed '
45371 N
45372 s,$,-,
45373 : loop
45374 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45375 t loop
45376 s,-$,,
45377 s,^['$as_cr_digits']*\n,,
45378 ' >$as_me.lineno &&
45379 chmod +x $as_me.lineno ||
45380 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45381echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45382 { (exit 1); exit 1; }; }
45383
45384 # Don't try to exec as it changes $[0], causing all sort of problems
45385 # (the dirname of $[0] is not the place where we might find the
45386 # original and so on. Autoconf is especially sensible to this).
45387 . ./$as_me.lineno
45388 # Exit status is that of the last command.
45389 exit
45390}
45391
45392
45393case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45394 *c*,-n*) ECHO_N= ECHO_C='
45395' ECHO_T=' ' ;;
45396 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45397 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45398esac
45399
45400if expr a : '\(a\)' >/dev/null 2>&1; then
45401 as_expr=expr
45402else
45403 as_expr=false
45404fi
45405
45406rm -f conf$$ conf$$.exe conf$$.file
45407echo >conf$$.file
45408if ln -s conf$$.file conf$$ 2>/dev/null; then
45409 # We could just check for DJGPP; but this test a) works b) is more generic
45410 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45411 if test -f conf$$.exe; then
45412 # Don't use ln at all; we don't have any links
45413 as_ln_s='cp -p'
45414 else
45415 as_ln_s='ln -s'
45416 fi
45417elif ln conf$$.file conf$$ 2>/dev/null; then
45418 as_ln_s=ln
45419else
45420 as_ln_s='cp -p'
45421fi
45422rm -f conf$$ conf$$.exe conf$$.file
45423
45424if mkdir -p . 2>/dev/null; then
45425 as_mkdir_p=:
45426else
ac1cb8d3 45427 test -d ./-p && rmdir ./-p
a848cd7e
SC
45428 as_mkdir_p=false
45429fi
45430
45431as_executable_p="test -f"
45432
45433# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45435
45436# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45438
45439
45440# IFS
45441# We need space, tab and new line, in precisely that order.
45442as_nl='
45443'
45444IFS=" $as_nl"
45445
45446# CDPATH.
45447$as_unset CDPATH
45448
45449exec 6>&1
45450
45451# Open the log real soon, to keep \$[0] and so on meaningful, and to
45452# report actual input values of CONFIG_FILES etc. instead of their
45453# values after options handling. Logging --version etc. is OK.
45454exec 5>>config.log
45455{
45456 echo
45457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45458## Running $as_me. ##
45459_ASBOX
45460} >&5
45461cat >&5 <<_CSEOF
45462
eb730a0c 45463This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45464generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45465
45466 CONFIG_FILES = $CONFIG_FILES
45467 CONFIG_HEADERS = $CONFIG_HEADERS
45468 CONFIG_LINKS = $CONFIG_LINKS
45469 CONFIG_COMMANDS = $CONFIG_COMMANDS
45470 $ $0 $@
45471
45472_CSEOF
45473echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45474echo >&5
45475_ACEOF
45476
45477# Files that config.status was made for.
45478if test -n "$ac_config_files"; then
45479 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45480fi
45481
45482if test -n "$ac_config_headers"; then
45483 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45484fi
45485
45486if test -n "$ac_config_links"; then
45487 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45488fi
45489
45490if test -n "$ac_config_commands"; then
45491 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45492fi
45493
45494cat >>$CONFIG_STATUS <<\_ACEOF
45495
45496ac_cs_usage="\
45497\`$as_me' instantiates files from templates according to the
45498current configuration.
45499
45500Usage: $0 [OPTIONS] [FILE]...
45501
45502 -h, --help print this help, then exit
45503 -V, --version print version number, then exit
45504 -q, --quiet do not print progress messages
45505 -d, --debug don't remove temporary files
45506 --recheck update $as_me by reconfiguring in the same conditions
45507 --file=FILE[:TEMPLATE]
ac1cb8d3 45508 instantiate the configuration file FILE
a848cd7e 45509 --header=FILE[:TEMPLATE]
ac1cb8d3 45510 instantiate the configuration header FILE
a848cd7e
SC
45511
45512Configuration files:
45513$config_files
45514
45515Configuration headers:
45516$config_headers
45517
45518Configuration commands:
45519$config_commands
45520
45521Report bugs to <bug-autoconf@gnu.org>."
45522_ACEOF
45523
45524cat >>$CONFIG_STATUS <<_ACEOF
45525ac_cs_version="\\
eb730a0c 45526wxWidgets config.status 2.6.2
ac1cb8d3 45527configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45528 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45529
ac1cb8d3 45530Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45531This config.status script is free software; the Free Software Foundation
45532gives unlimited permission to copy, distribute and modify it."
45533srcdir=$srcdir
45534INSTALL="$INSTALL"
45535_ACEOF
45536
45537cat >>$CONFIG_STATUS <<\_ACEOF
45538# If no file are specified by the user, then we need to provide default
45539# value. By we need to know if files were specified by the user.
45540ac_need_defaults=:
45541while test $# != 0
45542do
45543 case $1 in
45544 --*=*)
45545 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45546 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45547 ac_shift=:
45548 ;;
45549 -*)
45550 ac_option=$1
45551 ac_optarg=$2
45552 ac_shift=shift
45553 ;;
45554 *) # This is not an option, so the user has probably given explicit
45555 # arguments.
45556 ac_option=$1
45557 ac_need_defaults=false;;
45558 esac
45559
45560 case $ac_option in
45561 # Handling of the options.
45562_ACEOF
45563cat >>$CONFIG_STATUS <<\_ACEOF
45564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45565 ac_cs_recheck=: ;;
45566 --version | --vers* | -V )
45567 echo "$ac_cs_version"; exit 0 ;;
45568 --he | --h)
45569 # Conflict between --help and --header
45570 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45571Try \`$0 --help' for more information." >&5
45572echo "$as_me: error: ambiguous option: $1
45573Try \`$0 --help' for more information." >&2;}
45574 { (exit 1); exit 1; }; };;
45575 --help | --hel | -h )
45576 echo "$ac_cs_usage"; exit 0 ;;
45577 --debug | --d* | -d )
45578 debug=: ;;
45579 --file | --fil | --fi | --f )
45580 $ac_shift
45581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45582 ac_need_defaults=false;;
45583 --header | --heade | --head | --hea )
45584 $ac_shift
45585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45586 ac_need_defaults=false;;
45587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45589 ac_cs_silent=: ;;
45590
45591 # This is an error.
45592 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45593Try \`$0 --help' for more information." >&5
45594echo "$as_me: error: unrecognized option: $1
45595Try \`$0 --help' for more information." >&2;}
45596 { (exit 1); exit 1; }; } ;;
45597
45598 *) ac_config_targets="$ac_config_targets $1" ;;
45599
45600 esac
45601 shift
45602done
45603
45604ac_configure_extra_args=
45605
45606if $ac_cs_silent; then
45607 exec 6>/dev/null
45608 ac_configure_extra_args="$ac_configure_extra_args --silent"
45609fi
45610
45611_ACEOF
45612cat >>$CONFIG_STATUS <<_ACEOF
45613if \$ac_cs_recheck; then
45614 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45615 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45616fi
45617
45618_ACEOF
45619
45620cat >>$CONFIG_STATUS <<_ACEOF
45621#
45622# INIT-COMMANDS section.
45623#
45624
ceec2216
RL
45625 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45626 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45627 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45628 LN_S="${LN_S}"
a848cd7e
SC
45629
45630
45631_ACEOF
45632
45633
45634
45635cat >>$CONFIG_STATUS <<\_ACEOF
45636for ac_config_target in $ac_config_targets
45637do
45638 case "$ac_config_target" in
45639 # Handling of arguments.
ceec2216
RL
45640 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45641 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45642 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45643 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45644 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45645 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45646 "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
45647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45648echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45649 { (exit 1); exit 1; }; };;
45650 esac
45651done
45652
45653# If the user did not use the arguments to specify the items to instantiate,
45654# then the envvar interface is used. Set only those that are not.
45655# We use the long form for the default assignment because of an extremely
45656# bizarre bug on SunOS 4.1.3.
45657if $ac_need_defaults; then
45658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45660 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45661fi
45662
45663# Have a temporary directory for convenience. Make it in the build tree
45664# simply because there is no reason to put it here, and in addition,
45665# creating and moving files from /tmp can sometimes cause problems.
45666# Create a temporary directory, and hook for its removal unless debugging.
45667$debug ||
45668{
45669 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45670 trap '{ (exit 1); exit 1; }' 1 2 13 15
45671}
45672
45673# Create a (secure) tmp directory for tmp files.
45674
45675{
45676 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45677 test -n "$tmp" && test -d "$tmp"
45678} ||
45679{
45680 tmp=./confstat$$-$RANDOM
45681 (umask 077 && mkdir $tmp)
45682} ||
45683{
45684 echo "$me: cannot create a temporary directory in ." >&2
45685 { (exit 1); exit 1; }
45686}
45687
45688_ACEOF
45689
45690cat >>$CONFIG_STATUS <<_ACEOF
45691
45692#
45693# CONFIG_FILES section.
45694#
45695
45696# No need to generate the scripts if there are no CONFIG_FILES.
45697# This happens for instance when ./config.status config.h
45698if test -n "\$CONFIG_FILES"; then
45699 # Protect against being on the right side of a sed subst in config.status.
45700 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45701 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45702s,@SHELL@,$SHELL,;t t
45703s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45704s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45705s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45706s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45707s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45708s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45709s,@exec_prefix@,$exec_prefix,;t t
45710s,@prefix@,$prefix,;t t
45711s,@program_transform_name@,$program_transform_name,;t t
45712s,@bindir@,$bindir,;t t
45713s,@sbindir@,$sbindir,;t t
45714s,@libexecdir@,$libexecdir,;t t
45715s,@datadir@,$datadir,;t t
45716s,@sysconfdir@,$sysconfdir,;t t
45717s,@sharedstatedir@,$sharedstatedir,;t t
45718s,@localstatedir@,$localstatedir,;t t
45719s,@libdir@,$libdir,;t t
45720s,@includedir@,$includedir,;t t
45721s,@oldincludedir@,$oldincludedir,;t t
45722s,@infodir@,$infodir,;t t
45723s,@mandir@,$mandir,;t t
45724s,@build_alias@,$build_alias,;t t
45725s,@host_alias@,$host_alias,;t t
45726s,@target_alias@,$target_alias,;t t
45727s,@DEFS@,$DEFS,;t t
45728s,@ECHO_C@,$ECHO_C,;t t
45729s,@ECHO_N@,$ECHO_N,;t t
45730s,@ECHO_T@,$ECHO_T,;t t
45731s,@LIBS@,$LIBS,;t t
45732s,@build@,$build,;t t
45733s,@build_cpu@,$build_cpu,;t t
45734s,@build_vendor@,$build_vendor,;t t
45735s,@build_os@,$build_os,;t t
45736s,@host@,$host,;t t
45737s,@host_cpu@,$host_cpu,;t t
45738s,@host_vendor@,$host_vendor,;t t
45739s,@host_os@,$host_os,;t t
45740s,@target@,$target,;t t
45741s,@target_cpu@,$target_cpu,;t t
45742s,@target_vendor@,$target_vendor,;t t
45743s,@target_os@,$target_os,;t t
45744s,@CC@,$CC,;t t
45745s,@CFLAGS@,$CFLAGS,;t t
45746s,@LDFLAGS@,$LDFLAGS,;t t
45747s,@CPPFLAGS@,$CPPFLAGS,;t t
45748s,@ac_ct_CC@,$ac_ct_CC,;t t
45749s,@EXEEXT@,$EXEEXT,;t t
45750s,@OBJEXT@,$OBJEXT,;t t
45751s,@CPP@,$CPP,;t t
45752s,@EGREP@,$EGREP,;t t
45753s,@CXX@,$CXX,;t t
45754s,@CXXFLAGS@,$CXXFLAGS,;t t
45755s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45756s,@RANLIB@,$RANLIB,;t t
45757s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45758s,@AR@,$AR,;t t
45759s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45760s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45761s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45762s,@STRIP@,$STRIP,;t t
45763s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45764s,@LN_S@,$LN_S,;t t
45765s,@CXXCPP@,$CXXCPP,;t t
45766s,@subdirs@,$subdirs,;t t
45767s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45768s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45769s,@GTK_LIBS@,$GTK_LIBS,;t t
45770s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45771s,@X_CFLAGS@,$X_CFLAGS,;t t
45772s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45773s,@X_LIBS@,$X_LIBS,;t t
45774s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45775s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45776s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45777s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45778s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45779s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45780s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45781s,@RESCOMP@,$RESCOMP,;t t
45782s,@DEREZ@,$DEREZ,;t t
45783s,@SETFILE@,$SETFILE,;t t
45784s,@LIBICONV@,$LIBICONV,;t t
45785s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45786s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45787s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45788s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45789s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45790s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45791s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45792s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45793s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45794s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45795s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45796s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45797s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45798s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45799s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45800s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45801s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45802s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45803s,@VENDOR@,$VENDOR,;t t
45804s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45805s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45806s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45807s,@WXUNIV@,$WXUNIV,;t t
45808s,@MONOLITHIC@,$MONOLITHIC,;t t
45809s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45810s,@EXTRALIBS@,$EXTRALIBS,;t t
45811s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45812s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45813s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45814s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45815s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45816s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45817s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45818s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45819s,@UNICODE@,$UNICODE,;t t
45820s,@BUILD@,$BUILD,;t t
45821s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45822s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45823s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45824s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45825s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45826s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45827s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45828s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45829s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45830s,@SET_MAKE@,$SET_MAKE,;t t
45831s,@MAKE_SET@,$MAKE_SET,;t t
45832s,@ac_ct_AR@,$ac_ct_AR,;t t
45833s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45834s,@NM@,$NM,;t t
45835s,@ac_ct_NM@,$ac_ct_NM,;t t
45836s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45837s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45838s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45839s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45840s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45841s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45842s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45843s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45844s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45845s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45846s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45847s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45848s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45849s,@LIBPREFIX@,$LIBPREFIX,;t t
45850s,@LIBEXT@,$LIBEXT,;t t
45851s,@DLLPREFIX@,$DLLPREFIX,;t t
45852s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45853s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45854s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45855s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45856s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45857s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45858s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45859s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45860s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45861s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45862s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45863s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45864s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45865s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45866s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45867s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45868s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45869s,@GCC_PCH@,$GCC_PCH,;t t
45870s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45871s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45872s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45873s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45874s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45875s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45876s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45877s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45878s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45879s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45880s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45881s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45882s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45883s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45884s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45885s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45886s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45887s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45888s,@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 45889s,@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 45890s,@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 45891s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45892s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45893s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45894s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45895s,@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 45896s,@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 45897s,@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 45898s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45899s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45900s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45901s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45902s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45903s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45904s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45905s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45906s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45907s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45908s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45909s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45910s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45911s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45912s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45913s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45914s,@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
45915s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45916s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45917s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45918s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45919s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45920s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45921s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45922s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45923s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45924s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45925s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45926s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45927s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45928s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45929s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45930s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45931s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45932s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45933s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45934s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45935s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45936s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45937s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45938s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45939s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45940s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45941s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45942s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45943s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45944s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45945s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45946s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45947s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45948s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45949s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45950s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45951s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45952s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45953s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45954s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45955s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45956s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45957s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45958s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45959s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45960s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45961s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45962s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45963s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45964s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45965s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45966s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45967s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45968s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45969s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45970s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45971s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45972s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45973s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45974s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45975s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45976s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45977s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45978s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45979s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45980s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45981s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45982s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45983s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45984s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45985s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45986s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45987s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45988s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45989s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45990s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45991s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45992s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45993s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45994s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45995s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45996s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45997s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45998s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45999s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46000s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46001s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46002s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46003s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46004s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46005s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46006s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46007s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46008s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46009s,@USE_GUI@,$USE_GUI,;t t
46010s,@AFMINSTALL@,$AFMINSTALL,;t t
46011s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46012s,@TOOLKIT@,$TOOLKIT,;t t
46013s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46014s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46015s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46016s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46017s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46018s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46019s,@WIDGET_SET@,$WIDGET_SET,;t t
46020s,@WX_RELEASE@,$WX_RELEASE,;t t
46021s,@WX_VERSION@,$WX_VERSION,;t t
46022s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46023s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46024s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46025s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46026s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46027s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46028s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46029s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46030s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46031s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46032s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46033s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46034s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46035s,@DISTDIR@,$DISTDIR,;t t
46036s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46037s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46038s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46039s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46040s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46041s,@RESFLAGS@,$RESFLAGS,;t t
46042s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46043s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46044s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46045s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46046s,@MACRESCOMP@,$MACRESCOMP,;t t
46047s,@MACSETFILE@,$MACSETFILE,;t t
46048s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46049s,@GCC@,$GCC,;t t
a848cd7e 46050s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
46051s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46052s,@LIBOBJS@,$LIBOBJS,;t t
46053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46054CEOF
46055
46056_ACEOF
46057
46058 cat >>$CONFIG_STATUS <<\_ACEOF
46059 # Split the substitutions into bite-sized pieces for seds with
46060 # small command number limits, like on Digital OSF/1 and HP-UX.
46061 ac_max_sed_lines=48
46062 ac_sed_frag=1 # Number of current file.
46063 ac_beg=1 # First line for current file.
46064 ac_end=$ac_max_sed_lines # Line after last line for current file.
46065 ac_more_lines=:
46066 ac_sed_cmds=
46067 while $ac_more_lines; do
46068 if test $ac_beg -gt 1; then
46069 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46070 else
46071 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46072 fi
46073 if test ! -s $tmp/subs.frag; then
46074 ac_more_lines=false
46075 else
46076 # The purpose of the label and of the branching condition is to
46077 # speed up the sed processing (if there are no `@' at all, there
46078 # is no need to browse any of the substitutions).
46079 # These are the two extra sed commands mentioned above.
46080 (echo ':t
46081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46082 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46083 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46084 else
ac1cb8d3 46085 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46086 fi
46087 ac_sed_frag=`expr $ac_sed_frag + 1`
46088 ac_beg=$ac_end
46089 ac_end=`expr $ac_end + $ac_max_sed_lines`
46090 fi
46091 done
46092 if test -z "$ac_sed_cmds"; then
46093 ac_sed_cmds=cat
46094 fi
46095fi # test -n "$CONFIG_FILES"
46096
46097_ACEOF
46098cat >>$CONFIG_STATUS <<\_ACEOF
46099for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46101 case $ac_file in
46102 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46103 cat >$tmp/stdin
46104 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46106 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46108 * ) ac_file_in=$ac_file.in ;;
46109 esac
46110
46111 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46112 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46113$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46114 X"$ac_file" : 'X\(//\)[^/]' \| \
46115 X"$ac_file" : 'X\(//\)$' \| \
46116 X"$ac_file" : 'X\(/\)' \| \
46117 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46118echo X"$ac_file" |
46119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46121 /^X\(\/\/\)$/{ s//\1/; q; }
46122 /^X\(\/\).*/{ s//\1/; q; }
46123 s/.*/./; q'`
46124 { if $as_mkdir_p; then
46125 mkdir -p "$ac_dir"
46126 else
46127 as_dir="$ac_dir"
46128 as_dirs=
46129 while test ! -d "$as_dir"; do
46130 as_dirs="$as_dir $as_dirs"
46131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46133 X"$as_dir" : 'X\(//\)[^/]' \| \
46134 X"$as_dir" : 'X\(//\)$' \| \
46135 X"$as_dir" : 'X\(/\)' \| \
46136 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46137echo X"$as_dir" |
46138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46140 /^X\(\/\/\)$/{ s//\1/; q; }
46141 /^X\(\/\).*/{ s//\1/; q; }
46142 s/.*/./; q'`
46143 done
46144 test ! -n "$as_dirs" || mkdir $as_dirs
46145 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46146echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46147 { (exit 1); exit 1; }; }; }
46148
46149 ac_builddir=.
46150
46151if test "$ac_dir" != .; then
46152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46153 # A "../" for each directory in $ac_dir_suffix.
46154 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46155else
46156 ac_dir_suffix= ac_top_builddir=
46157fi
46158
46159case $srcdir in
46160 .) # No --srcdir option. We are building in place.
46161 ac_srcdir=.
46162 if test -z "$ac_top_builddir"; then
46163 ac_top_srcdir=.
46164 else
46165 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46166 fi ;;
46167 [\\/]* | ?:[\\/]* ) # Absolute path.
46168 ac_srcdir=$srcdir$ac_dir_suffix;
46169 ac_top_srcdir=$srcdir ;;
46170 *) # Relative path.
46171 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46172 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46173esac
ac1cb8d3
VS
46174
46175# Do not use `cd foo && pwd` to compute absolute paths, because
46176# the directories may not exist.
46177case `pwd` in
46178.) ac_abs_builddir="$ac_dir";;
46179*)
46180 case "$ac_dir" in
46181 .) ac_abs_builddir=`pwd`;;
46182 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46183 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46184 esac;;
46185esac
46186case $ac_abs_builddir in
46187.) ac_abs_top_builddir=${ac_top_builddir}.;;
46188*)
46189 case ${ac_top_builddir}. in
46190 .) ac_abs_top_builddir=$ac_abs_builddir;;
46191 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46192 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46193 esac;;
46194esac
46195case $ac_abs_builddir in
46196.) ac_abs_srcdir=$ac_srcdir;;
46197*)
46198 case $ac_srcdir in
46199 .) ac_abs_srcdir=$ac_abs_builddir;;
46200 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46201 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46202 esac;;
46203esac
46204case $ac_abs_builddir in
46205.) ac_abs_top_srcdir=$ac_top_srcdir;;
46206*)
46207 case $ac_top_srcdir in
46208 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46209 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46210 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46211 esac;;
46212esac
a848cd7e
SC
46213
46214
46215 case $INSTALL in
46216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46218 esac
46219
a848cd7e
SC
46220 # Let's still pretend it is `configure' which instantiates (i.e., don't
46221 # use $as_me), people would be surprised to read:
46222 # /* config.h. Generated by config.status. */
46223 if test x"$ac_file" = x-; then
46224 configure_input=
46225 else
46226 configure_input="$ac_file. "
46227 fi
46228 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46229 sed 's,.*/,,'` by configure."
a848cd7e
SC
46230
46231 # First look for the input files in the build tree, otherwise in the
46232 # src tree.
46233 ac_file_inputs=`IFS=:
46234 for f in $ac_file_in; do
46235 case $f in
46236 -) echo $tmp/stdin ;;
46237 [\\/$]*)
ac1cb8d3
VS
46238 # Absolute (can't be DOS-style, as IFS=:)
46239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46240echo "$as_me: error: cannot find input file: $f" >&2;}
46241 { (exit 1); exit 1; }; }
ac1cb8d3 46242 echo "$f";;
a848cd7e 46243 *) # Relative
ac1cb8d3
VS
46244 if test -f "$f"; then
46245 # Build tree
46246 echo "$f"
46247 elif test -f "$srcdir/$f"; then
46248 # Source tree
46249 echo "$srcdir/$f"
46250 else
46251 # /dev/null tree
46252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46253echo "$as_me: error: cannot find input file: $f" >&2;}
46254 { (exit 1); exit 1; }; }
ac1cb8d3 46255 fi;;
a848cd7e
SC
46256 esac
46257 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46258
46259 if test x"$ac_file" != x-; then
46260 { echo "$as_me:$LINENO: creating $ac_file" >&5
46261echo "$as_me: creating $ac_file" >&6;}
46262 rm -f "$ac_file"
46263 fi
a848cd7e
SC
46264_ACEOF
46265cat >>$CONFIG_STATUS <<_ACEOF
46266 sed "$ac_vpsub
46267$extrasub
46268_ACEOF
46269cat >>$CONFIG_STATUS <<\_ACEOF
46270:t
46271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46272s,@configure_input@,$configure_input,;t t
46273s,@srcdir@,$ac_srcdir,;t t
46274s,@abs_srcdir@,$ac_abs_srcdir,;t t
46275s,@top_srcdir@,$ac_top_srcdir,;t t
46276s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46277s,@builddir@,$ac_builddir,;t t
46278s,@abs_builddir@,$ac_abs_builddir,;t t
46279s,@top_builddir@,$ac_top_builddir,;t t
46280s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46281s,@INSTALL@,$ac_INSTALL,;t t
46282" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46283 rm -f $tmp/stdin
46284 if test x"$ac_file" != x-; then
46285 mv $tmp/out $ac_file
46286 else
46287 cat $tmp/out
46288 rm -f $tmp/out
46289 fi
46290
ceec2216
RL
46291 # Run the commands associated with the file.
46292 case $ac_file in
46293 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46294 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46295 esac
a848cd7e
SC
46296done
46297_ACEOF
46298cat >>$CONFIG_STATUS <<\_ACEOF
46299
46300#
46301# CONFIG_HEADER section.
46302#
46303
46304# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46305# NAME is the cpp macro being defined and VALUE is the value it is being given.
46306#
46307# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46308ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46309ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46310ac_dC=' '
46311ac_dD=',;t'
46312# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46313ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46314ac_uB='$,\1#\2define\3'
46315ac_uC=' '
46316ac_uD=',;t'
46317
46318for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46320 case $ac_file in
46321 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46322 cat >$tmp/stdin
46323 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46325 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46327 * ) ac_file_in=$ac_file.in ;;
46328 esac
46329
46330 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46331echo "$as_me: creating $ac_file" >&6;}
46332
46333 # First look for the input files in the build tree, otherwise in the
46334 # src tree.
46335 ac_file_inputs=`IFS=:
46336 for f in $ac_file_in; do
46337 case $f in
46338 -) echo $tmp/stdin ;;
46339 [\\/$]*)
ac1cb8d3
VS
46340 # Absolute (can't be DOS-style, as IFS=:)
46341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46342echo "$as_me: error: cannot find input file: $f" >&2;}
46343 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46344 # Do quote $f, to prevent DOS paths from being IFS'd.
46345 echo "$f";;
a848cd7e 46346 *) # Relative
ac1cb8d3
VS
46347 if test -f "$f"; then
46348 # Build tree
46349 echo "$f"
46350 elif test -f "$srcdir/$f"; then
46351 # Source tree
46352 echo "$srcdir/$f"
46353 else
46354 # /dev/null tree
46355 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46356echo "$as_me: error: cannot find input file: $f" >&2;}
46357 { (exit 1); exit 1; }; }
ac1cb8d3 46358 fi;;
a848cd7e
SC
46359 esac
46360 done` || { (exit 1); exit 1; }
46361 # Remove the trailing spaces.
ac1cb8d3 46362 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46363
46364_ACEOF
46365
46366# Transform confdefs.h into two sed scripts, `conftest.defines' and
46367# `conftest.undefs', that substitutes the proper values into
46368# config.h.in to produce config.h. The first handles `#define'
46369# templates, and the second `#undef' templates.
46370# And first: Protect against being on the right side of a sed subst in
46371# config.status. Protect against being in an unquoted here document
46372# in config.status.
46373rm -f conftest.defines conftest.undefs
46374# Using a here document instead of a string reduces the quoting nightmare.
46375# Putting comments in sed scripts is not portable.
46376#
46377# `end' is used to avoid that the second main sed command (meant for
46378# 0-ary CPP macros) applies to n-ary macro definitions.
46379# See the Autoconf documentation for `clear'.
46380cat >confdef2sed.sed <<\_ACEOF
46381s/[\\&,]/\\&/g
46382s,[\\$`],\\&,g
46383t clear
46384: clear
ac1cb8d3 46385s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46386t end
ac1cb8d3 46387s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46388: end
46389_ACEOF
46390# If some macros were called several times there might be several times
46391# the same #defines, which is useless. Nevertheless, we may not want to
46392# sort them, since we want the *last* AC-DEFINE to be honored.
46393uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46394sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46395rm -f confdef2sed.sed
46396
46397# This sed command replaces #undef with comments. This is necessary, for
46398# example, in the case of _POSIX_SOURCE, which is predefined and required
46399# on some systems where configure will not decide to define it.
46400cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46401s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46402_ACEOF
46403
46404# Break up conftest.defines because some shells have a limit on the size
46405# of here documents, and old seds have small limits too (100 cmds).
46406echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46407echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46408echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46409echo ' :' >>$CONFIG_STATUS
46410rm -f conftest.tail
46411while grep . conftest.defines >/dev/null
46412do
46413 # Write a limited-size here document to $tmp/defines.sed.
46414 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46415 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46416 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46417 # Work around the forget-to-reset-the-flag bug.
46418 echo 't clr' >>$CONFIG_STATUS
46419 echo ': clr' >>$CONFIG_STATUS
46420 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46421 echo 'CEOF
46422 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46423 rm -f $tmp/in
46424 mv $tmp/out $tmp/in
46425' >>$CONFIG_STATUS
46426 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46427 rm -f conftest.defines
46428 mv conftest.tail conftest.defines
46429done
46430rm -f conftest.defines
46431echo ' fi # grep' >>$CONFIG_STATUS
46432echo >>$CONFIG_STATUS
46433
46434# Break up conftest.undefs because some shells have a limit on the size
46435# of here documents, and old seds have small limits too (100 cmds).
46436echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46437rm -f conftest.tail
46438while grep . conftest.undefs >/dev/null
46439do
46440 # Write a limited-size here document to $tmp/undefs.sed.
46441 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46442 # Speed up: don't consider the non `#undef'
ac1cb8d3 46443 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46444 # Work around the forget-to-reset-the-flag bug.
46445 echo 't clr' >>$CONFIG_STATUS
46446 echo ': clr' >>$CONFIG_STATUS
46447 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46448 echo 'CEOF
46449 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46450 rm -f $tmp/in
46451 mv $tmp/out $tmp/in
46452' >>$CONFIG_STATUS
46453 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46454 rm -f conftest.undefs
46455 mv conftest.tail conftest.undefs
46456done
46457rm -f conftest.undefs
46458
46459cat >>$CONFIG_STATUS <<\_ACEOF
46460 # Let's still pretend it is `configure' which instantiates (i.e., don't
46461 # use $as_me), people would be surprised to read:
46462 # /* config.h. Generated by config.status. */
46463 if test x"$ac_file" = x-; then
46464 echo "/* Generated by configure. */" >$tmp/config.h
46465 else
46466 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46467 fi
46468 cat $tmp/in >>$tmp/config.h
46469 rm -f $tmp/in
46470 if test x"$ac_file" != x-; then
46471 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46472 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46473echo "$as_me: $ac_file is unchanged" >&6;}
46474 else
46475 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46477 X"$ac_file" : 'X\(//\)[^/]' \| \
46478 X"$ac_file" : 'X\(//\)$' \| \
46479 X"$ac_file" : 'X\(/\)' \| \
46480 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46481echo X"$ac_file" |
46482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46484 /^X\(\/\/\)$/{ s//\1/; q; }
46485 /^X\(\/\).*/{ s//\1/; q; }
46486 s/.*/./; q'`
46487 { if $as_mkdir_p; then
46488 mkdir -p "$ac_dir"
46489 else
46490 as_dir="$ac_dir"
46491 as_dirs=
46492 while test ! -d "$as_dir"; do
46493 as_dirs="$as_dir $as_dirs"
46494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46496 X"$as_dir" : 'X\(//\)[^/]' \| \
46497 X"$as_dir" : 'X\(//\)$' \| \
46498 X"$as_dir" : 'X\(/\)' \| \
46499 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46500echo X"$as_dir" |
46501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46503 /^X\(\/\/\)$/{ s//\1/; q; }
46504 /^X\(\/\).*/{ s//\1/; q; }
46505 s/.*/./; q'`
46506 done
46507 test ! -n "$as_dirs" || mkdir $as_dirs
46508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46509echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46510 { (exit 1); exit 1; }; }; }
46511
46512 rm -f $ac_file
46513 mv $tmp/config.h $ac_file
46514 fi
46515 else
46516 cat $tmp/config.h
46517 rm -f $tmp/config.h
46518 fi
46519done
46520_ACEOF
46521cat >>$CONFIG_STATUS <<\_ACEOF
46522
46523#
46524# CONFIG_COMMANDS section.
46525#
46526for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46527 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46528 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46529 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46530$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46531 X"$ac_dest" : 'X\(//\)[^/]' \| \
46532 X"$ac_dest" : 'X\(//\)$' \| \
46533 X"$ac_dest" : 'X\(/\)' \| \
46534 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46535echo X"$ac_dest" |
46536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46538 /^X\(\/\/\)$/{ s//\1/; q; }
46539 /^X\(\/\).*/{ s//\1/; q; }
46540 s/.*/./; q'`
ac1cb8d3
VS
46541 { if $as_mkdir_p; then
46542 mkdir -p "$ac_dir"
46543 else
46544 as_dir="$ac_dir"
46545 as_dirs=
46546 while test ! -d "$as_dir"; do
46547 as_dirs="$as_dir $as_dirs"
46548 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46550 X"$as_dir" : 'X\(//\)[^/]' \| \
46551 X"$as_dir" : 'X\(//\)$' \| \
46552 X"$as_dir" : 'X\(/\)' \| \
46553 . : '\(.\)' 2>/dev/null ||
46554echo X"$as_dir" |
46555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46557 /^X\(\/\/\)$/{ s//\1/; q; }
46558 /^X\(\/\).*/{ s//\1/; q; }
46559 s/.*/./; q'`
46560 done
46561 test ! -n "$as_dirs" || mkdir $as_dirs
46562 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46563echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46564 { (exit 1); exit 1; }; }; }
46565
a848cd7e
SC
46566 ac_builddir=.
46567
46568if test "$ac_dir" != .; then
46569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46570 # A "../" for each directory in $ac_dir_suffix.
46571 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46572else
46573 ac_dir_suffix= ac_top_builddir=
46574fi
46575
46576case $srcdir in
46577 .) # No --srcdir option. We are building in place.
46578 ac_srcdir=.
46579 if test -z "$ac_top_builddir"; then
46580 ac_top_srcdir=.
46581 else
46582 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46583 fi ;;
46584 [\\/]* | ?:[\\/]* ) # Absolute path.
46585 ac_srcdir=$srcdir$ac_dir_suffix;
46586 ac_top_srcdir=$srcdir ;;
46587 *) # Relative path.
46588 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46589 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46590esac
ac1cb8d3
VS
46591
46592# Do not use `cd foo && pwd` to compute absolute paths, because
46593# the directories may not exist.
46594case `pwd` in
46595.) ac_abs_builddir="$ac_dir";;
46596*)
46597 case "$ac_dir" in
46598 .) ac_abs_builddir=`pwd`;;
46599 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46600 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46601 esac;;
46602esac
46603case $ac_abs_builddir in
46604.) ac_abs_top_builddir=${ac_top_builddir}.;;
46605*)
46606 case ${ac_top_builddir}. in
46607 .) ac_abs_top_builddir=$ac_abs_builddir;;
46608 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46609 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46610 esac;;
46611esac
46612case $ac_abs_builddir in
46613.) ac_abs_srcdir=$ac_srcdir;;
46614*)
46615 case $ac_srcdir in
46616 .) ac_abs_srcdir=$ac_abs_builddir;;
46617 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46618 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46619 esac;;
46620esac
46621case $ac_abs_builddir in
46622.) ac_abs_top_srcdir=$ac_top_srcdir;;
46623*)
46624 case $ac_top_srcdir in
46625 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46626 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46627 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46628 esac;;
46629esac
a848cd7e
SC
46630
46631
46632 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46633echo "$as_me: executing $ac_dest commands" >&6;}
46634 case $ac_dest in
ceec2216
RL
46635 wx-config ) rm -f wx-config
46636 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46637 ;;
a848cd7e
SC
46638 esac
46639done
46640_ACEOF
46641
46642cat >>$CONFIG_STATUS <<\_ACEOF
46643
46644{ (exit 0); exit 0; }
46645_ACEOF
46646chmod +x $CONFIG_STATUS
46647ac_clean_files=$ac_clean_files_save
46648
46649
46650# configure is writing to config.log, and then calls config.status.
46651# config.status does its own redirection, appending to config.log.
46652# Unfortunately, on DOS this fails, as config.log is still kept open
46653# by configure, so config.status won't be able to write to it; its
46654# output is simply discarded. So we exec the FD to /dev/null,
46655# effectively closing config.log, so it can be properly (re)opened and
46656# appended to by config.status. When coming back to configure, we
46657# need to make the FD available again.
46658if test "$no_create" != yes; then
46659 ac_cs_success=:
46660 ac_config_status_args=
46661 test "$silent" = yes &&
46662 ac_config_status_args="$ac_config_status_args --quiet"
46663 exec 5>/dev/null
46664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46665 exec 5>>config.log
46666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46667 # would make configure fail if this is the last instruction.
46668 $ac_cs_success || { (exit 1); exit 1; }
46669fi
46670
46671#
46672# CONFIG_SUBDIRS section.
46673#
46674if test "$no_recursion" != yes; then
46675
46676 # Remove --cache-file and --srcdir arguments so they do not pile up.
46677 ac_sub_configure_args=
46678 ac_prev=
46679 for ac_arg in $ac_configure_args; do
46680 if test -n "$ac_prev"; then
46681 ac_prev=
46682 continue
46683 fi
46684 case $ac_arg in
46685 -cache-file | --cache-file | --cache-fil | --cache-fi \
46686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46687 ac_prev=cache_file ;;
46688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46690 | --c=*)
46691 ;;
46692 --config-cache | -C)
46693 ;;
46694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46695 ac_prev=srcdir ;;
46696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46697 ;;
46698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46699 ac_prev=prefix ;;
46700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46701 ;;
46702 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46703 esac
46704 done
46705
46706 # Always prepend --prefix to ensure using the same prefix
46707 # in subdir configurations.
46708 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46709
46710 ac_popdir=`pwd`
46711 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46712
46713 # Do not complain, so a configure script can configure whichever
46714 # parts of a large source tree are present.
46715 test -d $srcdir/$ac_dir || continue
46716
46717 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46718echo "$as_me: configuring in $ac_dir" >&6;}
46719 { if $as_mkdir_p; then
46720 mkdir -p "$ac_dir"
46721 else
46722 as_dir="$ac_dir"
46723 as_dirs=
46724 while test ! -d "$as_dir"; do
46725 as_dirs="$as_dir $as_dirs"
46726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46728 X"$as_dir" : 'X\(//\)[^/]' \| \
46729 X"$as_dir" : 'X\(//\)$' \| \
46730 X"$as_dir" : 'X\(/\)' \| \
46731 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46732echo X"$as_dir" |
46733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46735 /^X\(\/\/\)$/{ s//\1/; q; }
46736 /^X\(\/\).*/{ s//\1/; q; }
46737 s/.*/./; q'`
46738 done
46739 test ! -n "$as_dirs" || mkdir $as_dirs
46740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46741echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46742 { (exit 1); exit 1; }; }; }
46743
46744 ac_builddir=.
46745
46746if test "$ac_dir" != .; then
46747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46748 # A "../" for each directory in $ac_dir_suffix.
46749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46750else
46751 ac_dir_suffix= ac_top_builddir=
46752fi
46753
46754case $srcdir in
46755 .) # No --srcdir option. We are building in place.
46756 ac_srcdir=.
46757 if test -z "$ac_top_builddir"; then
46758 ac_top_srcdir=.
46759 else
46760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46761 fi ;;
46762 [\\/]* | ?:[\\/]* ) # Absolute path.
46763 ac_srcdir=$srcdir$ac_dir_suffix;
46764 ac_top_srcdir=$srcdir ;;
46765 *) # Relative path.
46766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46768esac
ac1cb8d3
VS
46769
46770# Do not use `cd foo && pwd` to compute absolute paths, because
46771# the directories may not exist.
46772case `pwd` in
46773.) ac_abs_builddir="$ac_dir";;
46774*)
46775 case "$ac_dir" in
46776 .) ac_abs_builddir=`pwd`;;
46777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46779 esac;;
46780esac
46781case $ac_abs_builddir in
46782.) ac_abs_top_builddir=${ac_top_builddir}.;;
46783*)
46784 case ${ac_top_builddir}. in
46785 .) ac_abs_top_builddir=$ac_abs_builddir;;
46786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46788 esac;;
46789esac
46790case $ac_abs_builddir in
46791.) ac_abs_srcdir=$ac_srcdir;;
46792*)
46793 case $ac_srcdir in
46794 .) ac_abs_srcdir=$ac_abs_builddir;;
46795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46797 esac;;
46798esac
46799case $ac_abs_builddir in
46800.) ac_abs_top_srcdir=$ac_top_srcdir;;
46801*)
46802 case $ac_top_srcdir in
46803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46806 esac;;
46807esac
a848cd7e
SC
46808
46809
46810 cd $ac_dir
46811
46812 # Check for guested configure; otherwise get Cygnus style configure.
46813 if test -f $ac_srcdir/configure.gnu; then
46814 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46815 elif test -f $ac_srcdir/configure; then
46816 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46817 elif test -f $ac_srcdir/configure.in; then
46818 ac_sub_configure=$ac_configure
46819 else
46820 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46821echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46822 ac_sub_configure=
46823 fi
46824
46825 # The recursion is here.
46826 if test -n "$ac_sub_configure"; then
46827 # Make the cache file name correct relative to the subdirectory.
46828 case $cache_file in
46829 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46830 *) # Relative path.
ac1cb8d3 46831 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46832 esac
46833
46834 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46835echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46836 # The eval makes quoting arguments work.
46837 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46838 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46839 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46840echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46841 { (exit 1); exit 1; }; }
46842 fi
46843
6ebeb4c7 46844 cd "$ac_popdir"
a848cd7e
SC
46845 done
46846fi
46847
46848
46849echo
77ffb593 46850echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46851echo ""
4d4ff94c 46852echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46853echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46854
77ffb593
JS
46855echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46856echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46857echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46858
77ffb593
JS
46859echo " What level of wxWidgets compatibility should be enabled?"
46860echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46861echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46862
77ffb593 46863echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46864echo " jpeg ${wxUSE_LIBJPEG-none}"
46865echo " png ${wxUSE_LIBPNG-none}"
46866echo " regex ${wxUSE_REGEX}"
46867echo " tiff ${wxUSE_LIBTIFF-none}"
46868if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46869echo " xpm ${wxUSE_LIBXPM-none}"
46870fi
46871echo " zlib ${wxUSE_ZLIB}"
46872echo " odbc ${wxUSE_ODBC}"
46873echo " expat ${wxUSE_EXPAT}"
46874echo " libmspack ${wxUSE_LIBMSPACK}"
46875echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46876echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46877
46878echo ""
46879