]> git.saurik.com Git - wxWidgets.git/blame - configure
Corrected behaviour for modeless wizards -- can't detect modal/modeless
[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"
8c80d384 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL 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 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 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 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"
a848cd7e 1930 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1931 DEFAULT_STD_FLAG=no
a848cd7e
SC
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
a03b8b04 1974 DEFAULT_STD_FLAG=no
a848cd7e
SC
1975 ;;
1976
cfda0ea8 1977 *-*-darwin* )
a848cd7e
SC
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e 1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
1e9e8aba 2002 ;;
a848cd7e
SC
2003
2004 *-*-beos* )
2005 USE_BEOS=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BEOS__ 1
2008_ACEOF
2009
2010 ;;
2011
2012 *)
2013 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2014echo "$as_me: error: unknown system type ${host}." >&2;}
2015 { (exit 1); exit 1; }; }
2016esac
2017
2018
2019
2020
2021 wx_arg_cache_file="configarg.cache"
2022 echo "loading argument cache $wx_arg_cache_file"
2023 rm -f ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}
2026
2027
2028DEBUG_CONFIGURE=0
2029if test $DEBUG_CONFIGURE = 1; then
2030 DEFAULT_wxUSE_UNIVERSAL=no
2031 DEFAULT_wxUSE_STL=no
2032
2033 DEFAULT_wxUSE_NANOX=no
2034
2035 DEFAULT_wxUSE_THREADS=yes
2036
2037 DEFAULT_wxUSE_SHARED=yes
2038 DEFAULT_wxUSE_OPTIMISE=no
2039 DEFAULT_wxUSE_PROFILE=no
2040 DEFAULT_wxUSE_NO_DEPS=no
2041 DEFAULT_wxUSE_NO_RTTI=no
2042 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2043 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2044 DEFAULT_wxUSE_PERMISSIVE=no
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047 DEFAULT_wxUSE_DEBUG_GDB=yes
2048 DEFAULT_wxUSE_MEM_TRACING=no
2049 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2050 DEFAULT_wxUSE_DMALLOC=no
2051 DEFAULT_wxUSE_APPLE_IEEE=no
2052
2053 DEFAULT_wxUSE_EXCEPTIONS=no
2054 DEFAULT_wxUSE_LOG=yes
2055 DEFAULT_wxUSE_LOGWINDOW=no
2056 DEFAULT_wxUSE_LOGGUI=no
2057 DEFAULT_wxUSE_LOGDIALOG=no
2058
2059 DEFAULT_wxUSE_GUI=yes
2060 DEFAULT_wxUSE_CONTROLS=no
2061
2062 DEFAULT_wxUSE_REGEX=no
2063 DEFAULT_wxUSE_XML=no
2064 DEFAULT_wxUSE_EXPAT=no
2065 DEFAULT_wxUSE_ZLIB=no
2066 DEFAULT_wxUSE_LIBPNG=no
2067 DEFAULT_wxUSE_LIBJPEG=no
2068 DEFAULT_wxUSE_LIBTIFF=no
2069 DEFAULT_wxUSE_LIBXPM=no
2070 DEFAULT_wxUSE_LIBMSPACK=no
2071 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2072 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2073 DEFAULT_wxUSE_ODBC=no
2074 DEFAULT_wxUSE_OPENGL=no
2075
2076 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2077 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2078 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2079 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2080 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2081 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2082 DEFAULT_wxUSE_CMDLINE_PARSER=no
2083 DEFAULT_wxUSE_DATETIME=no
2084 DEFAULT_wxUSE_TIMER=no
2085 DEFAULT_wxUSE_STOPWATCH=no
2086 DEFAULT_wxUSE_FILE=no
2087 DEFAULT_wxUSE_FFILE=no
07158944 2088 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2089 DEFAULT_wxUSE_TEXTBUFFER=no
2090 DEFAULT_wxUSE_TEXTFILE=no
2091 DEFAULT_wxUSE_SOUND=no
3b57de8b 2092 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2226else
2227 DEFAULT_wxUSE_UNIVERSAL=no
2228 DEFAULT_wxUSE_STL=no
2229
2230 DEFAULT_wxUSE_NANOX=no
2231
2232 DEFAULT_wxUSE_THREADS=yes
2233
2234 DEFAULT_wxUSE_SHARED=yes
2235 DEFAULT_wxUSE_OPTIMISE=yes
2236 DEFAULT_wxUSE_PROFILE=no
2237 DEFAULT_wxUSE_NO_DEPS=no
2238 DEFAULT_wxUSE_NO_RTTI=no
2239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2240 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_PERMISSIVE=no
2242 DEFAULT_wxUSE_DEBUG_FLAG=no
2243 DEFAULT_wxUSE_DEBUG_INFO=no
2244 DEFAULT_wxUSE_DEBUG_GDB=no
2245 DEFAULT_wxUSE_MEM_TRACING=no
2246 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2247 DEFAULT_wxUSE_DMALLOC=no
2248 DEFAULT_wxUSE_APPLE_IEEE=yes
2249
2250 DEFAULT_wxUSE_EXCEPTIONS=yes
2251 DEFAULT_wxUSE_LOG=yes
2252 DEFAULT_wxUSE_LOGWINDOW=yes
2253 DEFAULT_wxUSE_LOGGUI=yes
2254 DEFAULT_wxUSE_LOGDIALOG=yes
2255
2256 DEFAULT_wxUSE_GUI=yes
2257
2258 DEFAULT_wxUSE_REGEX=yes
2259 DEFAULT_wxUSE_XML=yes
2260 DEFAULT_wxUSE_EXPAT=yes
2261 DEFAULT_wxUSE_ZLIB=yes
2262 DEFAULT_wxUSE_LIBPNG=yes
2263 DEFAULT_wxUSE_LIBJPEG=yes
2264 DEFAULT_wxUSE_LIBTIFF=yes
2265 DEFAULT_wxUSE_LIBXPM=yes
2266 DEFAULT_wxUSE_LIBMSPACK=yes
2267 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2268 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2269 DEFAULT_wxUSE_ODBC=no
52cb607e 2270 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2271
2272 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2273 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2274 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2276 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2277 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2278 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2279 DEFAULT_wxUSE_DATETIME=yes
2280 DEFAULT_wxUSE_TIMER=yes
2281 DEFAULT_wxUSE_STOPWATCH=yes
2282 DEFAULT_wxUSE_FILE=yes
2283 DEFAULT_wxUSE_FFILE=yes
07158944 2284 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_TEXTBUFFER=yes
2286 DEFAULT_wxUSE_TEXTFILE=yes
2287 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2288 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
38b4a946
VZ
10047if test "$wxUSE_MSW" = "1"; then
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-dccache or --disable-dccache was given.
10054if test "${enable_dccache+set}" = set; then
10055 enableval="$enable_dccache"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10059 else
10060 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10073
10074fi;
10075
10076 eval "$ac_cv_use_dccache"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_DC_CACHEING" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089fi
10090
a848cd7e
SC
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-palette or --disable-palette was given.
10098if test "${enable_palette+set}" = set; then
10099 enableval="$enable_palette"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_palette='wxUSE_PALETTE=yes'
10103 else
10104 ac_cv_use_palette='wxUSE_PALETTE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10117
10118fi;
10119
10120 eval "$ac_cv_use_palette"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_PALETTE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-image or --disable-image was given.
10139if test "${enable_image+set}" = set; then
10140 enableval="$enable_image"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_image='wxUSE_IMAGE=yes'
10144 else
10145 ac_cv_use_image='wxUSE_IMAGE=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10158
10159fi;
10160
10161 eval "$ac_cv_use_image"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_IMAGE" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-gif or --disable-gif was given.
10180if test "${enable_gif+set}" = set; then
10181 enableval="$enable_gif"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_gif='wxUSE_GIF=yes'
10185 else
10186 ac_cv_use_gif='wxUSE_GIF=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10199
10200fi;
10201
10202 eval "$ac_cv_use_gif"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_GIF" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-pcx or --disable-pcx was given.
10221if test "${enable_pcx+set}" = set; then
10222 enableval="$enable_pcx"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_pcx='wxUSE_PCX=yes'
10226 else
10227 ac_cv_use_pcx='wxUSE_PCX=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10240
10241fi;
10242
10243 eval "$ac_cv_use_pcx"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_PCX" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-iff or --disable-iff was given.
10262if test "${enable_iff+set}" = set; then
10263 enableval="$enable_iff"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_iff='wxUSE_IFF=yes'
10267 else
10268 ac_cv_use_iff='wxUSE_IFF=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10281
10282fi;
10283
10284 eval "$ac_cv_use_iff"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_IFF" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-pnm or --disable-pnm was given.
10303if test "${enable_pnm+set}" = set; then
10304 enableval="$enable_pnm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_pnm='wxUSE_PNM=yes'
10308 else
10309 ac_cv_use_pnm='wxUSE_PNM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10322
10323fi;
10324
10325 eval "$ac_cv_use_pnm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_PNM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-xpm or --disable-xpm was given.
10344if test "${enable_xpm+set}" = set; then
10345 enableval="$enable_xpm"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_xpm='wxUSE_XPM=yes'
10349 else
10350 ac_cv_use_xpm='wxUSE_XPM=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10363
10364fi;
10365
10366 eval "$ac_cv_use_xpm"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_XPM" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10385if test "${enable_ico_cur+set}" = set; then
10386 enableval="$enable_ico_cur"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10390 else
10391 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10404
10405fi;
10406
10407 eval "$ac_cv_use_ico_cur"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_ICO_CUR" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421fi
10422
10423
10424
ceec2216
RL
10425# Check whether --with-flavour or --without-flavour was given.
10426if test "${with_flavour+set}" = set; then
10427 withval="$with_flavour"
10428 WX_FLAVOUR="$withval"
10429fi;
10430
10431
10432
a848cd7e
SC
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-official_build or --disable-official_build was given.
10438if test "${enable_official_build+set}" = set; then
10439 enableval="$enable_official_build"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10443 else
10444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10457
10458fi;
10459
10460 eval "$ac_cv_use_official_build"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473# Check whether --enable-vendor or --disable-vendor was given.
10474if test "${enable_vendor+set}" = set; then
10475 enableval="$enable_vendor"
10476 VENDOR="$enableval"
10477fi;
10478if test "x$VENDOR" = "x"; then
10479 VENDOR="custom"
10480fi
10481
a848cd7e
SC
10482
10483
10484
10485 echo "saving argument cache $wx_arg_cache_file"
10486 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10487
10488
10489
10490echo "$as_me:$LINENO: checking for toolkit" >&5
10491echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10492
10493# In Wine, we need to default to MSW, not GTK or MOTIF
10494if test "$wxUSE_WINE" = "yes"; then
10495 DEFAULT_DEFAULT_wxUSE_GTK=0
10496 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10497 DEFAULT_DEFAULT_wxUSE_MSW=1
10498 wxUSE_SHARED=no
10499fi
10500
f597b41c 10501
a848cd7e
SC
10502if test "$wxUSE_GUI" = "yes"; then
10503
10504 if test "$USE_BEOS" = 1; then
10505 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10506echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509
10510 if test "$TOOLKIT_GIVEN" = 1; then
10511 for toolkit in `echo $ALL_TOOLKITS`; do
10512 var=wxUSE_$toolkit
10513 eval "value=\$${var}"
f34ca037
MW
10514 if test "x$value" = "xno"; then
10515 eval "$var=0"
10516 elif test "x$value" != "x"; then
10517 eval "$var=1"
10518 fi
10519
10520 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10521 eval "wx${toolkit}_VERSION=$value"
10522 fi
a848cd7e
SC
10523 done
10524 else
10525 for toolkit in `echo $ALL_TOOLKITS`; do
10526 if test "$has_toolkit_in_cache" != 1; then
10527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10528 else
10529 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10530
10531 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10532 if test "x$version" != "x"; then
10533 eval "wx${toolkit}_VERSION=$version"
10534 fi
a848cd7e
SC
10535 fi
10536 eval "wxUSE_$toolkit=\$${var}"
10537 done
10538 fi
10539
10540 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10541 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10542 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10543
10544 case "${host}" in
10545 *-pc-os2_emx | *-pc-os2-emx )
10546 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10547 esac
10548
10549 case "$NUM_TOOLKITS" in
10550 1)
10551 ;;
10552 0)
10553 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10554echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10555 { (exit 1); exit 1; }; }
10556 ;;
10557 *)
10558 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10559echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10560 { (exit 1); exit 1; }; }
10561 esac
10562
f34ca037
MW
10563 # to be removed when --disable-gtk2 isn't needed
10564 if test "x$wxUSE_GTK2" = "xyes"; then
10565 wxGTK_VERSION=2
10566 elif test "x$wxUSE_GTK2" = "xno"; then
10567 wxGTK_VERSION=1
10568 fi
10569
a848cd7e
SC
10570 for toolkit in `echo $ALL_TOOLKITS`; do
10571 var=wxUSE_$toolkit
10572 eval "value=\$${var}"
10573 if test "x$value" != x; then
10574 cache_var=CACHE_$toolkit
10575 eval "cache=\$${cache_var}"
10576 if test "$cache" = 1; then
10577 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10578 eval "version=\$wx${toolkit}_VERSION"
10579 if test "x$version" != "x"; then
10580 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10581 fi
a848cd7e
SC
10582 fi
10583 if test "$value" = 1; then
10584 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10585 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10586echo "${ECHO_T}$toolkit_echo" >&6
10587 fi
10588 fi
10589 done
10590else
10591 if test "x$host_alias" != "x"; then
10592 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10593echo "${ECHO_T}base ($host_alias hosted) only" >&6
10594 else
10595 echo "$as_me:$LINENO: result: base only" >&5
10596echo "${ECHO_T}base only" >&6
10597 fi
10598fi
10599
10600wants_win32=0
10601doesnt_want_win32=0
10602case "${host}" in
10603 *-*-cygwin*)
10604 if test "$wxUSE_MSW" = 1 ; then
10605 wants_win32=1
7275146d 10606 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10607 else
10608 doesnt_want_win32=1
10609 fi
10610 ;;
10611 *-*-mingw*)
10612 wants_win32=1
10613 ;;
10614esac
10615
10616if test "$wxUSE_WINE" = "yes"; then
10617 wants_win32=1
10618 CC=winegcc
10619 CXX=wineg++
a848cd7e
SC
10620 LDFLAGS_GUI="-mwindows"
10621fi
10622
10623if test "$wants_win32" = 1 ; then
10624 USE_UNIX=0
10625 USE_WIN32=1
10626 cat >>confdefs.h <<\_ACEOF
10627#define __WIN32__ 1
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define __WIN95__ 1
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define __WINDOWS__ 1
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define __GNUWIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define STRICT 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define WINVER 0x0400
10648_ACEOF
10649
10650fi
10651if test "$doesnt_want_win32" = 1 ; then
10652 USE_UNIX=1
10653 USE_WIN32=0
10654fi
10655
10656if test "$USE_UNIX" = 1 ; then
10657 wxUSE_UNIX=yes
10658 cat >>confdefs.h <<\_ACEOF
10659#define __UNIX__ 1
10660_ACEOF
10661
10662fi
10663
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
10683# So, don't put newlines in cache variables' values.
10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
10686{
10687 (set) 2>&1 |
10688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10689 *ac_space=\ *)
10690 # `set' does not quote correctly, so add quotes (double-quote
10691 # substitution turns \\\\ into \\, and sed turns \\ into \).
10692 sed -n \
ac1cb8d3
VS
10693 "s/'/'\\\\''/g;
10694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10695 ;;
10696 *)
10697 # `set' quotes correctly as required by POSIX, so do not add quotes.
10698 sed -n \
ac1cb8d3 10699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10700 ;;
10701 esac;
10702} |
10703 sed '
10704 t clear
10705 : clear
10706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707 t end
10708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709 : end' >>confcache
10710if diff $cache_file confcache >/dev/null 2>&1; then :; else
10711 if test -w $cache_file; then
10712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10713 cat confcache >$cache_file
10714 else
10715 echo "not updating unwritable cache $cache_file"
10716 fi
10717fi
10718rm -f confcache
10719
a848cd7e 10720CFLAGS=${CFLAGS:=}
6dcfc289
DE
10721
10722
10723 ac_ext=c
a848cd7e
SC
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}gcc; ac_word=$2
10731echo "$as_me:$LINENO: checking for $ac_word" >&5
10732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733if test "${ac_cv_prog_CC+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 if test -n "$CC"; then
10737 ac_cv_prog_CC="$CC" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751done
10752
10753fi
10754fi
10755CC=$ac_cv_prog_CC
10756if test -n "$CC"; then
10757 echo "$as_me:$LINENO: result: $CC" >&5
10758echo "${ECHO_T}$CC" >&6
10759else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762fi
10763
10764fi
10765if test -z "$ac_cv_prog_CC"; then
10766 ac_ct_CC=$CC
10767 # Extract the first word of "gcc", so it can be a program name with args.
10768set dummy gcc; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$ac_ct_CC"; then
10775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_ac_ct_CC="gcc"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793ac_ct_CC=$ac_cv_prog_ac_ct_CC
10794if test -n "$ac_ct_CC"; then
10795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10796echo "${ECHO_T}$ac_ct_CC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 CC=$ac_ct_CC
10803else
10804 CC="$ac_cv_prog_CC"
10805fi
10806
10807if test -z "$CC"; then
10808 if test -n "$ac_tool_prefix"; then
10809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10810set dummy ${ac_tool_prefix}cc; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_CC+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$CC"; then
10817 ac_cv_prog_CC="$CC" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_CC="${ac_tool_prefix}cc"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837 echo "$as_me:$LINENO: result: $CC" >&5
10838echo "${ECHO_T}$CC" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844fi
10845if test -z "$ac_cv_prog_CC"; then
10846 ac_ct_CC=$CC
10847 # Extract the first word of "cc", so it can be a program name with args.
10848set dummy cc; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 if test -n "$ac_ct_CC"; then
10855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_ac_ct_CC="cc"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
10871fi
10872fi
10873ac_ct_CC=$ac_cv_prog_ac_ct_CC
10874if test -n "$ac_ct_CC"; then
10875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10876echo "${ECHO_T}$ac_ct_CC" >&6
10877else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882 CC=$ac_ct_CC
10883else
10884 CC="$ac_cv_prog_CC"
10885fi
10886
10887fi
10888if test -z "$CC"; then
10889 # Extract the first word of "cc", so it can be a program name with args.
10890set dummy cc; ac_word=$2
10891echo "$as_me:$LINENO: checking for $ac_word" >&5
10892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10893if test "${ac_cv_prog_CC+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -n "$CC"; then
10897 ac_cv_prog_CC="$CC" # Let the user override the test.
10898else
10899 ac_prog_rejected=no
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10908 ac_prog_rejected=yes
10909 continue
10910 fi
10911 ac_cv_prog_CC="cc"
10912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915done
10916done
10917
10918if test $ac_prog_rejected = yes; then
10919 # We found a bogon in the path, so make sure we never use it.
10920 set dummy $ac_cv_prog_CC
10921 shift
10922 if test $# != 0; then
10923 # We chose a different compiler from the bogus one.
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10928 fi
10929fi
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$CC"; then
10943 if test -n "$ac_tool_prefix"; then
10944 for ac_prog in cl
10945 do
10946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_CC+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 if test -n "$CC"; then
10954 ac_cv_prog_CC="$CC" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
10970fi
10971fi
10972CC=$ac_cv_prog_CC
10973if test -n "$CC"; then
10974 echo "$as_me:$LINENO: result: $CC" >&5
10975echo "${ECHO_T}$CC" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 test -n "$CC" && break
10982 done
10983fi
10984if test -z "$CC"; then
10985 ac_ct_CC=$CC
10986 for ac_prog in cl
10987do
10988 # Extract the first word of "$ac_prog", so it can be a program name with args.
10989set dummy $ac_prog; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="$ac_prog"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 test -n "$ac_ct_CC" && break
11024done
11025
11026 CC=$ac_ct_CC
11027fi
11028
11029fi
11030
11031
11032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11033See \`config.log' for more details." >&5
11034echo "$as_me: error: no acceptable C compiler found in \$PATH
11035See \`config.log' for more details." >&2;}
11036 { (exit 1); exit 1; }; }
11037
11038# Provide some information about the compiler.
11039echo "$as_me:$LINENO:" \
11040 "checking for C compiler version" >&5
11041ac_compiler=`set X $ac_compile; echo $2`
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11043 (eval $ac_compiler --version </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11048 (eval $ac_compiler -v </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11053 (eval $ac_compiler -V </dev/null >&5) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }
11057
11058cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073ac_clean_files_save=$ac_clean_files
11074ac_clean_files="$ac_clean_files a.out a.exe b.out"
11075# Try to create an executable without -o first, disregard a.out.
11076# It will help us diagnose broken compilers, and finding out an intuition
11077# of exeext.
ac1cb8d3
VS
11078echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11079echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11082 (eval $ac_link_default) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 # Find the output, starting from the most likely. This scheme is
11087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11088# resort.
11089
11090# Be careful to initialize this variable, since it used to be cached.
11091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11092ac_cv_exeext=
11093# b.out is created by i960 compilers.
11094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11095do
11096 test -f "$ac_file" || continue
11097 case $ac_file in
11098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11099 ;;
a848cd7e 11100 conftest.$ac_ext )
ac1cb8d3
VS
11101 # This is the source file.
11102 ;;
a848cd7e 11103 [ab].out )
ac1cb8d3
VS
11104 # We found the default executable, but exeext='' is most
11105 # certainly right.
11106 break;;
a848cd7e 11107 *.* )
ac1cb8d3
VS
11108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11109 # FIXME: I believe we export ac_cv_exeext for Libtool,
11110 # but it would be cool to find out if it's true. Does anybody
11111 # maintain Libtool? --akim.
11112 export ac_cv_exeext
11113 break;;
a848cd7e 11114 * )
ac1cb8d3 11115 break;;
a848cd7e
SC
11116 esac
11117done
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C compiler cannot create executables
11125See \`config.log' for more details." >&2;}
11126 { (exit 77); exit 77; }; }
11127fi
11128
11129ac_exeext=$ac_cv_exeext
11130echo "$as_me:$LINENO: result: $ac_file" >&5
11131echo "${ECHO_T}$ac_file" >&6
11132
11133# Check the compiler produces executables we can run. If not, either
11134# the compiler is broken, or we cross compile.
11135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11138# If not cross compiling, check that we can run a simple program.
11139if test "$cross_compiling" != yes; then
11140 if { ac_try='./$ac_file'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cross_compiling=no
11147 else
11148 if test "$cross_compiling" = maybe; then
11149 cross_compiling=yes
11150 else
11151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11152If you meant to cross compile, use \`--host'.
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: cannot run C compiled programs.
11155If you meant to cross compile, use \`--host'.
11156See \`config.log' for more details." >&2;}
11157 { (exit 1); exit 1; }; }
11158 fi
11159 fi
11160fi
11161echo "$as_me:$LINENO: result: yes" >&5
11162echo "${ECHO_T}yes" >&6
11163
11164rm -f a.out a.exe conftest$ac_cv_exeext b.out
11165ac_clean_files=$ac_clean_files_save
11166# Check the compiler produces executables we can run. If not, either
11167# the compiler is broken, or we cross compile.
11168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11170echo "$as_me:$LINENO: result: $cross_compiling" >&5
11171echo "${ECHO_T}$cross_compiling" >&6
11172
11173echo "$as_me:$LINENO: checking for suffix of executables" >&5
11174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11182# work properly (i.e., refer to `conftest.exe'), while it won't with
11183# `rm'.
11184for ac_file in conftest.exe conftest conftest.*; do
11185 test -f "$ac_file" || continue
11186 case $ac_file in
11187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11189 export ac_cv_exeext
11190 break;;
a848cd7e
SC
11191 * ) break;;
11192 esac
11193done
11194else
11195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11196See \`config.log' for more details." >&5
11197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11198See \`config.log' for more details." >&2;}
11199 { (exit 1); exit 1; }; }
11200fi
11201
11202rm -f conftest$ac_cv_exeext
11203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11204echo "${ECHO_T}$ac_cv_exeext" >&6
11205
11206rm -f conftest.$ac_ext
11207EXEEXT=$ac_cv_exeext
11208ac_exeext=$EXEEXT
11209echo "$as_me:$LINENO: checking for suffix of object files" >&5
11210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11211if test "${ac_cv_objext+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.o conftest.obj
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11236 case $ac_file in
11237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11239 break;;
11240 esac
11241done
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of object files: cannot compile
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest.$ac_cv_objext conftest.$ac_ext
11254fi
11255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11256echo "${ECHO_T}$ac_cv_objext" >&6
11257OBJEXT=$ac_cv_objext
11258ac_objext=$OBJEXT
11259echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11260echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11261if test "${ac_cv_c_compiler_gnu+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274#ifndef __GNUC__
11275 choke me
11276#endif
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11284 (eval $ac_compile) 2>conftest.er1
a848cd7e 11285 ac_status=$?
ac1cb8d3
VS
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
a848cd7e
SC
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
6ebeb4c7 11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_compiler_gnu=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308ac_compiler_gnu=no
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11316GCC=`test $ac_compiler_gnu = yes && echo yes`
11317ac_test_CFLAGS=${CFLAGS+set}
11318ac_save_CFLAGS=$CFLAGS
9122d155 11319CFLAGS="-g"
a848cd7e
SC
11320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11322if test "${ac_cv_prog_cc_g+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11342 (eval $ac_compile) 2>conftest.er1
a848cd7e 11343 ac_status=$?
ac1cb8d3
VS
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
a848cd7e
SC
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
6ebeb4c7 11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_prog_cc_g=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366ac_cv_prog_cc_g=no
11367fi
ac1cb8d3 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11369fi
11370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11372if test "$ac_test_CFLAGS" = set; then
11373 CFLAGS=$ac_save_CFLAGS
11374elif test $ac_cv_prog_cc_g = yes; then
11375 if test "$GCC" = yes; then
11376 CFLAGS="-g -O2"
11377 else
11378 CFLAGS="-g"
11379 fi
11380else
11381 if test "$GCC" = yes; then
11382 CFLAGS="-O2"
11383 else
11384 CFLAGS=
11385 fi
11386fi
11387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11389if test "${ac_cv_prog_cc_stdc+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 ac_cv_prog_cc_stdc=no
11393ac_save_CC=$CC
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <stdarg.h>
11401#include <stdio.h>
11402#include <sys/types.h>
11403#include <sys/stat.h>
11404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11405struct buf { int x; };
11406FILE * (*rcsopen) (struct buf *, struct stat *, int);
11407static char *e (p, i)
11408 char **p;
11409 int i;
11410{
11411 return p[i];
11412}
11413static char *f (char * (*g) (char **, int), char **p, ...)
11414{
11415 char *s;
11416 va_list v;
11417 va_start (v,p);
11418 s = g (p, va_arg (v,int));
11419 va_end (v);
11420 return s;
11421}
ac1cb8d3
VS
11422
11423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11424 function prototypes and stuff, but not '\xHH' hex character constants.
11425 These don't provoke an error unfortunately, instead are silently treated
11426 as 'x'. The following induces an error, until -std1 is added to get
11427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11428 array size at least. It's necessary to write '\x00'==0 to get something
11429 that's true only with -std1. */
11430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11431
a848cd7e
SC
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
11438int
11439main ()
11440{
11441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446# Don't try gcc -ansi; that turns off useful extensions and
11447# breaks some systems' header files.
11448# AIX -qlanglvl=ansi
11449# Ultrix and OSF/1 -std1
11450# HP-UX 10.20 and later -Ae
11451# HP-UX older versions -Aa -D_HPUX_SOURCE
11452# SVR4 -Xc -D__EXTENSIONS__
11453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11454do
11455 CC="$ac_save_CC $ac_arg"
11456 rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11458 (eval $ac_compile) 2>conftest.er1
a848cd7e 11459 ac_status=$?
ac1cb8d3
VS
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
a848cd7e
SC
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
6ebeb4c7 11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_prog_cc_stdc=$ac_arg
11478break
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11485done
11486rm -f conftest.$ac_ext conftest.$ac_objext
11487CC=$ac_save_CC
11488
11489fi
11490
11491case "x$ac_cv_prog_cc_stdc" in
11492 x|xno)
11493 echo "$as_me:$LINENO: result: none needed" >&5
11494echo "${ECHO_T}none needed" >&6 ;;
11495 *)
11496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11498 CC="$CC $ac_cv_prog_cc_stdc" ;;
11499esac
11500
11501# Some people use a C++ compiler to compile C. Since we use `exit',
11502# in C++ we need to declare it. In case someone uses the same compiler
11503# for both compiling C and C++ we need to have the C++ compiler decide
11504# the declaration of exit, since it's the most demanding environment.
11505cat >conftest.$ac_ext <<_ACEOF
11506#ifndef __cplusplus
11507 choke me
11508#endif
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11512 (eval $ac_compile) 2>conftest.er1
a848cd7e 11513 ac_status=$?
ac1cb8d3
VS
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
a848cd7e
SC
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
6ebeb4c7 11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 for ac_declaration in \
ac1cb8d3 11532 '' \
a848cd7e
SC
11533 'extern "C" void std::exit (int) throw (); using std::exit;' \
11534 'extern "C" void std::exit (int); using std::exit;' \
11535 'extern "C" void exit (int) throw ();' \
11536 'extern "C" void exit (int);' \
11537 'void exit (int);'
11538do
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
de59c161 11545$ac_declaration
ac1cb8d3 11546#include <stdlib.h>
a848cd7e
SC
11547int
11548main ()
11549{
11550exit (42);
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
6ebeb4c7 11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 :
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581continue
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591int
11592main ()
11593{
11594exit (42);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
6ebeb4c7 11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 break
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627done
11628rm -f conftest*
11629if test -n "$ac_declaration"; then
11630 echo '#ifdef __cplusplus' >>confdefs.h
11631 echo $ac_declaration >>confdefs.h
11632 echo '#endif' >>confdefs.h
11633fi
11634
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
ac1cb8d3 11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11641ac_ext=c
11642ac_cpp='$CPP $CPPFLAGS'
11643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
6dcfc289 11647 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11648echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11649if test "${wx_cv_c_exto+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 cat >conftest.$ac_ext <<_ACEOF
11653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
11658
11659int
11660main ()
11661{
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest.$ac_ext.o
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; then
11673 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11674 case $ac_file in
11675 conftest.$ac_ext.o)
11676 wx_cv_c_exto="-ext o"
11677 ;;
11678 *)
11679 ;;
11680 esac
11681done
11682else
11683 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11684See \`config.log' for more details." >&5
11685echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11686See \`config.log' for more details." >&2;}
11687 { (exit 1); exit 1; }; }
11688
11689fi
11690
11691rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11692
11693fi
11694echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11695echo "${ECHO_T}$wx_cv_c_exto" >&6
11696if test "x$wx_cv_c_exto" '!=' "x"; then
11697 if test "c" = "c"; then
11698 CFLAGS="$wx_cv_c_exto $CFLAGS"
11699 fi
11700 if test "c" = "cxx"; then
11701 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11702 fi
11703fi
11704
6dcfc289
DE
11705 if test "x$wx_cv_c_exto" '!=' "x"; then
11706 unset ac_cv_prog_cc_g
11707 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11708ac_save_CFLAGS=$CFLAGS
9122d155 11709CFLAGS="-g"
480ccd21
DE
11710echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11711echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11712if test "${ac_cv_prog_cc_g+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721
11722int
11723main ()
11724{
11725
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
6ebeb4c7 11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest.$ac_objext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_prog_cc_g=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756ac_cv_prog_cc_g=no
11757fi
11758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759fi
11760echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11761echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11762if test "$ac_test_CFLAGS" = set; then
11763 CFLAGS=$ac_save_CFLAGS
11764elif test $ac_cv_prog_cc_g = yes; then
11765 if test "$GCC" = yes; then
11766 CFLAGS="-g -O2"
11767 else
11768 CFLAGS="-g"
11769 fi
11770else
11771 if test "$GCC" = yes; then
11772 CFLAGS="-O2"
11773 else
11774 CFLAGS=
11775 fi
11776fi
6dcfc289
DE
11777 fi
11778 ac_ext=c
95986553
DE
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
11784echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11785echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11786if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795
11796int
11797main ()
11798{
11799#ifndef __MWERKS__
11800 choke me
11801#endif
11802
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
6ebeb4c7 11816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 bakefile_compiler_mwerks=yes
11829else
11830 echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833bakefile_compiler_mwerks=no
11834fi
11835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11836 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11837
11838fi
11839echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11840echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11841
0e6fa1d9 11842MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11843ac_ext=c
11844ac_cpp='$CPP $CPPFLAGS'
11845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847ac_compiler_gnu=$ac_cv_c_compiler_gnu
11848
11849
6dcfc289 11850 ac_ext=c
9273ffba
DE
11851ac_cpp='$CPP $CPPFLAGS'
11852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854ac_compiler_gnu=$ac_cv_c_compiler_gnu
11855
11856echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11857echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11858if test "${wx_cv_c_compiler_xlc+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860else
11861 cat >conftest.$ac_ext <<_ACEOF
11862/* confdefs.h. */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h. */
11867
11868int
11869main ()
11870{
11871#ifndef __xlC__
11872 choke me
11873#endif
11874
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext
11880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
6ebeb4c7 11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 wx_compiler_xlc=yes
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905wx_compiler_xlc=no
11906fi
11907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11908 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11909
11910fi
11911echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11912echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11913
0e6fa1d9 11914XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11915ac_ext=c
11916ac_cpp='$CPP $CPPFLAGS'
11917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11919ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920
11921
a848cd7e 11922
6dcfc289 11923
a9e5b1f0
MW
11924 ac_ext=c
11925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11931echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11932if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941
11942int
11943main ()
11944{
11945
11946 #ifndef __SUNPRO_C
11947 choke me
11948 #endif
11949
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext
11955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956 (eval $ac_compile) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
6ebeb4c7 11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 bakefile_cv_c_compiler___SUNPRO_C=yes
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980bakefile_cv_c_compiler___SUNPRO_C=no
11981
11982fi
11983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984
11985
11986fi
11987echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11988echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11989 ac_ext=c
11990ac_cpp='$CPP $CPPFLAGS'
11991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994
11995 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11996 :; SUNCC=yes
11997 else
11998 :;
11999 fi
12000
12001
12002
12003
a848cd7e
SC
12004ac_ext=c
12005ac_cpp='$CPP $CPPFLAGS'
12006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12008ac_compiler_gnu=$ac_cv_c_compiler_gnu
12009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12011# On Suns, sometimes $CPP names a directory.
12012if test -n "$CPP" && test -d "$CPP"; then
12013 CPP=
12014fi
12015if test -z "$CPP"; then
12016 if test "${ac_cv_prog_CPP+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 # Double quotes because CPP needs to be expanded
12020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12021 do
12022 ac_preproc_ok=false
12023for ac_c_preproc_warn_flag in '' yes
12024do
12025 # Use a header file that comes with gcc, so configuring glibc
12026 # with a fresh cross-compiler works.
12027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 # <limits.h> exists even on freestanding compilers.
12029 # On the NeXT, cc -E runs the code through the compiler's parser,
12030 # not just through cpp. "Syntax error" is here to catch this case.
12031 cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h. */
12037#ifdef __STDC__
12038# include <limits.h>
12039#else
12040# include <assert.h>
12041#endif
ac1cb8d3 12042 Syntax error
a848cd7e
SC
12043_ACEOF
12044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null; then
12052 if test -s conftest.err; then
12053 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12055 else
12056 ac_cpp_err=
12057 fi
12058else
12059 ac_cpp_err=yes
12060fi
12061if test -z "$ac_cpp_err"; then
12062 :
12063else
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 # Broken: fails on valid input.
12068continue
12069fi
12070rm -f conftest.err conftest.$ac_ext
12071
12072 # OK, works on sane cases. Now check whether non-existent headers
12073 # can be detected and how.
12074 cat >conftest.$ac_ext <<_ACEOF
12075/* confdefs.h. */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
12079/* end confdefs.h. */
12080#include <ac_nonexistent.h>
12081_ACEOF
12082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null; then
12090 if test -s conftest.err; then
12091 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12093 else
12094 ac_cpp_err=
12095 fi
12096else
12097 ac_cpp_err=yes
12098fi
12099if test -z "$ac_cpp_err"; then
12100 # Broken: success on invalid input.
12101continue
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 # Passes both tests.
12107ac_preproc_ok=:
12108break
12109fi
12110rm -f conftest.err conftest.$ac_ext
12111
12112done
12113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12114rm -f conftest.err conftest.$ac_ext
12115if $ac_preproc_ok; then
12116 break
12117fi
12118
12119 done
12120 ac_cv_prog_CPP=$CPP
12121
12122fi
12123 CPP=$ac_cv_prog_CPP
12124else
12125 ac_cv_prog_CPP=$CPP
12126fi
12127echo "$as_me:$LINENO: result: $CPP" >&5
12128echo "${ECHO_T}$CPP" >&6
12129ac_preproc_ok=false
12130for ac_c_preproc_warn_flag in '' yes
12131do
12132 # Use a header file that comes with gcc, so configuring glibc
12133 # with a fresh cross-compiler works.
12134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12135 # <limits.h> exists even on freestanding compilers.
12136 # On the NeXT, cc -E runs the code through the compiler's parser,
12137 # not just through cpp. "Syntax error" is here to catch this case.
12138 cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
12144#ifdef __STDC__
12145# include <limits.h>
12146#else
12147# include <assert.h>
12148#endif
ac1cb8d3 12149 Syntax error
a848cd7e
SC
12150_ACEOF
12151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev/null; then
12159 if test -s conftest.err; then
12160 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12162 else
12163 ac_cpp_err=
12164 fi
12165else
12166 ac_cpp_err=yes
12167fi
12168if test -z "$ac_cpp_err"; then
12169 :
12170else
12171 echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 # Broken: fails on valid input.
12175continue
12176fi
12177rm -f conftest.err conftest.$ac_ext
12178
12179 # OK, works on sane cases. Now check whether non-existent headers
12180 # can be detected and how.
12181 cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187#include <ac_nonexistent.h>
12188_ACEOF
12189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev/null; then
12197 if test -s conftest.err; then
12198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12200 else
12201 ac_cpp_err=
12202 fi
12203else
12204 ac_cpp_err=yes
12205fi
12206if test -z "$ac_cpp_err"; then
12207 # Broken: success on invalid input.
12208continue
12209else
12210 echo "$as_me: failed program was:" >&5
12211sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 # Passes both tests.
12214ac_preproc_ok=:
12215break
12216fi
12217rm -f conftest.err conftest.$ac_ext
12218
12219done
12220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12221rm -f conftest.err conftest.$ac_ext
12222if $ac_preproc_ok; then
12223 :
12224else
12225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12226See \`config.log' for more details." >&5
12227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12228See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; }
12230fi
12231
12232ac_ext=c
12233ac_cpp='$CPP $CPPFLAGS'
12234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12236ac_compiler_gnu=$ac_cv_c_compiler_gnu
12237
12238
12239echo "$as_me:$LINENO: checking for egrep" >&5
12240echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12241if test "${ac_cv_prog_egrep+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12245 then ac_cv_prog_egrep='grep -E'
12246 else ac_cv_prog_egrep='egrep'
12247 fi
12248fi
12249echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12250echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12251 EGREP=$ac_cv_prog_egrep
12252
12253
12254if test $ac_cv_c_compiler_gnu = yes; then
12255 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12256echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12257if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259else
12260 ac_pattern="Autoconf.*'x'"
12261 cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */
12267#include <sgtty.h>
12268Autoconf TIOCGETP
12269_ACEOF
12270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12271 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12272 ac_cv_prog_gcc_traditional=yes
12273else
12274 ac_cv_prog_gcc_traditional=no
12275fi
12276rm -f conftest*
12277
12278
12279 if test $ac_cv_prog_gcc_traditional = no; then
12280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286#include <termio.h>
12287Autoconf TCGETA
12288_ACEOF
12289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12290 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12291 ac_cv_prog_gcc_traditional=yes
12292fi
12293rm -f conftest*
12294
12295 fi
12296fi
12297echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12298echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12299 if test $ac_cv_prog_gcc_traditional = yes; then
12300 CC="$CC -traditional"
12301 fi
12302fi
12303
12304
12305
12306
12307ac_ext=cc
12308ac_cpp='$CXXCPP $CPPFLAGS'
12309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12312
12313
12314CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12315
12316
12317 ac_ext=cc
a848cd7e
SC
12318ac_cpp='$CXXCPP $CPPFLAGS'
12319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12322if test -n "$ac_tool_prefix"; then
12323 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12324 do
12325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12327echo "$as_me:$LINENO: checking for $ac_word" >&5
12328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12329if test "${ac_cv_prog_CXX+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331else
12332 if test -n "$CXX"; then
12333 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12334else
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346done
12347done
12348
12349fi
12350fi
12351CXX=$ac_cv_prog_CXX
12352if test -n "$CXX"; then
12353 echo "$as_me:$LINENO: result: $CXX" >&5
12354echo "${ECHO_T}$CXX" >&6
12355else
12356 echo "$as_me:$LINENO: result: no" >&5
12357echo "${ECHO_T}no" >&6
12358fi
12359
12360 test -n "$CXX" && break
12361 done
12362fi
12363if test -z "$CXX"; then
12364 ac_ct_CXX=$CXX
12365 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12366do
12367 # Extract the first word of "$ac_prog", so it can be a program name with args.
12368set dummy $ac_prog; ac_word=$2
12369echo "$as_me:$LINENO: checking for $ac_word" >&5
12370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12371if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374 if test -n "$ac_ct_CXX"; then
12375 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384 ac_cv_prog_ac_ct_CXX="$ac_prog"
12385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12387 fi
12388done
12389done
12390
12391fi
12392fi
12393ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12394if test -n "$ac_ct_CXX"; then
12395 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12396echo "${ECHO_T}$ac_ct_CXX" >&6
12397else
12398 echo "$as_me:$LINENO: result: no" >&5
12399echo "${ECHO_T}no" >&6
12400fi
12401
12402 test -n "$ac_ct_CXX" && break
12403done
12404test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12405
12406 CXX=$ac_ct_CXX
12407fi
12408
12409
12410# Provide some information about the compiler.
12411echo "$as_me:$LINENO:" \
12412 "checking for C++ compiler version" >&5
12413ac_compiler=`set X $ac_compile; echo $2`
12414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12415 (eval $ac_compiler --version </dev/null >&5) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }
12419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12420 (eval $ac_compiler -v </dev/null >&5) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }
12424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12425 (eval $ac_compiler -V </dev/null >&5) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }
12429
12430echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12431echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12432if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12434else
12435 cat >conftest.$ac_ext <<_ACEOF
12436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
12441
12442int
12443main ()
12444{
12445#ifndef __GNUC__
12446 choke me
12447#endif
12448
12449 ;
12450 return 0;
12451}
12452_ACEOF
12453rm -f conftest.$ac_objext
12454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12455 (eval $ac_compile) 2>conftest.er1
a848cd7e 12456 ac_status=$?
ac1cb8d3
VS
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
a848cd7e
SC
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
6ebeb4c7 12462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_compiler_gnu=yes
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479ac_compiler_gnu=no
12480fi
ac1cb8d3 12481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12482ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12483
12484fi
12485echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12486echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12487GXX=`test $ac_compiler_gnu = yes && echo yes`
12488ac_test_CXXFLAGS=${CXXFLAGS+set}
12489ac_save_CXXFLAGS=$CXXFLAGS
12490CXXFLAGS="-g"
12491echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12492echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12493if test "${ac_cv_prog_cxx_g+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496 cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502
12503int
12504main ()
12505{
12506
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext
12512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12513 (eval $ac_compile) 2>conftest.er1
a848cd7e 12514 ac_status=$?
ac1cb8d3
VS
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
a848cd7e
SC
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
6ebeb4c7 12520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_prog_cxx_g=yes
12533else
12534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
12537ac_cv_prog_cxx_g=no
12538fi
ac1cb8d3 12539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12540fi
12541echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12542echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12543if test "$ac_test_CXXFLAGS" = set; then
12544 CXXFLAGS=$ac_save_CXXFLAGS
12545elif test $ac_cv_prog_cxx_g = yes; then
12546 if test "$GXX" = yes; then
9122d155 12547 CXXFLAGS="-g -O2"
a848cd7e 12548 else
9122d155 12549 CXXFLAGS="-g"
a848cd7e
SC
12550 fi
12551else
12552 if test "$GXX" = yes; then
12553 CXXFLAGS="-O2"
12554 else
12555 CXXFLAGS=
12556 fi
12557fi
12558for ac_declaration in \
ac1cb8d3 12559 '' \
a848cd7e
SC
12560 'extern "C" void std::exit (int) throw (); using std::exit;' \
12561 'extern "C" void std::exit (int); using std::exit;' \
12562 'extern "C" void exit (int) throw ();' \
12563 'extern "C" void exit (int);' \
12564 'void exit (int);'
12565do
12566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
de59c161 12572$ac_declaration
ac1cb8d3 12573#include <stdlib.h>
a848cd7e
SC
12574int
12575main ()
12576{
12577exit (42);
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12584 (eval $ac_compile) 2>conftest.er1
a848cd7e 12585 ac_status=$?
ac1cb8d3
VS
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
a848cd7e
SC
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
6ebeb4c7 12591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 :
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608continue
12609fi
ac1cb8d3 12610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617$ac_declaration
12618int
12619main ()
12620{
12621exit (42);
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626rm -f conftest.$ac_objext
12627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12628 (eval $ac_compile) 2>conftest.er1
a848cd7e 12629 ac_status=$?
ac1cb8d3
VS
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
a848cd7e
SC
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
6ebeb4c7 12635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 break
12648else
12649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652fi
ac1cb8d3 12653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12654done
12655rm -f conftest*
12656if test -n "$ac_declaration"; then
12657 echo '#ifdef __cplusplus' >>confdefs.h
12658 echo $ac_declaration >>confdefs.h
12659 echo '#endif' >>confdefs.h
12660fi
12661
12662ac_ext=cc
12663ac_cpp='$CXXCPP $CPPFLAGS'
12664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12667
6dcfc289 12668 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12669echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12670if test "${wx_cv_cxx_exto+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673 cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679
12680int
12681main ()
12682{
12683
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext conftest.$ac_ext.o
12689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; then
12694 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12695 case $ac_file in
12696 conftest.$ac_ext.o)
12697 wx_cv_cxx_exto="-ext o"
12698 ;;
12699 *)
12700 ;;
12701 esac
12702done
12703else
12704 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12705See \`config.log' for more details." >&5
12706echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12707See \`config.log' for more details." >&2;}
12708 { (exit 1); exit 1; }; }
12709
12710fi
12711
12712rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12713
12714fi
12715echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12716echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12717if test "x$wx_cv_cxx_exto" '!=' "x"; then
12718 if test "cxx" = "c"; then
12719 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12720 fi
12721 if test "cxx" = "cxx"; then
12722 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12723 fi
12724fi
12725
6dcfc289
DE
12726 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12727 unset ac_cv_prog_cxx_g
12728 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12729ac_save_CXXFLAGS=$CXXFLAGS
12730CXXFLAGS="-g"
12731echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12732echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12733if test "${ac_cv_prog_cxx_g+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742
12743int
12744main ()
12745{
12746
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751rm -f conftest.$ac_objext
12752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
6ebeb4c7 12760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_prog_cxx_g=yes
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777ac_cv_prog_cxx_g=no
12778fi
12779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12780fi
12781echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12782echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12783if test "$ac_test_CXXFLAGS" = set; then
12784 CXXFLAGS=$ac_save_CXXFLAGS
12785elif test $ac_cv_prog_cxx_g = yes; then
12786 if test "$GXX" = yes; then
9122d155 12787 CXXFLAGS="-g -O2"
480ccd21 12788 else
9122d155 12789 CXXFLAGS="-g"
480ccd21
DE
12790 fi
12791else
12792 if test "$GXX" = yes; then
12793 CXXFLAGS="-O2"
12794 else
12795 CXXFLAGS=
12796 fi
12797fi
6dcfc289
DE
12798 fi
12799 ac_ext=cc
95986553
DE
12800ac_cpp='$CXXCPP $CPPFLAGS'
12801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12804
12805echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12806echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12807if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809else
12810 cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816
12817int
12818main ()
12819{
12820#ifndef __MWERKS__
12821 choke me
12822#endif
12823
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext
12829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
6ebeb4c7 12837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } &&
12843 { ac_try='test -s conftest.$ac_objext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 bakefile_compiler_mwerks=yes
12850else
12851 echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854bakefile_compiler_mwerks=no
12855fi
12856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12857 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12858
12859fi
12860echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12861echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12862
0e6fa1d9 12863MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12864ac_ext=cc
12865ac_cpp='$CXXCPP $CPPFLAGS'
12866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12869
12870
6dcfc289 12871 ac_ext=cc
9273ffba
DE
12872ac_cpp='$CXXCPP $CPPFLAGS'
12873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12876
12877echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12878echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12879if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881else
12882 cat >conftest.$ac_ext <<_ACEOF
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888
12889int
12890main ()
12891{
12892#ifndef __xlC__
12893 choke me
12894#endif
12895
12896 ;
12897 return 0;
12898}
12899_ACEOF
12900rm -f conftest.$ac_objext
12901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
6ebeb4c7 12909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 wx_compiler_xlc=yes
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926wx_compiler_xlc=no
12927fi
12928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12930
12931fi
12932echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12933echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12934
0e6fa1d9 12935XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12936ac_ext=cc
12937ac_cpp='$CXXCPP $CPPFLAGS'
12938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12941
12942
95986553 12943
6dcfc289 12944
a9e5b1f0
MW
12945 ac_ext=cc
12946ac_cpp='$CXXCPP $CPPFLAGS'
12947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12950
12951 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12952echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12953if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955else
12956 cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h. */
12962
12963int
12964main ()
12965{
12966
12967 #ifndef __SUNPRO_CC
12968 choke me
12969 #endif
12970
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext
12976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
6ebeb4c7 12984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001bakefile_cv_cxx_compiler___SUNPRO_CC=no
13002
13003fi
13004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005
13006
13007fi
13008echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13009echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13010 ac_ext=cc
13011ac_cpp='$CXXCPP $CPPFLAGS'
13012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13015
13016 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13017 :; SUNCXX=yes
13018 else
13019 :;
13020 fi
13021
13022
13023
13024
a848cd7e
SC
13025ac_ext=c
13026ac_cpp='$CPP $CPPFLAGS'
13027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13029ac_compiler_gnu=$ac_cv_c_compiler_gnu
13030
13031
a848cd7e
SC
13032if test -n "$ac_tool_prefix"; then
13033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13034set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13035echo "$as_me:$LINENO: checking for $ac_word" >&5
13036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13037if test "${ac_cv_prog_RANLIB+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039else
13040 if test -n "$RANLIB"; then
13041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055done
13056
13057fi
13058fi
13059RANLIB=$ac_cv_prog_RANLIB
13060if test -n "$RANLIB"; then
13061 echo "$as_me:$LINENO: result: $RANLIB" >&5
13062echo "${ECHO_T}$RANLIB" >&6
13063else
13064 echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6
13066fi
13067
13068fi
13069if test -z "$ac_cv_prog_RANLIB"; then
13070 ac_ct_RANLIB=$RANLIB
13071 # Extract the first word of "ranlib", so it can be a program name with args.
13072set dummy ranlib; ac_word=$2
13073echo "$as_me:$LINENO: checking for $ac_word" >&5
13074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13075if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 if test -n "$ac_ct_RANLIB"; then
13079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13080else
13081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082for as_dir in $PATH
13083do
13084 IFS=$as_save_IFS
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088 ac_cv_prog_ac_ct_RANLIB="ranlib"
13089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13090 break 2
13091 fi
13092done
13093done
13094
13095 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13096fi
13097fi
13098ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13099if test -n "$ac_ct_RANLIB"; then
13100 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13101echo "${ECHO_T}$ac_ct_RANLIB" >&6
13102else
13103 echo "$as_me:$LINENO: result: no" >&5
13104echo "${ECHO_T}no" >&6
13105fi
13106
13107 RANLIB=$ac_ct_RANLIB
13108else
13109 RANLIB="$ac_cv_prog_RANLIB"
13110fi
13111
13112
8c80d384
DE
13113if test -n "$ac_tool_prefix"; then
13114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13115set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13116echo "$as_me:$LINENO: checking for $ac_word" >&5
13117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13118if test "${ac_cv_prog_AR+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
13121 if test -n "$AR"; then
13122 ac_cv_prog_AR="$AR" # Let the user override the test.
13123else
13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125for as_dir in $PATH
13126do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13131 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135done
13136done
13137
13138fi
13139fi
13140AR=$ac_cv_prog_AR
13141if test -n "$AR"; then
13142 echo "$as_me:$LINENO: result: $AR" >&5
13143echo "${ECHO_T}$AR" >&6
13144else
13145 echo "$as_me:$LINENO: result: no" >&5
13146echo "${ECHO_T}no" >&6
13147fi
13148
8c80d384
DE
13149fi
13150if test -z "$ac_cv_prog_AR"; then
13151 ac_ct_AR=$AR
13152 # Extract the first word of "ar", so it can be a program name with args.
13153set dummy ar; ac_word=$2
13154echo "$as_me:$LINENO: checking for $ac_word" >&5
13155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13156if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159 if test -n "$ac_ct_AR"; then
13160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169 ac_cv_prog_ac_ct_AR="ar"
13170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13172 fi
13173done
13174done
13175
13176fi
13177fi
13178ac_ct_AR=$ac_cv_prog_ac_ct_AR
13179if test -n "$ac_ct_AR"; then
13180 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13181echo "${ECHO_T}$ac_ct_AR" >&6
13182else
13183 echo "$as_me:$LINENO: result: no" >&5
13184echo "${ECHO_T}no" >&6
13185fi
13186
13187 AR=$ac_ct_AR
13188else
13189 AR="$ac_cv_prog_AR"
13190fi
13191
a848cd7e 13192if test "x$AR" = "x" ; then
77ffb593
JS
13193 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13194echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13195 { (exit 1); exit 1; }; }
13196fi
13197
13198# Find a good install program. We prefer a C program (faster),
13199# so one script is as good as another. But avoid the broken or
13200# incompatible versions:
13201# SysV /etc/install, /usr/sbin/install
13202# SunOS /usr/etc/install
13203# IRIX /sbin/install
13204# AIX /bin/install
13205# AmigaOS /C/install, which installs bootblocks on floppy discs
13206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13207# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13209# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13210# ./install, which can be erroneously created by make from ./install.sh.
13211echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13212echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13213if test -z "$INSTALL"; then
13214if test "${ac_cv_path_install+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216else
13217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218for as_dir in $PATH
13219do
13220 IFS=$as_save_IFS
13221 test -z "$as_dir" && as_dir=.
13222 # Account for people who put trailing slashes in PATH elements.
13223case $as_dir/ in
13224 ./ | .// | /cC/* | \
13225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13227 /usr/ucb/* ) ;;
13228 *)
13229 # OSF1 and SCO ODT 3.0 have their own names for install.
13230 # Don't use installbsd from OSF since it installs stuff as root
13231 # by default.
13232 for ac_prog in ginstall scoinst install; do
13233 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13234 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13235 if test $ac_prog = install &&
13236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13237 # AIX install. It has an incompatible calling convention.
13238 :
13239 elif test $ac_prog = install &&
13240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13241 # program-specific install script used by HP pwplus--don't use.
13242 :
13243 else
13244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13245 break 3
13246 fi
13247 fi
a848cd7e
SC
13248 done
13249 done
13250 ;;
13251esac
13252done
13253
13254
13255fi
13256 if test "${ac_cv_path_install+set}" = set; then
13257 INSTALL=$ac_cv_path_install
13258 else
13259 # As a last resort, use the slow shell script. We don't cache a
13260 # path for INSTALL within a source directory, because that will
13261 # break other packages using the cache if that directory is
13262 # removed, or if the path is relative.
13263 INSTALL=$ac_install_sh
13264 fi
13265fi
13266echo "$as_me:$LINENO: result: $INSTALL" >&5
13267echo "${ECHO_T}$INSTALL" >&6
13268
13269# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13270# It thinks the first close brace ends the variable substitution.
13271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13272
13273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13274
13275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13276
13277
13278case ${INSTALL} in
13279 /* ) # Absolute
13280 ;;
13281 ?:* ) # Drive letter, considered as absolute.
13282 ;;
13283 *)
13284 INSTALL=`pwd`/${INSTALL} ;;
13285esac
13286
a848cd7e
SC
13287
13288case "${host}" in
13289
cfda0ea8 13290 *-*-darwin* )
a848cd7e
SC
13291 INSTALL_PROGRAM="cp -fp"
13292 INSTALL_DATA="cp -fp"
13293 ;;
13294 *)
13295 ;;
13296esac
13297
8c80d384
DE
13298if test -n "$ac_tool_prefix"; then
13299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13300set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13301echo "$as_me:$LINENO: checking for $ac_word" >&5
13302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13303if test "${ac_cv_prog_STRIP+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305else
13306 if test -n "$STRIP"; then
13307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13308else
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320done
13321done
13322
a848cd7e
SC
13323fi
13324fi
13325STRIP=$ac_cv_prog_STRIP
13326if test -n "$STRIP"; then
13327 echo "$as_me:$LINENO: result: $STRIP" >&5
13328echo "${ECHO_T}$STRIP" >&6
13329else
13330 echo "$as_me:$LINENO: result: no" >&5
13331echo "${ECHO_T}no" >&6
13332fi
13333
8c80d384
DE
13334fi
13335if test -z "$ac_cv_prog_STRIP"; then
13336 ac_ct_STRIP=$STRIP
13337 # Extract the first word of "strip", so it can be a program name with args.
13338set dummy strip; ac_word=$2
13339echo "$as_me:$LINENO: checking for $ac_word" >&5
13340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13341if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343else
13344 if test -n "$ac_ct_STRIP"; then
13345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13346else
13347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348for as_dir in $PATH
13349do
13350 IFS=$as_save_IFS
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354 ac_cv_prog_ac_ct_STRIP="strip"
13355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 break 2
13357 fi
13358done
13359done
13360
13361 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13362fi
13363fi
13364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13365if test -n "$ac_ct_STRIP"; then
13366 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13367echo "${ECHO_T}$ac_ct_STRIP" >&6
13368else
13369 echo "$as_me:$LINENO: result: no" >&5
13370echo "${ECHO_T}no" >&6
13371fi
13372
13373 STRIP=$ac_ct_STRIP
13374else
13375 STRIP="$ac_cv_prog_STRIP"
13376fi
13377
13378
13379if test "$wxUSE_WINE" = "yes"; then
13380 if test -n "$ac_tool_prefix"; then
13381 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13382set dummy ${ac_tool_prefix}wrc; ac_word=$2
13383echo "$as_me:$LINENO: checking for $ac_word" >&5
13384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13385if test "${ac_cv_prog_RESCOMP+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387else
13388 if test -n "$RESCOMP"; then
13389 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13390else
13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392for as_dir in $PATH
13393do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
13396 for ac_exec_ext in '' $ac_executable_extensions; do
13397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 break 2
13401 fi
13402done
13403done
13404
13405fi
13406fi
13407RESCOMP=$ac_cv_prog_RESCOMP
13408if test -n "$RESCOMP"; then
13409 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13410echo "${ECHO_T}$RESCOMP" >&6
13411else
13412 echo "$as_me:$LINENO: result: no" >&5
13413echo "${ECHO_T}no" >&6
13414fi
13415
13416fi
13417if test -z "$ac_cv_prog_RESCOMP"; then
13418 ac_ct_RESCOMP=$RESCOMP
13419 # Extract the first word of "wrc", so it can be a program name with args.
13420set dummy wrc; ac_word=$2
13421echo "$as_me:$LINENO: checking for $ac_word" >&5
13422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13423if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426 if test -n "$ac_ct_RESCOMP"; then
13427 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13428else
13429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430for as_dir in $PATH
13431do
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_prog_ac_ct_RESCOMP="wrc"
13437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 break 2
13439 fi
13440done
13441done
13442
13443fi
13444fi
13445ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13446if test -n "$ac_ct_RESCOMP"; then
13447 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13448echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13449else
13450 echo "$as_me:$LINENO: result: no" >&5
13451echo "${ECHO_T}no" >&6
13452fi
13453
13454 RESCOMP=$ac_ct_RESCOMP
13455else
13456 RESCOMP="$ac_cv_prog_RESCOMP"
13457fi
13458
13459else
13460 case "${host}" in
13461 *-*-cygwin* | *-*-mingw32* )
13462 if test -n "$ac_tool_prefix"; then
13463 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13464set dummy ${ac_tool_prefix}windres; ac_word=$2
13465echo "$as_me:$LINENO: checking for $ac_word" >&5
13466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13467if test "${ac_cv_prog_RESCOMP+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469else
13470 if test -n "$RESCOMP"; then
13471 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13472else
13473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474for as_dir in $PATH
13475do
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13483 fi
13484done
13485done
13486
13487fi
13488fi
13489RESCOMP=$ac_cv_prog_RESCOMP
13490if test -n "$RESCOMP"; then
13491 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13492echo "${ECHO_T}$RESCOMP" >&6
13493else
13494 echo "$as_me:$LINENO: result: no" >&5
13495echo "${ECHO_T}no" >&6
13496fi
13497
13498fi
13499if test -z "$ac_cv_prog_RESCOMP"; then
13500 ac_ct_RESCOMP=$RESCOMP
13501 # Extract the first word of "windres", so it can be a program name with args.
13502set dummy windres; ac_word=$2
13503echo "$as_me:$LINENO: checking for $ac_word" >&5
13504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13505if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 if test -n "$ac_ct_RESCOMP"; then
13509 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13510else
13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_prog_ac_ct_RESCOMP="windres"
13519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522done
13523done
13524
13525fi
13526fi
13527ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13528if test -n "$ac_ct_RESCOMP"; then
13529 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13530echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13531else
13532 echo "$as_me:$LINENO: result: no" >&5
13533echo "${ECHO_T}no" >&6
13534fi
13535
13536 RESCOMP=$ac_ct_RESCOMP
13537else
13538 RESCOMP="$ac_cv_prog_RESCOMP"
13539fi
13540
13541 if test -n "$ac_tool_prefix"; then
13542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13543set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13544echo "$as_me:$LINENO: checking for $ac_word" >&5
13545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13546if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548else
13549 if test -n "$DLLTOOL"; then
13550 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13551else
13552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553for as_dir in $PATH
13554do
13555 IFS=$as_save_IFS
13556 test -z "$as_dir" && as_dir=.
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 break 2
13562 fi
13563done
13564done
13565
13566fi
13567fi
13568DLLTOOL=$ac_cv_prog_DLLTOOL
13569if test -n "$DLLTOOL"; then
13570 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13571echo "${ECHO_T}$DLLTOOL" >&6
13572else
13573 echo "$as_me:$LINENO: result: no" >&5
13574echo "${ECHO_T}no" >&6
13575fi
13576
13577fi
13578if test -z "$ac_cv_prog_DLLTOOL"; then
13579 ac_ct_DLLTOOL=$DLLTOOL
13580 # Extract the first word of "dlltool", so it can be a program name with args.
13581set dummy dlltool; ac_word=$2
13582echo "$as_me:$LINENO: checking for $ac_word" >&5
13583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13584if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587 if test -n "$ac_ct_DLLTOOL"; then
13588 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13589else
13590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591for as_dir in $PATH
13592do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601done
13602done
13603
13604fi
13605fi
13606ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13607if test -n "$ac_ct_DLLTOOL"; then
13608 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13609echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13610else
13611 echo "$as_me:$LINENO: result: no" >&5
13612echo "${ECHO_T}no" >&6
13613fi
13614
13615 DLLTOOL=$ac_ct_DLLTOOL
13616else
13617 DLLTOOL="$ac_cv_prog_DLLTOOL"
13618fi
13619
13620 ;;
13621 esac
13622fi
a848cd7e
SC
13623
13624echo "$as_me:$LINENO: checking if make is GNU make" >&5
13625echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13626if test "${wx_cv_prog_makeisgnu+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628else
13629
13630 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13631 egrep -s GNU > /dev/null); then
13632 wx_cv_prog_makeisgnu="yes"
13633 else
13634 wx_cv_prog_makeisgnu="no"
13635 fi
13636
13637fi
13638echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13639echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13640
13641if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13642 IF_GNU_MAKE=""
13643else
13644 IF_GNU_MAKE="#"
13645fi
13646
13647
13648
13649if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13650echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13651echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13652if test "${wx_cv_prog_makevpath+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654else
13655
13656cat - << EOF > confMake
13657check : file
13658 cp \$? \$@
13659 cp \$? final_file
13660EOF
13661
13662if test ! -d sub ; then
13663 mkdir sub
13664fi
13665echo dummy > sub/file
13666${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13667RESULT=$?
13668rm -f sub/file check final_file confMake
13669rmdir sub
13670if test "$RESULT" = 0; then
13671 wx_cv_prog_makevpath="yes"
13672else
13673 wx_cv_prog_makevpath="no"
13674fi
13675
13676fi
13677echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13678echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13679
13680if test "x$wx_cv_prog_makevpath" != "xyes"; then
13681{ { echo "$as_me:$LINENO: error:
13682You need a make-utility that is able to use the variable
13683VPATH correctly.
13684If your version of make does not support VPATH correctly,
13685please install GNU-make (possibly as gmake), and start
13686configure with the following command:
13687export MAKE=gmake; ./configure for sh-type shells
13688setenv MAKE gmake; ./configure for csh-type shells
13689Also please do remember to use gmake in this case every time
13690you are trying to compile.
13691" >&5
13692echo "$as_me: error:
13693You need a make-utility that is able to use the variable
13694VPATH correctly.
13695If your version of make does not support VPATH correctly,
13696please install GNU-make (possibly as gmake), and start
13697configure with the following command:
13698export MAKE=gmake; ./configure for sh-type shells
13699setenv MAKE gmake; ./configure for csh-type shells
13700Also please do remember to use gmake in this case every time
13701you are trying to compile.
13702" >&2;}
13703 { (exit 1); exit 1; }; }
13704fi fi
13705echo "$as_me:$LINENO: checking whether ln -s works" >&5
13706echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13707LN_S=$as_ln_s
13708if test "$LN_S" = "ln -s"; then
13709 echo "$as_me:$LINENO: result: yes" >&5
13710echo "${ECHO_T}yes" >&6
13711else
13712 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13713echo "${ECHO_T}no, using $LN_S" >&6
13714fi
13715
13716
13717
2113bc77 13718if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13719 CXXFLAGS="$CXXFLAGS -qunique"
13720fi
13721
13722
4d7ec9f1
DE
13723case "${host}" in
13724 powerpc-*-darwin* )
13725 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13726echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
13733
13734int
13735main ()
13736{
13737#ifndef __POWERPC__
13738 choke me for lack of PowerPC
13739#endif
13740
13741 ;
13742 return 0;
13743}
13744_ACEOF
13745rm -f conftest.$ac_objext
13746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
6ebeb4c7 13754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 echo "$as_me:$LINENO: result: yes" >&5
13767echo "${ECHO_T}yes" >&6
13768else
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772echo "$as_me:$LINENO: result: no" >&5
13773echo "${ECHO_T}no" >&6
13774 cat >>confdefs.h <<\_ACEOF
13775#define __POWERPC__ 1
13776_ACEOF
13777
13778
13779fi
13780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13781 ;;
13782esac
13783
13784case "${host}" in
13785 *-*-darwin* )
4d7ec9f1
DE
13786 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13787echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13788 cat >conftest.$ac_ext <<_ACEOF
13789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
13794#include <CoreFoundation/CFBase.h>
13795
13796int
13797main ()
13798{
13799
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804rm -f conftest.$ac_objext
13805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806 (eval $ac_compile) 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
6ebeb4c7 13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 echo "$as_me:$LINENO: result: yes" >&5
13826echo "${ECHO_T}yes" >&6
13827else
13828 echo "$as_me: failed program was:" >&5
13829sed 's/^/| /' conftest.$ac_ext >&5
13830
13831echo "$as_me:$LINENO: result: no" >&5
13832echo "${ECHO_T}no" >&6
13833 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13834echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841#define __CF_USE_FRAMEWORK_INCLUDES__
13842#include <CoreFoundation/CFBase.h>
13843
13844int
13845main ()
13846{
13847
13848 ;
13849 return 0;
13850}
13851_ACEOF
13852rm -f conftest.$ac_objext
13853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
6ebeb4c7 13861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest.$ac_objext'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 echo "$as_me:$LINENO: result: yes" >&5
13874echo "${ECHO_T}yes" >&6
13875 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13881See \`config.log' for more details." >&5
13882echo "$as_me: error: no. CoreFoundation not available.
13883See \`config.log' for more details." >&2;}
13884 { (exit 1); exit 1; }; }
13885
13886fi
13887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13888
13889
13890fi
13891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13892 ;;
13893esac
13894
a848cd7e
SC
13895case "${host}" in
13896 *-pc-os2_emx | *-pc-os2-emx )
13897 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13898 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13899echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13900if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 ac_check_lib_save_LIBS=$LIBS
13904LIBS="-lcExt $LIBS"
13905cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911
13912/* Override any gcc2 internal prototype to avoid an error. */
13913#ifdef __cplusplus
13914extern "C"
13915#endif
13916/* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918char drand48 ();
13919int
13920main ()
13921{
13922drand48 ();
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927rm -f conftest.$ac_objext conftest$ac_exeext
13928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13929 (eval $ac_link) 2>conftest.er1
a848cd7e 13930 ac_status=$?
ac1cb8d3
VS
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
a848cd7e
SC
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
6ebeb4c7 13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_cExt_drand48=yes
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953ac_cv_lib_cExt_drand48=no
13954fi
ac1cb8d3
VS
13955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13957LIBS=$ac_check_lib_save_LIBS
13958fi
13959echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13960echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13961if test $ac_cv_lib_cExt_drand48 = yes; then
13962 LIBS="$LIBS -lcExt"
13963fi
13964
13965 else
13966 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13967 fi
69120ee4
VZ
13968 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13969echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13970if test "${wx_cv_gccversion+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973
391a765e
VS
13974 if test "$cross_compiling" = yes; then
13975 wx_cv_gccversion="EMX2"
13976
13977else
13978 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984
391a765e 13985 #include <stdio.h>
a848cd7e 13986
391a765e
VS
13987 int main()
13988 {
13989 FILE *f=fopen("conftestval", "w");
13990 if (!f) exit(1);
13991 fprintf(f,
a848cd7e 13992 #if (__GNUC__ < 3)
391a765e
VS
13993 "EMX2"
13994 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13995 "EMX3"
13996 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13997 "Innotek5"
13998 #else
13999 "Innotek6"
a848cd7e 14000 #endif
391a765e
VS
14001 );
14002 exit(0);
14003 }
a848cd7e 14004
a848cd7e 14005_ACEOF
391a765e
VS
14006rm -f conftest$ac_exeext
14007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>&5
ac1cb8d3
VS
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
391a765e 14017 wx_cv_gccversion=`cat conftestval`
a848cd7e 14018else
391a765e
VS
14019 echo "$as_me: program exited with status $ac_status" >&5
14020echo "$as_me: failed program was:" >&5
a848cd7e
SC
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
391a765e
VS
14023( exit $ac_status )
14024wx_cv_gccversion="EMX2"
a848cd7e 14025fi
391a765e 14026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14027fi
a848cd7e
SC
14028
14029fi
14030echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14031echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14032 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14033 LIBS="$LIBS -lstdcpp"
14034 LDFLAGS="$LDFLAGS -Zsysv-signals"
14035 else
391a765e 14036 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14037 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14038 LDFLAGS="$LDFLAGS -Zsysv-signals"
14039 else
14040 LIBS="$LIBS -lstdc++"
14041 fi
14042 fi
94acd38e
DE
14043 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14044 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14045echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14046 wxUSE_OMF=yes
2da0c077 14047 enable_omf=yes
a848cd7e
SC
14048 fi
14049 ;;
14050 *)
14051
14052
14053
14054 ac_ext=cc
14055ac_cpp='$CXXCPP $CPPFLAGS'
14056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14059
14060
95986553 14061 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14062echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14063if test "${ac_cv_string_strcasecmp+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065else
14066
14067 cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h. */
14073
14074 #include <string.h>
14075
14076int
14077main ()
14078{
14079
14080 strcasecmp("foo", "bar");
14081
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext conftest$ac_exeext
14087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14088 (eval $ac_link) 2>conftest.er1
a848cd7e 14089 ac_status=$?
ac1cb8d3
VS
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
a848cd7e
SC
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
6ebeb4c7 14095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; } &&
14101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
14107 ac_cv_string_strcasecmp=yes
14108else
14109 echo "$as_me: failed program was:" >&5
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
14112ac_cv_string_strcasecmp=no
14113
14114fi
ac1cb8d3
VS
14115rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14117
14118fi
14119echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14120echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14121
14122 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14123 cat >>confdefs.h <<\_ACEOF
14124#define HAVE_STRCASECMP_IN_STRING_H 1
14125_ACEOF
14126
14127 else
14128 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14129echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14130if test "${ac_cv_strings_strcasecmp+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133
14134 cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
14140
14141 #include <strings.h>
14142
14143int
14144main ()
14145{
14146
14147 strcasecmp("foo", "bar");
14148
14149 ;
14150 return 0;
14151}
14152_ACEOF
14153rm -f conftest.$ac_objext conftest$ac_exeext
14154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14155 (eval $ac_link) 2>conftest.er1
a848cd7e 14156 ac_status=$?
ac1cb8d3
VS
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
a848cd7e
SC
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
6ebeb4c7 14162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
14174 ac_cv_strings_strcasecmp=yes
14175else
14176 echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
14179ac_cv_strings_strcasecmp=no
14180
14181fi
ac1cb8d3
VS
14182rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14184
14185fi
14186echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14187echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14188
0c3c69fc 14189 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14190 cat >>confdefs.h <<\_ACEOF
14191#define HAVE_STRCASECMP_IN_STRINGS_H 1
14192_ACEOF
14193
14194 else
14195 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14196echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14197 { (exit 1); exit 1; }; }
14198 fi
14199 fi
14200
14201 ac_ext=c
14202ac_cpp='$CPP $CPPFLAGS'
14203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206
14207 ;;
14208esac
14209
14210
14211echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14212echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14213if test "${ac_cv_header_stdc+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 cat >conftest.$ac_ext <<_ACEOF
14217/* confdefs.h. */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h. */
14222#include <stdlib.h>
14223#include <stdarg.h>
14224#include <string.h>
14225#include <float.h>
14226
14227int
14228main ()
14229{
14230
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext
14236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14237 (eval $ac_compile) 2>conftest.er1
a848cd7e 14238 ac_status=$?
ac1cb8d3
VS
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
a848cd7e
SC
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
6ebeb4c7 14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_header_stdc=yes
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261ac_cv_header_stdc=no
14262fi
ac1cb8d3 14263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14264
14265if test $ac_cv_header_stdc = yes; then
14266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14267 cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273#include <string.h>
14274
14275_ACEOF
14276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14277 $EGREP "memchr" >/dev/null 2>&1; then
14278 :
14279else
14280 ac_cv_header_stdc=no
14281fi
14282rm -f conftest*
14283
14284fi
14285
14286if test $ac_cv_header_stdc = yes; then
14287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14288 cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h. */
14294#include <stdlib.h>
14295
14296_ACEOF
14297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14298 $EGREP "free" >/dev/null 2>&1; then
14299 :
14300else
14301 ac_cv_header_stdc=no
14302fi
14303rm -f conftest*
14304
14305fi
14306
14307if test $ac_cv_header_stdc = yes; then
14308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14309 if test "$cross_compiling" = yes; then
14310 :
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318#include <ctype.h>
14319#if ((' ' & 0x0FF) == 0x020)
14320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14322#else
14323# define ISLOWER(c) \
ac1cb8d3
VS
14324 (('a' <= (c) && (c) <= 'i') \
14325 || ('j' <= (c) && (c) <= 'r') \
14326 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14328#endif
14329
14330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14331int
14332main ()
14333{
14334 int i;
14335 for (i = 0; i < 256; i++)
14336 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14337 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14338 exit(2);
14339 exit (0);
14340}
14341_ACEOF
14342rm -f conftest$ac_exeext
14343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 :
14354else
14355 echo "$as_me: program exited with status $ac_status" >&5
14356echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
14359( exit $ac_status )
14360ac_cv_header_stdc=no
14361fi
ac1cb8d3 14362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14363fi
14364fi
14365fi
14366echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14367echo "${ECHO_T}$ac_cv_header_stdc" >&6
14368if test $ac_cv_header_stdc = yes; then
14369
14370cat >>confdefs.h <<\_ACEOF
14371#define STDC_HEADERS 1
14372_ACEOF
14373
14374fi
14375
14376# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14387 inttypes.h stdint.h unistd.h
a848cd7e
SC
14388do
14389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14390echo "$as_me:$LINENO: checking for $ac_header" >&5
14391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14392if eval "test \"\${$as_ac_Header+set}\" = set"; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
14401$ac_includes_default
14402
14403#include <$ac_header>
14404_ACEOF
14405rm -f conftest.$ac_objext
14406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14407 (eval $ac_compile) 2>conftest.er1
a848cd7e 14408 ac_status=$?
ac1cb8d3
VS
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
a848cd7e
SC
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
6ebeb4c7 14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 eval "$as_ac_Header=yes"
14427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431eval "$as_ac_Header=no"
14432fi
ac1cb8d3 14433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14434fi
14435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14437if test `eval echo '${'$as_ac_Header'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14440_ACEOF
14441
14442fi
14443
14444done
14445
14446
14447
14448for ac_header in stdlib.h
14449do
14450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14451if eval "test \"\${$as_ac_Header+set}\" = set"; then
14452 echo "$as_me:$LINENO: checking for $ac_header" >&5
14453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14454if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456fi
14457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14459else
14460 # Is the header compilable?
14461echo "$as_me:$LINENO: checking $ac_header usability" >&5
14462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469$ac_includes_default
14470#include <$ac_header>
14471_ACEOF
14472rm -f conftest.$ac_objext
14473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14474 (eval $ac_compile) 2>conftest.er1
a848cd7e 14475 ac_status=$?
ac1cb8d3
VS
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
a848cd7e
SC
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
6ebeb4c7 14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_header_compiler=yes
14494else
14495 echo "$as_me: failed program was:" >&5
14496sed 's/^/| /' conftest.$ac_ext >&5
14497
14498ac_header_compiler=no
14499fi
ac1cb8d3 14500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14502echo "${ECHO_T}$ac_header_compiler" >&6
14503
14504# Is the header present?
14505echo "$as_me:$LINENO: checking $ac_header presence" >&5
14506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14507cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513#include <$ac_header>
14514_ACEOF
14515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14526 else
14527 ac_cpp_err=
14528 fi
14529else
14530 ac_cpp_err=yes
14531fi
14532if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
14534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 ac_header_preproc=no
14539fi
14540rm -f conftest.err conftest.$ac_ext
14541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14542echo "${ECHO_T}$ac_header_preproc" >&6
14543
14544# So? What about this header?
ac1cb8d3
VS
14545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14546 yes:no: )
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14551 ac_header_preproc=yes
a848cd7e 14552 ;;
ac1cb8d3 14553 no:yes:* )
a848cd7e
SC
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14566 (
14567 cat <<\_ASBOX
ac1cb8d3
VS
14568## ----------------------------------------- ##
14569## Report this to wx-dev@lists.wxwidgets.org ##
14570## ----------------------------------------- ##
a848cd7e
SC
14571_ASBOX
14572 ) |
14573 sed "s/^/$as_me: WARNING: /" >&2
14574 ;;
14575esac
14576echo "$as_me:$LINENO: checking for $ac_header" >&5
14577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
ac1cb8d3 14581 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14582fi
14583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14585
14586fi
14587if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590_ACEOF
14591
14592fi
14593
14594done
14595
14596
14597for ac_header in malloc.h
14598do
14599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603if eval "test \"\${$as_ac_Header+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605fi
14606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14608else
14609 # Is the header compilable?
14610echo "$as_me:$LINENO: checking $ac_header usability" >&5
14611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618$ac_includes_default
14619#include <$ac_header>
14620_ACEOF
14621rm -f conftest.$ac_objext
14622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14623 (eval $ac_compile) 2>conftest.er1
a848cd7e 14624 ac_status=$?
ac1cb8d3
VS
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
a848cd7e
SC
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
6ebeb4c7 14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_header_compiler=yes
14643else
14644 echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
14647ac_header_compiler=no
14648fi
ac1cb8d3 14649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14651echo "${ECHO_T}$ac_header_compiler" >&6
14652
14653# Is the header present?
14654echo "$as_me:$LINENO: checking $ac_header presence" >&5
14655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14656cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662#include <$ac_header>
14663_ACEOF
14664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } >/dev/null; then
14672 if test -s conftest.err; then
14673 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14675 else
14676 ac_cpp_err=
14677 fi
14678else
14679 ac_cpp_err=yes
14680fi
14681if test -z "$ac_cpp_err"; then
14682 ac_header_preproc=yes
14683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ac_header_preproc=no
14688fi
14689rm -f conftest.err conftest.$ac_ext
14690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14691echo "${ECHO_T}$ac_header_preproc" >&6
14692
14693# So? What about this header?
ac1cb8d3
VS
14694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14695 yes:no: )
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14700 ac_header_preproc=yes
a848cd7e 14701 ;;
ac1cb8d3 14702 no:yes:* )
a848cd7e
SC
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14715 (
14716 cat <<\_ASBOX
ac1cb8d3
VS
14717## ----------------------------------------- ##
14718## Report this to wx-dev@lists.wxwidgets.org ##
14719## ----------------------------------------- ##
a848cd7e
SC
14720_ASBOX
14721 ) |
14722 sed "s/^/$as_me: WARNING: /" >&2
14723 ;;
14724esac
14725echo "$as_me:$LINENO: checking for $ac_header" >&5
14726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14727if eval "test \"\${$as_ac_Header+set}\" = set"; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
ac1cb8d3 14730 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14731fi
14732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14734
14735fi
14736if test `eval echo '${'$as_ac_Header'}'` = yes; then
14737 cat >>confdefs.h <<_ACEOF
14738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14739_ACEOF
14740
14741fi
14742
14743done
14744
14745
14746for ac_header in unistd.h
14747do
14748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14749if eval "test \"\${$as_ac_Header+set}\" = set"; then
14750 echo "$as_me:$LINENO: checking for $ac_header" >&5
14751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14752if eval "test \"\${$as_ac_Header+set}\" = set"; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754fi
14755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14757else
14758 # Is the header compilable?
14759echo "$as_me:$LINENO: checking $ac_header usability" >&5
14760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14761cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
14767$ac_includes_default
14768#include <$ac_header>
14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14772 (eval $ac_compile) 2>conftest.er1
a848cd7e 14773 ac_status=$?
ac1cb8d3
VS
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
a848cd7e
SC
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
6ebeb4c7 14779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_header_compiler=yes
14792else
14793 echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796ac_header_compiler=no
14797fi
ac1cb8d3 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14800echo "${ECHO_T}$ac_header_compiler" >&6
14801
14802# Is the header present?
14803echo "$as_me:$LINENO: checking $ac_header presence" >&5
14804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14805cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811#include <$ac_header>
14812_ACEOF
14813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } >/dev/null; then
14821 if test -s conftest.err; then
14822 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14824 else
14825 ac_cpp_err=
14826 fi
14827else
14828 ac_cpp_err=yes
14829fi
14830if test -z "$ac_cpp_err"; then
14831 ac_header_preproc=yes
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_header_preproc=no
14837fi
14838rm -f conftest.err conftest.$ac_ext
14839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14840echo "${ECHO_T}$ac_header_preproc" >&6
14841
14842# So? What about this header?
ac1cb8d3
VS
14843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14844 yes:no: )
a848cd7e
SC
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14849 ac_header_preproc=yes
a848cd7e 14850 ;;
ac1cb8d3 14851 no:yes:* )
a848cd7e
SC
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14864 (
14865 cat <<\_ASBOX
ac1cb8d3
VS
14866## ----------------------------------------- ##
14867## Report this to wx-dev@lists.wxwidgets.org ##
14868## ----------------------------------------- ##
a848cd7e
SC
14869_ASBOX
14870 ) |
14871 sed "s/^/$as_me: WARNING: /" >&2
14872 ;;
14873esac
14874echo "$as_me:$LINENO: checking for $ac_header" >&5
14875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14876if eval "test \"\${$as_ac_Header+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878else
ac1cb8d3 14879 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14880fi
14881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14883
14884fi
14885if test `eval echo '${'$as_ac_Header'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14888_ACEOF
14889
14890fi
14891
14892done
14893
14894
14895for ac_header in wchar.h
14896do
14897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898if eval "test \"\${$as_ac_Header+set}\" = set"; then
14899 echo "$as_me:$LINENO: checking for $ac_header" >&5
14900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14901if eval "test \"\${$as_ac_Header+set}\" = set"; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903fi
14904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14906else
14907 # Is the header compilable?
14908echo "$as_me:$LINENO: checking $ac_header usability" >&5
14909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14910cat >conftest.$ac_ext <<_ACEOF
14911/* confdefs.h. */
14912_ACEOF
14913cat confdefs.h >>conftest.$ac_ext
14914cat >>conftest.$ac_ext <<_ACEOF
14915/* end confdefs.h. */
14916$ac_includes_default
14917#include <$ac_header>
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14921 (eval $ac_compile) 2>conftest.er1
a848cd7e 14922 ac_status=$?
ac1cb8d3
VS
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
a848cd7e
SC
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
6ebeb4c7 14928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_header_compiler=yes
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945ac_header_compiler=no
14946fi
ac1cb8d3 14947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14949echo "${ECHO_T}$ac_header_compiler" >&6
14950
14951# Is the header present?
14952echo "$as_me:$LINENO: checking $ac_header presence" >&5
14953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14954cat >conftest.$ac_ext <<_ACEOF
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960#include <$ac_header>
14961_ACEOF
14962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } >/dev/null; then
14970 if test -s conftest.err; then
14971 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14973 else
14974 ac_cpp_err=
14975 fi
14976else
14977 ac_cpp_err=yes
14978fi
14979if test -z "$ac_cpp_err"; then
14980 ac_header_preproc=yes
14981else
14982 echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985 ac_header_preproc=no
14986fi
14987rm -f conftest.err conftest.$ac_ext
14988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14989echo "${ECHO_T}$ac_header_preproc" >&6
14990
14991# So? What about this header?
ac1cb8d3
VS
14992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14993 yes:no: )
a848cd7e
SC
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14998 ac_header_preproc=yes
a848cd7e 14999 ;;
ac1cb8d3 15000 no:yes:* )
a848cd7e
SC
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15013 (
15014 cat <<\_ASBOX
ac1cb8d3
VS
15015## ----------------------------------------- ##
15016## Report this to wx-dev@lists.wxwidgets.org ##
15017## ----------------------------------------- ##
a848cd7e
SC
15018_ASBOX
15019 ) |
15020 sed "s/^/$as_me: WARNING: /" >&2
15021 ;;
15022esac
15023echo "$as_me:$LINENO: checking for $ac_header" >&5
15024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15025if eval "test \"\${$as_ac_Header+set}\" = set"; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
ac1cb8d3 15028 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15029fi
15030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15032
15033fi
15034if test `eval echo '${'$as_ac_Header'}'` = yes; then
15035 cat >>confdefs.h <<_ACEOF
15036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15037_ACEOF
15038
15039fi
15040
15041done
15042
15043
15044if test "$ac_cv_header_wchar_h" != "yes"; then
15045
15046for ac_header in wcstr.h
15047do
15048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049if eval "test \"\${$as_ac_Header+set}\" = set"; then
15050 echo "$as_me:$LINENO: checking for $ac_header" >&5
15051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15052if eval "test \"\${$as_ac_Header+set}\" = set"; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054fi
15055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15057else
15058 # Is the header compilable?
15059echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15061cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
15066/* end confdefs.h. */
15067$ac_includes_default
15068#include <$ac_header>
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15072 (eval $ac_compile) 2>conftest.er1
a848cd7e 15073 ac_status=$?
ac1cb8d3
VS
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
a848cd7e
SC
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
6ebeb4c7 15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_header_compiler=yes
15092else
15093 echo "$as_me: failed program was:" >&5
15094sed 's/^/| /' conftest.$ac_ext >&5
15095
15096ac_header_compiler=no
15097fi
ac1cb8d3 15098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15100echo "${ECHO_T}$ac_header_compiler" >&6
15101
15102# Is the header present?
15103echo "$as_me:$LINENO: checking $ac_header presence" >&5
15104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15105cat >conftest.$ac_ext <<_ACEOF
15106/* confdefs.h. */
15107_ACEOF
15108cat confdefs.h >>conftest.$ac_ext
15109cat >>conftest.$ac_ext <<_ACEOF
15110/* end confdefs.h. */
15111#include <$ac_header>
15112_ACEOF
15113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } >/dev/null; then
15121 if test -s conftest.err; then
15122 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15124 else
15125 ac_cpp_err=
15126 fi
15127else
15128 ac_cpp_err=yes
15129fi
15130if test -z "$ac_cpp_err"; then
15131 ac_header_preproc=yes
15132else
15133 echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 ac_header_preproc=no
15137fi
15138rm -f conftest.err conftest.$ac_ext
15139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15140echo "${ECHO_T}$ac_header_preproc" >&6
15141
15142# So? What about this header?
ac1cb8d3
VS
15143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15144 yes:no: )
a848cd7e
SC
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15149 ac_header_preproc=yes
a848cd7e 15150 ;;
ac1cb8d3 15151 no:yes:* )
a848cd7e
SC
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15164 (
15165 cat <<\_ASBOX
ac1cb8d3
VS
15166## ----------------------------------------- ##
15167## Report this to wx-dev@lists.wxwidgets.org ##
15168## ----------------------------------------- ##
a848cd7e
SC
15169_ASBOX
15170 ) |
15171 sed "s/^/$as_me: WARNING: /" >&2
15172 ;;
15173esac
15174echo "$as_me:$LINENO: checking for $ac_header" >&5
15175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15176if eval "test \"\${$as_ac_Header+set}\" = set"; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178else
ac1cb8d3 15179 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15180fi
15181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15183
15184fi
15185if test `eval echo '${'$as_ac_Header'}'` = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15188_ACEOF
15189
15190fi
15191
15192done
15193
15194fi
15195
15196
15197for ac_header in fnmatch.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
a848cd7e
SC
15346
15347for ac_header in langinfo.h
15348do
15349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350if eval "test \"\${$as_ac_Header+set}\" = set"; then
15351 echo "$as_me:$LINENO: checking for $ac_header" >&5
15352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15353if eval "test \"\${$as_ac_Header+set}\" = set"; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15355fi
15356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15358else
15359 # Is the header compilable?
15360echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15362cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
15369#include <$ac_header>
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15373 (eval $ac_compile) 2>conftest.er1
a848cd7e 15374 ac_status=$?
ac1cb8d3
VS
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
a848cd7e
SC
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
6ebeb4c7 15380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_header_compiler=yes
15393else
15394 echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
15397ac_header_compiler=no
15398fi
ac1cb8d3 15399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401echo "${ECHO_T}$ac_header_compiler" >&6
15402
15403# Is the header present?
15404echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412#include <$ac_header>
15413_ACEOF
15414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } >/dev/null; then
15422 if test -s conftest.err; then
15423 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15425 else
15426 ac_cpp_err=
15427 fi
15428else
15429 ac_cpp_err=yes
15430fi
15431if test -z "$ac_cpp_err"; then
15432 ac_header_preproc=yes
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 ac_header_preproc=no
15438fi
15439rm -f conftest.err conftest.$ac_ext
15440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441echo "${ECHO_T}$ac_header_preproc" >&6
15442
15443# So? What about this header?
ac1cb8d3
VS
15444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445 yes:no: )
a848cd7e
SC
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450 ac_header_preproc=yes
a848cd7e 15451 ;;
ac1cb8d3 15452 no:yes:* )
a848cd7e
SC
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15465 (
15466 cat <<\_ASBOX
ac1cb8d3
VS
15467## ----------------------------------------- ##
15468## Report this to wx-dev@lists.wxwidgets.org ##
15469## ----------------------------------------- ##
a848cd7e
SC
15470_ASBOX
15471 ) |
15472 sed "s/^/$as_me: WARNING: /" >&2
15473 ;;
15474esac
15475echo "$as_me:$LINENO: checking for $ac_header" >&5
15476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15477if eval "test \"\${$as_ac_Header+set}\" = set"; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479else
ac1cb8d3 15480 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15481fi
15482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15484
15485fi
15486if test `eval echo '${'$as_ac_Header'}'` = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15489_ACEOF
15490
15491fi
15492
15493done
15494
15495
15496case "${host}" in
15497 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15498 if test $ac_cv_header_langinfo_h = "yes" \
15499 -a \( "$wx_cv_gccversion" = "EMX2" \
15500 -o "$wx_cv_gccversion" = "EMX3" \
15501 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15502 LIBS="$LIBS -lintl"
15503 fi
15504 ;;
15505esac
15506
a848cd7e
SC
15507
15508echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15509echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15510if test "${ac_cv_c_const+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512else
15513 cat >conftest.$ac_ext <<_ACEOF
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519
15520int
15521main ()
15522{
15523/* FIXME: Include the comments suggested by Paul. */
15524#ifndef __cplusplus
15525 /* Ultrix mips cc rejects this. */
15526 typedef int charset[2];
15527 const charset x;
15528 /* SunOS 4.1.1 cc rejects this. */
15529 char const *const *ccp;
15530 char **p;
15531 /* NEC SVR4.0.2 mips cc rejects this. */
15532 struct point {int x, y;};
15533 static struct point const zero = {0,0};
15534 /* AIX XL C 1.02.0.0 rejects this.
15535 It does not let you subtract one const X* pointer from another in
15536 an arm of an if-expression whose if-part is not a constant
15537 expression */
15538 const char *g = "string";
15539 ccp = &g + (g ? g-g : 0);
15540 /* HPUX 7.0 cc rejects these. */
15541 ++ccp;
15542 p = (char**) ccp;
15543 ccp = (char const *const *) p;
15544 { /* SCO 3.2v4 cc rejects this. */
15545 char *t;
15546 char const *s = 0 ? (char *) 0 : (char const *) 0;
15547
15548 *t++ = 0;
15549 }
15550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15551 int x[] = {25, 17};
15552 const int *foo = &x[0];
15553 ++foo;
15554 }
15555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15556 typedef const int *iptr;
15557 iptr p = 0;
15558 ++p;
15559 }
15560 { /* AIX XL C 1.02.0.0 rejects this saying
15561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15562 struct s { int j; const int *ap[3]; };
15563 struct s *b; b->j = 5;
15564 }
15565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15566 const int foo = 10;
15567 }
15568#endif
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15576 (eval $ac_compile) 2>conftest.er1
a848cd7e 15577 ac_status=$?
ac1cb8d3
VS
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
a848cd7e
SC
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
6ebeb4c7 15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_c_const=yes
15596else
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600ac_cv_c_const=no
15601fi
ac1cb8d3 15602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15603fi
15604echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15605echo "${ECHO_T}$ac_cv_c_const" >&6
15606if test $ac_cv_c_const = no; then
15607
15608cat >>confdefs.h <<\_ACEOF
15609#define const
15610_ACEOF
15611
15612fi
15613
15614echo "$as_me:$LINENO: checking for inline" >&5
15615echo $ECHO_N "checking for inline... $ECHO_C" >&6
15616if test "${ac_cv_c_inline+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619 ac_cv_c_inline=no
15620for ac_kw in inline __inline__ __inline; do
15621 cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
15627#ifndef __cplusplus
15628typedef int foo_t;
15629static $ac_kw foo_t static_foo () {return 0; }
15630$ac_kw foo_t foo () {return 0; }
15631#endif
15632
15633_ACEOF
15634rm -f conftest.$ac_objext
15635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15636 (eval $ac_compile) 2>conftest.er1
a848cd7e 15637 ac_status=$?
ac1cb8d3
VS
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
a848cd7e
SC
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
6ebeb4c7 15643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_c_inline=$ac_kw; break
15656else
15657 echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660fi
ac1cb8d3 15661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15662done
15663
15664fi
15665echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15666echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15667
15668
a848cd7e
SC
15669case $ac_cv_c_inline in
15670 inline | yes) ;;
ac1cb8d3
VS
15671 *)
15672 case $ac_cv_c_inline in
15673 no) ac_val=;;
15674 *) ac_val=$ac_cv_c_inline;;
15675 esac
15676 cat >>confdefs.h <<_ACEOF
15677#ifndef __cplusplus
15678#define inline $ac_val
15679#endif
de59c161 15680_ACEOF
ac1cb8d3 15681 ;;
a848cd7e
SC
15682esac
15683
15684
15685echo "$as_me:$LINENO: checking for char" >&5
15686echo $ECHO_N "checking for char... $ECHO_C" >&6
15687if test "${ac_cv_type_char+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689else
15690 cat >conftest.$ac_ext <<_ACEOF
15691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
15696$ac_includes_default
15697int
15698main ()
15699{
15700if ((char *) 0)
15701 return 0;
15702if (sizeof (char))
15703 return 0;
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext
15709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15710 (eval $ac_compile) 2>conftest.er1
a848cd7e 15711 ac_status=$?
ac1cb8d3
VS
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
a848cd7e
SC
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
6ebeb4c7 15717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_type_char=yes
15730else
15731 echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
15734ac_cv_type_char=no
15735fi
ac1cb8d3 15736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15737fi
15738echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15739echo "${ECHO_T}$ac_cv_type_char" >&6
15740
15741echo "$as_me:$LINENO: checking size of char" >&5
15742echo $ECHO_N "checking size of char... $ECHO_C" >&6
15743if test "${ac_cv_sizeof_char+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745else
15746 if test "$ac_cv_type_char" = yes; then
15747 # The cast to unsigned long works around a bug in the HP C Compiler
15748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15750 # This bug is HP SR number 8606223364.
15751 if test "$cross_compiling" = yes; then
15752 # Depending upon the size, compute the lo and hi bounds.
15753cat >conftest.$ac_ext <<_ACEOF
15754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
15759$ac_includes_default
15760int
15761main ()
15762{
15763static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15764test_array [0] = 0
15765
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext
15771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15772 (eval $ac_compile) 2>conftest.er1
a848cd7e 15773 ac_status=$?
ac1cb8d3
VS
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
a848cd7e
SC
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
6ebeb4c7 15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_lo=0 ac_mid=0
15792 while :; do
15793 cat >conftest.$ac_ext <<_ACEOF
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799$ac_includes_default
15800int
15801main ()
15802{
15803static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15804test_array [0] = 0
15805
15806 ;
15807 return 0;
15808}
15809_ACEOF
15810rm -f conftest.$ac_objext
15811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15812 (eval $ac_compile) 2>conftest.er1
a848cd7e 15813 ac_status=$?
ac1cb8d3
VS
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
a848cd7e
SC
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
6ebeb4c7 15819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_hi=$ac_mid; break
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15837 if test $ac_lo -le $ac_mid; then
15838 ac_lo= ac_hi=
15839 break
15840 fi
15841 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15842fi
ac1cb8d3 15843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15844 done
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855$ac_includes_default
15856int
15857main ()
15858{
15859static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15860test_array [0] = 0
15861
15862 ;
15863 return 0;
15864}
15865_ACEOF
15866rm -f conftest.$ac_objext
15867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15868 (eval $ac_compile) 2>conftest.er1
a848cd7e 15869 ac_status=$?
ac1cb8d3
VS
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
a848cd7e
SC
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
6ebeb4c7 15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_hi=-1 ac_mid=-1
15888 while :; do
15889 cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
15895$ac_includes_default
15896int
15897main ()
15898{
15899static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15900test_array [0] = 0
15901
15902 ;
15903 return 0;
15904}
15905_ACEOF
15906rm -f conftest.$ac_objext
15907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15908 (eval $ac_compile) 2>conftest.er1
a848cd7e 15909 ac_status=$?
ac1cb8d3
VS
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
a848cd7e
SC
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
6ebeb4c7 15915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_lo=$ac_mid; break
15928else
15929 echo "$as_me: failed program was:" >&5
15930sed 's/^/| /' conftest.$ac_ext >&5
15931
15932ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15933 if test $ac_mid -le $ac_hi; then
15934 ac_lo= ac_hi=
15935 break
15936 fi
15937 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15938fi
ac1cb8d3 15939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15940 done
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945ac_lo= ac_hi=
15946fi
ac1cb8d3 15947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15948fi
ac1cb8d3 15949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15950# Binary search between lo and hi bounds.
15951while test "x$ac_lo" != "x$ac_hi"; do
15952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15953 cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959$ac_includes_default
15960int
15961main ()
15962{
15963static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15964test_array [0] = 0
15965
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext
15971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15972 (eval $ac_compile) 2>conftest.er1
a848cd7e 15973 ac_status=$?
ac1cb8d3
VS
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
a848cd7e
SC
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
6ebeb4c7 15979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_hi=$ac_mid
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996ac_lo=`expr '(' $ac_mid ')' + 1`
15997fi
ac1cb8d3 15998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15999done
16000case $ac_lo in
16001?*) ac_cv_sizeof_char=$ac_lo;;
16002'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16003See \`config.log' for more details." >&5
16004echo "$as_me: error: cannot compute sizeof (char), 77
16005See \`config.log' for more details." >&2;}
16006 { (exit 1); exit 1; }; } ;;
16007esac
16008else
16009 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16010 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16011echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16012 { (exit 1); exit 1; }; }
16013else
16014 cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021long longval () { return (long) (sizeof (char)); }
16022unsigned long ulongval () { return (long) (sizeof (char)); }
16023#include <stdio.h>
16024#include <stdlib.h>
16025int
16026main ()
16027{
16028
16029 FILE *f = fopen ("conftest.val", "w");
16030 if (! f)
16031 exit (1);
16032 if (((long) (sizeof (char))) < 0)
16033 {
16034 long i = longval ();
16035 if (i != ((long) (sizeof (char))))
16036 exit (1);
16037 fprintf (f, "%ld\n", i);
16038 }
16039 else
16040 {
16041 unsigned long i = ulongval ();
16042 if (i != ((long) (sizeof (char))))
16043 exit (1);
16044 fprintf (f, "%lu\n", i);
16045 }
16046 exit (ferror (f) || fclose (f) != 0);
16047
16048 ;
16049 return 0;
16050}
16051_ACEOF
16052rm -f conftest$ac_exeext
16053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_cv_sizeof_char=`cat conftest.val`
16064else
16065 echo "$as_me: program exited with status $ac_status" >&5
16066echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069( exit $ac_status )
16070{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16071See \`config.log' for more details." >&5
16072echo "$as_me: error: cannot compute sizeof (char), 77
16073See \`config.log' for more details." >&2;}
16074 { (exit 1); exit 1; }; }
16075fi
ac1cb8d3 16076rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16077fi
16078fi
16079rm -f conftest.val
16080else
16081 ac_cv_sizeof_char=0
16082fi
16083fi
16084echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16085echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16086cat >>confdefs.h <<_ACEOF
16087#define SIZEOF_CHAR $ac_cv_sizeof_char
16088_ACEOF
16089
16090
16091echo "$as_me:$LINENO: checking for short" >&5
16092echo $ECHO_N "checking for short... $ECHO_C" >&6
16093if test "${ac_cv_type_short+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095else
16096 cat >conftest.$ac_ext <<_ACEOF
16097/* confdefs.h. */
16098_ACEOF
16099cat confdefs.h >>conftest.$ac_ext
16100cat >>conftest.$ac_ext <<_ACEOF
16101/* end confdefs.h. */
16102$ac_includes_default
16103int
16104main ()
16105{
16106if ((short *) 0)
16107 return 0;
16108if (sizeof (short))
16109 return 0;
16110 ;
16111 return 0;
16112}
16113_ACEOF
16114rm -f conftest.$ac_objext
16115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16116 (eval $ac_compile) 2>conftest.er1
a848cd7e 16117 ac_status=$?
ac1cb8d3
VS
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
a848cd7e
SC
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
6ebeb4c7 16123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; } &&
16129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_cv_type_short=yes
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140ac_cv_type_short=no
16141fi
ac1cb8d3 16142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16143fi
16144echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16145echo "${ECHO_T}$ac_cv_type_short" >&6
16146
16147echo "$as_me:$LINENO: checking size of short" >&5
16148echo $ECHO_N "checking size of short... $ECHO_C" >&6
16149if test "${ac_cv_sizeof_short+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152 if test "$ac_cv_type_short" = yes; then
16153 # The cast to unsigned long works around a bug in the HP C Compiler
16154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16156 # This bug is HP SR number 8606223364.
16157 if test "$cross_compiling" = yes; then
16158 # Depending upon the size, compute the lo and hi bounds.
16159cat >conftest.$ac_ext <<_ACEOF
16160/* confdefs.h. */
16161_ACEOF
16162cat confdefs.h >>conftest.$ac_ext
16163cat >>conftest.$ac_ext <<_ACEOF
16164/* end confdefs.h. */
16165$ac_includes_default
16166int
16167main ()
16168{
16169static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16170test_array [0] = 0
16171
16172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16178 (eval $ac_compile) 2>conftest.er1
a848cd7e 16179 ac_status=$?
ac1cb8d3
VS
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
a848cd7e
SC
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
6ebeb4c7 16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ac_lo=0 ac_mid=0
16198 while :; do
16199 cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205$ac_includes_default
16206int
16207main ()
16208{
16209static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16210test_array [0] = 0
16211
16212 ;
16213 return 0;
16214}
16215_ACEOF
16216rm -f conftest.$ac_objext
16217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16218 (eval $ac_compile) 2>conftest.er1
a848cd7e 16219 ac_status=$?
ac1cb8d3
VS
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
a848cd7e
SC
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
6ebeb4c7 16225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_hi=$ac_mid; break
16238else
16239 echo "$as_me: failed program was:" >&5
16240sed 's/^/| /' conftest.$ac_ext >&5
16241
16242ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16243 if test $ac_lo -le $ac_mid; then
16244 ac_lo= ac_hi=
16245 break
16246 fi
16247 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16248fi
ac1cb8d3 16249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16250 done
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255cat >conftest.$ac_ext <<_ACEOF
16256/* confdefs.h. */
16257_ACEOF
16258cat confdefs.h >>conftest.$ac_ext
16259cat >>conftest.$ac_ext <<_ACEOF
16260/* end confdefs.h. */
16261$ac_includes_default
16262int
16263main ()
16264{
16265static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16266test_array [0] = 0
16267
16268 ;
16269 return 0;
16270}
16271_ACEOF
16272rm -f conftest.$ac_objext
16273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16274 (eval $ac_compile) 2>conftest.er1
a848cd7e 16275 ac_status=$?
ac1cb8d3
VS
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
a848cd7e
SC
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
6ebeb4c7 16281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_hi=-1 ac_mid=-1
16294 while :; do
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16314 (eval $ac_compile) 2>conftest.er1
a848cd7e 16315 ac_status=$?
ac1cb8d3
VS
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
a848cd7e
SC
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
6ebeb4c7 16321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_lo=$ac_mid; break
16334else
16335 echo "$as_me: failed program was:" >&5
16336sed 's/^/| /' conftest.$ac_ext >&5
16337
16338ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16339 if test $ac_mid -le $ac_hi; then
16340 ac_lo= ac_hi=
16341 break
16342 fi
16343 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16344fi
ac1cb8d3 16345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16346 done
16347else
16348 echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351ac_lo= ac_hi=
16352fi
ac1cb8d3 16353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16354fi
ac1cb8d3 16355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16356# Binary search between lo and hi bounds.
16357while test "x$ac_lo" != "x$ac_hi"; do
16358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16359 cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366int
16367main ()
16368{
16369static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16370test_array [0] = 0
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest.$ac_objext
16377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16378 (eval $ac_compile) 2>conftest.er1
a848cd7e 16379 ac_status=$?
ac1cb8d3
VS
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
a848cd7e
SC
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
6ebeb4c7 16385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_hi=$ac_mid
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402ac_lo=`expr '(' $ac_mid ')' + 1`
16403fi
ac1cb8d3 16404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16405done
16406case $ac_lo in
16407?*) ac_cv_sizeof_short=$ac_lo;;
16408'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16409See \`config.log' for more details." >&5
16410echo "$as_me: error: cannot compute sizeof (short), 77
16411See \`config.log' for more details." >&2;}
16412 { (exit 1); exit 1; }; } ;;
16413esac
16414else
16415 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16416 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16417echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16418 { (exit 1); exit 1; }; }
16419else
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427long longval () { return (long) (sizeof (short)); }
16428unsigned long ulongval () { return (long) (sizeof (short)); }
16429#include <stdio.h>
16430#include <stdlib.h>
16431int
16432main ()
16433{
16434
16435 FILE *f = fopen ("conftest.val", "w");
16436 if (! f)
16437 exit (1);
16438 if (((long) (sizeof (short))) < 0)
16439 {
16440 long i = longval ();
16441 if (i != ((long) (sizeof (short))))
16442 exit (1);
16443 fprintf (f, "%ld\n", i);
16444 }
16445 else
16446 {
16447 unsigned long i = ulongval ();
16448 if (i != ((long) (sizeof (short))))
16449 exit (1);
16450 fprintf (f, "%lu\n", i);
16451 }
16452 exit (ferror (f) || fclose (f) != 0);
16453
16454 ;
16455 return 0;
16456}
16457_ACEOF
16458rm -f conftest$ac_exeext
16459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_sizeof_short=`cat conftest.val`
16470else
16471 echo "$as_me: program exited with status $ac_status" >&5
16472echo "$as_me: failed program was:" >&5
16473sed 's/^/| /' conftest.$ac_ext >&5
16474
16475( exit $ac_status )
16476{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16477See \`config.log' for more details." >&5
16478echo "$as_me: error: cannot compute sizeof (short), 77
16479See \`config.log' for more details." >&2;}
16480 { (exit 1); exit 1; }; }
16481fi
ac1cb8d3 16482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16483fi
16484fi
16485rm -f conftest.val
16486else
16487 ac_cv_sizeof_short=0
16488fi
16489fi
16490echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16491echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16492cat >>confdefs.h <<_ACEOF
16493#define SIZEOF_SHORT $ac_cv_sizeof_short
16494_ACEOF
16495
16496
16497echo "$as_me:$LINENO: checking for void *" >&5
16498echo $ECHO_N "checking for void *... $ECHO_C" >&6
16499if test "${ac_cv_type_void_p+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501else
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508$ac_includes_default
16509int
16510main ()
16511{
16512if ((void * *) 0)
16513 return 0;
16514if (sizeof (void *))
16515 return 0;
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16522 (eval $ac_compile) 2>conftest.er1
a848cd7e 16523 ac_status=$?
ac1cb8d3
VS
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
a848cd7e
SC
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
6ebeb4c7 16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_type_void_p=yes
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546ac_cv_type_void_p=no
16547fi
ac1cb8d3 16548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16549fi
16550echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16551echo "${ECHO_T}$ac_cv_type_void_p" >&6
16552
16553echo "$as_me:$LINENO: checking size of void *" >&5
16554echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16555if test "${ac_cv_sizeof_void_p+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557else
16558 if test "$ac_cv_type_void_p" = yes; then
16559 # The cast to unsigned long works around a bug in the HP C Compiler
16560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16562 # This bug is HP SR number 8606223364.
16563 if test "$cross_compiling" = yes; then
16564 # Depending upon the size, compute the lo and hi bounds.
16565cat >conftest.$ac_ext <<_ACEOF
16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571$ac_includes_default
16572int
16573main ()
16574{
16575static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16576test_array [0] = 0
16577
16578 ;
16579 return 0;
16580}
16581_ACEOF
16582rm -f conftest.$ac_objext
16583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16584 (eval $ac_compile) 2>conftest.er1
a848cd7e 16585 ac_status=$?
ac1cb8d3
VS
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
a848cd7e
SC
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
6ebeb4c7 16591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 ac_lo=0 ac_mid=0
16604 while :; do
16605 cat >conftest.$ac_ext <<_ACEOF
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
16611$ac_includes_default
16612int
16613main ()
16614{
16615static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16616test_array [0] = 0
16617
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext
16623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16624 (eval $ac_compile) 2>conftest.er1
a848cd7e 16625 ac_status=$?
ac1cb8d3
VS
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
a848cd7e
SC
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
6ebeb4c7 16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; } &&
16637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_hi=$ac_mid; break
16644else
16645 echo "$as_me: failed program was:" >&5
16646sed 's/^/| /' conftest.$ac_ext >&5
16647
16648ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16649 if test $ac_lo -le $ac_mid; then
16650 ac_lo= ac_hi=
16651 break
16652 fi
16653 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16654fi
ac1cb8d3 16655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16656 done
16657else
16658 echo "$as_me: failed program was:" >&5
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
16661cat >conftest.$ac_ext <<_ACEOF
16662/* confdefs.h. */
16663_ACEOF
16664cat confdefs.h >>conftest.$ac_ext
16665cat >>conftest.$ac_ext <<_ACEOF
16666/* end confdefs.h. */
16667$ac_includes_default
16668int
16669main ()
16670{
16671static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16672test_array [0] = 0
16673
16674 ;
16675 return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext
16679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16680 (eval $ac_compile) 2>conftest.er1
a848cd7e 16681 ac_status=$?
ac1cb8d3
VS
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
a848cd7e
SC
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
6ebeb4c7 16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_hi=-1 ac_mid=-1
16700 while :; do
16701 cat >conftest.$ac_ext <<_ACEOF
16702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
16707$ac_includes_default
16708int
16709main ()
16710{
16711static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16712test_array [0] = 0
16713
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext
16719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16720 (eval $ac_compile) 2>conftest.er1
a848cd7e 16721 ac_status=$?
ac1cb8d3
VS
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
a848cd7e
SC
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
6ebeb4c7 16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_lo=$ac_mid; break
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16745 if test $ac_mid -le $ac_hi; then
16746 ac_lo= ac_hi=
16747 break
16748 fi
16749 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16750fi
ac1cb8d3 16751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16752 done
16753else
16754 echo "$as_me: failed program was:" >&5
16755sed 's/^/| /' conftest.$ac_ext >&5
16756
16757ac_lo= ac_hi=
16758fi
ac1cb8d3 16759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16760fi
ac1cb8d3 16761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16762# Binary search between lo and hi bounds.
16763while test "x$ac_lo" != "x$ac_hi"; do
16764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16765 cat >conftest.$ac_ext <<_ACEOF
16766/* confdefs.h. */
16767_ACEOF
16768cat confdefs.h >>conftest.$ac_ext
16769cat >>conftest.$ac_ext <<_ACEOF
16770/* end confdefs.h. */
16771$ac_includes_default
16772int
16773main ()
16774{
16775static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16776test_array [0] = 0
16777
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext
16783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16784 (eval $ac_compile) 2>conftest.er1
a848cd7e 16785 ac_status=$?
ac1cb8d3
VS
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
a848cd7e
SC
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
6ebeb4c7 16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_hi=$ac_mid
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808ac_lo=`expr '(' $ac_mid ')' + 1`
16809fi
ac1cb8d3 16810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16811done
16812case $ac_lo in
16813?*) ac_cv_sizeof_void_p=$ac_lo;;
16814'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16815See \`config.log' for more details." >&5
16816echo "$as_me: error: cannot compute sizeof (void *), 77
16817See \`config.log' for more details." >&2;}
16818 { (exit 1); exit 1; }; } ;;
16819esac
16820else
16821 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16822 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16823echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16824 { (exit 1); exit 1; }; }
16825else
16826 cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832$ac_includes_default
16833long longval () { return (long) (sizeof (void *)); }
16834unsigned long ulongval () { return (long) (sizeof (void *)); }
16835#include <stdio.h>
16836#include <stdlib.h>
16837int
16838main ()
16839{
16840
16841 FILE *f = fopen ("conftest.val", "w");
16842 if (! f)
16843 exit (1);
16844 if (((long) (sizeof (void *))) < 0)
16845 {
16846 long i = longval ();
16847 if (i != ((long) (sizeof (void *))))
16848 exit (1);
16849 fprintf (f, "%ld\n", i);
16850 }
16851 else
16852 {
16853 unsigned long i = ulongval ();
16854 if (i != ((long) (sizeof (void *))))
16855 exit (1);
16856 fprintf (f, "%lu\n", i);
16857 }
16858 exit (ferror (f) || fclose (f) != 0);
16859
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest$ac_exeext
16865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_sizeof_void_p=`cat conftest.val`
16876else
16877 echo "$as_me: program exited with status $ac_status" >&5
16878echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881( exit $ac_status )
16882{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16883See \`config.log' for more details." >&5
16884echo "$as_me: error: cannot compute sizeof (void *), 77
16885See \`config.log' for more details." >&2;}
16886 { (exit 1); exit 1; }; }
16887fi
ac1cb8d3 16888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16889fi
16890fi
16891rm -f conftest.val
16892else
16893 ac_cv_sizeof_void_p=0
16894fi
16895fi
16896echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16897echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16898cat >>confdefs.h <<_ACEOF
16899#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16900_ACEOF
16901
16902
16903echo "$as_me:$LINENO: checking for int" >&5
16904echo $ECHO_N "checking for int... $ECHO_C" >&6
16905if test "${ac_cv_type_int+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16907else
16908 cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
16914$ac_includes_default
16915int
16916main ()
16917{
16918if ((int *) 0)
16919 return 0;
16920if (sizeof (int))
16921 return 0;
16922 ;
16923 return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext
16927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16928 (eval $ac_compile) 2>conftest.er1
a848cd7e 16929 ac_status=$?
ac1cb8d3
VS
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
a848cd7e
SC
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
6ebeb4c7 16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_cv_type_int=yes
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952ac_cv_type_int=no
16953fi
ac1cb8d3 16954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16955fi
16956echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16957echo "${ECHO_T}$ac_cv_type_int" >&6
16958
16959echo "$as_me:$LINENO: checking size of int" >&5
16960echo $ECHO_N "checking size of int... $ECHO_C" >&6
16961if test "${ac_cv_sizeof_int+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963else
16964 if test "$ac_cv_type_int" = yes; then
16965 # The cast to unsigned long works around a bug in the HP C Compiler
16966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16968 # This bug is HP SR number 8606223364.
16969 if test "$cross_compiling" = yes; then
16970 # Depending upon the size, compute the lo and hi bounds.
16971cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977$ac_includes_default
16978int
16979main ()
16980{
16981static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16982test_array [0] = 0
16983
16984 ;
16985 return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16990 (eval $ac_compile) 2>conftest.er1
a848cd7e 16991 ac_status=$?
ac1cb8d3
VS
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
6ebeb4c7 16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_lo=0 ac_mid=0
17010 while :; do
17011 cat >conftest.$ac_ext <<_ACEOF
17012/* confdefs.h. */
17013_ACEOF
17014cat confdefs.h >>conftest.$ac_ext
17015cat >>conftest.$ac_ext <<_ACEOF
17016/* end confdefs.h. */
17017$ac_includes_default
17018int
17019main ()
17020{
17021static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17022test_array [0] = 0
17023
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17030 (eval $ac_compile) 2>conftest.er1
a848cd7e 17031 ac_status=$?
ac1cb8d3
VS
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
a848cd7e
SC
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
6ebeb4c7 17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_hi=$ac_mid; break
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17055 if test $ac_lo -le $ac_mid; then
17056 ac_lo= ac_hi=
17057 break
17058 fi
17059 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17060fi
ac1cb8d3 17061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17062 done
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067cat >conftest.$ac_ext <<_ACEOF
17068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
17073$ac_includes_default
17074int
17075main ()
17076{
17077static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17078test_array [0] = 0
17079
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext
17085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17086 (eval $ac_compile) 2>conftest.er1
a848cd7e 17087 ac_status=$?
ac1cb8d3
VS
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
a848cd7e
SC
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
6ebeb4c7 17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_hi=-1 ac_mid=-1
17106 while :; do
17107 cat >conftest.$ac_ext <<_ACEOF
17108/* confdefs.h. */
17109_ACEOF
17110cat confdefs.h >>conftest.$ac_ext
17111cat >>conftest.$ac_ext <<_ACEOF
17112/* end confdefs.h. */
17113$ac_includes_default
17114int
17115main ()
17116{
17117static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17118test_array [0] = 0
17119
17120 ;
17121 return 0;
17122}
17123_ACEOF
17124rm -f conftest.$ac_objext
17125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17126 (eval $ac_compile) 2>conftest.er1
a848cd7e 17127 ac_status=$?
ac1cb8d3
VS
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
a848cd7e
SC
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
6ebeb4c7 17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_lo=$ac_mid; break
17146else
17147 echo "$as_me: failed program was:" >&5
17148sed 's/^/| /' conftest.$ac_ext >&5
17149
17150ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17151 if test $ac_mid -le $ac_hi; then
17152 ac_lo= ac_hi=
17153 break
17154 fi
17155 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17156fi
ac1cb8d3 17157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17158 done
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163ac_lo= ac_hi=
17164fi
ac1cb8d3 17165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17166fi
ac1cb8d3 17167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17168# Binary search between lo and hi bounds.
17169while test "x$ac_lo" != "x$ac_hi"; do
17170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17171 cat >conftest.$ac_ext <<_ACEOF
17172/* confdefs.h. */
17173_ACEOF
17174cat confdefs.h >>conftest.$ac_ext
17175cat >>conftest.$ac_ext <<_ACEOF
17176/* end confdefs.h. */
17177$ac_includes_default
17178int
17179main ()
17180{
17181static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17182test_array [0] = 0
17183
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17190 (eval $ac_compile) 2>conftest.er1
a848cd7e 17191 ac_status=$?
ac1cb8d3
VS
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
a848cd7e
SC
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
6ebeb4c7 17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_hi=$ac_mid
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214ac_lo=`expr '(' $ac_mid ')' + 1`
17215fi
ac1cb8d3 17216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17217done
17218case $ac_lo in
17219?*) ac_cv_sizeof_int=$ac_lo;;
17220'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17221See \`config.log' for more details." >&5
17222echo "$as_me: error: cannot compute sizeof (int), 77
17223See \`config.log' for more details." >&2;}
17224 { (exit 1); exit 1; }; } ;;
17225esac
17226else
17227 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17228 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17229echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17230 { (exit 1); exit 1; }; }
17231else
17232 cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239long longval () { return (long) (sizeof (int)); }
17240unsigned long ulongval () { return (long) (sizeof (int)); }
17241#include <stdio.h>
17242#include <stdlib.h>
17243int
17244main ()
17245{
17246
17247 FILE *f = fopen ("conftest.val", "w");
17248 if (! f)
17249 exit (1);
17250 if (((long) (sizeof (int))) < 0)
17251 {
17252 long i = longval ();
17253 if (i != ((long) (sizeof (int))))
17254 exit (1);
17255 fprintf (f, "%ld\n", i);
17256 }
17257 else
17258 {
17259 unsigned long i = ulongval ();
17260 if (i != ((long) (sizeof (int))))
17261 exit (1);
17262 fprintf (f, "%lu\n", i);
17263 }
17264 exit (ferror (f) || fclose (f) != 0);
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest$ac_exeext
17271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_sizeof_int=`cat conftest.val`
17282else
17283 echo "$as_me: program exited with status $ac_status" >&5
17284echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287( exit $ac_status )
17288{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17289See \`config.log' for more details." >&5
17290echo "$as_me: error: cannot compute sizeof (int), 77
17291See \`config.log' for more details." >&2;}
17292 { (exit 1); exit 1; }; }
17293fi
ac1cb8d3 17294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17295fi
17296fi
17297rm -f conftest.val
17298else
17299 ac_cv_sizeof_int=0
17300fi
17301fi
17302echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17303echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17304cat >>confdefs.h <<_ACEOF
17305#define SIZEOF_INT $ac_cv_sizeof_int
17306_ACEOF
17307
17308
17309echo "$as_me:$LINENO: checking for long" >&5
17310echo $ECHO_N "checking for long... $ECHO_C" >&6
17311if test "${ac_cv_type_long+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320$ac_includes_default
17321int
17322main ()
17323{
17324if ((long *) 0)
17325 return 0;
17326if (sizeof (long))
17327 return 0;
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17334 (eval $ac_compile) 2>conftest.er1
a848cd7e 17335 ac_status=$?
ac1cb8d3
VS
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
a848cd7e
SC
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
6ebeb4c7 17341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_type_long=yes
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358ac_cv_type_long=no
17359fi
ac1cb8d3 17360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17361fi
17362echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17363echo "${ECHO_T}$ac_cv_type_long" >&6
17364
17365echo "$as_me:$LINENO: checking size of long" >&5
17366echo $ECHO_N "checking size of long... $ECHO_C" >&6
17367if test "${ac_cv_sizeof_long+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369else
17370 if test "$ac_cv_type_long" = yes; then
17371 # The cast to unsigned long works around a bug in the HP C Compiler
17372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17374 # This bug is HP SR number 8606223364.
17375 if test "$cross_compiling" = yes; then
17376 # Depending upon the size, compute the lo and hi bounds.
17377cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384int
17385main ()
17386{
17387static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17388test_array [0] = 0
17389
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext
17395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17396 (eval $ac_compile) 2>conftest.er1
a848cd7e 17397 ac_status=$?
ac1cb8d3
VS
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
a848cd7e
SC
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
6ebeb4c7 17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_lo=0 ac_mid=0
17416 while :; do
17417 cat >conftest.$ac_ext <<_ACEOF
17418/* confdefs.h. */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h. */
17423$ac_includes_default
17424int
17425main ()
17426{
17427static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17428test_array [0] = 0
17429
17430 ;
17431 return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext
17435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17436 (eval $ac_compile) 2>conftest.er1
a848cd7e 17437 ac_status=$?
ac1cb8d3
VS
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
a848cd7e
SC
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } &&
6ebeb4c7 17443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_hi=$ac_mid; break
17456else
17457 echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17461 if test $ac_lo -le $ac_mid; then
17462 ac_lo= ac_hi=
17463 break
17464 fi
17465 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17466fi
ac1cb8d3 17467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17468 done
17469else
17470 echo "$as_me: failed program was:" >&5
17471sed 's/^/| /' conftest.$ac_ext >&5
17472
17473cat >conftest.$ac_ext <<_ACEOF
17474/* confdefs.h. */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h. */
17479$ac_includes_default
17480int
17481main ()
17482{
17483static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17484test_array [0] = 0
17485
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext
17491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17492 (eval $ac_compile) 2>conftest.er1
a848cd7e 17493 ac_status=$?
ac1cb8d3
VS
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
a848cd7e
SC
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
6ebeb4c7 17499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_hi=-1 ac_mid=-1
17512 while :; do
17513 cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
17519$ac_includes_default
17520int
17521main ()
17522{
17523static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17524test_array [0] = 0
17525
17526 ;
17527 return 0;
17528}
17529_ACEOF
17530rm -f conftest.$ac_objext
17531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17532 (eval $ac_compile) 2>conftest.er1
a848cd7e 17533 ac_status=$?
ac1cb8d3
VS
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
a848cd7e
SC
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
6ebeb4c7 17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 ac_lo=$ac_mid; break
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17557 if test $ac_mid -le $ac_hi; then
17558 ac_lo= ac_hi=
17559 break
17560 fi
17561 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17562fi
ac1cb8d3 17563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17564 done
17565else
17566 echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
17569ac_lo= ac_hi=
17570fi
ac1cb8d3 17571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17572fi
ac1cb8d3 17573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17574# Binary search between lo and hi bounds.
17575while test "x$ac_lo" != "x$ac_hi"; do
17576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17577 cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
17583$ac_includes_default
17584int
17585main ()
17586{
17587static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17588test_array [0] = 0
17589
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext
17595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17596 (eval $ac_compile) 2>conftest.er1
a848cd7e 17597 ac_status=$?
ac1cb8d3
VS
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
a848cd7e
SC
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
6ebeb4c7 17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=$ac_mid
17616else
17617 echo "$as_me: failed program was:" >&5
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
17620ac_lo=`expr '(' $ac_mid ')' + 1`
17621fi
ac1cb8d3 17622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17623done
17624case $ac_lo in
17625?*) ac_cv_sizeof_long=$ac_lo;;
17626'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17627See \`config.log' for more details." >&5
17628echo "$as_me: error: cannot compute sizeof (long), 77
17629See \`config.log' for more details." >&2;}
17630 { (exit 1); exit 1; }; } ;;
17631esac
17632else
17633 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17634 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17635echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17636 { (exit 1); exit 1; }; }
17637else
17638 cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645long longval () { return (long) (sizeof (long)); }
17646unsigned long ulongval () { return (long) (sizeof (long)); }
17647#include <stdio.h>
17648#include <stdlib.h>
17649int
17650main ()
17651{
17652
17653 FILE *f = fopen ("conftest.val", "w");
17654 if (! f)
17655 exit (1);
17656 if (((long) (sizeof (long))) < 0)
17657 {
17658 long i = longval ();
17659 if (i != ((long) (sizeof (long))))
17660 exit (1);
17661 fprintf (f, "%ld\n", i);
17662 }
17663 else
17664 {
17665 unsigned long i = ulongval ();
17666 if (i != ((long) (sizeof (long))))
17667 exit (1);
17668 fprintf (f, "%lu\n", i);
17669 }
17670 exit (ferror (f) || fclose (f) != 0);
17671
17672 ;
17673 return 0;
17674}
17675_ACEOF
17676rm -f conftest$ac_exeext
17677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 ac_cv_sizeof_long=`cat conftest.val`
17688else
17689 echo "$as_me: program exited with status $ac_status" >&5
17690echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
17692
17693( exit $ac_status )
17694{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17695See \`config.log' for more details." >&5
17696echo "$as_me: error: cannot compute sizeof (long), 77
17697See \`config.log' for more details." >&2;}
17698 { (exit 1); exit 1; }; }
17699fi
ac1cb8d3 17700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17701fi
17702fi
17703rm -f conftest.val
17704else
17705 ac_cv_sizeof_long=0
17706fi
17707fi
17708echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17709echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17710cat >>confdefs.h <<_ACEOF
17711#define SIZEOF_LONG $ac_cv_sizeof_long
17712_ACEOF
17713
17714
17715echo "$as_me:$LINENO: checking for size_t" >&5
17716echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17717if test "${ac_cv_type_size_t+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719else
17720 cat >conftest.$ac_ext <<_ACEOF
17721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
17726$ac_includes_default
17727int
17728main ()
17729{
17730if ((size_t *) 0)
17731 return 0;
17732if (sizeof (size_t))
17733 return 0;
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext
17739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17740 (eval $ac_compile) 2>conftest.er1
a848cd7e 17741 ac_status=$?
ac1cb8d3
VS
17742 grep -v '^ *+' conftest.er1 >conftest.err
17743 rm -f conftest.er1
17744 cat conftest.err >&5
a848cd7e
SC
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
6ebeb4c7 17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_type_size_t=yes
17760else
17761 echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764ac_cv_type_size_t=no
17765fi
ac1cb8d3 17766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17767fi
17768echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17769echo "${ECHO_T}$ac_cv_type_size_t" >&6
17770
17771echo "$as_me:$LINENO: checking size of size_t" >&5
17772echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17773if test "${ac_cv_sizeof_size_t+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775else
17776 if test "$ac_cv_type_size_t" = yes; then
17777 # The cast to unsigned long works around a bug in the HP C Compiler
17778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17780 # This bug is HP SR number 8606223364.
17781 if test "$cross_compiling" = yes; then
17782 # Depending upon the size, compute the lo and hi bounds.
17783cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789$ac_includes_default
17790int
17791main ()
17792{
17793static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17794test_array [0] = 0
17795
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17802 (eval $ac_compile) 2>conftest.er1
a848cd7e 17803 ac_status=$?
ac1cb8d3
VS
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
a848cd7e
SC
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
6ebeb4c7 17809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_lo=0 ac_mid=0
17822 while :; do
17823 cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829$ac_includes_default
17830int
17831main ()
17832{
17833static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17834test_array [0] = 0
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17842 (eval $ac_compile) 2>conftest.er1
a848cd7e 17843 ac_status=$?
ac1cb8d3
VS
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
a848cd7e
SC
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
6ebeb4c7 17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_hi=$ac_mid; break
17862else
17863 echo "$as_me: failed program was:" >&5
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
17866ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17867 if test $ac_lo -le $ac_mid; then
17868 ac_lo= ac_hi=
17869 break
17870 fi
17871 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17872fi
ac1cb8d3 17873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17874 done
17875else
17876 echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885$ac_includes_default
17886int
17887main ()
17888{
17889static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17890test_array [0] = 0
17891
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17898 (eval $ac_compile) 2>conftest.er1
a848cd7e 17899 ac_status=$?
ac1cb8d3
VS
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
a848cd7e
SC
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
6ebeb4c7 17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_hi=-1 ac_mid=-1
17918 while :; do
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
6ebeb4c7 17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_lo=$ac_mid; break
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17963 if test $ac_mid -le $ac_hi; then
17964 ac_lo= ac_hi=
17965 break
17966 fi
17967 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17968fi
ac1cb8d3 17969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17970 done
17971else
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975ac_lo= ac_hi=
17976fi
ac1cb8d3 17977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17978fi
ac1cb8d3 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17980# Binary search between lo and hi bounds.
17981while test "x$ac_lo" != "x$ac_hi"; do
17982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990int
17991main ()
17992{
17993static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17994test_array [0] = 0
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18002 (eval $ac_compile) 2>conftest.er1
a848cd7e 18003 ac_status=$?
ac1cb8d3
VS
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
a848cd7e
SC
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
6ebeb4c7 18009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_hi=$ac_mid
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026ac_lo=`expr '(' $ac_mid ')' + 1`
18027fi
ac1cb8d3 18028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18029done
18030case $ac_lo in
18031?*) ac_cv_sizeof_size_t=$ac_lo;;
18032'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18033See \`config.log' for more details." >&5
18034echo "$as_me: error: cannot compute sizeof (size_t), 77
18035See \`config.log' for more details." >&2;}
18036 { (exit 1); exit 1; }; } ;;
18037esac
18038else
18039 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18040 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18041echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18042 { (exit 1); exit 1; }; }
18043else
18044 cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050$ac_includes_default
18051long longval () { return (long) (sizeof (size_t)); }
18052unsigned long ulongval () { return (long) (sizeof (size_t)); }
18053#include <stdio.h>
18054#include <stdlib.h>
18055int
18056main ()
18057{
18058
18059 FILE *f = fopen ("conftest.val", "w");
18060 if (! f)
18061 exit (1);
18062 if (((long) (sizeof (size_t))) < 0)
18063 {
18064 long i = longval ();
18065 if (i != ((long) (sizeof (size_t))))
18066 exit (1);
18067 fprintf (f, "%ld\n", i);
18068 }
18069 else
18070 {
18071 unsigned long i = ulongval ();
18072 if (i != ((long) (sizeof (size_t))))
18073 exit (1);
18074 fprintf (f, "%lu\n", i);
18075 }
18076 exit (ferror (f) || fclose (f) != 0);
18077
18078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest$ac_exeext
18083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_cv_sizeof_size_t=`cat conftest.val`
18094else
18095 echo "$as_me: program exited with status $ac_status" >&5
18096echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099( exit $ac_status )
18100{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18101See \`config.log' for more details." >&5
18102echo "$as_me: error: cannot compute sizeof (size_t), 77
18103See \`config.log' for more details." >&2;}
18104 { (exit 1); exit 1; }; }
18105fi
ac1cb8d3 18106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18107fi
18108fi
18109rm -f conftest.val
18110else
18111 ac_cv_sizeof_size_t=0
18112fi
18113fi
18114echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18115echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18116cat >>confdefs.h <<_ACEOF
18117#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18118_ACEOF
18119
18120
18121
18122case "${host}" in
18123 arm-*-linux* )
18124 echo "$as_me:$LINENO: checking for long long" >&5
18125echo $ECHO_N "checking for long long... $ECHO_C" >&6
18126if test "${ac_cv_type_long_long+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18128else
18129 cat >conftest.$ac_ext <<_ACEOF
18130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
18135$ac_includes_default
18136int
18137main ()
18138{
18139if ((long long *) 0)
18140 return 0;
18141if (sizeof (long long))
18142 return 0;
18143 ;
18144 return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext
18148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18149 (eval $ac_compile) 2>conftest.er1
a848cd7e 18150 ac_status=$?
ac1cb8d3
VS
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
a848cd7e
SC
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
6ebeb4c7 18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_type_long_long=yes
18169else
18170 echo "$as_me: failed program was:" >&5
18171sed 's/^/| /' conftest.$ac_ext >&5
18172
18173ac_cv_type_long_long=no
18174fi
ac1cb8d3 18175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18176fi
18177echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18178echo "${ECHO_T}$ac_cv_type_long_long" >&6
18179
18180echo "$as_me:$LINENO: checking size of long long" >&5
18181echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18182if test "${ac_cv_sizeof_long_long+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18184else
18185 if test "$ac_cv_type_long_long" = yes; then
18186 # The cast to unsigned long works around a bug in the HP C Compiler
18187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18189 # This bug is HP SR number 8606223364.
18190 if test "$cross_compiling" = yes; then
18191 # Depending upon the size, compute the lo and hi bounds.
18192cat >conftest.$ac_ext <<_ACEOF
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
18198$ac_includes_default
18199int
18200main ()
18201{
18202static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18203test_array [0] = 0
18204
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext
18210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18211 (eval $ac_compile) 2>conftest.er1
a848cd7e 18212 ac_status=$?
ac1cb8d3
VS
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
a848cd7e
SC
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
6ebeb4c7 18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_lo=0 ac_mid=0
18231 while :; do
18232 cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238$ac_includes_default
18239int
18240main ()
18241{
18242static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18243test_array [0] = 0
18244
18245 ;
18246 return 0;
18247}
18248_ACEOF
18249rm -f conftest.$ac_objext
18250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18251 (eval $ac_compile) 2>conftest.er1
a848cd7e 18252 ac_status=$?
ac1cb8d3
VS
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
a848cd7e
SC
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
6ebeb4c7 18258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_hi=$ac_mid; break
18271else
18272 echo "$as_me: failed program was:" >&5
18273sed 's/^/| /' conftest.$ac_ext >&5
18274
18275ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18276 if test $ac_lo -le $ac_mid; then
18277 ac_lo= ac_hi=
18278 break
18279 fi
18280 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18281fi
ac1cb8d3 18282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18283 done
18284else
18285 echo "$as_me: failed program was:" >&5
18286sed 's/^/| /' conftest.$ac_ext >&5
18287
18288cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294$ac_includes_default
18295int
18296main ()
18297{
18298static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18299test_array [0] = 0
18300
18301 ;
18302 return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext
18306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18307 (eval $ac_compile) 2>conftest.er1
a848cd7e 18308 ac_status=$?
ac1cb8d3
VS
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
a848cd7e
SC
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
6ebeb4c7 18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_hi=-1 ac_mid=-1
18327 while :; do
18328 cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h. */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h. */
18334$ac_includes_default
18335int
18336main ()
18337{
18338static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18339test_array [0] = 0
18340
18341 ;
18342 return 0;
18343}
18344_ACEOF
18345rm -f conftest.$ac_objext
18346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18347 (eval $ac_compile) 2>conftest.er1
a848cd7e 18348 ac_status=$?
ac1cb8d3
VS
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
a848cd7e
SC
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
6ebeb4c7 18354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_lo=$ac_mid; break
18367else
18368 echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18372 if test $ac_mid -le $ac_hi; then
18373 ac_lo= ac_hi=
18374 break
18375 fi
18376 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18377fi
ac1cb8d3 18378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18379 done
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384ac_lo= ac_hi=
18385fi
ac1cb8d3 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18387fi
ac1cb8d3 18388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18389# Binary search between lo and hi bounds.
18390while test "x$ac_lo" != "x$ac_hi"; do
18391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18392 cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398$ac_includes_default
18399int
18400main ()
18401{
18402static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18403test_array [0] = 0
18404
18405 ;
18406 return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext
18410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18411 (eval $ac_compile) 2>conftest.er1
a848cd7e 18412 ac_status=$?
ac1cb8d3
VS
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
a848cd7e
SC
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
6ebeb4c7 18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_hi=$ac_mid
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435ac_lo=`expr '(' $ac_mid ')' + 1`
18436fi
ac1cb8d3 18437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18438done
18439case $ac_lo in
18440?*) ac_cv_sizeof_long_long=$ac_lo;;
18441'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18442See \`config.log' for more details." >&5
18443echo "$as_me: error: cannot compute sizeof (long long), 77
18444See \`config.log' for more details." >&2;}
18445 { (exit 1); exit 1; }; } ;;
18446esac
18447else
18448 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18449 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18450echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18451 { (exit 1); exit 1; }; }
18452else
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
18459$ac_includes_default
18460long longval () { return (long) (sizeof (long long)); }
18461unsigned long ulongval () { return (long) (sizeof (long long)); }
18462#include <stdio.h>
18463#include <stdlib.h>
18464int
18465main ()
18466{
18467
18468 FILE *f = fopen ("conftest.val", "w");
18469 if (! f)
18470 exit (1);
18471 if (((long) (sizeof (long long))) < 0)
18472 {
18473 long i = longval ();
18474 if (i != ((long) (sizeof (long long))))
18475 exit (1);
18476 fprintf (f, "%ld\n", i);
18477 }
18478 else
18479 {
18480 unsigned long i = ulongval ();
18481 if (i != ((long) (sizeof (long long))))
18482 exit (1);
18483 fprintf (f, "%lu\n", i);
18484 }
18485 exit (ferror (f) || fclose (f) != 0);
18486
18487 ;
18488 return 0;
18489}
18490_ACEOF
18491rm -f conftest$ac_exeext
18492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493 (eval $ac_link) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_sizeof_long_long=`cat conftest.val`
18503else
18504 echo "$as_me: program exited with status $ac_status" >&5
18505echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508( exit $ac_status )
18509{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18510See \`config.log' for more details." >&5
18511echo "$as_me: error: cannot compute sizeof (long long), 77
18512See \`config.log' for more details." >&2;}
18513 { (exit 1); exit 1; }; }
18514fi
ac1cb8d3 18515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18516fi
18517fi
18518rm -f conftest.val
18519else
18520 ac_cv_sizeof_long_long=0
18521fi
18522fi
18523echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18524echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18525cat >>confdefs.h <<_ACEOF
18526#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18527_ACEOF
18528
18529
18530 ;;
18531 *-hp-hpux* )
18532 echo "$as_me:$LINENO: checking for long long" >&5
18533echo $ECHO_N "checking for long long... $ECHO_C" >&6
18534if test "${ac_cv_type_long_long+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536else
18537 cat >conftest.$ac_ext <<_ACEOF
18538/* confdefs.h. */
18539_ACEOF
18540cat confdefs.h >>conftest.$ac_ext
18541cat >>conftest.$ac_ext <<_ACEOF
18542/* end confdefs.h. */
18543$ac_includes_default
18544int
18545main ()
18546{
18547if ((long long *) 0)
18548 return 0;
18549if (sizeof (long long))
18550 return 0;
18551 ;
18552 return 0;
18553}
18554_ACEOF
18555rm -f conftest.$ac_objext
18556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18557 (eval $ac_compile) 2>conftest.er1
a848cd7e 18558 ac_status=$?
ac1cb8d3
VS
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
a848cd7e
SC
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
6ebeb4c7 18564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; } &&
18570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_cv_type_long_long=yes
18577else
18578 echo "$as_me: failed program was:" >&5
18579sed 's/^/| /' conftest.$ac_ext >&5
18580
18581ac_cv_type_long_long=no
18582fi
ac1cb8d3 18583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18584fi
18585echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18586echo "${ECHO_T}$ac_cv_type_long_long" >&6
18587
18588echo "$as_me:$LINENO: checking size of long long" >&5
18589echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18590if test "${ac_cv_sizeof_long_long+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592else
18593 if test "$ac_cv_type_long_long" = yes; then
18594 # The cast to unsigned long works around a bug in the HP C Compiler
18595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18597 # This bug is HP SR number 8606223364.
18598 if test "$cross_compiling" = yes; then
18599 # Depending upon the size, compute the lo and hi bounds.
18600cat >conftest.$ac_ext <<_ACEOF
18601/* confdefs.h. */
18602_ACEOF
18603cat confdefs.h >>conftest.$ac_ext
18604cat >>conftest.$ac_ext <<_ACEOF
18605/* end confdefs.h. */
18606$ac_includes_default
18607int
18608main ()
18609{
18610static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18611test_array [0] = 0
18612
18613 ;
18614 return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext
18618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18619 (eval $ac_compile) 2>conftest.er1
a848cd7e 18620 ac_status=$?
ac1cb8d3
VS
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
a848cd7e
SC
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
6ebeb4c7 18626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638 ac_lo=0 ac_mid=0
18639 while :; do
18640 cat >conftest.$ac_ext <<_ACEOF
18641/* confdefs.h. */
18642_ACEOF
18643cat confdefs.h >>conftest.$ac_ext
18644cat >>conftest.$ac_ext <<_ACEOF
18645/* end confdefs.h. */
18646$ac_includes_default
18647int
18648main ()
18649{
18650static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18651test_array [0] = 0
18652
18653 ;
18654 return 0;
18655}
18656_ACEOF
18657rm -f conftest.$ac_objext
18658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18659 (eval $ac_compile) 2>conftest.er1
a848cd7e 18660 ac_status=$?
ac1cb8d3
VS
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
a848cd7e
SC
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
6ebeb4c7 18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; } &&
18672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; }; then
18678 ac_hi=$ac_mid; break
18679else
18680 echo "$as_me: failed program was:" >&5
18681sed 's/^/| /' conftest.$ac_ext >&5
18682
18683ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18684 if test $ac_lo -le $ac_mid; then
18685 ac_lo= ac_hi=
18686 break
18687 fi
18688 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18689fi
ac1cb8d3 18690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18691 done
18692else
18693 echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
18696cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702$ac_includes_default
18703int
18704main ()
18705{
18706static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18707test_array [0] = 0
18708
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext
18714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18715 (eval $ac_compile) 2>conftest.er1
a848cd7e 18716 ac_status=$?
ac1cb8d3
VS
18717 grep -v '^ *+' conftest.er1 >conftest.err
18718 rm -f conftest.er1
18719 cat conftest.err >&5
a848cd7e
SC
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } &&
6ebeb4c7 18722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_hi=-1 ac_mid=-1
18735 while :; do
18736 cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742$ac_includes_default
18743int
18744main ()
18745{
18746static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18747test_array [0] = 0
18748
18749 ;
18750 return 0;
18751}
18752_ACEOF
18753rm -f conftest.$ac_objext
18754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18755 (eval $ac_compile) 2>conftest.er1
a848cd7e 18756 ac_status=$?
ac1cb8d3
VS
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
a848cd7e
SC
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
6ebeb4c7 18762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_lo=$ac_mid; break
18775else
18776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
18779ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18780 if test $ac_mid -le $ac_hi; then
18781 ac_lo= ac_hi=
18782 break
18783 fi
18784 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18785fi
ac1cb8d3 18786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18787 done
18788else
18789 echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792ac_lo= ac_hi=
18793fi
ac1cb8d3 18794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18795fi
ac1cb8d3 18796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18797# Binary search between lo and hi bounds.
18798while test "x$ac_lo" != "x$ac_hi"; do
18799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806$ac_includes_default
18807int
18808main ()
18809{
18810static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18811test_array [0] = 0
18812
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext
18818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18819 (eval $ac_compile) 2>conftest.er1
a848cd7e 18820 ac_status=$?
ac1cb8d3
VS
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
a848cd7e
SC
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
6ebeb4c7 18826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_hi=$ac_mid
18839else
18840 echo "$as_me: failed program was:" >&5
18841sed 's/^/| /' conftest.$ac_ext >&5
18842
18843ac_lo=`expr '(' $ac_mid ')' + 1`
18844fi
ac1cb8d3 18845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18846done
18847case $ac_lo in
18848?*) ac_cv_sizeof_long_long=$ac_lo;;
18849'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18850See \`config.log' for more details." >&5
18851echo "$as_me: error: cannot compute sizeof (long long), 77
18852See \`config.log' for more details." >&2;}
18853 { (exit 1); exit 1; }; } ;;
18854esac
18855else
18856 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18857 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18858echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18859 { (exit 1); exit 1; }; }
18860else
18861 cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867$ac_includes_default
18868long longval () { return (long) (sizeof (long long)); }
18869unsigned long ulongval () { return (long) (sizeof (long long)); }
18870#include <stdio.h>
18871#include <stdlib.h>
18872int
18873main ()
18874{
18875
18876 FILE *f = fopen ("conftest.val", "w");
18877 if (! f)
18878 exit (1);
18879 if (((long) (sizeof (long long))) < 0)
18880 {
18881 long i = longval ();
18882 if (i != ((long) (sizeof (long long))))
18883 exit (1);
18884 fprintf (f, "%ld\n", i);
18885 }
18886 else
18887 {
18888 unsigned long i = ulongval ();
18889 if (i != ((long) (sizeof (long long))))
18890 exit (1);
18891 fprintf (f, "%lu\n", i);
18892 }
18893 exit (ferror (f) || fclose (f) != 0);
18894
18895 ;
18896 return 0;
18897}
18898_ACEOF
18899rm -f conftest$ac_exeext
18900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18901 (eval $ac_link) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_cv_sizeof_long_long=`cat conftest.val`
18911else
18912 echo "$as_me: program exited with status $ac_status" >&5
18913echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916( exit $ac_status )
18917{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18918See \`config.log' for more details." >&5
18919echo "$as_me: error: cannot compute sizeof (long long), 77
18920See \`config.log' for more details." >&2;}
18921 { (exit 1); exit 1; }; }
18922fi
ac1cb8d3 18923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18924fi
18925fi
18926rm -f conftest.val
18927else
18928 ac_cv_sizeof_long_long=0
18929fi
18930fi
18931echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18932echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18933cat >>confdefs.h <<_ACEOF
18934#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18935_ACEOF
18936
18937
18938 if test "$ac_cv_sizeof_long_long" != "0"; then
18939 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18940 fi
18941 ;;
18942 * )
18943 echo "$as_me:$LINENO: checking for long long" >&5
18944echo $ECHO_N "checking for long long... $ECHO_C" >&6
18945if test "${ac_cv_type_long_long+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18947else
18948 cat >conftest.$ac_ext <<_ACEOF
18949/* confdefs.h. */
18950_ACEOF
18951cat confdefs.h >>conftest.$ac_ext
18952cat >>conftest.$ac_ext <<_ACEOF
18953/* end confdefs.h. */
18954$ac_includes_default
18955int
18956main ()
18957{
18958if ((long long *) 0)
18959 return 0;
18960if (sizeof (long long))
18961 return 0;
18962 ;
18963 return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext
18967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18968 (eval $ac_compile) 2>conftest.er1
a848cd7e 18969 ac_status=$?
ac1cb8d3
VS
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
a848cd7e
SC
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
6ebeb4c7 18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_type_long_long=yes
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992ac_cv_type_long_long=no
18993fi
ac1cb8d3 18994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18995fi
18996echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18997echo "${ECHO_T}$ac_cv_type_long_long" >&6
18998
18999echo "$as_me:$LINENO: checking size of long long" >&5
19000echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19001if test "${ac_cv_sizeof_long_long+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003else
19004 if test "$ac_cv_type_long_long" = yes; then
19005 # The cast to unsigned long works around a bug in the HP C Compiler
19006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19008 # This bug is HP SR number 8606223364.
19009 if test "$cross_compiling" = yes; then
19010 # Depending upon the size, compute the lo and hi bounds.
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018int
19019main ()
19020{
19021static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19022test_array [0] = 0
19023
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext
19029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19030 (eval $ac_compile) 2>conftest.er1
a848cd7e 19031 ac_status=$?
ac1cb8d3
VS
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
a848cd7e
SC
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
6ebeb4c7 19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 ac_lo=0 ac_mid=0
19050 while :; do
19051 cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h. */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h. */
19057$ac_includes_default
19058int
19059main ()
19060{
19061static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19062test_array [0] = 0
19063
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext
19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19070 (eval $ac_compile) 2>conftest.er1
a848cd7e 19071 ac_status=$?
ac1cb8d3
VS
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
a848cd7e
SC
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
6ebeb4c7 19077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 ac_hi=$ac_mid; break
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19095 if test $ac_lo -le $ac_mid; then
19096 ac_lo= ac_hi=
19097 break
19098 fi
19099 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19100fi
ac1cb8d3 19101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19102 done
19103else
19104 echo "$as_me: failed program was:" >&5
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
19107cat >conftest.$ac_ext <<_ACEOF
19108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
19113$ac_includes_default
19114int
19115main ()
19116{
19117static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19118test_array [0] = 0
19119
19120 ;
19121 return 0;
19122}
19123_ACEOF
19124rm -f conftest.$ac_objext
19125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19126 (eval $ac_compile) 2>conftest.er1
a848cd7e 19127 ac_status=$?
ac1cb8d3
VS
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
a848cd7e
SC
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
6ebeb4c7 19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_hi=-1 ac_mid=-1
19146 while :; do
19147 cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h. */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h. */
19153$ac_includes_default
19154int
19155main ()
19156{
19157static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19158test_array [0] = 0
19159
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext
19165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19166 (eval $ac_compile) 2>conftest.er1
a848cd7e 19167 ac_status=$?
ac1cb8d3
VS
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
a848cd7e
SC
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
6ebeb4c7 19173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_lo=$ac_mid; break
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19191 if test $ac_mid -le $ac_hi; then
19192 ac_lo= ac_hi=
19193 break
19194 fi
19195 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19196fi
ac1cb8d3 19197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19198 done
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203ac_lo= ac_hi=
19204fi
ac1cb8d3 19205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19206fi
ac1cb8d3 19207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19208# Binary search between lo and hi bounds.
19209while test "x$ac_lo" != "x$ac_hi"; do
19210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19211 cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h. */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
19217$ac_includes_default
19218int
19219main ()
19220{
19221static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19222test_array [0] = 0
19223
19224 ;
19225 return 0;
19226}
19227_ACEOF
19228rm -f conftest.$ac_objext
19229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19230 (eval $ac_compile) 2>conftest.er1
a848cd7e 19231 ac_status=$?
ac1cb8d3
VS
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
a848cd7e
SC
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
6ebeb4c7 19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_hi=$ac_mid
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254ac_lo=`expr '(' $ac_mid ')' + 1`
19255fi
ac1cb8d3 19256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19257done
19258case $ac_lo in
19259?*) ac_cv_sizeof_long_long=$ac_lo;;
19260'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19261See \`config.log' for more details." >&5
19262echo "$as_me: error: cannot compute sizeof (long long), 77
19263See \`config.log' for more details." >&2;}
19264 { (exit 1); exit 1; }; } ;;
19265esac
19266else
19267 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19268 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19269echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19270 { (exit 1); exit 1; }; }
19271else
19272 cat >conftest.$ac_ext <<_ACEOF
19273/* confdefs.h. */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h. */
19278$ac_includes_default
19279long longval () { return (long) (sizeof (long long)); }
19280unsigned long ulongval () { return (long) (sizeof (long long)); }
19281#include <stdio.h>
19282#include <stdlib.h>
19283int
19284main ()
19285{
19286
19287 FILE *f = fopen ("conftest.val", "w");
19288 if (! f)
19289 exit (1);
19290 if (((long) (sizeof (long long))) < 0)
19291 {
19292 long i = longval ();
19293 if (i != ((long) (sizeof (long long))))
19294 exit (1);
19295 fprintf (f, "%ld\n", i);
19296 }
19297 else
19298 {
19299 unsigned long i = ulongval ();
19300 if (i != ((long) (sizeof (long long))))
19301 exit (1);
19302 fprintf (f, "%lu\n", i);
19303 }
19304 exit (ferror (f) || fclose (f) != 0);
19305
19306 ;
19307 return 0;
19308}
19309_ACEOF
19310rm -f conftest$ac_exeext
19311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 ac_cv_sizeof_long_long=`cat conftest.val`
19322else
19323 echo "$as_me: program exited with status $ac_status" >&5
19324echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327( exit $ac_status )
19328{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19329See \`config.log' for more details." >&5
19330echo "$as_me: error: cannot compute sizeof (long long), 77
19331See \`config.log' for more details." >&2;}
19332 { (exit 1); exit 1; }; }
19333fi
ac1cb8d3 19334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19335fi
19336fi
19337rm -f conftest.val
19338else
19339 ac_cv_sizeof_long_long=0
19340fi
19341fi
19342echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19343echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19344cat >>confdefs.h <<_ACEOF
19345#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19346_ACEOF
19347
19348
19349esac
19350
238ecede
MW
19351echo "$as_me:$LINENO: checking for wchar_t" >&5
19352echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19353if test "${ac_cv_type_wchar_t+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355else
19356 cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362
83d8eb47
MW
19363 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19364 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19365 # error "fake wchar_t"
19366 #endif
19367 #ifdef HAVE_WCHAR_H
19368 # ifdef __CYGWIN__
19369 # include <stddef.h>
19370 # endif
19371 # include <wchar.h>
19372 #endif
19373 #ifdef HAVE_STDLIB_H
19374 # include <stdlib.h>
19375 #endif
19376 #include <stdio.h>
19377
19378
19379
19380int
19381main ()
19382{
19383if ((wchar_t *) 0)
19384 return 0;
19385if (sizeof (wchar_t))
19386 return 0;
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391rm -f conftest.$ac_objext
19392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
6ebeb4c7 19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_cv_type_wchar_t=yes
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417ac_cv_type_wchar_t=no
19418fi
19419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420fi
19421echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19422echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19423
a848cd7e
SC
19424echo "$as_me:$LINENO: checking size of wchar_t" >&5
19425echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19426if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19428else
238ecede
MW
19429 if test "$ac_cv_type_wchar_t" = yes; then
19430 # The cast to unsigned long works around a bug in the HP C Compiler
19431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19433 # This bug is HP SR number 8606223364.
19434 if test "$cross_compiling" = yes; then
19435 # Depending upon the size, compute the lo and hi bounds.
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442
83d8eb47
MW
19443 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19444 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19445 # error "fake wchar_t"
19446 #endif
19447 #ifdef HAVE_WCHAR_H
19448 # ifdef __CYGWIN__
19449 # include <stddef.h>
19450 # endif
19451 # include <wchar.h>
19452 #endif
19453 #ifdef HAVE_STDLIB_H
19454 # include <stdlib.h>
19455 #endif
19456 #include <stdio.h>
19457
19458
19459
19460int
19461main ()
19462{
19463static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19464test_array [0] = 0
19465
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
6ebeb4c7 19479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_lo=0 ac_mid=0
19492 while :; do
19493 cat >conftest.$ac_ext <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499
83d8eb47
MW
19500 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19501 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19502 # error "fake wchar_t"
19503 #endif
19504 #ifdef HAVE_WCHAR_H
19505 # ifdef __CYGWIN__
19506 # include <stddef.h>
19507 # endif
19508 # include <wchar.h>
19509 #endif
19510 #ifdef HAVE_STDLIB_H
19511 # include <stdlib.h>
19512 #endif
19513 #include <stdio.h>
19514
19515
19516
19517int
19518main ()
19519{
19520static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19521test_array [0] = 0
19522
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
6ebeb4c7 19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_hi=$ac_mid; break
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553ac_lo=`expr $ac_mid + 1`
19554 if test $ac_lo -le $ac_mid; then
19555 ac_lo= ac_hi=
19556 break
19557 fi
19558 ac_mid=`expr 2 '*' $ac_mid + 1`
19559fi
19560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 done
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566cat >conftest.$ac_ext <<_ACEOF
19567/* confdefs.h. */
19568_ACEOF
19569cat confdefs.h >>conftest.$ac_ext
19570cat >>conftest.$ac_ext <<_ACEOF
19571/* end confdefs.h. */
19572
83d8eb47
MW
19573 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19574 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19575 # error "fake wchar_t"
19576 #endif
19577 #ifdef HAVE_WCHAR_H
19578 # ifdef __CYGWIN__
19579 # include <stddef.h>
19580 # endif
19581 # include <wchar.h>
19582 #endif
19583 #ifdef HAVE_STDLIB_H
19584 # include <stdlib.h>
19585 #endif
19586 #include <stdio.h>
19587
19588
19589
19590int
19591main ()
19592{
19593static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19594test_array [0] = 0
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602 (eval $ac_compile) 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
6ebeb4c7 19609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_hi=-1 ac_mid=-1
19622 while :; do
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629
83d8eb47
MW
19630 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19631 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19632 # error "fake wchar_t"
19633 #endif
19634 #ifdef HAVE_WCHAR_H
19635 # ifdef __CYGWIN__
19636 # include <stddef.h>
19637 # endif
19638 # include <wchar.h>
19639 #endif
19640 #ifdef HAVE_STDLIB_H
19641 # include <stdlib.h>
19642 #endif
19643 #include <stdio.h>
19644
19645
19646
19647int
19648main ()
19649{
19650static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19651test_array [0] = 0
19652
19653 ;
19654 return 0;
19655}
19656_ACEOF
19657rm -f conftest.$ac_objext
19658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19659 (eval $ac_compile) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
6ebeb4c7 19666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest.$ac_objext'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_lo=$ac_mid; break
19679else
19680 echo "$as_me: failed program was:" >&5
19681sed 's/^/| /' conftest.$ac_ext >&5
19682
19683ac_hi=`expr '(' $ac_mid ')' - 1`
19684 if test $ac_mid -le $ac_hi; then
19685 ac_lo= ac_hi=
19686 break
19687 fi
19688 ac_mid=`expr 2 '*' $ac_mid`
19689fi
19690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19691 done
19692else
19693 echo "$as_me: failed program was:" >&5
19694sed 's/^/| /' conftest.$ac_ext >&5
19695
19696ac_lo= ac_hi=
19697fi
19698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699fi
19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701# Binary search between lo and hi bounds.
19702while test "x$ac_lo" != "x$ac_hi"; do
19703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19704 cat >conftest.$ac_ext <<_ACEOF
19705/* confdefs.h. */
19706_ACEOF
19707cat confdefs.h >>conftest.$ac_ext
19708cat >>conftest.$ac_ext <<_ACEOF
19709/* end confdefs.h. */
19710
83d8eb47
MW
19711 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19712 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19713 # error "fake wchar_t"
19714 #endif
19715 #ifdef HAVE_WCHAR_H
19716 # ifdef __CYGWIN__
19717 # include <stddef.h>
19718 # endif
19719 # include <wchar.h>
19720 #endif
19721 #ifdef HAVE_STDLIB_H
19722 # include <stdlib.h>
19723 #endif
19724 #include <stdio.h>
a848cd7e 19725
a848cd7e 19726
a848cd7e 19727
238ecede
MW
19728int
19729main ()
19730{
19731static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19732test_array [0] = 0
a848cd7e 19733
238ecede
MW
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
6ebeb4c7 19747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
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); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_hi=$ac_mid
19760else
19761 echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764ac_lo=`expr '(' $ac_mid ')' + 1`
19765fi
19766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19767done
19768case $ac_lo in
19769?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19770'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19771See \`config.log' for more details." >&5
19772echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19773See \`config.log' for more details." >&2;}
19774 { (exit 1); exit 1; }; } ;;
19775esac
19776else
19777 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19778 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19779echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19780 { (exit 1); exit 1; }; }
a848cd7e
SC
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788
83d8eb47
MW
19789 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19790 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19791 # error "fake wchar_t"
19792 #endif
19793 #ifdef HAVE_WCHAR_H
19794 # ifdef __CYGWIN__
19795 # include <stddef.h>
19796 # endif
19797 # include <wchar.h>
19798 #endif
19799 #ifdef HAVE_STDLIB_H
19800 # include <stdlib.h>
19801 #endif
19802 #include <stdio.h>
19803
19804
19805
19806long longval () { return (long) (sizeof (wchar_t)); }
19807unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19808#include <stdio.h>
19809#include <stdlib.h>
19810int
19811main ()
19812{
a848cd7e 19813
238ecede
MW
19814 FILE *f = fopen ("conftest.val", "w");
19815 if (! f)
19816 exit (1);
19817 if (((long) (sizeof (wchar_t))) < 0)
19818 {
19819 long i = longval ();
19820 if (i != ((long) (sizeof (wchar_t))))
19821 exit (1);
19822 fprintf (f, "%ld\n", i);
19823 }
19824 else
19825 {
19826 unsigned long i = ulongval ();
19827 if (i != ((long) (sizeof (wchar_t))))
19828 exit (1);
19829 fprintf (f, "%lu\n", i);
19830 }
19831 exit (ferror (f) || fclose (f) != 0);
19832
19833 ;
19834 return 0;
19835}
a848cd7e
SC
19836_ACEOF
19837rm -f conftest$ac_exeext
19838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19839 (eval $ac_link) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
238ecede 19848 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19849else
19850 echo "$as_me: program exited with status $ac_status" >&5
19851echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854( exit $ac_status )
238ecede
MW
19855{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19856See \`config.log' for more details." >&5
19857echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19858See \`config.log' for more details." >&2;}
19859 { (exit 1); exit 1; }; }
a848cd7e 19860fi
ac1cb8d3 19861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19862fi
a848cd7e 19863fi
238ecede
MW
19864rm -f conftest.val
19865else
19866 ac_cv_sizeof_wchar_t=0
19867fi
19868fi
19869echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19870echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19871cat >>confdefs.h <<_ACEOF
238ecede 19872#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19873_ACEOF
19874
19875
47a7e797
MW
19876if test "$ac_cv_sizeof_wchar_t" != "0"; then
19877 wxUSE_WCHAR_T=yes
19878else
19879 wxUSE_WCHAR_T=no
19880fi
238ecede 19881
ba3d13e1
VZ
19882echo "$as_me:$LINENO: checking for va_copy" >&5
19883echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19884if test "${wx_cv_func_va_copy+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887
19888 cat >conftest.$ac_ext <<_ACEOF
19889
19890 #include <stdarg.h>
19891 void foo(char *f, ...)
19892 {
19893 va_list ap1, ap2;
19894 va_start(ap1, f);
19895 va_copy(ap2, ap1);
19896 va_end(ap2);
19897 va_end(ap1);
19898 }
5886b072
VZ
19899 int main()
19900 {
b902e639
VZ
19901 foo("hi", 17);
19902 return 0;
5886b072 19903 }
ba3d13e1
VZ
19904_ACEOF
19905rm -f conftest.$ac_objext conftest$ac_exeext
19906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
6ebeb4c7 19914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest$ac_exeext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 wx_cv_func_va_copy=yes
19927else
19928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931wx_cv_func_va_copy=no
19932
19933fi
19934rm -f conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936
19937
19938fi
19939echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19940echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19941
19942if test $wx_cv_func_va_copy = "yes"; then
19943 cat >>confdefs.h <<\_ACEOF
19944#define HAVE_VA_COPY 1
19945_ACEOF
19946
19947else
19948 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19949echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19950if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952else
19953
19954 if test "$cross_compiling" = yes; then
19955 wx_cv_type_va_list_lvalue=yes
19956
19957else
19958 cat >conftest.$ac_ext <<_ACEOF
19959
19960 #include <stdarg.h>
19961 int foo(char *f, ...)
19962 {
19963 va_list ap1, ap2;
19964 va_start(ap1, f);
19965 ap2 = ap1;
19966 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19967 return 1;
19968 va_end(ap2);
19969 va_end(ap1);
19970 return 0;
19971 }
19972 int main()
19973 {
19974 return foo("hi", 17);
19975 }
19976_ACEOF
19977rm -f conftest$ac_exeext
19978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19979 (eval $ac_link) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 wx_cv_type_va_list_lvalue=yes
19989else
19990 echo "$as_me: program exited with status $ac_status" >&5
19991echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994( exit $ac_status )
19995wx_cv_type_va_list_lvalue=no
19996fi
19997rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19998fi
19999
20000
20001fi
20002echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20003echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20004
20005 if test $wx_cv_type_va_list_lvalue != "yes"; then
20006 cat >>confdefs.h <<\_ACEOF
20007#define VA_LIST_IS_ARRAY 1
20008_ACEOF
20009
20010 fi
20011fi
20012
a848cd7e
SC
20013# Check whether --enable-largefile or --disable-largefile was given.
20014if test "${enable_largefile+set}" = set; then
20015 enableval="$enable_largefile"
20016
20017fi;
20018if test "$enable_largefile" != no; then
20019 wx_largefile=no
20020
20021 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20022echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20023if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025else
20026
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033#define _FILE_OFFSET_BITS 64
20034 #include <sys/types.h>
20035int
20036main ()
20037{
20038typedef struct {
20039 unsigned int field: sizeof(off_t) == 8;
20040} wxlf;
20041
20042 ;
20043 return 0;
20044}
20045_ACEOF
20046rm -f conftest.$ac_objext
20047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20048 (eval $ac_compile) 2>conftest.er1
a848cd7e 20049 ac_status=$?
ac1cb8d3
VS
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
a848cd7e
SC
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
6ebeb4c7 20055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; } &&
20061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_sys_file_offset_bits=64
20068else
20069 echo "$as_me: failed program was:" >&5
20070sed 's/^/| /' conftest.$ac_ext >&5
20071
20072ac_cv_sys_file_offset_bits=no
20073fi
ac1cb8d3 20074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20075
20076
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20079echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20080
20081 if test "$ac_cv_sys_file_offset_bits" != no; then
20082 wx_largefile=yes
20083 cat >>confdefs.h <<_ACEOF
20084#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20085_ACEOF
20086
20087 fi
20088
20089 if test "x$wx_largefile" != "xyes"; then
20090
20091 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20092echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20093if test "${ac_cv_sys_large_files+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096
20097 cat >conftest.$ac_ext <<_ACEOF
20098/* confdefs.h. */
20099_ACEOF
20100cat confdefs.h >>conftest.$ac_ext
20101cat >>conftest.$ac_ext <<_ACEOF
20102/* end confdefs.h. */
20103#define _LARGE_FILES 1
20104 #include <sys/types.h>
20105int
20106main ()
20107{
20108typedef struct {
20109 unsigned int field: sizeof(off_t) == 8;
20110} wxlf;
20111
20112 ;
20113 return 0;
20114}
20115_ACEOF
20116rm -f conftest.$ac_objext
20117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20118 (eval $ac_compile) 2>conftest.er1
a848cd7e 20119 ac_status=$?
ac1cb8d3
VS
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
a848cd7e
SC
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
6ebeb4c7 20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; } &&
20131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20137 ac_cv_sys_large_files=1
20138else
20139 echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142ac_cv_sys_large_files=no
20143fi
ac1cb8d3 20144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20145
20146
20147fi
20148echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20149echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20150
20151 if test "$ac_cv_sys_large_files" != no; then
20152 wx_largefile=yes
20153 cat >>confdefs.h <<_ACEOF
20154#define _LARGE_FILES $ac_cv_sys_large_files
20155_ACEOF
20156
20157 fi
20158
20159 fi
20160
20161 echo "$as_me:$LINENO: checking if large file support is available" >&5
20162echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20163 if test "x$wx_largefile" = "xyes"; then
20164 cat >>confdefs.h <<\_ACEOF
20165#define HAVE_LARGEFILE_SUPPORT 1
20166_ACEOF
20167
20168 fi
20169 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20170echo "${ECHO_T}$wx_largefile" >&6
20171fi
20172
5b674b9d
DE
20173
20174if test "x$wx_largefile" = "xyes"; then
20175 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20176 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20177
20178 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20179 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20180echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20181if test "${wx_cv_STDC_EXT_required+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183else
20184
20185
20186
20187 ac_ext=cc
20188ac_cpp='$CXXCPP $CPPFLAGS'
20189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20192
20193 cat >conftest.$ac_ext <<_ACEOF
20194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
20199
20200int
20201main ()
20202{
20203
20204 #ifndef __STDC_EXT__
20205 choke me
20206 #endif
20207
20208 ;
20209 return 0;
20210}
20211_ACEOF
20212rm -f conftest.$ac_objext
20213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 wx_cv_STDC_EXT_required=no
20234else
20235 echo "$as_me: failed program was:" >&5
20236sed 's/^/| /' conftest.$ac_ext >&5
20237
20238wx_cv_STDC_EXT_required=yes
20239
20240fi
20241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20242 ac_ext=c
20243ac_cpp='$CPP $CPPFLAGS'
20244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246ac_compiler_gnu=$ac_cv_c_compiler_gnu
20247
20248
20249
20250fi
20251echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20252echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20253 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20254 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20255 fi
20256 fi
5b674b9d
DE
20257 else
20258 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20259 fi
20260 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20261echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20262if test "${ac_cv_sys_largefile_source+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264else
20265 while :; do
20266 ac_cv_sys_largefile_source=no
20267 cat >conftest.$ac_ext <<_ACEOF
20268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
20273#include <stdio.h>
20274int
20275main ()
20276{
20277return !fseeko;
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
6ebeb4c7 20291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; } &&
20297 { ac_try='test -s conftest.$ac_objext'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303 break
20304else
20305 echo "$as_me: failed program was:" >&5
20306sed 's/^/| /' conftest.$ac_ext >&5
20307
20308fi
20309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310 cat >conftest.$ac_ext <<_ACEOF
20311/* confdefs.h. */
20312_ACEOF
20313cat confdefs.h >>conftest.$ac_ext
20314cat >>conftest.$ac_ext <<_ACEOF
20315/* end confdefs.h. */
20316#define _LARGEFILE_SOURCE 1
20317#include <stdio.h>
20318int
20319main ()
20320{
20321return !fseeko;
20322 ;
20323 return 0;
20324}
20325_ACEOF
20326rm -f conftest.$ac_objext
20327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
6ebeb4c7 20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_sys_largefile_source=1; break
20348else
20349 echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352fi
20353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354 break
20355done
20356fi
20357echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20358echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20359if test "$ac_cv_sys_largefile_source" != no; then
20360
20361cat >>confdefs.h <<_ACEOF
20362#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20363_ACEOF
20364
20365fi
20366rm -f conftest*
20367
20368# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20369# in glibc 2.1.3, but that breaks too many other things.
20370# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20371echo "$as_me:$LINENO: checking for fseeko" >&5
20372echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20373if test "${ac_cv_func_fseeko+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20375else
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382#include <stdio.h>
20383int
20384main ()
20385{
20386return fseeko && fseeko (stdin, 0, 0);
20387 ;
20388 return 0;
20389}
20390_ACEOF
20391rm -f conftest.$ac_objext conftest$ac_exeext
20392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
6ebeb4c7 20400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_func_fseeko=yes
20413else
20414 echo "$as_me: failed program was:" >&5
20415sed 's/^/| /' conftest.$ac_ext >&5
20416
20417ac_cv_func_fseeko=no
20418fi
20419rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20421fi
20422echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20423echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20424if test $ac_cv_func_fseeko = yes; then
20425
20426cat >>confdefs.h <<\_ACEOF
20427#define HAVE_FSEEKO 1
20428_ACEOF
20429
20430fi
20431
5b674b9d
DE
20432 if test "$ac_cv_sys_largefile_source" != no; then
20433 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20434 fi
20435 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20436fi
20437
20438echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20439echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20440if test "${ac_cv_c_bigendian+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442else
20443 ac_cv_c_bigendian=unknown
20444# See if sys/param.h defines the BYTE_ORDER macro.
20445cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
20451#include <sys/types.h>
20452#include <sys/param.h>
20453int
20454main ()
20455{
20456
20457#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20458 bogus endian macros
20459#endif
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext
20465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20466 (eval $ac_compile) 2>conftest.er1
a848cd7e 20467 ac_status=$?
ac1cb8d3
VS
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
a848cd7e
SC
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
6ebeb4c7 20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 # It does; now see whether it defined to BIG_ENDIAN or not.
20486cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
20492#include <sys/types.h>
20493#include <sys/param.h>
20494int
20495main ()
20496{
20497
20498#if BYTE_ORDER != BIG_ENDIAN
20499 not big endian
20500#endif
20501 ;
20502 return 0;
20503}
20504_ACEOF
20505rm -f conftest.$ac_objext
20506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20507 (eval $ac_compile) 2>conftest.er1
a848cd7e 20508 ac_status=$?
ac1cb8d3
VS
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
a848cd7e
SC
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } &&
6ebeb4c7 20514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; } &&
20520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }; then
20526 ac_cv_c_bigendian=yes
20527else
20528 echo "$as_me: failed program was:" >&5
20529sed 's/^/| /' conftest.$ac_ext >&5
20530
20531ac_cv_c_bigendian=no
20532fi
ac1cb8d3 20533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538fi
ac1cb8d3 20539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20540if test $ac_cv_c_bigendian = unknown; then
20541if test "$cross_compiling" = yes; then
20542 ac_cv_c_bigendian=unknown
20543else
20544 cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h. */
20550main () {
20551 /* Are we little or big endian? From Harbison&Steele. */
20552 union
20553 {
20554 long l;
20555 char c[sizeof (long)];
20556 } u;
20557 u.l = 1;
20558 exit (u.c[sizeof (long) - 1] == 1);
20559}
20560_ACEOF
20561rm -f conftest$ac_exeext
20562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_c_bigendian=no
20573else
20574 echo "$as_me: program exited with status $ac_status" >&5
20575echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578( exit $ac_status )
20579ac_cv_c_bigendian=yes
20580fi
ac1cb8d3 20581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20582fi
20583fi
20584fi
20585echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20586echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20587if test $ac_cv_c_bigendian = unknown; then
20588 { 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
20589echo "$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;}
20590fi
20591if test $ac_cv_c_bigendian = yes; then
20592 cat >>confdefs.h <<\_ACEOF
20593#define WORDS_BIGENDIAN 1
20594_ACEOF
20595
20596fi
20597
20598
20599ac_ext=cc
20600ac_cpp='$CXXCPP $CPPFLAGS'
20601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20605echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20606if test -z "$CXXCPP"; then
20607 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20609else
20610 # Double quotes because CXXCPP needs to be expanded
20611 for CXXCPP in "$CXX -E" "/lib/cpp"
20612 do
20613 ac_preproc_ok=false
20614for ac_cxx_preproc_warn_flag in '' yes
20615do
20616 # Use a header file that comes with gcc, so configuring glibc
20617 # with a fresh cross-compiler works.
20618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619 # <limits.h> exists even on freestanding compilers.
20620 # On the NeXT, cc -E runs the code through the compiler's parser,
20621 # not just through cpp. "Syntax error" is here to catch this case.
20622 cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h. */
20628#ifdef __STDC__
20629# include <limits.h>
20630#else
20631# include <assert.h>
20632#endif
ac1cb8d3 20633 Syntax error
a848cd7e
SC
20634_ACEOF
20635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } >/dev/null; then
20643 if test -s conftest.err; then
20644 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20646 else
20647 ac_cpp_err=
20648 fi
20649else
20650 ac_cpp_err=yes
20651fi
20652if test -z "$ac_cpp_err"; then
20653 :
20654else
20655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 # Broken: fails on valid input.
20659continue
20660fi
20661rm -f conftest.err conftest.$ac_ext
20662
20663 # OK, works on sane cases. Now check whether non-existent headers
20664 # can be detected and how.
20665 cat >conftest.$ac_ext <<_ACEOF
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671#include <ac_nonexistent.h>
20672_ACEOF
20673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } >/dev/null; then
20681 if test -s conftest.err; then
20682 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20684 else
20685 ac_cpp_err=
20686 fi
20687else
20688 ac_cpp_err=yes
20689fi
20690if test -z "$ac_cpp_err"; then
20691 # Broken: success on invalid input.
20692continue
20693else
20694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 # Passes both tests.
20698ac_preproc_ok=:
20699break
20700fi
20701rm -f conftest.err conftest.$ac_ext
20702
20703done
20704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20705rm -f conftest.err conftest.$ac_ext
20706if $ac_preproc_ok; then
20707 break
20708fi
20709
20710 done
20711 ac_cv_prog_CXXCPP=$CXXCPP
20712
20713fi
20714 CXXCPP=$ac_cv_prog_CXXCPP
20715else
20716 ac_cv_prog_CXXCPP=$CXXCPP
20717fi
20718echo "$as_me:$LINENO: result: $CXXCPP" >&5
20719echo "${ECHO_T}$CXXCPP" >&6
20720ac_preproc_ok=false
20721for ac_cxx_preproc_warn_flag in '' yes
20722do
20723 # Use a header file that comes with gcc, so configuring glibc
20724 # with a fresh cross-compiler works.
20725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20726 # <limits.h> exists even on freestanding compilers.
20727 # On the NeXT, cc -E runs the code through the compiler's parser,
20728 # not just through cpp. "Syntax error" is here to catch this case.
20729 cat >conftest.$ac_ext <<_ACEOF
20730/* confdefs.h. */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h. */
20735#ifdef __STDC__
20736# include <limits.h>
20737#else
20738# include <assert.h>
20739#endif
ac1cb8d3 20740 Syntax error
a848cd7e
SC
20741_ACEOF
20742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20744 ac_status=$?
20745 grep -v '^ *+' conftest.er1 >conftest.err
20746 rm -f conftest.er1
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } >/dev/null; then
20750 if test -s conftest.err; then
20751 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20753 else
20754 ac_cpp_err=
20755 fi
20756else
20757 ac_cpp_err=yes
20758fi
20759if test -z "$ac_cpp_err"; then
20760 :
20761else
20762 echo "$as_me: failed program was:" >&5
20763sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 # Broken: fails on valid input.
20766continue
20767fi
20768rm -f conftest.err conftest.$ac_ext
20769
20770 # OK, works on sane cases. Now check whether non-existent headers
20771 # can be detected and how.
20772 cat >conftest.$ac_ext <<_ACEOF
20773/* confdefs.h. */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h. */
20778#include <ac_nonexistent.h>
20779_ACEOF
20780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } >/dev/null; then
20788 if test -s conftest.err; then
20789 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20790 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20791 else
20792 ac_cpp_err=
20793 fi
20794else
20795 ac_cpp_err=yes
20796fi
20797if test -z "$ac_cpp_err"; then
20798 # Broken: success on invalid input.
20799continue
20800else
20801 echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 # Passes both tests.
20805ac_preproc_ok=:
20806break
20807fi
20808rm -f conftest.err conftest.$ac_ext
20809
20810done
20811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20812rm -f conftest.err conftest.$ac_ext
20813if $ac_preproc_ok; then
20814 :
20815else
20816 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20817See \`config.log' for more details." >&5
20818echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20819See \`config.log' for more details." >&2;}
20820 { (exit 1); exit 1; }; }
20821fi
20822
20823ac_ext=cc
20824ac_cpp='$CXXCPP $CPPFLAGS'
20825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20828
20829
20830
20831
20832
20833 ac_ext=cc
20834ac_cpp='$CXXCPP $CPPFLAGS'
20835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839
20840
20841for ac_header in iostream
20842do
20843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20844if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo "$as_me:$LINENO: checking for $ac_header" >&5
20846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20847if eval "test \"\${$as_ac_Header+set}\" = set"; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849fi
20850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20852else
20853 # Is the header compilable?
20854echo "$as_me:$LINENO: checking $ac_header usability" >&5
20855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20856cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862$ac_includes_default
20863#include <$ac_header>
20864_ACEOF
20865rm -f conftest.$ac_objext
20866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20867 (eval $ac_compile) 2>conftest.er1
a848cd7e 20868 ac_status=$?
ac1cb8d3
VS
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
a848cd7e
SC
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
6ebeb4c7 20874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_header_compiler=yes
20887else
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891ac_header_compiler=no
20892fi
ac1cb8d3 20893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20895echo "${ECHO_T}$ac_header_compiler" >&6
20896
20897# Is the header present?
20898echo "$as_me:$LINENO: checking $ac_header presence" >&5
20899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20900cat >conftest.$ac_ext <<_ACEOF
20901/* confdefs.h. */
20902_ACEOF
20903cat confdefs.h >>conftest.$ac_ext
20904cat >>conftest.$ac_ext <<_ACEOF
20905/* end confdefs.h. */
20906#include <$ac_header>
20907_ACEOF
20908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20910 ac_status=$?
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } >/dev/null; then
20916 if test -s conftest.err; then
20917 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20918 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20919 else
20920 ac_cpp_err=
20921 fi
20922else
20923 ac_cpp_err=yes
20924fi
20925if test -z "$ac_cpp_err"; then
20926 ac_header_preproc=yes
20927else
20928 echo "$as_me: failed program was:" >&5
20929sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 ac_header_preproc=no
20932fi
20933rm -f conftest.err conftest.$ac_ext
20934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20935echo "${ECHO_T}$ac_header_preproc" >&6
20936
20937# So? What about this header?
ac1cb8d3
VS
20938case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20939 yes:no: )
a848cd7e
SC
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20944 ac_header_preproc=yes
a848cd7e 20945 ;;
ac1cb8d3 20946 no:yes:* )
a848cd7e
SC
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20959 (
20960 cat <<\_ASBOX
ac1cb8d3
VS
20961## ----------------------------------------- ##
20962## Report this to wx-dev@lists.wxwidgets.org ##
20963## ----------------------------------------- ##
a848cd7e
SC
20964_ASBOX
20965 ) |
20966 sed "s/^/$as_me: WARNING: /" >&2
20967 ;;
20968esac
20969echo "$as_me:$LINENO: checking for $ac_header" >&5
20970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20971if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
ac1cb8d3 20974 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20975fi
20976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20978
20979fi
20980if test `eval echo '${'$as_ac_Header'}'` = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20983_ACEOF
20984
20985fi
20986
20987done
20988
20989
20990 if test "$ac_cv_header_iostream" = "yes" ; then
20991 :
20992 else
20993 cat >>confdefs.h <<\_ACEOF
20994#define wxUSE_IOSTREAMH 1
20995_ACEOF
20996
20997 fi
20998
20999 ac_ext=c
21000ac_cpp='$CPP $CPPFLAGS'
21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004
21005
21006
21007
21008 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21009echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21010if test "${wx_cv_cpp_bool+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013
21014
21015
21016 ac_ext=cc
21017ac_cpp='$CXXCPP $CPPFLAGS'
21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
21022
21023 cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
21029
21030
21031int
21032main ()
21033{
21034
21035 bool b = true;
21036
21037 return 0;
21038
21039 ;
21040 return 0;
21041}
21042_ACEOF
21043rm -f conftest.$ac_objext
21044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21045 (eval $ac_compile) 2>conftest.er1
a848cd7e 21046 ac_status=$?
ac1cb8d3
VS
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
a848cd7e
SC
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
6ebeb4c7 21052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064
21065 wx_cv_cpp_bool=yes
21066
21067else
21068 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071
21072 wx_cv_cpp_bool=no
21073
21074
21075fi
ac1cb8d3 21076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21077
21078 ac_ext=c
21079ac_cpp='$CPP $CPPFLAGS'
21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084
21085fi
21086echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21087echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21088
21089 if test "$wx_cv_cpp_bool" = "yes"; then
21090 cat >>confdefs.h <<\_ACEOF
21091#define HAVE_BOOL 1
21092_ACEOF
21093
21094 fi
21095
21096
21097
21098 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21099echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21100if test "${wx_cv_explicit+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102else
21103
21104
21105
21106 ac_ext=cc
21107ac_cpp='$CXXCPP $CPPFLAGS'
21108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111
21112
21113 cat >conftest.$ac_ext <<_ACEOF
21114/* confdefs.h. */
21115_ACEOF
21116cat confdefs.h >>conftest.$ac_ext
21117cat >>conftest.$ac_ext <<_ACEOF
21118/* end confdefs.h. */
21119
21120 class Foo { public: explicit Foo(int) {} };
21121
21122int
21123main ()
21124{
21125
21126 return 0;
21127
21128 ;
21129 return 0;
21130}
21131_ACEOF
21132rm -f conftest.$ac_objext
21133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21134 (eval $ac_compile) 2>conftest.er1
a848cd7e 21135 ac_status=$?
ac1cb8d3
VS
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
a848cd7e
SC
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
6ebeb4c7 21141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153
21154 cat >conftest.$ac_ext <<_ACEOF
21155/* confdefs.h. */
21156_ACEOF
21157cat confdefs.h >>conftest.$ac_ext
21158cat >>conftest.$ac_ext <<_ACEOF
21159/* end confdefs.h. */
21160
21161 class Foo { public: explicit Foo(int) {} };
21162 static void TakeFoo(const Foo& foo) { }
21163
21164int
21165main ()
21166{
21167
21168 TakeFoo(17);
21169 return 0;
21170
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175rm -f conftest.$ac_objext
21176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21177 (eval $ac_compile) 2>conftest.er1
a848cd7e 21178 ac_status=$?
ac1cb8d3
VS
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
a848cd7e
SC
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
6ebeb4c7 21184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 wx_cv_explicit=no
21197else
21198 echo "$as_me: failed program was:" >&5
21199sed 's/^/| /' conftest.$ac_ext >&5
21200
21201wx_cv_explicit=yes
21202
21203fi
ac1cb8d3 21204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21205
21206else
21207 echo "$as_me: failed program was:" >&5
21208sed 's/^/| /' conftest.$ac_ext >&5
21209
21210wx_cv_explicit=no
21211
21212fi
ac1cb8d3 21213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21214
21215 ac_ext=c
21216ac_cpp='$CPP $CPPFLAGS'
21217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21219ac_compiler_gnu=$ac_cv_c_compiler_gnu
21220
21221
21222fi
21223echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21224echo "${ECHO_T}$wx_cv_explicit" >&6
21225
21226 if test "$wx_cv_explicit" = "yes"; then
21227 cat >>confdefs.h <<\_ACEOF
21228#define HAVE_EXPLICIT 1
21229_ACEOF
21230
21231 fi
21232
21233
21234echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21235echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21236if test "${ac_cv_cxx_const_cast+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21238else
21239
21240
21241 ac_ext=cc
21242ac_cpp='$CXXCPP $CPPFLAGS'
21243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21246
21247 cat >conftest.$ac_ext <<_ACEOF
21248/* confdefs.h. */
21249_ACEOF
21250cat confdefs.h >>conftest.$ac_ext
21251cat >>conftest.$ac_ext <<_ACEOF
21252/* end confdefs.h. */
21253
21254int
21255main ()
21256{
21257int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21258 ;
21259 return 0;
21260}
21261_ACEOF
21262rm -f conftest.$ac_objext
21263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21264 (eval $ac_compile) 2>conftest.er1
a848cd7e 21265 ac_status=$?
ac1cb8d3
VS
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
a848cd7e
SC
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
6ebeb4c7 21271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21283 ac_cv_cxx_const_cast=yes
21284else
21285 echo "$as_me: failed program was:" >&5
21286sed 's/^/| /' conftest.$ac_ext >&5
21287
21288ac_cv_cxx_const_cast=no
21289fi
ac1cb8d3 21290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21291 ac_ext=c
21292ac_cpp='$CPP $CPPFLAGS'
21293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295ac_compiler_gnu=$ac_cv_c_compiler_gnu
21296
21297
21298fi
21299echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21300echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21301if test "$ac_cv_cxx_const_cast" = yes; then
21302
21303cat >>confdefs.h <<\_ACEOF
21304#define HAVE_CONST_CAST
21305_ACEOF
21306
21307fi
21308
7714864e
RL
21309echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21310echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21311if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21313else
21314
21315
21316 ac_ext=cc
21317ac_cpp='$CXXCPP $CPPFLAGS'
21318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321
21322 cat >conftest.$ac_ext <<_ACEOF
21323/* confdefs.h. */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h. */
21328#include <typeinfo>
21329class Base { public : Base () {} virtual void f () = 0;};
21330class Derived : public Base { public : Derived () {} virtual void f () {} };
21331class Unrelated { public : Unrelated () {} };
21332int g (Unrelated&) { return 0; }
21333int
21334main ()
21335{
21336
21337Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21338 ;
21339 return 0;
21340}
21341_ACEOF
21342rm -f conftest.$ac_objext
21343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21344 (eval $ac_compile) 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
6ebeb4c7 21351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; } &&
21357 { ac_try='test -s conftest.$ac_objext'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; }; then
21363 ac_cv_cxx_reinterpret_cast=yes
21364else
21365 echo "$as_me: failed program was:" >&5
21366sed 's/^/| /' conftest.$ac_ext >&5
21367
21368ac_cv_cxx_reinterpret_cast=no
21369fi
21370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371 ac_ext=c
21372ac_cpp='$CPP $CPPFLAGS'
21373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376
21377
21378fi
21379echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21380echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21381if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21382
21383cat >>confdefs.h <<\_ACEOF
21384#define HAVE_REINTERPRET_CAST
21385_ACEOF
21386
21387fi
21388
a848cd7e
SC
21389echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21390echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21391if test "${ac_cv_cxx_static_cast+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393else
21394
21395
21396 ac_ext=cc
21397ac_cpp='$CXXCPP $CPPFLAGS'
21398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21401
21402 cat >conftest.$ac_ext <<_ACEOF
21403/* confdefs.h. */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h. */
21408#include <typeinfo>
21409class Base { public : Base () {} virtual void f () = 0; };
21410class Derived : public Base { public : Derived () {} virtual void f () {} };
21411int g (Derived&) { return 0; }
21412int
21413main ()
21414{
21415
21416Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21417 ;
21418 return 0;
21419}
21420_ACEOF
21421rm -f conftest.$ac_objext
21422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21423 (eval $ac_compile) 2>conftest.er1
a848cd7e 21424 ac_status=$?
ac1cb8d3
VS
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
a848cd7e
SC
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
6ebeb4c7 21430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; } &&
21436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_cxx_static_cast=yes
21443else
21444 echo "$as_me: failed program was:" >&5
21445sed 's/^/| /' conftest.$ac_ext >&5
21446
21447ac_cv_cxx_static_cast=no
21448fi
ac1cb8d3 21449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21450 ac_ext=c
21451ac_cpp='$CPP $CPPFLAGS'
21452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454ac_compiler_gnu=$ac_cv_c_compiler_gnu
21455
21456
21457fi
21458echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21459echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21460if test "$ac_cv_cxx_static_cast" = yes; then
21461
21462cat >>confdefs.h <<\_ACEOF
21463#define HAVE_STATIC_CAST
21464_ACEOF
21465
21466fi
21467
21468
3c28b7cb
MW
21469if test "x$SUNCXX" = xyes; then
21470 CXXFLAGS="$CXXFLAGS -features=tmplife"
21471fi
21472
9122d155
VZ
21473if test "x$SUNCC" = xyes; then
21474 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21475fi
21476
f56c22b4 21477if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21478 ac_ext=cc
21479ac_cpp='$CXXCPP $CPPFLAGS'
21480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483
21484
f56c22b4
MW
21485 if test "$wxUSE_UNICODE" = "yes"; then
21486 std_string="std::wstring"
21487 char_type="wchar_t"
21488 else
21489 std_string="std::string"
21490 char_type="char"
21491 fi
21492
21493 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21494echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21495 cat >conftest.$ac_ext <<_ACEOF
21496/* confdefs.h. */
21497_ACEOF
21498cat confdefs.h >>conftest.$ac_ext
21499cat >>conftest.$ac_ext <<_ACEOF
21500/* end confdefs.h. */
21501#include <string>
a848cd7e
SC
21502int
21503main ()
21504{
f56c22b4 21505$std_string foo;
a848cd7e
SC
21506 ;
21507 return 0;
21508}
21509_ACEOF
21510rm -f conftest.$ac_objext
21511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21512 (eval $ac_compile) 2>conftest.er1
a848cd7e 21513 ac_status=$?
ac1cb8d3
VS
21514 grep -v '^ *+' conftest.er1 >conftest.err
21515 rm -f conftest.er1
21516 cat conftest.err >&5
a848cd7e
SC
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } &&
6ebeb4c7 21519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; }; then
21531 echo "$as_me:$LINENO: result: yes" >&5
21532echo "${ECHO_T}yes" >&6
0a08f02a
MB
21533 cat >>confdefs.h <<\_ACEOF
21534#define HAVE_STD_WSTRING 1
21535_ACEOF
21536
a848cd7e
SC
21537else
21538 echo "$as_me: failed program was:" >&5
21539sed 's/^/| /' conftest.$ac_ext >&5
21540
21541echo "$as_me:$LINENO: result: no" >&5
21542echo "${ECHO_T}no" >&6
f56c22b4
MW
21543 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21544echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
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
21552 #ifdef HAVE_WCHAR_H
21553 # ifdef __CYGWIN__
21554 # include <stddef.h>
21555 # endif
21556 # include <wchar.h>
21557 #endif
21558 #ifdef HAVE_STDLIB_H
21559 # include <stdlib.h>
21560 #endif
21561 #include <stdio.h>
21562 #include <string>
21563
21564int
21565main ()
21566{
f56c22b4
MW
21567std::basic_string<$char_type> foo;
21568 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21569 ;
21570 return 0;
21571}
21572_ACEOF
21573rm -f conftest.$ac_objext
21574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575 (eval $ac_compile) 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
6ebeb4c7 21582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 echo "$as_me:$LINENO: result: yes" >&5
21595echo "${ECHO_T}yes" >&6
21596else
21597 echo "$as_me: failed program was:" >&5
21598sed 's/^/| /' conftest.$ac_ext >&5
21599
21600echo "$as_me:$LINENO: result: no" >&5
21601echo "${ECHO_T}no" >&6
f56c22b4 21602 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21603 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21604echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21605 { (exit 1); exit 1; }; }
21606 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21607 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21608echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21609 { (exit 1); exit 1; }; }
f56c22b4
MW
21610 else
21611 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21612echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21613 wxUSE_STD_STRING=no
21614 fi
21615
0a08f02a 21616
a848cd7e 21617fi
ac1cb8d3 21618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21619
0a08f02a
MB
21620fi
21621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622
21623 ac_ext=c
21624ac_cpp='$CPP $CPPFLAGS'
21625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21627ac_compiler_gnu=$ac_cv_c_compiler_gnu
21628
21629fi
21630
21631if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21632 ac_ext=cc
21633ac_cpp='$CXXCPP $CPPFLAGS'
21634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21637
21638
21639 echo "$as_me:$LINENO: checking for std::istream" >&5
21640echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21641if test "${ac_cv_type_std__istream+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643else
21644 cat >conftest.$ac_ext <<_ACEOF
21645/* confdefs.h. */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h. */
21650#include <iostream>
21651
21652int
21653main ()
21654{
21655if ((std::istream *) 0)
21656 return 0;
21657if (sizeof (std::istream))
21658 return 0;
21659 ;
21660 return 0;
21661}
21662_ACEOF
21663rm -f conftest.$ac_objext
21664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
6ebeb4c7 21672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_type_std__istream=yes
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689ac_cv_type_std__istream=no
21690fi
21691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692fi
21693echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21694echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21695if test $ac_cv_type_std__istream = yes; then
21696
21697cat >>confdefs.h <<_ACEOF
21698#define HAVE_STD__ISTREAM 1
21699_ACEOF
21700
21701
21702else
21703 wxUSE_STD_IOSTREAM=no
21704fi
21705echo "$as_me:$LINENO: checking for std::ostream" >&5
21706echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21707if test "${ac_cv_type_std__ostream+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709else
21710 cat >conftest.$ac_ext <<_ACEOF
21711/* confdefs.h. */
21712_ACEOF
21713cat confdefs.h >>conftest.$ac_ext
21714cat >>conftest.$ac_ext <<_ACEOF
21715/* end confdefs.h. */
21716#include <iostream>
21717
21718int
21719main ()
21720{
21721if ((std::ostream *) 0)
21722 return 0;
21723if (sizeof (std::ostream))
21724 return 0;
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729rm -f conftest.$ac_objext
21730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
6ebeb4c7 21738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_type_std__ostream=yes
21751else
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755ac_cv_type_std__ostream=no
21756fi
21757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758fi
21759echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21760echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21761if test $ac_cv_type_std__ostream = yes; then
21762
21763cat >>confdefs.h <<_ACEOF
21764#define HAVE_STD__OSTREAM 1
21765_ACEOF
21766
21767
21768else
21769 wxUSE_STD_IOSTREAM=no
21770fi
21771
21772
21773 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21774 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21775 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21776echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21777 { (exit 1); exit 1; }; }
21778 else
21779 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21780echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21781 fi
f56c22b4
MW
21782 fi
21783
21784 ac_ext=c
21785ac_cpp='$CPP $CPPFLAGS'
21786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21788ac_compiler_gnu=$ac_cv_c_compiler_gnu
21789
21790fi
21791
21792if test "$wxUSE_STL" = "yes"; then
21793 ac_ext=cc
21794ac_cpp='$CXXCPP $CPPFLAGS'
21795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21798
21799
21800 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21801echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21802 cat >conftest.$ac_ext <<_ACEOF
21803/* confdefs.h. */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h. */
21808#include <string>
0a08f02a
MB
21809 #include <functional>
21810 #include <algorithm>
21811 #include <vector>
21812 #include <list>
a848cd7e
SC
21813int
21814main ()
21815{
0a08f02a
MB
21816std::vector<int> moo;
21817 std::list<int> foo;
21818 std::vector<int>::iterator it =
21819 std::find_if(moo.begin(), moo.end(),
21820 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21821 ;
21822 return 0;
21823}
21824_ACEOF
21825rm -f conftest.$ac_objext
21826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21827 (eval $ac_compile) 2>conftest.er1
a848cd7e 21828 ac_status=$?
ac1cb8d3
VS
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
a848cd7e
SC
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } &&
6ebeb4c7 21834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21837 ac_status=$?
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; } &&
21840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842 (eval $ac_try) 2>&5
21843 ac_status=$?
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); }; }; then
21846 echo "$as_me:$LINENO: result: yes" >&5
21847echo "${ECHO_T}yes" >&6
a848cd7e
SC
21848else
21849 echo "$as_me: failed program was:" >&5
21850sed 's/^/| /' conftest.$ac_ext >&5
21851
21852echo "$as_me:$LINENO: result: no" >&5
21853echo "${ECHO_T}no" >&6
0a08f02a
MB
21854 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21855echo "$as_me: error: Basic STL functionality missing" >&2;}
21856 { (exit 1); exit 1; }; }
a848cd7e 21857fi
ac1cb8d3 21858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21859
21860 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21861echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21862 cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h. */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
21868#include <string>
21869int
21870main ()
21871{
21872std::string foo, bar;
21873 foo.compare(bar);
21874 foo.compare(1, 1, bar);
21875 foo.compare(1, 1, bar, 1, 1);
21876 foo.compare("");
21877 foo.compare(1, 1, "");
21878 foo.compare(1, 1, "", 2);
21879 ;
21880 return 0;
21881}
21882_ACEOF
21883rm -f conftest.$ac_objext
21884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21885 (eval $ac_compile) 2>conftest.er1
a848cd7e 21886 ac_status=$?
ac1cb8d3
VS
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
a848cd7e
SC
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
6ebeb4c7 21892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } &&
21898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 echo "$as_me:$LINENO: result: yes" >&5
21905echo "${ECHO_T}yes" >&6
21906 cat >>confdefs.h <<\_ACEOF
21907#define HAVE_STD_STRING_COMPARE 1
21908_ACEOF
21909
21910else
21911 echo "$as_me: failed program was:" >&5
21912sed 's/^/| /' conftest.$ac_ext >&5
21913
21914echo "$as_me:$LINENO: result: no" >&5
21915echo "${ECHO_T}no" >&6
21916fi
ac1cb8d3 21917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21918
21919 if test "${ac_cv_header_hash_map+set}" = set; then
21920 echo "$as_me:$LINENO: checking for hash_map" >&5
21921echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21922if test "${ac_cv_header_hash_map+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924fi
21925echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21926echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21927else
21928 # Is the header compilable?
21929echo "$as_me:$LINENO: checking hash_map usability" >&5
21930echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21931cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
21937$ac_includes_default
21938#include <hash_map>
21939_ACEOF
21940rm -f conftest.$ac_objext
21941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21942 (eval $ac_compile) 2>conftest.er1
bdcade0a 21943 ac_status=$?
ac1cb8d3
VS
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
bdcade0a
MB
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
6ebeb4c7 21949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; } &&
21955 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 ac_header_compiler=yes
21962else
21963 echo "$as_me: failed program was:" >&5
21964sed 's/^/| /' conftest.$ac_ext >&5
21965
21966ac_header_compiler=no
21967fi
ac1cb8d3 21968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21970echo "${ECHO_T}$ac_header_compiler" >&6
21971
21972# Is the header present?
21973echo "$as_me:$LINENO: checking hash_map presence" >&5
21974echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21975cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h. */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h. */
21981#include <hash_map>
21982_ACEOF
21983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null; then
21991 if test -s conftest.err; then
21992 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21994 else
21995 ac_cpp_err=
21996 fi
21997else
21998 ac_cpp_err=yes
21999fi
22000if test -z "$ac_cpp_err"; then
22001 ac_header_preproc=yes
22002else
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 ac_header_preproc=no
22007fi
22008rm -f conftest.err conftest.$ac_ext
22009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22010echo "${ECHO_T}$ac_header_preproc" >&6
22011
22012# So? What about this header?
ac1cb8d3
VS
22013case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22014 yes:no: )
bdcade0a
MB
22015 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22016echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22017 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22018echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22019 ac_header_preproc=yes
bdcade0a 22020 ;;
ac1cb8d3 22021 no:yes:* )
bdcade0a
MB
22022 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22023echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22024 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22025echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22027echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22029echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22030 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22031echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22032 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22033echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22034 (
22035 cat <<\_ASBOX
ac1cb8d3
VS
22036## ----------------------------------------- ##
22037## Report this to wx-dev@lists.wxwidgets.org ##
22038## ----------------------------------------- ##
bdcade0a
MB
22039_ASBOX
22040 ) |
22041 sed "s/^/$as_me: WARNING: /" >&2
22042 ;;
22043esac
22044echo "$as_me:$LINENO: checking for hash_map" >&5
22045echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22046if test "${ac_cv_header_hash_map+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048else
22049 ac_cv_header_hash_map=$ac_header_preproc
22050fi
22051echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22052echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22053
22054fi
22055if test $ac_cv_header_hash_map = yes; then
22056 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22057echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22058 cat >conftest.$ac_ext <<_ACEOF
22059/* confdefs.h. */
22060_ACEOF
22061cat confdefs.h >>conftest.$ac_ext
22062cat >>conftest.$ac_ext <<_ACEOF
22063/* end confdefs.h. */
22064#include <hash_map>
22065 #include <hash_set>
22066int
22067main ()
22068{
22069std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22070 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22071 ;
22072 return 0;
22073}
22074_ACEOF
22075rm -f conftest.$ac_objext
22076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22077 (eval $ac_compile) 2>conftest.er1
bdcade0a 22078 ac_status=$?
ac1cb8d3
VS
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
bdcade0a
MB
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
6ebeb4c7 22084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 echo "$as_me:$LINENO: result: yes" >&5
22097echo "${ECHO_T}yes" >&6
22098 cat >>confdefs.h <<\_ACEOF
22099#define HAVE_HASH_MAP 1
22100_ACEOF
22101
22102 cat >>confdefs.h <<\_ACEOF
22103#define HAVE_STD_HASH_MAP 1
22104_ACEOF
22105
22106else
22107 echo "$as_me: failed program was:" >&5
22108sed 's/^/| /' conftest.$ac_ext >&5
22109
22110echo "$as_me:$LINENO: result: no" >&5
22111echo "${ECHO_T}no" >&6
22112fi
ac1cb8d3 22113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22114
22115fi
22116
22117
22118
22119 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22120 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22121echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22122if test "${ac_cv_header_ext_hash_map+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124fi
22125echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22126echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22127else
22128 # Is the header compilable?
22129echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22130echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22131cat >conftest.$ac_ext <<_ACEOF
22132/* confdefs.h. */
22133_ACEOF
22134cat confdefs.h >>conftest.$ac_ext
22135cat >>conftest.$ac_ext <<_ACEOF
22136/* end confdefs.h. */
22137$ac_includes_default
22138#include <ext/hash_map>
22139_ACEOF
22140rm -f conftest.$ac_objext
22141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22142 (eval $ac_compile) 2>conftest.er1
bdcade0a 22143 ac_status=$?
ac1cb8d3
VS
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
bdcade0a
MB
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } &&
6ebeb4c7 22149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; } &&
22155 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_header_compiler=yes
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
22166ac_header_compiler=no
22167fi
ac1cb8d3 22168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22170echo "${ECHO_T}$ac_header_compiler" >&6
22171
22172# Is the header present?
22173echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22174echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22175cat >conftest.$ac_ext <<_ACEOF
22176/* confdefs.h. */
22177_ACEOF
22178cat confdefs.h >>conftest.$ac_ext
22179cat >>conftest.$ac_ext <<_ACEOF
22180/* end confdefs.h. */
22181#include <ext/hash_map>
22182_ACEOF
22183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22185 ac_status=$?
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } >/dev/null; then
22191 if test -s conftest.err; then
22192 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22193 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22194 else
22195 ac_cpp_err=
22196 fi
22197else
22198 ac_cpp_err=yes
22199fi
22200if test -z "$ac_cpp_err"; then
22201 ac_header_preproc=yes
22202else
22203 echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206 ac_header_preproc=no
22207fi
22208rm -f conftest.err conftest.$ac_ext
22209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22210echo "${ECHO_T}$ac_header_preproc" >&6
22211
22212# So? What about this header?
ac1cb8d3
VS
22213case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22214 yes:no: )
bdcade0a
MB
22215 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22216echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22217 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22218echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22219 ac_header_preproc=yes
bdcade0a 22220 ;;
ac1cb8d3 22221 no:yes:* )
bdcade0a
MB
22222 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22223echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22224 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22225echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22227echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22229echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22230 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22231echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22232 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22233echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22234 (
22235 cat <<\_ASBOX
ac1cb8d3
VS
22236## ----------------------------------------- ##
22237## Report this to wx-dev@lists.wxwidgets.org ##
22238## ----------------------------------------- ##
bdcade0a
MB
22239_ASBOX
22240 ) |
22241 sed "s/^/$as_me: WARNING: /" >&2
22242 ;;
22243esac
22244echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22245echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22246if test "${ac_cv_header_ext_hash_map+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248else
22249 ac_cv_header_ext_hash_map=$ac_header_preproc
22250fi
22251echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22252echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22253
22254fi
22255if test $ac_cv_header_ext_hash_map = yes; then
22256 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22257echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22258 cat >conftest.$ac_ext <<_ACEOF
22259/* confdefs.h. */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h. */
22264#include <ext/hash_map>
22265 #include <ext/hash_set>
22266int
22267main ()
22268{
22269__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22270 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22271 ;
22272 return 0;
22273}
22274_ACEOF
22275rm -f conftest.$ac_objext
22276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22277 (eval $ac_compile) 2>conftest.er1
bdcade0a 22278 ac_status=$?
ac1cb8d3
VS
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
bdcade0a
MB
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
6ebeb4c7 22284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 echo "$as_me:$LINENO: result: yes" >&5
22297echo "${ECHO_T}yes" >&6
22298 cat >>confdefs.h <<\_ACEOF
22299#define HAVE_EXT_HASH_MAP 1
22300_ACEOF
22301
22302 cat >>confdefs.h <<\_ACEOF
22303#define HAVE_GNU_CXX_HASH_MAP 1
22304_ACEOF
22305
22306else
22307 echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310echo "$as_me:$LINENO: result: no" >&5
22311echo "${ECHO_T}no" >&6
22312fi
ac1cb8d3 22313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22314
22315fi
22316
22317
a848cd7e
SC
22318
22319 ac_ext=c
22320ac_cpp='$CPP $CPPFLAGS'
22321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22323ac_compiler_gnu=$ac_cv_c_compiler_gnu
22324
22325fi
22326
22327
22328SEARCH_INCLUDE="\
22329 /usr/local/include \
22330 \
22331 /usr/Motif-2.1/include \
22332 /usr/Motif-1.2/include \
22333 /usr/include/Motif1.2 \
22334 /opt/xpm/include/X11 \
22335 /opt/GBxpm/include/ \
22336 /opt/GBxpm/X11/include/ \
22337 \
22338 /usr/dt/include \
22339 /usr/openwin/include \
22340 \
22341 /usr/include/Xm \
22342 \
22343 /usr/X11R6/include \
22344 /usr/X11R6.4/include \
22345 /usr/X11R5/include \
22346 /usr/X11R4/include \
22347 \
22348 /usr/include/X11R6 \
22349 /usr/include/X11R5 \
22350 /usr/include/X11R4 \
22351 \
22352 /usr/local/X11R6/include \
22353 /usr/local/X11R5/include \
22354 /usr/local/X11R4/include \
22355 \
22356 /usr/local/include/X11R6 \
22357 /usr/local/include/X11R5 \
22358 /usr/local/include/X11R4 \
22359 \
22360 /usr/X11/include \
22361 /usr/include/X11 \
22362 /usr/local/X11/include \
22363 /usr/local/include/X11 \
22364 \
22365 /usr/X386/include \
22366 /usr/x386/include \
22367 /usr/XFree86/include/X11 \
22368 \
e051b34e
MW
22369 /usr/pkg/include \
22370 \
a848cd7e
SC
22371 X:/XFree86/include \
22372 X:/XFree86/include/X11 \
22373 \
22374 /usr/include/gtk \
22375 /usr/local/include/gtk \
22376 /usr/include/glib \
22377 /usr/local/include/glib \
22378 \
22379 /usr/include/qt \
22380 /usr/local/include/qt \
22381 \
22382 /usr/local/arm/3.3.2/include \
22383 \
22384 /usr/include/windows \
22385 /usr/include/wine \
22386 /usr/local/include/wine \
22387 \
22388 /usr/unsupported/include \
22389 /usr/athena/include \
22390 /usr/local/x11r5/include \
22391 /usr/lpp/Xamples/include \
22392 \
22393 /usr/openwin/share/include"
22394
07158944 22395SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22396
3eca31dc
MW
22397if test "$build" != "$host" -a "$GCC" = yes; then
22398 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22399 cross_root=`dirname $cross_root`
22400 cross_root=`dirname $cross_root`
22401
22402 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22403 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22404
22405 if test -z "$PKG_CONFIG_PATH"; then
22406 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22407 export PKG_CONFIG_PATH
22408 fi
22409
22410 if test -z "$x_includes" -o "$x_includes" = NONE; then
22411
22412ac_find_includes=
22413for ac_dir in $SEARCH_INCLUDE /usr/include;
22414 do
22415 if test -f "$ac_dir/X11/Intrinsic.h"; then
22416 ac_find_includes=$ac_dir
22417 break
22418 fi
22419 done
22420
22421 x_includes=$ac_find_includes
22422 fi
22423 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22424
22425ac_find_libraries=
22426for ac_dir in $SEARCH_LIB /usr/lib;
22427 do
22428 for ac_extension in a so sl dylib dll.a; do
22429 if test -f "$ac_dir/libXt.$ac_extension"; then
22430 ac_find_libraries=$ac_dir
22431 break 2
22432 fi
22433 done
22434 done
22435
22436 x_libraries=$ac_find_libraries
22437 fi
22438 fi
22439fi
22440
a848cd7e
SC
22441
22442cat >confcache <<\_ACEOF
22443# This file is a shell script that caches the results of configure
22444# tests run on this system so they can be shared between configure
22445# scripts and configure runs, see configure's option --config-cache.
22446# It is not useful on other systems. If it contains results you don't
22447# want to keep, you may remove or edit it.
22448#
22449# config.status only pays attention to the cache file if you give it
22450# the --recheck option to rerun configure.
22451#
22452# `ac_cv_env_foo' variables (set or unset) will be overridden when
22453# loading this file, other *unset* `ac_cv_foo' will be assigned the
22454# following values.
22455
22456_ACEOF
22457
22458# The following way of writing the cache mishandles newlines in values,
22459# but we know of no workaround that is simple, portable, and efficient.
22460# So, don't put newlines in cache variables' values.
22461# Ultrix sh set writes to stderr and can't be redirected directly,
22462# and sets the high bit in the cache file unless we assign to the vars.
22463{
22464 (set) 2>&1 |
22465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22466 *ac_space=\ *)
22467 # `set' does not quote correctly, so add quotes (double-quote
22468 # substitution turns \\\\ into \\, and sed turns \\ into \).
22469 sed -n \
ac1cb8d3
VS
22470 "s/'/'\\\\''/g;
22471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22472 ;;
22473 *)
22474 # `set' quotes correctly as required by POSIX, so do not add quotes.
22475 sed -n \
ac1cb8d3 22476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22477 ;;
22478 esac;
22479} |
22480 sed '
22481 t clear
22482 : clear
22483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22484 t end
22485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22486 : end' >>confcache
22487if diff $cache_file confcache >/dev/null 2>&1; then :; else
22488 if test -w $cache_file; then
22489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22490 cat confcache >$cache_file
22491 else
22492 echo "not updating unwritable cache $cache_file"
22493 fi
22494fi
22495rm -f confcache
22496
22497if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22498 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22499echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22500if test "${wx_cv_lib_glibc21+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502else
22503
22504 cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510#include <features.h>
22511int
22512main ()
22513{
22514
22515 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22516 not glibc 2.1
a848cd7e
SC
22517 #endif
22518
22519 ;
22520 return 0;
22521}
22522_ACEOF
22523rm -f conftest.$ac_objext
22524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22525 (eval $ac_compile) 2>conftest.er1
a848cd7e 22526 ac_status=$?
ac1cb8d3
VS
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
a848cd7e
SC
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
6ebeb4c7 22532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544
22545 wx_cv_lib_glibc21=yes
22546
22547else
22548 echo "$as_me: failed program was:" >&5
22549sed 's/^/| /' conftest.$ac_ext >&5
22550
22551
22552 wx_cv_lib_glibc21=no
22553
22554
22555fi
ac1cb8d3 22556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22557
22558fi
22559echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22560echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22561 if test "$wx_cv_lib_glibc21" = "yes"; then
22562 cat >>confdefs.h <<\_ACEOF
22563#define wxHAVE_GLIBC2 1
22564_ACEOF
22565
22566 fi
22567fi
22568
22569if test "x$wx_cv_lib_glibc21" = "xyes"; then
22570 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22571 cat >>confdefs.h <<\_ACEOF
22572#define _GNU_SOURCE 1
22573_ACEOF
22574
22575 fi
22576fi
22577
22578
22579
22580if test "$wxUSE_REGEX" != "no"; then
22581 cat >>confdefs.h <<\_ACEOF
22582#define wxUSE_REGEX 1
22583_ACEOF
22584
22585
22586 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22587 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22588echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22589 wxUSE_REGEX=builtin
22590 fi
22591
22592 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22593 if test "${ac_cv_header_regex_h+set}" = set; then
22594 echo "$as_me:$LINENO: checking for regex.h" >&5
22595echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22596if test "${ac_cv_header_regex_h+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598fi
22599echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22600echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22601else
22602 # Is the header compilable?
22603echo "$as_me:$LINENO: checking regex.h usability" >&5
22604echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22605cat >conftest.$ac_ext <<_ACEOF
22606/* confdefs.h. */
22607_ACEOF
22608cat confdefs.h >>conftest.$ac_ext
22609cat >>conftest.$ac_ext <<_ACEOF
22610/* end confdefs.h. */
22611$ac_includes_default
22612#include <regex.h>
22613_ACEOF
22614rm -f conftest.$ac_objext
22615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22616 (eval $ac_compile) 2>conftest.er1
a848cd7e 22617 ac_status=$?
ac1cb8d3
VS
22618 grep -v '^ *+' conftest.er1 >conftest.err
22619 rm -f conftest.er1
22620 cat conftest.err >&5
a848cd7e
SC
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } &&
6ebeb4c7 22623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_header_compiler=yes
22636else
22637 echo "$as_me: failed program was:" >&5
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
22640ac_header_compiler=no
22641fi
ac1cb8d3 22642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22644echo "${ECHO_T}$ac_header_compiler" >&6
22645
22646# Is the header present?
22647echo "$as_me:$LINENO: checking regex.h presence" >&5
22648echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22649cat >conftest.$ac_ext <<_ACEOF
22650/* confdefs.h. */
22651_ACEOF
22652cat confdefs.h >>conftest.$ac_ext
22653cat >>conftest.$ac_ext <<_ACEOF
22654/* end confdefs.h. */
22655#include <regex.h>
22656_ACEOF
22657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22659 ac_status=$?
22660 grep -v '^ *+' conftest.er1 >conftest.err
22661 rm -f conftest.er1
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } >/dev/null; then
22665 if test -s conftest.err; then
22666 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22668 else
22669 ac_cpp_err=
22670 fi
22671else
22672 ac_cpp_err=yes
22673fi
22674if test -z "$ac_cpp_err"; then
22675 ac_header_preproc=yes
22676else
22677 echo "$as_me: failed program was:" >&5
22678sed 's/^/| /' conftest.$ac_ext >&5
22679
22680 ac_header_preproc=no
22681fi
22682rm -f conftest.err conftest.$ac_ext
22683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22684echo "${ECHO_T}$ac_header_preproc" >&6
22685
22686# So? What about this header?
ac1cb8d3
VS
22687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22688 yes:no: )
a848cd7e
SC
22689 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22690echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22691 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22692echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22693 ac_header_preproc=yes
a848cd7e 22694 ;;
ac1cb8d3 22695 no:yes:* )
a848cd7e
SC
22696 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22697echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22698 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22699echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22700 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22701echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22703echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22704 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22705echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22706 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22707echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22708 (
22709 cat <<\_ASBOX
ac1cb8d3
VS
22710## ----------------------------------------- ##
22711## Report this to wx-dev@lists.wxwidgets.org ##
22712## ----------------------------------------- ##
a848cd7e
SC
22713_ASBOX
22714 ) |
22715 sed "s/^/$as_me: WARNING: /" >&2
22716 ;;
22717esac
22718echo "$as_me:$LINENO: checking for regex.h" >&5
22719echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22720if test "${ac_cv_header_regex_h+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22722else
22723 ac_cv_header_regex_h=$ac_header_preproc
22724fi
22725echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22726echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22727
22728fi
22729if test $ac_cv_header_regex_h = yes; then
22730
22731for ac_func in regcomp
22732do
22733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22734echo "$as_me:$LINENO: checking for $ac_func" >&5
22735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22736if eval "test \"\${$as_ac_var+set}\" = set"; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22738else
22739 cat >conftest.$ac_ext <<_ACEOF
22740/* confdefs.h. */
22741_ACEOF
22742cat confdefs.h >>conftest.$ac_ext
22743cat >>conftest.$ac_ext <<_ACEOF
22744/* end confdefs.h. */
ac1cb8d3
VS
22745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22747#define $ac_func innocuous_$ac_func
22748
a848cd7e
SC
22749/* System header to define __stub macros and hopefully few prototypes,
22750 which can conflict with char $ac_func (); below.
22751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22752 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22753
a848cd7e
SC
22754#ifdef __STDC__
22755# include <limits.h>
22756#else
22757# include <assert.h>
22758#endif
ac1cb8d3
VS
22759
22760#undef $ac_func
22761
a848cd7e
SC
22762/* Override any gcc2 internal prototype to avoid an error. */
22763#ifdef __cplusplus
22764extern "C"
22765{
22766#endif
22767/* We use char because int might match the return type of a gcc2
22768 builtin and then its argument prototype would still apply. */
22769char $ac_func ();
22770/* The GNU C library defines this for functions which it implements
22771 to always fail with ENOSYS. Some functions are actually named
22772 something starting with __ and the normal name is an alias. */
22773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22774choke me
22775#else
22776char (*f) () = $ac_func;
22777#endif
22778#ifdef __cplusplus
22779}
22780#endif
22781
22782int
22783main ()
22784{
22785return f != $ac_func;
22786 ;
22787 return 0;
22788}
22789_ACEOF
22790rm -f conftest.$ac_objext conftest$ac_exeext
22791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22792 (eval $ac_link) 2>conftest.er1
a848cd7e 22793 ac_status=$?
ac1cb8d3
VS
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
a848cd7e
SC
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
6ebeb4c7 22799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 eval "$as_ac_var=yes"
22812else
22813 echo "$as_me: failed program was:" >&5
22814sed 's/^/| /' conftest.$ac_ext >&5
22815
22816eval "$as_ac_var=no"
22817fi
ac1cb8d3
VS
22818rm -f conftest.err conftest.$ac_objext \
22819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22820fi
22821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22823if test `eval echo '${'$as_ac_var'}'` = yes; then
22824 cat >>confdefs.h <<_ACEOF
22825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22826_ACEOF
22827
22828fi
22829done
22830
22831fi
22832
22833
22834
22835 if test "x$ac_cv_func_regcomp" != "xyes"; then
22836 if test "$wxUSE_REGEX" = "sys" ; then
22837 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22838echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22839 { (exit 1); exit 1; }; }
22840 else
22841 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22842echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22843 wxUSE_REGEX=builtin
22844 fi
22845 else
22846 wxUSE_REGEX=sys
22847 cat >>confdefs.h <<\_ACEOF
22848#define WX_NO_REGEX_ADVANCED 1
22849_ACEOF
22850
22851 fi
22852 fi
22853fi
22854
22855
22856ZLIB_LINK=
22857if test "$wxUSE_ZLIB" != "no" ; then
22858 cat >>confdefs.h <<\_ACEOF
22859#define wxUSE_ZLIB 1
22860_ACEOF
22861
22862
22863 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22864 if test "$USE_DARWIN" = 1; then
22865 system_zlib_h_ok="yes"
22866 else
22867 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22868echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22869if test "${ac_cv_header_zlib_h+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22871else
22872 if test "$cross_compiling" = yes; then
22873 unset ac_cv_header_zlib_h
22874
22875else
22876 cat >conftest.$ac_ext <<_ACEOF
22877/* confdefs.h. */
22878_ACEOF
22879cat confdefs.h >>conftest.$ac_ext
22880cat >>conftest.$ac_ext <<_ACEOF
22881/* end confdefs.h. */
22882
22883 #include <zlib.h>
22884 #include <stdio.h>
22885
22886 int main()
22887 {
22888 FILE *f=fopen("conftestval", "w");
22889 if (!f) exit(1);
22890 fprintf(f, "%s",
22891 ZLIB_VERSION[0] == '1' &&
22892 (ZLIB_VERSION[2] > '1' ||
22893 (ZLIB_VERSION[2] == '1' &&
22894 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22895 exit(0);
22896 }
22897
22898_ACEOF
22899rm -f conftest$ac_exeext
22900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_cv_header_zlib_h=`cat conftestval`
22911else
22912 echo "$as_me: program exited with status $ac_status" >&5
22913echo "$as_me: failed program was:" >&5
22914sed 's/^/| /' conftest.$ac_ext >&5
22915
22916( exit $ac_status )
22917ac_cv_header_zlib_h=no
22918fi
ac1cb8d3 22919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22920fi
22921
22922fi
22923echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22924echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22925 if test "${ac_cv_header_zlib_h+set}" = set; then
22926 echo "$as_me:$LINENO: checking for zlib.h" >&5
22927echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22928if test "${ac_cv_header_zlib_h+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930fi
22931echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22932echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22933else
22934 # Is the header compilable?
22935echo "$as_me:$LINENO: checking zlib.h usability" >&5
22936echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22937cat >conftest.$ac_ext <<_ACEOF
22938/* confdefs.h. */
22939_ACEOF
22940cat confdefs.h >>conftest.$ac_ext
22941cat >>conftest.$ac_ext <<_ACEOF
22942/* end confdefs.h. */
22943$ac_includes_default
22944#include <zlib.h>
22945_ACEOF
22946rm -f conftest.$ac_objext
22947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22948 (eval $ac_compile) 2>conftest.er1
a848cd7e 22949 ac_status=$?
ac1cb8d3
VS
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
a848cd7e
SC
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
6ebeb4c7 22955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; } &&
22961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; }; then
22967 ac_header_compiler=yes
22968else
22969 echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972ac_header_compiler=no
22973fi
ac1cb8d3 22974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22976echo "${ECHO_T}$ac_header_compiler" >&6
22977
22978# Is the header present?
22979echo "$as_me:$LINENO: checking zlib.h presence" >&5
22980echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22981cat >conftest.$ac_ext <<_ACEOF
22982/* confdefs.h. */
22983_ACEOF
22984cat confdefs.h >>conftest.$ac_ext
22985cat >>conftest.$ac_ext <<_ACEOF
22986/* end confdefs.h. */
22987#include <zlib.h>
22988_ACEOF
22989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } >/dev/null; then
22997 if test -s conftest.err; then
22998 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23000 else
23001 ac_cpp_err=
23002 fi
23003else
23004 ac_cpp_err=yes
23005fi
23006if test -z "$ac_cpp_err"; then
23007 ac_header_preproc=yes
23008else
23009 echo "$as_me: failed program was:" >&5
23010sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ac_header_preproc=no
23013fi
23014rm -f conftest.err conftest.$ac_ext
23015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23016echo "${ECHO_T}$ac_header_preproc" >&6
23017
23018# So? What about this header?
ac1cb8d3
VS
23019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23020 yes:no: )
a848cd7e
SC
23021 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23022echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23023 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23024echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23025 ac_header_preproc=yes
a848cd7e 23026 ;;
ac1cb8d3 23027 no:yes:* )
a848cd7e
SC
23028 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23029echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23030 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23031echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23033echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23035echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23036 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23037echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23038 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23039echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23040 (
23041 cat <<\_ASBOX
ac1cb8d3
VS
23042## ----------------------------------------- ##
23043## Report this to wx-dev@lists.wxwidgets.org ##
23044## ----------------------------------------- ##
a848cd7e
SC
23045_ASBOX
23046 ) |
23047 sed "s/^/$as_me: WARNING: /" >&2
23048 ;;
23049esac
23050echo "$as_me:$LINENO: checking for zlib.h" >&5
23051echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23052if test "${ac_cv_header_zlib_h+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23054else
23055 ac_cv_header_zlib_h=$ac_header_preproc
23056fi
23057echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23058echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23059
23060fi
23061
23062
23063
23064 system_zlib_h_ok=$ac_cv_header_zlib_h
23065 fi
23066
23067 if test "$system_zlib_h_ok" = "yes"; then
23068 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23069echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23070if test "${ac_cv_lib_z_deflate+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072else
23073 ac_check_lib_save_LIBS=$LIBS
23074LIBS="-lz $LIBS"
23075cat >conftest.$ac_ext <<_ACEOF
23076/* confdefs.h. */
23077_ACEOF
23078cat confdefs.h >>conftest.$ac_ext
23079cat >>conftest.$ac_ext <<_ACEOF
23080/* end confdefs.h. */
23081
23082/* Override any gcc2 internal prototype to avoid an error. */
23083#ifdef __cplusplus
23084extern "C"
23085#endif
23086/* We use char because int might match the return type of a gcc2
23087 builtin and then its argument prototype would still apply. */
23088char deflate ();
23089int
23090main ()
23091{
23092deflate ();
23093 ;
23094 return 0;
23095}
23096_ACEOF
23097rm -f conftest.$ac_objext conftest$ac_exeext
23098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23099 (eval $ac_link) 2>conftest.er1
a848cd7e 23100 ac_status=$?
ac1cb8d3
VS
23101 grep -v '^ *+' conftest.er1 >conftest.err
23102 rm -f conftest.er1
23103 cat conftest.err >&5
a848cd7e
SC
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } &&
6ebeb4c7 23106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_lib_z_deflate=yes
23119else
23120 echo "$as_me: failed program was:" >&5
23121sed 's/^/| /' conftest.$ac_ext >&5
23122
23123ac_cv_lib_z_deflate=no
23124fi
ac1cb8d3
VS
23125rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23127LIBS=$ac_check_lib_save_LIBS
23128fi
23129echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23130echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23131if test $ac_cv_lib_z_deflate = yes; then
23132 ZLIB_LINK=" -lz"
23133fi
23134
23135 fi
23136
23137 if test "x$ZLIB_LINK" = "x" ; then
23138 if test "$wxUSE_ZLIB" = "sys" ; then
23139 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23140echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23141 { (exit 1); exit 1; }; }
23142 else
23143 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23144echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23145 wxUSE_ZLIB=builtin
23146 fi
23147 else
23148 wxUSE_ZLIB=sys
23149 fi
23150 fi
23151fi
23152
23153
23154PNG_LINK=
23155if test "$wxUSE_LIBPNG" != "no" ; then
23156 cat >>confdefs.h <<\_ACEOF
23157#define wxUSE_LIBPNG 1
23158_ACEOF
23159
23160
23161 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23162 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23163echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23164 wxUSE_LIBPNG=sys
23165 fi
23166
23167 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23168 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23169echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23170 wxUSE_LIBPNG=builtin
23171 fi
23172
23173 if test "$wxUSE_MGL" != 1 ; then
23174 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23175 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23176echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23177if test "${ac_cv_header_png_h+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179else
23180 if test "$cross_compiling" = yes; then
23181 unset ac_cv_header_png_h
23182
23183else
23184 cat >conftest.$ac_ext <<_ACEOF
23185/* confdefs.h. */
23186_ACEOF
23187cat confdefs.h >>conftest.$ac_ext
23188cat >>conftest.$ac_ext <<_ACEOF
23189/* end confdefs.h. */
23190
23191 #include <png.h>
23192 #include <stdio.h>
23193
23194 int main()
23195 {
23196 FILE *f=fopen("conftestval", "w");
23197 if (!f) exit(1);
23198 fprintf(f, "%s",
23199 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23200 exit(0);
23201 }
23202
23203_ACEOF
23204rm -f conftest$ac_exeext
23205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23206 (eval $ac_link) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_header_png_h=`cat conftestval`
23216else
23217 echo "$as_me: program exited with status $ac_status" >&5
23218echo "$as_me: failed program was:" >&5
23219sed 's/^/| /' conftest.$ac_ext >&5
23220
23221( exit $ac_status )
23222ac_cv_header_png_h=no
23223fi
ac1cb8d3 23224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23225fi
23226
23227fi
23228echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23229echo "${ECHO_T}$ac_cv_header_png_h" >&6
23230 if test "${ac_cv_header_png_h+set}" = set; then
23231 echo "$as_me:$LINENO: checking for png.h" >&5
23232echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23233if test "${ac_cv_header_png_h+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235fi
23236echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23237echo "${ECHO_T}$ac_cv_header_png_h" >&6
23238else
23239 # Is the header compilable?
23240echo "$as_me:$LINENO: checking png.h usability" >&5
23241echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23242cat >conftest.$ac_ext <<_ACEOF
23243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
23248$ac_includes_default
23249#include <png.h>
23250_ACEOF
23251rm -f conftest.$ac_objext
23252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23253 (eval $ac_compile) 2>conftest.er1
a848cd7e 23254 ac_status=$?
ac1cb8d3
VS
23255 grep -v '^ *+' conftest.er1 >conftest.err
23256 rm -f conftest.er1
23257 cat conftest.err >&5
a848cd7e
SC
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } &&
6ebeb4c7 23260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; } &&
23266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 ac_header_compiler=yes
23273else
23274 echo "$as_me: failed program was:" >&5
23275sed 's/^/| /' conftest.$ac_ext >&5
23276
23277ac_header_compiler=no
23278fi
ac1cb8d3 23279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23281echo "${ECHO_T}$ac_header_compiler" >&6
23282
23283# Is the header present?
23284echo "$as_me:$LINENO: checking png.h presence" >&5
23285echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23286cat >conftest.$ac_ext <<_ACEOF
23287/* confdefs.h. */
23288_ACEOF
23289cat confdefs.h >>conftest.$ac_ext
23290cat >>conftest.$ac_ext <<_ACEOF
23291/* end confdefs.h. */
23292#include <png.h>
23293_ACEOF
23294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } >/dev/null; then
23302 if test -s conftest.err; then
23303 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23305 else
23306 ac_cpp_err=
23307 fi
23308else
23309 ac_cpp_err=yes
23310fi
23311if test -z "$ac_cpp_err"; then
23312 ac_header_preproc=yes
23313else
23314 echo "$as_me: failed program was:" >&5
23315sed 's/^/| /' conftest.$ac_ext >&5
23316
23317 ac_header_preproc=no
23318fi
23319rm -f conftest.err conftest.$ac_ext
23320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23321echo "${ECHO_T}$ac_header_preproc" >&6
23322
23323# So? What about this header?
ac1cb8d3
VS
23324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23325 yes:no: )
a848cd7e
SC
23326 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23327echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23328 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23329echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23330 ac_header_preproc=yes
a848cd7e 23331 ;;
ac1cb8d3 23332 no:yes:* )
a848cd7e
SC
23333 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23334echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23335 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23336echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23337 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23338echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23340echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23341 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23342echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23343 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23344echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23345 (
23346 cat <<\_ASBOX
ac1cb8d3
VS
23347## ----------------------------------------- ##
23348## Report this to wx-dev@lists.wxwidgets.org ##
23349## ----------------------------------------- ##
a848cd7e
SC
23350_ASBOX
23351 ) |
23352 sed "s/^/$as_me: WARNING: /" >&2
23353 ;;
23354esac
23355echo "$as_me:$LINENO: checking for png.h" >&5
23356echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23357if test "${ac_cv_header_png_h+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359else
23360 ac_cv_header_png_h=$ac_header_preproc
23361fi
23362echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23363echo "${ECHO_T}$ac_cv_header_png_h" >&6
23364
23365fi
23366
23367
23368
23369 if test "$ac_cv_header_png_h" = "yes"; then
23370 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23371echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23372if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23373 echo $ECHO_N "(cached) $ECHO_C" >&6
23374else
23375 ac_check_lib_save_LIBS=$LIBS
23376LIBS="-lpng -lz -lm $LIBS"
23377cat >conftest.$ac_ext <<_ACEOF
23378/* confdefs.h. */
23379_ACEOF
23380cat confdefs.h >>conftest.$ac_ext
23381cat >>conftest.$ac_ext <<_ACEOF
23382/* end confdefs.h. */
23383
23384/* Override any gcc2 internal prototype to avoid an error. */
23385#ifdef __cplusplus
23386extern "C"
23387#endif
23388/* We use char because int might match the return type of a gcc2
23389 builtin and then its argument prototype would still apply. */
23390char png_check_sig ();
23391int
23392main ()
23393{
23394png_check_sig ();
23395 ;
23396 return 0;
23397}
23398_ACEOF
23399rm -f conftest.$ac_objext conftest$ac_exeext
23400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23401 (eval $ac_link) 2>conftest.er1
a848cd7e 23402 ac_status=$?
ac1cb8d3
VS
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
a848cd7e
SC
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
6ebeb4c7 23408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_lib_png_png_check_sig=yes
23421else
23422 echo "$as_me: failed program was:" >&5
23423sed 's/^/| /' conftest.$ac_ext >&5
23424
23425ac_cv_lib_png_png_check_sig=no
23426fi
ac1cb8d3
VS
23427rm -f conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23429LIBS=$ac_check_lib_save_LIBS
23430fi
23431echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23432echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23433if test $ac_cv_lib_png_png_check_sig = yes; then
23434 PNG_LINK=" -lpng -lz"
23435fi
23436
23437 fi
23438
23439 if test "x$PNG_LINK" = "x" ; then
23440 if test "$wxUSE_LIBPNG" = "sys" ; then
23441 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23442echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23443 { (exit 1); exit 1; }; }
23444 else
23445 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23446echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23447 wxUSE_LIBPNG=builtin
23448 fi
23449 else
23450 wxUSE_LIBPNG=sys
23451 fi
23452 fi
23453 fi
23454
23455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23456fi
23457
23458
23459JPEG_LINK=
23460if test "$wxUSE_LIBJPEG" != "no" ; then
23461 cat >>confdefs.h <<\_ACEOF
23462#define wxUSE_LIBJPEG 1
23463_ACEOF
23464
23465
23466 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23467 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23468echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23469 wxUSE_LIBJPEG=sys
23470 fi
23471
23472 if test "$wxUSE_MGL" != 1 ; then
23473 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23474 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23475echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23476 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478else
23479 cat >conftest.$ac_ext <<_ACEOF
23480/* confdefs.h. */
23481_ACEOF
23482cat confdefs.h >>conftest.$ac_ext
23483cat >>conftest.$ac_ext <<_ACEOF
23484/* end confdefs.h. */
23485
23486 #undef HAVE_STDLIB_H
23487 #include <stdio.h>
23488 #include <jpeglib.h>
23489
23490int
23491main ()
23492{
23493
23494
23495 ;
23496 return 0;
23497}
23498_ACEOF
23499rm -f conftest.$ac_objext
23500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23501 (eval $ac_compile) 2>conftest.er1
a848cd7e 23502 ac_status=$?
ac1cb8d3
VS
23503 grep -v '^ *+' conftest.er1 >conftest.err
23504 rm -f conftest.er1
23505 cat conftest.err >&5
a848cd7e
SC
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
6ebeb4c7 23508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; } &&
23514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23520 ac_cv_header_jpeglib_h=yes
23521else
23522 echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
23525ac_cv_header_jpeglib_h=no
23526
23527fi
ac1cb8d3 23528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23529
23530fi
23531
23532 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23533echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23534
23535 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23536 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23537echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23538if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23540else
23541 ac_check_lib_save_LIBS=$LIBS
23542LIBS="-ljpeg $LIBS"
23543cat >conftest.$ac_ext <<_ACEOF
23544/* confdefs.h. */
23545_ACEOF
23546cat confdefs.h >>conftest.$ac_ext
23547cat >>conftest.$ac_ext <<_ACEOF
23548/* end confdefs.h. */
23549
23550/* Override any gcc2 internal prototype to avoid an error. */
23551#ifdef __cplusplus
23552extern "C"
23553#endif
23554/* We use char because int might match the return type of a gcc2
23555 builtin and then its argument prototype would still apply. */
23556char jpeg_read_header ();
23557int
23558main ()
23559{
23560jpeg_read_header ();
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext conftest$ac_exeext
23566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23567 (eval $ac_link) 2>conftest.er1
a848cd7e 23568 ac_status=$?
ac1cb8d3
VS
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
a848cd7e
SC
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } &&
6ebeb4c7 23574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_lib_jpeg_jpeg_read_header=yes
23587else
23588 echo "$as_me: failed program was:" >&5
23589sed 's/^/| /' conftest.$ac_ext >&5
23590
23591ac_cv_lib_jpeg_jpeg_read_header=no
23592fi
ac1cb8d3
VS
23593rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23595LIBS=$ac_check_lib_save_LIBS
23596fi
23597echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23598echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23599if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23600 JPEG_LINK=" -ljpeg"
23601fi
23602
23603 fi
23604
23605 if test "x$JPEG_LINK" = "x" ; then
23606 if test "$wxUSE_LIBJPEG" = "sys" ; then
23607 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23608echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23609 { (exit 1); exit 1; }; }
23610 else
23611 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23612echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23613 wxUSE_LIBJPEG=builtin
23614 fi
23615 else
23616 wxUSE_LIBJPEG=sys
23617 fi
23618 fi
23619 fi
23620fi
23621
23622
23623TIFF_LINK=
23624TIFF_PREREQ_LINKS=-lm
23625if test "$wxUSE_LIBTIFF" != "no" ; then
23626 cat >>confdefs.h <<\_ACEOF
23627#define wxUSE_LIBTIFF 1
23628_ACEOF
23629
23630
23631 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23632 if test "$wxUSE_LIBJPEG" = "sys"; then
23633 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23634 fi
23635 if test "$wxUSE_ZLIB" = "sys"; then
23636 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23637 fi
23638 if test "${ac_cv_header_tiffio_h+set}" = set; then
23639 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23640echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23641if test "${ac_cv_header_tiffio_h+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643fi
23644echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23645echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23646else
23647 # Is the header compilable?
23648echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23649echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23650cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656$ac_includes_default
23657#include <tiffio.h>
23658_ACEOF
23659rm -f conftest.$ac_objext
23660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23661 (eval $ac_compile) 2>conftest.er1
a848cd7e 23662 ac_status=$?
ac1cb8d3
VS
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
a848cd7e
SC
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
6ebeb4c7 23668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670 (eval $ac_try) 2>&5
23671 ac_status=$?
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); }; } &&
23674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; }; then
23680 ac_header_compiler=yes
23681else
23682 echo "$as_me: failed program was:" >&5
23683sed 's/^/| /' conftest.$ac_ext >&5
23684
23685ac_header_compiler=no
23686fi
ac1cb8d3 23687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23689echo "${ECHO_T}$ac_header_compiler" >&6
23690
23691# Is the header present?
23692echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23693echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23694cat >conftest.$ac_ext <<_ACEOF
23695/* confdefs.h. */
23696_ACEOF
23697cat confdefs.h >>conftest.$ac_ext
23698cat >>conftest.$ac_ext <<_ACEOF
23699/* end confdefs.h. */
23700#include <tiffio.h>
23701_ACEOF
23702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23704 ac_status=$?
23705 grep -v '^ *+' conftest.er1 >conftest.err
23706 rm -f conftest.er1
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } >/dev/null; then
23710 if test -s conftest.err; then
23711 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23713 else
23714 ac_cpp_err=
23715 fi
23716else
23717 ac_cpp_err=yes
23718fi
23719if test -z "$ac_cpp_err"; then
23720 ac_header_preproc=yes
23721else
23722 echo "$as_me: failed program was:" >&5
23723sed 's/^/| /' conftest.$ac_ext >&5
23724
23725 ac_header_preproc=no
23726fi
23727rm -f conftest.err conftest.$ac_ext
23728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23729echo "${ECHO_T}$ac_header_preproc" >&6
23730
23731# So? What about this header?
ac1cb8d3
VS
23732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23733 yes:no: )
a848cd7e
SC
23734 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23735echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23736 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23737echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23738 ac_header_preproc=yes
a848cd7e 23739 ;;
ac1cb8d3 23740 no:yes:* )
a848cd7e
SC
23741 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23742echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23743 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23744echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23745 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23746echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23747 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23748echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23749 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23750echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23751 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23752echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23753 (
23754 cat <<\_ASBOX
ac1cb8d3
VS
23755## ----------------------------------------- ##
23756## Report this to wx-dev@lists.wxwidgets.org ##
23757## ----------------------------------------- ##
a848cd7e
SC
23758_ASBOX
23759 ) |
23760 sed "s/^/$as_me: WARNING: /" >&2
23761 ;;
23762esac
23763echo "$as_me:$LINENO: checking for tiffio.h" >&5
23764echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23765if test "${ac_cv_header_tiffio_h+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23767else
23768 ac_cv_header_tiffio_h=$ac_header_preproc
23769fi
23770echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23771echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23772
23773fi
23774if test $ac_cv_header_tiffio_h = yes; then
23775
23776 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23777echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23778if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780else
23781 ac_check_lib_save_LIBS=$LIBS
23782LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23783cat >conftest.$ac_ext <<_ACEOF
23784/* confdefs.h. */
23785_ACEOF
23786cat confdefs.h >>conftest.$ac_ext
23787cat >>conftest.$ac_ext <<_ACEOF
23788/* end confdefs.h. */
23789
23790/* Override any gcc2 internal prototype to avoid an error. */
23791#ifdef __cplusplus
23792extern "C"
23793#endif
23794/* We use char because int might match the return type of a gcc2
23795 builtin and then its argument prototype would still apply. */
23796char TIFFError ();
23797int
23798main ()
23799{
23800TIFFError ();
23801 ;
23802 return 0;
23803}
23804_ACEOF
23805rm -f conftest.$ac_objext conftest$ac_exeext
23806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23807 (eval $ac_link) 2>conftest.er1
a848cd7e 23808 ac_status=$?
ac1cb8d3
VS
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
a848cd7e
SC
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } &&
6ebeb4c7 23814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; } &&
23820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23826 ac_cv_lib_tiff_TIFFError=yes
23827else
23828 echo "$as_me: failed program was:" >&5
23829sed 's/^/| /' conftest.$ac_ext >&5
23830
23831ac_cv_lib_tiff_TIFFError=no
23832fi
ac1cb8d3
VS
23833rm -f conftest.err conftest.$ac_objext \
23834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23835LIBS=$ac_check_lib_save_LIBS
23836fi
23837echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23838echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23839if test $ac_cv_lib_tiff_TIFFError = yes; then
23840 TIFF_LINK=" -ltiff"
23841fi
23842
23843
23844
23845fi
23846
23847
23848
23849 if test "x$TIFF_LINK" = "x" ; then
23850 if test "$wxUSE_LIBTIFF" = "sys" ; then
23851 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23852echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23853 { (exit 1); exit 1; }; }
23854 else
23855 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23856echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23857 wxUSE_LIBTIFF=builtin
23858 fi
23859 else
23860 wxUSE_LIBTIFF=sys
23861 fi
23862 fi
23863fi
23864
23865
47a7e797
MW
23866if test "$wxUSE_WCHAR_T" != "yes"; then
23867 if test "$wxUSE_EXPAT" != "no"; then
23868 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23869echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23870 wxUSE_EXPAT=no
23871 fi
23872 if test "$wxUSE_XML" != "no"; then
23873 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23874echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23875 wxUSE_XML=no
23876 fi
23877fi
23878
a848cd7e
SC
23879if test "$wxUSE_EXPAT" != "no"; then
23880 wxUSE_XML=yes
23881 cat >>confdefs.h <<\_ACEOF
23882#define wxUSE_EXPAT 1
23883_ACEOF
23884
23885 cat >>confdefs.h <<\_ACEOF
23886#define wxUSE_XML 1
23887_ACEOF
23888
23889
23890 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23891 if test "${ac_cv_header_expat_h+set}" = set; then
23892 echo "$as_me:$LINENO: checking for expat.h" >&5
23893echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23894if test "${ac_cv_header_expat_h+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896fi
23897echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23898echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23899else
23900 # Is the header compilable?
23901echo "$as_me:$LINENO: checking expat.h usability" >&5
23902echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23903cat >conftest.$ac_ext <<_ACEOF
23904/* confdefs.h. */
23905_ACEOF
23906cat confdefs.h >>conftest.$ac_ext
23907cat >>conftest.$ac_ext <<_ACEOF
23908/* end confdefs.h. */
23909$ac_includes_default
23910#include <expat.h>
23911_ACEOF
23912rm -f conftest.$ac_objext
23913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23914 (eval $ac_compile) 2>conftest.er1
a848cd7e 23915 ac_status=$?
ac1cb8d3
VS
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
a848cd7e
SC
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } &&
6ebeb4c7 23921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; } &&
23927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 ac_header_compiler=yes
23934else
23935 echo "$as_me: failed program was:" >&5
23936sed 's/^/| /' conftest.$ac_ext >&5
23937
23938ac_header_compiler=no
23939fi
ac1cb8d3 23940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23942echo "${ECHO_T}$ac_header_compiler" >&6
23943
23944# Is the header present?
23945echo "$as_me:$LINENO: checking expat.h presence" >&5
23946echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23947cat >conftest.$ac_ext <<_ACEOF
23948/* confdefs.h. */
23949_ACEOF
23950cat confdefs.h >>conftest.$ac_ext
23951cat >>conftest.$ac_ext <<_ACEOF
23952/* end confdefs.h. */
23953#include <expat.h>
23954_ACEOF
23955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23957 ac_status=$?
23958 grep -v '^ *+' conftest.er1 >conftest.err
23959 rm -f conftest.er1
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } >/dev/null; then
23963 if test -s conftest.err; then
23964 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23966 else
23967 ac_cpp_err=
23968 fi
23969else
23970 ac_cpp_err=yes
23971fi
23972if test -z "$ac_cpp_err"; then
23973 ac_header_preproc=yes
23974else
23975 echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978 ac_header_preproc=no
23979fi
23980rm -f conftest.err conftest.$ac_ext
23981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23982echo "${ECHO_T}$ac_header_preproc" >&6
23983
23984# So? What about this header?
ac1cb8d3
VS
23985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23986 yes:no: )
a848cd7e
SC
23987 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23988echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23989 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23990echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23991 ac_header_preproc=yes
a848cd7e 23992 ;;
ac1cb8d3 23993 no:yes:* )
a848cd7e
SC
23994 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23995echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23996 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23997echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23998 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23999echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24000 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24001echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24002 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24003echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24004 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24005echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24006 (
24007 cat <<\_ASBOX
ac1cb8d3
VS
24008## ----------------------------------------- ##
24009## Report this to wx-dev@lists.wxwidgets.org ##
24010## ----------------------------------------- ##
a848cd7e
SC
24011_ASBOX
24012 ) |
24013 sed "s/^/$as_me: WARNING: /" >&2
24014 ;;
24015esac
24016echo "$as_me:$LINENO: checking for expat.h" >&5
24017echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24018if test "${ac_cv_header_expat_h+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021 ac_cv_header_expat_h=$ac_header_preproc
24022fi
24023echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24024echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24025
24026fi
24027if test $ac_cv_header_expat_h = yes; then
24028 found_expat_h=1
24029fi
24030
24031
24032 if test "x$found_expat_h" = "x1"; then
24033 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24034echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24035if test "${wx_cv_expat_is_not_broken+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037else
24038
24039
24040
24041 ac_ext=cc
24042ac_cpp='$CXXCPP $CPPFLAGS'
24043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24046
24047 cat >conftest.$ac_ext <<_ACEOF
24048/* confdefs.h. */
24049_ACEOF
24050cat confdefs.h >>conftest.$ac_ext
24051cat >>conftest.$ac_ext <<_ACEOF
24052/* end confdefs.h. */
24053#include <expat.h>
24054int
24055main ()
24056{
24057
24058 ;
24059 return 0;
24060}
24061_ACEOF
24062rm -f conftest.$ac_objext
24063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24064 (eval $ac_compile) 2>conftest.er1
a848cd7e 24065 ac_status=$?
ac1cb8d3
VS
24066 grep -v '^ *+' conftest.er1 >conftest.err
24067 rm -f conftest.er1
24068 cat conftest.err >&5
a848cd7e
SC
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
6ebeb4c7 24071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; } &&
24077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079 (eval $ac_try) 2>&5
24080 ac_status=$?
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 wx_cv_expat_is_not_broken=yes
24084else
24085 echo "$as_me: failed program was:" >&5
24086sed 's/^/| /' conftest.$ac_ext >&5
24087
24088wx_cv_expat_is_not_broken=no
24089
24090fi
ac1cb8d3 24091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24092 ac_ext=c
24093ac_cpp='$CPP $CPPFLAGS'
24094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24096ac_compiler_gnu=$ac_cv_c_compiler_gnu
24097
24098
24099
24100fi
24101echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24102echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24103 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24104 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24105echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24106if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24107 echo $ECHO_N "(cached) $ECHO_C" >&6
24108else
24109 ac_check_lib_save_LIBS=$LIBS
24110LIBS="-lexpat $LIBS"
24111cat >conftest.$ac_ext <<_ACEOF
24112/* confdefs.h. */
24113_ACEOF
24114cat confdefs.h >>conftest.$ac_ext
24115cat >>conftest.$ac_ext <<_ACEOF
24116/* end confdefs.h. */
24117
24118/* Override any gcc2 internal prototype to avoid an error. */
24119#ifdef __cplusplus
24120extern "C"
24121#endif
24122/* We use char because int might match the return type of a gcc2
24123 builtin and then its argument prototype would still apply. */
24124char XML_ParserCreate ();
24125int
24126main ()
24127{
24128XML_ParserCreate ();
24129 ;
24130 return 0;
24131}
24132_ACEOF
24133rm -f conftest.$ac_objext conftest$ac_exeext
24134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24135 (eval $ac_link) 2>conftest.er1
a848cd7e 24136 ac_status=$?
ac1cb8d3
VS
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
a848cd7e
SC
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } &&
6ebeb4c7 24142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; } &&
24148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154 ac_cv_lib_expat_XML_ParserCreate=yes
24155else
24156 echo "$as_me: failed program was:" >&5
24157sed 's/^/| /' conftest.$ac_ext >&5
24158
24159ac_cv_lib_expat_XML_ParserCreate=no
24160fi
ac1cb8d3
VS
24161rm -f conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24163LIBS=$ac_check_lib_save_LIBS
24164fi
24165echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24166echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24167if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24168 EXPAT_LINK=" -lexpat"
24169fi
24170
24171 fi
24172 fi
24173 if test "x$EXPAT_LINK" = "x" ; then
24174 if test "$wxUSE_EXPAT" = "sys" ; then
24175 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24176echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24177 { (exit 1); exit 1; }; }
24178 else
24179 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24180echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24181 wxUSE_EXPAT=builtin
24182 fi
24183 else
24184 wxUSE_EXPAT=sys
24185 fi
24186 fi
24187 if test "$wxUSE_EXPAT" = "builtin" ; then
24188
24189
24190subdirs="$subdirs src/expat"
24191
24192 fi
24193fi
24194
24195
24196
24197if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24198 if test "${ac_cv_header_mspack_h+set}" = set; then
24199 echo "$as_me:$LINENO: checking for mspack.h" >&5
24200echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24201if test "${ac_cv_header_mspack_h+set}" = set; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24203fi
24204echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24205echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24206else
24207 # Is the header compilable?
24208echo "$as_me:$LINENO: checking mspack.h usability" >&5
24209echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24210cat >conftest.$ac_ext <<_ACEOF
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
24216$ac_includes_default
24217#include <mspack.h>
24218_ACEOF
24219rm -f conftest.$ac_objext
24220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24221 (eval $ac_compile) 2>conftest.er1
a848cd7e 24222 ac_status=$?
ac1cb8d3
VS
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
a848cd7e
SC
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
6ebeb4c7 24228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; } &&
24234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; }; then
24240 ac_header_compiler=yes
24241else
24242 echo "$as_me: failed program was:" >&5
24243sed 's/^/| /' conftest.$ac_ext >&5
24244
24245ac_header_compiler=no
24246fi
ac1cb8d3 24247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24249echo "${ECHO_T}$ac_header_compiler" >&6
24250
24251# Is the header present?
24252echo "$as_me:$LINENO: checking mspack.h presence" >&5
24253echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24254cat >conftest.$ac_ext <<_ACEOF
24255/* confdefs.h. */
24256_ACEOF
24257cat confdefs.h >>conftest.$ac_ext
24258cat >>conftest.$ac_ext <<_ACEOF
24259/* end confdefs.h. */
24260#include <mspack.h>
24261_ACEOF
24262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24264 ac_status=$?
24265 grep -v '^ *+' conftest.er1 >conftest.err
24266 rm -f conftest.er1
24267 cat conftest.err >&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } >/dev/null; then
24270 if test -s conftest.err; then
24271 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24273 else
24274 ac_cpp_err=
24275 fi
24276else
24277 ac_cpp_err=yes
24278fi
24279if test -z "$ac_cpp_err"; then
24280 ac_header_preproc=yes
24281else
24282 echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285 ac_header_preproc=no
24286fi
24287rm -f conftest.err conftest.$ac_ext
24288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24289echo "${ECHO_T}$ac_header_preproc" >&6
24290
24291# So? What about this header?
ac1cb8d3
VS
24292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24293 yes:no: )
a848cd7e
SC
24294 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24295echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24296 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24297echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24298 ac_header_preproc=yes
a848cd7e 24299 ;;
ac1cb8d3 24300 no:yes:* )
a848cd7e
SC
24301 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24302echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24303 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24304echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24305 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24306echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24307 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24308echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24309 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24310echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24311 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24312echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24313 (
24314 cat <<\_ASBOX
ac1cb8d3
VS
24315## ----------------------------------------- ##
24316## Report this to wx-dev@lists.wxwidgets.org ##
24317## ----------------------------------------- ##
a848cd7e
SC
24318_ASBOX
24319 ) |
24320 sed "s/^/$as_me: WARNING: /" >&2
24321 ;;
24322esac
24323echo "$as_me:$LINENO: checking for mspack.h" >&5
24324echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24325if test "${ac_cv_header_mspack_h+set}" = set; then
24326 echo $ECHO_N "(cached) $ECHO_C" >&6
24327else
24328 ac_cv_header_mspack_h=$ac_header_preproc
24329fi
24330echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24331echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24332
24333fi
24334if test $ac_cv_header_mspack_h = yes; then
24335 found_mspack_h=1
24336fi
24337
24338
24339 if test "x$found_mspack_h" = "x1"; then
24340 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24341echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24342if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24344else
24345 ac_check_lib_save_LIBS=$LIBS
24346LIBS="-lmspack $LIBS"
24347cat >conftest.$ac_ext <<_ACEOF
24348/* confdefs.h. */
24349_ACEOF
24350cat confdefs.h >>conftest.$ac_ext
24351cat >>conftest.$ac_ext <<_ACEOF
24352/* end confdefs.h. */
24353
24354/* Override any gcc2 internal prototype to avoid an error. */
24355#ifdef __cplusplus
24356extern "C"
24357#endif
24358/* We use char because int might match the return type of a gcc2
24359 builtin and then its argument prototype would still apply. */
24360char mspack_create_chm_decompressor ();
24361int
24362main ()
24363{
24364mspack_create_chm_decompressor ();
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext conftest$ac_exeext
24370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24371 (eval $ac_link) 2>conftest.er1
a848cd7e 24372 ac_status=$?
ac1cb8d3
VS
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
a848cd7e
SC
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
6ebeb4c7 24378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; } &&
24384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; }; then
24390 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24391else
24392 echo "$as_me: failed program was:" >&5
24393sed 's/^/| /' conftest.$ac_ext >&5
24394
24395ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24396fi
ac1cb8d3
VS
24397rm -f conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24399LIBS=$ac_check_lib_save_LIBS
24400fi
24401echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24402echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24403if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24404 MSPACK_LINK=" -lmspack"
24405fi
24406
24407 fi
24408 if test "x$MSPACK_LINK" = "x" ; then
24409 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24410 fi
24411fi
24412
24413if test "$wxUSE_LIBMSPACK" != "no"; then
24414 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24415#define wxUSE_LIBMSPACK 1
24416_ACEOF
24417
a848cd7e
SC
24418fi
24419
24420
24421
24422AFMINSTALL=
24423WIN32INSTALL=
24424
24425TOOLKIT=
24426TOOLKIT_INCLUDE=
24427WIDGET_SET=
24428
24429if test "$USE_WIN32" = 1 ; then
24430
24431for ac_header in w32api.h
24432do
24433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24434if eval "test \"\${$as_ac_Header+set}\" = set"; then
24435 echo "$as_me:$LINENO: checking for $ac_header" >&5
24436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24437if eval "test \"\${$as_ac_Header+set}\" = set"; then
24438 echo $ECHO_N "(cached) $ECHO_C" >&6
24439fi
24440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24442else
24443 # Is the header compilable?
24444echo "$as_me:$LINENO: checking $ac_header usability" >&5
24445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24446cat >conftest.$ac_ext <<_ACEOF
24447/* confdefs.h. */
24448_ACEOF
24449cat confdefs.h >>conftest.$ac_ext
24450cat >>conftest.$ac_ext <<_ACEOF
24451/* end confdefs.h. */
24452$ac_includes_default
24453#include <$ac_header>
24454_ACEOF
24455rm -f conftest.$ac_objext
24456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24457 (eval $ac_compile) 2>conftest.er1
a848cd7e 24458 ac_status=$?
ac1cb8d3
VS
24459 grep -v '^ *+' conftest.er1 >conftest.err
24460 rm -f conftest.er1
24461 cat conftest.err >&5
a848cd7e
SC
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } &&
6ebeb4c7 24464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; } &&
24470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 ac_header_compiler=yes
24477else
24478 echo "$as_me: failed program was:" >&5
24479sed 's/^/| /' conftest.$ac_ext >&5
24480
24481ac_header_compiler=no
24482fi
ac1cb8d3 24483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24485echo "${ECHO_T}$ac_header_compiler" >&6
24486
24487# Is the header present?
24488echo "$as_me:$LINENO: checking $ac_header presence" >&5
24489echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
24497_ACEOF
24498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24500 ac_status=$?
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } >/dev/null; then
24506 if test -s conftest.err; then
24507 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24509 else
24510 ac_cpp_err=
24511 fi
24512else
24513 ac_cpp_err=yes
24514fi
24515if test -z "$ac_cpp_err"; then
24516 ac_header_preproc=yes
24517else
24518 echo "$as_me: failed program was:" >&5
24519sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 ac_header_preproc=no
24522fi
24523rm -f conftest.err conftest.$ac_ext
24524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24525echo "${ECHO_T}$ac_header_preproc" >&6
24526
24527# So? What about this header?
ac1cb8d3
VS
24528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24529 yes:no: )
a848cd7e
SC
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24534 ac_header_preproc=yes
a848cd7e 24535 ;;
ac1cb8d3 24536 no:yes:* )
a848cd7e
SC
24537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24549 (
24550 cat <<\_ASBOX
ac1cb8d3
VS
24551## ----------------------------------------- ##
24552## Report this to wx-dev@lists.wxwidgets.org ##
24553## ----------------------------------------- ##
a848cd7e
SC
24554_ASBOX
24555 ) |
24556 sed "s/^/$as_me: WARNING: /" >&2
24557 ;;
24558esac
24559echo "$as_me:$LINENO: checking for $ac_header" >&5
24560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24561if eval "test \"\${$as_ac_Header+set}\" = set"; then
24562 echo $ECHO_N "(cached) $ECHO_C" >&6
24563else
ac1cb8d3 24564 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24565fi
24566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24568
24569fi
24570if test `eval echo '${'$as_ac_Header'}'` = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24573_ACEOF
24574
24575fi
24576
24577done
24578
24579 if test "${ac_cv_header_windows_h+set}" = set; then
24580 echo "$as_me:$LINENO: checking for windows.h" >&5
24581echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24582if test "${ac_cv_header_windows_h+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584fi
24585echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24586echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24587else
24588 # Is the header compilable?
24589echo "$as_me:$LINENO: checking windows.h usability" >&5
24590echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24591cat >conftest.$ac_ext <<_ACEOF
24592/* confdefs.h. */
24593_ACEOF
24594cat confdefs.h >>conftest.$ac_ext
24595cat >>conftest.$ac_ext <<_ACEOF
24596/* end confdefs.h. */
24597$ac_includes_default
24598#include <windows.h>
24599_ACEOF
24600rm -f conftest.$ac_objext
24601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24602 (eval $ac_compile) 2>conftest.er1
a848cd7e 24603 ac_status=$?
ac1cb8d3
VS
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
a848cd7e
SC
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } &&
6ebeb4c7 24609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; } &&
24615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_header_compiler=yes
24622else
24623 echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626ac_header_compiler=no
24627fi
ac1cb8d3 24628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24630echo "${ECHO_T}$ac_header_compiler" >&6
24631
24632# Is the header present?
24633echo "$as_me:$LINENO: checking windows.h presence" >&5
24634echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24635cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h. */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h. */
24641#include <windows.h>
24642_ACEOF
24643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24645 ac_status=$?
24646 grep -v '^ *+' conftest.er1 >conftest.err
24647 rm -f conftest.er1
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } >/dev/null; then
24651 if test -s conftest.err; then
24652 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24654 else
24655 ac_cpp_err=
24656 fi
24657else
24658 ac_cpp_err=yes
24659fi
24660if test -z "$ac_cpp_err"; then
24661 ac_header_preproc=yes
24662else
24663 echo "$as_me: failed program was:" >&5
24664sed 's/^/| /' conftest.$ac_ext >&5
24665
24666 ac_header_preproc=no
24667fi
24668rm -f conftest.err conftest.$ac_ext
24669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24670echo "${ECHO_T}$ac_header_preproc" >&6
24671
24672# So? What about this header?
ac1cb8d3
VS
24673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24674 yes:no: )
a848cd7e
SC
24675 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24676echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24677 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24678echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24679 ac_header_preproc=yes
a848cd7e 24680 ;;
ac1cb8d3 24681 no:yes:* )
a848cd7e
SC
24682 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24683echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24684 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24685echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24686 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24687echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24688 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24689echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24690 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24691echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24692 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24693echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24694 (
24695 cat <<\_ASBOX
ac1cb8d3
VS
24696## ----------------------------------------- ##
24697## Report this to wx-dev@lists.wxwidgets.org ##
24698## ----------------------------------------- ##
a848cd7e
SC
24699_ASBOX
24700 ) |
24701 sed "s/^/$as_me: WARNING: /" >&2
24702 ;;
24703esac
24704echo "$as_me:$LINENO: checking for windows.h" >&5
24705echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24706if test "${ac_cv_header_windows_h+set}" = set; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24708else
24709 ac_cv_header_windows_h=$ac_header_preproc
24710fi
24711echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24712echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24713
24714fi
24715if test $ac_cv_header_windows_h = yes; then
24716 :
24717else
24718
24719 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24720echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24721 { (exit 1); exit 1; }; }
24722
24723fi
24724
24725
24726
24727 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24728
24729 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24730 LIBS="$LIBS -loleacc"
24731 fi
24732
24733 case "${host}" in
24734 *-*-cygwin* )
24735 LIBS="$LIBS -lkernel32 -luser32"
24736 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24737 esac
24738
24739 if test "$wxUSE_ODBC" = "sys" ; then
24740 wxUSE_ODBC = "yes"
24741 fi
24742 if test "$wxUSE_ODBC" = "yes" ; then
24743 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24744 cat >>confdefs.h <<\_ACEOF
24745#define wxUSE_ODBC 1
24746_ACEOF
24747
24748 fi
24749
24750 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24751 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24752
24753 WIN32INSTALL=win32install
24754fi
24755
24756if test "$wxUSE_GUI" = "yes"; then
24757 USE_GUI=1
24758
24759 GUI_TK_LIBRARY=
24760
24761 WXGTK12=
24762 WXGTK127=
24763 WXGTK20=
24764 WXGPE=
24765
207bc66c
RN
24766 if test "$wxUSE_COCOA" = 1 ; then
24767 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24768 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24769echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24770 wxUSE_PRINTING_ARCHITECTURE=no
24771 fi
24772 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24773 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24774echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24775 wxUSE_DRAG_AND_DROP=no
24776 fi
24777 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24778 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24779echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24780 wxUSE_DRAGIMAGE=no
24781 fi
24782 fi
24783
a848cd7e
SC
24784 if test "$wxUSE_MSW" = 1 ; then
24785 TOOLKIT=MSW
24786 GUIDIST=MSW_DIST
24787
ceec2216 24788 case "${host}" in
a848cd7e
SC
24789 *-*-mingw32* )
24790 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24791 esac
24792 fi
24793
24794 if test "$wxUSE_GTK" = 1; then
24795 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24796echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24797
24798 gtk_version_cached=1
24799 if test "${wx_cv_lib_gtk+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24801else
24802
24803 gtk_version_cached=0
24804 echo "$as_me:$LINENO: result: " >&5
24805echo "${ECHO_T}" >&6
24806
24807 GTK_MODULES=
24808 if test "$wxUSE_THREADS" = "yes"; then
24809 GTK_MODULES=gthread
24810 fi
24811
f597b41c 24812 wx_cv_lib_gtk=
f34ca037 24813 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24814 # Check whether --enable-gtktest or --disable-gtktest was given.
24815if test "${enable_gtktest+set}" = set; then
24816 enableval="$enable_gtktest"
24817
24818else
24819 enable_gtktest=yes
24820fi;
24821
24822 pkg_config_args=gtk+-2.0
24823 for module in . $GTK_MODULES
24824 do
24825 case "$module" in
24826 gthread)
24827 pkg_config_args="$pkg_config_args gthread-2.0"
24828 ;;
24829 esac
24830 done
24831
24832 no_gtk=""
24833
24834 # Extract the first word of "pkg-config", so it can be a program name with args.
24835set dummy pkg-config; ac_word=$2
24836echo "$as_me:$LINENO: checking for $ac_word" >&5
24837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24838if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24840else
24841 case $PKG_CONFIG in
24842 [\\/]* | ?:[\\/]*)
24843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24844 ;;
24845 *)
24846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847for as_dir in $PATH
24848do
24849 IFS=$as_save_IFS
24850 test -z "$as_dir" && as_dir=.
24851 for ac_exec_ext in '' $ac_executable_extensions; do
24852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24855 break 2
24856 fi
24857done
24858done
24859
24860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24861 ;;
24862esac
24863fi
24864PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24865
24866if test -n "$PKG_CONFIG"; then
24867 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24868echo "${ECHO_T}$PKG_CONFIG" >&6
24869else
24870 echo "$as_me:$LINENO: result: no" >&5
24871echo "${ECHO_T}no" >&6
24872fi
24873
24874
24875 if test x$PKG_CONFIG != xno ; then
24876 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24877 :
24878 else
c2218763 24879 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24880 no_gtk=yes
24881 PKG_CONFIG=no
24882 fi
24883 else
24884 no_gtk=yes
24885 fi
24886
24887 min_gtk_version=2.0.0
24888 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24889echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24890
24891 if test x$PKG_CONFIG != xno ; then
24892 ## don't try to run the test against uninstalled libtool libs
24893 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24894 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24895 enable_gtktest=no
24896 fi
24897
24898 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24899 :
24900 else
24901 no_gtk=yes
24902 fi
24903 fi
24904
24905 if test x"$no_gtk" = x ; then
24906 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24907 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24908 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24909 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24910 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24911 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24912 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24914 if test "x$enable_gtktest" = "xyes" ; then
24915 ac_save_CFLAGS="$CFLAGS"
24916 ac_save_LIBS="$LIBS"
24917 CFLAGS="$CFLAGS $GTK_CFLAGS"
24918 LIBS="$GTK_LIBS $LIBS"
24919 rm -f conf.gtktest
24920 if test "$cross_compiling" = yes; then
24921 echo $ac_n "cross compiling; assumed OK... $ac_c"
24922else
24923 cat >conftest.$ac_ext <<_ACEOF
24924/* confdefs.h. */
24925_ACEOF
24926cat confdefs.h >>conftest.$ac_ext
24927cat >>conftest.$ac_ext <<_ACEOF
24928/* end confdefs.h. */
24929
24930#include <gtk/gtk.h>
24931#include <stdio.h>
24932#include <stdlib.h>
24933
24934int
24935main ()
24936{
24937 int major, minor, micro;
24938 char *tmp_version;
24939
24940 system ("touch conf.gtktest");
24941
24942 /* HP/UX 9 (%@#!) writes to sscanf strings */
24943 tmp_version = g_strdup("$min_gtk_version");
24944 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24945 printf("%s, bad version string\n", "$min_gtk_version");
24946 exit(1);
24947 }
24948
24949 if ((gtk_major_version != $gtk_config_major_version) ||
24950 (gtk_minor_version != $gtk_config_minor_version) ||
24951 (gtk_micro_version != $gtk_config_micro_version))
24952 {
24953 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24954 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24955 gtk_major_version, gtk_minor_version, gtk_micro_version);
24956 printf ("*** was found! If pkg-config was correct, then it is best\n");
24957 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24958 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24959 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24960 printf("*** required on your system.\n");
24961 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24962 printf("*** to point to the correct configuration files\n");
24963 }
24964 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24965 (gtk_minor_version != GTK_MINOR_VERSION) ||
24966 (gtk_micro_version != GTK_MICRO_VERSION))
24967 {
24968 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24969 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24970 printf("*** library (version %d.%d.%d)\n",
24971 gtk_major_version, gtk_minor_version, gtk_micro_version);
24972 }
24973 else
24974 {
24975 if ((gtk_major_version > major) ||
24976 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24977 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24978 {
24979 return 0;
24980 }
24981 else
24982 {
24983 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24984 gtk_major_version, gtk_minor_version, gtk_micro_version);
24985 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24986 major, minor, micro);
24987 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24988 printf("***\n");
24989 printf("*** If you have already installed a sufficiently new version, this error\n");
24990 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24991 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24992 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24993 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24994 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24995 printf("*** so that the correct libraries are found at run-time))\n");
24996 }
24997 }
24998 return 1;
24999}
25000
25001_ACEOF
25002rm -f conftest$ac_exeext
25003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004 (eval $ac_link) 2>&5
25005 ac_status=$?
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25013 :
25014else
25015 echo "$as_me: program exited with status $ac_status" >&5
25016echo "$as_me: failed program was:" >&5
25017sed 's/^/| /' conftest.$ac_ext >&5
25018
25019( exit $ac_status )
25020no_gtk=yes
25021fi
ac1cb8d3 25022rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25023fi
25024 CFLAGS="$ac_save_CFLAGS"
25025 LIBS="$ac_save_LIBS"
25026 fi
25027 fi
25028 if test "x$no_gtk" = x ; then
25029 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25030echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25031 wx_cv_lib_gtk=2.0
25032 else
25033 echo "$as_me:$LINENO: result: no" >&5
25034echo "${ECHO_T}no" >&6
25035 if test "$PKG_CONFIG" = "no" ; then
25036 echo "*** A new enough version of pkg-config was not found."
25037 echo "*** See http://pkgconfig.sourceforge.net"
25038 else
25039 if test -f conf.gtktest ; then
25040 :
25041 else
25042 echo "*** Could not run GTK+ test program, checking why..."
25043 ac_save_CFLAGS="$CFLAGS"
25044 ac_save_LIBS="$LIBS"
25045 CFLAGS="$CFLAGS $GTK_CFLAGS"
25046 LIBS="$LIBS $GTK_LIBS"
25047 cat >conftest.$ac_ext <<_ACEOF
25048/* confdefs.h. */
25049_ACEOF
25050cat confdefs.h >>conftest.$ac_ext
25051cat >>conftest.$ac_ext <<_ACEOF
25052/* end confdefs.h. */
25053
25054#include <gtk/gtk.h>
25055#include <stdio.h>
25056
25057int
25058main ()
25059{
25060 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext conftest$ac_exeext
25066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25067 (eval $ac_link) 2>conftest.er1
a848cd7e 25068 ac_status=$?
ac1cb8d3
VS
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
a848cd7e
SC
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
6ebeb4c7 25074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 echo "*** The test program compiled, but did not run. This usually means"
25087 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25088 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25089 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25090 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25091 echo "*** is required on your system"
25092 echo "***"
25093 echo "*** If you have an old version installed, it is best to remove it, although"
25094 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25095else
25096 echo "$as_me: failed program was:" >&5
25097sed 's/^/| /' conftest.$ac_ext >&5
25098
25099 echo "*** The test program failed to compile or link. See the file config.log for the"
25100 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25101fi
ac1cb8d3
VS
25102rm -f conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25104 CFLAGS="$ac_save_CFLAGS"
25105 LIBS="$ac_save_LIBS"
25106 fi
25107 fi
25108 GTK_CFLAGS=""
25109 GTK_LIBS=""
25110 :
25111 fi
25112
25113
25114 rm -f conf.gtktest
25115
f597b41c
MW
25116 fi
25117
f34ca037
MW
25118 if test -z "$wx_cv_lib_gtk"; then
25119 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25120
25121# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25122if test "${with_gtk_prefix+set}" = set; then
25123 withval="$with_gtk_prefix"
25124 gtk_config_prefix="$withval"
25125else
25126 gtk_config_prefix=""
25127fi;
25128
25129# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25130if test "${with_gtk_exec_prefix+set}" = set; then
25131 withval="$with_gtk_exec_prefix"
25132 gtk_config_exec_prefix="$withval"
25133else
25134 gtk_config_exec_prefix=""
25135fi;
25136# Check whether --enable-gtktest or --disable-gtktest was given.
25137if test "${enable_gtktest+set}" = set; then
25138 enableval="$enable_gtktest"
25139
25140else
25141 enable_gtktest=yes
25142fi;
25143
25144 for module in . $GTK_MODULES
25145 do
25146 case "$module" in
25147 gthread)
25148 gtk_config_args="$gtk_config_args gthread"
25149 ;;
25150 esac
25151 done
25152
25153 if test x$gtk_config_exec_prefix != x ; then
25154 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25155 if test x${GTK_CONFIG+set} != xset ; then
25156 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25157 fi
25158 fi
25159 if test x$gtk_config_prefix != x ; then
25160 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25161 if test x${GTK_CONFIG+set} != xset ; then
25162 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25163 fi
25164 fi
25165
25166 # Extract the first word of "gtk-config", so it can be a program name with args.
25167set dummy gtk-config; ac_word=$2
25168echo "$as_me:$LINENO: checking for $ac_word" >&5
25169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25170if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25172else
25173 case $GTK_CONFIG in
25174 [\\/]* | ?:[\\/]*)
25175 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25176 ;;
25177 *)
25178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25179for as_dir in $PATH
25180do
25181 IFS=$as_save_IFS
25182 test -z "$as_dir" && as_dir=.
25183 for ac_exec_ext in '' $ac_executable_extensions; do
25184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25185 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25187 break 2
25188 fi
25189done
25190done
25191
25192 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25193 ;;
25194esac
25195fi
25196GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25197
25198if test -n "$GTK_CONFIG"; then
25199 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25200echo "${ECHO_T}$GTK_CONFIG" >&6
25201else
25202 echo "$as_me:$LINENO: result: no" >&5
25203echo "${ECHO_T}no" >&6
25204fi
25205
25206 min_gtk_version=1.2.7
25207 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25208echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25209 no_gtk=""
25210 if test "$GTK_CONFIG" = "no" ; then
25211 no_gtk=yes
25212 else
25213 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25214 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25215 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25217 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25219 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25221 if test "x$enable_gtktest" = "xyes" ; then
25222 ac_save_CFLAGS="$CFLAGS"
25223 ac_save_LIBS="$LIBS"
25224 CFLAGS="$CFLAGS $GTK_CFLAGS"
25225 LIBS="$GTK_LIBS $LIBS"
25226 rm -f conf.gtktest
25227 if test "$cross_compiling" = yes; then
25228 echo $ac_n "cross compiling; assumed OK... $ac_c"
25229else
25230 cat >conftest.$ac_ext <<_ACEOF
25231/* confdefs.h. */
25232_ACEOF
25233cat confdefs.h >>conftest.$ac_ext
25234cat >>conftest.$ac_ext <<_ACEOF
25235/* end confdefs.h. */
25236
25237#include <gtk/gtk.h>
25238#include <stdio.h>
25239#include <stdlib.h>
25240
25241int
25242main ()
25243{
25244 int major, minor, micro;
25245 char *tmp_version;
25246
25247 system ("touch conf.gtktest");
25248
25249 /* HP/UX 9 (%@#!) writes to sscanf strings */
25250 tmp_version = g_strdup("$min_gtk_version");
25251 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25252 printf("%s, bad version string\n", "$min_gtk_version");
25253 exit(1);
25254 }
25255
25256 if ((gtk_major_version != $gtk_config_major_version) ||
25257 (gtk_minor_version != $gtk_config_minor_version) ||
25258 (gtk_micro_version != $gtk_config_micro_version))
25259 {
25260 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25261 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25262 gtk_major_version, gtk_minor_version, gtk_micro_version);
25263 printf ("*** was found! If gtk-config was correct, then it is best\n");
25264 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25265 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25266 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25267 printf("*** required on your system.\n");
25268 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25269 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25270 printf("*** before re-running configure\n");
25271 }
25272#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25273 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25274 (gtk_minor_version != GTK_MINOR_VERSION) ||
25275 (gtk_micro_version != GTK_MICRO_VERSION))
25276 {
25277 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25278 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25279 printf("*** library (version %d.%d.%d)\n",
25280 gtk_major_version, gtk_minor_version, gtk_micro_version);
25281 }
25282#endif /* defined (GTK_MAJOR_VERSION) ... */
25283 else
25284 {
25285 if ((gtk_major_version > major) ||
25286 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25287 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25288 {
25289 return 0;
25290 }
25291 else
25292 {
25293 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25294 gtk_major_version, gtk_minor_version, gtk_micro_version);
25295 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25296 major, minor, micro);
25297 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25298 printf("***\n");
25299 printf("*** If you have already installed a sufficiently new version, this error\n");
25300 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25301 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25302 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25303 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25304 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25305 printf("*** so that the correct libraries are found at run-time))\n");
25306 }
25307 }
25308 return 1;
25309}
25310
25311_ACEOF
25312rm -f conftest$ac_exeext
25313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25314 (eval $ac_link) 2>&5
25315 ac_status=$?
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319 (eval $ac_try) 2>&5
25320 ac_status=$?
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); }; }; then
25323 :
25324else
25325 echo "$as_me: program exited with status $ac_status" >&5
25326echo "$as_me: failed program was:" >&5
25327sed 's/^/| /' conftest.$ac_ext >&5
25328
25329( exit $ac_status )
25330no_gtk=yes
25331fi
ac1cb8d3 25332rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25333fi
25334 CFLAGS="$ac_save_CFLAGS"
25335 LIBS="$ac_save_LIBS"
25336 fi
25337 fi
25338 if test "x$no_gtk" = x ; then
25339 echo "$as_me:$LINENO: result: yes" >&5
25340echo "${ECHO_T}yes" >&6
25341 wx_cv_lib_gtk=1.2.7
25342 else
25343 echo "$as_me:$LINENO: result: no" >&5
25344echo "${ECHO_T}no" >&6
25345 if test "$GTK_CONFIG" = "no" ; then
25346 echo "*** The gtk-config script installed by GTK could not be found"
25347 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25348 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25349 echo "*** full path to gtk-config."
25350 else
25351 if test -f conf.gtktest ; then
25352 :
25353 else
25354 echo "*** Could not run GTK test program, checking why..."
25355 CFLAGS="$CFLAGS $GTK_CFLAGS"
25356 LIBS="$LIBS $GTK_LIBS"
25357 cat >conftest.$ac_ext <<_ACEOF
25358/* confdefs.h. */
25359_ACEOF
25360cat confdefs.h >>conftest.$ac_ext
25361cat >>conftest.$ac_ext <<_ACEOF
25362/* end confdefs.h. */
25363
25364#include <gtk/gtk.h>
25365#include <stdio.h>
25366
25367int
25368main ()
25369{
25370 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25371 ;
25372 return 0;
25373}
25374_ACEOF
25375rm -f conftest.$ac_objext conftest$ac_exeext
25376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25377 (eval $ac_link) 2>conftest.er1
a848cd7e 25378 ac_status=$?
ac1cb8d3
VS
25379 grep -v '^ *+' conftest.er1 >conftest.err
25380 rm -f conftest.er1
25381 cat conftest.err >&5
a848cd7e
SC
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } &&
6ebeb4c7 25384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 echo "*** The test program compiled, but did not run. This usually means"
25397 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25398 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25399 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25400 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25401 echo "*** is required on your system"
25402 echo "***"
25403 echo "*** If you have an old version installed, it is best to remove it, although"
25404 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25405 echo "***"
25406 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25407 echo "*** came with the system with the command"
25408 echo "***"
25409 echo "*** rpm --erase --nodeps gtk gtk-devel"
25410else
25411 echo "$as_me: failed program was:" >&5
25412sed 's/^/| /' conftest.$ac_ext >&5
25413
25414 echo "*** The test program failed to compile or link. See the file config.log for the"
25415 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25416 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25417 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25418fi
ac1cb8d3
VS
25419rm -f conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25421 CFLAGS="$ac_save_CFLAGS"
25422 LIBS="$ac_save_LIBS"
25423 fi
25424 fi
25425 GTK_CFLAGS=""
25426 GTK_LIBS=""
25427 :
25428 fi
25429
25430
25431 rm -f conf.gtktest
25432
25433
f34ca037 25434 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25435
25436# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25437if test "${with_gtk_prefix+set}" = set; then
25438 withval="$with_gtk_prefix"
25439 gtk_config_prefix="$withval"
25440else
25441 gtk_config_prefix=""
25442fi;
25443
25444# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25445if test "${with_gtk_exec_prefix+set}" = set; then
25446 withval="$with_gtk_exec_prefix"
25447 gtk_config_exec_prefix="$withval"
25448else
25449 gtk_config_exec_prefix=""
25450fi;
25451# Check whether --enable-gtktest or --disable-gtktest was given.
25452if test "${enable_gtktest+set}" = set; then
25453 enableval="$enable_gtktest"
25454
25455else
25456 enable_gtktest=yes
25457fi;
25458
25459 for module in . $GTK_MODULES
25460 do
25461 case "$module" in
25462 gthread)
25463 gtk_config_args="$gtk_config_args gthread"
25464 ;;
25465 esac
25466 done
25467
25468 if test x$gtk_config_exec_prefix != x ; then
25469 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25470 if test x${GTK_CONFIG+set} != xset ; then
25471 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25472 fi
25473 fi
25474 if test x$gtk_config_prefix != x ; then
25475 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25476 if test x${GTK_CONFIG+set} != xset ; then
25477 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25478 fi
25479 fi
25480
25481 # Extract the first word of "gtk-config", so it can be a program name with args.
25482set dummy gtk-config; ac_word=$2
25483echo "$as_me:$LINENO: checking for $ac_word" >&5
25484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25485if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25487else
25488 case $GTK_CONFIG in
25489 [\\/]* | ?:[\\/]*)
25490 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25491 ;;
25492 *)
25493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25494for as_dir in $PATH
25495do
25496 IFS=$as_save_IFS
25497 test -z "$as_dir" && as_dir=.
25498 for ac_exec_ext in '' $ac_executable_extensions; do
25499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25500 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25502 break 2
25503 fi
25504done
25505done
25506
25507 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25508 ;;
25509esac
25510fi
25511GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25512
25513if test -n "$GTK_CONFIG"; then
25514 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25515echo "${ECHO_T}$GTK_CONFIG" >&6
25516else
25517 echo "$as_me:$LINENO: result: no" >&5
25518echo "${ECHO_T}no" >&6
25519fi
25520
25521 min_gtk_version=1.2.3
25522 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25523echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25524 no_gtk=""
25525 if test "$GTK_CONFIG" = "no" ; then
25526 no_gtk=yes
25527 else
25528 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25529 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25530 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25532 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25533 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25534 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25535 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25536 if test "x$enable_gtktest" = "xyes" ; then
25537 ac_save_CFLAGS="$CFLAGS"
25538 ac_save_LIBS="$LIBS"
25539 CFLAGS="$CFLAGS $GTK_CFLAGS"
25540 LIBS="$GTK_LIBS $LIBS"
25541 rm -f conf.gtktest
25542 if test "$cross_compiling" = yes; then
25543 echo $ac_n "cross compiling; assumed OK... $ac_c"
25544else
25545 cat >conftest.$ac_ext <<_ACEOF
25546/* confdefs.h. */
25547_ACEOF
25548cat confdefs.h >>conftest.$ac_ext
25549cat >>conftest.$ac_ext <<_ACEOF
25550/* end confdefs.h. */
25551
25552#include <gtk/gtk.h>
25553#include <stdio.h>
25554#include <stdlib.h>
25555
25556int
25557main ()
25558{
25559 int major, minor, micro;
25560 char *tmp_version;
25561
25562 system ("touch conf.gtktest");
25563
25564 /* HP/UX 9 (%@#!) writes to sscanf strings */
25565 tmp_version = g_strdup("$min_gtk_version");
25566 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25567 printf("%s, bad version string\n", "$min_gtk_version");
25568 exit(1);
25569 }
25570
25571 if ((gtk_major_version != $gtk_config_major_version) ||
25572 (gtk_minor_version != $gtk_config_minor_version) ||
25573 (gtk_micro_version != $gtk_config_micro_version))
25574 {
25575 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25576 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25577 gtk_major_version, gtk_minor_version, gtk_micro_version);
25578 printf ("*** was found! If gtk-config was correct, then it is best\n");
25579 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25580 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25581 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25582 printf("*** required on your system.\n");
25583 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25584 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25585 printf("*** before re-running configure\n");
25586 }
25587#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25588 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25589 (gtk_minor_version != GTK_MINOR_VERSION) ||
25590 (gtk_micro_version != GTK_MICRO_VERSION))
25591 {
25592 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25593 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25594 printf("*** library (version %d.%d.%d)\n",
25595 gtk_major_version, gtk_minor_version, gtk_micro_version);
25596 }
25597#endif /* defined (GTK_MAJOR_VERSION) ... */
25598 else
25599 {
25600 if ((gtk_major_version > major) ||
25601 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25602 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25603 {
25604 return 0;
25605 }
25606 else
25607 {
25608 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25609 gtk_major_version, gtk_minor_version, gtk_micro_version);
25610 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25611 major, minor, micro);
25612 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25613 printf("***\n");
25614 printf("*** If you have already installed a sufficiently new version, this error\n");
25615 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25616 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25617 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25618 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25619 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25620 printf("*** so that the correct libraries are found at run-time))\n");
25621 }
25622 }
25623 return 1;
25624}
25625
25626_ACEOF
25627rm -f conftest$ac_exeext
25628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25629 (eval $ac_link) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25634 (eval $ac_try) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); }; }; then
25638 :
25639else
25640 echo "$as_me: program exited with status $ac_status" >&5
25641echo "$as_me: failed program was:" >&5
25642sed 's/^/| /' conftest.$ac_ext >&5
25643
25644( exit $ac_status )
25645no_gtk=yes
25646fi
ac1cb8d3 25647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25648fi
25649 CFLAGS="$ac_save_CFLAGS"
25650 LIBS="$ac_save_LIBS"
25651 fi
25652 fi
25653 if test "x$no_gtk" = x ; then
25654 echo "$as_me:$LINENO: result: yes" >&5
25655echo "${ECHO_T}yes" >&6
25656 wx_cv_lib_gtk=1.2.3
25657 else
25658 echo "$as_me:$LINENO: result: no" >&5
25659echo "${ECHO_T}no" >&6
25660 if test "$GTK_CONFIG" = "no" ; then
25661 echo "*** The gtk-config script installed by GTK could not be found"
25662 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25663 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25664 echo "*** full path to gtk-config."
25665 else
25666 if test -f conf.gtktest ; then
25667 :
25668 else
25669 echo "*** Could not run GTK test program, checking why..."
25670 CFLAGS="$CFLAGS $GTK_CFLAGS"
25671 LIBS="$LIBS $GTK_LIBS"
25672 cat >conftest.$ac_ext <<_ACEOF
25673/* confdefs.h. */
25674_ACEOF
25675cat confdefs.h >>conftest.$ac_ext
25676cat >>conftest.$ac_ext <<_ACEOF
25677/* end confdefs.h. */
25678
25679#include <gtk/gtk.h>
25680#include <stdio.h>
25681
25682int
25683main ()
25684{
25685 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690rm -f conftest.$ac_objext conftest$ac_exeext
25691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25692 (eval $ac_link) 2>conftest.er1
a848cd7e 25693 ac_status=$?
ac1cb8d3
VS
25694 grep -v '^ *+' conftest.er1 >conftest.err
25695 rm -f conftest.er1
25696 cat conftest.err >&5
a848cd7e
SC
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
6ebeb4c7 25699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; }; then
25711 echo "*** The test program compiled, but did not run. This usually means"
25712 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25713 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25714 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25715 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25716 echo "*** is required on your system"
25717 echo "***"
25718 echo "*** If you have an old version installed, it is best to remove it, although"
25719 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25720 echo "***"
25721 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25722 echo "*** came with the system with the command"
25723 echo "***"
25724 echo "*** rpm --erase --nodeps gtk gtk-devel"
25725else
25726 echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 echo "*** The test program failed to compile or link. See the file config.log for the"
25730 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25731 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25732 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25733fi
ac1cb8d3
VS
25734rm -f conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25736 CFLAGS="$ac_save_CFLAGS"
25737 LIBS="$ac_save_LIBS"
25738 fi
25739 fi
25740 GTK_CFLAGS=""
25741 GTK_LIBS=""
25742 :
25743 fi
25744
25745
25746 rm -f conf.gtktest
25747
f34ca037 25748 fi
a848cd7e
SC
25749 fi
25750 fi
25751
25752 if test -z "$wx_cv_lib_gtk"; then
25753 wx_cv_lib_gtk=none
25754 else
25755 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 25756 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
25757 fi
25758
25759
25760fi
25761
25762
25763 if test "$gtk_version_cached" = 1; then
25764 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25765echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25766 fi
25767
25768 case "$wx_cv_lib_gtk" in
25769 2.0) WXGTK20=1
25770 TOOLKIT_VERSION=2
25771 ;;
25772 1.2.7) WXGTK127=1
25773 WXGTK12=1
25774 ;;
25775 1.2.3) WXGTK12=1
25776 ;;
25777 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25778The development files for GTK+ were not found. For GTK+ 2, please
25779ensure that pkg-config is in the path and that gtk+-2.0.pc is
25780installed. For GTK+ 1.2 please check that gtk-config is in the path,
25781and that the version is 1.2.3 or above. Also check that the
25782libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25783--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25784 " >&5
25785echo "$as_me: error:
f597b41c
MW
25786The development files for GTK+ were not found. For GTK+ 2, please
25787ensure that pkg-config is in the path and that gtk+-2.0.pc is
25788installed. For GTK+ 1.2 please check that gtk-config is in the path,
25789and that the version is 1.2.3 or above. Also check that the
25790libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25791--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25792 " >&2;}
25793 { (exit 1); exit 1; }; }
25794 ;;
25795 esac
25796
25797 if test "$WXGTK20" = 1; then
304205f1
VS
25798 save_CFLAGS="$CFLAGS"
25799 save_LIBS="$LIBS"
9d271838 25800 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25801 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25802
d12aef51
VZ
25803 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25804echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25805 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
25806/* confdefs.h. */
25807_ACEOF
25808cat confdefs.h >>conftest.$ac_ext
25809cat >>conftest.$ac_ext <<_ACEOF
25810/* end confdefs.h. */
304205f1 25811
d12aef51 25812 #include <gtk/gtk.h>
304205f1 25813
d12aef51
VZ
25814int
25815main ()
25816{
304205f1 25817
d12aef51 25818 void *f = gtk_icon_size_lookup;
abc736fd
MW
25819
25820 ;
25821 return 0;
25822}
25823_ACEOF
25824rm -f conftest.$ac_objext
25825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25826 (eval $ac_compile) 2>conftest.er1
25827 ac_status=$?
25828 grep -v '^ *+' conftest.er1 >conftest.err
25829 rm -f conftest.er1
25830 cat conftest.err >&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); } &&
6ebeb4c7 25833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); }; } &&
25839 { ac_try='test -s conftest.$ac_objext'
25840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845
25846 echo "$as_me:$LINENO: result: no" >&5
25847echo "${ECHO_T}no" >&6
25848
25849else
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
25852
25853
25854 cat >>confdefs.h <<\_ACEOF
25855#define NEED_GTK_ICON_SIZE_LOOKUP 1
25856_ACEOF
25857
25858 echo "$as_me:$LINENO: result: yes" >&5
25859echo "${ECHO_T}yes" >&6
25860
25861fi
25862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25863
9755e73b
VS
25864 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25865echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25866 cat >conftest.$ac_ext <<_ACEOF
25867/* confdefs.h. */
25868_ACEOF
25869cat confdefs.h >>conftest.$ac_ext
25870cat >>conftest.$ac_ext <<_ACEOF
25871/* end confdefs.h. */
25872
25873 #include <gtk/gtk.h>
25874
25875int
25876main ()
25877{
25878
25879 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 25880 Not GTK+ 2.4
9755e73b
VS
25881 #endif
25882
25883 ;
25884 return 0;
25885}
25886_ACEOF
25887rm -f conftest.$ac_objext
25888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25889 (eval $ac_compile) 2>conftest.er1
25890 ac_status=$?
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } &&
6ebeb4c7 25896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } &&
25902 { ac_try='test -s conftest.$ac_objext'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908
25909 cat >>confdefs.h <<\_ACEOF
25910#define __WXGTK24__ 1
25911_ACEOF
25912
25913 echo "$as_me:$LINENO: result: yes" >&5
25914echo "${ECHO_T}yes" >&6
25915
25916else
25917 echo "$as_me: failed program was:" >&5
25918sed 's/^/| /' conftest.$ac_ext >&5
25919
25920
25921 echo "$as_me:$LINENO: result: no" >&5
25922echo "${ECHO_T}no" >&6
25923
25924fi
25925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926
304205f1
VS
25927 CFLAGS="$save_CFLAGS"
25928 LIBS="$save_LIBS"
a848cd7e
SC
25929 else
25930 if test "$wxUSE_UNICODE" = "yes"; then
25931 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25932echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25933 wxUSE_UNICODE=no
25934 fi
25935 fi
25936
25937 if test "$USE_DARWIN" != 1; then
25938
25939for ac_func in poll
25940do
25941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25942echo "$as_me:$LINENO: checking for $ac_func" >&5
25943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25944if eval "test \"\${$as_ac_var+set}\" = set"; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25946else
25947 cat >conftest.$ac_ext <<_ACEOF
25948/* confdefs.h. */
25949_ACEOF
25950cat confdefs.h >>conftest.$ac_ext
25951cat >>conftest.$ac_ext <<_ACEOF
25952/* end confdefs.h. */
ac1cb8d3
VS
25953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25955#define $ac_func innocuous_$ac_func
25956
a848cd7e
SC
25957/* System header to define __stub macros and hopefully few prototypes,
25958 which can conflict with char $ac_func (); below.
25959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25961
a848cd7e
SC
25962#ifdef __STDC__
25963# include <limits.h>
25964#else
25965# include <assert.h>
25966#endif
ac1cb8d3
VS
25967
25968#undef $ac_func
25969
a848cd7e
SC
25970/* Override any gcc2 internal prototype to avoid an error. */
25971#ifdef __cplusplus
25972extern "C"
25973{
25974#endif
25975/* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25977char $ac_func ();
25978/* The GNU C library defines this for functions which it implements
25979 to always fail with ENOSYS. Some functions are actually named
25980 something starting with __ and the normal name is an alias. */
25981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25982choke me
25983#else
25984char (*f) () = $ac_func;
25985#endif
25986#ifdef __cplusplus
25987}
25988#endif
25989
25990int
25991main ()
25992{
25993return f != $ac_func;
25994 ;
25995 return 0;
25996}
25997_ACEOF
25998rm -f conftest.$ac_objext conftest$ac_exeext
25999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26000 (eval $ac_link) 2>conftest.er1
a848cd7e 26001 ac_status=$?
ac1cb8d3
VS
26002 grep -v '^ *+' conftest.er1 >conftest.err
26003 rm -f conftest.er1
26004 cat conftest.err >&5
a848cd7e
SC
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
6ebeb4c7 26007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; } &&
26013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
26019 eval "$as_ac_var=yes"
26020else
26021 echo "$as_me: failed program was:" >&5
26022sed 's/^/| /' conftest.$ac_ext >&5
26023
26024eval "$as_ac_var=no"
26025fi
ac1cb8d3
VS
26026rm -f conftest.err conftest.$ac_objext \
26027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26028fi
26029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26031if test `eval echo '${'$as_ac_var'}'` = yes; then
26032 cat >>confdefs.h <<_ACEOF
26033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26034_ACEOF
26035
26036fi
26037done
26038
26039 fi
26040
26041 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26042 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26043
26044 AFMINSTALL=afminstall
26045 TOOLKIT=GTK
26046 GUIDIST=GTK_DIST
26047
26048 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26049echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26050if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26051 echo $ECHO_N "(cached) $ECHO_C" >&6
26052else
26053 ac_check_lib_save_LIBS=$LIBS
26054LIBS="-lgdk $LIBS"
26055cat >conftest.$ac_ext <<_ACEOF
26056/* confdefs.h. */
26057_ACEOF
26058cat confdefs.h >>conftest.$ac_ext
26059cat >>conftest.$ac_ext <<_ACEOF
26060/* end confdefs.h. */
26061
26062/* Override any gcc2 internal prototype to avoid an error. */
26063#ifdef __cplusplus
26064extern "C"
26065#endif
26066/* We use char because int might match the return type of a gcc2
26067 builtin and then its argument prototype would still apply. */
26068char gdk_im_open ();
26069int
26070main ()
26071{
26072gdk_im_open ();
26073 ;
26074 return 0;
26075}
26076_ACEOF
26077rm -f conftest.$ac_objext conftest$ac_exeext
26078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26079 (eval $ac_link) 2>conftest.er1
a848cd7e 26080 ac_status=$?
ac1cb8d3
VS
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
a848cd7e
SC
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } &&
6ebeb4c7 26086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; } &&
26092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; }; then
26098 ac_cv_lib_gdk_gdk_im_open=yes
26099else
26100 echo "$as_me: failed program was:" >&5
26101sed 's/^/| /' conftest.$ac_ext >&5
26102
26103ac_cv_lib_gdk_gdk_im_open=no
26104fi
ac1cb8d3
VS
26105rm -f conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26107LIBS=$ac_check_lib_save_LIBS
26108fi
26109echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26110echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26111if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26112 cat >>confdefs.h <<\_ACEOF
26113#define HAVE_XIM 1
26114_ACEOF
26115
26116fi
26117
26118
26119
26120 if test "$wxUSE_GPE" = "yes"; then
26121 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26122echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26123
26124ac_find_libraries=
26125for ac_dir in $SEARCH_LIB /usr/lib;
26126 do
3eca31dc 26127 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26128 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26129 ac_find_libraries=$ac_dir
26130 break 2
26131 fi
26132 done
26133 done
26134
26135 if test "$ac_find_libraries" != "" ; then
26136
26137 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26138 result=$?
26139 if test $result = 0; then
26140 ac_path_to_link=""
26141 else
26142 ac_path_to_link=" -L$ac_find_libraries"
26143 fi
26144
26145 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26146 WXGPE=1
26147 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26148echo "${ECHO_T}found at $ac_find_libraries" >&6
26149 else
26150 echo "$as_me:$LINENO: result: not found" >&5
26151echo "${ECHO_T}not found" >&6
26152 fi
26153
26154 fi
26155 fi
26156
26157 if test "$wxUSE_MGL" = 1; then
26158 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26159echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26160 if test "x$MGL_ROOT" = x ; then
26161 echo "$as_me:$LINENO: result: not found" >&5
26162echo "${ECHO_T}not found" >&6
26163 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26164echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26165 { (exit 1); exit 1; }; }
26166 else
26167 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26168echo "${ECHO_T}$MGL_ROOT" >&6
26169 fi
26170
26171 echo "$as_me:$LINENO: checking for libmgl location" >&5
26172echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26173 case "${host}" in
26174 *-*-linux* )
26175 if test "x$wxUSE_SHARED" = xyes ; then
26176 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26177 else
26178 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26179 fi
26180 ;;
26181 *-pc-msdosdjgpp )
26182 mgl_os_candidates="dos32/dj2"
26183 ;;
26184 *)
26185 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26186echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26187 { (exit 1); exit 1; }; }
26188 esac
26189
26190 mgl_lib_type=""
26191 mgl_os=""
26192
26193 for mgl_os_i in $mgl_os_candidates ; do
26194 if test "x$mgl_os" = x ; then
26195 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26196 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26197 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26198 mgl_lib_type=debug
26199 mgl_os=$mgl_os_i
26200 fi
26201 fi
26202 if test "x$mgl_lib_type" = x ; then
26203 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26204 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26205 mgl_lib_type=release
26206 mgl_os=$mgl_os_i
26207 fi
26208 fi
26209 fi
26210 done
26211
26212 if test "x$mgl_os" = x ; then
26213 echo "$as_me:$LINENO: result: not found" >&5
26214echo "${ECHO_T}not found" >&6
26215 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26216echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26217 { (exit 1); exit 1; }; }
26218 fi
26219 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26220echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26221
26222 wxUSE_UNIVERSAL="yes"
26223
26224 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26225 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26226
26227 AFMINSTALL=afminstall
26228 TOOLKIT=MGL
26229 GUIDIST=MGL_DIST
26230 fi
26231
26232 if test "$wxUSE_MICROWIN" = 1; then
26233 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26234echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26235 if test "x$MICROWINDOWS" = x ; then
26236 echo "$as_me:$LINENO: result: not found" >&5
26237echo "${ECHO_T}not found" >&6
26238 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26239echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26240 { (exit 1); exit 1; }; }
26241 else
26242 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26243echo "${ECHO_T}$MICROWINDOWS" >&6
26244 fi
26245
26246 if test -f $MICROWINDOWS/lib/libmwin.a; then
26247 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26248echo "${ECHO_T}MicroWindows' libraries found." >&6
26249 else
26250 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26251echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26252 { (exit 1); exit 1; }; }
26253 fi
26254
26255 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26256 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26257
26258 wxUSE_UNIVERSAL="yes"
26259
26260 AFMINSTALL=afminstall
26261 TOOLKIT=MICROWIN
26262 GUIDIST=MICROWIN_DIST
26263
26264 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26265 fi
26266
74b84332 26267 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26268
26269if test "x$ac_path_x_has_been_run" != xyes; then
26270 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26271echo $ECHO_N "checking for X... $ECHO_C" >&6
26272
6ebeb4c7 26273ac_path_x_has_been_run=yes
a848cd7e
SC
26274
26275# Check whether --with-x or --without-x was given.
26276if test "${with_x+set}" = set; then
26277 withval="$with_x"
26278
26279fi;
26280# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26281if test "x$with_x" = xno; then
26282 # The user explicitly disabled X.
26283 have_x=disabled
26284else
26285 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26286 # Both variables are already set.
26287 have_x=yes
26288 else
26289 if test "${ac_cv_have_x+set}" = set; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
26291else
26292 # One or both of the vars are not set, and there is no cached value.
26293ac_x_includes=no ac_x_libraries=no
26294rm -fr conftest.dir
26295if mkdir conftest.dir; then
26296 cd conftest.dir
26297 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26298 cat >Imakefile <<'_ACEOF'
26299acfindx:
26300 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26301_ACEOF
26302 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26303 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26304 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26306 for ac_extension in a so sl; do
26307 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26308 test -f $ac_im_libdir/libX11.$ac_extension; then
26309 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26310 fi
26311 done
26312 # Screen out bogus values from the imake configuration. They are
26313 # bogus both because they are the default anyway, and because
26314 # using them would break gcc on systems where it needs fixed includes.
26315 case $ac_im_incroot in
26316 /usr/include) ;;
26317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26318 esac
26319 case $ac_im_usrlibdir in
26320 /usr/lib | /lib) ;;
26321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26322 esac
26323 fi
26324 cd ..
26325 rm -fr conftest.dir
26326fi
26327
26328# Standard set of common directories for X headers.
26329# Check X11 before X11Rn because it is often a symlink to the current release.
26330ac_x_header_dirs='
26331/usr/X11/include
26332/usr/X11R6/include
26333/usr/X11R5/include
26334/usr/X11R4/include
26335
26336/usr/include/X11
26337/usr/include/X11R6
26338/usr/include/X11R5
26339/usr/include/X11R4
26340
26341/usr/local/X11/include
26342/usr/local/X11R6/include
26343/usr/local/X11R5/include
26344/usr/local/X11R4/include
26345
26346/usr/local/include/X11
26347/usr/local/include/X11R6
26348/usr/local/include/X11R5
26349/usr/local/include/X11R4
26350
26351/usr/X386/include
26352/usr/x386/include
26353/usr/XFree86/include/X11
26354
26355/usr/include
26356/usr/local/include
26357/usr/unsupported/include
26358/usr/athena/include
26359/usr/local/x11r5/include
26360/usr/lpp/Xamples/include
26361
26362/usr/openwin/include
26363/usr/openwin/share/include'
26364
26365if test "$ac_x_includes" = no; then
6ebeb4c7 26366 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26367 # First, try using that file with no special directory specified.
26368 cat >conftest.$ac_ext <<_ACEOF
26369/* confdefs.h. */
26370_ACEOF
26371cat confdefs.h >>conftest.$ac_ext
26372cat >>conftest.$ac_ext <<_ACEOF
26373/* end confdefs.h. */
26374#include <X11/Intrinsic.h>
26375_ACEOF
26376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } >/dev/null; then
26384 if test -s conftest.err; then
26385 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26387 else
26388 ac_cpp_err=
26389 fi
26390else
26391 ac_cpp_err=yes
26392fi
26393if test -z "$ac_cpp_err"; then
26394 # We can compile using X headers with no special include directory.
26395ac_x_includes=
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400 for ac_dir in $ac_x_header_dirs; do
26401 if test -r "$ac_dir/X11/Intrinsic.h"; then
26402 ac_x_includes=$ac_dir
26403 break
26404 fi
26405done
26406fi
26407rm -f conftest.err conftest.$ac_ext
26408fi # $ac_x_includes = no
26409
26410if test "$ac_x_libraries" = no; then
26411 # Check for the libraries.
26412 # See if we find them without any special options.
26413 # Don't add to $LIBS permanently.
26414 ac_save_LIBS=$LIBS
26415 LIBS="-lXt $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26417/* confdefs.h. */
26418_ACEOF
26419cat confdefs.h >>conftest.$ac_ext
26420cat >>conftest.$ac_ext <<_ACEOF
26421/* end confdefs.h. */
26422#include <X11/Intrinsic.h>
26423int
26424main ()
26425{
26426XtMalloc (0)
26427 ;
26428 return 0;
26429}
26430_ACEOF
26431rm -f conftest.$ac_objext conftest$ac_exeext
26432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26433 (eval $ac_link) 2>conftest.er1
a848cd7e 26434 ac_status=$?
ac1cb8d3
VS
26435 grep -v '^ *+' conftest.er1 >conftest.err
26436 rm -f conftest.er1
26437 cat conftest.err >&5
a848cd7e
SC
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
6ebeb4c7 26440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; } &&
26446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; }; then
26452 LIBS=$ac_save_LIBS
26453# We can link X programs with no special library path.
26454ac_x_libraries=
26455else
26456 echo "$as_me: failed program was:" >&5
26457sed 's/^/| /' conftest.$ac_ext >&5
26458
26459LIBS=$ac_save_LIBS
26460for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26461do
26462 # Don't even attempt the hair of trying to link an X program!
26463 for ac_extension in a so sl; do
26464 if test -r $ac_dir/libXt.$ac_extension; then
26465 ac_x_libraries=$ac_dir
26466 break 2
26467 fi
26468 done
26469done
26470fi
ac1cb8d3
VS
26471rm -f conftest.err conftest.$ac_objext \
26472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26473fi # $ac_x_libraries = no
26474
26475if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26476 # Didn't find X anywhere. Cache the known absence of X.
26477 ac_cv_have_x="have_x=no"
26478else
26479 # Record where we found X for the cache.
26480 ac_cv_have_x="have_x=yes \
ac1cb8d3 26481 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26482fi
26483fi
26484
26485 fi
26486 eval "$ac_cv_have_x"
26487fi # $with_x != no
26488
26489if test "$have_x" != yes; then
26490 echo "$as_me:$LINENO: result: $have_x" >&5
26491echo "${ECHO_T}$have_x" >&6
26492 no_x=yes
26493else
26494 # If each of the values was on the command line, it overrides each guess.
26495 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26496 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26497 # Update the cache value to reflect the command line values.
26498 ac_cv_have_x="have_x=yes \
26499 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26500 # It might be that x_includes is empty (headers are found in the
26501 # standard search path. Then output the corresponding message
26502 ac_out_x_includes=$x_includes
26503 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26504 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26505echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26506fi
26507
6ebeb4c7 26508fi
a848cd7e
SC
26509if test "$no_x" = yes; then
26510 # Not all programs may use this symbol, but it does not hurt to define it.
26511
26512cat >>confdefs.h <<\_ACEOF
26513#define X_DISPLAY_MISSING 1
26514_ACEOF
26515
26516 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26517else
26518 if test -n "$x_includes"; then
26519 X_CFLAGS="$X_CFLAGS -I$x_includes"
26520 fi
26521
26522 # It would also be nice to do this for all -L options, not just this one.
26523 if test -n "$x_libraries"; then
26524 X_LIBS="$X_LIBS -L$x_libraries"
26525 # For Solaris; some versions of Sun CC require a space after -R and
26526 # others require no space. Words are not sufficient . . . .
26527 case `(uname -sr) 2>/dev/null` in
26528 "SunOS 5"*)
26529 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26530echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26531 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26532 cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538
26539int
26540main ()
26541{
26542
26543 ;
26544 return 0;
26545}
26546_ACEOF
26547rm -f conftest.$ac_objext conftest$ac_exeext
26548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26549 (eval $ac_link) 2>conftest.er1
a848cd7e 26550 ac_status=$?
ac1cb8d3
VS
26551 grep -v '^ *+' conftest.er1 >conftest.err
26552 rm -f conftest.er1
26553 cat conftest.err >&5
a848cd7e
SC
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
6ebeb4c7 26556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
26568 ac_R_nospace=yes
26569else
26570 echo "$as_me: failed program was:" >&5
26571sed 's/^/| /' conftest.$ac_ext >&5
26572
26573ac_R_nospace=no
26574fi
ac1cb8d3
VS
26575rm -f conftest.err conftest.$ac_objext \
26576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26577 if test $ac_R_nospace = yes; then
26578 echo "$as_me:$LINENO: result: no" >&5
26579echo "${ECHO_T}no" >&6
26580 X_LIBS="$X_LIBS -R$x_libraries"
26581 else
26582 LIBS="$ac_xsave_LIBS -R $x_libraries"
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
26589
26590int
26591main ()
26592{
26593
26594 ;
26595 return 0;
26596}
26597_ACEOF
26598rm -f conftest.$ac_objext conftest$ac_exeext
26599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26600 (eval $ac_link) 2>conftest.er1
a848cd7e 26601 ac_status=$?
ac1cb8d3
VS
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
a848cd7e
SC
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
6ebeb4c7 26607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; } &&
26613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; }; then
26619 ac_R_space=yes
26620else
26621 echo "$as_me: failed program was:" >&5
26622sed 's/^/| /' conftest.$ac_ext >&5
26623
26624ac_R_space=no
26625fi
ac1cb8d3
VS
26626rm -f conftest.err conftest.$ac_objext \
26627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26628 if test $ac_R_space = yes; then
26629 echo "$as_me:$LINENO: result: yes" >&5
26630echo "${ECHO_T}yes" >&6
26631 X_LIBS="$X_LIBS -R $x_libraries"
26632 else
26633 echo "$as_me:$LINENO: result: neither works" >&5
26634echo "${ECHO_T}neither works" >&6
26635 fi
26636 fi
26637 LIBS=$ac_xsave_LIBS
26638 esac
26639 fi
26640
26641 # Check for system-dependent libraries X programs must link with.
26642 # Do this before checking for the system-independent R6 libraries
26643 # (-lICE), since we may need -lsocket or whatever for X linking.
26644
26645 if test "$ISC" = yes; then
26646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26647 else
26648 # Martyn Johnson says this is needed for Ultrix, if the X
26649 # libraries were built with DECnet support. And Karl Berry says
26650 # the Alpha needs dnet_stub (dnet does not exist).
26651 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26652 cat >conftest.$ac_ext <<_ACEOF
26653/* confdefs.h. */
26654_ACEOF
26655cat confdefs.h >>conftest.$ac_ext
26656cat >>conftest.$ac_ext <<_ACEOF
26657/* end confdefs.h. */
26658
26659/* Override any gcc2 internal prototype to avoid an error. */
26660#ifdef __cplusplus
26661extern "C"
26662#endif
26663/* We use char because int might match the return type of a gcc2
26664 builtin and then its argument prototype would still apply. */
26665char XOpenDisplay ();
26666int
26667main ()
26668{
26669XOpenDisplay ();
26670 ;
26671 return 0;
26672}
26673_ACEOF
26674rm -f conftest.$ac_objext conftest$ac_exeext
26675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26676 (eval $ac_link) 2>conftest.er1
a848cd7e 26677 ac_status=$?
ac1cb8d3
VS
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
a848cd7e
SC
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
6ebeb4c7 26683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; } &&
26689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 :
26696else
26697 echo "$as_me: failed program was:" >&5
26698sed 's/^/| /' conftest.$ac_ext >&5
26699
26700echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26701echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26702if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 ac_check_lib_save_LIBS=$LIBS
26706LIBS="-ldnet $LIBS"
26707cat >conftest.$ac_ext <<_ACEOF
26708/* confdefs.h. */
26709_ACEOF
26710cat confdefs.h >>conftest.$ac_ext
26711cat >>conftest.$ac_ext <<_ACEOF
26712/* end confdefs.h. */
26713
26714/* Override any gcc2 internal prototype to avoid an error. */
26715#ifdef __cplusplus
26716extern "C"
26717#endif
26718/* We use char because int might match the return type of a gcc2
26719 builtin and then its argument prototype would still apply. */
26720char dnet_ntoa ();
26721int
26722main ()
26723{
26724dnet_ntoa ();
26725 ;
26726 return 0;
26727}
26728_ACEOF
26729rm -f conftest.$ac_objext conftest$ac_exeext
26730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26731 (eval $ac_link) 2>conftest.er1
a848cd7e 26732 ac_status=$?
ac1cb8d3
VS
26733 grep -v '^ *+' conftest.er1 >conftest.err
26734 rm -f conftest.er1
26735 cat conftest.err >&5
a848cd7e
SC
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } &&
6ebeb4c7 26738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; } &&
26744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750 ac_cv_lib_dnet_dnet_ntoa=yes
26751else
26752 echo "$as_me: failed program was:" >&5
26753sed 's/^/| /' conftest.$ac_ext >&5
26754
26755ac_cv_lib_dnet_dnet_ntoa=no
26756fi
ac1cb8d3
VS
26757rm -f conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26759LIBS=$ac_check_lib_save_LIBS
26760fi
26761echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26762echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26763if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26764 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26765fi
26766
26767 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26768 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26769echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26770if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-ldnet_stub $LIBS"
26775cat >conftest.$ac_ext <<_ACEOF
26776/* confdefs.h. */
26777_ACEOF
26778cat confdefs.h >>conftest.$ac_ext
26779cat >>conftest.$ac_ext <<_ACEOF
26780/* end confdefs.h. */
26781
26782/* Override any gcc2 internal prototype to avoid an error. */
26783#ifdef __cplusplus
26784extern "C"
26785#endif
26786/* We use char because int might match the return type of a gcc2
26787 builtin and then its argument prototype would still apply. */
26788char dnet_ntoa ();
26789int
26790main ()
26791{
26792dnet_ntoa ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext conftest$ac_exeext
26798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26799 (eval $ac_link) 2>conftest.er1
a848cd7e 26800 ac_status=$?
ac1cb8d3
VS
26801 grep -v '^ *+' conftest.er1 >conftest.err
26802 rm -f conftest.er1
26803 cat conftest.err >&5
a848cd7e
SC
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); } &&
6ebeb4c7 26806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26819else
26820 echo "$as_me: failed program was:" >&5
26821sed 's/^/| /' conftest.$ac_ext >&5
26822
26823ac_cv_lib_dnet_stub_dnet_ntoa=no
26824fi
ac1cb8d3
VS
26825rm -f conftest.err conftest.$ac_objext \
26826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26827LIBS=$ac_check_lib_save_LIBS
26828fi
26829echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26830echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26831if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26833fi
26834
26835 fi
26836fi
ac1cb8d3
VS
26837rm -f conftest.err conftest.$ac_objext \
26838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26839 LIBS="$ac_xsave_LIBS"
26840
26841 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26842 # to get the SysV transport functions.
26843 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26844 # needs -lnsl.
26845 # The nsl library prevents programs from opening the X display
26846 # on Irix 5.2, according to T.E. Dickey.
26847 # The functions gethostbyname, getservbyname, and inet_addr are
26848 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26849 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26850echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26851if test "${ac_cv_func_gethostbyname+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853else
26854 cat >conftest.$ac_ext <<_ACEOF
26855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
ac1cb8d3
VS
26860/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26862#define gethostbyname innocuous_gethostbyname
26863
a848cd7e
SC
26864/* System header to define __stub macros and hopefully few prototypes,
26865 which can conflict with char gethostbyname (); below.
26866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26867 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26868
a848cd7e
SC
26869#ifdef __STDC__
26870# include <limits.h>
26871#else
26872# include <assert.h>
26873#endif
ac1cb8d3
VS
26874
26875#undef gethostbyname
26876
a848cd7e
SC
26877/* Override any gcc2 internal prototype to avoid an error. */
26878#ifdef __cplusplus
26879extern "C"
26880{
26881#endif
26882/* We use char because int might match the return type of a gcc2
26883 builtin and then its argument prototype would still apply. */
26884char gethostbyname ();
26885/* The GNU C library defines this for functions which it implements
26886 to always fail with ENOSYS. Some functions are actually named
26887 something starting with __ and the normal name is an alias. */
26888#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26889choke me
26890#else
26891char (*f) () = gethostbyname;
26892#endif
26893#ifdef __cplusplus
26894}
26895#endif
26896
26897int
26898main ()
26899{
26900return f != gethostbyname;
26901 ;
26902 return 0;
26903}
26904_ACEOF
26905rm -f conftest.$ac_objext conftest$ac_exeext
26906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26907 (eval $ac_link) 2>conftest.er1
a848cd7e 26908 ac_status=$?
ac1cb8d3
VS
26909 grep -v '^ *+' conftest.er1 >conftest.err
26910 rm -f conftest.er1
26911 cat conftest.err >&5
a848cd7e
SC
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
6ebeb4c7 26914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_func_gethostbyname=yes
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931ac_cv_func_gethostbyname=no
26932fi
ac1cb8d3
VS
26933rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26935fi
26936echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26937echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26938
26939 if test $ac_cv_func_gethostbyname = no; then
26940 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26941echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26942if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26944else
26945 ac_check_lib_save_LIBS=$LIBS
26946LIBS="-lnsl $LIBS"
26947cat >conftest.$ac_ext <<_ACEOF
26948/* confdefs.h. */
26949_ACEOF
26950cat confdefs.h >>conftest.$ac_ext
26951cat >>conftest.$ac_ext <<_ACEOF
26952/* end confdefs.h. */
26953
26954/* Override any gcc2 internal prototype to avoid an error. */
26955#ifdef __cplusplus
26956extern "C"
26957#endif
26958/* We use char because int might match the return type of a gcc2
26959 builtin and then its argument prototype would still apply. */
26960char gethostbyname ();
26961int
26962main ()
26963{
26964gethostbyname ();
26965 ;
26966 return 0;
26967}
26968_ACEOF
26969rm -f conftest.$ac_objext conftest$ac_exeext
26970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26971 (eval $ac_link) 2>conftest.er1
26972 ac_status=$?
26973 grep -v '^ *+' conftest.er1 >conftest.err
26974 rm -f conftest.er1
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
6ebeb4c7 26978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest$ac_exeext'
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26990 ac_cv_lib_nsl_gethostbyname=yes
26991else
26992 echo "$as_me: failed program was:" >&5
26993sed 's/^/| /' conftest.$ac_ext >&5
26994
26995ac_cv_lib_nsl_gethostbyname=no
26996fi
26997rm -f conftest.err conftest.$ac_objext \
26998 conftest$ac_exeext conftest.$ac_ext
26999LIBS=$ac_check_lib_save_LIBS
27000fi
27001echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27002echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27003if test $ac_cv_lib_nsl_gethostbyname = yes; then
27004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27005fi
27006
27007 if test $ac_cv_lib_nsl_gethostbyname = no; then
27008 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27009echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27010if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27012else
27013 ac_check_lib_save_LIBS=$LIBS
27014LIBS="-lbsd $LIBS"
27015cat >conftest.$ac_ext <<_ACEOF
27016/* confdefs.h. */
27017_ACEOF
27018cat confdefs.h >>conftest.$ac_ext
27019cat >>conftest.$ac_ext <<_ACEOF
27020/* end confdefs.h. */
27021
27022/* Override any gcc2 internal prototype to avoid an error. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026/* We use char because int might match the return type of a gcc2
27027 builtin and then its argument prototype would still apply. */
27028char gethostbyname ();
27029int
27030main ()
27031{
27032gethostbyname ();
27033 ;
27034 return 0;
27035}
27036_ACEOF
27037rm -f conftest.$ac_objext conftest$ac_exeext
27038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27039 (eval $ac_link) 2>conftest.er1
a848cd7e 27040 ac_status=$?
ac1cb8d3
VS
27041 grep -v '^ *+' conftest.er1 >conftest.err
27042 rm -f conftest.er1
27043 cat conftest.err >&5
a848cd7e
SC
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
6ebeb4c7 27046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27051 (exit $ac_status); }; } &&
27052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; }; then
27058 ac_cv_lib_bsd_gethostbyname=yes
27059else
27060 echo "$as_me: failed program was:" >&5
27061sed 's/^/| /' conftest.$ac_ext >&5
27062
27063ac_cv_lib_bsd_gethostbyname=no
27064fi
ac1cb8d3
VS
27065rm -f conftest.err conftest.$ac_objext \
27066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27067LIBS=$ac_check_lib_save_LIBS
27068fi
27069echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27070echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27071if test $ac_cv_lib_bsd_gethostbyname = yes; then
27072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27073fi
27074
27075 fi
27076 fi
27077
27078 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27079 # socket/setsockopt and other routines are undefined under SCO ODT
27080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27081 # on later versions), says Simon Leinen: it contains gethostby*
27082 # variants that don't use the name server (or something). -lsocket
27083 # must be given before -lnsl if both are needed. We assume that
27084 # if connect needs -lnsl, so does gethostbyname.
27085 echo "$as_me:$LINENO: checking for connect" >&5
27086echo $ECHO_N "checking for connect... $ECHO_C" >&6
27087if test "${ac_cv_func_connect+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090 cat >conftest.$ac_ext <<_ACEOF
27091/* confdefs.h. */
27092_ACEOF
27093cat confdefs.h >>conftest.$ac_ext
27094cat >>conftest.$ac_ext <<_ACEOF
27095/* end confdefs.h. */
ac1cb8d3
VS
27096/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27098#define connect innocuous_connect
27099
a848cd7e
SC
27100/* System header to define __stub macros and hopefully few prototypes,
27101 which can conflict with char connect (); below.
27102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27103 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27104
a848cd7e
SC
27105#ifdef __STDC__
27106# include <limits.h>
27107#else
27108# include <assert.h>
27109#endif
ac1cb8d3
VS
27110
27111#undef connect
27112
a848cd7e
SC
27113/* Override any gcc2 internal prototype to avoid an error. */
27114#ifdef __cplusplus
27115extern "C"
27116{
27117#endif
27118/* We use char because int might match the return type of a gcc2
27119 builtin and then its argument prototype would still apply. */
27120char connect ();
27121/* The GNU C library defines this for functions which it implements
27122 to always fail with ENOSYS. Some functions are actually named
27123 something starting with __ and the normal name is an alias. */
27124#if defined (__stub_connect) || defined (__stub___connect)
27125choke me
27126#else
27127char (*f) () = connect;
27128#endif
27129#ifdef __cplusplus
27130}
27131#endif
27132
27133int
27134main ()
27135{
27136return f != connect;
27137 ;
27138 return 0;
27139}
27140_ACEOF
27141rm -f conftest.$ac_objext conftest$ac_exeext
27142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27143 (eval $ac_link) 2>conftest.er1
a848cd7e 27144 ac_status=$?
ac1cb8d3
VS
27145 grep -v '^ *+' conftest.er1 >conftest.err
27146 rm -f conftest.er1
27147 cat conftest.err >&5
a848cd7e
SC
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
6ebeb4c7 27150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; } &&
27156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27159 ac_status=$?
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; }; then
27162 ac_cv_func_connect=yes
27163else
27164 echo "$as_me: failed program was:" >&5
27165sed 's/^/| /' conftest.$ac_ext >&5
27166
27167ac_cv_func_connect=no
27168fi
ac1cb8d3
VS
27169rm -f conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27171fi
27172echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27173echo "${ECHO_T}$ac_cv_func_connect" >&6
27174
27175 if test $ac_cv_func_connect = no; then
27176 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27177echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27178if test "${ac_cv_lib_socket_connect+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
27182LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27183cat >conftest.$ac_ext <<_ACEOF
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
27189
27190/* Override any gcc2 internal prototype to avoid an error. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194/* We use char because int might match the return type of a gcc2
27195 builtin and then its argument prototype would still apply. */
27196char connect ();
27197int
27198main ()
27199{
27200connect ();
27201 ;
27202 return 0;
27203}
27204_ACEOF
27205rm -f conftest.$ac_objext conftest$ac_exeext
27206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27207 (eval $ac_link) 2>conftest.er1
a848cd7e 27208 ac_status=$?
ac1cb8d3
VS
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
a848cd7e
SC
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
6ebeb4c7 27214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; } &&
27220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226 ac_cv_lib_socket_connect=yes
27227else
27228 echo "$as_me: failed program was:" >&5
27229sed 's/^/| /' conftest.$ac_ext >&5
27230
27231ac_cv_lib_socket_connect=no
27232fi
ac1cb8d3
VS
27233rm -f conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27235LIBS=$ac_check_lib_save_LIBS
27236fi
27237echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27238echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27239if test $ac_cv_lib_socket_connect = yes; then
27240 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27241fi
27242
27243 fi
27244
27245 # Guillermo Gomez says -lposix is necessary on A/UX.
27246 echo "$as_me:$LINENO: checking for remove" >&5
27247echo $ECHO_N "checking for remove... $ECHO_C" >&6
27248if test "${ac_cv_func_remove+set}" = set; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27250else
27251 cat >conftest.$ac_ext <<_ACEOF
27252/* confdefs.h. */
27253_ACEOF
27254cat confdefs.h >>conftest.$ac_ext
27255cat >>conftest.$ac_ext <<_ACEOF
27256/* end confdefs.h. */
ac1cb8d3
VS
27257/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27259#define remove innocuous_remove
27260
a848cd7e
SC
27261/* System header to define __stub macros and hopefully few prototypes,
27262 which can conflict with char remove (); below.
27263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27265
a848cd7e
SC
27266#ifdef __STDC__
27267# include <limits.h>
27268#else
27269# include <assert.h>
27270#endif
ac1cb8d3
VS
27271
27272#undef remove
27273
a848cd7e
SC
27274/* Override any gcc2 internal prototype to avoid an error. */
27275#ifdef __cplusplus
27276extern "C"
27277{
27278#endif
27279/* We use char because int might match the return type of a gcc2
27280 builtin and then its argument prototype would still apply. */
27281char remove ();
27282/* The GNU C library defines this for functions which it implements
27283 to always fail with ENOSYS. Some functions are actually named
27284 something starting with __ and the normal name is an alias. */
27285#if defined (__stub_remove) || defined (__stub___remove)
27286choke me
27287#else
27288char (*f) () = remove;
27289#endif
27290#ifdef __cplusplus
27291}
27292#endif
27293
27294int
27295main ()
27296{
27297return f != remove;
27298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext conftest$ac_exeext
27303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27304 (eval $ac_link) 2>conftest.er1
a848cd7e 27305 ac_status=$?
ac1cb8d3
VS
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
a848cd7e
SC
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
6ebeb4c7 27311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; } &&
27317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
27323 ac_cv_func_remove=yes
27324else
27325 echo "$as_me: failed program was:" >&5
27326sed 's/^/| /' conftest.$ac_ext >&5
27327
27328ac_cv_func_remove=no
27329fi
ac1cb8d3
VS
27330rm -f conftest.err conftest.$ac_objext \
27331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27332fi
27333echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27334echo "${ECHO_T}$ac_cv_func_remove" >&6
27335
27336 if test $ac_cv_func_remove = no; then
27337 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27338echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27339if test "${ac_cv_lib_posix_remove+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 ac_check_lib_save_LIBS=$LIBS
27343LIBS="-lposix $LIBS"
27344cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h. */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h. */
27350
27351/* Override any gcc2 internal prototype to avoid an error. */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355/* We use char because int might match the return type of a gcc2
27356 builtin and then its argument prototype would still apply. */
27357char remove ();
27358int
27359main ()
27360{
27361remove ();
27362 ;
27363 return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext conftest$ac_exeext
27367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27368 (eval $ac_link) 2>conftest.er1
a848cd7e 27369 ac_status=$?
ac1cb8d3
VS
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
a848cd7e
SC
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
6ebeb4c7 27375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_cv_lib_posix_remove=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392ac_cv_lib_posix_remove=no
27393fi
ac1cb8d3
VS
27394rm -f conftest.err conftest.$ac_objext \
27395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27396LIBS=$ac_check_lib_save_LIBS
27397fi
27398echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27399echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27400if test $ac_cv_lib_posix_remove = yes; then
27401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27402fi
27403
27404 fi
27405
27406 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27407 echo "$as_me:$LINENO: checking for shmat" >&5
27408echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27409if test "${ac_cv_func_shmat+set}" = set; then
27410 echo $ECHO_N "(cached) $ECHO_C" >&6
27411else
27412 cat >conftest.$ac_ext <<_ACEOF
27413/* confdefs.h. */
27414_ACEOF
27415cat confdefs.h >>conftest.$ac_ext
27416cat >>conftest.$ac_ext <<_ACEOF
27417/* end confdefs.h. */
ac1cb8d3
VS
27418/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27420#define shmat innocuous_shmat
27421
a848cd7e
SC
27422/* System header to define __stub macros and hopefully few prototypes,
27423 which can conflict with char shmat (); below.
27424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27426
a848cd7e
SC
27427#ifdef __STDC__
27428# include <limits.h>
27429#else
27430# include <assert.h>
27431#endif
ac1cb8d3
VS
27432
27433#undef shmat
27434
a848cd7e
SC
27435/* Override any gcc2 internal prototype to avoid an error. */
27436#ifdef __cplusplus
27437extern "C"
27438{
27439#endif
27440/* We use char because int might match the return type of a gcc2
27441 builtin and then its argument prototype would still apply. */
27442char shmat ();
27443/* The GNU C library defines this for functions which it implements
27444 to always fail with ENOSYS. Some functions are actually named
27445 something starting with __ and the normal name is an alias. */
27446#if defined (__stub_shmat) || defined (__stub___shmat)
27447choke me
27448#else
27449char (*f) () = shmat;
27450#endif
27451#ifdef __cplusplus
27452}
27453#endif
27454
27455int
27456main ()
27457{
27458return f != shmat;
27459 ;
27460 return 0;
27461}
27462_ACEOF
27463rm -f conftest.$ac_objext conftest$ac_exeext
27464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27465 (eval $ac_link) 2>conftest.er1
a848cd7e 27466 ac_status=$?
ac1cb8d3
VS
27467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
a848cd7e
SC
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
6ebeb4c7 27472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; } &&
27478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 ac_cv_func_shmat=yes
27485else
27486 echo "$as_me: failed program was:" >&5
27487sed 's/^/| /' conftest.$ac_ext >&5
27488
27489ac_cv_func_shmat=no
27490fi
ac1cb8d3
VS
27491rm -f conftest.err conftest.$ac_objext \
27492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27493fi
27494echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27495echo "${ECHO_T}$ac_cv_func_shmat" >&6
27496
27497 if test $ac_cv_func_shmat = no; then
27498 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27499echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27500if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 ac_check_lib_save_LIBS=$LIBS
27504LIBS="-lipc $LIBS"
27505cat >conftest.$ac_ext <<_ACEOF
27506/* confdefs.h. */
27507_ACEOF
27508cat confdefs.h >>conftest.$ac_ext
27509cat >>conftest.$ac_ext <<_ACEOF
27510/* end confdefs.h. */
27511
27512/* Override any gcc2 internal prototype to avoid an error. */
27513#ifdef __cplusplus
27514extern "C"
27515#endif
27516/* We use char because int might match the return type of a gcc2
27517 builtin and then its argument prototype would still apply. */
27518char shmat ();
27519int
27520main ()
27521{
27522shmat ();
27523 ;
27524 return 0;
27525}
27526_ACEOF
27527rm -f conftest.$ac_objext conftest$ac_exeext
27528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27529 (eval $ac_link) 2>conftest.er1
a848cd7e 27530 ac_status=$?
ac1cb8d3
VS
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
a848cd7e
SC
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
6ebeb4c7 27536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; } &&
27542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; }; then
27548 ac_cv_lib_ipc_shmat=yes
27549else
27550 echo "$as_me: failed program was:" >&5
27551sed 's/^/| /' conftest.$ac_ext >&5
27552
27553ac_cv_lib_ipc_shmat=no
27554fi
ac1cb8d3
VS
27555rm -f conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27557LIBS=$ac_check_lib_save_LIBS
27558fi
27559echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27560echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27561if test $ac_cv_lib_ipc_shmat = yes; then
27562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27563fi
27564
27565 fi
27566 fi
27567
27568 # Check for libraries that X11R6 Xt/Xaw programs need.
27569 ac_save_LDFLAGS=$LDFLAGS
27570 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27571 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27572 # check for ICE first), but we must link in the order -lSM -lICE or
27573 # we get undefined symbols. So assume we have SM if we have ICE.
27574 # These have to be linked with before -lX11, unlike the other
27575 # libraries we check for below, so use a different variable.
27576 # John Interrante, Karl Berry
27577 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27578echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27579if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27581else
27582 ac_check_lib_save_LIBS=$LIBS
27583LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27584cat >conftest.$ac_ext <<_ACEOF
27585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
27590
27591/* Override any gcc2 internal prototype to avoid an error. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595/* We use char because int might match the return type of a gcc2
27596 builtin and then its argument prototype would still apply. */
27597char IceConnectionNumber ();
27598int
27599main ()
27600{
27601IceConnectionNumber ();
27602 ;
27603 return 0;
27604}
27605_ACEOF
27606rm -f conftest.$ac_objext conftest$ac_exeext
27607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27608 (eval $ac_link) 2>conftest.er1
a848cd7e 27609 ac_status=$?
ac1cb8d3
VS
27610 grep -v '^ *+' conftest.er1 >conftest.err
27611 rm -f conftest.er1
27612 cat conftest.err >&5
a848cd7e
SC
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); } &&
6ebeb4c7 27615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27617 (eval $ac_try) 2>&5
27618 ac_status=$?
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); }; } &&
27621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); }; }; then
27627 ac_cv_lib_ICE_IceConnectionNumber=yes
27628else
27629 echo "$as_me: failed program was:" >&5
27630sed 's/^/| /' conftest.$ac_ext >&5
27631
27632ac_cv_lib_ICE_IceConnectionNumber=no
27633fi
ac1cb8d3
VS
27634rm -f conftest.err conftest.$ac_objext \
27635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27636LIBS=$ac_check_lib_save_LIBS
27637fi
27638echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27639echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27640if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27641 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27642fi
27643
27644 LDFLAGS=$ac_save_LDFLAGS
27645
27646fi
27647
27648
27649 if test "$no_x" = "yes"; then
27650 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27651echo "$as_me: error: X11 not found" >&2;}
27652 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27653 fi
27654
74b84332
VS
27655 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27656 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27657 AFMINSTALL=afminstall
27658 COMPILED_X_PROGRAM=0
27659
74b84332
VS
27660 fi
27661
27662 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27663 if test "$wxUSE_NANOX" = "yes"; then
27664 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27665echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27666 if test "x$MICROWIN" = x ; then
27667 echo "$as_me:$LINENO: result: not found" >&5
27668echo "${ECHO_T}not found" >&6
27669 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27670echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27671 { (exit 1); exit 1; }; }
27672 else
27673 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27674echo "${ECHO_T}$MICROWIN" >&6
27675 cat >>confdefs.h <<\_ACEOF
27676#define wxUSE_NANOX 1
27677_ACEOF
27678
27679 fi
27680 fi
27681
27682 if test "$wxUSE_UNICODE" = "yes"; then
27683
27684 succeeded=no
27685
27686 if test -z "$PKG_CONFIG"; then
27687 # Extract the first word of "pkg-config", so it can be a program name with args.
27688set dummy pkg-config; ac_word=$2
27689echo "$as_me:$LINENO: checking for $ac_word" >&5
27690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27691if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
27694 case $PKG_CONFIG in
27695 [\\/]* | ?:[\\/]*)
27696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27697 ;;
27698 *)
27699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27700for as_dir in $PATH
27701do
27702 IFS=$as_save_IFS
27703 test -z "$as_dir" && as_dir=.
27704 for ac_exec_ext in '' $ac_executable_extensions; do
27705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27708 break 2
27709 fi
27710done
27711done
27712
27713 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27714 ;;
27715esac
27716fi
27717PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27718
27719if test -n "$PKG_CONFIG"; then
27720 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27721echo "${ECHO_T}$PKG_CONFIG" >&6
27722else
27723 echo "$as_me:$LINENO: result: no" >&5
27724echo "${ECHO_T}no" >&6
27725fi
27726
27727 fi
27728
27729 if test "$PKG_CONFIG" = "no" ; then
27730 echo "*** The pkg-config script could not be found. Make sure it is"
27731 echo "*** in your path, or set the PKG_CONFIG environment variable"
27732 echo "*** to the full path to pkg-config."
27733 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27734 else
27735 PKG_CONFIG_MIN_VERSION=0.9.0
27736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27737 echo "$as_me:$LINENO: checking for pangox" >&5
27738echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27739
27740 if $PKG_CONFIG --exists "pangox" ; then
27741 echo "$as_me:$LINENO: result: yes" >&5
27742echo "${ECHO_T}yes" >&6
27743 succeeded=yes
27744
27745 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27746echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27747 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27748 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27749echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27750
27751 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27752echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27753 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27754 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27755echo "${ECHO_T}$PANGOX_LIBS" >&6
27756 else
27757 PANGOX_CFLAGS=""
27758 PANGOX_LIBS=""
27759 ## If we have a custom action on failure, don't print errors, but
27760 ## do set a variable so people can do so.
27761 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27762
27763 fi
27764
27765
27766
27767 else
27768 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27769 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27770 fi
27771 fi
27772
27773 if test $succeeded = yes; then
27774
27775 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27776 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27777
27778 else
27779
27780 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27781echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27782 { (exit 1); exit 1; }; }
27783
27784
27785 fi
27786
27787
27788 succeeded=no
27789
27790 if test -z "$PKG_CONFIG"; then
27791 # Extract the first word of "pkg-config", so it can be a program name with args.
27792set dummy pkg-config; ac_word=$2
27793echo "$as_me:$LINENO: checking for $ac_word" >&5
27794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27795if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27797else
27798 case $PKG_CONFIG in
27799 [\\/]* | ?:[\\/]*)
27800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27801 ;;
27802 *)
27803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27804for as_dir in $PATH
27805do
27806 IFS=$as_save_IFS
27807 test -z "$as_dir" && as_dir=.
27808 for ac_exec_ext in '' $ac_executable_extensions; do
27809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27812 break 2
27813 fi
27814done
27815done
27816
27817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27818 ;;
27819esac
27820fi
27821PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27822
27823if test -n "$PKG_CONFIG"; then
27824 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27825echo "${ECHO_T}$PKG_CONFIG" >&6
27826else
27827 echo "$as_me:$LINENO: result: no" >&5
27828echo "${ECHO_T}no" >&6
27829fi
27830
27831 fi
27832
27833 if test "$PKG_CONFIG" = "no" ; then
27834 echo "*** The pkg-config script could not be found. Make sure it is"
27835 echo "*** in your path, or set the PKG_CONFIG environment variable"
27836 echo "*** to the full path to pkg-config."
27837 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27838 else
27839 PKG_CONFIG_MIN_VERSION=0.9.0
27840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27841 echo "$as_me:$LINENO: checking for pangoft2" >&5
27842echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27843
27844 if $PKG_CONFIG --exists "pangoft2" ; then
27845 echo "$as_me:$LINENO: result: yes" >&5
27846echo "${ECHO_T}yes" >&6
27847 succeeded=yes
27848
27849 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27850echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27851 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27852 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27853echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27854
27855 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27856echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27857 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27858 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27859echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27860 else
27861 PANGOFT2_CFLAGS=""
27862 PANGOFT2_LIBS=""
27863 ## If we have a custom action on failure, don't print errors, but
27864 ## do set a variable so people can do so.
27865 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27866
27867 fi
27868
27869
27870
27871 else
27872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27874 fi
27875 fi
27876
27877 if test $succeeded = yes; then
27878
27879 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27880 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27881
27882 else
27883
27884 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27885echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27886 wxUSE_PRINTING_ARCHITECTURE="no"
27887
27888
27889 fi
27890
27891
27892 succeeded=no
27893
27894 if test -z "$PKG_CONFIG"; then
27895 # Extract the first word of "pkg-config", so it can be a program name with args.
27896set dummy pkg-config; ac_word=$2
27897echo "$as_me:$LINENO: checking for $ac_word" >&5
27898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27899if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902 case $PKG_CONFIG in
27903 [\\/]* | ?:[\\/]*)
27904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27905 ;;
27906 *)
27907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27908for as_dir in $PATH
27909do
27910 IFS=$as_save_IFS
27911 test -z "$as_dir" && as_dir=.
27912 for ac_exec_ext in '' $ac_executable_extensions; do
27913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27916 break 2
27917 fi
27918done
27919done
27920
27921 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27922 ;;
27923esac
27924fi
27925PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27926
27927if test -n "$PKG_CONFIG"; then
27928 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27929echo "${ECHO_T}$PKG_CONFIG" >&6
27930else
27931 echo "$as_me:$LINENO: result: no" >&5
27932echo "${ECHO_T}no" >&6
27933fi
27934
27935 fi
27936
27937 if test "$PKG_CONFIG" = "no" ; then
27938 echo "*** The pkg-config script could not be found. Make sure it is"
27939 echo "*** in your path, or set the PKG_CONFIG environment variable"
27940 echo "*** to the full path to pkg-config."
27941 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27942 else
27943 PKG_CONFIG_MIN_VERSION=0.9.0
27944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27945 echo "$as_me:$LINENO: checking for pangoxft" >&5
27946echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27947
27948 if $PKG_CONFIG --exists "pangoxft" ; then
27949 echo "$as_me:$LINENO: result: yes" >&5
27950echo "${ECHO_T}yes" >&6
27951 succeeded=yes
27952
27953 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27954echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27955 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27956 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27957echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27958
27959 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27960echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27961 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27962 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27963echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27964 else
27965 PANGOXFT_CFLAGS=""
27966 PANGOXFT_LIBS=""
27967 ## If we have a custom action on failure, don't print errors, but
27968 ## do set a variable so people can do so.
27969 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27970
27971 fi
27972
27973
27974
27975 else
27976 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27977 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27978 fi
27979 fi
27980
27981 if test $succeeded = yes; then
27982
4ae1af05
MB
27983 cat >>confdefs.h <<\_ACEOF
27984#define HAVE_PANGO_XFT 1
27985_ACEOF
27986
a848cd7e
SC
27987 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27988 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27989
27990 else
27991
27992 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27993echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27994
27995
27996 fi
27997
304205f1
VS
27998 save_CFLAGS="$CFLAGS"
27999 save_LIBS="$LIBS"
28000 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28001 LIBS="$LIBS $PANGOX_LIBS"
28002
28003for ac_func in pango_font_family_is_monospace
28004do
28005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006echo "$as_me:$LINENO: checking for $ac_func" >&5
28007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28008if eval "test \"\${$as_ac_var+set}\" = set"; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28010else
28011 cat >conftest.$ac_ext <<_ACEOF
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
28017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28019#define $ac_func innocuous_$ac_func
28020
28021/* System header to define __stub macros and hopefully few prototypes,
28022 which can conflict with char $ac_func (); below.
28023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024 <limits.h> exists even on freestanding compilers. */
28025
28026#ifdef __STDC__
28027# include <limits.h>
28028#else
28029# include <assert.h>
28030#endif
28031
28032#undef $ac_func
28033
28034/* Override any gcc2 internal prototype to avoid an error. */
28035#ifdef __cplusplus
28036extern "C"
28037{
28038#endif
28039/* We use char because int might match the return type of a gcc2
28040 builtin and then its argument prototype would still apply. */
28041char $ac_func ();
28042/* The GNU C library defines this for functions which it implements
28043 to always fail with ENOSYS. Some functions are actually named
28044 something starting with __ and the normal name is an alias. */
28045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28046choke me
28047#else
28048char (*f) () = $ac_func;
28049#endif
28050#ifdef __cplusplus
28051}
28052#endif
28053
28054int
28055main ()
28056{
28057return f != $ac_func;
28058 ;
28059 return 0;
28060}
28061_ACEOF
28062rm -f conftest.$ac_objext conftest$ac_exeext
28063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28064 (eval $ac_link) 2>conftest.er1
28065 ac_status=$?
28066 grep -v '^ *+' conftest.er1 >conftest.err
28067 rm -f conftest.er1
28068 cat conftest.err >&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); } &&
6ebeb4c7 28071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
28077 { ac_try='test -s conftest$ac_exeext'
28078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; }; then
28083 eval "$as_ac_var=yes"
28084else
28085 echo "$as_me: failed program was:" >&5
28086sed 's/^/| /' conftest.$ac_ext >&5
28087
28088eval "$as_ac_var=no"
28089fi
28090rm -f conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
28092fi
28093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28095if test `eval echo '${'$as_ac_var'}'` = yes; then
28096 cat >>confdefs.h <<_ACEOF
28097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28098_ACEOF
28099
28100fi
28101done
28102
28103 CFLAGS="$save_CFLAGS"
28104 LIBS="$save_LIBS"
a848cd7e
SC
28105 fi
28106
28107 wxUSE_UNIVERSAL="yes"
28108
28109 if test "$wxUSE_NANOX" = "yes"; then
28110 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28111 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"
28112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28113 else
28114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28115 fi
28116
a848cd7e
SC
28117 TOOLKIT=X11
28118 GUIDIST=X11_DIST
28119 fi
28120
28121 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28122 if test "$wxUSE_UNICODE" = "yes"; then
28123 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28124echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28125 { (exit 1); exit 1; }; }
28126 fi
28127
74b84332
VS
28128 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28129echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28130
74b84332
VS
28131ac_find_includes=
28132for ac_dir in $SEARCH_INCLUDE /usr/include;
28133 do
28134 if test -f "$ac_dir/Xm/Xm.h"; then
28135 ac_find_includes=$ac_dir
28136 break
28137 fi
28138 done
a848cd7e 28139
74b84332
VS
28140 if test "$ac_find_includes" != "" ; then
28141 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28142echo "${ECHO_T}found in $ac_find_includes" >&6
28143
28144 if test "x$ac_find_includes" = "x/usr/include"; then
28145 ac_path_to_include=""
28146 else
28147 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28148 result=$?
28149 if test $result = 0; then
28150 ac_path_to_include=""
28151 else
28152 ac_path_to_include=" -I$ac_find_includes"
28153 fi
a848cd7e
SC
28154 fi
28155
74b84332
VS
28156 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28157 else
e051b34e
MW
28158 save_CFLAGS=$CFLAGS
28159 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28160
74b84332 28161 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28162/* confdefs.h. */
28163_ACEOF
28164cat confdefs.h >>conftest.$ac_ext
28165cat >>conftest.$ac_ext <<_ACEOF
28166/* end confdefs.h. */
28167
74b84332
VS
28168 #include <Xm/Xm.h>
28169
a848cd7e
SC
28170int
28171main ()
28172{
28173
74b84332
VS
28174 int version;
28175 version = xmUseVersion;
28176
a848cd7e
SC
28177 ;
28178 return 0;
28179}
28180_ACEOF
74b84332
VS
28181rm -f conftest.$ac_objext
28182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28183 (eval $ac_compile) 2>conftest.er1
a848cd7e 28184 ac_status=$?
ac1cb8d3
VS
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
a848cd7e
SC
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
6ebeb4c7 28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
74b84332 28196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
74b84332
VS
28202
28203 echo "$as_me:$LINENO: result: found in default search path" >&5
28204echo "${ECHO_T}found in default search path" >&6
28205 COMPILED_X_PROGRAM=1
28206
a848cd7e
SC
28207else
28208 echo "$as_me: failed program was:" >&5
28209sed 's/^/| /' conftest.$ac_ext >&5
28210
a848cd7e 28211
74b84332
VS
28212 echo "$as_me:$LINENO: result: no" >&5
28213echo "${ECHO_T}no" >&6
e051b34e
MW
28214 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28215echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28216 { (exit 1); exit 1; }; }
a848cd7e 28217
a848cd7e 28218
a848cd7e 28219fi
74b84332 28220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28221
28222 CFLAGS=$save_CFLAGS
74b84332
VS
28223 fi
28224
28225 if test "$COMPILED_X_PROGRAM" = 0; then
28226 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28227echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28228
28229ac_find_libraries=
28230for ac_dir in $SEARCH_LIB /usr/lib;
28231 do
3eca31dc 28232 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28233 if test -f "$ac_dir/libXm.$ac_extension"; then
28234 ac_find_libraries=$ac_dir
28235 break 2
a848cd7e 28236 fi
74b84332
VS
28237 done
28238 done
a848cd7e 28239
74b84332
VS
28240 if test "$ac_find_libraries" != "" ; then
28241 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28242echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28243
74b84332
VS
28244
28245 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28246 result=$?
28247 if test $result = 0; then
28248 ac_path_to_link=""
a848cd7e 28249 else
74b84332
VS
28250 ac_path_to_link=" -L$ac_find_libraries"
28251 fi
28252
28253 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28254 else
28255 save_CFLAGS=$CFLAGS
28256 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28257
28258 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28259/* confdefs.h. */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h. */
28264
74b84332
VS
28265 #include <Xm/Xm.h>
28266
a848cd7e
SC
28267int
28268main ()
28269{
74b84332
VS
28270
28271 int version;
28272 version = xmUseVersion;
28273
a848cd7e
SC
28274 ;
28275 return 0;
28276}
28277_ACEOF
74b84332
VS
28278rm -f conftest.$ac_objext
28279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28280 (eval $ac_compile) 2>conftest.er1
a848cd7e 28281 ac_status=$?
ac1cb8d3
VS
28282 grep -v '^ *+' conftest.er1 >conftest.err
28283 rm -f conftest.er1
28284 cat conftest.err >&5
a848cd7e
SC
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
6ebeb4c7 28287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
74b84332 28293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; }; then
74b84332
VS
28299
28300 echo "$as_me:$LINENO: result: found in default search path" >&5
28301echo "${ECHO_T}found in default search path" >&6
28302 COMPILED_X_PROGRAM=1
28303
a848cd7e
SC
28304else
28305 echo "$as_me: failed program was:" >&5
28306sed 's/^/| /' conftest.$ac_ext >&5
28307
74b84332
VS
28308
28309 echo "$as_me:$LINENO: result: no" >&5
28310echo "${ECHO_T}no" >&6
28311 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28312echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28313 { (exit 1); exit 1; }; }
28314
28315
28316fi
28317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28318
28319 CFLAGS=$save_CFLAGS
28320 fi
28321 fi
28322
28323 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28324echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28325 libp_link=""
28326 libsm_ice_link=""
28327 libs_found=0
28328 for libp in "" " -lXp"; do
28329 if test "$libs_found" = "0"; then
28330 for libsm_ice in "" " -lSM -lICE"; do
28331 if test "$libs_found" = "0"; then
28332 save_LIBS="$LIBS"
28333 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28334 save_CFLAGS=$CFLAGS
28335 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28336
28337 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343
74b84332
VS
28344 #include <Xm/Xm.h>
28345 #include <Xm/List.h>
28346
a848cd7e
SC
28347int
28348main ()
28349{
74b84332
VS
28350
28351 XmString string = NULL;
28352 Widget w = NULL;
28353 int position = 0;
28354 XmListAddItem(w, string, position);
28355
a848cd7e
SC
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28362 (eval $ac_link) 2>conftest.er1
a848cd7e 28363 ac_status=$?
ac1cb8d3
VS
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
a848cd7e
SC
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
6ebeb4c7 28369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; } &&
28375 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; }; then
28381
28382 libp_link="$libp"
28383 libsm_ice_link="$libsm_ice"
28384 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28385echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28386 libs_found=1
28387
28388else
28389 echo "$as_me: failed program was:" >&5
28390sed 's/^/| /' conftest.$ac_ext >&5
28391
28392
28393
28394fi
ac1cb8d3
VS
28395rm -f conftest.err conftest.$ac_objext \
28396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28397
28398 LIBS="$save_LIBS"
28399 CFLAGS=$save_CFLAGS
28400 fi
28401 done
28402 fi
28403 done
28404
28405 if test "$libs_found" = "0"; then
28406 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28407echo "${ECHO_T}can't find the right libraries" >&6
28408 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28409echo "$as_me: error: can't link a simple motif program" >&2;}
28410 { (exit 1); exit 1; }; }
28411 fi
28412
62fa8b3a
MW
28413 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28414echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28415if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lSgm $LIBS"
28420cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426
28427/* Override any gcc2 internal prototype to avoid an error. */
28428#ifdef __cplusplus
28429extern "C"
28430#endif
28431/* We use char because int might match the return type of a gcc2
28432 builtin and then its argument prototype would still apply. */
28433char SgCreateList ();
28434int
28435main ()
28436{
28437SgCreateList ();
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442rm -f conftest.$ac_objext conftest$ac_exeext
28443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28444 (eval $ac_link) 2>conftest.er1
28445 ac_status=$?
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
28451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest$ac_exeext'
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 ac_cv_lib_Sgm_SgCreateList=yes
28464else
28465 echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468ac_cv_lib_Sgm_SgCreateList=no
28469fi
28470rm -f conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
28472LIBS=$ac_check_lib_save_LIBS
28473fi
28474echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28475echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28476if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28477 libsgm_link=" -lSgm"
28478fi
28479
28480
a848cd7e
SC
28481 save_CFLAGS=$CFLAGS
28482 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28483 echo "$as_me:$LINENO: checking for Motif 2" >&5
28484echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28485 cat >conftest.$ac_ext <<_ACEOF
28486/* confdefs.h. */
28487_ACEOF
28488cat confdefs.h >>conftest.$ac_ext
28489cat >>conftest.$ac_ext <<_ACEOF
28490/* end confdefs.h. */
28491
28492 #include <Xm/Xm.h>
28493
28494int
28495main ()
28496{
28497
28498 #if XmVersion < 2000
04e525a0 28499 Not Motif 2
a848cd7e
SC
28500 #endif
28501
28502 ;
28503 return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext
28507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28508 (eval $ac_compile) 2>conftest.er1
a848cd7e 28509 ac_status=$?
ac1cb8d3
VS
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
a848cd7e
SC
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
6ebeb4c7 28515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28517 (eval $ac_try) 2>&5
28518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; } &&
28521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; }; then
28527
28528 cat >>confdefs.h <<\_ACEOF
28529#define __WXMOTIF20__ 1
28530_ACEOF
28531
28532 echo "$as_me:$LINENO: result: found" >&5
28533echo "${ECHO_T}found" >&6
28534
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539
28540 cat >>confdefs.h <<\_ACEOF
28541#define __WXMOTIF20__ 0
28542_ACEOF
28543
28544 echo "$as_me:$LINENO: result: not found" >&5
28545echo "${ECHO_T}not found" >&6
28546
2113bc77
MW
28547fi
28548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28549
28550 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28551echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28552 cat >conftest.$ac_ext <<_ACEOF
28553/* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
28558
28559 #include <Xm/Xm.h>
28560
28561int
28562main ()
28563{
28564
28565 #if !defined(LesstifVersion) || LesstifVersion <= 0
04e525a0 28566 Not Lesstif
2113bc77
MW
28567 #endif
28568
28569 ;
28570 return 0;
28571}
28572_ACEOF
28573rm -f conftest.$ac_objext
28574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28575 (eval $ac_compile) 2>conftest.er1
28576 ac_status=$?
28577 grep -v '^ *+' conftest.er1 >conftest.err
28578 rm -f conftest.er1
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
6ebeb4c7 28582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; } &&
28588 { ac_try='test -s conftest.$ac_objext'
28589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; }; then
28594
28595 cat >>confdefs.h <<\_ACEOF
28596#define __WXLESSTIF__ 1
28597_ACEOF
28598
28599 echo "$as_me:$LINENO: result: yes" >&5
28600echo "${ECHO_T}yes" >&6
28601
28602else
28603 echo "$as_me: failed program was:" >&5
28604sed 's/^/| /' conftest.$ac_ext >&5
28605
28606
28607 cat >>confdefs.h <<\_ACEOF
28608#define __WXLESSTIF__ 0
28609_ACEOF
28610
28611 echo "$as_me:$LINENO: result: no" >&5
28612echo "${ECHO_T}no" >&6
28613
a848cd7e 28614fi
ac1cb8d3 28615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28616 CFLAGS=$save_CFLAGS
28617
62fa8b3a 28618 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28619 TOOLKIT=MOTIF
28620 GUIDIST=MOTIF_DIST
28621 fi
28622
74b84332 28623 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28624 if test "$wxUSE_LIBXPM" = "sys"; then
28625 echo "$as_me:$LINENO: checking for Xpm library" >&5
28626echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28627
28628ac_find_libraries=
28629for ac_dir in $SEARCH_LIB /usr/lib;
28630 do
3eca31dc 28631 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28632 if test -f "$ac_dir/libXpm.$ac_extension"; then
28633 ac_find_libraries=$ac_dir
28634 break 2
28635 fi
28636 done
28637 done
28638
28639 if test "$ac_find_libraries" != "" ; then
28640
28641 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28642 result=$?
28643 if test $result = 0; then
28644 ac_path_to_link=""
28645 else
28646 ac_path_to_link=" -L$ac_find_libraries"
28647 fi
28648
28649 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28650 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28651echo "${ECHO_T}found at $ac_find_libraries" >&6
28652
28653 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28654echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28655if test "${wx_cv_x11_xpm_h+set}" = set; then
28656 echo $ECHO_N "(cached) $ECHO_C" >&6
28657else
28658
28659 save_CFLAGS=$CFLAGS
28660 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28661
28662 cat >conftest.$ac_ext <<_ACEOF
28663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
28668
28669 #include <X11/xpm.h>
28670
28671int
28672main ()
28673{
28674
28675 int version;
28676 version = XpmLibraryVersion();
28677
28678 ;
28679 return 0;
28680}
28681_ACEOF
28682rm -f conftest.$ac_objext
28683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28684 (eval $ac_compile) 2>conftest.er1
a848cd7e 28685 ac_status=$?
ac1cb8d3
VS
28686 grep -v '^ *+' conftest.er1 >conftest.err
28687 rm -f conftest.er1
28688 cat conftest.err >&5
a848cd7e
SC
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
6ebeb4c7 28691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 wx_cv_x11_xpm_h=yes
28704else
28705 echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708wx_cv_x11_xpm_h=no
28709
28710fi
ac1cb8d3 28711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28712
28713 CFLAGS=$save_CFLAGS
28714
28715
28716fi
28717echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28718echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28719
28720 if test $wx_cv_x11_xpm_h = "yes"; then
28721 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28722 cat >>confdefs.h <<\_ACEOF
28723#define wxHAVE_LIB_XPM 1
28724_ACEOF
28725
28726 else
28727 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28728echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28729 fi
28730 fi
28731
28732 fi
28733
28734 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28735echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28736if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28737 echo $ECHO_N "(cached) $ECHO_C" >&6
28738else
28739 ac_check_lib_save_LIBS=$LIBS
28740LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28741cat >conftest.$ac_ext <<_ACEOF
28742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
28747
28748/* Override any gcc2 internal prototype to avoid an error. */
28749#ifdef __cplusplus
28750extern "C"
28751#endif
28752/* We use char because int might match the return type of a gcc2
28753 builtin and then its argument prototype would still apply. */
28754char XShapeQueryExtension ();
28755int
28756main ()
28757{
28758XShapeQueryExtension ();
28759 ;
28760 return 0;
28761}
28762_ACEOF
28763rm -f conftest.$ac_objext conftest$ac_exeext
28764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28765 (eval $ac_link) 2>conftest.er1
a848cd7e 28766 ac_status=$?
ac1cb8d3
VS
28767 grep -v '^ *+' conftest.er1 >conftest.err
28768 rm -f conftest.er1
28769 cat conftest.err >&5
a848cd7e
SC
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
6ebeb4c7 28772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_cv_lib_Xext_XShapeQueryExtension=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789ac_cv_lib_Xext_XShapeQueryExtension=no
28790fi
ac1cb8d3
VS
28791rm -f conftest.err conftest.$ac_objext \
28792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28793LIBS=$ac_check_lib_save_LIBS
28794fi
28795echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28796echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28797if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28798
28799 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28800 wxHAVE_XEXT_LIB=1
28801
28802fi
28803
28804
28805 if test "$wxHAVE_XEXT_LIB" = 1; then
28806 save_CFLAGS="$CFLAGS"
28807 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28808
28809 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28810echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28811 cat >conftest.$ac_ext <<_ACEOF
28812/* confdefs.h. */
28813_ACEOF
28814cat confdefs.h >>conftest.$ac_ext
28815cat >>conftest.$ac_ext <<_ACEOF
28816/* end confdefs.h. */
28817
28818 #include <X11/Xlib.h>
28819 #include <X11/extensions/shape.h>
28820
28821int
28822main ()
28823{
28824
28825 int dummy1, dummy2;
28826 XShapeQueryExtension((Display*)NULL,
28827 (int*)NULL, (int*)NULL);
28828
28829 ;
28830 return 0;
28831}
28832_ACEOF
28833rm -f conftest.$ac_objext
28834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28835 (eval $ac_compile) 2>conftest.er1
a848cd7e 28836 ac_status=$?
ac1cb8d3
VS
28837 grep -v '^ *+' conftest.er1 >conftest.err
28838 rm -f conftest.er1
28839 cat conftest.err >&5
a848cd7e
SC
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } &&
6ebeb4c7 28842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; } &&
28848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850 (eval $ac_try) 2>&5
28851 ac_status=$?
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; }; then
28854
28855 cat >>confdefs.h <<\_ACEOF
28856#define HAVE_XSHAPE 1
28857_ACEOF
28858
28859 echo "$as_me:$LINENO: result: found" >&5
28860echo "${ECHO_T}found" >&6
28861
28862else
28863 echo "$as_me: failed program was:" >&5
28864sed 's/^/| /' conftest.$ac_ext >&5
28865
28866
28867 echo "$as_me:$LINENO: result: not found" >&5
28868echo "${ECHO_T}not found" >&6
28869
28870fi
ac1cb8d3 28871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28872 CFLAGS="$save_CFLAGS"
28873
28874 fi
28875 fi
28876
28877 if test "$wxUSE_MAC" = 1; then
28878 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28879echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28880 if test "$GCC" = yes; then
28881 echo "$as_me:$LINENO: result: gcc" >&5
28882echo "${ECHO_T}gcc" >&6
28883 CPPFLAGS_PASCAL="-fpascal-strings"
28884 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28885 echo "$as_me:$LINENO: result: xlc" >&5
28886echo "${ECHO_T}xlc" >&6
28887 CPPFLAGS_PASCAL="-qmacpstr"
28888 else
28889 echo "$as_me:$LINENO: result: none" >&5
28890echo "${ECHO_T}none" >&6
28891 fi
28892
1e9e8aba
DE
28893 if test "x$wxUSE_UNIX" = "xyes"; then
28894 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28895 else
28896 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28897 fi
a848cd7e 28898
a848cd7e
SC
28899 TOOLKIT=MAC
28900 GUIDIST=MACX_DIST
dd21ced8 28901 WXBASEPORT="_carbon"
a848cd7e
SC
28902 fi
28903
28904 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28905 TOOLKIT=COCOA
28906 GUIDIST=COCOA_DIST
28907 fi
28908
28909 if test "$wxUSE_PM" = 1; then
28910 TOOLKIT=PM
de59c161
RD
28911 GUIDIST=PM_DIST
28912 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28913echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28914if test "${wx_cv_spbcdata+set}" = set; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917
28918 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
28924
28925 #define INCL_PM
28926 #include <os2.h>
28927
28928int
28929main ()
28930{
28931
28932 SPBCDATA test;
28933
28934 ;
28935 return 0;
28936}
28937_ACEOF
28938rm -f conftest.$ac_objext
28939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28940 (eval $ac_compile) 2>conftest.er1
de59c161 28941 ac_status=$?
ac1cb8d3
VS
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
de59c161
RD
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } &&
6ebeb4c7 28947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; } &&
28953 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 wx_cv_spbcdata=yes
28960else
28961 echo "$as_me: failed program was:" >&5
28962sed 's/^/| /' conftest.$ac_ext >&5
28963
28964wx_cv_spbcdata=no
28965
28966fi
ac1cb8d3 28967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28968
28969
28970fi
28971echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28972echo "${ECHO_T}$wx_cv_spbcdata" >&6
28973
28974 if test $wx_cv_spbcdata = "yes"; then
28975 cat >>confdefs.h <<\_ACEOF
28976#define HAVE_SPBCDATA 1
28977_ACEOF
28978
28979 fi
a848cd7e
SC
28980 fi
28981
28982 if test "$TOOLKIT" = "PM" ; then
28983 TOOLKIT_DIR="os2"
28984 else
28985 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28986 fi
28987
a848cd7e 28988 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28989 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28990 WIDGET_SET=univ
a848cd7e
SC
28991 fi
28992
28993 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28994 DISTDIR="wx\$(TOOLKIT)"
28995else
28996 USE_GUI=0
28997
28998 TOOLKIT_DIR="base"
28999
29000 if test "$USE_WIN32" = 1 ; then
a848cd7e 29001 TOOLKIT="MSW"
a848cd7e
SC
29002 fi
29003
a848cd7e
SC
29004 GUIDIST="BASE_DIST"
29005 DISTDIR="wxBase"
29006fi
29007
29008
d12aef51
VZ
29009if test "$wxUSE_GUI" = "yes"; then
29010 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29011
29012for ac_header in X11/Xlib.h
29013do
29014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29015if eval "test \"\${$as_ac_Header+set}\" = set"; then
29016 echo "$as_me:$LINENO: checking for $ac_header" >&5
29017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29018if eval "test \"\${$as_ac_Header+set}\" = set"; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29020fi
29021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29023else
29024 # Is the header compilable?
29025echo "$as_me:$LINENO: checking $ac_header usability" >&5
29026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29027cat >conftest.$ac_ext <<_ACEOF
29028/* confdefs.h. */
29029_ACEOF
29030cat confdefs.h >>conftest.$ac_ext
29031cat >>conftest.$ac_ext <<_ACEOF
29032/* end confdefs.h. */
29033$ac_includes_default
29034#include <$ac_header>
29035_ACEOF
29036rm -f conftest.$ac_objext
29037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29038 (eval $ac_compile) 2>conftest.er1
29039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } &&
29045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29048 ac_status=$?
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; } &&
29051 { ac_try='test -s conftest.$ac_objext'
29052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053 (eval $ac_try) 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
29057 ac_header_compiler=yes
29058else
29059 echo "$as_me: failed program was:" >&5
29060sed 's/^/| /' conftest.$ac_ext >&5
29061
29062ac_header_compiler=no
29063fi
29064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29066echo "${ECHO_T}$ac_header_compiler" >&6
29067
29068# Is the header present?
29069echo "$as_me:$LINENO: checking $ac_header presence" >&5
29070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29071cat >conftest.$ac_ext <<_ACEOF
29072/* confdefs.h. */
29073_ACEOF
29074cat confdefs.h >>conftest.$ac_ext
29075cat >>conftest.$ac_ext <<_ACEOF
29076/* end confdefs.h. */
29077#include <$ac_header>
29078_ACEOF
29079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29081 ac_status=$?
29082 grep -v '^ *+' conftest.er1 >conftest.err
29083 rm -f conftest.er1
29084 cat conftest.err >&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } >/dev/null; then
29087 if test -s conftest.err; then
29088 ac_cpp_err=$ac_c_preproc_warn_flag
29089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29090 else
29091 ac_cpp_err=
29092 fi
29093else
29094 ac_cpp_err=yes
29095fi
29096if test -z "$ac_cpp_err"; then
29097 ac_header_preproc=yes
29098else
29099 echo "$as_me: failed program was:" >&5
29100sed 's/^/| /' conftest.$ac_ext >&5
29101
29102 ac_header_preproc=no
29103fi
29104rm -f conftest.err conftest.$ac_ext
29105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29106echo "${ECHO_T}$ac_header_preproc" >&6
29107
29108# So? What about this header?
29109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29110 yes:no: )
29111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29115 ac_header_preproc=yes
29116 ;;
29117 no:yes:* )
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29125echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29130 (
29131 cat <<\_ASBOX
29132## ----------------------------------------- ##
29133## Report this to wx-dev@lists.wxwidgets.org ##
29134## ----------------------------------------- ##
29135_ASBOX
29136 ) |
29137 sed "s/^/$as_me: WARNING: /" >&2
29138 ;;
29139esac
29140echo "$as_me:$LINENO: checking for $ac_header" >&5
29141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29142if eval "test \"\${$as_ac_Header+set}\" = set"; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29144else
29145 eval "$as_ac_Header=\$ac_header_preproc"
29146fi
29147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29149
29150fi
29151if test `eval echo '${'$as_ac_Header'}'` = yes; then
29152 cat >>confdefs.h <<_ACEOF
29153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29154_ACEOF
29155
29156fi
29157
29158done
29159
29160
29161for ac_header in X11/XKBlib.h
29162do
29163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29164echo "$as_me:$LINENO: checking for $ac_header" >&5
29165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29166if eval "test \"\${$as_ac_Header+set}\" = set"; then
29167 echo $ECHO_N "(cached) $ECHO_C" >&6
29168else
29169 cat >conftest.$ac_ext <<_ACEOF
29170/* confdefs.h. */
29171_ACEOF
29172cat confdefs.h >>conftest.$ac_ext
29173cat >>conftest.$ac_ext <<_ACEOF
29174/* end confdefs.h. */
29175
29176 #if HAVE_X11_XLIB_H
29177 #include <X11/Xlib.h>
29178 #endif
29179
29180
29181#include <$ac_header>
29182_ACEOF
29183rm -f conftest.$ac_objext
29184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29185 (eval $ac_compile) 2>conftest.er1
29186 ac_status=$?
29187 grep -v '^ *+' conftest.er1 >conftest.err
29188 rm -f conftest.er1
29189 cat conftest.err >&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); } &&
29192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194 (eval $ac_try) 2>&5
29195 ac_status=$?
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); }; } &&
29198 { ac_try='test -s conftest.$ac_objext'
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
29204 eval "$as_ac_Header=yes"
29205else
29206 echo "$as_me: failed program was:" >&5
29207sed 's/^/| /' conftest.$ac_ext >&5
29208
29209eval "$as_ac_Header=no"
29210fi
29211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29212fi
29213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29215if test `eval echo '${'$as_ac_Header'}'` = yes; then
29216 cat >>confdefs.h <<_ACEOF
29217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29218_ACEOF
29219
29220fi
29221
29222done
29223
29224 fi
29225fi
29226
a848cd7e
SC
29227
29228
29229IODBC_C_SRC=""
29230
29231
29232if test "$TOOLKIT" != "MSW" ; then
29233
29234 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29235
29236 if test "${ac_cv_header_sql_h+set}" = set; then
29237 echo "$as_me:$LINENO: checking for sql.h" >&5
29238echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29239if test "${ac_cv_header_sql_h+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29241fi
29242echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29243echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29244else
29245 # Is the header compilable?
29246echo "$as_me:$LINENO: checking sql.h usability" >&5
29247echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29248cat >conftest.$ac_ext <<_ACEOF
29249/* confdefs.h. */
29250_ACEOF
29251cat confdefs.h >>conftest.$ac_ext
29252cat >>conftest.$ac_ext <<_ACEOF
29253/* end confdefs.h. */
29254$ac_includes_default
29255#include <sql.h>
29256_ACEOF
29257rm -f conftest.$ac_objext
29258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29259 (eval $ac_compile) 2>conftest.er1
a848cd7e 29260 ac_status=$?
ac1cb8d3
VS
29261 grep -v '^ *+' conftest.er1 >conftest.err
29262 rm -f conftest.er1
29263 cat conftest.err >&5
a848cd7e
SC
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); } &&
6ebeb4c7 29266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; }; then
29278 ac_header_compiler=yes
29279else
29280 echo "$as_me: failed program was:" >&5
29281sed 's/^/| /' conftest.$ac_ext >&5
29282
29283ac_header_compiler=no
29284fi
ac1cb8d3 29285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29287echo "${ECHO_T}$ac_header_compiler" >&6
29288
29289# Is the header present?
29290echo "$as_me:$LINENO: checking sql.h presence" >&5
29291echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29292cat >conftest.$ac_ext <<_ACEOF
29293/* confdefs.h. */
29294_ACEOF
29295cat confdefs.h >>conftest.$ac_ext
29296cat >>conftest.$ac_ext <<_ACEOF
29297/* end confdefs.h. */
29298#include <sql.h>
29299_ACEOF
29300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29302 ac_status=$?
29303 grep -v '^ *+' conftest.er1 >conftest.err
29304 rm -f conftest.er1
29305 cat conftest.err >&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); } >/dev/null; then
29308 if test -s conftest.err; then
29309 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29311 else
29312 ac_cpp_err=
29313 fi
29314else
29315 ac_cpp_err=yes
29316fi
29317if test -z "$ac_cpp_err"; then
29318 ac_header_preproc=yes
29319else
29320 echo "$as_me: failed program was:" >&5
29321sed 's/^/| /' conftest.$ac_ext >&5
29322
29323 ac_header_preproc=no
29324fi
29325rm -f conftest.err conftest.$ac_ext
29326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29327echo "${ECHO_T}$ac_header_preproc" >&6
29328
29329# So? What about this header?
ac1cb8d3
VS
29330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29331 yes:no: )
a848cd7e
SC
29332 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29333echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29334 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29335echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29336 ac_header_preproc=yes
a848cd7e 29337 ;;
ac1cb8d3 29338 no:yes:* )
a848cd7e
SC
29339 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29340echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29341 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29342echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29343 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29344echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29346echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29347 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29348echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29349 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29350echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29351 (
29352 cat <<\_ASBOX
ac1cb8d3
VS
29353## ----------------------------------------- ##
29354## Report this to wx-dev@lists.wxwidgets.org ##
29355## ----------------------------------------- ##
a848cd7e
SC
29356_ASBOX
29357 ) |
29358 sed "s/^/$as_me: WARNING: /" >&2
29359 ;;
29360esac
29361echo "$as_me:$LINENO: checking for sql.h" >&5
29362echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29363if test "${ac_cv_header_sql_h+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29365else
29366 ac_cv_header_sql_h=$ac_header_preproc
29367fi
29368echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29369echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29370
29371fi
29372if test $ac_cv_header_sql_h = yes; then
29373 found_sql_h=1
29374fi
29375
29376
29377 if test "x$found_sql_h" = "x1" ; then
29378 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29379echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29380if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29381 echo $ECHO_N "(cached) $ECHO_C" >&6
29382else
29383 ac_check_lib_save_LIBS=$LIBS
29384LIBS="-liodbc $LIBS"
29385cat >conftest.$ac_ext <<_ACEOF
29386/* confdefs.h. */
29387_ACEOF
29388cat confdefs.h >>conftest.$ac_ext
29389cat >>conftest.$ac_ext <<_ACEOF
29390/* end confdefs.h. */
29391
29392/* Override any gcc2 internal prototype to avoid an error. */
29393#ifdef __cplusplus
29394extern "C"
29395#endif
29396/* We use char because int might match the return type of a gcc2
29397 builtin and then its argument prototype would still apply. */
29398char SQLAllocEnv ();
29399int
29400main ()
29401{
29402SQLAllocEnv ();
29403 ;
29404 return 0;
29405}
29406_ACEOF
29407rm -f conftest.$ac_objext conftest$ac_exeext
29408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29409 (eval $ac_link) 2>conftest.er1
a848cd7e 29410 ac_status=$?
ac1cb8d3
VS
29411 grep -v '^ *+' conftest.er1 >conftest.err
29412 rm -f conftest.er1
29413 cat conftest.err >&5
a848cd7e
SC
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); } &&
6ebeb4c7 29416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; } &&
29422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424 (eval $ac_try) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 ac_cv_lib_iodbc_SQLAllocEnv=yes
29429else
29430 echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
29433ac_cv_lib_iodbc_SQLAllocEnv=no
29434fi
ac1cb8d3
VS
29435rm -f conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29437LIBS=$ac_check_lib_save_LIBS
29438fi
29439echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29440echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29441if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29442 ODBC_LINK=" -liodbc"
29443else
29444
29445 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29446echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29447if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449else
29450 ac_check_lib_save_LIBS=$LIBS
29451LIBS="-lunixodbc $LIBS"
29452cat >conftest.$ac_ext <<_ACEOF
29453/* confdefs.h. */
29454_ACEOF
29455cat confdefs.h >>conftest.$ac_ext
29456cat >>conftest.$ac_ext <<_ACEOF
29457/* end confdefs.h. */
29458
29459/* Override any gcc2 internal prototype to avoid an error. */
29460#ifdef __cplusplus
29461extern "C"
29462#endif
29463/* We use char because int might match the return type of a gcc2
29464 builtin and then its argument prototype would still apply. */
29465char SQLAllocEnv ();
29466int
29467main ()
29468{
29469SQLAllocEnv ();
29470 ;
29471 return 0;
29472}
29473_ACEOF
29474rm -f conftest.$ac_objext conftest$ac_exeext
29475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29476 (eval $ac_link) 2>conftest.er1
a848cd7e 29477 ac_status=$?
ac1cb8d3
VS
29478 grep -v '^ *+' conftest.er1 >conftest.err
29479 rm -f conftest.er1
29480 cat conftest.err >&5
a848cd7e
SC
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
6ebeb4c7 29483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491 (eval $ac_try) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; }; then
29495 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29496else
29497 echo "$as_me: failed program was:" >&5
29498sed 's/^/| /' conftest.$ac_ext >&5
29499
29500ac_cv_lib_unixodbc_SQLAllocEnv=no
29501fi
ac1cb8d3
VS
29502rm -f conftest.err conftest.$ac_objext \
29503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29504LIBS=$ac_check_lib_save_LIBS
29505fi
29506echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29507echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29508if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29509 ODBC_LINK=" -lunixodbc"
29510else
29511
29512 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29513echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29514if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29516else
29517 ac_check_lib_save_LIBS=$LIBS
29518LIBS="-lodbc $LIBS"
29519cat >conftest.$ac_ext <<_ACEOF
29520/* confdefs.h. */
29521_ACEOF
29522cat confdefs.h >>conftest.$ac_ext
29523cat >>conftest.$ac_ext <<_ACEOF
29524/* end confdefs.h. */
29525
29526/* Override any gcc2 internal prototype to avoid an error. */
29527#ifdef __cplusplus
29528extern "C"
29529#endif
29530/* We use char because int might match the return type of a gcc2
29531 builtin and then its argument prototype would still apply. */
29532char SQLAllocEnv ();
29533int
29534main ()
29535{
29536SQLAllocEnv ();
29537 ;
29538 return 0;
29539}
29540_ACEOF
29541rm -f conftest.$ac_objext conftest$ac_exeext
29542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29543 (eval $ac_link) 2>conftest.er1
a848cd7e 29544 ac_status=$?
ac1cb8d3
VS
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
a848cd7e
SC
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } &&
6ebeb4c7 29550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 ac_cv_lib_odbc_SQLAllocEnv=yes
29563else
29564 echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567ac_cv_lib_odbc_SQLAllocEnv=no
29568fi
ac1cb8d3
VS
29569rm -f conftest.err conftest.$ac_objext \
29570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29571LIBS=$ac_check_lib_save_LIBS
29572fi
29573echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29574echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29575if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29576 ODBC_LINK=" -lodbc"
29577fi
29578
29579
29580fi
29581
29582
29583fi
29584
29585 fi
29586 if test "x$ODBC_LINK" = "x" ; then
29587 if test "$wxUSE_ODBC" = "sys" ; then
29588 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29589echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29590 { (exit 1); exit 1; }; }
29591 else
29592 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29593echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29594 wxUSE_ODBC=builtin
29595 fi
29596 else
29597 wxUSE_ODBC=sys
29598 fi
29599 fi
a848cd7e 29600
2da0c077
RD
29601 if test "$wxUSE_ODBC" = "builtin" ; then
29602 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29603#define wxUSE_BUILTIN_IODBC 1
29604_ACEOF
29605
a848cd7e
SC
29606 fi
29607fi
29608
2da0c077
RD
29609if test "$wxUSE_ODBC" != "no" ; then
29610 cat >>confdefs.h <<\_ACEOF
29611#define wxUSE_ODBC 1
29612_ACEOF
29613
29614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29615
29616 WXODBCFLAG="-D_IODBC_"
29617fi
a848cd7e 29618
01cb68df 29619
a848cd7e 29620if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29621 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29622 echo "$as_me:$LINENO: checking for Xinerama" >&5
29623echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29624
29625ac_find_libraries=
29626for ac_dir in $SEARCH_LIB /usr/lib;
29627 do
3eca31dc 29628 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29629 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29630 ac_find_libraries=$ac_dir
29631 break 2
29632 fi
29633 done
29634 done
29635
29636 if test "$ac_find_libraries" != "" ; then
29637
29638 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29639 result=$?
29640 if test $result = 0; then
29641 ac_path_to_link=""
29642 else
29643 ac_path_to_link=" -L$ac_find_libraries"
29644 fi
29645
29646 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29647 LDFLAGS="$LDFLAGS $ac_path_to_link"
29648 fi
29649 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29650 echo "$as_me:$LINENO: result: yes" >&5
29651echo "${ECHO_T}yes" >&6
29652
29653 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29654echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29655
29656ac_find_libraries=
29657for ac_dir in $SEARCH_LIB /usr/lib;
29658 do
3eca31dc 29659 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29660 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29661 ac_find_libraries=$ac_dir
29662 break 2
29663 fi
29664 done
29665 done
29666
29667 if test "$ac_find_libraries" != "" ; then
29668 echo "$as_me:$LINENO: result: yes" >&5
29669echo "${ECHO_T}yes" >&6
29670
29671for ac_header in X11/extensions/xf86vmode.h
29672do
29673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29674echo "$as_me:$LINENO: checking for $ac_header" >&5
29675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29676if eval "test \"\${$as_ac_Header+set}\" = set"; then
29677 echo $ECHO_N "(cached) $ECHO_C" >&6
29678else
29679 cat >conftest.$ac_ext <<_ACEOF
29680/* confdefs.h. */
29681_ACEOF
29682cat confdefs.h >>conftest.$ac_ext
29683cat >>conftest.$ac_ext <<_ACEOF
29684/* end confdefs.h. */
29685
29686 #if HAVE_X11_XLIB_H
29687 #include <X11/Xlib.h>
29688 #endif
29689
29690
29691#include <$ac_header>
29692_ACEOF
29693rm -f conftest.$ac_objext
29694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29695 (eval $ac_compile) 2>conftest.er1
a848cd7e 29696 ac_status=$?
ac1cb8d3
VS
29697 grep -v '^ *+' conftest.er1 >conftest.err
29698 rm -f conftest.er1
29699 cat conftest.err >&5
a848cd7e
SC
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } &&
6ebeb4c7 29702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; } &&
29708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; }; then
29714 eval "$as_ac_Header=yes"
29715else
29716 echo "$as_me: failed program was:" >&5
29717sed 's/^/| /' conftest.$ac_ext >&5
29718
29719eval "$as_ac_Header=no"
29720fi
ac1cb8d3 29721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29722fi
29723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29725if test `eval echo '${'$as_ac_Header'}'` = yes; then
29726 cat >>confdefs.h <<_ACEOF
29727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29728_ACEOF
29729
29730 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29731
29732fi
29733
29734done
29735
29736 else
29737 echo "$as_me:$LINENO: result: no" >&5
29738echo "${ECHO_T}no" >&6
29739 fi
29740
29741 else
29742 echo "$as_me:$LINENO: result: no" >&5
29743echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29744 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29745echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29746 wxUSE_DISPLAY="no"
29747 fi
01cb68df
RG
29748 elif test "$wxUSE_MSW" = 1; then
29749
29750
29751for ac_header in multimon.h ddraw.h
29752do
29753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29754echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29756if eval "test \"\${$as_ac_Header+set}\" = set"; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29758else
5294a27e 29759 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29760/* confdefs.h. */
29761_ACEOF
29762cat confdefs.h >>conftest.$ac_ext
29763cat >>conftest.$ac_ext <<_ACEOF
29764/* end confdefs.h. */
5294a27e
VZ
29765#include <windows.h>
29766
01cb68df
RG
29767#include <$ac_header>
29768_ACEOF
29769rm -f conftest.$ac_objext
29770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29771 (eval $ac_compile) 2>conftest.er1
01cb68df 29772 ac_status=$?
ac1cb8d3
VS
29773 grep -v '^ *+' conftest.er1 >conftest.err
29774 rm -f conftest.er1
29775 cat conftest.err >&5
01cb68df
RG
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
6ebeb4c7 29778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
5294a27e 29790 eval "$as_ac_Header=yes"
01cb68df
RG
29791else
29792 echo "$as_me: failed program was:" >&5
29793sed 's/^/| /' conftest.$ac_ext >&5
29794
5294a27e 29795eval "$as_ac_Header=no"
01cb68df 29796fi
ac1cb8d3 29797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29798fi
29799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29801if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802 cat >>confdefs.h <<_ACEOF
29803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29804_ACEOF
29805
29806else
29807
5294a27e
VZ
29808 wxUSE_DISPLAY="no"
29809 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29810echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29811
29812fi
29813
29814done
29815
a848cd7e
SC
29816 fi
29817fi
29818
29819
29820USE_OPENGL=0
29821if test "$wxUSE_OPENGL" = "yes"; then
29822 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29823 OPENGL_LIBS="-framework OpenGL -framework AGL"
29824 elif test "$wxUSE_MSW" = 1; then
29825 OPENGL_LIBS="-lopengl32 -lglu32"
29826 else
29827
29828
29829ac_find_includes=
29830for ac_dir in $SEARCH_INCLUDE /usr/include;
29831 do
29832 if test -f "$ac_dir/GL/gl.h"; then
29833 ac_find_includes=$ac_dir
29834 break
29835 fi
29836 done
29837
29838 if test "$ac_find_includes" != "" ; then
29839 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29840echo "${ECHO_T}found in $ac_find_includes" >&6
29841
29842 if test "x$ac_find_includes" = "x/usr/include"; then
29843 ac_path_to_include=""
29844 else
29845 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29846 result=$?
29847 if test $result = 0; then
29848 ac_path_to_include=""
29849 else
29850 ac_path_to_include=" -I$ac_find_includes"
29851 fi
29852 fi
29853
29854 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29855 fi
29856
29857 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29858 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29859echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29860if test "${ac_cv_header_GL_gl_h+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862fi
29863echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29864echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29865else
29866 # Is the header compilable?
29867echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29868echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29869cat >conftest.$ac_ext <<_ACEOF
29870/* confdefs.h. */
29871_ACEOF
29872cat confdefs.h >>conftest.$ac_ext
29873cat >>conftest.$ac_ext <<_ACEOF
29874/* end confdefs.h. */
29875$ac_includes_default
29876#include <GL/gl.h>
29877_ACEOF
29878rm -f conftest.$ac_objext
29879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29880 (eval $ac_compile) 2>conftest.er1
a848cd7e 29881 ac_status=$?
ac1cb8d3
VS
29882 grep -v '^ *+' conftest.er1 >conftest.err
29883 rm -f conftest.er1
29884 cat conftest.err >&5
a848cd7e
SC
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
6ebeb4c7 29887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29890 ac_status=$?
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; } &&
29893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895 (eval $ac_try) 2>&5
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ac_header_compiler=yes
29900else
29901 echo "$as_me: failed program was:" >&5
29902sed 's/^/| /' conftest.$ac_ext >&5
29903
29904ac_header_compiler=no
29905fi
ac1cb8d3 29906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29908echo "${ECHO_T}$ac_header_compiler" >&6
29909
29910# Is the header present?
29911echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29912echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29913cat >conftest.$ac_ext <<_ACEOF
29914/* confdefs.h. */
29915_ACEOF
29916cat confdefs.h >>conftest.$ac_ext
29917cat >>conftest.$ac_ext <<_ACEOF
29918/* end confdefs.h. */
29919#include <GL/gl.h>
29920_ACEOF
29921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29923 ac_status=$?
29924 grep -v '^ *+' conftest.er1 >conftest.err
29925 rm -f conftest.er1
29926 cat conftest.err >&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); } >/dev/null; then
29929 if test -s conftest.err; then
29930 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29932 else
29933 ac_cpp_err=
29934 fi
29935else
29936 ac_cpp_err=yes
29937fi
29938if test -z "$ac_cpp_err"; then
29939 ac_header_preproc=yes
29940else
29941 echo "$as_me: failed program was:" >&5
29942sed 's/^/| /' conftest.$ac_ext >&5
29943
29944 ac_header_preproc=no
29945fi
29946rm -f conftest.err conftest.$ac_ext
29947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29948echo "${ECHO_T}$ac_header_preproc" >&6
29949
29950# So? What about this header?
ac1cb8d3
VS
29951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29952 yes:no: )
a848cd7e
SC
29953 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29954echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29955 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29956echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29957 ac_header_preproc=yes
a848cd7e 29958 ;;
ac1cb8d3 29959 no:yes:* )
a848cd7e
SC
29960 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29961echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29962 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29963echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29964 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29965echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29966 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29967echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29968 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29969echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29970 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29971echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29972 (
29973 cat <<\_ASBOX
ac1cb8d3
VS
29974## ----------------------------------------- ##
29975## Report this to wx-dev@lists.wxwidgets.org ##
29976## ----------------------------------------- ##
a848cd7e
SC
29977_ASBOX
29978 ) |
29979 sed "s/^/$as_me: WARNING: /" >&2
29980 ;;
29981esac
29982echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29983echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29984if test "${ac_cv_header_GL_gl_h+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29986else
29987 ac_cv_header_GL_gl_h=$ac_header_preproc
29988fi
29989echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29990echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29991
29992fi
29993if test $ac_cv_header_GL_gl_h = yes; then
29994
29995 found_gl=0
29996
29997 echo "$as_me:$LINENO: checking for -lGL" >&5
29998echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29999
30000ac_find_libraries=
30001for ac_dir in $SEARCH_LIB /usr/lib;
30002 do
3eca31dc 30003 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30004 if test -f "$ac_dir/libGL.$ac_extension"; then
30005 ac_find_libraries=$ac_dir
30006 break 2
30007 fi
30008 done
30009 done
30010
30011 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30012 echo "$as_me:$LINENO: result: yes" >&5
30013echo "${ECHO_T}yes" >&6
30014
a848cd7e
SC
30015
30016 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30017 result=$?
30018 if test $result = 0; then
30019 ac_path_to_link=""
30020 else
30021 ac_path_to_link=" -L$ac_find_libraries"
30022 fi
30023
30024 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30025 LDFLAGS_GL="$ac_path_to_link"
30026 fi
30027
69120ee4
VZ
30028 echo "$as_me:$LINENO: checking for -lGLU" >&5
30029echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
30030
30031ac_find_libraries=
30032for ac_dir in $SEARCH_LIB /usr/lib;
30033 do
3eca31dc 30034 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30035 if test -f "$ac_dir/libGLU.$ac_extension"; then
30036 ac_find_libraries=$ac_dir
30037 break 2
30038 fi
30039 done
30040 done
30041
30042 if test "$ac_find_libraries" != "" ; then
30043
30044 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30045 result=$?
30046 if test $result = 0; then
30047 ac_path_to_link=""
30048 else
30049 ac_path_to_link=" -L$ac_find_libraries"
30050 fi
30051
30052 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30053 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30054 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30055 fi
30056
30057 found_gl=1
30058 OPENGL_LIBS="-lGL -lGLU"
30059 echo "$as_me:$LINENO: result: yes" >&5
30060echo "${ECHO_T}yes" >&6
69120ee4
VZ
30061 else
30062 echo "$as_me:$LINENO: result: no" >&5
30063echo "${ECHO_T}no" >&6
a848cd7e 30064 fi
69120ee4
VZ
30065 else
30066 echo "$as_me:$LINENO: result: no" >&5
30067echo "${ECHO_T}no" >&6
a848cd7e
SC
30068 fi
30069
30070 if test "$found_gl" != 1; then
a848cd7e
SC
30071 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30072echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30073
30074ac_find_libraries=
30075for ac_dir in $SEARCH_LIB /usr/lib;
30076 do
3eca31dc 30077 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30078 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30079 ac_find_libraries=$ac_dir
30080 break 2
30081 fi
30082 done
30083 done
30084
30085 if test "$ac_find_libraries" != "" ; then
30086
30087 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30088 result=$?
30089 if test $result = 0; then
30090 ac_path_to_link=""
30091 else
30092 ac_path_to_link=" -L$ac_find_libraries"
30093 fi
30094
30095 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30096 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30097 echo "$as_me:$LINENO: result: yes" >&5
30098echo "${ECHO_T}yes" >&6
30099 else
30100 echo "$as_me:$LINENO: result: no" >&5
30101echo "${ECHO_T}no" >&6
30102 fi
30103 fi
30104
30105fi
30106
30107
30108
30109 if test "x$OPENGL_LIBS" = "x"; then
30110 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30111echo "$as_me: error: OpenGL libraries not available" >&2;}
30112 { (exit 1); exit 1; }; }
30113 fi
30114 fi
30115
30116 if test "$wxUSE_OPENGL" = "yes"; then
30117 USE_OPENGL=1
30118 cat >>confdefs.h <<\_ACEOF
30119#define wxUSE_OPENGL 1
30120_ACEOF
30121
30122 cat >>confdefs.h <<\_ACEOF
30123#define wxUSE_GLCANVAS 1
30124_ACEOF
30125
30126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30127 fi
30128fi
30129
a848cd7e
SC
30130
30131if test -n "$TOOLKIT" ; then
30132 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30133fi
30134
a848cd7e
SC
30135
30136
30137if test "$wxUSE_SHARED" = "yes"; then
30138 case "${host}" in
30139 *-pc-msdosdjgpp )
30140 wxUSE_SHARED=no
30141 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30142echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30143 ;;
30144 esac
30145fi
30146
a848cd7e 30147if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30148
30149
30150 found_versioning=no
30151
30152
30153 if test $found_versioning = no ; then
30154 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30155echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30156if test "${wx_cv_version_script+set}" = set; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30158else
30159
30160 echo "VER_1 { *; };" >conftest.sym
30161 echo "int main() { return 0; }" >conftest.cpp
30162
30163 if { ac_try='
30164 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30165 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30167 (eval $ac_try) 2>&5
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } ; then
30171 if test -s conftest.stderr ; then
30172 wx_cv_version_script=no
30173 else
30174 wx_cv_version_script=yes
30175 fi
30176 else
30177 wx_cv_version_script=no
30178 fi
e5d4b470
MW
30179
30180 if test $wx_cv_version_script = yes
30181 then
30182 echo "struct B { virtual ~B() { } }; \
30183 struct D : public B { }; \
30184 void F() { D d; }" > conftest.cpp
30185
30186 if { ac_try='
30187 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30188 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='
30195 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30196 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30198 (eval $ac_try) 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; }
30202 then
30203 if { ac_try='
30204 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30205 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }
30211 then
30212 wx_cv_version_script=yes
30213 else
30214 wx_cv_version_script=no
30215 fi
30216 fi
30217 fi
30218
a848cd7e 30219 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30220 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30221
30222fi
30223echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30224echo "${ECHO_T}$wx_cv_version_script" >&6
30225 if test $wx_cv_version_script = yes ; then
30226 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30227 fi
30228 fi
30229
30230
30231 case "${host}" in
30232 *-*-linux* | *-*-gnu* )
30233 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30234 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30235 ;;
a848cd7e
SC
30236
30237 *-*-solaris2* )
30238 if test "$GCC" = yes ; then
30239 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30240
30241 saveLdflags="$LDFLAGS"
30242 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30243 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30244echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30245 cat >conftest.$ac_ext <<_ACEOF
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
30251
30252int
30253main ()
30254{
30255
30256 ;
30257 return 0;
30258}
30259_ACEOF
30260rm -f conftest.$ac_objext conftest$ac_exeext
30261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30262 (eval $ac_link) 2>conftest.er1
a848cd7e 30263 ac_status=$?
ac1cb8d3
VS
30264 grep -v '^ *+' conftest.er1 >conftest.err
30265 rm -f conftest.er1
30266 cat conftest.err >&5
a848cd7e
SC
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
6ebeb4c7 30269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; } &&
30275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30277 (eval $ac_try) 2>&5
30278 ac_status=$?
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); }; }; then
30281
30282 echo "$as_me:$LINENO: result: yes" >&5
30283echo "${ECHO_T}yes" >&6
30284 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30285 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30286
30287else
30288 echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
30291
30292 echo "$as_me:$LINENO: result: no" >&5
30293echo "${ECHO_T}no" >&6
30294 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30295echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30296 LDFLAGS="$saveLdflags -Wl,-R,/"
30297 cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h. */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h. */
30303
30304int
30305main ()
30306{
30307
30308 ;
30309 return 0;
30310}
30311_ACEOF
30312rm -f conftest.$ac_objext conftest$ac_exeext
30313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30314 (eval $ac_link) 2>conftest.er1
a848cd7e 30315 ac_status=$?
ac1cb8d3
VS
30316 grep -v '^ *+' conftest.er1 >conftest.err
30317 rm -f conftest.er1
30318 cat conftest.err >&5
a848cd7e
SC
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } &&
6ebeb4c7 30321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323 (eval $ac_try) 2>&5
30324 ac_status=$?
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); }; } &&
30327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; }; then
30333
ffa0583f 30334 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30335echo "${ECHO_T}yes" >&6
ffa0583f
RL
30336 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30337 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30338
a848cd7e
SC
30339else
30340 echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343
30344 echo "$as_me:$LINENO: result: no" >&5
30345echo "${ECHO_T}no" >&6
30346
30347fi
ac1cb8d3
VS
30348rm -f conftest.err conftest.$ac_objext \
30349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30350
30351fi
ac1cb8d3
VS
30352rm -f conftest.err conftest.$ac_objext \
30353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30354 LDFLAGS="$saveLdflags"
30355 else
a848cd7e 30356 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30357 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30358 fi
30359 ;;
30360
cfda0ea8 30361 *-*-darwin* )
0caebc27
MW
30362 install_name_tool=`which install_name_tool`
30363 if test "$install_name_tool" -a -x "$install_name_tool"; then
30364 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30365 cat <<EOF >change-install-names
a848cd7e
SC
30366#!/bin/sh
30367libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30368inst_cmd="install_name_tool "
30369for i in \${libnames} ; do
30370 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30371done
30372\${inst_cmd} \${3}
30373EOF
0caebc27
MW
30374 chmod +x change-install-names
30375 fi
a848cd7e
SC
30376 ;;
30377
30378 *-*-cygwin* | *-*-mingw32* )
30379 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30380 ;;
30381
81f90336
MW
30382 *-*-hpux* )
30383 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30384 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30385 ;;
30386
a848cd7e 30387 esac
ceec2216 30388
ffa0583f
RL
30389 if test $wxUSE_RPATH = "no"; then
30390 SAMPLES_RPATH_FLAG=''
30391 SAMPLES_RPATH_POSTLINK=''
30392 WXCONFIG_RPATH=''
30393 fi
30394
30395 SHARED=1
30396
30397else
30398
ceec2216
RL
30399 config_linkage_component="-static"
30400 SHARED=0
ffa0583f 30401
ceec2216 30402fi
a848cd7e 30403
a848cd7e 30404
ceec2216
RL
30405UNICODE=0
30406lib_unicode_suffix=
30407WX_CHARTYPE="ansi"
30408if test "$wxUSE_UNICODE" = "yes"; then
30409 lib_unicode_suffix=u
30410 WX_CHARTYPE="unicode"
30411 UNICODE=1
a848cd7e
SC
30412fi
30413
ceec2216
RL
30414lib_debug_suffix=
30415WX_DEBUGTYPE="release"
30416DEBUG_FLAG=0
30417if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30418 lib_debug_suffix=d
30419 WX_DEBUGTYPE="debug"
30420 DEBUG_FLAG=1
30421fi
a848cd7e 30422
ceec2216
RL
30423WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30424WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30425
ceec2216
RL
30426DEBUG_INFO=0
30427if test "$wxUSE_DEBUG_INFO" = "yes"; then
30428 DEBUG_INFO=1
30429fi
a848cd7e 30430
ceec2216 30431WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30432
ceec2216 30433TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30434
ceec2216 30435TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30436
ceec2216
RL
30437if test "$cross_compiling" = "yes"; then
30438 HOST_SUFFIX="-$host_alias"
30439 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30440 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30441fi
30442
dd21ced8 30443WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30444if test "${TOOLKIT_DIR}" = "os2"; then
30445 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30446else
30447 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30448fi
ceec2216
RL
30449
30450
30451
1d1af5ea
DE
30452if test "$wxUSE_COCOA" = 1; then
30453
30454
30455 ac_ext=c
30456ac_cpp='$CPP $CPPFLAGS'
30457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30459ac_compiler_gnu=$ac_cv_c_compiler_gnu
30460
30461ac_ext=m
30462
30463 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30464echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30465 cat >conftest.$ac_ext <<_ACEOF
30466/* confdefs.h. */
30467_ACEOF
30468cat confdefs.h >>conftest.$ac_ext
30469cat >>conftest.$ac_ext <<_ACEOF
30470/* end confdefs.h. */
30471#include <AppKit/NSEvent.h>
30472#include <CoreFoundation/CoreFoundation.h>
30473
30474int
30475main ()
30476{
30477
30478 ;
30479 return 0;
30480}
30481_ACEOF
30482rm -f conftest.$ac_objext
30483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30484 (eval $ac_compile) 2>conftest.er1
30485 ac_status=$?
30486 grep -v '^ *+' conftest.er1 >conftest.err
30487 rm -f conftest.er1
30488 cat conftest.err >&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } &&
6ebeb4c7 30491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30493 (eval $ac_try) 2>&5
30494 ac_status=$?
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; } &&
30497 { ac_try='test -s conftest.$ac_objext'
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; }; then
30503 echo "$as_me:$LINENO: result: no" >&5
30504echo "${ECHO_T}no" >&6
30505else
30506 echo "$as_me: failed program was:" >&5
30507sed 's/^/| /' conftest.$ac_ext >&5
30508
30509echo "$as_me:$LINENO: result: yes" >&5
30510echo "${ECHO_T}yes" >&6
30511 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30512echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30513 cat >conftest.$ac_ext <<_ACEOF
30514/* confdefs.h. */
30515_ACEOF
30516cat confdefs.h >>conftest.$ac_ext
30517cat >>conftest.$ac_ext <<_ACEOF
30518/* end confdefs.h. */
30519#define __Point__ 1
30520#include <AppKit/NSEvent.h>
30521#include <CoreFoundation/CoreFoundation.h>
30522
30523int
30524main ()
30525{
30526
30527 ;
30528 return 0;
30529}
30530_ACEOF
30531rm -f conftest.$ac_objext
30532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30533 (eval $ac_compile) 2>conftest.er1
30534 ac_status=$?
30535 grep -v '^ *+' conftest.er1 >conftest.err
30536 rm -f conftest.er1
30537 cat conftest.err >&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); } &&
6ebeb4c7 30540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest.$ac_objext'
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30549 ac_status=$?
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; }; then
30552 echo "$as_me:$LINENO: result: yes" >&5
30553echo "${ECHO_T}yes" >&6
30554 cat >>confdefs.h <<\_ACEOF
30555#define __Point__ 1
30556_ACEOF
30557
30558
30559else
30560 echo "$as_me: failed program was:" >&5
30561sed 's/^/| /' conftest.$ac_ext >&5
30562
30563{ { echo "$as_me:$LINENO: error: no
30564See \`config.log' for more details." >&5
30565echo "$as_me: error: no
30566See \`config.log' for more details." >&2;}
30567 { (exit 1); exit 1; }; }
30568
30569fi
30570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30571
30572fi
30573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30574 ac_ext=c
30575ac_cpp='$CPP $CPPFLAGS'
30576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30578ac_compiler_gnu=$ac_cv_c_compiler_gnu
30579
30580fi
30581
a848cd7e 30582if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30583 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30584 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30585
a848cd7e 30586 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30587
30588 # Extract the first word of "Rez", so it can be a program name with args.
30589set dummy Rez; ac_word=$2
30590echo "$as_me:$LINENO: checking for $ac_word" >&5
30591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30592if test "${ac_cv_prog_RESCOMP+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 if test -n "$RESCOMP"; then
30596 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30597else
30598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30599for as_dir in $PATH
30600do
30601 IFS=$as_save_IFS
30602 test -z "$as_dir" && as_dir=.
30603 for ac_exec_ext in '' $ac_executable_extensions; do
30604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30605 ac_cv_prog_RESCOMP="Rez"
30606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30607 break 2
30608 fi
30609done
30610done
30611
30612 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30613fi
30614fi
30615RESCOMP=$ac_cv_prog_RESCOMP
30616if test -n "$RESCOMP"; then
30617 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30618echo "${ECHO_T}$RESCOMP" >&6
30619else
30620 echo "$as_me:$LINENO: result: no" >&5
30621echo "${ECHO_T}no" >&6
30622fi
30623
30624 # Extract the first word of "DeRez", so it can be a program name with args.
30625set dummy DeRez; ac_word=$2
30626echo "$as_me:$LINENO: checking for $ac_word" >&5
30627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30628if test "${ac_cv_prog_DEREZ+set}" = set; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30630else
30631 if test -n "$DEREZ"; then
30632 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30633else
30634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30635for as_dir in $PATH
30636do
30637 IFS=$as_save_IFS
30638 test -z "$as_dir" && as_dir=.
30639 for ac_exec_ext in '' $ac_executable_extensions; do
30640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30641 ac_cv_prog_DEREZ="DeRez"
30642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30643 break 2
30644 fi
30645done
30646done
30647
30648 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30649fi
30650fi
30651DEREZ=$ac_cv_prog_DEREZ
30652if test -n "$DEREZ"; then
30653 echo "$as_me:$LINENO: result: $DEREZ" >&5
30654echo "${ECHO_T}$DEREZ" >&6
30655else
30656 echo "$as_me:$LINENO: result: no" >&5
30657echo "${ECHO_T}no" >&6
30658fi
30659
30660 # Extract the first word of "SetFile", so it can be a program name with args.
30661set dummy SetFile; ac_word=$2
30662echo "$as_me:$LINENO: checking for $ac_word" >&5
30663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30664if test "${ac_cv_prog_SETFILE+set}" = set; then
30665 echo $ECHO_N "(cached) $ECHO_C" >&6
30666else
30667 if test -n "$SETFILE"; then
30668 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30669else
30670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30671for as_dir in $PATH
30672do
30673 IFS=$as_save_IFS
30674 test -z "$as_dir" && as_dir=.
30675 for ac_exec_ext in '' $ac_executable_extensions; do
30676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30677 ac_cv_prog_SETFILE="SetFile"
30678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30679 break 2
30680 fi
30681done
30682done
30683
30684 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30685fi
30686fi
30687SETFILE=$ac_cv_prog_SETFILE
30688if test -n "$SETFILE"; then
30689 echo "$as_me:$LINENO: result: $SETFILE" >&5
30690echo "${ECHO_T}$SETFILE" >&6
30691else
30692 echo "$as_me:$LINENO: result: no" >&5
30693echo "${ECHO_T}no" >&6
30694fi
30695
30696
30697 MACSETFILE="\$(SETFILE)"
30698
30699 if test "$wxUSE_MAC" = 1; then
1a79f136 30700 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30701
1a79f136 30702 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30703 else
30704 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30705 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30706 fi
30707else
ffa0583f
RL
30708 MACSETFILE="@true"
30709 MACRESWXCONFIG="@true"
a848cd7e
SC
30710
30711 if test "$wxUSE_PM" = 1; then
30712 MACRESCOMP="emxbind -ep"
30713 else
ffa0583f 30714 MACRESCOMP="@true"
a848cd7e
SC
30715 fi
30716fi
30717
30718
30719
30720echo "$as_me:$LINENO: checking for mode_t" >&5
30721echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30722if test "${ac_cv_type_mode_t+set}" = set; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724else
30725 cat >conftest.$ac_ext <<_ACEOF
30726/* confdefs.h. */
30727_ACEOF
30728cat confdefs.h >>conftest.$ac_ext
30729cat >>conftest.$ac_ext <<_ACEOF
30730/* end confdefs.h. */
30731$ac_includes_default
30732int
30733main ()
30734{
30735if ((mode_t *) 0)
30736 return 0;
30737if (sizeof (mode_t))
30738 return 0;
30739 ;
30740 return 0;
30741}
30742_ACEOF
30743rm -f conftest.$ac_objext
30744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30745 (eval $ac_compile) 2>conftest.er1
a848cd7e 30746 ac_status=$?
ac1cb8d3
VS
30747 grep -v '^ *+' conftest.er1 >conftest.err
30748 rm -f conftest.er1
30749 cat conftest.err >&5
a848cd7e
SC
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
6ebeb4c7 30752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; }; then
30764 ac_cv_type_mode_t=yes
30765else
30766 echo "$as_me: failed program was:" >&5
30767sed 's/^/| /' conftest.$ac_ext >&5
30768
30769ac_cv_type_mode_t=no
30770fi
ac1cb8d3 30771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30772fi
30773echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30774echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30775if test $ac_cv_type_mode_t = yes; then
30776 :
30777else
30778
30779cat >>confdefs.h <<_ACEOF
30780#define mode_t int
30781_ACEOF
30782
30783fi
30784
30785echo "$as_me:$LINENO: checking for off_t" >&5
30786echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30787if test "${ac_cv_type_off_t+set}" = set; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30789else
30790 cat >conftest.$ac_ext <<_ACEOF
30791/* confdefs.h. */
30792_ACEOF
30793cat confdefs.h >>conftest.$ac_ext
30794cat >>conftest.$ac_ext <<_ACEOF
30795/* end confdefs.h. */
30796$ac_includes_default
30797int
30798main ()
30799{
30800if ((off_t *) 0)
30801 return 0;
30802if (sizeof (off_t))
30803 return 0;
30804 ;
30805 return 0;
30806}
30807_ACEOF
30808rm -f conftest.$ac_objext
30809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30810 (eval $ac_compile) 2>conftest.er1
a848cd7e 30811 ac_status=$?
ac1cb8d3
VS
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
a848cd7e
SC
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } &&
6ebeb4c7 30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; } &&
30823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825 (eval $ac_try) 2>&5
30826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; }; then
30829 ac_cv_type_off_t=yes
30830else
30831 echo "$as_me: failed program was:" >&5
30832sed 's/^/| /' conftest.$ac_ext >&5
30833
30834ac_cv_type_off_t=no
30835fi
ac1cb8d3 30836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30837fi
30838echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30839echo "${ECHO_T}$ac_cv_type_off_t" >&6
30840if test $ac_cv_type_off_t = yes; then
30841 :
30842else
30843
30844cat >>confdefs.h <<_ACEOF
30845#define off_t long
30846_ACEOF
30847
30848fi
30849
30850echo "$as_me:$LINENO: checking for pid_t" >&5
30851echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30852if test "${ac_cv_type_pid_t+set}" = set; then
30853 echo $ECHO_N "(cached) $ECHO_C" >&6
30854else
30855 cat >conftest.$ac_ext <<_ACEOF
30856/* confdefs.h. */
30857_ACEOF
30858cat confdefs.h >>conftest.$ac_ext
30859cat >>conftest.$ac_ext <<_ACEOF
30860/* end confdefs.h. */
30861$ac_includes_default
30862int
30863main ()
30864{
30865if ((pid_t *) 0)
30866 return 0;
30867if (sizeof (pid_t))
30868 return 0;
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext
30874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30875 (eval $ac_compile) 2>conftest.er1
a848cd7e 30876 ac_status=$?
ac1cb8d3
VS
30877 grep -v '^ *+' conftest.er1 >conftest.err
30878 rm -f conftest.er1
30879 cat conftest.err >&5
a848cd7e
SC
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } &&
6ebeb4c7 30882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 ac_cv_type_pid_t=yes
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899ac_cv_type_pid_t=no
30900fi
ac1cb8d3 30901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30902fi
30903echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30904echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30905if test $ac_cv_type_pid_t = yes; then
30906 :
30907else
30908
30909cat >>confdefs.h <<_ACEOF
30910#define pid_t int
30911_ACEOF
30912
30913fi
30914
30915echo "$as_me:$LINENO: checking for size_t" >&5
30916echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30917if test "${ac_cv_type_size_t+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919else
30920 cat >conftest.$ac_ext <<_ACEOF
30921/* confdefs.h. */
30922_ACEOF
30923cat confdefs.h >>conftest.$ac_ext
30924cat >>conftest.$ac_ext <<_ACEOF
30925/* end confdefs.h. */
30926$ac_includes_default
30927int
30928main ()
30929{
30930if ((size_t *) 0)
30931 return 0;
30932if (sizeof (size_t))
30933 return 0;
30934 ;
30935 return 0;
30936}
30937_ACEOF
30938rm -f conftest.$ac_objext
30939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30940 (eval $ac_compile) 2>conftest.er1
a848cd7e 30941 ac_status=$?
ac1cb8d3
VS
30942 grep -v '^ *+' conftest.er1 >conftest.err
30943 rm -f conftest.er1
30944 cat conftest.err >&5
a848cd7e
SC
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } &&
6ebeb4c7 30947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; } &&
30953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955 (eval $ac_try) 2>&5
30956 ac_status=$?
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); }; }; then
30959 ac_cv_type_size_t=yes
30960else
30961 echo "$as_me: failed program was:" >&5
30962sed 's/^/| /' conftest.$ac_ext >&5
30963
30964ac_cv_type_size_t=no
30965fi
ac1cb8d3 30966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30967fi
30968echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30969echo "${ECHO_T}$ac_cv_type_size_t" >&6
30970if test $ac_cv_type_size_t = yes; then
30971 :
30972else
30973
30974cat >>confdefs.h <<_ACEOF
30975#define size_t unsigned
30976_ACEOF
30977
30978fi
30979
30980echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30981echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30982if test "${ac_cv_type_uid_t+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30984else
30985 cat >conftest.$ac_ext <<_ACEOF
30986/* confdefs.h. */
30987_ACEOF
30988cat confdefs.h >>conftest.$ac_ext
30989cat >>conftest.$ac_ext <<_ACEOF
30990/* end confdefs.h. */
30991#include <sys/types.h>
30992
30993_ACEOF
30994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30995 $EGREP "uid_t" >/dev/null 2>&1; then
30996 ac_cv_type_uid_t=yes
30997else
30998 ac_cv_type_uid_t=no
30999fi
31000rm -f conftest*
31001
31002fi
31003echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31004echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31005if test $ac_cv_type_uid_t = no; then
31006
31007cat >>confdefs.h <<\_ACEOF
31008#define uid_t int
31009_ACEOF
31010
31011
31012cat >>confdefs.h <<\_ACEOF
31013#define gid_t int
31014_ACEOF
31015
31016fi
31017
31018
d51253e8
RL
31019echo "$as_me:$LINENO: checking for ssize_t" >&5
31020echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31021if test "${ac_cv_type_ssize_t+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31023else
31024 cat >conftest.$ac_ext <<_ACEOF
31025/* confdefs.h. */
31026_ACEOF
31027cat confdefs.h >>conftest.$ac_ext
31028cat >>conftest.$ac_ext <<_ACEOF
31029/* end confdefs.h. */
31030$ac_includes_default
31031int
31032main ()
31033{
31034if ((ssize_t *) 0)
31035 return 0;
31036if (sizeof (ssize_t))
31037 return 0;
31038 ;
31039 return 0;
31040}
31041_ACEOF
31042rm -f conftest.$ac_objext
31043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31044 (eval $ac_compile) 2>conftest.er1
31045 ac_status=$?
31046 grep -v '^ *+' conftest.er1 >conftest.err
31047 rm -f conftest.er1
31048 cat conftest.err >&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
6ebeb4c7 31051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053 (eval $ac_try) 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; } &&
31057 { ac_try='test -s conftest.$ac_objext'
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 ac_cv_type_ssize_t=yes
31064else
31065 echo "$as_me: failed program was:" >&5
31066sed 's/^/| /' conftest.$ac_ext >&5
31067
31068ac_cv_type_ssize_t=no
31069fi
31070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31071fi
31072echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31073echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31074if test $ac_cv_type_ssize_t = yes; then
31075
31076cat >>confdefs.h <<_ACEOF
31077#define HAVE_SSIZE_T 1
31078_ACEOF
31079
31080
31081fi
31082
31083
a848cd7e
SC
31084
31085
31086ac_ext=cc
31087ac_cpp='$CXXCPP $CPPFLAGS'
31088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31091
31092echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31093echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31094if test "${wx_cv_size_t_is_uint+set}" = set; then
31095 echo $ECHO_N "(cached) $ECHO_C" >&6
31096else
31097
31098 cat >conftest.$ac_ext <<_ACEOF
31099/* confdefs.h. */
31100_ACEOF
31101cat confdefs.h >>conftest.$ac_ext
31102cat >>conftest.$ac_ext <<_ACEOF
31103/* end confdefs.h. */
31104#include <stddef.h>
31105int
31106main ()
31107{
31108
31109 return 0; }
31110
31111 struct Foo { void foo(size_t); void foo(unsigned int); };
31112
31113 int bar() {
31114
31115 ;
31116 return 0;
31117}
31118_ACEOF
31119rm -f conftest.$ac_objext
31120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31121 (eval $ac_compile) 2>conftest.er1
a848cd7e 31122 ac_status=$?
ac1cb8d3
VS
31123 grep -v '^ *+' conftest.er1 >conftest.err
31124 rm -f conftest.er1
31125 cat conftest.err >&5
a848cd7e
SC
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } &&
6ebeb4c7 31128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; } &&
31134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31137 ac_status=$?
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; }; then
31140 wx_cv_size_t_is_uint=no
31141else
31142 echo "$as_me: failed program was:" >&5
31143sed 's/^/| /' conftest.$ac_ext >&5
31144
31145wx_cv_size_t_is_uint=yes
31146
31147fi
ac1cb8d3 31148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31149
31150
31151fi
31152echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31153echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31154
31155if test "$wx_cv_size_t_is_uint" = "yes"; then
31156 cat >>confdefs.h <<\_ACEOF
31157#define wxSIZE_T_IS_UINT 1
31158_ACEOF
31159
31160else
31161 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31162echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31163if test "${wx_cv_size_t_is_ulong+set}" = set; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31165else
31166 cat >conftest.$ac_ext <<_ACEOF
31167/* confdefs.h. */
31168_ACEOF
31169cat confdefs.h >>conftest.$ac_ext
31170cat >>conftest.$ac_ext <<_ACEOF
31171/* end confdefs.h. */
31172#include <stddef.h>
31173int
31174main ()
31175{
31176
31177 return 0; }
31178
31179 struct Foo { void foo(size_t); void foo(unsigned long); };
31180
31181 int bar() {
31182
31183 ;
31184 return 0;
31185}
31186_ACEOF
31187rm -f conftest.$ac_objext
31188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31189 (eval $ac_compile) 2>conftest.er1
a848cd7e 31190 ac_status=$?
ac1cb8d3
VS
31191 grep -v '^ *+' conftest.er1 >conftest.err
31192 rm -f conftest.er1
31193 cat conftest.err >&5
a848cd7e
SC
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
6ebeb4c7 31196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 wx_cv_size_t_is_ulong=no
31209else
31210 echo "$as_me: failed program was:" >&5
31211sed 's/^/| /' conftest.$ac_ext >&5
31212
31213wx_cv_size_t_is_ulong=yes
31214
31215fi
ac1cb8d3 31216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31217
31218fi
31219echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31220echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31221
31222 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31223 cat >>confdefs.h <<\_ACEOF
31224#define wxSIZE_T_IS_ULONG 1
31225_ACEOF
31226
31227 fi
31228fi
31229
31230ac_ext=c
31231ac_cpp='$CPP $CPPFLAGS'
31232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31234ac_compiler_gnu=$ac_cv_c_compiler_gnu
31235
31236
31237
31238echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31239echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31240if test "${wx_cv_struct_pw_gecos+set}" = set; then
31241 echo $ECHO_N "(cached) $ECHO_C" >&6
31242else
31243
31244 cat >conftest.$ac_ext <<_ACEOF
31245/* confdefs.h. */
31246_ACEOF
31247cat confdefs.h >>conftest.$ac_ext
31248cat >>conftest.$ac_ext <<_ACEOF
31249/* end confdefs.h. */
31250#include <pwd.h>
31251int
31252main ()
31253{
31254
31255 char *p;
31256 struct passwd *pw;
31257 p = pw->pw_gecos;
31258
31259 ;
31260 return 0;
31261}
31262_ACEOF
31263rm -f conftest.$ac_objext
31264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31265 (eval $ac_compile) 2>conftest.er1
a848cd7e 31266 ac_status=$?
ac1cb8d3
VS
31267 grep -v '^ *+' conftest.er1 >conftest.err
31268 rm -f conftest.er1
31269 cat conftest.err >&5
a848cd7e
SC
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); } &&
6ebeb4c7 31272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31274 (eval $ac_try) 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; } &&
31278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284
31285 wx_cv_struct_pw_gecos=yes
31286
31287else
31288 echo "$as_me: failed program was:" >&5
31289sed 's/^/| /' conftest.$ac_ext >&5
31290
31291
31292 wx_cv_struct_pw_gecos=no
31293
31294
31295fi
ac1cb8d3 31296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31297
31298
31299fi
31300echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31301echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31302
31303if test "$wx_cv_struct_pw_gecos" = "yes"; then
31304 cat >>confdefs.h <<\_ACEOF
31305#define HAVE_PW_GECOS 1
31306_ACEOF
31307
31308fi
31309
31310
47a7e797 31311if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31312 cat >>confdefs.h <<\_ACEOF
31313#define wxUSE_WCHAR_T 1
31314_ACEOF
31315
31316
31317 WCSLEN_FOUND=0
31318 WCHAR_LINK=
31319
31320for ac_func in wcslen
31321do
31322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31323echo "$as_me:$LINENO: checking for $ac_func" >&5
31324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31325if eval "test \"\${$as_ac_var+set}\" = set"; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31327else
31328 cat >conftest.$ac_ext <<_ACEOF
31329/* confdefs.h. */
31330_ACEOF
31331cat confdefs.h >>conftest.$ac_ext
31332cat >>conftest.$ac_ext <<_ACEOF
31333/* end confdefs.h. */
ac1cb8d3
VS
31334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31336#define $ac_func innocuous_$ac_func
31337
a848cd7e
SC
31338/* System header to define __stub macros and hopefully few prototypes,
31339 which can conflict with char $ac_func (); below.
31340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31342
a848cd7e
SC
31343#ifdef __STDC__
31344# include <limits.h>
31345#else
31346# include <assert.h>
31347#endif
ac1cb8d3
VS
31348
31349#undef $ac_func
31350
a848cd7e
SC
31351/* Override any gcc2 internal prototype to avoid an error. */
31352#ifdef __cplusplus
31353extern "C"
31354{
31355#endif
31356/* We use char because int might match the return type of a gcc2
31357 builtin and then its argument prototype would still apply. */
31358char $ac_func ();
31359/* The GNU C library defines this for functions which it implements
31360 to always fail with ENOSYS. Some functions are actually named
31361 something starting with __ and the normal name is an alias. */
31362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31363choke me
31364#else
31365char (*f) () = $ac_func;
31366#endif
31367#ifdef __cplusplus
31368}
31369#endif
31370
31371int
31372main ()
31373{
31374return f != $ac_func;
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379rm -f conftest.$ac_objext conftest$ac_exeext
31380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31381 (eval $ac_link) 2>conftest.er1
a848cd7e 31382 ac_status=$?
ac1cb8d3
VS
31383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
a848cd7e
SC
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
6ebeb4c7 31388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 eval "$as_ac_var=yes"
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405eval "$as_ac_var=no"
31406fi
ac1cb8d3
VS
31407rm -f conftest.err conftest.$ac_objext \
31408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31409fi
31410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31412if test `eval echo '${'$as_ac_var'}'` = yes; then
31413 cat >>confdefs.h <<_ACEOF
31414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31415_ACEOF
31416 WCSLEN_FOUND=1
31417fi
31418done
31419
31420
31421 if test "$WCSLEN_FOUND" = 0; then
31422 if test "$TOOLKIT" = "MSW"; then
31423 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31424echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31425if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31426 echo $ECHO_N "(cached) $ECHO_C" >&6
31427else
31428 ac_check_lib_save_LIBS=$LIBS
31429LIBS="-lmsvcrt $LIBS"
31430cat >conftest.$ac_ext <<_ACEOF
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
31436
31437/* Override any gcc2 internal prototype to avoid an error. */
31438#ifdef __cplusplus
31439extern "C"
31440#endif
31441/* We use char because int might match the return type of a gcc2
31442 builtin and then its argument prototype would still apply. */
31443char wcslen ();
31444int
31445main ()
31446{
31447wcslen ();
31448 ;
31449 return 0;
31450}
31451_ACEOF
31452rm -f conftest.$ac_objext conftest$ac_exeext
31453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31454 (eval $ac_link) 2>conftest.er1
a848cd7e 31455 ac_status=$?
ac1cb8d3
VS
31456 grep -v '^ *+' conftest.er1 >conftest.err
31457 rm -f conftest.er1
31458 cat conftest.err >&5
a848cd7e
SC
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); } &&
6ebeb4c7 31461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 (eval $ac_try) 2>&5
31464 ac_status=$?
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; } &&
31467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31469 (eval $ac_try) 2>&5
31470 ac_status=$?
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; }; then
31473 ac_cv_lib_msvcrt_wcslen=yes
31474else
31475 echo "$as_me: failed program was:" >&5
31476sed 's/^/| /' conftest.$ac_ext >&5
31477
31478ac_cv_lib_msvcrt_wcslen=no
31479fi
ac1cb8d3
VS
31480rm -f conftest.err conftest.$ac_objext \
31481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31482LIBS=$ac_check_lib_save_LIBS
31483fi
31484echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31485echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31486if test $ac_cv_lib_msvcrt_wcslen = yes; then
31487 WCHAR_OK=1
31488fi
31489
31490 else
31491 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31492echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31493if test "${ac_cv_lib_w_wcslen+set}" = set; then
31494 echo $ECHO_N "(cached) $ECHO_C" >&6
31495else
31496 ac_check_lib_save_LIBS=$LIBS
31497LIBS="-lw $LIBS"
31498cat >conftest.$ac_ext <<_ACEOF
31499/* confdefs.h. */
31500_ACEOF
31501cat confdefs.h >>conftest.$ac_ext
31502cat >>conftest.$ac_ext <<_ACEOF
31503/* end confdefs.h. */
31504
31505/* Override any gcc2 internal prototype to avoid an error. */
31506#ifdef __cplusplus
31507extern "C"
31508#endif
31509/* We use char because int might match the return type of a gcc2
31510 builtin and then its argument prototype would still apply. */
31511char wcslen ();
31512int
31513main ()
31514{
31515wcslen ();
31516 ;
31517 return 0;
31518}
31519_ACEOF
31520rm -f conftest.$ac_objext conftest$ac_exeext
31521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31522 (eval $ac_link) 2>conftest.er1
a848cd7e 31523 ac_status=$?
ac1cb8d3
VS
31524 grep -v '^ *+' conftest.er1 >conftest.err
31525 rm -f conftest.er1
31526 cat conftest.err >&5
a848cd7e
SC
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } &&
6ebeb4c7 31529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31531 (eval $ac_try) 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 ac_cv_lib_w_wcslen=yes
31542else
31543 echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
31546ac_cv_lib_w_wcslen=no
31547fi
ac1cb8d3
VS
31548rm -f conftest.err conftest.$ac_objext \
31549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31550LIBS=$ac_check_lib_save_LIBS
31551fi
31552echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31553echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31554if test $ac_cv_lib_w_wcslen = yes; then
31555
31556 WCHAR_LINK=" -lw"
31557 WCSLEN_FOUND=1
31558
31559fi
31560
31561 fi
31562 fi
31563
31564 if test "$WCSLEN_FOUND" = 1; then
31565 cat >>confdefs.h <<\_ACEOF
31566#define HAVE_WCSLEN 1
31567_ACEOF
31568
31569 fi
31570
efdf6afe 31571 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31572 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31573 fi
31574
efdf6afe
VZ
31575 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31576echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31577if test "${ac_cv_type_mbstate_t+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31579else
31580 cat >conftest.$ac_ext <<_ACEOF
31581/* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
31586#include <wchar.h>
31587
31588int
31589main ()
31590{
31591if ((mbstate_t *) 0)
31592 return 0;
31593if (sizeof (mbstate_t))
31594 return 0;
31595 ;
31596 return 0;
31597}
31598_ACEOF
31599rm -f conftest.$ac_objext
31600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31601 (eval $ac_compile) 2>conftest.er1
31602 ac_status=$?
31603 grep -v '^ *+' conftest.er1 >conftest.err
31604 rm -f conftest.er1
31605 cat conftest.err >&5
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); } &&
31608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31610 (eval $ac_try) 2>&5
31611 ac_status=$?
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); }; } &&
31614 { ac_try='test -s conftest.$ac_objext'
31615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31616 (eval $ac_try) 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; }; then
31620 ac_cv_type_mbstate_t=yes
31621else
31622 echo "$as_me: failed program was:" >&5
31623sed 's/^/| /' conftest.$ac_ext >&5
31624
31625ac_cv_type_mbstate_t=no
31626fi
31627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31628fi
31629echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31630echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31631if test $ac_cv_type_mbstate_t = yes; then
31632
31633cat >>confdefs.h <<_ACEOF
31634#define HAVE_MBSTATE_T 1
31635_ACEOF
31636
a848cd7e
SC
31637
31638for ac_func in wcsrtombs
31639do
31640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31641echo "$as_me:$LINENO: checking for $ac_func" >&5
31642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31643if eval "test \"\${$as_ac_var+set}\" = set"; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31645else
31646 cat >conftest.$ac_ext <<_ACEOF
31647/* confdefs.h. */
31648_ACEOF
31649cat confdefs.h >>conftest.$ac_ext
31650cat >>conftest.$ac_ext <<_ACEOF
31651/* end confdefs.h. */
ac1cb8d3
VS
31652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31654#define $ac_func innocuous_$ac_func
31655
a848cd7e
SC
31656/* System header to define __stub macros and hopefully few prototypes,
31657 which can conflict with char $ac_func (); below.
31658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31659 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31660
a848cd7e
SC
31661#ifdef __STDC__
31662# include <limits.h>
31663#else
31664# include <assert.h>
31665#endif
ac1cb8d3
VS
31666
31667#undef $ac_func
31668
a848cd7e
SC
31669/* Override any gcc2 internal prototype to avoid an error. */
31670#ifdef __cplusplus
31671extern "C"
31672{
31673#endif
31674/* We use char because int might match the return type of a gcc2
31675 builtin and then its argument prototype would still apply. */
31676char $ac_func ();
31677/* The GNU C library defines this for functions which it implements
31678 to always fail with ENOSYS. Some functions are actually named
31679 something starting with __ and the normal name is an alias. */
31680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31681choke me
31682#else
31683char (*f) () = $ac_func;
31684#endif
31685#ifdef __cplusplus
31686}
31687#endif
31688
31689int
31690main ()
31691{
31692return f != $ac_func;
31693 ;
31694 return 0;
31695}
31696_ACEOF
31697rm -f conftest.$ac_objext conftest$ac_exeext
31698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31699 (eval $ac_link) 2>conftest.er1
a848cd7e 31700 ac_status=$?
ac1cb8d3
VS
31701 grep -v '^ *+' conftest.er1 >conftest.err
31702 rm -f conftest.er1
31703 cat conftest.err >&5
a848cd7e
SC
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); } &&
6ebeb4c7 31706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; } &&
31712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; }; then
31718 eval "$as_ac_var=yes"
31719else
31720 echo "$as_me: failed program was:" >&5
31721sed 's/^/| /' conftest.$ac_ext >&5
31722
31723eval "$as_ac_var=no"
31724fi
ac1cb8d3
VS
31725rm -f conftest.err conftest.$ac_objext \
31726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31727fi
31728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31730if test `eval echo '${'$as_ac_var'}'` = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31733_ACEOF
31734
31735fi
31736done
31737
efdf6afe
VZ
31738fi
31739
a848cd7e
SC
31740else
31741 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31742echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31743fi
31744
31745
31746
31747ac_ext=cc
31748ac_cpp='$CXXCPP $CPPFLAGS'
31749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31752
31753
31754
4a767dd5
VZ
31755
31756for ac_func in snprintf vsnprintf
a848cd7e
SC
31757do
31758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31759echo "$as_me:$LINENO: checking for $ac_func" >&5
31760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31761if eval "test \"\${$as_ac_var+set}\" = set"; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763else
31764 cat >conftest.$ac_ext <<_ACEOF
31765/* confdefs.h. */
31766_ACEOF
31767cat confdefs.h >>conftest.$ac_ext
31768cat >>conftest.$ac_ext <<_ACEOF
31769/* end confdefs.h. */
ac1cb8d3
VS
31770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31772#define $ac_func innocuous_$ac_func
31773
a848cd7e
SC
31774/* System header to define __stub macros and hopefully few prototypes,
31775 which can conflict with char $ac_func (); below.
31776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31777 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31778
a848cd7e
SC
31779#ifdef __STDC__
31780# include <limits.h>
31781#else
31782# include <assert.h>
31783#endif
ac1cb8d3
VS
31784
31785#undef $ac_func
31786
a848cd7e
SC
31787/* Override any gcc2 internal prototype to avoid an error. */
31788#ifdef __cplusplus
31789extern "C"
31790{
31791#endif
31792/* We use char because int might match the return type of a gcc2
31793 builtin and then its argument prototype would still apply. */
31794char $ac_func ();
31795/* The GNU C library defines this for functions which it implements
31796 to always fail with ENOSYS. Some functions are actually named
31797 something starting with __ and the normal name is an alias. */
31798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31799choke me
31800#else
31801char (*f) () = $ac_func;
31802#endif
31803#ifdef __cplusplus
31804}
31805#endif
31806
31807int
31808main ()
31809{
31810return f != $ac_func;
31811 ;
31812 return 0;
31813}
31814_ACEOF
31815rm -f conftest.$ac_objext conftest$ac_exeext
31816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31817 (eval $ac_link) 2>conftest.er1
a848cd7e 31818 ac_status=$?
ac1cb8d3
VS
31819 grep -v '^ *+' conftest.er1 >conftest.err
31820 rm -f conftest.er1
31821 cat conftest.err >&5
a848cd7e
SC
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
6ebeb4c7 31824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31826 (eval $ac_try) 2>&5
31827 ac_status=$?
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); }; } &&
31830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832 (eval $ac_try) 2>&5
31833 ac_status=$?
31834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); }; }; then
31836 eval "$as_ac_var=yes"
31837else
31838 echo "$as_me: failed program was:" >&5
31839sed 's/^/| /' conftest.$ac_ext >&5
31840
31841eval "$as_ac_var=no"
31842fi
ac1cb8d3
VS
31843rm -f conftest.err conftest.$ac_objext \
31844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31845fi
31846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31848if test `eval echo '${'$as_ac_var'}'` = yes; then
31849 cat >>confdefs.h <<_ACEOF
31850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31851_ACEOF
31852
31853fi
31854done
31855
31856
31857if test "$ac_cv_func_vsnprintf" = "yes"; then
31858 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31859echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31860if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31862else
31863
efdf6afe 31864 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31865/* confdefs.h. */
31866_ACEOF
31867cat confdefs.h >>conftest.$ac_ext
31868cat >>conftest.$ac_ext <<_ACEOF
31869/* end confdefs.h. */
31870
31871 #include <stdio.h>
31872 #include <stdarg.h>
efdf6afe
VZ
31873 #ifdef __MSL__
31874 #if __MSL__ >= 0x6000
31875 namespace std {}
31876 using namespace std;
31877 #endif
31878 #endif
a848cd7e
SC
31879
31880int
31881main ()
31882{
31883
31884 char *buf;
31885 va_list ap;
62fa8b3a 31886 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
31887
31888 ;
31889 return 0;
31890}
31891_ACEOF
31892rm -f conftest.$ac_objext
31893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31894 (eval $ac_compile) 2>conftest.er1
31895 ac_status=$?
31896 grep -v '^ *+' conftest.er1 >conftest.err
31897 rm -f conftest.er1
31898 cat conftest.err >&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); } &&
6ebeb4c7 31901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest.$ac_objext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 wx_cv_func_vsnprintf_decl=yes
31914else
31915 echo "$as_me: failed program was:" >&5
31916sed 's/^/| /' conftest.$ac_ext >&5
31917
a848cd7e
SC
31918wx_cv_func_vsnprintf_decl=no
31919
31920fi
ac1cb8d3 31921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31922
31923
31924fi
31925echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31926echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31927
31928 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31929 cat >>confdefs.h <<\_ACEOF
31930#define HAVE_VSNPRINTF_DECL 1
31931_ACEOF
31932
62fa8b3a
MW
31933
31934 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
31935echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
31936if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938else
31939
31940 cat >conftest.$ac_ext <<_ACEOF
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
31946
31947 #include <stdio.h>
31948 #include <stdarg.h>
31949 #ifdef __MSL__
31950 #if __MSL__ >= 0x6000
31951 namespace std {}
31952 using namespace std;
31953 #endif
31954 #endif
31955
31956int
31957main ()
31958{
31959
31960 char *buf;
31961 va_list ap;
31962 const char *fmt = "%s";
31963 vsnprintf(buf, 10u, fmt, ap);
31964
31965 ;
31966 return 0;
31967}
31968_ACEOF
31969rm -f conftest.$ac_objext
31970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31971 (eval $ac_compile) 2>conftest.er1
31972 ac_status=$?
31973 grep -v '^ *+' conftest.er1 >conftest.err
31974 rm -f conftest.er1
31975 cat conftest.err >&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; } &&
31984 { ac_try='test -s conftest.$ac_objext'
31985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986 (eval $ac_try) 2>&5
31987 ac_status=$?
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); }; }; then
31990 wx_cv_func_broken_vsnprintf_decl=no
31991else
31992 echo "$as_me: failed program was:" >&5
31993sed 's/^/| /' conftest.$ac_ext >&5
31994
31995wx_cv_func_broken_vsnprintf_decl=yes
31996
31997fi
31998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31999
32000
32001fi
32002echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32003echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32004
32005 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32006 cat >>confdefs.h <<\_ACEOF
32007#define HAVE_BROKEN_VSNPRINTF_DECL 1
32008_ACEOF
32009
32010 fi
a848cd7e
SC
32011 fi
32012fi
32013
4a767dd5
VZ
32014if test "$ac_cv_func_snprintf" = "yes"; then
32015 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32016echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32017if test "${wx_cv_func_snprintf_decl+set}" = set; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
32019else
32020
32021 cat >conftest.$ac_ext <<_ACEOF
32022/* confdefs.h. */
32023_ACEOF
32024cat confdefs.h >>conftest.$ac_ext
32025cat >>conftest.$ac_ext <<_ACEOF
32026/* end confdefs.h. */
32027
32028 #include <stdio.h>
32029 #include <stdarg.h>
32030 #ifdef __MSL__
32031 #if __MSL__ >= 0x6000
32032 namespace std {}
32033 using namespace std;
32034 #endif
32035 #endif
32036
32037int
32038main ()
32039{
32040
32041 char *buf;
62fa8b3a 32042 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32043
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext
32049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32050 (eval $ac_compile) 2>conftest.er1
32051 ac_status=$?
32052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32059 (eval $ac_try) 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; } &&
32063 { ac_try='test -s conftest.$ac_objext'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 wx_cv_func_snprintf_decl=yes
32070else
32071 echo "$as_me: failed program was:" >&5
32072sed 's/^/| /' conftest.$ac_ext >&5
32073
32074wx_cv_func_snprintf_decl=no
32075
32076fi
32077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32078
32079
32080fi
32081echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32082echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32083
32084 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32085 cat >>confdefs.h <<\_ACEOF
32086#define HAVE_SNPRINTF_DECL 1
32087_ACEOF
32088
62fa8b3a
MW
32089
32090 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32091echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32092if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32094else
32095
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
32102
32103 #include <stdio.h>
32104 #include <stdarg.h>
32105 #ifdef __MSL__
32106 #if __MSL__ >= 0x6000
32107 namespace std {}
32108 using namespace std;
32109 #endif
32110 #endif
32111
32112int
32113main ()
32114{
32115
32116 char *buf;
32117 const char *fmt = "%s";
32118 snprintf(buf, 10u, fmt, "wx");
32119
32120 ;
32121 return 0;
32122}
32123_ACEOF
32124rm -f conftest.$ac_objext
32125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32126 (eval $ac_compile) 2>conftest.er1
32127 ac_status=$?
32128 grep -v '^ *+' conftest.er1 >conftest.err
32129 rm -f conftest.er1
32130 cat conftest.err >&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); } &&
32133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135 (eval $ac_try) 2>&5
32136 ac_status=$?
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; } &&
32139 { ac_try='test -s conftest.$ac_objext'
32140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32141 (eval $ac_try) 2>&5
32142 ac_status=$?
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; }; then
32145 wx_cv_func_broken_snprintf_decl=no
32146else
32147 echo "$as_me: failed program was:" >&5
32148sed 's/^/| /' conftest.$ac_ext >&5
32149
32150wx_cv_func_broken_snprintf_decl=yes
32151
32152fi
32153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32154
32155
32156fi
32157echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32158echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32159
32160 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32161 cat >>confdefs.h <<\_ACEOF
32162#define HAVE_BROKEN_SNPRINTF_DECL 1
32163_ACEOF
32164
32165 fi
4a767dd5
VZ
32166 fi
32167fi
32168
a848cd7e
SC
32169if test "$wxUSE_UNICODE" = yes; then
32170
32171
32172
fbe47c7b
VS
32173
32174
32175
32176for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32177do
32178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32179echo "$as_me:$LINENO: checking for $ac_func" >&5
32180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32181if eval "test \"\${$as_ac_var+set}\" = set"; then
32182 echo $ECHO_N "(cached) $ECHO_C" >&6
32183else
32184 cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h. */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h. */
ac1cb8d3
VS
32190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32192#define $ac_func innocuous_$ac_func
32193
a848cd7e
SC
32194/* System header to define __stub macros and hopefully few prototypes,
32195 which can conflict with char $ac_func (); below.
32196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32198
a848cd7e
SC
32199#ifdef __STDC__
32200# include <limits.h>
32201#else
32202# include <assert.h>
32203#endif
ac1cb8d3
VS
32204
32205#undef $ac_func
32206
a848cd7e
SC
32207/* Override any gcc2 internal prototype to avoid an error. */
32208#ifdef __cplusplus
32209extern "C"
32210{
32211#endif
32212/* We use char because int might match the return type of a gcc2
32213 builtin and then its argument prototype would still apply. */
32214char $ac_func ();
32215/* The GNU C library defines this for functions which it implements
32216 to always fail with ENOSYS. Some functions are actually named
32217 something starting with __ and the normal name is an alias. */
32218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32219choke me
32220#else
32221char (*f) () = $ac_func;
32222#endif
32223#ifdef __cplusplus
32224}
32225#endif
32226
32227int
32228main ()
32229{
32230return f != $ac_func;
32231 ;
32232 return 0;
32233}
32234_ACEOF
32235rm -f conftest.$ac_objext conftest$ac_exeext
32236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32237 (eval $ac_link) 2>conftest.er1
a848cd7e 32238 ac_status=$?
ac1cb8d3
VS
32239 grep -v '^ *+' conftest.er1 >conftest.err
32240 rm -f conftest.er1
32241 cat conftest.err >&5
a848cd7e
SC
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); } &&
6ebeb4c7 32244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32246 (eval $ac_try) 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; } &&
32250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32252 (eval $ac_try) 2>&5
32253 ac_status=$?
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; }; then
32256 eval "$as_ac_var=yes"
32257else
32258 echo "$as_me: failed program was:" >&5
32259sed 's/^/| /' conftest.$ac_ext >&5
32260
32261eval "$as_ac_var=no"
32262fi
ac1cb8d3
VS
32263rm -f conftest.err conftest.$ac_objext \
32264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32265fi
32266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32267echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32268if test `eval echo '${'$as_ac_var'}'` = yes; then
32269 cat >>confdefs.h <<_ACEOF
32270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32271_ACEOF
32272
32273fi
32274done
32275
32276
32277 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32278echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32279 cat >conftest.$ac_ext <<_ACEOF
32280/* confdefs.h. */
32281_ACEOF
32282cat confdefs.h >>conftest.$ac_ext
32283cat >>conftest.$ac_ext <<_ACEOF
32284/* end confdefs.h. */
32285#include <wchar.h>
32286int
32287main ()
32288{
32289&_vsnwprintf;
32290 ;
32291 return 0;
32292}
32293_ACEOF
32294rm -f conftest.$ac_objext
32295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32296 (eval $ac_compile) 2>conftest.er1
a848cd7e 32297 ac_status=$?
ac1cb8d3
VS
32298 grep -v '^ *+' conftest.er1 >conftest.err
32299 rm -f conftest.er1
32300 cat conftest.err >&5
a848cd7e
SC
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } &&
6ebeb4c7 32303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32305 (eval $ac_try) 2>&5
32306 ac_status=$?
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); }; } &&
32309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32311 (eval $ac_try) 2>&5
32312 ac_status=$?
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); }; }; then
32315 echo "$as_me:$LINENO: result: yes" >&5
32316echo "${ECHO_T}yes" >&6
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE__VSNWPRINTF 1
32319_ACEOF
32320
32321else
32322 echo "$as_me: failed program was:" >&5
32323sed 's/^/| /' conftest.$ac_ext >&5
32324
32325echo "$as_me:$LINENO: result: no" >&5
32326echo "${ECHO_T}no" >&6
32327fi
ac1cb8d3 32328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32329fi
32330
32331ac_ext=c
32332ac_cpp='$CPP $CPPFLAGS'
32333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32335ac_compiler_gnu=$ac_cv_c_compiler_gnu
32336
32337
6ebeb4c7
VZ
32338if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32339
32340for ac_func in fnmatch
32341do
32342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32343echo "$as_me:$LINENO: checking for $ac_func" >&5
32344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32345if eval "test \"\${$as_ac_var+set}\" = set"; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348 cat >conftest.$ac_ext <<_ACEOF
32349/* confdefs.h. */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h. */
32354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32356#define $ac_func innocuous_$ac_func
32357
32358/* System header to define __stub macros and hopefully few prototypes,
32359 which can conflict with char $ac_func (); below.
32360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32361 <limits.h> exists even on freestanding compilers. */
32362
32363#ifdef __STDC__
32364# include <limits.h>
32365#else
32366# include <assert.h>
32367#endif
32368
32369#undef $ac_func
32370
32371/* Override any gcc2 internal prototype to avoid an error. */
32372#ifdef __cplusplus
32373extern "C"
32374{
32375#endif
32376/* We use char because int might match the return type of a gcc2
32377 builtin and then its argument prototype would still apply. */
32378char $ac_func ();
32379/* The GNU C library defines this for functions which it implements
32380 to always fail with ENOSYS. Some functions are actually named
32381 something starting with __ and the normal name is an alias. */
32382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32383choke me
32384#else
32385char (*f) () = $ac_func;
32386#endif
32387#ifdef __cplusplus
32388}
32389#endif
32390
32391int
32392main ()
32393{
32394return f != $ac_func;
32395 ;
32396 return 0;
32397}
32398_ACEOF
32399rm -f conftest.$ac_objext conftest$ac_exeext
32400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32401 (eval $ac_link) 2>conftest.er1
32402 ac_status=$?
32403 grep -v '^ *+' conftest.er1 >conftest.err
32404 rm -f conftest.er1
32405 cat conftest.err >&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); } &&
32408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32410 (eval $ac_try) 2>&5
32411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest$ac_exeext'
32415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32416 (eval $ac_try) 2>&5
32417 ac_status=$?
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; }; then
32420 eval "$as_ac_var=yes"
32421else
32422 echo "$as_me: failed program was:" >&5
32423sed 's/^/| /' conftest.$ac_ext >&5
32424
32425eval "$as_ac_var=no"
32426fi
32427rm -f conftest.err conftest.$ac_objext \
32428 conftest$ac_exeext conftest.$ac_ext
32429fi
32430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32432if test `eval echo '${'$as_ac_var'}'` = yes; then
32433 cat >>confdefs.h <<_ACEOF
32434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32435_ACEOF
32436
32437fi
32438done
32439
32440fi
32441
32442if test "$wxUSE_FILE" = "yes"; then
32443
32444for ac_func in fsync
32445do
32446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32447echo "$as_me:$LINENO: checking for $ac_func" >&5
32448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32449if eval "test \"\${$as_ac_var+set}\" = set"; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32451else
32452 cat >conftest.$ac_ext <<_ACEOF
32453/* confdefs.h. */
32454_ACEOF
32455cat confdefs.h >>conftest.$ac_ext
32456cat >>conftest.$ac_ext <<_ACEOF
32457/* end confdefs.h. */
32458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32460#define $ac_func innocuous_$ac_func
32461
32462/* System header to define __stub macros and hopefully few prototypes,
32463 which can conflict with char $ac_func (); below.
32464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465 <limits.h> exists even on freestanding compilers. */
32466
32467#ifdef __STDC__
32468# include <limits.h>
32469#else
32470# include <assert.h>
32471#endif
32472
32473#undef $ac_func
32474
32475/* Override any gcc2 internal prototype to avoid an error. */
32476#ifdef __cplusplus
32477extern "C"
32478{
32479#endif
32480/* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32482char $ac_func ();
32483/* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32487choke me
32488#else
32489char (*f) () = $ac_func;
32490#endif
32491#ifdef __cplusplus
32492}
32493#endif
32494
32495int
32496main ()
32497{
32498return f != $ac_func;
32499 ;
32500 return 0;
32501}
32502_ACEOF
32503rm -f conftest.$ac_objext conftest$ac_exeext
32504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505 (eval $ac_link) 2>conftest.er1
32506 ac_status=$?
32507 grep -v '^ *+' conftest.er1 >conftest.err
32508 rm -f conftest.er1
32509 cat conftest.err >&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; } &&
32518 { ac_try='test -s conftest$ac_exeext'
32519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32520 (eval $ac_try) 2>&5
32521 ac_status=$?
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); }; }; then
32524 eval "$as_ac_var=yes"
32525else
32526 echo "$as_me: failed program was:" >&5
32527sed 's/^/| /' conftest.$ac_ext >&5
32528
32529eval "$as_ac_var=no"
32530fi
32531rm -f conftest.err conftest.$ac_objext \
32532 conftest$ac_exeext conftest.$ac_ext
32533fi
32534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32536if test `eval echo '${'$as_ac_var'}'` = yes; then
32537 cat >>confdefs.h <<_ACEOF
32538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32539_ACEOF
32540
32541fi
32542done
32543
32544fi
a848cd7e
SC
32545
32546
32547if test "$TOOLKIT" != "MSW"; then
32548
32549
32550
32551
32552ac_ext=cc
32553ac_cpp='$CXXCPP $CPPFLAGS'
32554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32557
32558
32559
32560
32561# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32562if test "${with_libiconv_prefix+set}" = set; then
32563 withval="$with_libiconv_prefix"
32564
32565 for dir in `echo "$withval" | tr : ' '`; do
32566 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32567 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32568 done
32569
32570fi;
32571
32572 echo "$as_me:$LINENO: checking for iconv" >&5
32573echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32574if test "${am_cv_func_iconv+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32576else
32577
32578 am_cv_func_iconv="no, consider installing GNU libiconv"
32579 am_cv_lib_iconv=no
32580 cat >conftest.$ac_ext <<_ACEOF
32581/* confdefs.h. */
32582_ACEOF
32583cat confdefs.h >>conftest.$ac_ext
32584cat >>conftest.$ac_ext <<_ACEOF
32585/* end confdefs.h. */
32586#include <stdlib.h>
32587#include <iconv.h>
32588int
32589main ()
32590{
32591iconv_t cd = iconv_open("","");
32592 iconv(cd,NULL,NULL,NULL,NULL);
32593 iconv_close(cd);
32594 ;
32595 return 0;
32596}
32597_ACEOF
32598rm -f conftest.$ac_objext conftest$ac_exeext
32599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32600 (eval $ac_link) 2>conftest.er1
a848cd7e 32601 ac_status=$?
ac1cb8d3
VS
32602 grep -v '^ *+' conftest.er1 >conftest.err
32603 rm -f conftest.er1
32604 cat conftest.err >&5
a848cd7e
SC
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } &&
6ebeb4c7 32607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609 (eval $ac_try) 2>&5
32610 ac_status=$?
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; } &&
32613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 am_cv_func_iconv=yes
32620else
32621 echo "$as_me: failed program was:" >&5
32622sed 's/^/| /' conftest.$ac_ext >&5
32623
32624fi
ac1cb8d3
VS
32625rm -f conftest.err conftest.$ac_objext \
32626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32627 if test "$am_cv_func_iconv" != yes; then
32628 am_save_LIBS="$LIBS"
32629 LIBS="$LIBS -liconv"
32630 cat >conftest.$ac_ext <<_ACEOF
32631/* confdefs.h. */
32632_ACEOF
32633cat confdefs.h >>conftest.$ac_ext
32634cat >>conftest.$ac_ext <<_ACEOF
32635/* end confdefs.h. */
32636#include <stdlib.h>
32637#include <iconv.h>
32638int
32639main ()
32640{
32641iconv_t cd = iconv_open("","");
32642 iconv(cd,NULL,NULL,NULL,NULL);
32643 iconv_close(cd);
32644 ;
32645 return 0;
32646}
32647_ACEOF
32648rm -f conftest.$ac_objext conftest$ac_exeext
32649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32650 (eval $ac_link) 2>conftest.er1
a848cd7e 32651 ac_status=$?
ac1cb8d3
VS
32652 grep -v '^ *+' conftest.er1 >conftest.err
32653 rm -f conftest.er1
32654 cat conftest.err >&5
a848cd7e
SC
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); } &&
6ebeb4c7 32657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32659 (eval $ac_try) 2>&5
32660 ac_status=$?
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); }; } &&
32663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665 (eval $ac_try) 2>&5
32666 ac_status=$?
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); }; }; then
32669 am_cv_lib_iconv=yes
32670 am_cv_func_iconv=yes
32671else
32672 echo "$as_me: failed program was:" >&5
32673sed 's/^/| /' conftest.$ac_ext >&5
32674
32675fi
ac1cb8d3
VS
32676rm -f conftest.err conftest.$ac_objext \
32677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32678 LIBS="$am_save_LIBS"
32679 fi
32680
32681fi
32682echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32683echo "${ECHO_T}$am_cv_func_iconv" >&6
32684 if test "$am_cv_func_iconv" = yes; then
32685
32686cat >>confdefs.h <<\_ACEOF
32687#define HAVE_ICONV 1
32688_ACEOF
32689
32690 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32691echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32692if test "${wx_cv_func_iconv_const+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694else
32695 cat >conftest.$ac_ext <<_ACEOF
32696/* confdefs.h. */
32697_ACEOF
32698cat confdefs.h >>conftest.$ac_ext
32699cat >>conftest.$ac_ext <<_ACEOF
32700/* end confdefs.h. */
32701
32702#include <stdlib.h>
32703#include <iconv.h>
32704extern
32705#ifdef __cplusplus
32706"C"
32707#endif
32708#if defined(__STDC__) || defined(__cplusplus)
32709size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32710#else
32711size_t iconv();
32712#endif
32713
32714int
32715main ()
32716{
32717
32718 ;
32719 return 0;
32720}
32721_ACEOF
32722rm -f conftest.$ac_objext
32723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32724 (eval $ac_compile) 2>conftest.er1
a848cd7e 32725 ac_status=$?
ac1cb8d3
VS
32726 grep -v '^ *+' conftest.er1 >conftest.err
32727 rm -f conftest.er1
32728 cat conftest.err >&5
a848cd7e
SC
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); } &&
6ebeb4c7 32731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; } &&
32737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; }; then
32743 wx_cv_func_iconv_const="no"
32744else
32745 echo "$as_me: failed program was:" >&5
32746sed 's/^/| /' conftest.$ac_ext >&5
32747
32748wx_cv_func_iconv_const="yes"
32749
32750fi
ac1cb8d3 32751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32752
32753fi
32754echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32755echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32756
32757 iconv_const=
32758 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32759 iconv_const="const"
32760 fi
32761
32762
32763cat >>confdefs.h <<_ACEOF
32764#define ICONV_CONST $iconv_const
32765_ACEOF
32766
32767 fi
32768 LIBICONV=
32769 if test "$am_cv_lib_iconv" = yes; then
32770 LIBICONV="-liconv"
32771 fi
32772
32773
32774LIBS="$LIBICONV $LIBS"
32775ac_ext=c
32776ac_cpp='$CPP $CPPFLAGS'
32777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32779ac_compiler_gnu=$ac_cv_c_compiler_gnu
32780
32781
32782if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32783
32784for ac_func in sigaction
32785do
32786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32787echo "$as_me:$LINENO: checking for $ac_func" >&5
32788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32789if eval "test \"\${$as_ac_var+set}\" = set"; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
32791else
32792 cat >conftest.$ac_ext <<_ACEOF
32793/* confdefs.h. */
32794_ACEOF
32795cat confdefs.h >>conftest.$ac_ext
32796cat >>conftest.$ac_ext <<_ACEOF
32797/* end confdefs.h. */
ac1cb8d3
VS
32798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32800#define $ac_func innocuous_$ac_func
32801
a848cd7e
SC
32802/* System header to define __stub macros and hopefully few prototypes,
32803 which can conflict with char $ac_func (); below.
32804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32805 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32806
a848cd7e
SC
32807#ifdef __STDC__
32808# include <limits.h>
32809#else
32810# include <assert.h>
32811#endif
ac1cb8d3
VS
32812
32813#undef $ac_func
32814
a848cd7e
SC
32815/* Override any gcc2 internal prototype to avoid an error. */
32816#ifdef __cplusplus
32817extern "C"
32818{
32819#endif
32820/* We use char because int might match the return type of a gcc2
32821 builtin and then its argument prototype would still apply. */
32822char $ac_func ();
32823/* The GNU C library defines this for functions which it implements
32824 to always fail with ENOSYS. Some functions are actually named
32825 something starting with __ and the normal name is an alias. */
32826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32827choke me
32828#else
32829char (*f) () = $ac_func;
32830#endif
32831#ifdef __cplusplus
32832}
32833#endif
32834
32835int
32836main ()
32837{
32838return f != $ac_func;
32839 ;
32840 return 0;
32841}
32842_ACEOF
32843rm -f conftest.$ac_objext conftest$ac_exeext
32844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32845 (eval $ac_link) 2>conftest.er1
a848cd7e 32846 ac_status=$?
ac1cb8d3
VS
32847 grep -v '^ *+' conftest.er1 >conftest.err
32848 rm -f conftest.er1
32849 cat conftest.err >&5
a848cd7e
SC
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); } &&
6ebeb4c7 32852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854 (eval $ac_try) 2>&5
32855 ac_status=$?
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 eval "$as_ac_var=yes"
32865else
32866 echo "$as_me: failed program was:" >&5
32867sed 's/^/| /' conftest.$ac_ext >&5
32868
32869eval "$as_ac_var=no"
32870fi
ac1cb8d3
VS
32871rm -f conftest.err conftest.$ac_objext \
32872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32873fi
32874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32876if test `eval echo '${'$as_ac_var'}'` = yes; then
32877 cat >>confdefs.h <<_ACEOF
32878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32879_ACEOF
32880
32881fi
32882done
32883
32884
32885 if test "$ac_cv_func_sigaction" = "no"; then
32886 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32887echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32888 wxUSE_ON_FATAL_EXCEPTION=no
32889 fi
32890
32891 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32892
32893
32894 ac_ext=cc
32895ac_cpp='$CXXCPP $CPPFLAGS'
32896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32899
32900
32901 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32902echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32903if test "${wx_cv_type_sa_handler+set}" = set; then
32904 echo $ECHO_N "(cached) $ECHO_C" >&6
32905else
32906
32907 cat >conftest.$ac_ext <<_ACEOF
32908/* confdefs.h. */
32909_ACEOF
32910cat confdefs.h >>conftest.$ac_ext
32911cat >>conftest.$ac_ext <<_ACEOF
32912/* end confdefs.h. */
32913#include <signal.h>
32914int
32915main ()
32916{
32917
32918 extern void testSigHandler(int);
32919
32920 struct sigaction sa;
32921 sa.sa_handler = testSigHandler;
32922
32923 ;
32924 return 0;
32925}
32926_ACEOF
32927rm -f conftest.$ac_objext
32928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32929 (eval $ac_compile) 2>conftest.er1
a848cd7e 32930 ac_status=$?
ac1cb8d3
VS
32931 grep -v '^ *+' conftest.er1 >conftest.err
32932 rm -f conftest.er1
32933 cat conftest.err >&5
a848cd7e
SC
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); } &&
6ebeb4c7 32936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; } &&
32942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; }; then
32948
32949 wx_cv_type_sa_handler=int
32950
32951else
32952 echo "$as_me: failed program was:" >&5
32953sed 's/^/| /' conftest.$ac_ext >&5
32954
32955
32956 wx_cv_type_sa_handler=void
32957
32958fi
ac1cb8d3 32959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32960
32961fi
32962echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32963echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32964
32965 ac_ext=c
32966ac_cpp='$CPP $CPPFLAGS'
32967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969ac_compiler_gnu=$ac_cv_c_compiler_gnu
32970
32971
32972 cat >>confdefs.h <<_ACEOF
32973#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32974_ACEOF
32975
32976 fi
32977fi
32978
eaff0f0d
VZ
32979if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32980
32981
32982 ac_ext=cc
32983ac_cpp='$CXXCPP $CPPFLAGS'
32984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32987
32988
32989 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32990echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32991if test "${wx_cv_func_backtrace+set}" = set; then
32992 echo $ECHO_N "(cached) $ECHO_C" >&6
32993else
32994
32995 cat >conftest.$ac_ext <<_ACEOF
32996/* confdefs.h. */
32997_ACEOF
32998cat confdefs.h >>conftest.$ac_ext
32999cat >>conftest.$ac_ext <<_ACEOF
33000/* end confdefs.h. */
33001#include <execinfo.h>
33002int
33003main ()
33004{
33005
33006 void *trace[1];
33007 char **messages;
33008
33009 backtrace(trace, 1);
33010 messages = backtrace_symbols(trace, 1);
33011
33012 ;
33013 return 0;
33014}
33015_ACEOF
33016rm -f conftest.$ac_objext
33017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33018 (eval $ac_compile) 2>conftest.er1
33019 ac_status=$?
33020 grep -v '^ *+' conftest.er1 >conftest.err
33021 rm -f conftest.er1
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); } &&
6ebeb4c7 33025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33027 (eval $ac_try) 2>&5
33028 ac_status=$?
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); }; } &&
33031 { ac_try='test -s conftest.$ac_objext'
33032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033 (eval $ac_try) 2>&5
33034 ac_status=$?
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; }; then
33037 wx_cv_func_backtrace=yes
33038else
33039 echo "$as_me: failed program was:" >&5
33040sed 's/^/| /' conftest.$ac_ext >&5
33041
33042wx_cv_func_backtrace=no
33043
33044fi
33045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33046
33047
33048fi
33049echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33050echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33051
33052
33053 if test "$wx_cv_func_backtrace" = "no"; then
33054 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33055echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33056 wxUSE_STACKWALKER=no
33057 else
33058 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33059echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33060if test "${wx_cv_func_cxa_demangle+set}" = set; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33062else
33063
33064 cat >conftest.$ac_ext <<_ACEOF
33065/* confdefs.h. */
33066_ACEOF
33067cat confdefs.h >>conftest.$ac_ext
33068cat >>conftest.$ac_ext <<_ACEOF
33069/* end confdefs.h. */
33070#include <cxxabi.h>
33071int
33072main ()
33073{
33074
33075 int rc;
33076 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33077
33078 ;
33079 return 0;
33080}
33081_ACEOF
dfe0c803
JS
33082rm -f conftest.$ac_objext conftest$ac_exeext
33083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33084 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33085 ac_status=$?
33086 grep -v '^ *+' conftest.er1 >conftest.err
33087 rm -f conftest.er1
33088 cat conftest.err >&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); } &&
6ebeb4c7 33091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33094 ac_status=$?
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; } &&
dfe0c803 33097 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099 (eval $ac_try) 2>&5
33100 ac_status=$?
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; }; then
33103 wx_cv_func_cxa_demangle=yes
33104else
33105 echo "$as_me: failed program was:" >&5
33106sed 's/^/| /' conftest.$ac_ext >&5
33107
33108wx_cv_func_cxa_demangle=no
33109
33110fi
dfe0c803
JS
33111rm -f conftest.err conftest.$ac_objext \
33112 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33113
33114
33115fi
33116echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33117echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33118
33119 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33120 cat >>confdefs.h <<\_ACEOF
33121#define HAVE_CXA_DEMANGLE 1
33122_ACEOF
33123
33124 fi
33125 fi
33126
33127 ac_ext=c
33128ac_cpp='$CPP $CPPFLAGS'
33129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33131ac_compiler_gnu=$ac_cv_c_compiler_gnu
33132
33133fi
33134
898beab1
DE
33135if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33136 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33137echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33138 wxUSE_STACKWALKER=no
33139fi
33140
33141
a848cd7e
SC
33142
33143
33144for ac_func in mkstemp mktemp
33145do
33146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33147echo "$as_me:$LINENO: checking for $ac_func" >&5
33148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33149if eval "test \"\${$as_ac_var+set}\" = set"; then
33150 echo $ECHO_N "(cached) $ECHO_C" >&6
33151else
33152 cat >conftest.$ac_ext <<_ACEOF
33153/* confdefs.h. */
33154_ACEOF
33155cat confdefs.h >>conftest.$ac_ext
33156cat >>conftest.$ac_ext <<_ACEOF
33157/* end confdefs.h. */
ac1cb8d3
VS
33158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33160#define $ac_func innocuous_$ac_func
33161
a848cd7e
SC
33162/* System header to define __stub macros and hopefully few prototypes,
33163 which can conflict with char $ac_func (); below.
33164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33165 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33166
a848cd7e
SC
33167#ifdef __STDC__
33168# include <limits.h>
33169#else
33170# include <assert.h>
33171#endif
ac1cb8d3
VS
33172
33173#undef $ac_func
33174
a848cd7e
SC
33175/* Override any gcc2 internal prototype to avoid an error. */
33176#ifdef __cplusplus
33177extern "C"
33178{
33179#endif
33180/* We use char because int might match the return type of a gcc2
33181 builtin and then its argument prototype would still apply. */
33182char $ac_func ();
33183/* The GNU C library defines this for functions which it implements
33184 to always fail with ENOSYS. Some functions are actually named
33185 something starting with __ and the normal name is an alias. */
33186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33187choke me
33188#else
33189char (*f) () = $ac_func;
33190#endif
33191#ifdef __cplusplus
33192}
33193#endif
33194
33195int
33196main ()
33197{
33198return f != $ac_func;
33199 ;
33200 return 0;
33201}
33202_ACEOF
33203rm -f conftest.$ac_objext conftest$ac_exeext
33204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33205 (eval $ac_link) 2>conftest.er1
a848cd7e 33206 ac_status=$?
ac1cb8d3
VS
33207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
a848cd7e
SC
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
6ebeb4c7 33212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33215 ac_status=$?
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 eval "$as_ac_var=yes"
33225else
33226 echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
33229eval "$as_ac_var=no"
33230fi
ac1cb8d3
VS
33231rm -f conftest.err conftest.$ac_objext \
33232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33233fi
33234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33236if test `eval echo '${'$as_ac_var'}'` = yes; then
33237 cat >>confdefs.h <<_ACEOF
33238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33239_ACEOF
33240 break
33241fi
33242done
33243
33244
33245echo "$as_me:$LINENO: checking for statfs" >&5
33246echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33247if test "${wx_cv_func_statfs+set}" = set; then
33248 echo $ECHO_N "(cached) $ECHO_C" >&6
33249else
33250 cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256
33257 #if defined(__BSD__)
84ae7ca4
VZ
33258 #include <sys/param.h>
33259 #include <sys/mount.h>
a848cd7e 33260 #else
84ae7ca4 33261 #include <sys/vfs.h>
a848cd7e
SC
33262 #endif
33263
33264int
33265main ()
33266{
33267
33268 long l;
33269 struct statfs fs;
33270 statfs("/", &fs);
33271 l = fs.f_bsize;
33272 l += fs.f_blocks;
33273 l += fs.f_bavail;
33274
33275 ;
33276 return 0;
33277}
33278_ACEOF
33279rm -f conftest.$ac_objext
33280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33281 (eval $ac_compile) 2>conftest.er1
a848cd7e 33282 ac_status=$?
ac1cb8d3
VS
33283 grep -v '^ *+' conftest.er1 >conftest.err
33284 rm -f conftest.er1
33285 cat conftest.err >&5
a848cd7e
SC
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } &&
6ebeb4c7 33288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; } &&
33294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
84ae7ca4 33300 wx_cv_func_statfs=yes
a848cd7e
SC
33301else
33302 echo "$as_me: failed program was:" >&5
33303sed 's/^/| /' conftest.$ac_ext >&5
33304
84ae7ca4 33305wx_cv_func_statfs=no
a848cd7e
SC
33306
33307fi
ac1cb8d3 33308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33309
33310fi
33311echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33312echo "${ECHO_T}$wx_cv_func_statfs" >&6
33313
33314if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33315
33316
33317 ac_ext=cc
33318ac_cpp='$CXXCPP $CPPFLAGS'
33319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33322
33323 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33324echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33325if test "${wx_cv_func_statfs_decl+set}" = set; then
33326 echo $ECHO_N "(cached) $ECHO_C" >&6
33327else
0683aca6
VZ
33328 cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h. */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h. */
84ae7ca4 33334
0683aca6
VZ
33335 #if defined(__BSD__)
33336 #include <sys/param.h>
33337 #include <sys/mount.h>
33338 #else
33339 #include <sys/vfs.h>
33340 #endif
33341
33342int
33343main ()
33344{
33345
33346 struct statfs fs;
33347 statfs("", &fs);
33348
33349 ;
33350 return 0;
33351}
33352_ACEOF
33353rm -f conftest.$ac_objext
33354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33355 (eval $ac_compile) 2>conftest.er1
33356 ac_status=$?
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
33362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; } &&
33368 { ac_try='test -s conftest.$ac_objext'
33369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370 (eval $ac_try) 2>&5
33371 ac_status=$?
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; }; then
33374 wx_cv_func_statfs_decl=yes
33375else
33376 echo "$as_me: failed program was:" >&5
33377sed 's/^/| /' conftest.$ac_ext >&5
33378
33379wx_cv_func_statfs_decl=no
33380
33381fi
33382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33383
33384fi
33385echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33386echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33387 ac_ext=c
33388ac_cpp='$CPP $CPPFLAGS'
33389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33391ac_compiler_gnu=$ac_cv_c_compiler_gnu
33392
33393
33394 if test "$wx_cv_func_statfs_decl" = "yes"; then
33395 cat >>confdefs.h <<\_ACEOF
33396#define HAVE_STATFS_DECL 1
33397_ACEOF
33398
33399 fi
33400
a848cd7e
SC
33401 wx_cv_type_statvfs_t="struct statfs"
33402 cat >>confdefs.h <<\_ACEOF
33403#define HAVE_STATFS 1
33404_ACEOF
33405
33406else
33407 echo "$as_me:$LINENO: checking for statvfs" >&5
33408echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33409if test "${wx_cv_func_statvfs+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33411else
33412 cat >conftest.$ac_ext <<_ACEOF
33413/* confdefs.h. */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h. */
33418
33419 #include <stddef.h>
33420 #include <sys/statvfs.h>
33421
33422int
33423main ()
33424{
33425
33426 statvfs("/", NULL);
33427
33428 ;
33429 return 0;
33430}
33431_ACEOF
33432rm -f conftest.$ac_objext
33433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33434 (eval $ac_compile) 2>conftest.er1
a848cd7e 33435 ac_status=$?
ac1cb8d3
VS
33436 grep -v '^ *+' conftest.er1 >conftest.err
33437 rm -f conftest.er1
33438 cat conftest.err >&5
a848cd7e
SC
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } &&
6ebeb4c7 33441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449 (eval $ac_try) 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
33453 wx_cv_func_statvfs=yes
33454else
33455 echo "$as_me: failed program was:" >&5
33456sed 's/^/| /' conftest.$ac_ext >&5
33457
33458wx_cv_func_statvfs=no
33459
33460fi
ac1cb8d3 33461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33462
33463fi
33464echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33465echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33466
33467 if test "$wx_cv_func_statvfs" = "yes"; then
33468
33469
33470 ac_ext=cc
33471ac_cpp='$CXXCPP $CPPFLAGS'
33472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33475
33476
33477 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33478echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33479if test "${wx_cv_type_statvfs_t+set}" = set; then
33480 echo $ECHO_N "(cached) $ECHO_C" >&6
33481else
33482 cat >conftest.$ac_ext <<_ACEOF
33483/* confdefs.h. */
33484_ACEOF
33485cat confdefs.h >>conftest.$ac_ext
33486cat >>conftest.$ac_ext <<_ACEOF
33487/* end confdefs.h. */
33488
33489 #include <sys/statvfs.h>
33490
33491int
33492main ()
33493{
33494
33495 long l;
33496 statvfs_t fs;
33497 statvfs("/", &fs);
33498 l = fs.f_bsize;
33499 l += fs.f_blocks;
33500 l += fs.f_bavail;
33501
33502 ;
33503 return 0;
33504}
33505_ACEOF
33506rm -f conftest.$ac_objext
33507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33508 (eval $ac_compile) 2>conftest.er1
a848cd7e 33509 ac_status=$?
ac1cb8d3
VS
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
a848cd7e
SC
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
6ebeb4c7 33515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33517 (eval $ac_try) 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; } &&
33521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33523 (eval $ac_try) 2>&5
33524 ac_status=$?
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); }; }; then
33527 wx_cv_type_statvfs_t=statvfs_t
33528else
33529 echo "$as_me: failed program was:" >&5
33530sed 's/^/| /' conftest.$ac_ext >&5
33531
33532
33533 cat >conftest.$ac_ext <<_ACEOF
33534/* confdefs.h. */
33535_ACEOF
33536cat confdefs.h >>conftest.$ac_ext
33537cat >>conftest.$ac_ext <<_ACEOF
33538/* end confdefs.h. */
33539
33540 #include <sys/statvfs.h>
33541
33542int
33543main ()
33544{
33545
33546 long l;
33547 struct statvfs fs;
33548 statvfs("/", &fs);
33549 l = fs.f_bsize;
33550 l += fs.f_blocks;
33551 l += fs.f_bavail;
33552
33553 ;
33554 return 0;
33555}
33556_ACEOF
33557rm -f conftest.$ac_objext
33558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33559 (eval $ac_compile) 2>conftest.er1
a848cd7e 33560 ac_status=$?
ac1cb8d3
VS
33561 grep -v '^ *+' conftest.er1 >conftest.err
33562 rm -f conftest.er1
33563 cat conftest.err >&5
a848cd7e
SC
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); } &&
6ebeb4c7 33566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33569 ac_status=$?
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; } &&
33572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574 (eval $ac_try) 2>&5
33575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
33578 wx_cv_type_statvfs_t="struct statvfs"
33579else
33580 echo "$as_me: failed program was:" >&5
33581sed 's/^/| /' conftest.$ac_ext >&5
33582
33583wx_cv_type_statvfs_t="unknown"
33584
33585fi
ac1cb8d3 33586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33587
33588
33589fi
ac1cb8d3 33590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33591
33592fi
33593echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
33594echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
33595
33596 ac_ext=c
33597ac_cpp='$CPP $CPPFLAGS'
33598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33600ac_compiler_gnu=$ac_cv_c_compiler_gnu
33601
33602
33603 if test "$wx_cv_type_statvfs_t" != "unknown"; then
33604 cat >>confdefs.h <<\_ACEOF
33605#define HAVE_STATVFS 1
33606_ACEOF
33607
33608 fi
33609 else
33610 wx_cv_type_statvfs_t="unknown"
33611 fi
33612fi
33613
33614if test "$wx_cv_type_statvfs_t" != "unknown"; then
33615 cat >>confdefs.h <<_ACEOF
33616#define WX_STATFS_T $wx_cv_type_statvfs_t
33617_ACEOF
33618
33619else
33620 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
33621echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
33622fi
33623
33624if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
33625
33626
33627for ac_func in fcntl flock
33628do
33629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33630echo "$as_me:$LINENO: checking for $ac_func" >&5
33631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33632if eval "test \"\${$as_ac_var+set}\" = set"; then
33633 echo $ECHO_N "(cached) $ECHO_C" >&6
33634else
33635 cat >conftest.$ac_ext <<_ACEOF
33636/* confdefs.h. */
33637_ACEOF
33638cat confdefs.h >>conftest.$ac_ext
33639cat >>conftest.$ac_ext <<_ACEOF
33640/* end confdefs.h. */
ac1cb8d3
VS
33641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33643#define $ac_func innocuous_$ac_func
33644
a848cd7e
SC
33645/* System header to define __stub macros and hopefully few prototypes,
33646 which can conflict with char $ac_func (); below.
33647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33648 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33649
a848cd7e
SC
33650#ifdef __STDC__
33651# include <limits.h>
33652#else
33653# include <assert.h>
33654#endif
ac1cb8d3
VS
33655
33656#undef $ac_func
33657
a848cd7e
SC
33658/* Override any gcc2 internal prototype to avoid an error. */
33659#ifdef __cplusplus
33660extern "C"
33661{
33662#endif
33663/* We use char because int might match the return type of a gcc2
33664 builtin and then its argument prototype would still apply. */
33665char $ac_func ();
33666/* The GNU C library defines this for functions which it implements
33667 to always fail with ENOSYS. Some functions are actually named
33668 something starting with __ and the normal name is an alias. */
33669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33670choke me
33671#else
33672char (*f) () = $ac_func;
33673#endif
33674#ifdef __cplusplus
33675}
33676#endif
33677
33678int
33679main ()
33680{
33681return f != $ac_func;
33682 ;
33683 return 0;
33684}
33685_ACEOF
33686rm -f conftest.$ac_objext conftest$ac_exeext
33687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33688 (eval $ac_link) 2>conftest.er1
a848cd7e 33689 ac_status=$?
ac1cb8d3
VS
33690 grep -v '^ *+' conftest.er1 >conftest.err
33691 rm -f conftest.er1
33692 cat conftest.err >&5
a848cd7e
SC
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
6ebeb4c7 33695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; } &&
33701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; }; then
33707 eval "$as_ac_var=yes"
33708else
33709 echo "$as_me: failed program was:" >&5
33710sed 's/^/| /' conftest.$ac_ext >&5
33711
33712eval "$as_ac_var=no"
33713fi
ac1cb8d3
VS
33714rm -f conftest.err conftest.$ac_objext \
33715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33716fi
33717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33719if test `eval echo '${'$as_ac_var'}'` = yes; then
33720 cat >>confdefs.h <<_ACEOF
33721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33722_ACEOF
33723 break
33724fi
33725done
33726
33727
33728 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33729 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33730echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33731 wxUSE_SNGLINST_CHECKER=no
33732 fi
33733fi
33734
33735
33736for ac_func in timegm
33737do
33738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33739echo "$as_me:$LINENO: checking for $ac_func" >&5
33740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33741if eval "test \"\${$as_ac_var+set}\" = set"; then
33742 echo $ECHO_N "(cached) $ECHO_C" >&6
33743else
33744 cat >conftest.$ac_ext <<_ACEOF
33745/* confdefs.h. */
33746_ACEOF
33747cat confdefs.h >>conftest.$ac_ext
33748cat >>conftest.$ac_ext <<_ACEOF
33749/* end confdefs.h. */
ac1cb8d3
VS
33750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33752#define $ac_func innocuous_$ac_func
33753
a848cd7e
SC
33754/* System header to define __stub macros and hopefully few prototypes,
33755 which can conflict with char $ac_func (); below.
33756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33758
a848cd7e
SC
33759#ifdef __STDC__
33760# include <limits.h>
33761#else
33762# include <assert.h>
33763#endif
ac1cb8d3
VS
33764
33765#undef $ac_func
33766
a848cd7e
SC
33767/* Override any gcc2 internal prototype to avoid an error. */
33768#ifdef __cplusplus
33769extern "C"
33770{
33771#endif
33772/* We use char because int might match the return type of a gcc2
33773 builtin and then its argument prototype would still apply. */
33774char $ac_func ();
33775/* The GNU C library defines this for functions which it implements
33776 to always fail with ENOSYS. Some functions are actually named
33777 something starting with __ and the normal name is an alias. */
33778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33779choke me
33780#else
33781char (*f) () = $ac_func;
33782#endif
33783#ifdef __cplusplus
33784}
33785#endif
33786
33787int
33788main ()
33789{
33790return f != $ac_func;
33791 ;
33792 return 0;
33793}
33794_ACEOF
33795rm -f conftest.$ac_objext conftest$ac_exeext
33796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33797 (eval $ac_link) 2>conftest.er1
a848cd7e 33798 ac_status=$?
ac1cb8d3
VS
33799 grep -v '^ *+' conftest.er1 >conftest.err
33800 rm -f conftest.er1
33801 cat conftest.err >&5
a848cd7e
SC
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); } &&
6ebeb4c7 33804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; } &&
33810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812 (eval $ac_try) 2>&5
33813 ac_status=$?
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; }; then
33816 eval "$as_ac_var=yes"
33817else
33818 echo "$as_me: failed program was:" >&5
33819sed 's/^/| /' conftest.$ac_ext >&5
33820
33821eval "$as_ac_var=no"
33822fi
ac1cb8d3
VS
33823rm -f conftest.err conftest.$ac_objext \
33824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33825fi
33826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33828if test `eval echo '${'$as_ac_var'}'` = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33831_ACEOF
33832
33833fi
33834done
33835
33836
33837
33838
33839for ac_func in putenv setenv
33840do
33841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33842echo "$as_me:$LINENO: checking for $ac_func" >&5
33843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33844if eval "test \"\${$as_ac_var+set}\" = set"; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33846else
33847 cat >conftest.$ac_ext <<_ACEOF
33848/* confdefs.h. */
33849_ACEOF
33850cat confdefs.h >>conftest.$ac_ext
33851cat >>conftest.$ac_ext <<_ACEOF
33852/* end confdefs.h. */
ac1cb8d3
VS
33853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33855#define $ac_func innocuous_$ac_func
33856
a848cd7e
SC
33857/* System header to define __stub macros and hopefully few prototypes,
33858 which can conflict with char $ac_func (); below.
33859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33860 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33861
a848cd7e
SC
33862#ifdef __STDC__
33863# include <limits.h>
33864#else
33865# include <assert.h>
33866#endif
ac1cb8d3
VS
33867
33868#undef $ac_func
33869
a848cd7e
SC
33870/* Override any gcc2 internal prototype to avoid an error. */
33871#ifdef __cplusplus
33872extern "C"
33873{
33874#endif
33875/* We use char because int might match the return type of a gcc2
33876 builtin and then its argument prototype would still apply. */
33877char $ac_func ();
33878/* The GNU C library defines this for functions which it implements
33879 to always fail with ENOSYS. Some functions are actually named
33880 something starting with __ and the normal name is an alias. */
33881#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33882choke me
33883#else
33884char (*f) () = $ac_func;
33885#endif
33886#ifdef __cplusplus
33887}
33888#endif
33889
33890int
33891main ()
33892{
33893return f != $ac_func;
33894 ;
33895 return 0;
33896}
33897_ACEOF
33898rm -f conftest.$ac_objext conftest$ac_exeext
33899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33900 (eval $ac_link) 2>conftest.er1
a848cd7e 33901 ac_status=$?
ac1cb8d3
VS
33902 grep -v '^ *+' conftest.er1 >conftest.err
33903 rm -f conftest.er1
33904 cat conftest.err >&5
a848cd7e
SC
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); } &&
6ebeb4c7 33907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33909 (eval $ac_try) 2>&5
33910 ac_status=$?
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; } &&
33913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33915 (eval $ac_try) 2>&5
33916 ac_status=$?
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); }; }; then
33919 eval "$as_ac_var=yes"
33920else
33921 echo "$as_me: failed program was:" >&5
33922sed 's/^/| /' conftest.$ac_ext >&5
33923
33924eval "$as_ac_var=no"
33925fi
ac1cb8d3
VS
33926rm -f conftest.err conftest.$ac_objext \
33927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33928fi
33929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33931if test `eval echo '${'$as_ac_var'}'` = yes; then
33932 cat >>confdefs.h <<_ACEOF
33933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33934_ACEOF
33935 break
33936fi
33937done
33938
33939
33940HAVE_SOME_SLEEP_FUNC=0
33941if test "$USE_BEOS" = 1; then
33942 cat >>confdefs.h <<\_ACEOF
33943#define HAVE_SLEEP 1
33944_ACEOF
33945
33946 HAVE_SOME_SLEEP_FUNC=1
33947fi
33948
33949if test "$USE_DARWIN" = 1; then
33950 cat >>confdefs.h <<\_ACEOF
33951#define HAVE_USLEEP 1
33952_ACEOF
33953
33954 HAVE_SOME_SLEEP_FUNC=1
33955fi
33956
33957if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33958 POSIX4_LINK=
33959
33960for ac_func in nanosleep
33961do
33962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963echo "$as_me:$LINENO: checking for $ac_func" >&5
33964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33965if eval "test \"\${$as_ac_var+set}\" = set"; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967else
33968 cat >conftest.$ac_ext <<_ACEOF
33969/* confdefs.h. */
33970_ACEOF
33971cat confdefs.h >>conftest.$ac_ext
33972cat >>conftest.$ac_ext <<_ACEOF
33973/* end confdefs.h. */
ac1cb8d3
VS
33974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33976#define $ac_func innocuous_$ac_func
33977
a848cd7e
SC
33978/* System header to define __stub macros and hopefully few prototypes,
33979 which can conflict with char $ac_func (); below.
33980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33981 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33982
a848cd7e
SC
33983#ifdef __STDC__
33984# include <limits.h>
33985#else
33986# include <assert.h>
33987#endif
ac1cb8d3
VS
33988
33989#undef $ac_func
33990
a848cd7e
SC
33991/* Override any gcc2 internal prototype to avoid an error. */
33992#ifdef __cplusplus
33993extern "C"
33994{
33995#endif
33996/* We use char because int might match the return type of a gcc2
33997 builtin and then its argument prototype would still apply. */
33998char $ac_func ();
33999/* The GNU C library defines this for functions which it implements
34000 to always fail with ENOSYS. Some functions are actually named
34001 something starting with __ and the normal name is an alias. */
34002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34003choke me
34004#else
34005char (*f) () = $ac_func;
34006#endif
34007#ifdef __cplusplus
34008}
34009#endif
34010
34011int
34012main ()
34013{
34014return f != $ac_func;
34015 ;
34016 return 0;
34017}
34018_ACEOF
34019rm -f conftest.$ac_objext conftest$ac_exeext
34020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34021 (eval $ac_link) 2>conftest.er1
a848cd7e 34022 ac_status=$?
ac1cb8d3
VS
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
a848cd7e
SC
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
6ebeb4c7 34028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036 (eval $ac_try) 2>&5
34037 ac_status=$?
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; }; then
34040 eval "$as_ac_var=yes"
34041else
34042 echo "$as_me: failed program was:" >&5
34043sed 's/^/| /' conftest.$ac_ext >&5
34044
34045eval "$as_ac_var=no"
34046fi
ac1cb8d3
VS
34047rm -f conftest.err conftest.$ac_objext \
34048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34049fi
34050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34052if test `eval echo '${'$as_ac_var'}'` = yes; then
34053 cat >>confdefs.h <<_ACEOF
34054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34055_ACEOF
34056 cat >>confdefs.h <<\_ACEOF
34057#define HAVE_NANOSLEEP 1
34058_ACEOF
34059
34060else
34061
34062 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34063echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34064if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34066else
34067 ac_check_lib_save_LIBS=$LIBS
34068LIBS="-lposix4 $LIBS"
34069cat >conftest.$ac_ext <<_ACEOF
34070/* confdefs.h. */
34071_ACEOF
34072cat confdefs.h >>conftest.$ac_ext
34073cat >>conftest.$ac_ext <<_ACEOF
34074/* end confdefs.h. */
34075
34076/* Override any gcc2 internal prototype to avoid an error. */
34077#ifdef __cplusplus
34078extern "C"
34079#endif
34080/* We use char because int might match the return type of a gcc2
34081 builtin and then its argument prototype would still apply. */
34082char nanosleep ();
34083int
34084main ()
34085{
34086nanosleep ();
34087 ;
34088 return 0;
34089}
34090_ACEOF
34091rm -f conftest.$ac_objext conftest$ac_exeext
34092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34093 (eval $ac_link) 2>conftest.er1
a848cd7e 34094 ac_status=$?
ac1cb8d3
VS
34095 grep -v '^ *+' conftest.er1 >conftest.err
34096 rm -f conftest.er1
34097 cat conftest.err >&5
a848cd7e
SC
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); } &&
6ebeb4c7 34100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; } &&
34106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34108 (eval $ac_try) 2>&5
34109 ac_status=$?
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; }; then
34112 ac_cv_lib_posix4_nanosleep=yes
34113else
34114 echo "$as_me: failed program was:" >&5
34115sed 's/^/| /' conftest.$ac_ext >&5
34116
34117ac_cv_lib_posix4_nanosleep=no
34118fi
ac1cb8d3
VS
34119rm -f conftest.err conftest.$ac_objext \
34120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34121LIBS=$ac_check_lib_save_LIBS
34122fi
34123echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34124echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34125if test $ac_cv_lib_posix4_nanosleep = yes; then
34126
34127 cat >>confdefs.h <<\_ACEOF
34128#define HAVE_NANOSLEEP 1
34129_ACEOF
34130
34131 POSIX4_LINK=" -lposix4"
34132
34133else
34134
34135
34136for ac_func in usleep
34137do
34138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34139echo "$as_me:$LINENO: checking for $ac_func" >&5
34140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34141if eval "test \"\${$as_ac_var+set}\" = set"; then
34142 echo $ECHO_N "(cached) $ECHO_C" >&6
34143else
34144 cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
ac1cb8d3
VS
34150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34152#define $ac_func innocuous_$ac_func
34153
a848cd7e
SC
34154/* System header to define __stub macros and hopefully few prototypes,
34155 which can conflict with char $ac_func (); below.
34156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34157 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34158
a848cd7e
SC
34159#ifdef __STDC__
34160# include <limits.h>
34161#else
34162# include <assert.h>
34163#endif
ac1cb8d3
VS
34164
34165#undef $ac_func
34166
a848cd7e
SC
34167/* Override any gcc2 internal prototype to avoid an error. */
34168#ifdef __cplusplus
34169extern "C"
34170{
34171#endif
34172/* We use char because int might match the return type of a gcc2
34173 builtin and then its argument prototype would still apply. */
34174char $ac_func ();
34175/* The GNU C library defines this for functions which it implements
34176 to always fail with ENOSYS. Some functions are actually named
34177 something starting with __ and the normal name is an alias. */
34178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34179choke me
34180#else
34181char (*f) () = $ac_func;
34182#endif
34183#ifdef __cplusplus
34184}
34185#endif
34186
34187int
34188main ()
34189{
34190return f != $ac_func;
34191 ;
34192 return 0;
34193}
34194_ACEOF
34195rm -f conftest.$ac_objext conftest$ac_exeext
34196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34197 (eval $ac_link) 2>conftest.er1
a848cd7e 34198 ac_status=$?
ac1cb8d3
VS
34199 grep -v '^ *+' conftest.er1 >conftest.err
34200 rm -f conftest.er1
34201 cat conftest.err >&5
a848cd7e
SC
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); } &&
6ebeb4c7 34204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206 (eval $ac_try) 2>&5
34207 ac_status=$?
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); }; } &&
34210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34212 (eval $ac_try) 2>&5
34213 ac_status=$?
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; }; then
34216 eval "$as_ac_var=yes"
34217else
34218 echo "$as_me: failed program was:" >&5
34219sed 's/^/| /' conftest.$ac_ext >&5
34220
34221eval "$as_ac_var=no"
34222fi
ac1cb8d3
VS
34223rm -f conftest.err conftest.$ac_objext \
34224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34225fi
34226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34228if test `eval echo '${'$as_ac_var'}'` = yes; then
34229 cat >>confdefs.h <<_ACEOF
34230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34231_ACEOF
34232 cat >>confdefs.h <<\_ACEOF
34233#define HAVE_USLEEP 1
34234_ACEOF
34235
34236else
34237 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34238echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34239
34240fi
34241done
34242
34243
34244
34245fi
34246
34247
34248
34249fi
34250done
34251
34252fi
34253
34254
34255
34256for ac_func in uname gethostname
34257do
34258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34259echo "$as_me:$LINENO: checking for $ac_func" >&5
34260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34261if eval "test \"\${$as_ac_var+set}\" = set"; then
34262 echo $ECHO_N "(cached) $ECHO_C" >&6
34263else
34264 cat >conftest.$ac_ext <<_ACEOF
34265/* confdefs.h. */
34266_ACEOF
34267cat confdefs.h >>conftest.$ac_ext
34268cat >>conftest.$ac_ext <<_ACEOF
34269/* end confdefs.h. */
ac1cb8d3
VS
34270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34272#define $ac_func innocuous_$ac_func
34273
a848cd7e
SC
34274/* System header to define __stub macros and hopefully few prototypes,
34275 which can conflict with char $ac_func (); below.
34276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34277 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34278
a848cd7e
SC
34279#ifdef __STDC__
34280# include <limits.h>
34281#else
34282# include <assert.h>
34283#endif
ac1cb8d3
VS
34284
34285#undef $ac_func
34286
a848cd7e
SC
34287/* Override any gcc2 internal prototype to avoid an error. */
34288#ifdef __cplusplus
34289extern "C"
34290{
34291#endif
34292/* We use char because int might match the return type of a gcc2
34293 builtin and then its argument prototype would still apply. */
34294char $ac_func ();
34295/* The GNU C library defines this for functions which it implements
34296 to always fail with ENOSYS. Some functions are actually named
34297 something starting with __ and the normal name is an alias. */
34298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34299choke me
34300#else
34301char (*f) () = $ac_func;
34302#endif
34303#ifdef __cplusplus
34304}
34305#endif
34306
34307int
34308main ()
34309{
34310return f != $ac_func;
34311 ;
34312 return 0;
34313}
34314_ACEOF
34315rm -f conftest.$ac_objext conftest$ac_exeext
34316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34317 (eval $ac_link) 2>conftest.er1
a848cd7e 34318 ac_status=$?
ac1cb8d3
VS
34319 grep -v '^ *+' conftest.er1 >conftest.err
34320 rm -f conftest.er1
34321 cat conftest.err >&5
a848cd7e
SC
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } &&
6ebeb4c7 34324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; } &&
34330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; }; then
34336 eval "$as_ac_var=yes"
34337else
34338 echo "$as_me: failed program was:" >&5
34339sed 's/^/| /' conftest.$ac_ext >&5
34340
34341eval "$as_ac_var=no"
34342fi
ac1cb8d3
VS
34343rm -f conftest.err conftest.$ac_objext \
34344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34345fi
34346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34348if test `eval echo '${'$as_ac_var'}'` = yes; then
34349 cat >>confdefs.h <<_ACEOF
34350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34351_ACEOF
34352 break
34353fi
34354done
34355
34356
34357
34358
34359ac_ext=cc
34360ac_cpp='$CXXCPP $CPPFLAGS'
34361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34364
34365
34366
34367for ac_func in strtok_r
34368do
34369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34370echo "$as_me:$LINENO: checking for $ac_func" >&5
34371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34372if eval "test \"\${$as_ac_var+set}\" = set"; then
34373 echo $ECHO_N "(cached) $ECHO_C" >&6
34374else
34375 cat >conftest.$ac_ext <<_ACEOF
34376/* confdefs.h. */
34377_ACEOF
34378cat confdefs.h >>conftest.$ac_ext
34379cat >>conftest.$ac_ext <<_ACEOF
34380/* end confdefs.h. */
ac1cb8d3
VS
34381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34383#define $ac_func innocuous_$ac_func
34384
a848cd7e
SC
34385/* System header to define __stub macros and hopefully few prototypes,
34386 which can conflict with char $ac_func (); below.
34387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34388 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34389
a848cd7e
SC
34390#ifdef __STDC__
34391# include <limits.h>
34392#else
34393# include <assert.h>
34394#endif
ac1cb8d3
VS
34395
34396#undef $ac_func
34397
a848cd7e
SC
34398/* Override any gcc2 internal prototype to avoid an error. */
34399#ifdef __cplusplus
34400extern "C"
34401{
34402#endif
34403/* We use char because int might match the return type of a gcc2
34404 builtin and then its argument prototype would still apply. */
34405char $ac_func ();
34406/* The GNU C library defines this for functions which it implements
34407 to always fail with ENOSYS. Some functions are actually named
34408 something starting with __ and the normal name is an alias. */
34409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34410choke me
34411#else
34412char (*f) () = $ac_func;
34413#endif
34414#ifdef __cplusplus
34415}
34416#endif
34417
34418int
34419main ()
34420{
34421return f != $ac_func;
34422 ;
34423 return 0;
34424}
34425_ACEOF
34426rm -f conftest.$ac_objext conftest$ac_exeext
34427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34428 (eval $ac_link) 2>conftest.er1
a848cd7e 34429 ac_status=$?
ac1cb8d3
VS
34430 grep -v '^ *+' conftest.er1 >conftest.err
34431 rm -f conftest.er1
34432 cat conftest.err >&5
a848cd7e
SC
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); } &&
6ebeb4c7 34435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437 (eval $ac_try) 2>&5
34438 ac_status=$?
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); }; } &&
34441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34443 (eval $ac_try) 2>&5
34444 ac_status=$?
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); }; }; then
34447 eval "$as_ac_var=yes"
34448else
34449 echo "$as_me: failed program was:" >&5
34450sed 's/^/| /' conftest.$ac_ext >&5
34451
34452eval "$as_ac_var=no"
34453fi
ac1cb8d3
VS
34454rm -f conftest.err conftest.$ac_objext \
34455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34456fi
34457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34459if test `eval echo '${'$as_ac_var'}'` = yes; then
34460 cat >>confdefs.h <<_ACEOF
34461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34462_ACEOF
34463
34464fi
34465done
34466
34467
34468ac_ext=c
34469ac_cpp='$CPP $CPPFLAGS'
34470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34472ac_compiler_gnu=$ac_cv_c_compiler_gnu
34473
34474
34475INET_LINK=
34476
34477for ac_func in inet_addr
34478do
34479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34480echo "$as_me:$LINENO: checking for $ac_func" >&5
34481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34482if eval "test \"\${$as_ac_var+set}\" = set"; then
34483 echo $ECHO_N "(cached) $ECHO_C" >&6
34484else
34485 cat >conftest.$ac_ext <<_ACEOF
34486/* confdefs.h. */
34487_ACEOF
34488cat confdefs.h >>conftest.$ac_ext
34489cat >>conftest.$ac_ext <<_ACEOF
34490/* end confdefs.h. */
ac1cb8d3
VS
34491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34493#define $ac_func innocuous_$ac_func
34494
a848cd7e
SC
34495/* System header to define __stub macros and hopefully few prototypes,
34496 which can conflict with char $ac_func (); below.
34497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34498 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34499
a848cd7e
SC
34500#ifdef __STDC__
34501# include <limits.h>
34502#else
34503# include <assert.h>
34504#endif
ac1cb8d3
VS
34505
34506#undef $ac_func
34507
a848cd7e
SC
34508/* Override any gcc2 internal prototype to avoid an error. */
34509#ifdef __cplusplus
34510extern "C"
34511{
34512#endif
34513/* We use char because int might match the return type of a gcc2
34514 builtin and then its argument prototype would still apply. */
34515char $ac_func ();
34516/* The GNU C library defines this for functions which it implements
34517 to always fail with ENOSYS. Some functions are actually named
34518 something starting with __ and the normal name is an alias. */
34519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34520choke me
34521#else
34522char (*f) () = $ac_func;
34523#endif
34524#ifdef __cplusplus
34525}
34526#endif
34527
34528int
34529main ()
34530{
34531return f != $ac_func;
34532 ;
34533 return 0;
34534}
34535_ACEOF
34536rm -f conftest.$ac_objext conftest$ac_exeext
34537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34538 (eval $ac_link) 2>conftest.er1
a848cd7e 34539 ac_status=$?
ac1cb8d3
VS
34540 grep -v '^ *+' conftest.er1 >conftest.err
34541 rm -f conftest.er1
34542 cat conftest.err >&5
a848cd7e
SC
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); } &&
6ebeb4c7 34545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34548 ac_status=$?
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 eval "$as_ac_var=yes"
34558else
34559 echo "$as_me: failed program was:" >&5
34560sed 's/^/| /' conftest.$ac_ext >&5
34561
34562eval "$as_ac_var=no"
34563fi
ac1cb8d3
VS
34564rm -f conftest.err conftest.$ac_objext \
34565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34566fi
34567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34569if test `eval echo '${'$as_ac_var'}'` = yes; then
34570 cat >>confdefs.h <<_ACEOF
34571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34572_ACEOF
34573 cat >>confdefs.h <<\_ACEOF
34574#define HAVE_INET_ADDR 1
34575_ACEOF
34576
34577else
34578
34579 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
34580echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
34581if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
34582 echo $ECHO_N "(cached) $ECHO_C" >&6
34583else
34584 ac_check_lib_save_LIBS=$LIBS
34585LIBS="-lnsl $LIBS"
34586cat >conftest.$ac_ext <<_ACEOF
34587/* confdefs.h. */
34588_ACEOF
34589cat confdefs.h >>conftest.$ac_ext
34590cat >>conftest.$ac_ext <<_ACEOF
34591/* end confdefs.h. */
34592
34593/* Override any gcc2 internal prototype to avoid an error. */
34594#ifdef __cplusplus
34595extern "C"
34596#endif
34597/* We use char because int might match the return type of a gcc2
34598 builtin and then its argument prototype would still apply. */
34599char inet_addr ();
34600int
34601main ()
34602{
34603inet_addr ();
34604 ;
34605 return 0;
34606}
34607_ACEOF
34608rm -f conftest.$ac_objext conftest$ac_exeext
34609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34610 (eval $ac_link) 2>conftest.er1
a848cd7e 34611 ac_status=$?
ac1cb8d3
VS
34612 grep -v '^ *+' conftest.er1 >conftest.err
34613 rm -f conftest.er1
34614 cat conftest.err >&5
a848cd7e
SC
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } &&
6ebeb4c7 34617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; } &&
34623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34626 ac_status=$?
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; }; then
34629 ac_cv_lib_nsl_inet_addr=yes
34630else
34631 echo "$as_me: failed program was:" >&5
34632sed 's/^/| /' conftest.$ac_ext >&5
34633
34634ac_cv_lib_nsl_inet_addr=no
34635fi
ac1cb8d3
VS
34636rm -f conftest.err conftest.$ac_objext \
34637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34638LIBS=$ac_check_lib_save_LIBS
34639fi
34640echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34641echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34642if test $ac_cv_lib_nsl_inet_addr = yes; then
34643 INET_LINK="nsl"
34644else
34645
34646 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34647echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34648if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34649 echo $ECHO_N "(cached) $ECHO_C" >&6
34650else
34651 ac_check_lib_save_LIBS=$LIBS
34652LIBS="-lresolv $LIBS"
34653cat >conftest.$ac_ext <<_ACEOF
34654/* confdefs.h. */
34655_ACEOF
34656cat confdefs.h >>conftest.$ac_ext
34657cat >>conftest.$ac_ext <<_ACEOF
34658/* end confdefs.h. */
34659
34660/* Override any gcc2 internal prototype to avoid an error. */
34661#ifdef __cplusplus
34662extern "C"
34663#endif
34664/* We use char because int might match the return type of a gcc2
34665 builtin and then its argument prototype would still apply. */
34666char inet_addr ();
34667int
34668main ()
34669{
34670inet_addr ();
34671 ;
34672 return 0;
34673}
34674_ACEOF
34675rm -f conftest.$ac_objext conftest$ac_exeext
34676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34677 (eval $ac_link) 2>conftest.er1
a848cd7e 34678 ac_status=$?
ac1cb8d3
VS
34679 grep -v '^ *+' conftest.er1 >conftest.err
34680 rm -f conftest.er1
34681 cat conftest.err >&5
a848cd7e
SC
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } &&
6ebeb4c7 34684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; }; then
34696 ac_cv_lib_resolv_inet_addr=yes
34697else
34698 echo "$as_me: failed program was:" >&5
34699sed 's/^/| /' conftest.$ac_ext >&5
34700
34701ac_cv_lib_resolv_inet_addr=no
34702fi
ac1cb8d3
VS
34703rm -f conftest.err conftest.$ac_objext \
34704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34705LIBS=$ac_check_lib_save_LIBS
34706fi
34707echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34708echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34709if test $ac_cv_lib_resolv_inet_addr = yes; then
34710 INET_LINK="resolv"
34711else
34712
34713 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34714echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34715if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34716 echo $ECHO_N "(cached) $ECHO_C" >&6
34717else
34718 ac_check_lib_save_LIBS=$LIBS
34719LIBS="-lsocket $LIBS"
34720cat >conftest.$ac_ext <<_ACEOF
34721/* confdefs.h. */
34722_ACEOF
34723cat confdefs.h >>conftest.$ac_ext
34724cat >>conftest.$ac_ext <<_ACEOF
34725/* end confdefs.h. */
34726
34727/* Override any gcc2 internal prototype to avoid an error. */
34728#ifdef __cplusplus
34729extern "C"
34730#endif
34731/* We use char because int might match the return type of a gcc2
34732 builtin and then its argument prototype would still apply. */
34733char inet_addr ();
34734int
34735main ()
34736{
34737inet_addr ();
34738 ;
34739 return 0;
34740}
34741_ACEOF
34742rm -f conftest.$ac_objext conftest$ac_exeext
34743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34744 (eval $ac_link) 2>conftest.er1
a848cd7e 34745 ac_status=$?
ac1cb8d3
VS
34746 grep -v '^ *+' conftest.er1 >conftest.err
34747 rm -f conftest.er1
34748 cat conftest.err >&5
a848cd7e
SC
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } &&
6ebeb4c7 34751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; } &&
34757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
34763 ac_cv_lib_socket_inet_addr=yes
34764else
34765 echo "$as_me: failed program was:" >&5
34766sed 's/^/| /' conftest.$ac_ext >&5
34767
34768ac_cv_lib_socket_inet_addr=no
34769fi
ac1cb8d3
VS
34770rm -f conftest.err conftest.$ac_objext \
34771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34772LIBS=$ac_check_lib_save_LIBS
34773fi
34774echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34775echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34776if test $ac_cv_lib_socket_inet_addr = yes; then
34777 INET_LINK="socket"
34778
34779fi
34780
34781
34782
34783fi
34784
34785
34786
34787fi
34788
34789
34790
34791fi
34792done
34793
34794
34795
34796for ac_func in inet_aton
34797do
34798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34799echo "$as_me:$LINENO: checking for $ac_func" >&5
34800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34801if eval "test \"\${$as_ac_var+set}\" = set"; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34803else
34804 cat >conftest.$ac_ext <<_ACEOF
34805/* confdefs.h. */
34806_ACEOF
34807cat confdefs.h >>conftest.$ac_ext
34808cat >>conftest.$ac_ext <<_ACEOF
34809/* end confdefs.h. */
ac1cb8d3
VS
34810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34812#define $ac_func innocuous_$ac_func
34813
a848cd7e
SC
34814/* System header to define __stub macros and hopefully few prototypes,
34815 which can conflict with char $ac_func (); below.
34816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34818
a848cd7e
SC
34819#ifdef __STDC__
34820# include <limits.h>
34821#else
34822# include <assert.h>
34823#endif
ac1cb8d3
VS
34824
34825#undef $ac_func
34826
a848cd7e
SC
34827/* Override any gcc2 internal prototype to avoid an error. */
34828#ifdef __cplusplus
34829extern "C"
34830{
34831#endif
34832/* We use char because int might match the return type of a gcc2
34833 builtin and then its argument prototype would still apply. */
34834char $ac_func ();
34835/* The GNU C library defines this for functions which it implements
34836 to always fail with ENOSYS. Some functions are actually named
34837 something starting with __ and the normal name is an alias. */
34838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34839choke me
34840#else
34841char (*f) () = $ac_func;
34842#endif
34843#ifdef __cplusplus
34844}
34845#endif
34846
34847int
34848main ()
34849{
34850return f != $ac_func;
34851 ;
34852 return 0;
34853}
34854_ACEOF
34855rm -f conftest.$ac_objext conftest$ac_exeext
34856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34857 (eval $ac_link) 2>conftest.er1
a848cd7e 34858 ac_status=$?
ac1cb8d3
VS
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
a848cd7e
SC
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } &&
6ebeb4c7 34864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; } &&
34870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 eval "$as_ac_var=yes"
34877else
34878 echo "$as_me: failed program was:" >&5
34879sed 's/^/| /' conftest.$ac_ext >&5
34880
34881eval "$as_ac_var=no"
34882fi
ac1cb8d3
VS
34883rm -f conftest.err conftest.$ac_objext \
34884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34885fi
34886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34888if test `eval echo '${'$as_ac_var'}'` = yes; then
34889 cat >>confdefs.h <<_ACEOF
34890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891_ACEOF
34892 cat >>confdefs.h <<\_ACEOF
34893#define HAVE_INET_ATON 1
34894_ACEOF
34895
34896else
34897
34898 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34899echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34900echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34901if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34902 echo $ECHO_N "(cached) $ECHO_C" >&6
34903else
34904 ac_check_lib_save_LIBS=$LIBS
34905LIBS="-l$INET_LINK $LIBS"
34906cat >conftest.$ac_ext <<_ACEOF
34907/* confdefs.h. */
34908_ACEOF
34909cat confdefs.h >>conftest.$ac_ext
34910cat >>conftest.$ac_ext <<_ACEOF
34911/* end confdefs.h. */
34912
34913/* Override any gcc2 internal prototype to avoid an error. */
34914#ifdef __cplusplus
34915extern "C"
34916#endif
34917/* We use char because int might match the return type of a gcc2
34918 builtin and then its argument prototype would still apply. */
34919char inet_aton ();
34920int
34921main ()
34922{
34923inet_aton ();
34924 ;
34925 return 0;
34926}
34927_ACEOF
34928rm -f conftest.$ac_objext conftest$ac_exeext
34929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34930 (eval $ac_link) 2>conftest.er1
a848cd7e 34931 ac_status=$?
ac1cb8d3
VS
34932 grep -v '^ *+' conftest.er1 >conftest.err
34933 rm -f conftest.er1
34934 cat conftest.err >&5
a848cd7e
SC
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); } &&
6ebeb4c7 34937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939 (eval $ac_try) 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; } &&
34943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34946 ac_status=$?
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; }; then
34949 eval "$as_ac_Lib=yes"
34950else
34951 echo "$as_me: failed program was:" >&5
34952sed 's/^/| /' conftest.$ac_ext >&5
34953
34954eval "$as_ac_Lib=no"
34955fi
ac1cb8d3
VS
34956rm -f conftest.err conftest.$ac_objext \
34957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34958LIBS=$ac_check_lib_save_LIBS
34959fi
34960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34961echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34962if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34963 cat >>confdefs.h <<\_ACEOF
34964#define HAVE_INET_ATON 1
34965_ACEOF
34966
34967fi
34968
34969
34970fi
34971done
34972
34973
34974if test "x$INET_LINK" != "x"; then
34975 cat >>confdefs.h <<\_ACEOF
34976#define HAVE_INET_ADDR 1
34977_ACEOF
34978
34979 INET_LINK=" -l$INET_LINK"
34980fi
34981
34982fi
34983
34984
34985
34986EXTRALIBS_ESD=
34987echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34988echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34989if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34990 echo $ECHO_N "(cached) $ECHO_C" >&6
34991else
34992 ac_check_lib_save_LIBS=$LIBS
34993LIBS="-lesd $LIBS"
34994cat >conftest.$ac_ext <<_ACEOF
34995/* confdefs.h. */
34996_ACEOF
34997cat confdefs.h >>conftest.$ac_ext
34998cat >>conftest.$ac_ext <<_ACEOF
34999/* end confdefs.h. */
35000
35001/* Override any gcc2 internal prototype to avoid an error. */
35002#ifdef __cplusplus
35003extern "C"
35004#endif
35005/* We use char because int might match the return type of a gcc2
35006 builtin and then its argument prototype would still apply. */
35007char esd_close ();
35008int
35009main ()
35010{
35011esd_close ();
35012 ;
35013 return 0;
35014}
35015_ACEOF
35016rm -f conftest.$ac_objext conftest$ac_exeext
35017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35018 (eval $ac_link) 2>conftest.er1
a848cd7e 35019 ac_status=$?
ac1cb8d3
VS
35020 grep -v '^ *+' conftest.er1 >conftest.err
35021 rm -f conftest.er1
35022 cat conftest.err >&5
a848cd7e
SC
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); } &&
6ebeb4c7 35025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35027 (eval $ac_try) 2>&5
35028 ac_status=$?
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; } &&
35031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 (eval $ac_try) 2>&5
35034 ac_status=$?
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; }; then
35037 ac_cv_lib_esd_esd_close=yes
35038else
35039 echo "$as_me: failed program was:" >&5
35040sed 's/^/| /' conftest.$ac_ext >&5
35041
35042ac_cv_lib_esd_esd_close=no
35043fi
ac1cb8d3
VS
35044rm -f conftest.err conftest.$ac_objext \
35045 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35046LIBS=$ac_check_lib_save_LIBS
35047fi
35048echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35049echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35050if test $ac_cv_lib_esd_esd_close = yes; then
35051
35052
35053for ac_header in esd.h
35054do
35055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35056if eval "test \"\${$as_ac_Header+set}\" = set"; then
35057 echo "$as_me:$LINENO: checking for $ac_header" >&5
35058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35059if eval "test \"\${$as_ac_Header+set}\" = set"; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061fi
35062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35064else
35065 # Is the header compilable?
35066echo "$as_me:$LINENO: checking $ac_header usability" >&5
35067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35068cat >conftest.$ac_ext <<_ACEOF
35069/* confdefs.h. */
35070_ACEOF
35071cat confdefs.h >>conftest.$ac_ext
35072cat >>conftest.$ac_ext <<_ACEOF
35073/* end confdefs.h. */
35074$ac_includes_default
35075#include <$ac_header>
35076_ACEOF
35077rm -f conftest.$ac_objext
35078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35079 (eval $ac_compile) 2>conftest.er1
a848cd7e 35080 ac_status=$?
ac1cb8d3
VS
35081 grep -v '^ *+' conftest.er1 >conftest.err
35082 rm -f conftest.er1
35083 cat conftest.err >&5
a848cd7e
SC
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); } &&
6ebeb4c7 35086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35088 (eval $ac_try) 2>&5
35089 ac_status=$?
35090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091 (exit $ac_status); }; } &&
35092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35094 (eval $ac_try) 2>&5
35095 ac_status=$?
35096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35097 (exit $ac_status); }; }; then
35098 ac_header_compiler=yes
35099else
35100 echo "$as_me: failed program was:" >&5
35101sed 's/^/| /' conftest.$ac_ext >&5
35102
35103ac_header_compiler=no
35104fi
ac1cb8d3 35105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35107echo "${ECHO_T}$ac_header_compiler" >&6
35108
35109# Is the header present?
35110echo "$as_me:$LINENO: checking $ac_header presence" >&5
35111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35112cat >conftest.$ac_ext <<_ACEOF
35113/* confdefs.h. */
35114_ACEOF
35115cat confdefs.h >>conftest.$ac_ext
35116cat >>conftest.$ac_ext <<_ACEOF
35117/* end confdefs.h. */
35118#include <$ac_header>
35119_ACEOF
35120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35122 ac_status=$?
35123 grep -v '^ *+' conftest.er1 >conftest.err
35124 rm -f conftest.er1
35125 cat conftest.err >&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); } >/dev/null; then
35128 if test -s conftest.err; then
35129 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35131 else
35132 ac_cpp_err=
35133 fi
35134else
35135 ac_cpp_err=yes
35136fi
35137if test -z "$ac_cpp_err"; then
35138 ac_header_preproc=yes
35139else
35140 echo "$as_me: failed program was:" >&5
35141sed 's/^/| /' conftest.$ac_ext >&5
35142
35143 ac_header_preproc=no
35144fi
35145rm -f conftest.err conftest.$ac_ext
35146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35147echo "${ECHO_T}$ac_header_preproc" >&6
35148
35149# So? What about this header?
ac1cb8d3
VS
35150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35151 yes:no: )
a848cd7e
SC
35152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35156 ac_header_preproc=yes
a848cd7e 35157 ;;
ac1cb8d3 35158 no:yes:* )
a848cd7e
SC
35159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35171 (
35172 cat <<\_ASBOX
ac1cb8d3
VS
35173## ----------------------------------------- ##
35174## Report this to wx-dev@lists.wxwidgets.org ##
35175## ----------------------------------------- ##
a848cd7e
SC
35176_ASBOX
35177 ) |
35178 sed "s/^/$as_me: WARNING: /" >&2
35179 ;;
35180esac
35181echo "$as_me:$LINENO: checking for $ac_header" >&5
35182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35183if eval "test \"\${$as_ac_Header+set}\" = set"; then
35184 echo $ECHO_N "(cached) $ECHO_C" >&6
35185else
ac1cb8d3 35186 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35187fi
35188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35190
35191fi
35192if test `eval echo '${'$as_ac_Header'}'` = yes; then
35193 cat >>confdefs.h <<_ACEOF
35194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35195_ACEOF
35196
35197 EXTRALIBS_ESD="-lesd"
35198
35199fi
35200
35201done
35202
35203
35204fi
35205
35206
35207
35208echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35209echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35210cat >conftest.$ac_ext <<_ACEOF
35211/* confdefs.h. */
35212_ACEOF
35213cat confdefs.h >>conftest.$ac_ext
35214cat >>conftest.$ac_ext <<_ACEOF
35215/* end confdefs.h. */
35216#ifdef __linux__
35217 #include <linux/cdrom.h>
35218 #else
35219 /* For Solaris */
35220 #include <sys/cdio.h>
35221 #endif
35222
35223int
35224main ()
35225{
35226struct cdrom_tocentry entry, old_entry;
35227 ;
35228 return 0;
35229}
35230_ACEOF
35231rm -f conftest.$ac_objext
35232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35233 (eval $ac_compile) 2>conftest.er1
a848cd7e 35234 ac_status=$?
ac1cb8d3
VS
35235 grep -v '^ *+' conftest.er1 >conftest.err
35236 rm -f conftest.er1
35237 cat conftest.err >&5
a848cd7e
SC
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } &&
6ebeb4c7 35240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35243 ac_status=$?
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; } &&
35246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248 (eval $ac_try) 2>&5
35249 ac_status=$?
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); }; }; then
35252 echo "$as_me:$LINENO: result: yes" >&5
35253echo "${ECHO_T}yes" >&6
35254 cat >>confdefs.h <<\_ACEOF
35255#define HAVE_KNOWN_CDROM_INTERFACE 1
35256_ACEOF
35257
35258else
35259 echo "$as_me: failed program was:" >&5
35260sed 's/^/| /' conftest.$ac_ext >&5
35261
35262echo "$as_me:$LINENO: result: no" >&5
35263echo "${ECHO_T}no" >&6
35264fi
ac1cb8d3 35265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35266
35267
35268cat >confcache <<\_ACEOF
35269# This file is a shell script that caches the results of configure
35270# tests run on this system so they can be shared between configure
35271# scripts and configure runs, see configure's option --config-cache.
35272# It is not useful on other systems. If it contains results you don't
35273# want to keep, you may remove or edit it.
35274#
35275# config.status only pays attention to the cache file if you give it
35276# the --recheck option to rerun configure.
35277#
35278# `ac_cv_env_foo' variables (set or unset) will be overridden when
35279# loading this file, other *unset* `ac_cv_foo' will be assigned the
35280# following values.
35281
35282_ACEOF
35283
35284# The following way of writing the cache mishandles newlines in values,
35285# but we know of no workaround that is simple, portable, and efficient.
35286# So, don't put newlines in cache variables' values.
35287# Ultrix sh set writes to stderr and can't be redirected directly,
35288# and sets the high bit in the cache file unless we assign to the vars.
35289{
35290 (set) 2>&1 |
35291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35292 *ac_space=\ *)
35293 # `set' does not quote correctly, so add quotes (double-quote
35294 # substitution turns \\\\ into \\, and sed turns \\ into \).
35295 sed -n \
ac1cb8d3
VS
35296 "s/'/'\\\\''/g;
35297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35298 ;;
35299 *)
35300 # `set' quotes correctly as required by POSIX, so do not add quotes.
35301 sed -n \
ac1cb8d3 35302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35303 ;;
35304 esac;
35305} |
35306 sed '
35307 t clear
35308 : clear
35309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35310 t end
35311 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35312 : end' >>confcache
35313if diff $cache_file confcache >/dev/null 2>&1; then :; else
35314 if test -w $cache_file; then
35315 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35316 cat confcache >$cache_file
35317 else
35318 echo "not updating unwritable cache $cache_file"
35319 fi
35320fi
35321rm -f confcache
35322
35323
35324CPP_MT_FLAG=
35325if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35326
35327
35328 THREADS_LINK=
35329 THREADS_CFLAGS=
35330
35331 if test "$wxUSE_THREADS" = "yes" ; then
35332 if test "$USE_BEOS" = 1; then
35333 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35334echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35335 wxUSE_THREADS="no"
35336 fi
35337 fi
35338
35339 if test "$wxUSE_THREADS" = "yes" ; then
35340
35341
35342 THREAD_OPTS="-pthread"
35343 case "${host}" in
35344 *-*-solaris2* | *-*-sunos4* )
35345 if test "x$GCC" = "xyes"; then
35346 THREAD_OPTS="-pthreads $THREAD_OPTS"
35347 else
35348 THREAD_OPTS="-mt $THREAD_OPTS"
35349 fi
35350 ;;
35351 *-*-freebsd*)
35352 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35353 ;;
35354 *-*-darwin* | *-*-cygwin* )
35355 THREAD_OPTS=""
35356 ;;
35357 *-*-aix*)
35358 THREAD_OPTS="pthreads"
35359 ;;
35360 *-hp-hpux* )
00421666
MW
35361 if test "x$GCC" = "xyes"; then
35362 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35363 THREAD_OPTS=""
35364 else
efdf6afe 35365 THREAD_OPTS=""
a848cd7e
SC
35366 fi
35367 ;;
35368
35369 *-*-irix* )
35370 if test "x$GCC" = "xyes"; then
35371 THREAD_OPTS=""
35372 fi
35373 ;;
35374
35375 *-*-*UnixWare*)
35376 if test "x$GCC" != "xyes"; then
35377 THREAD_OPTS="-Ethread"
35378 fi
35379 ;;
35380 esac
35381
35382 THREAD_OPTS="$THREAD_OPTS pthread none"
35383
35384 THREADS_OK=no
35385 for flag in $THREAD_OPTS; do
35386 case $flag in
35387 none)
35388 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35389echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35390 ;;
35391
35392 -*)
35393 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35394echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35395 THREADS_CFLAGS="$flag"
35396 ;;
35397
35398 *)
35399 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35400echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35401 THREADS_LINK="-l$flag"
35402 ;;
35403 esac
35404
35405 save_LIBS="$LIBS"
35406 save_CFLAGS="$CFLAGS"
35407 LIBS="$THREADS_LINK $LIBS"
35408 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35409
35410 cat >conftest.$ac_ext <<_ACEOF
35411/* confdefs.h. */
35412_ACEOF
35413cat confdefs.h >>conftest.$ac_ext
35414cat >>conftest.$ac_ext <<_ACEOF
35415/* end confdefs.h. */
35416#include <pthread.h>
35417int
35418main ()
35419{
35420pthread_create(0,0,0,0);
35421 ;
35422 return 0;
35423}
35424_ACEOF
35425rm -f conftest.$ac_objext conftest$ac_exeext
35426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35427 (eval $ac_link) 2>conftest.er1
a848cd7e 35428 ac_status=$?
ac1cb8d3
VS
35429 grep -v '^ *+' conftest.er1 >conftest.err
35430 rm -f conftest.er1
35431 cat conftest.err >&5
a848cd7e
SC
35432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); } &&
6ebeb4c7 35434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; } &&
35440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35446 THREADS_OK=yes
35447else
35448 echo "$as_me: failed program was:" >&5
35449sed 's/^/| /' conftest.$ac_ext >&5
35450
35451fi
ac1cb8d3
VS
35452rm -f conftest.err conftest.$ac_objext \
35453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35454
35455 LIBS="$save_LIBS"
35456 CFLAGS="$save_CFLAGS"
35457
35458 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35459echo "${ECHO_T}$THREADS_OK" >&6
35460 if test "x$THREADS_OK" = "xyes"; then
35461 break;
35462 fi
35463
35464 THREADS_LINK=""
35465 THREADS_CFLAGS=""
35466 done
35467
35468 if test "x$THREADS_OK" != "xyes"; then
35469 wxUSE_THREADS=no
35470 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35471echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35472 else
35473 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35474 LIBS="$THREADS_LINK $LIBS"
35475
35476 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35477echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35478 flag=no
35479 case "${host}" in
35480 *-aix*)
35481 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35482 flag="-D_THREAD_SAFE"
35483 ;;
35484 *-freebsd*)
35485 flag="-D_THREAD_SAFE"
35486 ;;
35487 *-hp-hpux* )
35488 flag="-D_REENTRANT"
35489 if test "x$GCC" != "xyes"; then
35490 flag="$flag -D_RWSTD_MULTI_THREAD"
35491 fi
35492 ;;
35493 *solaris* | alpha*-osf*)
35494 flag="-D_REENTRANT"
35495 ;;
35496 esac
35497 echo "$as_me:$LINENO: result: ${flag}" >&5
35498echo "${ECHO_T}${flag}" >&6
35499 if test "x$flag" != xno; then
35500 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35501 fi
35502
35503 if test "x$THREADS_CFLAGS" != "x"; then
35504 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35505 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35506 fi
35507 fi
35508 fi
35509
35510 if test "$wxUSE_THREADS" = "yes" ; then
35511
35512for ac_func in thr_setconcurrency
35513do
35514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35515echo "$as_me:$LINENO: checking for $ac_func" >&5
35516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35517if eval "test \"\${$as_ac_var+set}\" = set"; then
35518 echo $ECHO_N "(cached) $ECHO_C" >&6
35519else
35520 cat >conftest.$ac_ext <<_ACEOF
35521/* confdefs.h. */
35522_ACEOF
35523cat confdefs.h >>conftest.$ac_ext
35524cat >>conftest.$ac_ext <<_ACEOF
35525/* end confdefs.h. */
ac1cb8d3
VS
35526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35528#define $ac_func innocuous_$ac_func
35529
a848cd7e
SC
35530/* System header to define __stub macros and hopefully few prototypes,
35531 which can conflict with char $ac_func (); below.
35532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35533 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35534
a848cd7e
SC
35535#ifdef __STDC__
35536# include <limits.h>
35537#else
35538# include <assert.h>
35539#endif
ac1cb8d3
VS
35540
35541#undef $ac_func
35542
a848cd7e
SC
35543/* Override any gcc2 internal prototype to avoid an error. */
35544#ifdef __cplusplus
35545extern "C"
35546{
35547#endif
35548/* We use char because int might match the return type of a gcc2
35549 builtin and then its argument prototype would still apply. */
35550char $ac_func ();
35551/* The GNU C library defines this for functions which it implements
35552 to always fail with ENOSYS. Some functions are actually named
35553 something starting with __ and the normal name is an alias. */
35554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35555choke me
35556#else
35557char (*f) () = $ac_func;
35558#endif
35559#ifdef __cplusplus
35560}
35561#endif
35562
35563int
35564main ()
35565{
35566return f != $ac_func;
35567 ;
35568 return 0;
35569}
35570_ACEOF
35571rm -f conftest.$ac_objext conftest$ac_exeext
35572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35573 (eval $ac_link) 2>conftest.er1
a848cd7e 35574 ac_status=$?
ac1cb8d3
VS
35575 grep -v '^ *+' conftest.er1 >conftest.err
35576 rm -f conftest.er1
35577 cat conftest.err >&5
a848cd7e
SC
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
6ebeb4c7 35580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35589 ac_status=$?
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35592 eval "$as_ac_var=yes"
35593else
35594 echo "$as_me: failed program was:" >&5
35595sed 's/^/| /' conftest.$ac_ext >&5
35596
35597eval "$as_ac_var=no"
35598fi
ac1cb8d3
VS
35599rm -f conftest.err conftest.$ac_objext \
35600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35601fi
35602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35604if test `eval echo '${'$as_ac_var'}'` = yes; then
35605 cat >>confdefs.h <<_ACEOF
35606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35607_ACEOF
35608
35609fi
35610done
35611
35612
6ebeb4c7
VZ
35613 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
35614echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
35615if test "${wx_cv_func_pthread_cleanup+set}" = set; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35617else
35618
35619 cat >conftest.$ac_ext <<_ACEOF
35620/* confdefs.h. */
35621_ACEOF
35622cat confdefs.h >>conftest.$ac_ext
35623cat >>conftest.$ac_ext <<_ACEOF
35624/* end confdefs.h. */
35625#include <pthread.h>
35626 void ThreadCleanupFunc(void *p);
35627
35628int
35629main ()
35630{
35631
35632 void *p;
35633 pthread_cleanup_push(ThreadCleanupFunc, p);
35634 pthread_cleanup_pop(0);
35635
35636 ;
35637 return 0;
35638}
35639_ACEOF
35640rm -f conftest.$ac_objext
35641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35642 (eval $ac_compile) 2>conftest.er1
35643 ac_status=$?
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
35649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; } &&
35655 { ac_try='test -s conftest.$ac_objext'
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661
35662 wx_cv_func_pthread_cleanup=yes
35663
35664else
35665 echo "$as_me: failed program was:" >&5
35666sed 's/^/| /' conftest.$ac_ext >&5
35667
35668
35669 wx_cv_func_pthread_cleanup=no
35670
35671
35672fi
35673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35674
35675fi
35676echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
35677echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
35678 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
35679 cat >>confdefs.h <<\_ACEOF
35680#define wxHAVE_PTHREAD_CLEANUP 1
35681_ACEOF
35682
35683 fi
35684
a848cd7e
SC
35685
35686for ac_header in sched.h
35687do
35688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35689if eval "test \"\${$as_ac_Header+set}\" = set"; then
35690 echo "$as_me:$LINENO: checking for $ac_header" >&5
35691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35692if eval "test \"\${$as_ac_Header+set}\" = set"; then
35693 echo $ECHO_N "(cached) $ECHO_C" >&6
35694fi
35695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35697else
35698 # Is the header compilable?
35699echo "$as_me:$LINENO: checking $ac_header usability" >&5
35700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35701cat >conftest.$ac_ext <<_ACEOF
35702/* confdefs.h. */
35703_ACEOF
35704cat confdefs.h >>conftest.$ac_ext
35705cat >>conftest.$ac_ext <<_ACEOF
35706/* end confdefs.h. */
35707$ac_includes_default
35708#include <$ac_header>
35709_ACEOF
35710rm -f conftest.$ac_objext
35711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35712 (eval $ac_compile) 2>conftest.er1
a848cd7e 35713 ac_status=$?
ac1cb8d3
VS
35714 grep -v '^ *+' conftest.er1 >conftest.err
35715 rm -f conftest.er1
35716 cat conftest.err >&5
a848cd7e
SC
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } &&
6ebeb4c7 35719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35721 (eval $ac_try) 2>&5
35722 ac_status=$?
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); }; } &&
35725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35727 (eval $ac_try) 2>&5
35728 ac_status=$?
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); }; }; then
35731 ac_header_compiler=yes
35732else
35733 echo "$as_me: failed program was:" >&5
35734sed 's/^/| /' conftest.$ac_ext >&5
35735
35736ac_header_compiler=no
35737fi
ac1cb8d3 35738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35740echo "${ECHO_T}$ac_header_compiler" >&6
35741
35742# Is the header present?
35743echo "$as_me:$LINENO: checking $ac_header presence" >&5
35744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35745cat >conftest.$ac_ext <<_ACEOF
35746/* confdefs.h. */
35747_ACEOF
35748cat confdefs.h >>conftest.$ac_ext
35749cat >>conftest.$ac_ext <<_ACEOF
35750/* end confdefs.h. */
35751#include <$ac_header>
35752_ACEOF
35753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35755 ac_status=$?
35756 grep -v '^ *+' conftest.er1 >conftest.err
35757 rm -f conftest.er1
35758 cat conftest.err >&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } >/dev/null; then
35761 if test -s conftest.err; then
35762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35764 else
35765 ac_cpp_err=
35766 fi
35767else
35768 ac_cpp_err=yes
35769fi
35770if test -z "$ac_cpp_err"; then
35771 ac_header_preproc=yes
35772else
35773 echo "$as_me: failed program was:" >&5
35774sed 's/^/| /' conftest.$ac_ext >&5
35775
35776 ac_header_preproc=no
35777fi
35778rm -f conftest.err conftest.$ac_ext
35779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35780echo "${ECHO_T}$ac_header_preproc" >&6
35781
35782# So? What about this header?
ac1cb8d3
VS
35783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35784 yes:no: )
a848cd7e
SC
35785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35789 ac_header_preproc=yes
a848cd7e 35790 ;;
ac1cb8d3 35791 no:yes:* )
a848cd7e
SC
35792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35804 (
35805 cat <<\_ASBOX
ac1cb8d3
VS
35806## ----------------------------------------- ##
35807## Report this to wx-dev@lists.wxwidgets.org ##
35808## ----------------------------------------- ##
a848cd7e
SC
35809_ASBOX
35810 ) |
35811 sed "s/^/$as_me: WARNING: /" >&2
35812 ;;
35813esac
35814echo "$as_me:$LINENO: checking for $ac_header" >&5
35815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35816if eval "test \"\${$as_ac_Header+set}\" = set"; then
35817 echo $ECHO_N "(cached) $ECHO_C" >&6
35818else
ac1cb8d3 35819 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35820fi
35821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35823
35824fi
35825if test `eval echo '${'$as_ac_Header'}'` = yes; then
35826 cat >>confdefs.h <<_ACEOF
35827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35828_ACEOF
35829
35830fi
35831
35832done
35833
35834 if test "$ac_cv_header_sched_h" = "yes"; then
35835 echo "$as_me:$LINENO: checking for sched_yield" >&5
35836echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35837if test "${ac_cv_func_sched_yield+set}" = set; then
35838 echo $ECHO_N "(cached) $ECHO_C" >&6
35839else
35840 cat >conftest.$ac_ext <<_ACEOF
35841/* confdefs.h. */
35842_ACEOF
35843cat confdefs.h >>conftest.$ac_ext
35844cat >>conftest.$ac_ext <<_ACEOF
35845/* end confdefs.h. */
ac1cb8d3
VS
35846/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35848#define sched_yield innocuous_sched_yield
35849
a848cd7e
SC
35850/* System header to define __stub macros and hopefully few prototypes,
35851 which can conflict with char sched_yield (); below.
35852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35853 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35854
a848cd7e
SC
35855#ifdef __STDC__
35856# include <limits.h>
35857#else
35858# include <assert.h>
35859#endif
ac1cb8d3
VS
35860
35861#undef sched_yield
35862
a848cd7e
SC
35863/* Override any gcc2 internal prototype to avoid an error. */
35864#ifdef __cplusplus
35865extern "C"
35866{
35867#endif
35868/* We use char because int might match the return type of a gcc2
35869 builtin and then its argument prototype would still apply. */
35870char sched_yield ();
35871/* The GNU C library defines this for functions which it implements
35872 to always fail with ENOSYS. Some functions are actually named
35873 something starting with __ and the normal name is an alias. */
35874#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35875choke me
35876#else
35877char (*f) () = sched_yield;
35878#endif
35879#ifdef __cplusplus
35880}
35881#endif
35882
35883int
35884main ()
35885{
35886return f != sched_yield;
35887 ;
35888 return 0;
35889}
35890_ACEOF
35891rm -f conftest.$ac_objext conftest$ac_exeext
35892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35893 (eval $ac_link) 2>conftest.er1
a848cd7e 35894 ac_status=$?
ac1cb8d3
VS
35895 grep -v '^ *+' conftest.er1 >conftest.err
35896 rm -f conftest.er1
35897 cat conftest.err >&5
a848cd7e
SC
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); } &&
6ebeb4c7 35900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35902 (eval $ac_try) 2>&5
35903 ac_status=$?
35904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905 (exit $ac_status); }; } &&
35906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35908 (eval $ac_try) 2>&5
35909 ac_status=$?
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); }; }; then
35912 ac_cv_func_sched_yield=yes
35913else
35914 echo "$as_me: failed program was:" >&5
35915sed 's/^/| /' conftest.$ac_ext >&5
35916
35917ac_cv_func_sched_yield=no
35918fi
ac1cb8d3
VS
35919rm -f conftest.err conftest.$ac_objext \
35920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35921fi
35922echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35923echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35924if test $ac_cv_func_sched_yield = yes; then
35925 cat >>confdefs.h <<\_ACEOF
35926#define HAVE_SCHED_YIELD 1
35927_ACEOF
35928
35929else
35930
35931 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35932echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35933if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936 ac_check_lib_save_LIBS=$LIBS
35937LIBS="-lposix4 $LIBS"
35938cat >conftest.$ac_ext <<_ACEOF
35939/* confdefs.h. */
35940_ACEOF
35941cat confdefs.h >>conftest.$ac_ext
35942cat >>conftest.$ac_ext <<_ACEOF
35943/* end confdefs.h. */
35944
35945/* Override any gcc2 internal prototype to avoid an error. */
35946#ifdef __cplusplus
35947extern "C"
35948#endif
35949/* We use char because int might match the return type of a gcc2
35950 builtin and then its argument prototype would still apply. */
35951char sched_yield ();
35952int
35953main ()
35954{
35955sched_yield ();
35956 ;
35957 return 0;
35958}
35959_ACEOF
35960rm -f conftest.$ac_objext conftest$ac_exeext
35961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35962 (eval $ac_link) 2>conftest.er1
a848cd7e 35963 ac_status=$?
ac1cb8d3
VS
35964 grep -v '^ *+' conftest.er1 >conftest.err
35965 rm -f conftest.er1
35966 cat conftest.err >&5
a848cd7e
SC
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); } &&
6ebeb4c7 35969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971 (eval $ac_try) 2>&5
35972 ac_status=$?
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); }; } &&
35975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35977 (eval $ac_try) 2>&5
35978 ac_status=$?
35979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35980 (exit $ac_status); }; }; then
35981 ac_cv_lib_posix4_sched_yield=yes
35982else
35983 echo "$as_me: failed program was:" >&5
35984sed 's/^/| /' conftest.$ac_ext >&5
35985
35986ac_cv_lib_posix4_sched_yield=no
35987fi
ac1cb8d3
VS
35988rm -f conftest.err conftest.$ac_objext \
35989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35990LIBS=$ac_check_lib_save_LIBS
35991fi
35992echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35993echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35994if test $ac_cv_lib_posix4_sched_yield = yes; then
35995 cat >>confdefs.h <<\_ACEOF
35996#define HAVE_SCHED_YIELD 1
35997_ACEOF
35998 POSIX4_LINK=" -lposix4"
35999else
36000 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36001echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36002
36003fi
36004
36005
36006
36007fi
36008
36009 fi
36010
36011 HAVE_PRIOR_FUNCS=0
36012 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36013echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36014if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36015 echo $ECHO_N "(cached) $ECHO_C" >&6
36016else
36017 cat >conftest.$ac_ext <<_ACEOF
36018/* confdefs.h. */
36019_ACEOF
36020cat confdefs.h >>conftest.$ac_ext
36021cat >>conftest.$ac_ext <<_ACEOF
36022/* end confdefs.h. */
ac1cb8d3
VS
36023/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36025#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36026
a848cd7e
SC
36027/* System header to define __stub macros and hopefully few prototypes,
36028 which can conflict with char pthread_attr_getschedpolicy (); below.
36029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36030 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36031
a848cd7e
SC
36032#ifdef __STDC__
36033# include <limits.h>
36034#else
36035# include <assert.h>
36036#endif
ac1cb8d3
VS
36037
36038#undef pthread_attr_getschedpolicy
36039
a848cd7e
SC
36040/* Override any gcc2 internal prototype to avoid an error. */
36041#ifdef __cplusplus
36042extern "C"
36043{
36044#endif
36045/* We use char because int might match the return type of a gcc2
36046 builtin and then its argument prototype would still apply. */
36047char pthread_attr_getschedpolicy ();
36048/* The GNU C library defines this for functions which it implements
36049 to always fail with ENOSYS. Some functions are actually named
36050 something starting with __ and the normal name is an alias. */
36051#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36052choke me
36053#else
36054char (*f) () = pthread_attr_getschedpolicy;
36055#endif
36056#ifdef __cplusplus
36057}
36058#endif
36059
36060int
36061main ()
36062{
36063return f != pthread_attr_getschedpolicy;
36064 ;
36065 return 0;
36066}
36067_ACEOF
36068rm -f conftest.$ac_objext conftest$ac_exeext
36069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36070 (eval $ac_link) 2>conftest.er1
a848cd7e 36071 ac_status=$?
ac1cb8d3
VS
36072 grep -v '^ *+' conftest.er1 >conftest.err
36073 rm -f conftest.er1
36074 cat conftest.err >&5
a848cd7e
SC
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); } &&
6ebeb4c7 36077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } &&
36083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36085 (eval $ac_try) 2>&5
36086 ac_status=$?
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; }; then
36089 ac_cv_func_pthread_attr_getschedpolicy=yes
36090else
36091 echo "$as_me: failed program was:" >&5
36092sed 's/^/| /' conftest.$ac_ext >&5
36093
36094ac_cv_func_pthread_attr_getschedpolicy=no
36095fi
ac1cb8d3
VS
36096rm -f conftest.err conftest.$ac_objext \
36097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36098fi
36099echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36100echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36101if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36102 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36103echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36104if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36106else
36107 cat >conftest.$ac_ext <<_ACEOF
36108/* confdefs.h. */
36109_ACEOF
36110cat confdefs.h >>conftest.$ac_ext
36111cat >>conftest.$ac_ext <<_ACEOF
36112/* end confdefs.h. */
ac1cb8d3
VS
36113/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36115#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36116
a848cd7e
SC
36117/* System header to define __stub macros and hopefully few prototypes,
36118 which can conflict with char pthread_attr_setschedparam (); below.
36119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36120 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36121
a848cd7e
SC
36122#ifdef __STDC__
36123# include <limits.h>
36124#else
36125# include <assert.h>
36126#endif
ac1cb8d3
VS
36127
36128#undef pthread_attr_setschedparam
36129
a848cd7e
SC
36130/* Override any gcc2 internal prototype to avoid an error. */
36131#ifdef __cplusplus
36132extern "C"
36133{
36134#endif
36135/* We use char because int might match the return type of a gcc2
36136 builtin and then its argument prototype would still apply. */
36137char pthread_attr_setschedparam ();
36138/* The GNU C library defines this for functions which it implements
36139 to always fail with ENOSYS. Some functions are actually named
36140 something starting with __ and the normal name is an alias. */
36141#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36142choke me
36143#else
36144char (*f) () = pthread_attr_setschedparam;
36145#endif
36146#ifdef __cplusplus
36147}
36148#endif
36149
36150int
36151main ()
36152{
36153return f != pthread_attr_setschedparam;
36154 ;
36155 return 0;
36156}
36157_ACEOF
36158rm -f conftest.$ac_objext conftest$ac_exeext
36159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36160 (eval $ac_link) 2>conftest.er1
a848cd7e 36161 ac_status=$?
ac1cb8d3
VS
36162 grep -v '^ *+' conftest.er1 >conftest.err
36163 rm -f conftest.er1
36164 cat conftest.err >&5
a848cd7e
SC
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } &&
6ebeb4c7 36167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36169 (eval $ac_try) 2>&5
36170 ac_status=$?
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); }; } &&
36173 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36175 (eval $ac_try) 2>&5
36176 ac_status=$?
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); }; }; then
36179 ac_cv_func_pthread_attr_setschedparam=yes
36180else
36181 echo "$as_me: failed program was:" >&5
36182sed 's/^/| /' conftest.$ac_ext >&5
36183
36184ac_cv_func_pthread_attr_setschedparam=no
36185fi
ac1cb8d3
VS
36186rm -f conftest.err conftest.$ac_objext \
36187 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36188fi
36189echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36190echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36191if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36192 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36193echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36194if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36195 echo $ECHO_N "(cached) $ECHO_C" >&6
36196else
36197 cat >conftest.$ac_ext <<_ACEOF
36198/* confdefs.h. */
36199_ACEOF
36200cat confdefs.h >>conftest.$ac_ext
36201cat >>conftest.$ac_ext <<_ACEOF
36202/* end confdefs.h. */
ac1cb8d3
VS
36203/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36205#define sched_get_priority_max innocuous_sched_get_priority_max
36206
a848cd7e
SC
36207/* System header to define __stub macros and hopefully few prototypes,
36208 which can conflict with char sched_get_priority_max (); below.
36209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36210 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36211
a848cd7e
SC
36212#ifdef __STDC__
36213# include <limits.h>
36214#else
36215# include <assert.h>
36216#endif
ac1cb8d3
VS
36217
36218#undef sched_get_priority_max
36219
a848cd7e
SC
36220/* Override any gcc2 internal prototype to avoid an error. */
36221#ifdef __cplusplus
36222extern "C"
36223{
36224#endif
36225/* We use char because int might match the return type of a gcc2
36226 builtin and then its argument prototype would still apply. */
36227char sched_get_priority_max ();
36228/* The GNU C library defines this for functions which it implements
36229 to always fail with ENOSYS. Some functions are actually named
36230 something starting with __ and the normal name is an alias. */
36231#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36232choke me
36233#else
36234char (*f) () = sched_get_priority_max;
36235#endif
36236#ifdef __cplusplus
36237}
36238#endif
36239
36240int
36241main ()
36242{
36243return f != sched_get_priority_max;
36244 ;
36245 return 0;
36246}
36247_ACEOF
36248rm -f conftest.$ac_objext conftest$ac_exeext
36249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36250 (eval $ac_link) 2>conftest.er1
a848cd7e 36251 ac_status=$?
ac1cb8d3
VS
36252 grep -v '^ *+' conftest.er1 >conftest.err
36253 rm -f conftest.er1
36254 cat conftest.err >&5
a848cd7e
SC
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } &&
6ebeb4c7 36257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36260 ac_status=$?
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; } &&
36263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36265 (eval $ac_try) 2>&5
36266 ac_status=$?
36267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268 (exit $ac_status); }; }; then
36269 ac_cv_func_sched_get_priority_max=yes
36270else
36271 echo "$as_me: failed program was:" >&5
36272sed 's/^/| /' conftest.$ac_ext >&5
36273
36274ac_cv_func_sched_get_priority_max=no
36275fi
ac1cb8d3
VS
36276rm -f conftest.err conftest.$ac_objext \
36277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36278fi
36279echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36280echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36281if test $ac_cv_func_sched_get_priority_max = yes; then
36282 HAVE_PRIOR_FUNCS=1
36283else
36284 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36285echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36286if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36287 echo $ECHO_N "(cached) $ECHO_C" >&6
36288else
36289 ac_check_lib_save_LIBS=$LIBS
36290LIBS="-lposix4 $LIBS"
36291cat >conftest.$ac_ext <<_ACEOF
36292/* confdefs.h. */
36293_ACEOF
36294cat confdefs.h >>conftest.$ac_ext
36295cat >>conftest.$ac_ext <<_ACEOF
36296/* end confdefs.h. */
36297
36298/* Override any gcc2 internal prototype to avoid an error. */
36299#ifdef __cplusplus
36300extern "C"
36301#endif
36302/* We use char because int might match the return type of a gcc2
36303 builtin and then its argument prototype would still apply. */
36304char sched_get_priority_max ();
36305int
36306main ()
36307{
36308sched_get_priority_max ();
36309 ;
36310 return 0;
36311}
36312_ACEOF
36313rm -f conftest.$ac_objext conftest$ac_exeext
36314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36315 (eval $ac_link) 2>conftest.er1
a848cd7e 36316 ac_status=$?
ac1cb8d3
VS
36317 grep -v '^ *+' conftest.er1 >conftest.err
36318 rm -f conftest.er1
36319 cat conftest.err >&5
a848cd7e
SC
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); } &&
6ebeb4c7 36322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324 (eval $ac_try) 2>&5
36325 ac_status=$?
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); }; } &&
36328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36331 ac_status=$?
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; }; then
36334 ac_cv_lib_posix4_sched_get_priority_max=yes
36335else
36336 echo "$as_me: failed program was:" >&5
36337sed 's/^/| /' conftest.$ac_ext >&5
36338
36339ac_cv_lib_posix4_sched_get_priority_max=no
36340fi
ac1cb8d3
VS
36341rm -f conftest.err conftest.$ac_objext \
36342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36343LIBS=$ac_check_lib_save_LIBS
36344fi
36345echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36346echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36347if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36348
36349 HAVE_PRIOR_FUNCS=1
36350 POSIX4_LINK=" -lposix4"
36351
36352fi
36353
36354
36355fi
36356
36357
36358fi
36359
36360
36361fi
36362
36363
36364 if test "$HAVE_PRIOR_FUNCS" = 1; then
36365 cat >>confdefs.h <<\_ACEOF
36366#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36367_ACEOF
36368
36369 else
36370 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36371echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36372 fi
36373
36374 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36375echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36376if test "${ac_cv_func_pthread_cancel+set}" = set; then
36377 echo $ECHO_N "(cached) $ECHO_C" >&6
36378else
36379 cat >conftest.$ac_ext <<_ACEOF
36380/* confdefs.h. */
36381_ACEOF
36382cat confdefs.h >>conftest.$ac_ext
36383cat >>conftest.$ac_ext <<_ACEOF
36384/* end confdefs.h. */
ac1cb8d3
VS
36385/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36387#define pthread_cancel innocuous_pthread_cancel
36388
a848cd7e
SC
36389/* System header to define __stub macros and hopefully few prototypes,
36390 which can conflict with char pthread_cancel (); below.
36391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36393
a848cd7e
SC
36394#ifdef __STDC__
36395# include <limits.h>
36396#else
36397# include <assert.h>
36398#endif
ac1cb8d3
VS
36399
36400#undef pthread_cancel
36401
a848cd7e
SC
36402/* Override any gcc2 internal prototype to avoid an error. */
36403#ifdef __cplusplus
36404extern "C"
36405{
36406#endif
36407/* We use char because int might match the return type of a gcc2
36408 builtin and then its argument prototype would still apply. */
36409char pthread_cancel ();
36410/* The GNU C library defines this for functions which it implements
36411 to always fail with ENOSYS. Some functions are actually named
36412 something starting with __ and the normal name is an alias. */
36413#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36414choke me
36415#else
36416char (*f) () = pthread_cancel;
36417#endif
36418#ifdef __cplusplus
36419}
36420#endif
36421
36422int
36423main ()
36424{
36425return f != pthread_cancel;
36426 ;
36427 return 0;
36428}
36429_ACEOF
36430rm -f conftest.$ac_objext conftest$ac_exeext
36431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36432 (eval $ac_link) 2>conftest.er1
a848cd7e 36433 ac_status=$?
ac1cb8d3
VS
36434 grep -v '^ *+' conftest.er1 >conftest.err
36435 rm -f conftest.er1
36436 cat conftest.err >&5
a848cd7e
SC
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } &&
6ebeb4c7 36439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36441 (eval $ac_try) 2>&5
36442 ac_status=$?
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); }; } &&
36445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447 (eval $ac_try) 2>&5
36448 ac_status=$?
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); }; }; then
36451 ac_cv_func_pthread_cancel=yes
36452else
36453 echo "$as_me: failed program was:" >&5
36454sed 's/^/| /' conftest.$ac_ext >&5
36455
36456ac_cv_func_pthread_cancel=no
36457fi
ac1cb8d3
VS
36458rm -f conftest.err conftest.$ac_objext \
36459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36460fi
36461echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36462echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36463if test $ac_cv_func_pthread_cancel = yes; then
36464 cat >>confdefs.h <<\_ACEOF
36465#define HAVE_PTHREAD_CANCEL 1
36466_ACEOF
36467
36468else
36469 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36470echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36471fi
36472
36473
abc736fd
MW
36474 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36475echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36476if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36477 echo $ECHO_N "(cached) $ECHO_C" >&6
36478else
36479 cat >conftest.$ac_ext <<_ACEOF
36480/* confdefs.h. */
36481_ACEOF
36482cat confdefs.h >>conftest.$ac_ext
36483cat >>conftest.$ac_ext <<_ACEOF
36484/* end confdefs.h. */
36485/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36487#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36488
36489/* System header to define __stub macros and hopefully few prototypes,
36490 which can conflict with char pthread_attr_setstacksize (); below.
36491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36492 <limits.h> exists even on freestanding compilers. */
36493
36494#ifdef __STDC__
36495# include <limits.h>
36496#else
36497# include <assert.h>
36498#endif
36499
36500#undef pthread_attr_setstacksize
36501
36502/* Override any gcc2 internal prototype to avoid an error. */
36503#ifdef __cplusplus
36504extern "C"
36505{
36506#endif
36507/* We use char because int might match the return type of a gcc2
36508 builtin and then its argument prototype would still apply. */
36509char pthread_attr_setstacksize ();
36510/* The GNU C library defines this for functions which it implements
36511 to always fail with ENOSYS. Some functions are actually named
36512 something starting with __ and the normal name is an alias. */
36513#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36514choke me
36515#else
36516char (*f) () = pthread_attr_setstacksize;
36517#endif
36518#ifdef __cplusplus
36519}
36520#endif
36521
36522int
36523main ()
36524{
36525return f != pthread_attr_setstacksize;
36526 ;
36527 return 0;
36528}
36529_ACEOF
36530rm -f conftest.$ac_objext conftest$ac_exeext
36531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36532 (eval $ac_link) 2>conftest.er1
36533 ac_status=$?
36534 grep -v '^ *+' conftest.er1 >conftest.err
36535 rm -f conftest.er1
36536 cat conftest.err >&5
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } &&
6ebeb4c7 36539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36541 (eval $ac_try) 2>&5
36542 ac_status=$?
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); }; } &&
36545 { ac_try='test -s conftest$ac_exeext'
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; }; then
36551 ac_cv_func_pthread_attr_setstacksize=yes
36552else
36553 echo "$as_me: failed program was:" >&5
36554sed 's/^/| /' conftest.$ac_ext >&5
36555
36556ac_cv_func_pthread_attr_setstacksize=no
36557fi
36558rm -f conftest.err conftest.$ac_objext \
36559 conftest$ac_exeext conftest.$ac_ext
36560fi
36561echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
36562echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
36563if test $ac_cv_func_pthread_attr_setstacksize = yes; then
36564 cat >>confdefs.h <<\_ACEOF
36565#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
36566_ACEOF
36567
36568fi
36569
a848cd7e
SC
36570
36571
36572 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
36573echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
36574if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
36575 echo $ECHO_N "(cached) $ECHO_C" >&6
36576else
36577
36578 cat >conftest.$ac_ext <<_ACEOF
36579/* confdefs.h. */
36580_ACEOF
36581cat confdefs.h >>conftest.$ac_ext
36582cat >>conftest.$ac_ext <<_ACEOF
36583/* end confdefs.h. */
36584#include <pthread.h>
36585int
36586main ()
36587{
36588
36589 pthread_mutexattr_t attr;
36590 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
36591
36592 ;
36593 return 0;
36594}
36595_ACEOF
36596rm -f conftest.$ac_objext
36597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36598 (eval $ac_compile) 2>conftest.er1
a848cd7e 36599 ac_status=$?
ac1cb8d3
VS
36600 grep -v '^ *+' conftest.er1 >conftest.err
36601 rm -f conftest.er1
36602 cat conftest.err >&5
a848cd7e
SC
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); } &&
6ebeb4c7 36605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607 (eval $ac_try) 2>&5
36608 ac_status=$?
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); }; } &&
36611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613 (eval $ac_try) 2>&5
36614 ac_status=$?
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); }; }; then
36617
36618 wx_cv_type_pthread_mutexattr_t=yes
36619
36620else
36621 echo "$as_me: failed program was:" >&5
36622sed 's/^/| /' conftest.$ac_ext >&5
36623
36624
36625 wx_cv_type_pthread_mutexattr_t=no
36626
36627
36628fi
ac1cb8d3 36629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36630
36631fi
36632echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
36633echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
36634
36635 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
36636 cat >>confdefs.h <<\_ACEOF
36637#define HAVE_PTHREAD_MUTEXATTR_T 1
36638_ACEOF
36639
36640 else
36641 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
36642echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
36643if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
36644 echo $ECHO_N "(cached) $ECHO_C" >&6
36645else
36646
36647 cat >conftest.$ac_ext <<_ACEOF
36648/* confdefs.h. */
36649_ACEOF
36650cat confdefs.h >>conftest.$ac_ext
36651cat >>conftest.$ac_ext <<_ACEOF
36652/* end confdefs.h. */
36653#include <pthread.h>
36654int
36655main ()
36656{
36657
36658 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
36659
36660 ;
36661 return 0;
36662}
36663_ACEOF
36664rm -f conftest.$ac_objext
36665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36666 (eval $ac_compile) 2>conftest.er1
a848cd7e 36667 ac_status=$?
ac1cb8d3
VS
36668 grep -v '^ *+' conftest.er1 >conftest.err
36669 rm -f conftest.er1
36670 cat conftest.err >&5
a848cd7e
SC
36671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672 (exit $ac_status); } &&
6ebeb4c7 36673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675 (eval $ac_try) 2>&5
36676 ac_status=$?
36677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678 (exit $ac_status); }; } &&
36679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36681 (eval $ac_try) 2>&5
36682 ac_status=$?
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); }; }; then
36685
36686 wx_cv_type_pthread_rec_mutex_init=yes
36687
36688else
36689 echo "$as_me: failed program was:" >&5
36690sed 's/^/| /' conftest.$ac_ext >&5
36691
36692
36693 wx_cv_type_pthread_rec_mutex_init=no
36694
36695
36696fi
ac1cb8d3 36697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36698
36699fi
36700echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36701echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36702 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36703 cat >>confdefs.h <<\_ACEOF
36704#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36705_ACEOF
36706
36707 else
36708 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36709echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36710 fi
36711 fi
36712 fi
36713
36714else
36715 if test "$wxUSE_THREADS" = "yes" ; then
36716 case "${host}" in
36717 *-*-mingw32* )
36718 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36719echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36720if test "${wx_cv_cflags_mthread+set}" = set; then
36721 echo $ECHO_N "(cached) $ECHO_C" >&6
36722else
36723
36724 CFLAGS_OLD="$CFLAGS"
36725 CFLAGS="$CFLAGS -mthreads"
36726 cat >conftest.$ac_ext <<_ACEOF
36727/* confdefs.h. */
36728_ACEOF
36729cat confdefs.h >>conftest.$ac_ext
36730cat >>conftest.$ac_ext <<_ACEOF
36731/* end confdefs.h. */
36732
36733int
36734main ()
36735{
36736
36737 ;
36738 return 0;
36739}
36740_ACEOF
36741rm -f conftest.$ac_objext
36742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36743 (eval $ac_compile) 2>conftest.er1
a848cd7e 36744 ac_status=$?
ac1cb8d3
VS
36745 grep -v '^ *+' conftest.er1 >conftest.err
36746 rm -f conftest.er1
36747 cat conftest.err >&5
a848cd7e
SC
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } &&
6ebeb4c7 36750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; } &&
36756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36758 (eval $ac_try) 2>&5
36759 ac_status=$?
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); }; }; then
36762 wx_cv_cflags_mthread=yes
36763else
36764 echo "$as_me: failed program was:" >&5
36765sed 's/^/| /' conftest.$ac_ext >&5
36766
36767wx_cv_cflags_mthread=no
36768
36769fi
ac1cb8d3 36770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36771
36772
36773fi
36774echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36775echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36776
36777 if test "$wx_cv_cflags_mthread" = "yes"; then
36778 CXXFLAGS="$CXXFLAGS -mthreads"
36779 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36780 LDFLAGS="$LDFLAGS -mthreads"
36781 else
36782 CFLAGS="$CFLAGS_OLD"
36783 fi
36784 ;;
36785 *-pc-os2*emx )
36786 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36787 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36788 LDFLAGS="$LDFLAGS -Zmt"
36789 ;;
36790 esac
36791 fi
36792fi
36793
36794if test "$wxUSE_THREADS" = "yes"; then
36795 cat >>confdefs.h <<\_ACEOF
36796#define wxUSE_THREADS 1
36797_ACEOF
36798
36799
36800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36801else
36802 if test "$ac_cv_func_strtok_r" = "yes"; then
36803 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36804echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36805 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36806 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36807 echo "$as_me:$LINENO: result: yes" >&5
36808echo "${ECHO_T}yes" >&6
36809 else
36810 echo "$as_me:$LINENO: result: no" >&5
36811echo "${ECHO_T}no" >&6
36812 fi
36813 fi
36814fi
36815
36816if test "$WXGTK20" = 1 ; then
36817 cat >>confdefs.h <<_ACEOF
36818#define __WXGTK20__ $WXGTK20
36819_ACEOF
36820
36821 WXGTK12=1
36822fi
36823
36824if test "$WXGTK12" = 1 ; then
36825 cat >>confdefs.h <<_ACEOF
36826#define __WXGTK12__ $WXGTK12
36827_ACEOF
36828
36829fi
36830
36831if test "$WXGTK127" = 1 ; then
36832 cat >>confdefs.h <<_ACEOF
36833#define __WXGTK127__ $WXGTK127
36834_ACEOF
36835
36836fi
36837
36838if test "$WXGPE" = 1 ; then
36839 cat >>confdefs.h <<_ACEOF
36840#define __WXGPE__ $WXGPE
36841_ACEOF
36842
36843fi
36844
36845WXDEBUG=
36846
36847if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36848 WXDEBUG="-g"
36849 wxUSE_OPTIMISE=no
36850fi
36851
36852if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36853 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36854 if test "$GCC" = yes; then
36855 WXDEBUG="-ggdb"
36856 fi
a848cd7e
SC
36857fi
36858
36859if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36860 cat >>confdefs.h <<\_ACEOF
36861#define WXDEBUG 1
36862_ACEOF
36863
36864 WXDEBUG_DEFINE="-D__WXDEBUG__"
36865else
36866 if test "$wxUSE_GTK" = 1 ; then
36867 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36868 fi
36869fi
36870
36871if test "$wxUSE_MEM_TRACING" = "yes" ; then
36872 cat >>confdefs.h <<\_ACEOF
36873#define wxUSE_MEMORY_TRACING 1
36874_ACEOF
36875
36876 cat >>confdefs.h <<\_ACEOF
36877#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36878_ACEOF
36879
36880 cat >>confdefs.h <<\_ACEOF
36881#define wxUSE_DEBUG_NEW_ALWAYS 1
36882_ACEOF
36883
36884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36885fi
36886
36887if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36888 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36889fi
36890
36891PROFILE=
36892if test "$wxUSE_PROFILE" = "yes" ; then
36893 PROFILE=" -pg"
36894fi
36895
36896CODE_GEN_FLAGS=
36897CODE_GEN_FLAGS_CXX=
36898if test "$GCC" = "yes" ; then
36899 if test "$wxUSE_NO_RTTI" = "yes" ; then
36900 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36901 fi
36902 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36903 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36904 fi
36905 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36906 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36907 fi
36908
36909 case "${host}" in
36910 powerpc*-*-aix* )
36911 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36912 ;;
36913 *-hppa* )
36914 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36915 ;;
36916 esac
36917fi
36918
36919OPTIMISE=
36920if test "$wxUSE_OPTIMISE" = "no" ; then
36921 if test "$GCC" = yes ; then
36922 OPTIMISE="-O0"
36923 fi
36924else
36925 if test "$GCC" = yes ; then
36926 OPTIMISE="-O2"
36927
36928 case "${host}" in
36929 i586-*-*|i686-*-* )
36930 OPTIMISE="${OPTIMISE} "
36931 ;;
36932 esac
36933 else
36934 OPTIMISE="-O"
36935 fi
36936fi
36937
36938
36939if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36940 cat >>confdefs.h <<\_ACEOF
36941#define WXWIN_COMPATIBILITY_2_2 1
36942_ACEOF
36943
36944
36945 WXWIN_COMPATIBILITY_2_4="yes"
36946fi
36947
36948if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36949 cat >>confdefs.h <<\_ACEOF
36950#define WXWIN_COMPATIBILITY_2_4 1
36951_ACEOF
36952
36953fi
36954
36955
36956if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36957 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36958#define wxUSE_GUI 1
36959_ACEOF
36960
36961
370fd4c2 36962 fi
a848cd7e
SC
36963
36964
36965if test "$wxUSE_UNIX" = "yes"; then
36966 cat >>confdefs.h <<\_ACEOF
36967#define wxUSE_UNIX 1
36968_ACEOF
36969
36970fi
36971
36972
36973if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36974
36975 HAVE_DL_FUNCS=0
36976 HAVE_SHL_FUNCS=0
36977 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36978 if test "$USE_DARWIN" = 1; then
36979 HAVE_DL_FUNCS=1
47a7e797
MW
36980 elif test "$USE_DOS" = 1; then
36981 HAVE_DL_FUNCS=0
a848cd7e
SC
36982 else
36983
36984for ac_func in dlopen
36985do
36986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36987echo "$as_me:$LINENO: checking for $ac_func" >&5
36988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36989if eval "test \"\${$as_ac_var+set}\" = set"; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36991else
36992 cat >conftest.$ac_ext <<_ACEOF
36993/* confdefs.h. */
36994_ACEOF
36995cat confdefs.h >>conftest.$ac_ext
36996cat >>conftest.$ac_ext <<_ACEOF
36997/* end confdefs.h. */
ac1cb8d3
VS
36998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37000#define $ac_func innocuous_$ac_func
37001
a848cd7e
SC
37002/* System header to define __stub macros and hopefully few prototypes,
37003 which can conflict with char $ac_func (); below.
37004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37006
a848cd7e
SC
37007#ifdef __STDC__
37008# include <limits.h>
37009#else
37010# include <assert.h>
37011#endif
ac1cb8d3
VS
37012
37013#undef $ac_func
37014
a848cd7e
SC
37015/* Override any gcc2 internal prototype to avoid an error. */
37016#ifdef __cplusplus
37017extern "C"
37018{
37019#endif
37020/* We use char because int might match the return type of a gcc2
37021 builtin and then its argument prototype would still apply. */
37022char $ac_func ();
37023/* The GNU C library defines this for functions which it implements
37024 to always fail with ENOSYS. Some functions are actually named
37025 something starting with __ and the normal name is an alias. */
37026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37027choke me
37028#else
37029char (*f) () = $ac_func;
37030#endif
37031#ifdef __cplusplus
37032}
37033#endif
37034
37035int
37036main ()
37037{
37038return f != $ac_func;
37039 ;
37040 return 0;
37041}
37042_ACEOF
37043rm -f conftest.$ac_objext conftest$ac_exeext
37044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37045 (eval $ac_link) 2>conftest.er1
a848cd7e 37046 ac_status=$?
ac1cb8d3
VS
37047 grep -v '^ *+' conftest.er1 >conftest.err
37048 rm -f conftest.er1
37049 cat conftest.err >&5
a848cd7e
SC
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } &&
6ebeb4c7 37052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37055 ac_status=$?
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; } &&
37058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060 (eval $ac_try) 2>&5
37061 ac_status=$?
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); }; }; then
37064 eval "$as_ac_var=yes"
37065else
37066 echo "$as_me: failed program was:" >&5
37067sed 's/^/| /' conftest.$ac_ext >&5
37068
37069eval "$as_ac_var=no"
37070fi
ac1cb8d3
VS
37071rm -f conftest.err conftest.$ac_objext \
37072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37073fi
37074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37076if test `eval echo '${'$as_ac_var'}'` = yes; then
37077 cat >>confdefs.h <<_ACEOF
37078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37079_ACEOF
37080
37081 cat >>confdefs.h <<\_ACEOF
37082#define HAVE_DLOPEN 1
37083_ACEOF
37084
37085 HAVE_DL_FUNCS=1
37086
37087else
37088
37089 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37090echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37091if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37092 echo $ECHO_N "(cached) $ECHO_C" >&6
37093else
37094 ac_check_lib_save_LIBS=$LIBS
37095LIBS="-ldl $LIBS"
37096cat >conftest.$ac_ext <<_ACEOF
37097/* confdefs.h. */
37098_ACEOF
37099cat confdefs.h >>conftest.$ac_ext
37100cat >>conftest.$ac_ext <<_ACEOF
37101/* end confdefs.h. */
37102
37103/* Override any gcc2 internal prototype to avoid an error. */
37104#ifdef __cplusplus
37105extern "C"
37106#endif
37107/* We use char because int might match the return type of a gcc2
37108 builtin and then its argument prototype would still apply. */
37109char dlopen ();
37110int
37111main ()
37112{
37113dlopen ();
37114 ;
37115 return 0;
37116}
37117_ACEOF
37118rm -f conftest.$ac_objext conftest$ac_exeext
37119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37120 (eval $ac_link) 2>conftest.er1
a848cd7e 37121 ac_status=$?
ac1cb8d3
VS
37122 grep -v '^ *+' conftest.er1 >conftest.err
37123 rm -f conftest.er1
37124 cat conftest.err >&5
a848cd7e
SC
37125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126 (exit $ac_status); } &&
6ebeb4c7 37127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37130 ac_status=$?
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; } &&
37133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37136 ac_status=$?
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; }; then
37139 ac_cv_lib_dl_dlopen=yes
37140else
37141 echo "$as_me: failed program was:" >&5
37142sed 's/^/| /' conftest.$ac_ext >&5
37143
37144ac_cv_lib_dl_dlopen=no
37145fi
ac1cb8d3
VS
37146rm -f conftest.err conftest.$ac_objext \
37147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37148LIBS=$ac_check_lib_save_LIBS
37149fi
37150echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37151echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37152if test $ac_cv_lib_dl_dlopen = yes; then
37153
37154 cat >>confdefs.h <<\_ACEOF
37155#define HAVE_DLOPEN 1
37156_ACEOF
37157
37158 HAVE_DL_FUNCS=1
37159 DL_LINK=" -ldl$DL_LINK"
37160
37161else
37162
37163
37164for ac_func in shl_load
37165do
37166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37167echo "$as_me:$LINENO: checking for $ac_func" >&5
37168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37169if eval "test \"\${$as_ac_var+set}\" = set"; then
37170 echo $ECHO_N "(cached) $ECHO_C" >&6
37171else
37172 cat >conftest.$ac_ext <<_ACEOF
37173/* confdefs.h. */
37174_ACEOF
37175cat confdefs.h >>conftest.$ac_ext
37176cat >>conftest.$ac_ext <<_ACEOF
37177/* end confdefs.h. */
ac1cb8d3
VS
37178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37180#define $ac_func innocuous_$ac_func
37181
a848cd7e
SC
37182/* System header to define __stub macros and hopefully few prototypes,
37183 which can conflict with char $ac_func (); below.
37184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37186
a848cd7e
SC
37187#ifdef __STDC__
37188# include <limits.h>
37189#else
37190# include <assert.h>
37191#endif
ac1cb8d3
VS
37192
37193#undef $ac_func
37194
a848cd7e
SC
37195/* Override any gcc2 internal prototype to avoid an error. */
37196#ifdef __cplusplus
37197extern "C"
37198{
37199#endif
37200/* We use char because int might match the return type of a gcc2
37201 builtin and then its argument prototype would still apply. */
37202char $ac_func ();
37203/* The GNU C library defines this for functions which it implements
37204 to always fail with ENOSYS. Some functions are actually named
37205 something starting with __ and the normal name is an alias. */
37206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37207choke me
37208#else
37209char (*f) () = $ac_func;
37210#endif
37211#ifdef __cplusplus
37212}
37213#endif
37214
37215int
37216main ()
37217{
37218return f != $ac_func;
37219 ;
37220 return 0;
37221}
37222_ACEOF
37223rm -f conftest.$ac_objext conftest$ac_exeext
37224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37225 (eval $ac_link) 2>conftest.er1
a848cd7e 37226 ac_status=$?
ac1cb8d3
VS
37227 grep -v '^ *+' conftest.er1 >conftest.err
37228 rm -f conftest.er1
37229 cat conftest.err >&5
a848cd7e
SC
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); } &&
6ebeb4c7 37232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234 (eval $ac_try) 2>&5
37235 ac_status=$?
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); }; } &&
37238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240 (eval $ac_try) 2>&5
37241 ac_status=$?
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); }; }; then
37244 eval "$as_ac_var=yes"
37245else
37246 echo "$as_me: failed program was:" >&5
37247sed 's/^/| /' conftest.$ac_ext >&5
37248
37249eval "$as_ac_var=no"
37250fi
ac1cb8d3
VS
37251rm -f conftest.err conftest.$ac_objext \
37252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37253fi
37254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37256if test `eval echo '${'$as_ac_var'}'` = yes; then
37257 cat >>confdefs.h <<_ACEOF
37258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37259_ACEOF
37260
37261 cat >>confdefs.h <<\_ACEOF
37262#define HAVE_SHL_LOAD 1
37263_ACEOF
37264
37265 HAVE_SHL_FUNCS=1
37266
37267else
37268
37269 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37270echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37271if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37272 echo $ECHO_N "(cached) $ECHO_C" >&6
37273else
37274 ac_check_lib_save_LIBS=$LIBS
37275LIBS="-lshl_load $LIBS"
37276cat >conftest.$ac_ext <<_ACEOF
37277/* confdefs.h. */
37278_ACEOF
37279cat confdefs.h >>conftest.$ac_ext
37280cat >>conftest.$ac_ext <<_ACEOF
37281/* end confdefs.h. */
37282
37283/* Override any gcc2 internal prototype to avoid an error. */
37284#ifdef __cplusplus
37285extern "C"
37286#endif
37287/* We use char because int might match the return type of a gcc2
37288 builtin and then its argument prototype would still apply. */
37289char dld ();
37290int
37291main ()
37292{
37293dld ();
37294 ;
37295 return 0;
37296}
37297_ACEOF
37298rm -f conftest.$ac_objext conftest$ac_exeext
37299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37300 (eval $ac_link) 2>conftest.er1
a848cd7e 37301 ac_status=$?
ac1cb8d3
VS
37302 grep -v '^ *+' conftest.er1 >conftest.err
37303 rm -f conftest.er1
37304 cat conftest.err >&5
a848cd7e
SC
37305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); } &&
6ebeb4c7 37307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37309 (eval $ac_try) 2>&5
37310 ac_status=$?
37311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312 (exit $ac_status); }; } &&
37313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37315 (eval $ac_try) 2>&5
37316 ac_status=$?
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); }; }; then
37319 ac_cv_lib_shl_load_dld=yes
37320else
37321 echo "$as_me: failed program was:" >&5
37322sed 's/^/| /' conftest.$ac_ext >&5
37323
37324ac_cv_lib_shl_load_dld=no
37325fi
ac1cb8d3
VS
37326rm -f conftest.err conftest.$ac_objext \
37327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37328LIBS=$ac_check_lib_save_LIBS
37329fi
37330echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37331echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37332if test $ac_cv_lib_shl_load_dld = yes; then
37333
37334 HAVE_SHL_FUNCS=1
37335 DL_LINK=" -ldld$DL_LINK"
37336
37337fi
37338
37339
37340fi
37341done
37342
37343
37344fi
37345
37346
37347fi
37348done
37349
37350
37351 if test "$HAVE_DL_FUNCS" = 1; then
37352
37353for ac_func in dlerror
37354do
37355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37356echo "$as_me:$LINENO: checking for $ac_func" >&5
37357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37358if eval "test \"\${$as_ac_var+set}\" = set"; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37360else
37361 cat >conftest.$ac_ext <<_ACEOF
37362/* confdefs.h. */
37363_ACEOF
37364cat confdefs.h >>conftest.$ac_ext
37365cat >>conftest.$ac_ext <<_ACEOF
37366/* end confdefs.h. */
ac1cb8d3
VS
37367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37369#define $ac_func innocuous_$ac_func
37370
a848cd7e
SC
37371/* System header to define __stub macros and hopefully few prototypes,
37372 which can conflict with char $ac_func (); below.
37373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37375
a848cd7e
SC
37376#ifdef __STDC__
37377# include <limits.h>
37378#else
37379# include <assert.h>
37380#endif
ac1cb8d3
VS
37381
37382#undef $ac_func
37383
a848cd7e
SC
37384/* Override any gcc2 internal prototype to avoid an error. */
37385#ifdef __cplusplus
37386extern "C"
37387{
37388#endif
37389/* We use char because int might match the return type of a gcc2
37390 builtin and then its argument prototype would still apply. */
37391char $ac_func ();
37392/* The GNU C library defines this for functions which it implements
37393 to always fail with ENOSYS. Some functions are actually named
37394 something starting with __ and the normal name is an alias. */
37395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37396choke me
37397#else
37398char (*f) () = $ac_func;
37399#endif
37400#ifdef __cplusplus
37401}
37402#endif
37403
37404int
37405main ()
37406{
37407return f != $ac_func;
37408 ;
37409 return 0;
37410}
37411_ACEOF
37412rm -f conftest.$ac_objext conftest$ac_exeext
37413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37414 (eval $ac_link) 2>conftest.er1
a848cd7e 37415 ac_status=$?
ac1cb8d3
VS
37416 grep -v '^ *+' conftest.er1 >conftest.err
37417 rm -f conftest.er1
37418 cat conftest.err >&5
a848cd7e
SC
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); } &&
6ebeb4c7 37421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423 (eval $ac_try) 2>&5
37424 ac_status=$?
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); }; } &&
37427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37429 (eval $ac_try) 2>&5
37430 ac_status=$?
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); }; }; then
37433 eval "$as_ac_var=yes"
37434else
37435 echo "$as_me: failed program was:" >&5
37436sed 's/^/| /' conftest.$ac_ext >&5
37437
37438eval "$as_ac_var=no"
37439fi
ac1cb8d3
VS
37440rm -f conftest.err conftest.$ac_objext \
37441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37442fi
37443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37445if test `eval echo '${'$as_ac_var'}'` = yes; then
37446 cat >>confdefs.h <<_ACEOF
37447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37448_ACEOF
37449 cat >>confdefs.h <<\_ACEOF
37450#define HAVE_DLERROR 1
37451_ACEOF
37452
37453else
37454
37455 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37456echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37457if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37458 echo $ECHO_N "(cached) $ECHO_C" >&6
37459else
37460 ac_check_lib_save_LIBS=$LIBS
37461LIBS="-ldl $LIBS"
37462cat >conftest.$ac_ext <<_ACEOF
37463/* confdefs.h. */
37464_ACEOF
37465cat confdefs.h >>conftest.$ac_ext
37466cat >>conftest.$ac_ext <<_ACEOF
37467/* end confdefs.h. */
37468
37469/* Override any gcc2 internal prototype to avoid an error. */
37470#ifdef __cplusplus
37471extern "C"
37472#endif
37473/* We use char because int might match the return type of a gcc2
37474 builtin and then its argument prototype would still apply. */
37475char dlerror ();
37476int
37477main ()
37478{
37479dlerror ();
37480 ;
37481 return 0;
37482}
37483_ACEOF
37484rm -f conftest.$ac_objext conftest$ac_exeext
37485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37486 (eval $ac_link) 2>conftest.er1
a848cd7e 37487 ac_status=$?
ac1cb8d3
VS
37488 grep -v '^ *+' conftest.er1 >conftest.err
37489 rm -f conftest.er1
37490 cat conftest.err >&5
a848cd7e
SC
37491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492 (exit $ac_status); } &&
6ebeb4c7 37493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495 (eval $ac_try) 2>&5
37496 ac_status=$?
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); }; } &&
37499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 ac_cv_lib_dl_dlerror=yes
37506else
37507 echo "$as_me: failed program was:" >&5
37508sed 's/^/| /' conftest.$ac_ext >&5
37509
37510ac_cv_lib_dl_dlerror=no
37511fi
ac1cb8d3
VS
37512rm -f conftest.err conftest.$ac_objext \
37513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37514LIBS=$ac_check_lib_save_LIBS
37515fi
37516echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37517echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37518if test $ac_cv_lib_dl_dlerror = yes; then
37519 cat >>confdefs.h <<\_ACEOF
37520#define HAVE_DLERROR 1
37521_ACEOF
37522
37523fi
37524
37525
37526
37527fi
37528done
37529
37530 fi
37531 fi
37532
37533 if test "$HAVE_DL_FUNCS" = 0; then
37534 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37535 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37536 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37537echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37538 wxUSE_DYNAMIC_LOADER=no
37539 wxUSE_DYNLIB_CLASS=no
37540 else
37541 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37542echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37543 fi
37544 fi
37545 fi
37546 fi
37547fi
37548
37549if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
37550 cat >>confdefs.h <<\_ACEOF
37551#define wxUSE_DYNAMIC_LOADER 1
37552_ACEOF
37553
37554fi
37555if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37556 cat >>confdefs.h <<\_ACEOF
37557#define wxUSE_DYNLIB_CLASS 1
37558_ACEOF
37559
37560fi
37561
37562
37563
37564if test "$wxUSE_PLUGINS" = "yes" ; then
37565 if test "$wxUSE_SHARED" = "no" ; then
37566 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
37567echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
37568 wxUSE_PLUGINS=no
37569 fi
37570 if test "$wxUSE_MONOLITHIC" = "yes" ; then
37571 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
37572echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
37573 wxUSE_PLUGINS=no
37574 fi
37575 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
37576 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
37577echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
37578 wxUSE_PLUGINS=no
37579 fi
37580 if test "$wxUSE_PLUGINS" = "yes" ; then
37581 cat >>confdefs.h <<\_ACEOF
37582#define wxUSE_PLUGINS 1
37583_ACEOF
37584
37585 fi
37586fi
37587
37588
37589if test "$wxUSE_STL" = "yes"; then
37590 cat >>confdefs.h <<\_ACEOF
37591#define wxUSE_STL 1
37592_ACEOF
37593
37594fi
37595
37596if test "$wxUSE_APPLE_IEEE" = "yes"; then
37597 cat >>confdefs.h <<\_ACEOF
37598#define wxUSE_APPLE_IEEE 1
37599_ACEOF
37600
37601fi
37602
37603if test "$wxUSE_TIMER" = "yes"; then
37604 cat >>confdefs.h <<\_ACEOF
37605#define wxUSE_TIMER 1
37606_ACEOF
37607
37608fi
37609
9c112555 37610if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
37611 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
37612echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
37613if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 37614 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 37615else
d12aef51
VZ
37616
37617 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37618/* confdefs.h. */
37619_ACEOF
37620cat confdefs.h >>conftest.$ac_ext
37621cat >>conftest.$ac_ext <<_ACEOF
37622/* end confdefs.h. */
d12aef51
VZ
37623
37624 #include <sys/soundcard.h>
37625
37626int
37627main ()
37628{
37629
37630 ioctl(0, SNDCTL_DSP_SYNC, 0);
37631
37632 ;
37633 return 0;
37634}
a848cd7e 37635_ACEOF
d12aef51
VZ
37636rm -f conftest.$ac_objext conftest$ac_exeext
37637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37638 (eval $ac_link) 2>conftest.er1
a848cd7e 37639 ac_status=$?
ac1cb8d3
VS
37640 grep -v '^ *+' conftest.er1 >conftest.err
37641 rm -f conftest.er1
37642 cat conftest.err >&5
a848cd7e
SC
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); } &&
6ebeb4c7 37645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37648 ac_status=$?
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; } &&
d12aef51 37651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37654 ac_status=$?
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; }; then
d12aef51 37657 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37658else
37659 echo "$as_me: failed program was:" >&5
37660sed 's/^/| /' conftest.$ac_ext >&5
37661
a848cd7e 37662
d12aef51
VZ
37663 saveLibs="$LIBS"
37664 LIBS="$saveLibs -lossaudio"
37665 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37666/* confdefs.h. */
37667_ACEOF
37668cat confdefs.h >>conftest.$ac_ext
37669cat >>conftest.$ac_ext <<_ACEOF
37670/* end confdefs.h. */
d12aef51
VZ
37671
37672 #include <sys/soundcard.h>
37673
37674int
37675main ()
37676{
37677
37678 ioctl(0, SNDCTL_DSP_SYNC, 0);
37679
37680 ;
37681 return 0;
37682}
a848cd7e 37683_ACEOF
d12aef51
VZ
37684rm -f conftest.$ac_objext conftest$ac_exeext
37685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37686 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
37687 ac_status=$?
37688 grep -v '^ *+' conftest.er1 >conftest.err
37689 rm -f conftest.er1
37690 cat conftest.err >&5
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
37692 (exit $ac_status); } &&
37693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37695 (eval $ac_try) 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; } &&
37699 { ac_try='test -s conftest$ac_exeext'
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37702 ac_status=$?
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; }; then
37705 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37706else
37707 echo "$as_me: failed program was:" >&5
37708sed 's/^/| /' conftest.$ac_ext >&5
37709
a848cd7e 37710
d12aef51
VZ
37711 LIBS="$saveLibs"
37712 ac_cv_header_sys_soundcard=no
37713
37714
a848cd7e 37715fi
d12aef51
VZ
37716rm -f conftest.err conftest.$ac_objext \
37717 conftest$ac_exeext conftest.$ac_ext
37718
a848cd7e
SC
37719
37720fi
d12aef51
VZ
37721rm -f conftest.err conftest.$ac_objext \
37722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37723
37724fi
d12aef51
VZ
37725echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
37726echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 37727
d12aef51
VZ
37728 if test "$ac_cv_header_sys_soundcard" = "yes"; then
37729 cat >>confdefs.h <<\_ACEOF
37730#define HAVE_SYS_SOUNDCARD_H 1
37731_ACEOF
a848cd7e 37732
d12aef51
VZ
37733 else
37734 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
37735 fi
9c112555
MW
37736fi
37737WITH_PLUGIN_SDL=0
37738if test "$wxUSE_SOUND" = "yes"; then
37739 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37740 if test "$wxUSE_LIBSDL" != "no"; then
37741
37742# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37743if test "${with_sdl_prefix+set}" = set; then
37744 withval="$with_sdl_prefix"
37745 sdl_prefix="$withval"
37746else
37747 sdl_prefix=""
37748fi;
37749
37750# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37751if test "${with_sdl_exec_prefix+set}" = set; then
37752 withval="$with_sdl_exec_prefix"
37753 sdl_exec_prefix="$withval"
37754else
37755 sdl_exec_prefix=""
37756fi;
37757# Check whether --enable-sdltest or --disable-sdltest was given.
37758if test "${enable_sdltest+set}" = set; then
37759 enableval="$enable_sdltest"
37760
37761else
37762 enable_sdltest=yes
37763fi;
37764
37765 if test x$sdl_exec_prefix != x ; then
37766 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37767 if test x${SDL_CONFIG+set} != xset ; then
37768 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37769 fi
37770 fi
37771 if test x$sdl_prefix != x ; then
37772 sdl_args="$sdl_args --prefix=$sdl_prefix"
37773 if test x${SDL_CONFIG+set} != xset ; then
37774 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37775 fi
37776 fi
37777
37778
37779 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37780 # Extract the first word of "sdl-config", so it can be a program name with args.
37781set dummy sdl-config; ac_word=$2
37782echo "$as_me:$LINENO: checking for $ac_word" >&5
37783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37784if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37785 echo $ECHO_N "(cached) $ECHO_C" >&6
37786else
37787 case $SDL_CONFIG in
37788 [\\/]* | ?:[\\/]*)
37789 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37790 ;;
37791 *)
37792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37793for as_dir in $PATH
37794do
37795 IFS=$as_save_IFS
37796 test -z "$as_dir" && as_dir=.
37797 for ac_exec_ext in '' $ac_executable_extensions; do
37798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37799 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37801 break 2
37802 fi
37803done
37804done
37805
37806 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37807 ;;
37808esac
37809fi
37810SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37811
37812if test -n "$SDL_CONFIG"; then
37813 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37814echo "${ECHO_T}$SDL_CONFIG" >&6
37815else
37816 echo "$as_me:$LINENO: result: no" >&5
37817echo "${ECHO_T}no" >&6
37818fi
37819
37820 min_sdl_version=1.2.0
37821 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37822echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37823 no_sdl=""
37824 if test "$SDL_CONFIG" = "no" ; then
37825 no_sdl=yes
37826 else
37827 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37828 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37829
37830 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37832 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37834 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37836 if test "x$enable_sdltest" = "xyes" ; then
37837 ac_save_CFLAGS="$CFLAGS"
94acd38e 37838 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37839 ac_save_LIBS="$LIBS"
37840 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37841 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37842 LIBS="$LIBS $SDL_LIBS"
37843 rm -f conf.sdltest
37844 if test "$cross_compiling" = yes; then
37845 echo $ac_n "cross compiling; assumed OK... $ac_c"
37846else
37847 cat >conftest.$ac_ext <<_ACEOF
37848/* confdefs.h. */
37849_ACEOF
37850cat confdefs.h >>conftest.$ac_ext
37851cat >>conftest.$ac_ext <<_ACEOF
37852/* end confdefs.h. */
37853
37854#include <stdio.h>
37855#include <stdlib.h>
37856#include <string.h>
37857#include "SDL.h"
37858
37859char*
37860my_strdup (char *str)
37861{
37862 char *new_str;
37863
37864 if (str)
37865 {
37866 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37867 strcpy (new_str, str);
37868 }
37869 else
37870 new_str = NULL;
37871
37872 return new_str;
37873}
37874
37875int main (int argc, char *argv[])
37876{
37877 int major, minor, micro;
37878 char *tmp_version;
37879
37880 /* This hangs on some systems (?)
37881 system ("touch conf.sdltest");
37882 */
37883 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37884
37885 /* HP/UX 9 (%@#!) writes to sscanf strings */
37886 tmp_version = my_strdup("$min_sdl_version");
37887 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37888 printf("%s, bad version string\n", "$min_sdl_version");
37889 exit(1);
37890 }
37891
37892 if (($sdl_major_version > major) ||
37893 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37894 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37895 {
37896 return 0;
37897 }
37898 else
37899 {
37900 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37901 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37902 printf("*** best to upgrade to the required version.\n");
37903 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37904 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37905 printf("*** config.cache before re-running configure\n");
37906 return 1;
37907 }
37908}
37909
37910
37911_ACEOF
37912rm -f conftest$ac_exeext
37913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37914 (eval $ac_link) 2>&5
37915 ac_status=$?
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37920 ac_status=$?
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; }; then
37923 :
37924else
37925 echo "$as_me: program exited with status $ac_status" >&5
37926echo "$as_me: failed program was:" >&5
37927sed 's/^/| /' conftest.$ac_ext >&5
37928
37929( exit $ac_status )
37930no_sdl=yes
37931fi
ac1cb8d3 37932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37933fi
37934 CFLAGS="$ac_save_CFLAGS"
94acd38e 37935 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37936 LIBS="$ac_save_LIBS"
37937 fi
37938 fi
37939 if test "x$no_sdl" = x ; then
37940 echo "$as_me:$LINENO: result: yes" >&5
37941echo "${ECHO_T}yes" >&6
37942
37943 EXTRALIBS_SDL="$SDL_LIBS"
37944 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37945 cat >>confdefs.h <<\_ACEOF
37946#define wxUSE_LIBSDL 1
37947_ACEOF
37948
37949
37950 else
37951 echo "$as_me:$LINENO: result: no" >&5
37952echo "${ECHO_T}no" >&6
37953 if test "$SDL_CONFIG" = "no" ; then
37954 echo "*** The sdl-config script installed by SDL could not be found"
37955 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37956 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37957 echo "*** full path to sdl-config."
37958 else
37959 if test -f conf.sdltest ; then
37960 :
37961 else
37962 echo "*** Could not run SDL test program, checking why..."
37963 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37964 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37965 LIBS="$LIBS $SDL_LIBS"
37966 cat >conftest.$ac_ext <<_ACEOF
37967/* confdefs.h. */
37968_ACEOF
37969cat confdefs.h >>conftest.$ac_ext
37970cat >>conftest.$ac_ext <<_ACEOF
37971/* end confdefs.h. */
37972
37973#include <stdio.h>
37974#include "SDL.h"
37975
37976int main(int argc, char *argv[])
37977{ return 0; }
37978#undef main
37979#define main K_and_R_C_main
37980
37981int
37982main ()
37983{
37984 return 0;
37985 ;
37986 return 0;
37987}
37988_ACEOF
37989rm -f conftest.$ac_objext conftest$ac_exeext
37990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37991 (eval $ac_link) 2>conftest.er1
a848cd7e 37992 ac_status=$?
ac1cb8d3
VS
37993 grep -v '^ *+' conftest.er1 >conftest.err
37994 rm -f conftest.er1
37995 cat conftest.err >&5
a848cd7e
SC
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
6ebeb4c7 37998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38001 ac_status=$?
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; } &&
38004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38007 ac_status=$?
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; }; then
38010 echo "*** The test program compiled, but did not run. This usually means"
38011 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38012 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38013 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38014 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38015 echo "*** is required on your system"
38016 echo "***"
38017 echo "*** If you have an old version installed, it is best to remove it, although"
38018 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38019else
38020 echo "$as_me: failed program was:" >&5
38021sed 's/^/| /' conftest.$ac_ext >&5
38022
38023 echo "*** The test program failed to compile or link. See the file config.log for the"
38024 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38025 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38026 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38027fi
ac1cb8d3
VS
38028rm -f conftest.err conftest.$ac_objext \
38029 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38030 CFLAGS="$ac_save_CFLAGS"
94acd38e 38031 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38032 LIBS="$ac_save_LIBS"
38033 fi
38034 fi
38035 SDL_CFLAGS=""
38036 SDL_LIBS=""
38037 wxUSE_LIBSDL="no"
38038 fi
38039
38040
38041 rm -f conf.sdltest
38042
38043 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38044 WITH_PLUGIN_SDL=1
38045 fi
38046 fi
38047 fi
38048
38049 cat >>confdefs.h <<\_ACEOF
38050#define wxUSE_SOUND 1
38051_ACEOF
38052
38053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38054fi
38055
d1c38808
VZ
38056if test "$WXGTK20" = 1; then
38057 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38058 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38059
38060
38061 succeeded=no
38062
38063 if test -z "$PKG_CONFIG"; then
38064 # Extract the first word of "pkg-config", so it can be a program name with args.
38065set dummy pkg-config; ac_word=$2
38066echo "$as_me:$LINENO: checking for $ac_word" >&5
38067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38068if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38070else
38071 case $PKG_CONFIG in
38072 [\\/]* | ?:[\\/]*)
38073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38074 ;;
38075 *)
38076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38077for as_dir in $PATH
38078do
38079 IFS=$as_save_IFS
38080 test -z "$as_dir" && as_dir=.
38081 for ac_exec_ext in '' $ac_executable_extensions; do
38082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38085 break 2
38086 fi
38087done
38088done
38089
38090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38091 ;;
38092esac
38093fi
38094PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38095
38096if test -n "$PKG_CONFIG"; then
38097 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38098echo "${ECHO_T}$PKG_CONFIG" >&6
38099else
38100 echo "$as_me:$LINENO: result: no" >&5
38101echo "${ECHO_T}no" >&6
38102fi
38103
38104 fi
38105
38106 if test "$PKG_CONFIG" = "no" ; then
38107 echo "*** The pkg-config script could not be found. Make sure it is"
38108 echo "*** in your path, or set the PKG_CONFIG environment variable"
38109 echo "*** to the full path to pkg-config."
38110 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38111 else
38112 PKG_CONFIG_MIN_VERSION=0.9.0
38113 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38114 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38115echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38116
ffa762ff 38117 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38118 echo "$as_me:$LINENO: result: yes" >&5
38119echo "${ECHO_T}yes" >&6
38120 succeeded=yes
38121
38122 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38123echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38124 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38125 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38126echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38127
38128 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38129echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38130 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38131 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38132echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38133 else
38134 LIBGNOMEPRINTUI_CFLAGS=""
38135 LIBGNOMEPRINTUI_LIBS=""
38136 ## If we have a custom action on failure, don't print errors, but
38137 ## do set a variable so people can do so.
ffa762ff 38138 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38139
38140 fi
38141
38142
38143
38144 else
38145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38147 fi
38148 fi
38149
38150 if test $succeeded = yes; then
38151
d1c38808
VZ
38152 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38153 cat >>confdefs.h <<\_ACEOF
38154#define wxUSE_LIBGNOMEPRINT 1
38155_ACEOF
38156
38157
38158 else
38159
38160 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38161echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38162 wxUSE_LIBGNOMEPRINT="no"
38163
38164
38165 fi
38166
38167 fi
38168 fi
38169fi
38170
38171
a848cd7e
SC
38172if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38173 cat >>confdefs.h <<\_ACEOF
38174#define wxUSE_CMDLINE_PARSER 1
38175_ACEOF
38176
38177fi
38178
38179if test "$wxUSE_STOPWATCH" = "yes"; then
38180 cat >>confdefs.h <<\_ACEOF
38181#define wxUSE_STOPWATCH 1
38182_ACEOF
38183
38184fi
38185
38186if test "$wxUSE_DATETIME" = "yes"; then
38187 cat >>confdefs.h <<\_ACEOF
38188#define wxUSE_DATETIME 1
38189_ACEOF
38190
38191fi
38192
38193if test "$wxUSE_FILE" = "yes"; then
38194 cat >>confdefs.h <<\_ACEOF
38195#define wxUSE_FILE 1
38196_ACEOF
38197
38198fi
38199
38200if test "$wxUSE_FFILE" = "yes"; then
38201 cat >>confdefs.h <<\_ACEOF
38202#define wxUSE_FFILE 1
38203_ACEOF
38204
38205fi
38206
38207if test "$wxUSE_FILESYSTEM" = "yes"; then
38208 cat >>confdefs.h <<\_ACEOF
38209#define wxUSE_FILESYSTEM 1
38210_ACEOF
38211
38212fi
38213
38214if test "$wxUSE_FS_ZIP" = "yes"; then
38215 cat >>confdefs.h <<\_ACEOF
38216#define wxUSE_FS_ZIP 1
38217_ACEOF
38218
38219fi
38220
9e8e867f 38221if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38222 cat >>confdefs.h <<\_ACEOF
9e8e867f 38223#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38224_ACEOF
38225
38226fi
38227
38228if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38229 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38230 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38231echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38232 elif test "$wxUSE_ZLIB" = "no"; then
38233 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38234echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38235 else
38236 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38237#define wxUSE_ZIPSTREAM 1
38238_ACEOF
38239
81f90336 38240 fi
a848cd7e
SC
38241fi
38242
a848cd7e 38243if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38244 if test "$USE_UNIX" != 1; then
38245 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38246echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38247 wxUSE_ON_FATAL_EXCEPTION=no
38248 else
38249 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38250#define wxUSE_ON_FATAL_EXCEPTION 1
38251_ACEOF
38252
18228ab4 38253 fi
a848cd7e
SC
38254fi
38255
eaff0f0d
VZ
38256if test "$wxUSE_STACKWALKER" = "yes"; then
38257 cat >>confdefs.h <<\_ACEOF
38258#define wxUSE_STACKWALKER 1
38259_ACEOF
38260
38261fi
38262
36b6448c 38263if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38264 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38265 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38266echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38267 wxUSE_DEBUGREPORT=no
38268 else
38269 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38270#define wxUSE_DEBUGREPORT 1
38271_ACEOF
38272
21dfc162
MW
38273 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38275 fi
dfe0c803 38276 fi
36b6448c
VZ
38277fi
38278
a848cd7e
SC
38279if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38280 cat >>confdefs.h <<\_ACEOF
38281#define wxUSE_SNGLINST_CHECKER 1
38282_ACEOF
38283
38284fi
38285
38286if test "$wxUSE_BUSYINFO" = "yes"; then
38287 cat >>confdefs.h <<\_ACEOF
38288#define wxUSE_BUSYINFO 1
38289_ACEOF
38290
38291fi
38292
38293if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38294 cat >>confdefs.h <<\_ACEOF
38295#define wxUSE_STD_IOSTREAM 1
38296_ACEOF
38297
38298fi
38299
59746b65
MW
38300if test "$wxUSE_STD_STRING" = "yes"; then
38301 cat >>confdefs.h <<\_ACEOF
38302#define wxUSE_STD_STRING 1
38303_ACEOF
38304
38305fi
38306
07158944
VZ
38307if test "$wxUSE_STDPATHS" = "yes"; then
38308 cat >>confdefs.h <<\_ACEOF
38309#define wxUSE_STDPATHS 1
38310_ACEOF
38311
38312fi
38313
a848cd7e
SC
38314if test "$wxUSE_TEXTBUFFER" = "yes"; then
38315 cat >>confdefs.h <<\_ACEOF
38316#define wxUSE_TEXTBUFFER 1
38317_ACEOF
38318
38319fi
38320
38321if test "$wxUSE_TEXTFILE" = "yes"; then
38322 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38323 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38324echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38325 else
38326 cat >>confdefs.h <<\_ACEOF
38327#define wxUSE_TEXTFILE 1
38328_ACEOF
38329
38330 fi
38331fi
38332
38333if test "$wxUSE_CONFIG" = "yes" ; then
38334 if test "$wxUSE_TEXTFILE" != "yes"; then
38335 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38336echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38337 else
38338 cat >>confdefs.h <<\_ACEOF
38339#define wxUSE_CONFIG 1
89be85c2
VS
38340_ACEOF
38341
38342 cat >>confdefs.h <<\_ACEOF
38343#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38344_ACEOF
38345
38346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38347 fi
38348fi
38349
38350if test "$wxUSE_INTL" = "yes" ; then
38351 if test "$wxUSE_FILE" != "yes"; then
38352 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38353echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38354 else
38355 cat >>confdefs.h <<\_ACEOF
38356#define wxUSE_INTL 1
38357_ACEOF
38358
38359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38360 GUIDIST="$GUIDIST INTL_DIST"
38361 fi
38362fi
38363
38364if test "$wxUSE_LOG" = "yes"; then
38365 cat >>confdefs.h <<\_ACEOF
38366#define wxUSE_LOG 1
38367_ACEOF
38368
38369
38370 if test "$wxUSE_LOGGUI" = "yes"; then
38371 cat >>confdefs.h <<\_ACEOF
38372#define wxUSE_LOGGUI 1
38373_ACEOF
38374
38375 fi
38376
38377 if test "$wxUSE_LOGWINDOW" = "yes"; then
38378 cat >>confdefs.h <<\_ACEOF
38379#define wxUSE_LOGWINDOW 1
38380_ACEOF
38381
38382 fi
38383
38384 if test "$wxUSE_LOGDIALOG" = "yes"; then
38385 cat >>confdefs.h <<\_ACEOF
38386#define wxUSE_LOG_DIALOG 1
38387_ACEOF
38388
38389 fi
0b78747f
MW
38390
38391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38392fi
38393
38394if test "$wxUSE_LONGLONG" = "yes"; then
38395 cat >>confdefs.h <<\_ACEOF
38396#define wxUSE_LONGLONG 1
38397_ACEOF
38398
38399fi
38400
38401if test "$wxUSE_GEOMETRY" = "yes"; then
38402 cat >>confdefs.h <<\_ACEOF
38403#define wxUSE_GEOMETRY 1
38404_ACEOF
38405
38406fi
38407
a848cd7e
SC
38408if test "$wxUSE_STREAMS" = "yes" ; then
38409 cat >>confdefs.h <<\_ACEOF
38410#define wxUSE_STREAMS 1
38411_ACEOF
38412
38413fi
38414
38415
38416if test "$wxUSE_DATETIME" = "yes"; then
38417
38418for ac_func in strptime
38419do
38420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38421echo "$as_me:$LINENO: checking for $ac_func" >&5
38422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38423if eval "test \"\${$as_ac_var+set}\" = set"; then
38424 echo $ECHO_N "(cached) $ECHO_C" >&6
38425else
38426 cat >conftest.$ac_ext <<_ACEOF
38427/* confdefs.h. */
38428_ACEOF
38429cat confdefs.h >>conftest.$ac_ext
38430cat >>conftest.$ac_ext <<_ACEOF
38431/* end confdefs.h. */
ac1cb8d3
VS
38432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38434#define $ac_func innocuous_$ac_func
38435
a848cd7e
SC
38436/* System header to define __stub macros and hopefully few prototypes,
38437 which can conflict with char $ac_func (); below.
38438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38440
a848cd7e
SC
38441#ifdef __STDC__
38442# include <limits.h>
38443#else
38444# include <assert.h>
38445#endif
ac1cb8d3
VS
38446
38447#undef $ac_func
38448
a848cd7e
SC
38449/* Override any gcc2 internal prototype to avoid an error. */
38450#ifdef __cplusplus
38451extern "C"
38452{
38453#endif
38454/* We use char because int might match the return type of a gcc2
38455 builtin and then its argument prototype would still apply. */
38456char $ac_func ();
38457/* The GNU C library defines this for functions which it implements
38458 to always fail with ENOSYS. Some functions are actually named
38459 something starting with __ and the normal name is an alias. */
38460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38461choke me
38462#else
38463char (*f) () = $ac_func;
38464#endif
38465#ifdef __cplusplus
38466}
38467#endif
38468
38469int
38470main ()
38471{
38472return f != $ac_func;
38473 ;
38474 return 0;
38475}
38476_ACEOF
38477rm -f conftest.$ac_objext conftest$ac_exeext
38478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38479 (eval $ac_link) 2>conftest.er1
a848cd7e 38480 ac_status=$?
ac1cb8d3
VS
38481 grep -v '^ *+' conftest.er1 >conftest.err
38482 rm -f conftest.er1
38483 cat conftest.err >&5
a848cd7e
SC
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); } &&
6ebeb4c7 38486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488 (eval $ac_try) 2>&5
38489 ac_status=$?
38490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491 (exit $ac_status); }; } &&
38492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38494 (eval $ac_try) 2>&5
38495 ac_status=$?
38496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497 (exit $ac_status); }; }; then
38498 eval "$as_ac_var=yes"
38499else
38500 echo "$as_me: failed program was:" >&5
38501sed 's/^/| /' conftest.$ac_ext >&5
38502
38503eval "$as_ac_var=no"
38504fi
ac1cb8d3
VS
38505rm -f conftest.err conftest.$ac_objext \
38506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38507fi
38508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38510if test `eval echo '${'$as_ac_var'}'` = yes; then
38511 cat >>confdefs.h <<_ACEOF
38512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38513_ACEOF
38514
38515fi
38516done
38517
38518
38519 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38520echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38521if test "${wx_cv_var_timezone+set}" = set; then
38522 echo $ECHO_N "(cached) $ECHO_C" >&6
38523else
38524
38525 cat >conftest.$ac_ext <<_ACEOF
38526/* confdefs.h. */
38527_ACEOF
38528cat confdefs.h >>conftest.$ac_ext
38529cat >>conftest.$ac_ext <<_ACEOF
38530/* end confdefs.h. */
38531
38532 #include <time.h>
38533
38534int
38535main ()
38536{
38537
38538 int tz;
38539 tz = timezone;
38540
38541 ;
38542 return 0;
38543}
38544_ACEOF
38545rm -f conftest.$ac_objext
38546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38547 (eval $ac_compile) 2>conftest.er1
a848cd7e 38548 ac_status=$?
ac1cb8d3
VS
38549 grep -v '^ *+' conftest.er1 >conftest.err
38550 rm -f conftest.er1
38551 cat conftest.err >&5
a848cd7e
SC
38552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553 (exit $ac_status); } &&
6ebeb4c7 38554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38557 ac_status=$?
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; } &&
38560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562 (eval $ac_try) 2>&5
38563 ac_status=$?
38564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); }; }; then
38566
38567 wx_cv_var_timezone=timezone
38568
38569else
38570 echo "$as_me: failed program was:" >&5
38571sed 's/^/| /' conftest.$ac_ext >&5
38572
38573
38574 cat >conftest.$ac_ext <<_ACEOF
38575/* confdefs.h. */
38576_ACEOF
38577cat confdefs.h >>conftest.$ac_ext
38578cat >>conftest.$ac_ext <<_ACEOF
38579/* end confdefs.h. */
38580
38581 #include <time.h>
38582
38583int
38584main ()
38585{
38586
38587 int tz;
38588 tz = _timezone;
38589
38590 ;
38591 return 0;
38592}
38593_ACEOF
38594rm -f conftest.$ac_objext
38595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38596 (eval $ac_compile) 2>conftest.er1
a848cd7e 38597 ac_status=$?
ac1cb8d3
VS
38598 grep -v '^ *+' conftest.er1 >conftest.err
38599 rm -f conftest.er1
38600 cat conftest.err >&5
a848cd7e
SC
38601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); } &&
6ebeb4c7 38603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605 (eval $ac_try) 2>&5
38606 ac_status=$?
38607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 (exit $ac_status); }; } &&
38609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38611 (eval $ac_try) 2>&5
38612 ac_status=$?
38613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38614 (exit $ac_status); }; }; then
38615
38616 wx_cv_var_timezone=_timezone
38617
38618else
38619 echo "$as_me: failed program was:" >&5
38620sed 's/^/| /' conftest.$ac_ext >&5
38621
38622
38623 cat >conftest.$ac_ext <<_ACEOF
38624/* confdefs.h. */
38625_ACEOF
38626cat confdefs.h >>conftest.$ac_ext
38627cat >>conftest.$ac_ext <<_ACEOF
38628/* end confdefs.h. */
38629
38630 #include <time.h>
38631
38632int
38633main ()
38634{
38635
38636 int tz;
38637 tz = __timezone;
38638
38639 ;
38640 return 0;
38641}
38642_ACEOF
38643rm -f conftest.$ac_objext
38644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38645 (eval $ac_compile) 2>conftest.er1
a848cd7e 38646 ac_status=$?
ac1cb8d3
VS
38647 grep -v '^ *+' conftest.er1 >conftest.err
38648 rm -f conftest.er1
38649 cat conftest.err >&5
a848cd7e
SC
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); } &&
6ebeb4c7 38652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654 (eval $ac_try) 2>&5
38655 ac_status=$?
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); }; } &&
38658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; }; then
38664
38665 wx_cv_var_timezone=__timezone
38666
38667else
38668 echo "$as_me: failed program was:" >&5
38669sed 's/^/| /' conftest.$ac_ext >&5
38670
38671
38672 if test "$USE_DOS" = 0 ; then
38673 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38674echo "$as_me: WARNING: no timezone variable" >&2;}
38675 fi
38676
38677
38678fi
ac1cb8d3 38679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38680
38681
38682fi
ac1cb8d3 38683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38684
38685
38686fi
ac1cb8d3 38687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38688
38689
38690fi
38691echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38692echo "${ECHO_T}$wx_cv_var_timezone" >&6
38693
38694 if test "x$wx_cv_var_timezone" != x ; then
38695 cat >>confdefs.h <<_ACEOF
38696#define WX_TIMEZONE $wx_cv_var_timezone
38697_ACEOF
38698
38699 fi
38700
38701
38702for ac_func in localtime
38703do
38704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38705echo "$as_me:$LINENO: checking for $ac_func" >&5
38706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38707if eval "test \"\${$as_ac_var+set}\" = set"; then
38708 echo $ECHO_N "(cached) $ECHO_C" >&6
38709else
38710 cat >conftest.$ac_ext <<_ACEOF
38711/* confdefs.h. */
38712_ACEOF
38713cat confdefs.h >>conftest.$ac_ext
38714cat >>conftest.$ac_ext <<_ACEOF
38715/* end confdefs.h. */
ac1cb8d3
VS
38716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38718#define $ac_func innocuous_$ac_func
38719
a848cd7e
SC
38720/* System header to define __stub macros and hopefully few prototypes,
38721 which can conflict with char $ac_func (); below.
38722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38724
a848cd7e
SC
38725#ifdef __STDC__
38726# include <limits.h>
38727#else
38728# include <assert.h>
38729#endif
ac1cb8d3
VS
38730
38731#undef $ac_func
38732
a848cd7e
SC
38733/* Override any gcc2 internal prototype to avoid an error. */
38734#ifdef __cplusplus
38735extern "C"
38736{
38737#endif
38738/* We use char because int might match the return type of a gcc2
38739 builtin and then its argument prototype would still apply. */
38740char $ac_func ();
38741/* The GNU C library defines this for functions which it implements
38742 to always fail with ENOSYS. Some functions are actually named
38743 something starting with __ and the normal name is an alias. */
38744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38745choke me
38746#else
38747char (*f) () = $ac_func;
38748#endif
38749#ifdef __cplusplus
38750}
38751#endif
38752
38753int
38754main ()
38755{
38756return f != $ac_func;
38757 ;
38758 return 0;
38759}
38760_ACEOF
38761rm -f conftest.$ac_objext conftest$ac_exeext
38762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38763 (eval $ac_link) 2>conftest.er1
a848cd7e 38764 ac_status=$?
ac1cb8d3
VS
38765 grep -v '^ *+' conftest.er1 >conftest.err
38766 rm -f conftest.er1
38767 cat conftest.err >&5
a848cd7e
SC
38768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769 (exit $ac_status); } &&
6ebeb4c7 38770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772 (eval $ac_try) 2>&5
38773 ac_status=$?
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); }; } &&
38776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38779 ac_status=$?
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; }; then
38782 eval "$as_ac_var=yes"
38783else
38784 echo "$as_me: failed program was:" >&5
38785sed 's/^/| /' conftest.$ac_ext >&5
38786
38787eval "$as_ac_var=no"
38788fi
ac1cb8d3
VS
38789rm -f conftest.err conftest.$ac_objext \
38790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38791fi
38792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38794if test `eval echo '${'$as_ac_var'}'` = yes; then
38795 cat >>confdefs.h <<_ACEOF
38796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38797_ACEOF
38798
38799fi
38800done
38801
38802
38803 if test "$ac_cv_func_localtime" = "yes"; then
38804 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38805echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38806if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38807 echo $ECHO_N "(cached) $ECHO_C" >&6
38808else
38809
38810 cat >conftest.$ac_ext <<_ACEOF
38811/* confdefs.h. */
38812_ACEOF
38813cat confdefs.h >>conftest.$ac_ext
38814cat >>conftest.$ac_ext <<_ACEOF
38815/* end confdefs.h. */
38816
38817 #include <time.h>
38818
38819int
38820main ()
38821{
38822
38823 struct tm tm;
38824 tm.tm_gmtoff++;
38825
38826 ;
38827 return 0;
38828}
38829_ACEOF
38830rm -f conftest.$ac_objext
38831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38832 (eval $ac_compile) 2>conftest.er1
a848cd7e 38833 ac_status=$?
ac1cb8d3
VS
38834 grep -v '^ *+' conftest.er1 >conftest.err
38835 rm -f conftest.er1
38836 cat conftest.err >&5
a848cd7e
SC
38837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838 (exit $ac_status); } &&
6ebeb4c7 38839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38841 (eval $ac_try) 2>&5
38842 ac_status=$?
38843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38844 (exit $ac_status); }; } &&
38845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38847 (eval $ac_try) 2>&5
38848 ac_status=$?
38849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38850 (exit $ac_status); }; }; then
38851
38852 wx_cv_struct_tm_has_gmtoff=yes
38853
38854else
38855 echo "$as_me: failed program was:" >&5
38856sed 's/^/| /' conftest.$ac_ext >&5
38857
38858wx_cv_struct_tm_has_gmtoff=no
38859
38860fi
ac1cb8d3 38861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38862
38863fi
38864echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38865echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38866 fi
38867
38868 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38869 cat >>confdefs.h <<\_ACEOF
38870#define WX_GMTOFF_IN_TM 1
38871_ACEOF
38872
38873 fi
38874
38875
38876
38877for ac_func in gettimeofday ftime
38878do
38879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38880echo "$as_me:$LINENO: checking for $ac_func" >&5
38881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38882if eval "test \"\${$as_ac_var+set}\" = set"; then
38883 echo $ECHO_N "(cached) $ECHO_C" >&6
38884else
38885 cat >conftest.$ac_ext <<_ACEOF
38886/* confdefs.h. */
38887_ACEOF
38888cat confdefs.h >>conftest.$ac_ext
38889cat >>conftest.$ac_ext <<_ACEOF
38890/* end confdefs.h. */
ac1cb8d3
VS
38891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38893#define $ac_func innocuous_$ac_func
38894
a848cd7e
SC
38895/* System header to define __stub macros and hopefully few prototypes,
38896 which can conflict with char $ac_func (); below.
38897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38898 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38899
a848cd7e
SC
38900#ifdef __STDC__
38901# include <limits.h>
38902#else
38903# include <assert.h>
38904#endif
ac1cb8d3
VS
38905
38906#undef $ac_func
38907
a848cd7e
SC
38908/* Override any gcc2 internal prototype to avoid an error. */
38909#ifdef __cplusplus
38910extern "C"
38911{
38912#endif
38913/* We use char because int might match the return type of a gcc2
38914 builtin and then its argument prototype would still apply. */
38915char $ac_func ();
38916/* The GNU C library defines this for functions which it implements
38917 to always fail with ENOSYS. Some functions are actually named
38918 something starting with __ and the normal name is an alias. */
38919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38920choke me
38921#else
38922char (*f) () = $ac_func;
38923#endif
38924#ifdef __cplusplus
38925}
38926#endif
38927
38928int
38929main ()
38930{
38931return f != $ac_func;
38932 ;
38933 return 0;
38934}
38935_ACEOF
38936rm -f conftest.$ac_objext conftest$ac_exeext
38937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38938 (eval $ac_link) 2>conftest.er1
a848cd7e 38939 ac_status=$?
ac1cb8d3
VS
38940 grep -v '^ *+' conftest.er1 >conftest.err
38941 rm -f conftest.er1
38942 cat conftest.err >&5
a848cd7e
SC
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); } &&
6ebeb4c7 38945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947 (eval $ac_try) 2>&5
38948 ac_status=$?
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); }; } &&
38951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38953 (eval $ac_try) 2>&5
38954 ac_status=$?
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); }; }; then
38957 eval "$as_ac_var=yes"
38958else
38959 echo "$as_me: failed program was:" >&5
38960sed 's/^/| /' conftest.$ac_ext >&5
38961
38962eval "$as_ac_var=no"
38963fi
ac1cb8d3
VS
38964rm -f conftest.err conftest.$ac_objext \
38965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38966fi
38967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38969if test `eval echo '${'$as_ac_var'}'` = yes; then
38970 cat >>confdefs.h <<_ACEOF
38971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38972_ACEOF
38973 break
38974fi
38975done
38976
38977
38978 if test "$ac_cv_func_gettimeofday" = "yes"; then
38979 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38980echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38981if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38982 echo $ECHO_N "(cached) $ECHO_C" >&6
38983else
38984
38985
38986
38987 ac_ext=cc
38988ac_cpp='$CXXCPP $CPPFLAGS'
38989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38992
38993
38994 cat >conftest.$ac_ext <<_ACEOF
38995/* confdefs.h. */
38996_ACEOF
38997cat confdefs.h >>conftest.$ac_ext
38998cat >>conftest.$ac_ext <<_ACEOF
38999/* end confdefs.h. */
39000
39001 #include <sys/time.h>
39002 #include <unistd.h>
39003
39004int
39005main ()
39006{
39007
39008 struct timeval tv;
39009 gettimeofday(&tv, NULL);
39010
39011 ;
39012 return 0;
39013}
39014_ACEOF
39015rm -f conftest.$ac_objext
39016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39017 (eval $ac_compile) 2>conftest.er1
a848cd7e 39018 ac_status=$?
ac1cb8d3
VS
39019 grep -v '^ *+' conftest.er1 >conftest.err
39020 rm -f conftest.er1
39021 cat conftest.err >&5
a848cd7e
SC
39022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023 (exit $ac_status); } &&
6ebeb4c7 39024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39026 (eval $ac_try) 2>&5
39027 ac_status=$?
39028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39029 (exit $ac_status); }; } &&
39030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39032 (eval $ac_try) 2>&5
39033 ac_status=$?
39034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035 (exit $ac_status); }; }; then
39036 wx_cv_func_gettimeofday_has_2_args=yes
39037else
39038 echo "$as_me: failed program was:" >&5
39039sed 's/^/| /' conftest.$ac_ext >&5
39040
39041cat >conftest.$ac_ext <<_ACEOF
39042/* confdefs.h. */
39043_ACEOF
39044cat confdefs.h >>conftest.$ac_ext
39045cat >>conftest.$ac_ext <<_ACEOF
39046/* end confdefs.h. */
39047
39048 #include <sys/time.h>
39049 #include <unistd.h>
39050
39051int
39052main ()
39053{
39054
39055 struct timeval tv;
39056 gettimeofday(&tv);
39057
39058 ;
39059 return 0;
39060}
39061_ACEOF
39062rm -f conftest.$ac_objext
39063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39064 (eval $ac_compile) 2>conftest.er1
a848cd7e 39065 ac_status=$?
ac1cb8d3
VS
39066 grep -v '^ *+' conftest.er1 >conftest.err
39067 rm -f conftest.er1
39068 cat conftest.err >&5
a848cd7e
SC
39069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070 (exit $ac_status); } &&
6ebeb4c7 39071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073 (eval $ac_try) 2>&5
39074 ac_status=$?
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); }; } &&
39077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39080 ac_status=$?
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; }; then
39083 wx_cv_func_gettimeofday_has_2_args=no
39084else
39085 echo "$as_me: failed program was:" >&5
39086sed 's/^/| /' conftest.$ac_ext >&5
39087
39088
39089 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39090echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39091 wx_cv_func_gettimeofday_has_2_args=unknown
39092
39093
39094fi
ac1cb8d3 39095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39096
39097fi
ac1cb8d3 39098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39099 ac_ext=c
39100ac_cpp='$CPP $CPPFLAGS'
39101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39103ac_compiler_gnu=$ac_cv_c_compiler_gnu
39104
39105
39106fi
39107echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39108echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39109
39110 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39111 cat >>confdefs.h <<\_ACEOF
39112#define WX_GETTIMEOFDAY_NO_TZ 1
39113_ACEOF
39114
39115 fi
39116 fi
39117
39118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39119fi
39120
39121
39122if test "$wxUSE_SOCKETS" = "yes"; then
39123 if test "$wxUSE_MGL" = "1"; then
39124 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39125echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39126 wxUSE_SOCKETS="no"
39127 fi
39128fi
39129
39130if test "$wxUSE_SOCKETS" = "yes"; then
39131 if test "$TOOLKIT" != "MSW"; then
39132 echo "$as_me:$LINENO: checking for socket" >&5
39133echo $ECHO_N "checking for socket... $ECHO_C" >&6
39134if test "${ac_cv_func_socket+set}" = set; then
39135 echo $ECHO_N "(cached) $ECHO_C" >&6
39136else
39137 cat >conftest.$ac_ext <<_ACEOF
39138/* confdefs.h. */
39139_ACEOF
39140cat confdefs.h >>conftest.$ac_ext
39141cat >>conftest.$ac_ext <<_ACEOF
39142/* end confdefs.h. */
ac1cb8d3
VS
39143/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39145#define socket innocuous_socket
39146
a848cd7e
SC
39147/* System header to define __stub macros and hopefully few prototypes,
39148 which can conflict with char socket (); below.
39149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39150 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39151
a848cd7e
SC
39152#ifdef __STDC__
39153# include <limits.h>
39154#else
39155# include <assert.h>
39156#endif
ac1cb8d3
VS
39157
39158#undef socket
39159
a848cd7e
SC
39160/* Override any gcc2 internal prototype to avoid an error. */
39161#ifdef __cplusplus
39162extern "C"
39163{
39164#endif
39165/* We use char because int might match the return type of a gcc2
39166 builtin and then its argument prototype would still apply. */
39167char socket ();
39168/* The GNU C library defines this for functions which it implements
39169 to always fail with ENOSYS. Some functions are actually named
39170 something starting with __ and the normal name is an alias. */
39171#if defined (__stub_socket) || defined (__stub___socket)
39172choke me
39173#else
39174char (*f) () = socket;
39175#endif
39176#ifdef __cplusplus
39177}
39178#endif
39179
39180int
39181main ()
39182{
39183return f != socket;
39184 ;
39185 return 0;
39186}
39187_ACEOF
39188rm -f conftest.$ac_objext conftest$ac_exeext
39189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39190 (eval $ac_link) 2>conftest.er1
a848cd7e 39191 ac_status=$?
ac1cb8d3
VS
39192 grep -v '^ *+' conftest.er1 >conftest.err
39193 rm -f conftest.er1
39194 cat conftest.err >&5
a848cd7e
SC
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); } &&
6ebeb4c7 39197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199 (eval $ac_try) 2>&5
39200 ac_status=$?
39201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202 (exit $ac_status); }; } &&
39203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39205 (eval $ac_try) 2>&5
39206 ac_status=$?
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); }; }; then
39209 ac_cv_func_socket=yes
39210else
39211 echo "$as_me: failed program was:" >&5
39212sed 's/^/| /' conftest.$ac_ext >&5
39213
39214ac_cv_func_socket=no
39215fi
ac1cb8d3
VS
39216rm -f conftest.err conftest.$ac_objext \
39217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39218fi
39219echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39220echo "${ECHO_T}$ac_cv_func_socket" >&6
39221if test $ac_cv_func_socket = yes; then
39222 :
39223else
39224
39225 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39226echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39227if test "${ac_cv_lib_socket_socket+set}" = set; then
39228 echo $ECHO_N "(cached) $ECHO_C" >&6
39229else
39230 ac_check_lib_save_LIBS=$LIBS
39231LIBS="-lsocket $LIBS"
39232cat >conftest.$ac_ext <<_ACEOF
39233/* confdefs.h. */
39234_ACEOF
39235cat confdefs.h >>conftest.$ac_ext
39236cat >>conftest.$ac_ext <<_ACEOF
39237/* end confdefs.h. */
39238
39239/* Override any gcc2 internal prototype to avoid an error. */
39240#ifdef __cplusplus
39241extern "C"
39242#endif
39243/* We use char because int might match the return type of a gcc2
39244 builtin and then its argument prototype would still apply. */
39245char socket ();
39246int
39247main ()
39248{
39249socket ();
39250 ;
39251 return 0;
39252}
39253_ACEOF
39254rm -f conftest.$ac_objext conftest$ac_exeext
39255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39256 (eval $ac_link) 2>conftest.er1
a848cd7e 39257 ac_status=$?
ac1cb8d3
VS
39258 grep -v '^ *+' conftest.er1 >conftest.err
39259 rm -f conftest.er1
39260 cat conftest.err >&5
a848cd7e
SC
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } &&
6ebeb4c7 39263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265 (eval $ac_try) 2>&5
39266 ac_status=$?
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; } &&
39269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 ac_cv_lib_socket_socket=yes
39276else
39277 echo "$as_me: failed program was:" >&5
39278sed 's/^/| /' conftest.$ac_ext >&5
39279
39280ac_cv_lib_socket_socket=no
39281fi
ac1cb8d3
VS
39282rm -f conftest.err conftest.$ac_objext \
39283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39284LIBS=$ac_check_lib_save_LIBS
39285fi
39286echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39287echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39288if test $ac_cv_lib_socket_socket = yes; then
39289 if test "$INET_LINK" != " -lsocket"; then
39290 INET_LINK="$INET_LINK -lsocket"
39291 fi
39292else
39293
39294 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39295echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39296 wxUSE_SOCKETS=no
39297
39298
39299fi
39300
39301
39302
39303fi
39304
39305 fi
39306fi
39307
39308if test "$wxUSE_SOCKETS" = "yes" ; then
39309 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39310 ac_ext=cc
39311ac_cpp='$CXXCPP $CPPFLAGS'
39312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39315
39316 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39317echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39318if test "${wx_cv_type_getsockname3+set}" = set; then
39319 echo $ECHO_N "(cached) $ECHO_C" >&6
39320else
39321
39322 cat >conftest.$ac_ext <<_ACEOF
39323/* confdefs.h. */
39324_ACEOF
39325cat confdefs.h >>conftest.$ac_ext
39326cat >>conftest.$ac_ext <<_ACEOF
39327/* end confdefs.h. */
39328
39329 #include <sys/types.h>
39330 #include <sys/socket.h>
39331
39332int
39333main ()
39334{
39335
39336 socklen_t len;
39337 getsockname(0, 0, &len);
39338
39339 ;
39340 return 0;
39341}
39342_ACEOF
39343rm -f conftest.$ac_objext
39344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39345 (eval $ac_compile) 2>conftest.er1
a848cd7e 39346 ac_status=$?
ac1cb8d3
VS
39347 grep -v '^ *+' conftest.er1 >conftest.err
39348 rm -f conftest.er1
39349 cat conftest.err >&5
a848cd7e
SC
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } &&
6ebeb4c7 39352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39355 ac_status=$?
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; } &&
39358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39360 (eval $ac_try) 2>&5
39361 ac_status=$?
39362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363 (exit $ac_status); }; }; then
39364 wx_cv_type_getsockname3=socklen_t
39365else
39366 echo "$as_me: failed program was:" >&5
39367sed 's/^/| /' conftest.$ac_ext >&5
39368
39369
39370 CFLAGS_OLD="$CFLAGS"
39371 if test "$GCC" = yes ; then
39372 CFLAGS="$CFLAGS -Werror"
39373 fi
39374
39375 cat >conftest.$ac_ext <<_ACEOF
39376/* confdefs.h. */
39377_ACEOF
39378cat confdefs.h >>conftest.$ac_ext
39379cat >>conftest.$ac_ext <<_ACEOF
39380/* end confdefs.h. */
39381
39382 #include <sys/types.h>
39383 #include <sys/socket.h>
39384
39385int
39386main ()
39387{
39388
39389 size_t len;
39390 getsockname(0, 0, &len);
39391
39392 ;
39393 return 0;
39394}
39395_ACEOF
39396rm -f conftest.$ac_objext
39397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39398 (eval $ac_compile) 2>conftest.er1
a848cd7e 39399 ac_status=$?
ac1cb8d3
VS
39400 grep -v '^ *+' conftest.er1 >conftest.err
39401 rm -f conftest.er1
39402 cat conftest.err >&5
a848cd7e
SC
39403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39404 (exit $ac_status); } &&
6ebeb4c7 39405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39407 (eval $ac_try) 2>&5
39408 ac_status=$?
39409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410 (exit $ac_status); }; } &&
39411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39413 (eval $ac_try) 2>&5
39414 ac_status=$?
39415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416 (exit $ac_status); }; }; then
39417 wx_cv_type_getsockname3=size_t
39418else
39419 echo "$as_me: failed program was:" >&5
39420sed 's/^/| /' conftest.$ac_ext >&5
39421
39422cat >conftest.$ac_ext <<_ACEOF
39423/* confdefs.h. */
39424_ACEOF
39425cat confdefs.h >>conftest.$ac_ext
39426cat >>conftest.$ac_ext <<_ACEOF
39427/* end confdefs.h. */
39428
39429 #include <sys/types.h>
39430 #include <sys/socket.h>
39431
39432int
39433main ()
39434{
39435
39436 int len;
39437 getsockname(0, 0, &len);
39438
39439 ;
39440 return 0;
39441}
39442_ACEOF
39443rm -f conftest.$ac_objext
39444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39445 (eval $ac_compile) 2>conftest.er1
a848cd7e 39446 ac_status=$?
ac1cb8d3
VS
39447 grep -v '^ *+' conftest.er1 >conftest.err
39448 rm -f conftest.er1
39449 cat conftest.err >&5
a848cd7e
SC
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); } &&
6ebeb4c7 39452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39454 (eval $ac_try) 2>&5
39455 ac_status=$?
39456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457 (exit $ac_status); }; } &&
39458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39460 (eval $ac_try) 2>&5
39461 ac_status=$?
39462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463 (exit $ac_status); }; }; then
39464 wx_cv_type_getsockname3=int
39465else
39466 echo "$as_me: failed program was:" >&5
39467sed 's/^/| /' conftest.$ac_ext >&5
39468
39469wx_cv_type_getsockname3=unknown
39470
39471fi
ac1cb8d3 39472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39473
39474fi
ac1cb8d3 39475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39476
39477 CFLAGS="$CFLAGS_OLD"
39478
39479
39480fi
ac1cb8d3 39481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39482
39483fi
39484echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39485echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39486
39487 if test "$wx_cv_type_getsockname3" = "unknown"; then
39488 wxUSE_SOCKETS=no
39489 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39490echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39491 else
39492 cat >>confdefs.h <<_ACEOF
9e03e02d 39493#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39494_ACEOF
39495
39496 fi
39497 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39498echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39499if test "${wx_cv_type_getsockopt5+set}" = set; then
39500 echo $ECHO_N "(cached) $ECHO_C" >&6
39501else
39502
39503 cat >conftest.$ac_ext <<_ACEOF
39504/* confdefs.h. */
39505_ACEOF
39506cat confdefs.h >>conftest.$ac_ext
39507cat >>conftest.$ac_ext <<_ACEOF
39508/* end confdefs.h. */
39509
39510 #include <sys/types.h>
39511 #include <sys/socket.h>
39512
39513int
39514main ()
39515{
39516
39517 socklen_t len;
39518 getsockopt(0, 0, 0, 0, &len);
39519
39520 ;
39521 return 0;
39522}
39523_ACEOF
39524rm -f conftest.$ac_objext
39525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39526 (eval $ac_compile) 2>conftest.er1
39527 ac_status=$?
39528 grep -v '^ *+' conftest.er1 >conftest.err
39529 rm -f conftest.er1
39530 cat conftest.err >&5
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); } &&
6ebeb4c7 39533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39535 (eval $ac_try) 2>&5
39536 ac_status=$?
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); }; } &&
39539 { ac_try='test -s conftest.$ac_objext'
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; }; then
39545 wx_cv_type_getsockopt5=socklen_t
39546else
39547 echo "$as_me: failed program was:" >&5
39548sed 's/^/| /' conftest.$ac_ext >&5
39549
39550
39551 CFLAGS_OLD="$CFLAGS"
39552 if test "$GCC" = yes ; then
39553 CFLAGS="$CFLAGS -Werror"
39554 fi
39555
39556 cat >conftest.$ac_ext <<_ACEOF
39557/* confdefs.h. */
39558_ACEOF
39559cat confdefs.h >>conftest.$ac_ext
39560cat >>conftest.$ac_ext <<_ACEOF
39561/* end confdefs.h. */
39562
39563 #include <sys/types.h>
39564 #include <sys/socket.h>
39565
39566int
39567main ()
39568{
39569
39570 size_t len;
39571 getsockopt(0, 0, 0, 0, &len);
39572
39573 ;
39574 return 0;
39575}
39576_ACEOF
39577rm -f conftest.$ac_objext
39578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39579 (eval $ac_compile) 2>conftest.er1
39580 ac_status=$?
39581 grep -v '^ *+' conftest.er1 >conftest.err
39582 rm -f conftest.er1
39583 cat conftest.err >&5
39584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); } &&
6ebeb4c7 39586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39588 (eval $ac_try) 2>&5
39589 ac_status=$?
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); }; } &&
39592 { ac_try='test -s conftest.$ac_objext'
39593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594 (eval $ac_try) 2>&5
39595 ac_status=$?
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); }; }; then
39598 wx_cv_type_getsockopt5=size_t
39599else
39600 echo "$as_me: failed program was:" >&5
39601sed 's/^/| /' conftest.$ac_ext >&5
39602
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 #include <sys/types.h>
39611 #include <sys/socket.h>
39612
39613int
39614main ()
39615{
39616
39617 int len;
39618 getsockopt(0, 0, 0, 0, &len);
39619
39620 ;
39621 return 0;
39622}
39623_ACEOF
39624rm -f conftest.$ac_objext
39625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39626 (eval $ac_compile) 2>conftest.er1
39627 ac_status=$?
39628 grep -v '^ *+' conftest.er1 >conftest.err
39629 rm -f conftest.er1
39630 cat conftest.err >&5
39631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); } &&
6ebeb4c7 39633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39635 (eval $ac_try) 2>&5
39636 ac_status=$?
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); }; } &&
39639 { ac_try='test -s conftest.$ac_objext'
39640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39641 (eval $ac_try) 2>&5
39642 ac_status=$?
39643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644 (exit $ac_status); }; }; then
39645 wx_cv_type_getsockopt5=int
39646else
39647 echo "$as_me: failed program was:" >&5
39648sed 's/^/| /' conftest.$ac_ext >&5
39649
39650wx_cv_type_getsockopt5=unknown
39651
39652fi
39653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39654
39655fi
39656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39657
39658 CFLAGS="$CFLAGS_OLD"
39659
39660
39661fi
39662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39663
39664fi
39665echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39666echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39667
39668 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39669 wxUSE_SOCKETS=no
39670 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39671echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39672 else
39673 cat >>confdefs.h <<_ACEOF
39674#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39675_ACEOF
39676
39677 fi
4d4ff94c
VZ
39678 ac_ext=c
39679ac_cpp='$CPP $CPPFLAGS'
39680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39682ac_compiler_gnu=$ac_cv_c_compiler_gnu
39683
a848cd7e
SC
39684 fi
39685fi
39686
39687if test "$wxUSE_SOCKETS" = "yes" ; then
39688 cat >>confdefs.h <<\_ACEOF
39689#define wxUSE_SOCKETS 1
39690_ACEOF
39691
39692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39693fi
39694
39695if test "$wxUSE_PROTOCOL" = "yes"; then
39696 if test "$wxUSE_SOCKETS" != "yes"; then
39697 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39698echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39699 wxUSE_PROTOCOL=no
39700 fi
39701fi
39702
39703if test "$wxUSE_PROTOCOL" = "yes"; then
39704 cat >>confdefs.h <<\_ACEOF
39705#define wxUSE_PROTOCOL 1
39706_ACEOF
39707
39708
39709 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39710 cat >>confdefs.h <<\_ACEOF
39711#define wxUSE_PROTOCOL_HTTP 1
39712_ACEOF
39713
39714 fi
39715 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39716 cat >>confdefs.h <<\_ACEOF
39717#define wxUSE_PROTOCOL_FTP 1
39718_ACEOF
39719
39720 fi
39721 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39722 cat >>confdefs.h <<\_ACEOF
39723#define wxUSE_PROTOCOL_FILE 1
39724_ACEOF
39725
39726 fi
39727else
39728 if test "$wxUSE_FS_INET" = "yes"; then
39729 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39730echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39731 wxUSE_FS_INET="no"
39732 fi
39733fi
39734
39735if test "$wxUSE_URL" = "yes"; then
39736 if test "$wxUSE_PROTOCOL" != "yes"; then
39737 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39738echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39739 wxUSE_URL=no
39740 fi
39741 if test "$wxUSE_URL" = "yes"; then
39742 cat >>confdefs.h <<\_ACEOF
39743#define wxUSE_URL 1
39744_ACEOF
39745
39746 fi
39747fi
39748
39749if test "$wxUSE_FS_INET" = "yes"; then
39750 cat >>confdefs.h <<\_ACEOF
39751#define wxUSE_FS_INET 1
39752_ACEOF
39753
39754fi
39755
39756
ee45c548
MW
39757if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39758 wxUSE_JOYSTICK=no
39759
39760 if test "$TOOLKIT" = "MSW"; then
39761 wxUSE_JOYSTICK=yes
39762
39763 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39764 if test "$USE_DARWIN" = 1; then
39765 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39766echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39767 ac_ext=cc
39768ac_cpp='$CXXCPP $CPPFLAGS'
39769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39772
39773 cat >conftest.$ac_ext <<_ACEOF
39774/* confdefs.h. */
39775_ACEOF
39776cat confdefs.h >>conftest.$ac_ext
39777cat >>conftest.$ac_ext <<_ACEOF
39778/* end confdefs.h. */
39779 #include <IOKit/hid/IOHIDLib.h>
39780int
39781main ()
39782{
39783 IOHIDQueueInterface *qi = NULL;
39784 IOHIDCallbackFunction cb = NULL;
39785 qi->setEventCallout(NULL, cb, NULL, NULL);
39786 ;
39787 return 0;
39788}
39789_ACEOF
39790rm -f conftest.$ac_objext
39791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39792 (eval $ac_compile) 2>conftest.er1
39793 ac_status=$?
39794 grep -v '^ *+' conftest.er1 >conftest.err
39795 rm -f conftest.er1
39796 cat conftest.err >&5
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); } &&
6ebeb4c7 39799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; } &&
39805 { ac_try='test -s conftest.$ac_objext'
39806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807 (eval $ac_try) 2>&5
39808 ac_status=$?
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); }; }; then
39811 wxUSE_JOYSTICK=yes
a848cd7e 39812
ee45c548
MW
39813else
39814 echo "$as_me: failed program was:" >&5
39815sed 's/^/| /' conftest.$ac_ext >&5
39816
39817fi
39818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39819 ac_ext=c
39820ac_cpp='$CPP $CPPFLAGS'
39821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39823ac_compiler_gnu=$ac_cv_c_compiler_gnu
39824
39825 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39826echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39827 fi
39828
39829 else
a848cd7e
SC
39830
39831for ac_header in linux/joystick.h
39832do
39833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39834if eval "test \"\${$as_ac_Header+set}\" = set"; then
39835 echo "$as_me:$LINENO: checking for $ac_header" >&5
39836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39837if eval "test \"\${$as_ac_Header+set}\" = set"; then
39838 echo $ECHO_N "(cached) $ECHO_C" >&6
39839fi
39840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39842else
39843 # Is the header compilable?
39844echo "$as_me:$LINENO: checking $ac_header usability" >&5
39845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39846cat >conftest.$ac_ext <<_ACEOF
39847/* confdefs.h. */
39848_ACEOF
39849cat confdefs.h >>conftest.$ac_ext
39850cat >>conftest.$ac_ext <<_ACEOF
39851/* end confdefs.h. */
39852$ac_includes_default
39853#include <$ac_header>
39854_ACEOF
39855rm -f conftest.$ac_objext
39856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39857 (eval $ac_compile) 2>conftest.er1
a848cd7e 39858 ac_status=$?
ac1cb8d3
VS
39859 grep -v '^ *+' conftest.er1 >conftest.err
39860 rm -f conftest.er1
39861 cat conftest.err >&5
a848cd7e
SC
39862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863 (exit $ac_status); } &&
6ebeb4c7 39864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39866 (eval $ac_try) 2>&5
39867 ac_status=$?
39868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869 (exit $ac_status); }; } &&
39870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872 (eval $ac_try) 2>&5
39873 ac_status=$?
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); }; }; then
39876 ac_header_compiler=yes
39877else
39878 echo "$as_me: failed program was:" >&5
39879sed 's/^/| /' conftest.$ac_ext >&5
39880
39881ac_header_compiler=no
39882fi
ac1cb8d3 39883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39885echo "${ECHO_T}$ac_header_compiler" >&6
39886
39887# Is the header present?
39888echo "$as_me:$LINENO: checking $ac_header presence" >&5
39889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39890cat >conftest.$ac_ext <<_ACEOF
39891/* confdefs.h. */
39892_ACEOF
39893cat confdefs.h >>conftest.$ac_ext
39894cat >>conftest.$ac_ext <<_ACEOF
39895/* end confdefs.h. */
39896#include <$ac_header>
39897_ACEOF
39898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39900 ac_status=$?
39901 grep -v '^ *+' conftest.er1 >conftest.err
39902 rm -f conftest.er1
39903 cat conftest.err >&5
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); } >/dev/null; then
39906 if test -s conftest.err; then
39907 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39909 else
39910 ac_cpp_err=
39911 fi
39912else
39913 ac_cpp_err=yes
39914fi
39915if test -z "$ac_cpp_err"; then
39916 ac_header_preproc=yes
39917else
39918 echo "$as_me: failed program was:" >&5
39919sed 's/^/| /' conftest.$ac_ext >&5
39920
39921 ac_header_preproc=no
39922fi
39923rm -f conftest.err conftest.$ac_ext
39924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39925echo "${ECHO_T}$ac_header_preproc" >&6
39926
39927# So? What about this header?
ac1cb8d3
VS
39928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39929 yes:no: )
a848cd7e
SC
39930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39934 ac_header_preproc=yes
a848cd7e 39935 ;;
ac1cb8d3 39936 no:yes:* )
a848cd7e
SC
39937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39949 (
39950 cat <<\_ASBOX
ac1cb8d3
VS
39951## ----------------------------------------- ##
39952## Report this to wx-dev@lists.wxwidgets.org ##
39953## ----------------------------------------- ##
a848cd7e
SC
39954_ASBOX
39955 ) |
39956 sed "s/^/$as_me: WARNING: /" >&2
39957 ;;
39958esac
39959echo "$as_me:$LINENO: checking for $ac_header" >&5
39960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39961if eval "test \"\${$as_ac_Header+set}\" = set"; then
39962 echo $ECHO_N "(cached) $ECHO_C" >&6
39963else
ac1cb8d3 39964 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39965fi
39966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39968
39969fi
39970if test `eval echo '${'$as_ac_Header'}'` = yes; then
39971 cat >>confdefs.h <<_ACEOF
39972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39973_ACEOF
ee45c548 39974 wxUSE_JOYSTICK=yes
a848cd7e
SC
39975fi
39976
39977done
39978
ee45c548 39979 fi
4cb1d3da 39980
ee45c548
MW
39981 if test "$wxUSE_JOYSTICK" = "yes"; then
39982 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39983#define wxUSE_JOYSTICK 1
39984_ACEOF
39985
ee45c548
MW
39986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39987 else
39988 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39989echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39990 fi
39991fi
39992
39993
39994
39995if test "$wxUSE_FONTMAP" = "yes" ; then
39996 cat >>confdefs.h <<\_ACEOF
39997#define wxUSE_FONTMAP 1
39998_ACEOF
39999
40000fi
40001
40002if test "$wxUSE_UNICODE" = "yes" ; then
40003 cat >>confdefs.h <<\_ACEOF
40004#define wxUSE_UNICODE 1
40005_ACEOF
40006
40007
40008 if test "$USE_WIN32" != 1; then
40009 wxUSE_UNICODE_MSLU=no
40010 fi
40011
40012 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40013 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40014echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40015if test "${ac_cv_lib_unicows_main+set}" = set; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40017else
40018 ac_check_lib_save_LIBS=$LIBS
40019LIBS="-lunicows $LIBS"
40020cat >conftest.$ac_ext <<_ACEOF
40021/* confdefs.h. */
40022_ACEOF
40023cat confdefs.h >>conftest.$ac_ext
40024cat >>conftest.$ac_ext <<_ACEOF
40025/* end confdefs.h. */
40026
40027
40028int
40029main ()
40030{
40031main ();
40032 ;
40033 return 0;
40034}
40035_ACEOF
40036rm -f conftest.$ac_objext conftest$ac_exeext
40037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40038 (eval $ac_link) 2>conftest.er1
a848cd7e 40039 ac_status=$?
ac1cb8d3
VS
40040 grep -v '^ *+' conftest.er1 >conftest.err
40041 rm -f conftest.er1
40042 cat conftest.err >&5
a848cd7e
SC
40043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40044 (exit $ac_status); } &&
6ebeb4c7 40045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40047 (eval $ac_try) 2>&5
40048 ac_status=$?
40049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050 (exit $ac_status); }; } &&
40051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40053 (eval $ac_try) 2>&5
40054 ac_status=$?
40055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40056 (exit $ac_status); }; }; then
40057 ac_cv_lib_unicows_main=yes
40058else
40059 echo "$as_me: failed program was:" >&5
40060sed 's/^/| /' conftest.$ac_ext >&5
40061
40062ac_cv_lib_unicows_main=no
40063fi
ac1cb8d3
VS
40064rm -f conftest.err conftest.$ac_objext \
40065 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40066LIBS=$ac_check_lib_save_LIBS
40067fi
40068echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40069echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40070if test $ac_cv_lib_unicows_main = yes; then
40071
40072 cat >>confdefs.h <<\_ACEOF
40073#define wxUSE_UNICODE_MSLU 1
40074_ACEOF
40075
40076
40077else
40078
40079 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40080 Applications will only run on Windows NT/2000/XP!" >&5
40081echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40082 Applications will only run on Windows NT/2000/XP!" >&2;}
40083 wxUSE_UNICODE_MSLU=no
40084
40085fi
40086
40087 fi
40088fi
40089
40090if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40091 cat >>confdefs.h <<\_ACEOF
40092#define wxUSE_EXPERIMENTAL_PRINTF 1
40093_ACEOF
40094
40095fi
40096
40097
40098if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40099 cat >>confdefs.h <<\_ACEOF
40100#define wxUSE_POSTSCRIPT 1
40101_ACEOF
40102
40103fi
40104
40105cat >>confdefs.h <<\_ACEOF
40106#define wxUSE_AFM_FOR_POSTSCRIPT 1
40107_ACEOF
40108
40109
40110cat >>confdefs.h <<\_ACEOF
40111#define wxUSE_NORMALIZED_PS_FONTS 1
40112_ACEOF
40113
40114
40115
40116if test "$wxUSE_CONSTRAINTS" = "yes"; then
40117 cat >>confdefs.h <<\_ACEOF
40118#define wxUSE_CONSTRAINTS 1
40119_ACEOF
40120
40121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40122fi
40123
8a7b1113
VZ
40124if test "$wxUSE_MDI" = "yes"; then
40125 cat >>confdefs.h <<\_ACEOF
40126#define wxUSE_MDI 1
40127_ACEOF
40128
40129
40130 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40131 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40132#define wxUSE_MDI_ARCHITECTURE 1
40133_ACEOF
40134
8a7b1113
VZ
40135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40136 fi
a848cd7e
SC
40137fi
40138
40139if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40140 cat >>confdefs.h <<\_ACEOF
40141#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40142_ACEOF
40143
40144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40145 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40147 fi
40148fi
40149
40150if test "$wxUSE_HELP" = "yes"; then
40151 cat >>confdefs.h <<\_ACEOF
40152#define wxUSE_HELP 1
40153_ACEOF
40154
40155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40156
40157 if test "$wxUSE_MSW" = 1; then
40158 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40159 cat >>confdefs.h <<\_ACEOF
40160#define wxUSE_MS_HTML_HELP 1
40161_ACEOF
40162
40163 fi
40164 fi
40165
40166 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40167 if test "$wxUSE_HTML" = "yes"; then
40168 cat >>confdefs.h <<\_ACEOF
40169#define wxUSE_WXHTML_HELP 1
40170_ACEOF
40171
40172 else
40173 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40174echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40175 wxUSE_WXHTML_HELP=no
40176 fi
40177 fi
40178fi
40179
40180if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40181 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40182 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40183echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40184 else
40185 cat >>confdefs.h <<\_ACEOF
40186#define wxUSE_PRINTING_ARCHITECTURE 1
40187_ACEOF
40188
40189 fi
40190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40191fi
40192
40193if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40194 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40195echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40196 { (exit 1); exit 1; }; }
40197fi
40198
40199
efdf6afe
VZ
40200if test "$wxUSE_METAFILE" = "yes"; then
40201 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40202 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40203echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40204 wxUSE_METAFILE=no
40205 fi
40206fi
40207
40208
a848cd7e
SC
40209if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40210 -o "$wxUSE_CLIPBOARD" = "yes" \
40211 -o "$wxUSE_OLE" = "yes" \
40212 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40213
40214for ac_header in ole2.h
40215do
40216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40217if eval "test \"\${$as_ac_Header+set}\" = set"; then
40218 echo "$as_me:$LINENO: checking for $ac_header" >&5
40219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40220if eval "test \"\${$as_ac_Header+set}\" = set"; then
40221 echo $ECHO_N "(cached) $ECHO_C" >&6
40222fi
40223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40225else
40226 # Is the header compilable?
40227echo "$as_me:$LINENO: checking $ac_header usability" >&5
40228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40229cat >conftest.$ac_ext <<_ACEOF
40230/* confdefs.h. */
40231_ACEOF
40232cat confdefs.h >>conftest.$ac_ext
40233cat >>conftest.$ac_ext <<_ACEOF
40234/* end confdefs.h. */
40235$ac_includes_default
40236#include <$ac_header>
40237_ACEOF
40238rm -f conftest.$ac_objext
40239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40240 (eval $ac_compile) 2>conftest.er1
a848cd7e 40241 ac_status=$?
ac1cb8d3
VS
40242 grep -v '^ *+' conftest.er1 >conftest.err
40243 rm -f conftest.er1
40244 cat conftest.err >&5
a848cd7e
SC
40245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246 (exit $ac_status); } &&
6ebeb4c7 40247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40249 (eval $ac_try) 2>&5
40250 ac_status=$?
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); }; } &&
40253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40255 (eval $ac_try) 2>&5
40256 ac_status=$?
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); }; }; then
40259 ac_header_compiler=yes
40260else
40261 echo "$as_me: failed program was:" >&5
40262sed 's/^/| /' conftest.$ac_ext >&5
40263
40264ac_header_compiler=no
40265fi
ac1cb8d3 40266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40268echo "${ECHO_T}$ac_header_compiler" >&6
40269
40270# Is the header present?
40271echo "$as_me:$LINENO: checking $ac_header presence" >&5
40272echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40273cat >conftest.$ac_ext <<_ACEOF
40274/* confdefs.h. */
40275_ACEOF
40276cat confdefs.h >>conftest.$ac_ext
40277cat >>conftest.$ac_ext <<_ACEOF
40278/* end confdefs.h. */
40279#include <$ac_header>
40280_ACEOF
40281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40283 ac_status=$?
40284 grep -v '^ *+' conftest.er1 >conftest.err
40285 rm -f conftest.er1
40286 cat conftest.err >&5
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); } >/dev/null; then
40289 if test -s conftest.err; then
40290 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40292 else
40293 ac_cpp_err=
40294 fi
40295else
40296 ac_cpp_err=yes
40297fi
40298if test -z "$ac_cpp_err"; then
40299 ac_header_preproc=yes
40300else
40301 echo "$as_me: failed program was:" >&5
40302sed 's/^/| /' conftest.$ac_ext >&5
40303
40304 ac_header_preproc=no
40305fi
40306rm -f conftest.err conftest.$ac_ext
40307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40308echo "${ECHO_T}$ac_header_preproc" >&6
40309
40310# So? What about this header?
ac1cb8d3
VS
40311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40312 yes:no: )
a848cd7e
SC
40313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40316echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40317 ac_header_preproc=yes
a848cd7e 40318 ;;
ac1cb8d3 40319 no:yes:* )
a848cd7e
SC
40320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40321echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40323echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40325echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40327echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40331echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40332 (
40333 cat <<\_ASBOX
ac1cb8d3
VS
40334## ----------------------------------------- ##
40335## Report this to wx-dev@lists.wxwidgets.org ##
40336## ----------------------------------------- ##
a848cd7e
SC
40337_ASBOX
40338 ) |
40339 sed "s/^/$as_me: WARNING: /" >&2
40340 ;;
40341esac
40342echo "$as_me:$LINENO: checking for $ac_header" >&5
40343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40344if eval "test \"\${$as_ac_Header+set}\" = set"; then
40345 echo $ECHO_N "(cached) $ECHO_C" >&6
40346else
ac1cb8d3 40347 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40348fi
40349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40351
40352fi
40353if test `eval echo '${'$as_ac_Header'}'` = yes; then
40354 cat >>confdefs.h <<_ACEOF
40355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40356_ACEOF
40357
40358fi
40359
40360done
40361
40362
40363 if test "$ac_cv_header_ole2_h" = "yes" ; then
40364 if test "$GCC" = yes ; then
40365
40366
40367 ac_ext=cc
40368ac_cpp='$CXXCPP $CPPFLAGS'
40369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40372
40373
40374 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40375echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40376 cat >conftest.$ac_ext <<_ACEOF
40377/* confdefs.h. */
40378_ACEOF
40379cat confdefs.h >>conftest.$ac_ext
40380cat >>conftest.$ac_ext <<_ACEOF
40381/* end confdefs.h. */
40382#include <windows.h>
40383 #include <ole2.h>
40384int
40385main ()
40386{
40387
40388 ;
40389 return 0;
40390}
40391_ACEOF
40392rm -f conftest.$ac_objext
40393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40394 (eval $ac_compile) 2>conftest.er1
a848cd7e 40395 ac_status=$?
ac1cb8d3
VS
40396 grep -v '^ *+' conftest.er1 >conftest.err
40397 rm -f conftest.er1
40398 cat conftest.err >&5
a848cd7e
SC
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); } &&
6ebeb4c7 40401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40403 (eval $ac_try) 2>&5
40404 ac_status=$?
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); }; } &&
40407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40410 ac_status=$?
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; }; then
40413 echo "$as_me:$LINENO: result: no" >&5
40414echo "${ECHO_T}no" >&6
40415else
40416 echo "$as_me: failed program was:" >&5
40417sed 's/^/| /' conftest.$ac_ext >&5
40418
40419echo "$as_me:$LINENO: result: yes" >&5
40420echo "${ECHO_T}yes" >&6
40421 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40422fi
ac1cb8d3 40423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40424 ac_ext=c
40425ac_cpp='$CPP $CPPFLAGS'
40426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40428ac_compiler_gnu=$ac_cv_c_compiler_gnu
40429
a848cd7e
SC
40430 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40431 if test "$wxUSE_OLE" = "yes" ; then
40432 cat >>confdefs.h <<\_ACEOF
40433#define wxUSE_OLE 1
40434_ACEOF
40435
0b78747f 40436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40437 fi
40438 fi
40439
40440 if test "$wxUSE_DATAOBJ" = "yes" ; then
40441 cat >>confdefs.h <<\_ACEOF
40442#define wxUSE_DATAOBJ 1
40443_ACEOF
40444
40445 fi
40446 else
40447 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40448echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40449
40450 wxUSE_CLIPBOARD=no
40451 wxUSE_DRAG_AND_DROP=no
40452 wxUSE_DATAOBJ=no
40453 wxUSE_OLE=no
40454 fi
40455
40456 if test "$wxUSE_METAFILE" = "yes"; then
40457 cat >>confdefs.h <<\_ACEOF
40458#define wxUSE_METAFILE 1
40459_ACEOF
40460
40461
40462 cat >>confdefs.h <<\_ACEOF
40463#define wxUSE_ENH_METAFILE 1
40464_ACEOF
40465
40466 fi
40467fi
40468
40469if test "$wxUSE_IPC" = "yes"; then
0b78747f 40470 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40471 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40472echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40473 wxUSE_IPC=no
a848cd7e
SC
40474 fi
40475
0b78747f
MW
40476 if test "$wxUSE_IPC" = "yes"; then
40477 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40478#define wxUSE_IPC 1
40479_ACEOF
40480
0b78747f
MW
40481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40482 fi
a848cd7e
SC
40483fi
40484
eb730a0c 40485if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40486 if test "$wxUSE_MGL" = 1; then
40487 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40488echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40489 wxUSE_DATAOBJ=no
40490 else
40491 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40492#define wxUSE_DATAOBJ 1
40493_ACEOF
40494
2113bc77 40495 fi
eb730a0c
JS
40496else
40497 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40498echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40499 wxUSE_CLIPBOARD=no
40500 wxUSE_DRAG_AND_DROP=no
40501fi
40502
a848cd7e
SC
40503if test "$wxUSE_CLIPBOARD" = "yes"; then
40504 if test "$wxUSE_MGL" = 1; then
40505 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40506echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40507 wxUSE_CLIPBOARD=no
40508 fi
40509
40510 if test "$wxUSE_CLIPBOARD" = "yes"; then
40511 cat >>confdefs.h <<\_ACEOF
40512#define wxUSE_CLIPBOARD 1
40513_ACEOF
40514
a848cd7e
SC
40515 fi
40516fi
40517
40518if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40519 if test "$wxUSE_GTK" = 1; then
40520 if test "$WXGTK12" != 1; then
40521 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40522echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40523 wxUSE_DRAG_AND_DROP=no
40524 fi
40525 fi
40526
40527 if test "$wxUSE_MOTIF" = 1; then
40528 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40529echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40530 wxUSE_DRAG_AND_DROP=no
40531 fi
40532
40533 if test "$wxUSE_X11" = 1; then
40534 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40535echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40536 wxUSE_DRAG_AND_DROP=no
40537 fi
40538
40539 if test "$wxUSE_MGL" = 1; then
40540 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40541echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40542 wxUSE_DRAG_AND_DROP=no
40543 fi
40544
40545 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40546 cat >>confdefs.h <<\_ACEOF
40547#define wxUSE_DRAG_AND_DROP 1
40548_ACEOF
40549
40550 fi
40551
40552fi
40553
40554if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
40555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
40556fi
40557
40558if test "$wxUSE_SPLINES" = "yes" ; then
40559 cat >>confdefs.h <<\_ACEOF
40560#define wxUSE_SPLINES 1
40561_ACEOF
40562
40563fi
40564
fbe2ca43
SN
40565if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
40566 cat >>confdefs.h <<\_ACEOF
40567#define wxUSE_MOUSEWHEEL 1
40568_ACEOF
40569
40570fi
40571
a848cd7e
SC
40572
40573USES_CONTROLS=0
40574if test "$wxUSE_CONTROLS" = "yes"; then
40575 USES_CONTROLS=1
40576fi
40577
40578if test "$wxUSE_ACCEL" = "yes"; then
40579 cat >>confdefs.h <<\_ACEOF
40580#define wxUSE_ACCEL 1
40581_ACEOF
40582
40583 USES_CONTROLS=1
40584fi
40585
40586if test "$wxUSE_BUTTON" = "yes"; then
40587 cat >>confdefs.h <<\_ACEOF
40588#define wxUSE_BUTTON 1
40589_ACEOF
40590
40591 USES_CONTROLS=1
40592fi
40593
40594if test "$wxUSE_BMPBUTTON" = "yes"; then
40595 cat >>confdefs.h <<\_ACEOF
40596#define wxUSE_BMPBUTTON 1
40597_ACEOF
40598
40599 USES_CONTROLS=1
40600fi
40601
40602if test "$wxUSE_CALCTRL" = "yes"; then
40603 cat >>confdefs.h <<\_ACEOF
40604#define wxUSE_CALENDARCTRL 1
40605_ACEOF
40606
40607 USES_CONTROLS=1
40608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
40609fi
40610
40611if test "$wxUSE_CARET" = "yes"; then
40612 cat >>confdefs.h <<\_ACEOF
40613#define wxUSE_CARET 1
40614_ACEOF
40615
40616 USES_CONTROLS=1
40617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
40618fi
40619
40620if test "$wxUSE_COMBOBOX" = "yes"; then
40621 cat >>confdefs.h <<\_ACEOF
40622#define wxUSE_COMBOBOX 1
40623_ACEOF
40624
40625 USES_CONTROLS=1
40626fi
40627
40628if test "$wxUSE_CHOICE" = "yes"; then
40629 cat >>confdefs.h <<\_ACEOF
40630#define wxUSE_CHOICE 1
40631_ACEOF
40632
40633 USES_CONTROLS=1
40634fi
40635
92bbdbcd
WS
40636if test "$wxUSE_CHOICEBOOK" = "yes"; then
40637 cat >>confdefs.h <<\_ACEOF
40638#define wxUSE_CHOICEBOOK 1
40639_ACEOF
40640
40641 USES_CONTROLS=1
40642fi
40643
a848cd7e
SC
40644if test "$wxUSE_CHECKBOX" = "yes"; then
40645 cat >>confdefs.h <<\_ACEOF
40646#define wxUSE_CHECKBOX 1
40647_ACEOF
40648
40649 USES_CONTROLS=1
40650fi
40651
40652if test "$wxUSE_CHECKLST" = "yes"; then
40653 cat >>confdefs.h <<\_ACEOF
40654#define wxUSE_CHECKLISTBOX 1
40655_ACEOF
40656
40657 USES_CONTROLS=1
40658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40659fi
40660
da98e9be
VZ
40661if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40662 cat >>confdefs.h <<\_ACEOF
40663#define wxUSE_DATEPICKCTRL 1
40664_ACEOF
40665
40666 USES_CONTROLS=1
40667fi
40668
a848cd7e
SC
40669if test "$wxUSE_DISPLAY" = "yes"; then
40670 cat >>confdefs.h <<\_ACEOF
40671#define wxUSE_DISPLAY 1
40672_ACEOF
40673
0b78747f 40674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40675fi
40676
40677if test "$wxUSE_GAUGE" = "yes"; then
40678 cat >>confdefs.h <<\_ACEOF
40679#define wxUSE_GAUGE 1
40680_ACEOF
40681
40682 USES_CONTROLS=1
40683fi
40684
40685if test "$wxUSE_GRID" = "yes"; then
40686 cat >>confdefs.h <<\_ACEOF
40687#define wxUSE_GRID 1
40688_ACEOF
40689
40690 USES_CONTROLS=1
40691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40692fi
40693
40694if test "$wxUSE_IMAGLIST" = "yes"; then
40695 cat >>confdefs.h <<\_ACEOF
40696#define wxUSE_IMAGLIST 1
40697_ACEOF
40698
40699fi
40700
40701if test "$wxUSE_LISTBOOK" = "yes"; then
40702 cat >>confdefs.h <<\_ACEOF
40703#define wxUSE_LISTBOOK 1
40704_ACEOF
40705
40706 USES_CONTROLS=1
40707fi
40708
40709if test "$wxUSE_LISTBOX" = "yes"; then
40710 cat >>confdefs.h <<\_ACEOF
40711#define wxUSE_LISTBOX 1
40712_ACEOF
40713
40714 USES_CONTROLS=1
0b78747f 40715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40716fi
40717
40718if test "$wxUSE_LISTCTRL" = "yes"; then
40719 if test "$wxUSE_IMAGLIST" = "yes"; then
40720 cat >>confdefs.h <<\_ACEOF
40721#define wxUSE_LISTCTRL 1
40722_ACEOF
40723
40724 USES_CONTROLS=1
40725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40726 else
40727 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40728echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40729 fi
40730fi
40731
40732if test "$wxUSE_NOTEBOOK" = "yes"; then
40733 cat >>confdefs.h <<\_ACEOF
40734#define wxUSE_NOTEBOOK 1
40735_ACEOF
40736
40737 USES_CONTROLS=1
40738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40739fi
40740
40741
40742if test "$wxUSE_RADIOBOX" = "yes"; then
40743 cat >>confdefs.h <<\_ACEOF
40744#define wxUSE_RADIOBOX 1
40745_ACEOF
40746
40747 USES_CONTROLS=1
40748fi
40749
40750if test "$wxUSE_RADIOBTN" = "yes"; then
40751 cat >>confdefs.h <<\_ACEOF
40752#define wxUSE_RADIOBTN 1
40753_ACEOF
40754
40755 USES_CONTROLS=1
40756fi
40757
40758if test "$wxUSE_SASH" = "yes"; then
40759 cat >>confdefs.h <<\_ACEOF
40760#define wxUSE_SASH 1
40761_ACEOF
40762
40763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40764fi
40765
40766if test "$wxUSE_SCROLLBAR" = "yes"; then
40767 cat >>confdefs.h <<\_ACEOF
40768#define wxUSE_SCROLLBAR 1
40769_ACEOF
40770
40771 USES_CONTROLS=1
40772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40773fi
40774
40775if test "$wxUSE_SLIDER" = "yes"; then
40776 cat >>confdefs.h <<\_ACEOF
40777#define wxUSE_SLIDER 1
40778_ACEOF
40779
40780 USES_CONTROLS=1
40781fi
40782
40783if test "$wxUSE_SPINBTN" = "yes"; then
40784 cat >>confdefs.h <<\_ACEOF
40785#define wxUSE_SPINBTN 1
40786_ACEOF
40787
40788 USES_CONTROLS=1
40789fi
40790
40791if test "$wxUSE_SPINCTRL" = "yes"; then
40792 cat >>confdefs.h <<\_ACEOF
40793#define wxUSE_SPINCTRL 1
40794_ACEOF
40795
40796 USES_CONTROLS=1
40797fi
40798
40799if test "$wxUSE_SPLITTER" = "yes"; then
40800 cat >>confdefs.h <<\_ACEOF
40801#define wxUSE_SPLITTER 1
40802_ACEOF
40803
40804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40805fi
40806
40807if test "$wxUSE_STATBMP" = "yes"; then
40808 cat >>confdefs.h <<\_ACEOF
40809#define wxUSE_STATBMP 1
40810_ACEOF
40811
40812 USES_CONTROLS=1
40813fi
40814
40815if test "$wxUSE_STATBOX" = "yes"; then
40816 cat >>confdefs.h <<\_ACEOF
40817#define wxUSE_STATBOX 1
40818_ACEOF
40819
40820 USES_CONTROLS=1
40821fi
40822
40823if test "$wxUSE_STATTEXT" = "yes"; then
40824 cat >>confdefs.h <<\_ACEOF
40825#define wxUSE_STATTEXT 1
40826_ACEOF
40827
40828 USES_CONTROLS=1
40829fi
40830
40831if test "$wxUSE_STATLINE" = "yes"; then
40832 cat >>confdefs.h <<\_ACEOF
40833#define wxUSE_STATLINE 1
40834_ACEOF
40835
40836 USES_CONTROLS=1
40837fi
40838
40839if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40840 cat >>confdefs.h <<\_ACEOF
40841#define wxUSE_NATIVE_STATUSBAR 1
40842_ACEOF
40843
a848cd7e
SC
40844 cat >>confdefs.h <<\_ACEOF
40845#define wxUSE_STATUSBAR 1
40846_ACEOF
40847
40848 USES_CONTROLS=1
40849
40850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40851fi
40852
40853if test "$wxUSE_TABDIALOG" = "yes"; then
40854 cat >>confdefs.h <<\_ACEOF
40855#define wxUSE_TAB_DIALOG 1
40856_ACEOF
40857
a848cd7e
SC
40858fi
40859
40860if test "$wxUSE_TEXTCTRL" = "yes"; then
40861 cat >>confdefs.h <<\_ACEOF
40862#define wxUSE_TEXTCTRL 1
40863_ACEOF
40864
40865 USES_CONTROLS=1
40866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40867fi
40868
40869if test "$wxUSE_TOGGLEBTN" = "yes"; then
40870 if test "$wxUSE_COCOA" = 1 ; then
40871 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40872echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40873 wxUSE_TOGGLEBTN=no
40874 fi
40875 if test "$wxUSE_UNIVERSAL" = "yes"; then
40876 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40877echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40878 wxUSE_TOGGLEBTN=no
40879 fi
40880
40881 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40882 cat >>confdefs.h <<\_ACEOF
40883#define wxUSE_TOGGLEBTN 1
40884_ACEOF
40885
40886 USES_CONTROLS=1
40887 fi
40888fi
40889
40890if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40891 cat >>confdefs.h <<\_ACEOF
40892#define wxUSE_TOOLBAR_SIMPLE 1
40893_ACEOF
40894
40895 wxUSE_TOOLBAR="yes"
40896 USES_CONTROLS=1
40897fi
40898
40899if test "$wxUSE_TOOLBAR" = "yes"; then
40900 cat >>confdefs.h <<\_ACEOF
40901#define wxUSE_TOOLBAR 1
40902_ACEOF
40903
40904 USES_CONTROLS=1
40905
40906 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40907 wxUSE_TOOLBAR_NATIVE="yes"
40908 fi
40909
40910 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40911 cat >>confdefs.h <<\_ACEOF
40912#define wxUSE_TOOLBAR_NATIVE 1
40913_ACEOF
40914
40915 USES_CONTROLS=1
40916 fi
40917
40918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40919fi
40920
40921if test "$wxUSE_TOOLTIPS" = "yes"; then
40922 if test "$wxUSE_MOTIF" = 1; then
40923 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40924echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40925 else
40926 if test "$wxUSE_UNIVERSAL" = "yes"; then
40927 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40928echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40929 else
40930 cat >>confdefs.h <<\_ACEOF
40931#define wxUSE_TOOLTIPS 1
40932_ACEOF
40933
40934 fi
40935 fi
40936fi
40937
40938if test "$wxUSE_TREECTRL" = "yes"; then
40939 if test "$wxUSE_IMAGLIST" = "yes"; then
40940 cat >>confdefs.h <<\_ACEOF
40941#define wxUSE_TREECTRL 1
40942_ACEOF
40943
40944 USES_CONTROLS=1
40945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40946 else
40947 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40948echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40949 fi
40950fi
40951
40952if test "$wxUSE_POPUPWIN" = "yes"; then
40953 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40954 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40955echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40956 else
40957 if test "$wxUSE_PM" = 1; then
40958 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40959echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40960 else
40961 cat >>confdefs.h <<\_ACEOF
40962#define wxUSE_POPUPWIN 1
40963_ACEOF
40964
0b78747f 40965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40966
40967 USES_CONTROLS=1
40968 fi
40969 fi
40970fi
40971
0dcd06dd 40972if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40973 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40974 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40975echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40976 else
40977 cat >>confdefs.h <<\_ACEOF
40978#define wxUSE_DIALUP_MANAGER 1
40979_ACEOF
40980
40981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40982 fi
40983fi
40984
a848cd7e
SC
40985if test "$wxUSE_TIPWINDOW" = "yes"; then
40986 if test "$wxUSE_PM" = 1; then
40987 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40988echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40989 else
40990 cat >>confdefs.h <<\_ACEOF
40991#define wxUSE_TIPWINDOW 1
40992_ACEOF
40993
40994 fi
40995fi
40996
40997if test "$USES_CONTROLS" = 1; then
40998 cat >>confdefs.h <<\_ACEOF
40999#define wxUSE_CONTROLS 1
41000_ACEOF
41001
41002fi
41003
41004
41005if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41006 cat >>confdefs.h <<\_ACEOF
41007#define wxUSE_ACCESSIBILITY 1
41008_ACEOF
41009
41010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41011fi
41012
38b4a946
VZ
41013if test "$wxUSE_DC_CACHEING" = "yes"; then
41014 cat >>confdefs.h <<\_ACEOF
41015#define wxUSE_DC_CACHEING 1
41016_ACEOF
41017
41018fi
41019
a848cd7e
SC
41020if test "$wxUSE_DRAGIMAGE" = "yes"; then
41021 cat >>confdefs.h <<\_ACEOF
41022#define wxUSE_DRAGIMAGE 1
41023_ACEOF
41024
41025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41026fi
41027
41028if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41029 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41030 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41031echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41032 else
41033 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41034#define wxUSE_EXCEPTIONS 1
41035_ACEOF
41036
07bea8f0
VS
41037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41038 fi
a848cd7e
SC
41039fi
41040
41041USE_HTML=0
41042if test "$wxUSE_HTML" = "yes"; then
41043 cat >>confdefs.h <<\_ACEOF
41044#define wxUSE_HTML 1
41045_ACEOF
41046
41047 USE_HTML=1
41048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41049 if test "$wxUSE_MAC" = 1; then
41050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41051 fi
a848cd7e 41052fi
646b6ec1 41053if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41054 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41055 old_CPPFLAGS="$CPPFLAGS"
41056 CPPFLAGS="$CPPFLAGS -x objective-c++"
41057 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41058echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41059if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41060 echo $ECHO_N "(cached) $ECHO_C" >&6
41061else
41062 cat >conftest.$ac_ext <<_ACEOF
41063/* confdefs.h. */
41064_ACEOF
41065cat confdefs.h >>conftest.$ac_ext
41066cat >>conftest.$ac_ext <<_ACEOF
41067/* end confdefs.h. */
41068#include <Carbon/Carbon.h>
41069
41070#include <WebKit/HIWebView.h>
41071_ACEOF
41072rm -f conftest.$ac_objext
41073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41074 (eval $ac_compile) 2>conftest.er1
41075 ac_status=$?
41076 grep -v '^ *+' conftest.er1 >conftest.err
41077 rm -f conftest.er1
41078 cat conftest.err >&5
41079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080 (exit $ac_status); } &&
6ebeb4c7 41081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41083 (eval $ac_try) 2>&5
41084 ac_status=$?
41085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086 (exit $ac_status); }; } &&
41087 { ac_try='test -s conftest.$ac_objext'
41088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41089 (eval $ac_try) 2>&5
41090 ac_status=$?
41091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41092 (exit $ac_status); }; }; then
41093 ac_cv_header_WebKit_HIWebView_h=yes
41094else
41095 echo "$as_me: failed program was:" >&5
41096sed 's/^/| /' conftest.$ac_ext >&5
41097
41098ac_cv_header_WebKit_HIWebView_h=no
41099fi
41100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41101fi
41102echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41103echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41104if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41105
41106 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41107#define wxUSE_WEBKIT 1
41108_ACEOF
41109
07bea8f0
VS
41110 WEBKIT_LINK="-framework WebKit"
41111
41112else
41113
41114 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41115echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41116 wxUSE_WEBKIT=no
41117
646b6ec1
VS
41118fi
41119
07bea8f0
VS
41120
41121 CPPFLAGS="$old_CPPFLAGS"
41122 elif test "$wxUSE_COCOA" = 1; then
41123 cat >>confdefs.h <<\_ACEOF
41124#define wxUSE_WEBKIT 1
41125_ACEOF
41126
41127 else
41128 wxUSE_WEBKIT=no
41129 fi
41130fi
41131
9a8f0513
VS
41132USE_XRC=0
41133if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41134 if test "$wxUSE_XML" != "yes"; then
41135 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41136echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41137 wxUSE_XRC=no
41138 else
41139 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41140#define wxUSE_XRC 1
41141_ACEOF
41142
d2ebf0b7
VS
41143 USE_XRC=1
41144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41145 fi
9a8f0513 41146fi
07bea8f0 41147
a848cd7e
SC
41148if test "$wxUSE_MENUS" = "yes"; then
41149 cat >>confdefs.h <<\_ACEOF
41150#define wxUSE_MENUS 1
41151_ACEOF
41152
41153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41154fi
41155
41156if test "$wxUSE_METAFILE" = "yes"; then
41157 cat >>confdefs.h <<\_ACEOF
41158#define wxUSE_METAFILE 1
41159_ACEOF
41160
41161fi
41162
41163if test "$wxUSE_MIMETYPE" = "yes"; then
41164 cat >>confdefs.h <<\_ACEOF
41165#define wxUSE_MIMETYPE 1
41166_ACEOF
41167
41168fi
41169
41170if test "$wxUSE_MINIFRAME" = "yes"; then
41171 cat >>confdefs.h <<\_ACEOF
41172#define wxUSE_MINIFRAME 1
41173_ACEOF
41174
41175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41176fi
41177
41178if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41179 cat >>confdefs.h <<\_ACEOF
41180#define wxUSE_SYSTEM_OPTIONS 1
41181_ACEOF
41182
41183 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41184 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41186 fi
41187fi
41188
41189
41190if test "$wxUSE_VALIDATORS" = "yes"; then
41191 cat >>confdefs.h <<\_ACEOF
41192#define wxUSE_VALIDATORS 1
41193_ACEOF
41194
41195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41196fi
41197
41198if test "$wxUSE_PALETTE" = "yes" ; then
41199 cat >>confdefs.h <<\_ACEOF
41200#define wxUSE_PALETTE 1
41201_ACEOF
41202
41203fi
41204
41205if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41206 LIBS=" -lunicows $LIBS"
41207fi
41208
41209
41210if test "$wxUSE_IMAGE" = "yes" ; then
41211 cat >>confdefs.h <<\_ACEOF
41212#define wxUSE_IMAGE 1
41213_ACEOF
41214
41215
41216 if test "$wxUSE_GIF" = "yes" ; then
41217 cat >>confdefs.h <<\_ACEOF
41218#define wxUSE_GIF 1
41219_ACEOF
41220
41221 fi
41222
41223 if test "$wxUSE_PCX" = "yes" ; then
41224 cat >>confdefs.h <<\_ACEOF
41225#define wxUSE_PCX 1
41226_ACEOF
41227
41228 fi
41229
41230 if test "$wxUSE_IFF" = "yes" ; then
41231 cat >>confdefs.h <<\_ACEOF
41232#define wxUSE_IFF 1
41233_ACEOF
41234
41235 fi
41236
41237 if test "$wxUSE_PNM" = "yes" ; then
41238 cat >>confdefs.h <<\_ACEOF
41239#define wxUSE_PNM 1
41240_ACEOF
41241
41242 fi
41243
41244 if test "$wxUSE_XPM" = "yes" ; then
41245 cat >>confdefs.h <<\_ACEOF
41246#define wxUSE_XPM 1
41247_ACEOF
41248
41249 fi
41250
41251 if test "$wxUSE_ICO_CUR" = "yes" ; then
41252 cat >>confdefs.h <<\_ACEOF
41253#define wxUSE_ICO_CUR 1
41254_ACEOF
41255
41256 fi
41257fi
41258
41259
41260if test "$wxUSE_CHOICEDLG" = "yes"; then
41261 cat >>confdefs.h <<\_ACEOF
41262#define wxUSE_CHOICEDLG 1
41263_ACEOF
41264
41265fi
41266
41267if test "$wxUSE_COLOURDLG" = "yes"; then
41268 cat >>confdefs.h <<\_ACEOF
41269#define wxUSE_COLOURDLG 1
41270_ACEOF
41271
41272fi
41273
41274if test "$wxUSE_FILEDLG" = "yes"; then
41275 cat >>confdefs.h <<\_ACEOF
41276#define wxUSE_FILEDLG 1
41277_ACEOF
41278
41279fi
41280
41281if test "$wxUSE_FINDREPLDLG" = "yes"; then
41282 cat >>confdefs.h <<\_ACEOF
41283#define wxUSE_FINDREPLDLG 1
41284_ACEOF
41285
41286fi
41287
41288if test "$wxUSE_FONTDLG" = "yes"; then
41289 cat >>confdefs.h <<\_ACEOF
41290#define wxUSE_FONTDLG 1
41291_ACEOF
41292
41293fi
41294
41295if test "$wxUSE_DIRDLG" = "yes"; then
41296 if test "$wxUSE_TREECTRL" != "yes"; then
41297 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41298echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41299 else
41300 cat >>confdefs.h <<\_ACEOF
41301#define wxUSE_DIRDLG 1
41302_ACEOF
41303
41304 fi
41305fi
41306
41307if test "$wxUSE_MSGDLG" = "yes"; then
41308 cat >>confdefs.h <<\_ACEOF
41309#define wxUSE_MSGDLG 1
41310_ACEOF
41311
41312fi
41313
41314if test "$wxUSE_NUMBERDLG" = "yes"; then
41315 cat >>confdefs.h <<\_ACEOF
41316#define wxUSE_NUMBERDLG 1
41317_ACEOF
41318
41319fi
41320
41321if test "$wxUSE_PROGRESSDLG" = "yes"; then
41322 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41323 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41324echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41325 else
41326 cat >>confdefs.h <<\_ACEOF
41327#define wxUSE_PROGRESSDLG 1
41328_ACEOF
41329
41330 fi
41331fi
41332
41333if test "$wxUSE_SPLASH" = "yes"; then
41334 cat >>confdefs.h <<\_ACEOF
41335#define wxUSE_SPLASH 1
41336_ACEOF
41337
2057db16 41338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41339fi
41340
41341if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41342 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41343 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41344echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41345 else
41346 cat >>confdefs.h <<\_ACEOF
41347#define wxUSE_STARTUP_TIPS 1
41348_ACEOF
41349
41350 fi
41351fi
41352
41353if test "$wxUSE_TEXTDLG" = "yes"; then
41354 cat >>confdefs.h <<\_ACEOF
41355#define wxUSE_TEXTDLG 1
41356_ACEOF
41357
41358fi
41359
41360if test "$wxUSE_WIZARDDLG" = "yes"; then
41361 cat >>confdefs.h <<\_ACEOF
41362#define wxUSE_WIZARDDLG 1
41363_ACEOF
41364
41365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41366fi
41367
41368
ce756cb0 41369if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41370 if test "$wxUSE_GTK" = 1; then
41371 wxUSE_GSTREAMER="yes"
41372
ce756cb0 41373
dae87f93 41374 succeeded=no
ce756cb0 41375
dae87f93
RN
41376 if test -z "$PKG_CONFIG"; then
41377 # Extract the first word of "pkg-config", so it can be a program name with args.
41378set dummy pkg-config; ac_word=$2
41379echo "$as_me:$LINENO: checking for $ac_word" >&5
41380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41381if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41382 echo $ECHO_N "(cached) $ECHO_C" >&6
41383else
41384 case $PKG_CONFIG in
41385 [\\/]* | ?:[\\/]*)
41386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41387 ;;
41388 *)
41389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41390for as_dir in $PATH
41391do
41392 IFS=$as_save_IFS
41393 test -z "$as_dir" && as_dir=.
41394 for ac_exec_ext in '' $ac_executable_extensions; do
41395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41398 break 2
41399 fi
41400done
41401done
41402
41403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41404 ;;
41405esac
41406fi
41407PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41408
41409if test -n "$PKG_CONFIG"; then
41410 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41411echo "${ECHO_T}$PKG_CONFIG" >&6
41412else
41413 echo "$as_me:$LINENO: result: no" >&5
41414echo "${ECHO_T}no" >&6
41415fi
41416
41417 fi
41418
41419 if test "$PKG_CONFIG" = "no" ; then
41420 echo "*** The pkg-config script could not be found. Make sure it is"
41421 echo "*** in your path, or set the PKG_CONFIG environment variable"
41422 echo "*** to the full path to pkg-config."
41423 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41424 else
41425 PKG_CONFIG_MIN_VERSION=0.9.0
41426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41427 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41428echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41429
41430 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41431 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41432echo "${ECHO_T}yes" >&6
dae87f93 41433 succeeded=yes
ce756cb0 41434
dae87f93
RN
41435 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41436echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41437 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41438 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41439echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41440
41441 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41442echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41443 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41444 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41445echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41446 else
41447 GSTREAMER_CFLAGS=""
41448 GSTREAMER_LIBS=""
41449 ## If we have a custom action on failure, don't print errors, but
41450 ## do set a variable so people can do so.
41451 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41452
dae87f93
RN
41453 fi
41454
41455
41456
41457 else
41458 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41459 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41460 fi
41461 fi
41462
41463 if test $succeeded = yes; then
41464
41465 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41466 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41467
ce756cb0 41468 else
dae87f93
RN
41469
41470 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41471echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41472 wxUSE_GSTREAMER="no"
41473
41474 fi
41475
41476
41477
41478
41479
41480 if test "x$GST_INSPECT" == "x"; then
41481 # Extract the first word of "gst-inspect", so it can be a program name with args.
41482set dummy gst-inspect; ac_word=$2
41483echo "$as_me:$LINENO: checking for $ac_word" >&5
41484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41485if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41486 echo $ECHO_N "(cached) $ECHO_C" >&6
41487else
41488 if test -n "$GST_INSPECT"; then
41489 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41490else
41491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41492for as_dir in $PATH
41493do
41494 IFS=$as_save_IFS
41495 test -z "$as_dir" && as_dir=.
41496 for ac_exec_ext in '' $ac_executable_extensions; do
41497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41498 ac_cv_prog_GST_INSPECT="gst-inspect"
41499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41500 break 2
ce756cb0 41501 fi
dae87f93
RN
41502done
41503done
41504
41505fi
41506fi
41507GST_INSPECT=$ac_cv_prog_GST_INSPECT
41508if test -n "$GST_INSPECT"; then
41509 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41510echo "${ECHO_T}$GST_INSPECT" >&6
41511else
41512 echo "$as_me:$LINENO: result: no" >&5
41513echo "${ECHO_T}no" >&6
41514fi
41515
41516 fi
41517
41518 if test "x$GST_INSPECT" != "x"; then
41519 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41520echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41521 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41522 echo "$as_me:$LINENO: result: found." >&5
41523echo "${ECHO_T}found." >&6
ce756cb0 41524
ce756cb0 41525 else
dae87f93
RN
41526 echo "$as_me:$LINENO: result: not found." >&5
41527echo "${ECHO_T}not found." >&6
41528
41529 wxUSE_GSTREAMER="no"
41530 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41531echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41532
41533 fi
41534 fi
41535
41536
41537 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41538echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41539if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41540 echo $ECHO_N "(cached) $ECHO_C" >&6
41541else
41542 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41543/* confdefs.h. */
41544_ACEOF
41545cat confdefs.h >>conftest.$ac_ext
41546cat >>conftest.$ac_ext <<_ACEOF
41547/* end confdefs.h. */
dae87f93 41548#include <gst/gst.h>
ce756cb0 41549
dae87f93 41550#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
41551_ACEOF
41552rm -f conftest.$ac_objext
41553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41554 (eval $ac_compile) 2>conftest.er1
41555 ac_status=$?
41556 grep -v '^ *+' conftest.er1 >conftest.err
41557 rm -f conftest.er1
41558 cat conftest.err >&5
41559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41560 (exit $ac_status); } &&
6ebeb4c7 41561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
41562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41563 (eval $ac_try) 2>&5
41564 ac_status=$?
41565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41566 (exit $ac_status); }; } &&
41567 { ac_try='test -s conftest.$ac_objext'
41568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41569 (eval $ac_try) 2>&5
41570 ac_status=$?
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); }; }; then
dae87f93 41573 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
41574else
41575 echo "$as_me: failed program was:" >&5
41576sed 's/^/| /' conftest.$ac_ext >&5
41577
dae87f93 41578ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
41579fi
41580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
41581fi
41582echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41583echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
41584if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
41585 :
41586else
ce756cb0 41587
dae87f93
RN
41588 wxUSE_GSTREAMER="no"
41589 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
41590echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 41591
dae87f93 41592fi
ce756cb0 41593
dae87f93
RN
41594
41595
41596 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
41597echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
41598
41599ac_find_libraries=
41600for ac_dir in $SEARCH_LIB /usr/lib;
41601 do
3eca31dc 41602 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
41603 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
41604 ac_find_libraries=$ac_dir
41605 break 2
41606 fi
41607 done
41608 done
41609
ce756cb0 41610
dae87f93
RN
41611 if test "$ac_find_libraries" = "" ; then
41612 echo "$as_me:$LINENO: result: no" >&5
41613echo "${ECHO_T}no" >&6
41614 wxUSE_GSTREAMER="no"
41615 else
41616 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41617echo "${ECHO_T}yes" >&6
dae87f93 41618 fi
ce756cb0 41619
dae87f93
RN
41620 if test "$wxUSE_GSTREAMER" = "yes"; then
41621 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
41622#define wxUSE_GSTREAMER 1
41623_ACEOF
41624
dae87f93
RN
41625 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
41626echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
41627 fi
41628 fi
41629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
41630 cat >>confdefs.h <<\_ACEOF
41631#define wxUSE_MEDIACTRL 1
41632_ACEOF
41633
41634fi
41635
41636
a848cd7e
SC
41637if test "$cross_compiling" = "yes"; then
41638 OSINFO="\"$host\""
41639else
41640 OSINFO=`uname -s -r -m`
41641 OSINFO="\"$OSINFO\""
41642fi
41643
41644cat >>confdefs.h <<_ACEOF
41645#define WXWIN_OS_DESCRIPTION $OSINFO
41646_ACEOF
41647
41648
41649
41650if test "x$prefix" != "xNONE"; then
41651 wxPREFIX=$prefix
41652else
41653 wxPREFIX=$ac_default_prefix
41654fi
41655
41656cat >>confdefs.h <<_ACEOF
41657#define wxINSTALL_PREFIX "$wxPREFIX"
41658_ACEOF
41659
41660
a848cd7e
SC
41661
41662
41663CORE_BASE_LIBS="net base"
41664CORE_GUI_LIBS="adv core"
41665
41666if test "$wxUSE_XML" = "yes" ; then
41667 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41668fi
41669if test "$wxUSE_ODBC" != "no" ; then
41670 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41671 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41672fi
41673if test "$wxUSE_HTML" = "yes" ; then
41674 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41675fi
61639efb
VZ
41676if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41677 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41678fi
9a8f0513
VS
41679if test "$wxUSE_XRC" = "yes" ; then
41680 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41681fi
a848cd7e
SC
41682
41683if test "$wxUSE_GUI" != "yes"; then
41684 CORE_GUI_LIBS=""
41685fi
41686
41687
41688
41689
41690
41691
41692
41693
41694if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41695 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41696 if test "$USE_DARWIN" = 1; then
41697 LDFLAGS="$LDFLAGS -framework QuickTime"
41698 else
41699 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41700 fi
07bea8f0 41701 fi
5dcf30a0 41702 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41703 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41704 else
41705 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41706 fi
a848cd7e
SC
41707fi
41708if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41709 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41710 if test "$wxUSE_MEDIACTRL" = "yes"; then
41711 LDFLAGS="$LDFLAGS -framework QuickTime"
41712 fi
a848cd7e 41713fi
19b27e78
MW
41714if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41715 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41716fi
a848cd7e
SC
41717
41718
41719LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41720
41721have_cos=0
41722have_floor=0
41723
41724for ac_func in cos
41725do
41726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41727echo "$as_me:$LINENO: checking for $ac_func" >&5
41728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41729if eval "test \"\${$as_ac_var+set}\" = set"; then
41730 echo $ECHO_N "(cached) $ECHO_C" >&6
41731else
41732 cat >conftest.$ac_ext <<_ACEOF
41733/* confdefs.h. */
41734_ACEOF
41735cat confdefs.h >>conftest.$ac_ext
41736cat >>conftest.$ac_ext <<_ACEOF
41737/* end confdefs.h. */
ac1cb8d3
VS
41738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41740#define $ac_func innocuous_$ac_func
41741
a848cd7e
SC
41742/* System header to define __stub macros and hopefully few prototypes,
41743 which can conflict with char $ac_func (); below.
41744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41745 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41746
a848cd7e
SC
41747#ifdef __STDC__
41748# include <limits.h>
41749#else
41750# include <assert.h>
41751#endif
ac1cb8d3
VS
41752
41753#undef $ac_func
41754
a848cd7e
SC
41755/* Override any gcc2 internal prototype to avoid an error. */
41756#ifdef __cplusplus
41757extern "C"
41758{
41759#endif
41760/* We use char because int might match the return type of a gcc2
41761 builtin and then its argument prototype would still apply. */
41762char $ac_func ();
41763/* The GNU C library defines this for functions which it implements
41764 to always fail with ENOSYS. Some functions are actually named
41765 something starting with __ and the normal name is an alias. */
41766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41767choke me
41768#else
41769char (*f) () = $ac_func;
41770#endif
41771#ifdef __cplusplus
41772}
41773#endif
41774
41775int
41776main ()
41777{
41778return f != $ac_func;
41779 ;
41780 return 0;
41781}
41782_ACEOF
41783rm -f conftest.$ac_objext conftest$ac_exeext
41784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41785 (eval $ac_link) 2>conftest.er1
a848cd7e 41786 ac_status=$?
ac1cb8d3
VS
41787 grep -v '^ *+' conftest.er1 >conftest.err
41788 rm -f conftest.er1
41789 cat conftest.err >&5
a848cd7e
SC
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
6ebeb4c7 41792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794 (eval $ac_try) 2>&5
41795 ac_status=$?
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; } &&
41798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41800 (eval $ac_try) 2>&5
41801 ac_status=$?
41802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803 (exit $ac_status); }; }; then
41804 eval "$as_ac_var=yes"
41805else
41806 echo "$as_me: failed program was:" >&5
41807sed 's/^/| /' conftest.$ac_ext >&5
41808
41809eval "$as_ac_var=no"
41810fi
ac1cb8d3
VS
41811rm -f conftest.err conftest.$ac_objext \
41812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41813fi
41814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41816if test `eval echo '${'$as_ac_var'}'` = yes; then
41817 cat >>confdefs.h <<_ACEOF
41818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41819_ACEOF
41820 have_cos=1
41821fi
41822done
41823
41824
41825for ac_func in floor
41826do
41827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41828echo "$as_me:$LINENO: checking for $ac_func" >&5
41829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41830if eval "test \"\${$as_ac_var+set}\" = set"; then
41831 echo $ECHO_N "(cached) $ECHO_C" >&6
41832else
41833 cat >conftest.$ac_ext <<_ACEOF
41834/* confdefs.h. */
41835_ACEOF
41836cat confdefs.h >>conftest.$ac_ext
41837cat >>conftest.$ac_ext <<_ACEOF
41838/* end confdefs.h. */
ac1cb8d3
VS
41839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41841#define $ac_func innocuous_$ac_func
41842
a848cd7e
SC
41843/* System header to define __stub macros and hopefully few prototypes,
41844 which can conflict with char $ac_func (); below.
41845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41847
a848cd7e
SC
41848#ifdef __STDC__
41849# include <limits.h>
41850#else
41851# include <assert.h>
41852#endif
ac1cb8d3
VS
41853
41854#undef $ac_func
41855
a848cd7e
SC
41856/* Override any gcc2 internal prototype to avoid an error. */
41857#ifdef __cplusplus
41858extern "C"
41859{
41860#endif
41861/* We use char because int might match the return type of a gcc2
41862 builtin and then its argument prototype would still apply. */
41863char $ac_func ();
41864/* The GNU C library defines this for functions which it implements
41865 to always fail with ENOSYS. Some functions are actually named
41866 something starting with __ and the normal name is an alias. */
41867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41868choke me
41869#else
41870char (*f) () = $ac_func;
41871#endif
41872#ifdef __cplusplus
41873}
41874#endif
41875
41876int
41877main ()
41878{
41879return f != $ac_func;
41880 ;
41881 return 0;
41882}
41883_ACEOF
41884rm -f conftest.$ac_objext conftest$ac_exeext
41885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41886 (eval $ac_link) 2>conftest.er1
a848cd7e 41887 ac_status=$?
ac1cb8d3
VS
41888 grep -v '^ *+' conftest.er1 >conftest.err
41889 rm -f conftest.er1
41890 cat conftest.err >&5
a848cd7e
SC
41891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892 (exit $ac_status); } &&
6ebeb4c7 41893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41895 (eval $ac_try) 2>&5
41896 ac_status=$?
41897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898 (exit $ac_status); }; } &&
41899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901 (eval $ac_try) 2>&5
41902 ac_status=$?
41903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904 (exit $ac_status); }; }; then
41905 eval "$as_ac_var=yes"
41906else
41907 echo "$as_me: failed program was:" >&5
41908sed 's/^/| /' conftest.$ac_ext >&5
41909
41910eval "$as_ac_var=no"
41911fi
ac1cb8d3
VS
41912rm -f conftest.err conftest.$ac_objext \
41913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41914fi
41915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41917if test `eval echo '${'$as_ac_var'}'` = yes; then
41918 cat >>confdefs.h <<_ACEOF
41919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41920_ACEOF
41921 have_floor=1
41922fi
41923done
41924
41925echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41926echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41927if test "$have_cos" = 1 -a "$have_floor" = 1; then
41928 echo "$as_me:$LINENO: result: yes" >&5
41929echo "${ECHO_T}yes" >&6
41930else
41931 echo "$as_me:$LINENO: result: no" >&5
41932echo "${ECHO_T}no" >&6
41933 LIBS="$LIBS -lm"
41934 # use different functions to avoid configure caching
41935 have_sin=0
41936 have_ceil=0
41937
41938for ac_func in sin
41939do
41940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41941echo "$as_me:$LINENO: checking for $ac_func" >&5
41942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41943if eval "test \"\${$as_ac_var+set}\" = set"; then
41944 echo $ECHO_N "(cached) $ECHO_C" >&6
41945else
41946 cat >conftest.$ac_ext <<_ACEOF
41947/* confdefs.h. */
41948_ACEOF
41949cat confdefs.h >>conftest.$ac_ext
41950cat >>conftest.$ac_ext <<_ACEOF
41951/* end confdefs.h. */
ac1cb8d3
VS
41952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41954#define $ac_func innocuous_$ac_func
41955
a848cd7e
SC
41956/* System header to define __stub macros and hopefully few prototypes,
41957 which can conflict with char $ac_func (); below.
41958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41959 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41960
a848cd7e
SC
41961#ifdef __STDC__
41962# include <limits.h>
41963#else
41964# include <assert.h>
41965#endif
ac1cb8d3
VS
41966
41967#undef $ac_func
41968
a848cd7e
SC
41969/* Override any gcc2 internal prototype to avoid an error. */
41970#ifdef __cplusplus
41971extern "C"
41972{
41973#endif
41974/* We use char because int might match the return type of a gcc2
41975 builtin and then its argument prototype would still apply. */
41976char $ac_func ();
41977/* The GNU C library defines this for functions which it implements
41978 to always fail with ENOSYS. Some functions are actually named
41979 something starting with __ and the normal name is an alias. */
41980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41981choke me
41982#else
41983char (*f) () = $ac_func;
41984#endif
41985#ifdef __cplusplus
41986}
41987#endif
41988
41989int
41990main ()
41991{
41992return f != $ac_func;
41993 ;
41994 return 0;
41995}
41996_ACEOF
41997rm -f conftest.$ac_objext conftest$ac_exeext
41998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41999 (eval $ac_link) 2>conftest.er1
a848cd7e 42000 ac_status=$?
ac1cb8d3
VS
42001 grep -v '^ *+' conftest.er1 >conftest.err
42002 rm -f conftest.er1
42003 cat conftest.err >&5
a848cd7e
SC
42004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005 (exit $ac_status); } &&
6ebeb4c7 42006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42009 ac_status=$?
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; } &&
42012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; }; then
42018 eval "$as_ac_var=yes"
42019else
42020 echo "$as_me: failed program was:" >&5
42021sed 's/^/| /' conftest.$ac_ext >&5
42022
42023eval "$as_ac_var=no"
42024fi
ac1cb8d3
VS
42025rm -f conftest.err conftest.$ac_objext \
42026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42027fi
42028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42030if test `eval echo '${'$as_ac_var'}'` = yes; then
42031 cat >>confdefs.h <<_ACEOF
42032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42033_ACEOF
42034 have_sin=1
42035fi
42036done
42037
42038
42039for ac_func in ceil
42040do
42041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42042echo "$as_me:$LINENO: checking for $ac_func" >&5
42043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42044if eval "test \"\${$as_ac_var+set}\" = set"; then
42045 echo $ECHO_N "(cached) $ECHO_C" >&6
42046else
42047 cat >conftest.$ac_ext <<_ACEOF
42048/* confdefs.h. */
42049_ACEOF
42050cat confdefs.h >>conftest.$ac_ext
42051cat >>conftest.$ac_ext <<_ACEOF
42052/* end confdefs.h. */
ac1cb8d3
VS
42053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42055#define $ac_func innocuous_$ac_func
42056
a848cd7e
SC
42057/* System header to define __stub macros and hopefully few prototypes,
42058 which can conflict with char $ac_func (); below.
42059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42060 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42061
a848cd7e
SC
42062#ifdef __STDC__
42063# include <limits.h>
42064#else
42065# include <assert.h>
42066#endif
ac1cb8d3
VS
42067
42068#undef $ac_func
42069
a848cd7e
SC
42070/* Override any gcc2 internal prototype to avoid an error. */
42071#ifdef __cplusplus
42072extern "C"
42073{
42074#endif
42075/* We use char because int might match the return type of a gcc2
42076 builtin and then its argument prototype would still apply. */
42077char $ac_func ();
42078/* The GNU C library defines this for functions which it implements
42079 to always fail with ENOSYS. Some functions are actually named
42080 something starting with __ and the normal name is an alias. */
42081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42082choke me
42083#else
42084char (*f) () = $ac_func;
42085#endif
42086#ifdef __cplusplus
42087}
42088#endif
42089
42090int
42091main ()
42092{
42093return f != $ac_func;
42094 ;
42095 return 0;
42096}
42097_ACEOF
42098rm -f conftest.$ac_objext conftest$ac_exeext
42099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42100 (eval $ac_link) 2>conftest.er1
a848cd7e 42101 ac_status=$?
ac1cb8d3
VS
42102 grep -v '^ *+' conftest.er1 >conftest.err
42103 rm -f conftest.er1
42104 cat conftest.err >&5
a848cd7e
SC
42105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106 (exit $ac_status); } &&
6ebeb4c7 42107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109 (eval $ac_try) 2>&5
42110 ac_status=$?
42111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112 (exit $ac_status); }; } &&
42113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42115 (eval $ac_try) 2>&5
42116 ac_status=$?
42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); }; }; then
42119 eval "$as_ac_var=yes"
42120else
42121 echo "$as_me: failed program was:" >&5
42122sed 's/^/| /' conftest.$ac_ext >&5
42123
42124eval "$as_ac_var=no"
42125fi
ac1cb8d3
VS
42126rm -f conftest.err conftest.$ac_objext \
42127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42128fi
42129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42131if test `eval echo '${'$as_ac_var'}'` = yes; then
42132 cat >>confdefs.h <<_ACEOF
42133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42134_ACEOF
42135 have_ceil=1
42136fi
42137done
42138
42139 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42140echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42141 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42142 echo "$as_me:$LINENO: result: yes" >&5
42143echo "${ECHO_T}yes" >&6
42144 else
42145 echo "$as_me:$LINENO: result: no" >&5
42146echo "${ECHO_T}no" >&6
42147 # not sure we should warn the user, crash, etc.
42148 fi
42149fi
42150
42151if test "$wxUSE_GUI" = "yes"; then
42152
42153
8bce5cda
MW
42154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42155 dynamic erase event exec font image minimal mobile \
42156 mobile/wxedit mobile/styles propsize render \
42157 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42158
42159 if test "$wxUSE_MONOLITHIC" != "yes"; then
42160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42161 fi
0b78747f 42162 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42164 if test "$wxUSE_UNIVERSAL" != "yes"; then
42165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42166 fi
42167 fi
42168 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42170 fi
a848cd7e
SC
42171else
42172 SAMPLES_SUBDIRS="console"
42173fi
42174
42175
ceec2216 42176INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42177-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42178
42179if test "$GXX" = yes ; then
6ebeb4c7 42180 CWARNINGS="-Wall -Wundef"
5294a27e 42181 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 42182fi
a848cd7e
SC
42183
42184EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42185
0c3c69fc 42186CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42187CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42188CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42189
95986553
DE
42190if test "x$MWCC" = "xyes"; then
42191
42192 CC="$CC -cwd source -I-"
42193 CXX="$CXX -cwd source -I-"
42194fi
42195
a848cd7e 42196
0c3c69fc 42197LIBS=`echo $LIBS`
a848cd7e
SC
42198EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42199EXTRALIBS_XML="$EXPAT_LINK"
42200EXTRALIBS_HTML="$MSPACK_LINK"
42201EXTRALIBS_ODBC="$ODBC_LINK"
42202if test "$wxUSE_GUI" = "yes"; then
2e350179 42203 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42204fi
42205if test "$wxUSE_OPENGL" = "yes"; then
42206 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42207fi
42208
42209LDFLAGS="$LDFLAGS $PROFILE"
42210
42211if test "$wxUSE_GTK" = 1; then
42212 WXCONFIG_INCLUDE=
42213else
42214 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42215fi
42216
42217WXCONFIG_EXTRALIBS="$LIBS"
42218
42219if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42220 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42221fi
42222if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42223 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42224fi
42225if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42226 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42227fi
42228if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42229 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42230fi
42231if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42232 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42233fi
42234if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42235 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42236fi
42237if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42238 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42239fi
42240
42241for i in $wxconfig_3rdparty ; do
74802184 42242 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42243done
42244
42245
42246if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42247 WXUNIV=1
42248else
42249 WXUNIV=0
42250fi
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260if test $wxUSE_MONOLITHIC = "yes" ; then
42261 MONOLITHIC=1
42262else
42263 MONOLITHIC=0
42264fi
42265
42266if test $wxUSE_PLUGINS = "yes" ; then
42267 USE_PLUGINS=1
42268else
42269 USE_PLUGINS=0
42270fi
42271
42272if test $wxUSE_ODBC != "no" ; then
42273 USE_ODBC=1
42274else
42275 USE_ODBC=0
42276fi
42277
16358932
VZ
42278if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42279 USE_QA=1
42280else
42281 USE_QA=0
42282fi
42283
a848cd7e
SC
42284if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42285 OFFICIAL_BUILD=1
42286else
42287 OFFICIAL_BUILD=0
42288fi
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
ceec2216 42308
d1c38808 42309
a848cd7e
SC
42310
42311
42312TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42313
42314
42315
42316
42317
42318
42319
42320
4d4ff94c
VZ
42321case "$TOOLKIT" in
42322 GTK)
42323 TOOLKIT_USER="GTK+"
42324 if test "$WXGTK20" = 1; then
42325 TOOLKIT_USER="$TOOLKIT_USER 2"
42326 fi
9a8f0513 42327 ;;
4d4ff94c
VZ
42328
42329 *)
42330 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42331 ;;
4d4ff94c 42332esac
a848cd7e 42333
fb00f58d
JS
42334if test "$wxUSE_WINE" = "yes"; then
42335 BAKEFILE_FORCE_PLATFORM=win32
42336fi
42337
9a8f0513 42338
1e9e8aba
DE
42339
42340
a848cd7e
SC
42341 if test "x$BAKEFILE_HOST" = "x"; then
42342 BAKEFILE_HOST="${host}"
42343 fi
42344
42345 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42346
42347 if test -n "$ac_tool_prefix"; then
42348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42349set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42350echo "$as_me:$LINENO: checking for $ac_word" >&5
42351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42352if test "${ac_cv_prog_RANLIB+set}" = set; then
42353 echo $ECHO_N "(cached) $ECHO_C" >&6
42354else
42355 if test -n "$RANLIB"; then
42356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42357else
42358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42359for as_dir in $PATH
42360do
42361 IFS=$as_save_IFS
42362 test -z "$as_dir" && as_dir=.
42363 for ac_exec_ext in '' $ac_executable_extensions; do
42364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42367 break 2
42368 fi
42369done
42370done
42371
42372fi
42373fi
42374RANLIB=$ac_cv_prog_RANLIB
42375if test -n "$RANLIB"; then
42376 echo "$as_me:$LINENO: result: $RANLIB" >&5
42377echo "${ECHO_T}$RANLIB" >&6
42378else
42379 echo "$as_me:$LINENO: result: no" >&5
42380echo "${ECHO_T}no" >&6
42381fi
42382
42383fi
42384if test -z "$ac_cv_prog_RANLIB"; then
42385 ac_ct_RANLIB=$RANLIB
42386 # Extract the first word of "ranlib", so it can be a program name with args.
42387set dummy ranlib; ac_word=$2
42388echo "$as_me:$LINENO: checking for $ac_word" >&5
42389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42390if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42391 echo $ECHO_N "(cached) $ECHO_C" >&6
42392else
42393 if test -n "$ac_ct_RANLIB"; then
42394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42395else
42396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42397for as_dir in $PATH
42398do
42399 IFS=$as_save_IFS
42400 test -z "$as_dir" && as_dir=.
42401 for ac_exec_ext in '' $ac_executable_extensions; do
42402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42403 ac_cv_prog_ac_ct_RANLIB="ranlib"
42404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42405 break 2
42406 fi
42407done
42408done
42409
42410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
42411fi
42412fi
42413ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
42414if test -n "$ac_ct_RANLIB"; then
42415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
42416echo "${ECHO_T}$ac_ct_RANLIB" >&6
42417else
42418 echo "$as_me:$LINENO: result: no" >&5
42419echo "${ECHO_T}no" >&6
42420fi
42421
42422 RANLIB=$ac_ct_RANLIB
42423else
42424 RANLIB="$ac_cv_prog_RANLIB"
42425fi
42426
42427 # Find a good install program. We prefer a C program (faster),
42428# so one script is as good as another. But avoid the broken or
42429# incompatible versions:
42430# SysV /etc/install, /usr/sbin/install
42431# SunOS /usr/etc/install
42432# IRIX /sbin/install
42433# AIX /bin/install
42434# AmigaOS /C/install, which installs bootblocks on floppy discs
42435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42436# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42438# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42439# ./install, which can be erroneously created by make from ./install.sh.
42440echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42441echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42442if test -z "$INSTALL"; then
42443if test "${ac_cv_path_install+set}" = set; then
42444 echo $ECHO_N "(cached) $ECHO_C" >&6
42445else
42446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42447for as_dir in $PATH
42448do
42449 IFS=$as_save_IFS
42450 test -z "$as_dir" && as_dir=.
42451 # Account for people who put trailing slashes in PATH elements.
42452case $as_dir/ in
42453 ./ | .// | /cC/* | \
42454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42456 /usr/ucb/* ) ;;
42457 *)
42458 # OSF1 and SCO ODT 3.0 have their own names for install.
42459 # Don't use installbsd from OSF since it installs stuff as root
42460 # by default.
42461 for ac_prog in ginstall scoinst install; do
42462 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42464 if test $ac_prog = install &&
42465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42466 # AIX install. It has an incompatible calling convention.
42467 :
42468 elif test $ac_prog = install &&
42469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42470 # program-specific install script used by HP pwplus--don't use.
42471 :
42472 else
42473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42474 break 3
42475 fi
42476 fi
a848cd7e
SC
42477 done
42478 done
42479 ;;
42480esac
42481done
42482
42483
42484fi
42485 if test "${ac_cv_path_install+set}" = set; then
42486 INSTALL=$ac_cv_path_install
42487 else
42488 # As a last resort, use the slow shell script. We don't cache a
42489 # path for INSTALL within a source directory, because that will
42490 # break other packages using the cache if that directory is
42491 # removed, or if the path is relative.
42492 INSTALL=$ac_install_sh
42493 fi
42494fi
42495echo "$as_me:$LINENO: result: $INSTALL" >&5
42496echo "${ECHO_T}$INSTALL" >&6
42497
42498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42499# It thinks the first close brace ends the variable substitution.
42500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42501
42502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42503
42504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42505
42506 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42507echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42508LN_S=$as_ln_s
42509if test "$LN_S" = "ln -s"; then
42510 echo "$as_me:$LINENO: result: yes" >&5
42511echo "${ECHO_T}yes" >&6
42512else
42513 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42514echo "${ECHO_T}no, using $LN_S" >&6
42515fi
42516
42517
42518 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42519echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42520set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42521if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42522 echo $ECHO_N "(cached) $ECHO_C" >&6
42523else
42524 cat >conftest.make <<\_ACEOF
42525all:
42526 @echo 'ac_maketemp="$(MAKE)"'
42527_ACEOF
42528# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42529eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42530if test -n "$ac_maketemp"; then
42531 eval ac_cv_prog_make_${ac_make}_set=yes
42532else
42533 eval ac_cv_prog_make_${ac_make}_set=no
42534fi
42535rm -f conftest.make
42536fi
42537if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42538 echo "$as_me:$LINENO: result: yes" >&5
42539echo "${ECHO_T}yes" >&6
42540 SET_MAKE=
42541else
42542 echo "$as_me:$LINENO: result: no" >&5
42543echo "${ECHO_T}no" >&6
42544 SET_MAKE="MAKE=${MAKE-make}"
42545fi
42546
42547
42548
42549 if test -n "$ac_tool_prefix"; then
42550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
42551set dummy ${ac_tool_prefix}ar; ac_word=$2
42552echo "$as_me:$LINENO: checking for $ac_word" >&5
42553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42554if test "${ac_cv_prog_AR+set}" = set; then
42555 echo $ECHO_N "(cached) $ECHO_C" >&6
42556else
42557 if test -n "$AR"; then
42558 ac_cv_prog_AR="$AR" # Let the user override the test.
42559else
42560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42561for as_dir in $PATH
42562do
42563 IFS=$as_save_IFS
42564 test -z "$as_dir" && as_dir=.
42565 for ac_exec_ext in '' $ac_executable_extensions; do
42566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42567 ac_cv_prog_AR="${ac_tool_prefix}ar"
42568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42569 break 2
42570 fi
42571done
42572done
42573
42574fi
42575fi
42576AR=$ac_cv_prog_AR
42577if test -n "$AR"; then
42578 echo "$as_me:$LINENO: result: $AR" >&5
42579echo "${ECHO_T}$AR" >&6
42580else
42581 echo "$as_me:$LINENO: result: no" >&5
42582echo "${ECHO_T}no" >&6
42583fi
42584
42585fi
42586if test -z "$ac_cv_prog_AR"; then
42587 ac_ct_AR=$AR
42588 # Extract the first word of "ar", so it can be a program name with args.
42589set dummy ar; ac_word=$2
42590echo "$as_me:$LINENO: checking for $ac_word" >&5
42591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42592if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42593 echo $ECHO_N "(cached) $ECHO_C" >&6
42594else
42595 if test -n "$ac_ct_AR"; then
42596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42597else
42598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42599for as_dir in $PATH
42600do
42601 IFS=$as_save_IFS
42602 test -z "$as_dir" && as_dir=.
42603 for ac_exec_ext in '' $ac_executable_extensions; do
42604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42605 ac_cv_prog_ac_ct_AR="ar"
42606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42607 break 2
42608 fi
42609done
42610done
42611
42612 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
42613fi
42614fi
42615ac_ct_AR=$ac_cv_prog_ac_ct_AR
42616if test -n "$ac_ct_AR"; then
42617 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
42618echo "${ECHO_T}$ac_ct_AR" >&6
42619else
42620 echo "$as_me:$LINENO: result: no" >&5
42621echo "${ECHO_T}no" >&6
42622fi
42623
42624 AR=$ac_ct_AR
42625else
42626 AR="$ac_cv_prog_AR"
42627fi
42628
42629 if test -n "$ac_tool_prefix"; then
42630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42631set dummy ${ac_tool_prefix}strip; ac_word=$2
42632echo "$as_me:$LINENO: checking for $ac_word" >&5
42633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42634if test "${ac_cv_prog_STRIP+set}" = set; then
42635 echo $ECHO_N "(cached) $ECHO_C" >&6
42636else
42637 if test -n "$STRIP"; then
42638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42639else
42640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42641for as_dir in $PATH
42642do
42643 IFS=$as_save_IFS
42644 test -z "$as_dir" && as_dir=.
42645 for ac_exec_ext in '' $ac_executable_extensions; do
42646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42649 break 2
42650 fi
42651done
42652done
42653
42654fi
42655fi
42656STRIP=$ac_cv_prog_STRIP
42657if test -n "$STRIP"; then
42658 echo "$as_me:$LINENO: result: $STRIP" >&5
42659echo "${ECHO_T}$STRIP" >&6
42660else
42661 echo "$as_me:$LINENO: result: no" >&5
42662echo "${ECHO_T}no" >&6
42663fi
42664
42665fi
42666if test -z "$ac_cv_prog_STRIP"; then
42667 ac_ct_STRIP=$STRIP
42668 # Extract the first word of "strip", so it can be a program name with args.
42669set dummy strip; ac_word=$2
42670echo "$as_me:$LINENO: checking for $ac_word" >&5
42671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42672if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42673 echo $ECHO_N "(cached) $ECHO_C" >&6
42674else
42675 if test -n "$ac_ct_STRIP"; then
42676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42677else
42678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42679for as_dir in $PATH
42680do
42681 IFS=$as_save_IFS
42682 test -z "$as_dir" && as_dir=.
42683 for ac_exec_ext in '' $ac_executable_extensions; do
42684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42685 ac_cv_prog_ac_ct_STRIP="strip"
42686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42687 break 2
42688 fi
42689done
42690done
42691
42692 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42693fi
42694fi
42695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42696if test -n "$ac_ct_STRIP"; then
42697 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42698echo "${ECHO_T}$ac_ct_STRIP" >&6
42699else
42700 echo "$as_me:$LINENO: result: no" >&5
42701echo "${ECHO_T}no" >&6
42702fi
42703
42704 STRIP=$ac_ct_STRIP
42705else
42706 STRIP="$ac_cv_prog_STRIP"
42707fi
42708
42709 if test -n "$ac_tool_prefix"; then
42710 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42711set dummy ${ac_tool_prefix}nm; ac_word=$2
42712echo "$as_me:$LINENO: checking for $ac_word" >&5
42713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42714if test "${ac_cv_prog_NM+set}" = set; then
42715 echo $ECHO_N "(cached) $ECHO_C" >&6
42716else
42717 if test -n "$NM"; then
42718 ac_cv_prog_NM="$NM" # Let the user override the test.
42719else
42720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42721for as_dir in $PATH
42722do
42723 IFS=$as_save_IFS
42724 test -z "$as_dir" && as_dir=.
42725 for ac_exec_ext in '' $ac_executable_extensions; do
42726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42727 ac_cv_prog_NM="${ac_tool_prefix}nm"
42728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42729 break 2
42730 fi
42731done
42732done
42733
42734fi
42735fi
42736NM=$ac_cv_prog_NM
42737if test -n "$NM"; then
42738 echo "$as_me:$LINENO: result: $NM" >&5
42739echo "${ECHO_T}$NM" >&6
42740else
42741 echo "$as_me:$LINENO: result: no" >&5
42742echo "${ECHO_T}no" >&6
42743fi
42744
42745fi
42746if test -z "$ac_cv_prog_NM"; then
42747 ac_ct_NM=$NM
42748 # Extract the first word of "nm", so it can be a program name with args.
42749set dummy nm; ac_word=$2
42750echo "$as_me:$LINENO: checking for $ac_word" >&5
42751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42752if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42753 echo $ECHO_N "(cached) $ECHO_C" >&6
42754else
42755 if test -n "$ac_ct_NM"; then
42756 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42757else
42758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42759for as_dir in $PATH
42760do
42761 IFS=$as_save_IFS
42762 test -z "$as_dir" && as_dir=.
42763 for ac_exec_ext in '' $ac_executable_extensions; do
42764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42765 ac_cv_prog_ac_ct_NM="nm"
42766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42767 break 2
42768 fi
42769done
42770done
42771
42772 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42773fi
42774fi
42775ac_ct_NM=$ac_cv_prog_ac_ct_NM
42776if test -n "$ac_ct_NM"; then
42777 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42778echo "${ECHO_T}$ac_ct_NM" >&6
42779else
42780 echo "$as_me:$LINENO: result: no" >&5
42781echo "${ECHO_T}no" >&6
42782fi
42783
42784 NM=$ac_ct_NM
42785else
42786 NM="$ac_cv_prog_NM"
42787fi
42788
42789
42790 case ${BAKEFILE_HOST} in
42791 *-hp-hpux* )
1e9e8aba 42792 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42793 ;;
42794 *) INSTALL_DIR="$INSTALL -d"
42795 ;;
42796 esac
42797
42798
42799 LDFLAGS_GUI=
42800 case ${BAKEFILE_HOST} in
42801 *-*-cygwin* | *-*-mingw32* )
42802 LDFLAGS_GUI="-mwindows"
42803 esac
42804
42805
42806 fi
42807
42808 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42809echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42810if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42811 echo $ECHO_N "(cached) $ECHO_C" >&6
42812else
42813
42814 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42815 egrep -s GNU > /dev/null); then
42816 bakefile_cv_prog_makeisgnu="yes"
42817 else
42818 bakefile_cv_prog_makeisgnu="no"
42819 fi
42820
42821fi
42822echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42823echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42824
42825 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42826 IF_GNU_MAKE=""
42827 else
42828 IF_GNU_MAKE="#"
42829 fi
42830
42831
42832
42833 PLATFORM_UNIX=0
42834 PLATFORM_WIN32=0
42835 PLATFORM_MSDOS=0
42836 PLATFORM_MAC=0
1e9e8aba 42837 PLATFORM_MACOS=0
a848cd7e
SC
42838 PLATFORM_MACOSX=0
42839 PLATFORM_OS2=0
1e9e8aba 42840 PLATFORM_BEOS=0
a848cd7e
SC
42841
42842 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42843 case "${BAKEFILE_HOST}" in
810b94f0 42844 *-*-mingw32* )
a848cd7e
SC
42845 PLATFORM_WIN32=1
42846 ;;
42847 *-pc-msdosdjgpp )
42848 PLATFORM_MSDOS=1
42849 ;;
42850 *-pc-os2_emx | *-pc-os2-emx )
42851 PLATFORM_OS2=1
42852 ;;
47bd5406 42853 *-*-darwin* )
a848cd7e
SC
42854 PLATFORM_MAC=1
42855 PLATFORM_MACOSX=1
42856 ;;
1e9e8aba
DE
42857 *-*-beos* )
42858 PLATFORM_BEOS=1
42859 ;;
42860 powerpc-apple-macos* )
42861 PLATFORM_MAC=1
42862 PLATFORM_MACOS=1
42863 ;;
a848cd7e
SC
42864 * )
42865 PLATFORM_UNIX=1
42866 ;;
42867 esac
42868 else
42869 case "$BAKEFILE_FORCE_PLATFORM" in
42870 win32 )
42871 PLATFORM_WIN32=1
42872 ;;
42873 msdos )
42874 PLATFORM_MSDOS=1
42875 ;;
42876 os2 )
42877 PLATFORM_OS2=1
42878 ;;
42879 darwin )
42880 PLATFORM_MAC=1
42881 PLATFORM_MACOSX=1
42882 ;;
42883 unix )
42884 PLATFORM_UNIX=1
42885 ;;
1e9e8aba
DE
42886 beos )
42887 PLATFORM_BEOS=1
42888 ;;
a848cd7e
SC
42889 * )
42890 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42891echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42892 { (exit 1); exit 1; }; }
42893 ;;
42894 esac
42895 fi
42896
42897
42898
42899
42900
42901
42902
42903
42904
1e9e8aba
DE
42905
42906
a848cd7e
SC
42907 # Check whether --enable-omf or --disable-omf was given.
42908if test "${enable_omf+set}" = set; then
42909 enableval="$enable_omf"
42910 bk_os2_use_omf="$enableval"
42911fi;
42912
42913 case "${BAKEFILE_HOST}" in
42914 *-*-darwin* )
47bd5406
VZ
42915 if test "x$GCC" = "xyes"; then
42916 CFLAGS="$CFLAGS -fno-common"
42917 CXXFLAGS="$CXXFLAGS -fno-common"
42918 fi
42919 if test "x$XLCC" = "xyes"; then
42920 CFLAGS="$CFLAGS -qnocommon"
42921 CXXFLAGS="$CXXFLAGS -qnocommon"
42922 fi
a848cd7e
SC
42923 ;;
42924
42925 *-pc-os2_emx | *-pc-os2-emx )
42926 if test "x$bk_os2_use_omf" = "xyes" ; then
42927 AR=emxomfar
42928 RANLIB=:
42929 LDFLAGS="-Zomf $LDFLAGS"
42930 CFLAGS="-Zomf $CFLAGS"
42931 CXXFLAGS="-Zomf $CXXFLAGS"
42932 OS2_LIBEXT="lib"
42933 else
42934 OS2_LIBEXT="a"
42935 fi
42936 ;;
1e9e8aba
DE
42937
42938 i*86-*-beos* )
42939 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42940 ;;
a848cd7e
SC
42941 esac
42942
42943
42944 SO_SUFFIX="so"
42945 SO_SUFFIX_MODULE="so"
42946 EXEEXT=""
42947 LIBPREFIX="lib"
42948 LIBEXT=".a"
42949 DLLPREFIX="lib"
42950 DLLPREFIX_MODULE=""
42951 DLLIMP_SUFFIX=""
810b94f0 42952 dlldir="$libdir"
a848cd7e
SC
42953
42954 case "${BAKEFILE_HOST}" in
42955 *-hp-hpux* )
42956 SO_SUFFIX="sl"
42957 SO_SUFFIX_MODULE="sl"
42958 ;;
42959 *-*-aix* )
42960 SO_SUFFIX="a"
42961 SO_SUFFIX_MODULE="a"
42962 ;;
810b94f0
MW
42963 *-*-cygwin* )
42964 SO_SUFFIX="dll"
42965 SO_SUFFIX_MODULE="dll"
42966 DLLIMP_SUFFIX="dll.a"
42967 EXEEXT=".exe"
42968 DLLPREFIX="cyg"
42969 dlldir="$bindir"
42970 ;;
42971 *-*-mingw32* )
a848cd7e
SC
42972 SO_SUFFIX="dll"
42973 SO_SUFFIX_MODULE="dll"
42974 DLLIMP_SUFFIX="dll.a"
42975 EXEEXT=".exe"
42976 DLLPREFIX=""
810b94f0 42977 dlldir="$bindir"
a848cd7e
SC
42978 ;;
42979 *-pc-msdosdjgpp )
42980 EXEEXT=".exe"
42981 DLLPREFIX=""
810b94f0 42982 dlldir="$bindir"
a848cd7e
SC
42983 ;;
42984 *-pc-os2_emx | *-pc-os2-emx )
42985 SO_SUFFIX="dll"
42986 SO_SUFFIX_MODULE="dll"
42987 DLLIMP_SUFFIX=$OS2_LIBEXT
42988 EXEEXT=".exe"
42989 DLLPREFIX=""
42990 LIBPREFIX=""
42991 LIBEXT=".$OS2_LIBEXT"
810b94f0 42992 dlldir="$bindir"
a848cd7e 42993 ;;
47bd5406 42994 *-*-darwin* )
a848cd7e
SC
42995 SO_SUFFIX="dylib"
42996 SO_SUFFIX_MODULE="bundle"
42997 ;;
42998 esac
42999
43000 if test "x$DLLIMP_SUFFIX" = "x" ; then
43001 DLLIMP_SUFFIX="$SO_SUFFIX"
43002 fi
43003
43004
43005
43006
43007
43008
43009
43010
43011
43012
43013
810b94f0 43014
1e9e8aba
DE
43015 PIC_FLAG=""
43016 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43017 PIC_FLAG="-fPIC"
43018 fi
43019
1e9e8aba
DE
43020 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43021 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43022 WINDOWS_IMPLIB=0
1e9e8aba 43023
a848cd7e
SC
43024 case "${BAKEFILE_HOST}" in
43025 *-hp-hpux* )
1e9e8aba 43026 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43027 LDFLAGS="$LDFLAGS -L/usr/lib"
43028
43029 SHARED_LD_CC="${CC} -b -o"
43030 SHARED_LD_CXX="${CXX} -b -o"
43031 PIC_FLAG="+Z"
43032 fi
43033 ;;
43034
43035 *-*-linux* )
43036 if test "x$GCC" != "xyes"; then
43037 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43038echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43039if test "${bakefile_cv_prog_icc+set}" = set; then
43040 echo $ECHO_N "(cached) $ECHO_C" >&6
43041else
43042
43043 cat >conftest.$ac_ext <<_ACEOF
43044/* confdefs.h. */
43045_ACEOF
43046cat confdefs.h >>conftest.$ac_ext
43047cat >>conftest.$ac_ext <<_ACEOF
43048/* end confdefs.h. */
43049
43050int
43051main ()
43052{
43053
43054 #ifndef __INTEL_COMPILER
43055 #error Not icc
43056 #endif
43057
43058 ;
43059 return 0;
43060}
43061_ACEOF
43062rm -f conftest.$ac_objext
43063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43064 (eval $ac_compile) 2>conftest.er1
a848cd7e 43065 ac_status=$?
ac1cb8d3
VS
43066 grep -v '^ *+' conftest.er1 >conftest.err
43067 rm -f conftest.er1
43068 cat conftest.err >&5
a848cd7e
SC
43069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43070 (exit $ac_status); } &&
6ebeb4c7 43071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43073 (eval $ac_try) 2>&5
43074 ac_status=$?
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); }; } &&
43077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43079 (eval $ac_try) 2>&5
43080 ac_status=$?
43081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082 (exit $ac_status); }; }; then
43083 bakefile_cv_prog_icc=yes
43084else
43085 echo "$as_me: failed program was:" >&5
43086sed 's/^/| /' conftest.$ac_ext >&5
43087
43088bakefile_cv_prog_icc=no
43089
43090fi
ac1cb8d3 43091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43092
43093fi
43094echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43095echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43096 if test "$bakefile_cv_prog_icc" = "yes"; then
43097 PIC_FLAG="-KPIC"
43098 fi
43099 fi
43100 ;;
43101
43102 *-*-solaris2* )
43103 if test "x$GCC" != xyes ; then
43104 SHARED_LD_CC="${CC} -G -o"
43105 SHARED_LD_CXX="${CXX} -G -o"
43106 PIC_FLAG="-KPIC"
43107 fi
43108 ;;
43109
43110 *-*-darwin* )
43111
43112 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43113echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43114if test "${wx_cv_gcc31+set}" = set; then
43115 echo $ECHO_N "(cached) $ECHO_C" >&6
43116else
43117
43118 cat >conftest.$ac_ext <<_ACEOF
43119/* confdefs.h. */
43120_ACEOF
43121cat confdefs.h >>conftest.$ac_ext
43122cat >>conftest.$ac_ext <<_ACEOF
43123/* end confdefs.h. */
43124
43125int
43126main ()
43127{
43128
43129 #if (__GNUC__ < 3) || \
43130 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43131 #error old gcc
43132 #endif
43133
43134 ;
43135 return 0;
43136}
43137_ACEOF
43138rm -f conftest.$ac_objext
43139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43140 (eval $ac_compile) 2>conftest.er1
a848cd7e 43141 ac_status=$?
ac1cb8d3
VS
43142 grep -v '^ *+' conftest.er1 >conftest.err
43143 rm -f conftest.er1
43144 cat conftest.err >&5
a848cd7e
SC
43145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43146 (exit $ac_status); } &&
6ebeb4c7 43147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149 (eval $ac_try) 2>&5
43150 ac_status=$?
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } &&
43153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155 (eval $ac_try) 2>&5
43156 ac_status=$?
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); }; }; then
43159
43160 wx_cv_gcc31=yes
43161
43162else
43163 echo "$as_me: failed program was:" >&5
43164sed 's/^/| /' conftest.$ac_ext >&5
43165
43166
43167 wx_cv_gcc31=no
43168
43169
43170fi
ac1cb8d3 43171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43172
43173fi
43174echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43175echo "${ECHO_T}$wx_cv_gcc31" >&6
43176 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43177
43178D='$'
43179cat <<EOF >shared-ld-sh
a848cd7e
SC
43180#!/bin/sh
43181#-----------------------------------------------------------------------------
43182#-- Name: distrib/mac/shared-ld-sh
43183#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43184#-- Author: Gilles Depeyrot
43185#-- Copyright: (c) 2002 Gilles Depeyrot
43186#-- Licence: any use permitted
43187#-----------------------------------------------------------------------------
43188
43189verbose=0
43190args=""
43191objects=""
43192linking_flag="-dynamiclib"
810b94f0 43193ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43194
473276a9
VS
43195while test ${D}# -gt 0; do
43196 case ${D}1 in
a848cd7e
SC
43197
43198 -v)
43199 verbose=1
43200 ;;
43201
43202 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43203 # collect these options and values
473276a9 43204 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43205 shift
43206 ;;
43207
810b94f0
MW
43208 -s|-Wl,*)
43209 # collect these load args
43210 ldargs="${D}{ldargs} ${D}1"
2113bc77 43211 ;;
810b94f0
MW
43212
43213 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43214 # collect these options
473276a9 43215 args="${D}{args} ${D}1"
a848cd7e
SC
43216 ;;
43217
43218 -dynamiclib|-bundle)
473276a9 43219 linking_flag="${D}1"
a848cd7e
SC
43220 ;;
43221
43222 -*)
473276a9 43223 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43224 exit 1
43225 ;;
43226
43227 *.o | *.a | *.dylib)
43228 # collect object files
473276a9 43229 objects="${D}{objects} ${D}1"
a848cd7e
SC
43230 ;;
43231
43232 *)
473276a9 43233 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43234 exit 1
43235 ;;
43236
43237 esac
43238 shift
43239done
43240
810b94f0
MW
43241status=0
43242
a848cd7e
SC
43243#
43244# Link one module containing all the others
43245#
473276a9 43246if test ${D}{verbose} = 1; then
810b94f0 43247 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43248fi
810b94f0 43249c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43250status=${D}?
a848cd7e
SC
43251
43252#
810b94f0
MW
43253# Link the shared library from the single module created, but only if the
43254# previous command didn't fail:
a848cd7e 43255#
810b94f0
MW
43256if test ${D}{status} = 0; then
43257 if test ${D}{verbose} = 1; then
43258 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43259 fi
43260 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43261 status=${D}?
a848cd7e
SC
43262fi
43263
43264#
43265# Remove intermediate module
43266#
473276a9 43267rm -f master.${D}${D}.o
a848cd7e 43268
810b94f0 43269exit ${D}status
a848cd7e 43270EOF
473276a9 43271
a848cd7e
SC
43272 chmod +x shared-ld-sh
43273
43274 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43275 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43276 SHARED_LD_CXX="$SHARED_LD_CC"
43277 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43278 else
43279 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43280 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43281 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43282 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43283 fi
43284
47bd5406
VZ
43285 if test "x$GCC" == "xyes"; then
43286 PIC_FLAG="-dynamic -fPIC"
43287 fi
43288 if test "x$XLCC" = "xyes"; then
43289 PIC_FLAG="-dynamic -DPIC"
43290 fi
a848cd7e
SC
43291 ;;
43292
43293 *-*-aix* )
43294 if test "x$GCC" != "xyes"; then
43295 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
43296set dummy makeC++SharedLib; ac_word=$2
43297echo "$as_me:$LINENO: checking for $ac_word" >&5
43298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43299if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43300 echo $ECHO_N "(cached) $ECHO_C" >&6
43301else
43302 if test -n "$AIX_CXX_LD"; then
43303 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43304else
43305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43306for as_dir in $PATH
43307do
43308 IFS=$as_save_IFS
43309 test -z "$as_dir" && as_dir=.
43310 for ac_exec_ext in '' $ac_executable_extensions; do
43311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43312 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43314 break 2
43315 fi
43316done
43317done
43318
43319 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43320fi
43321fi
43322AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43323if test -n "$AIX_CXX_LD"; then
43324 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43325echo "${ECHO_T}$AIX_CXX_LD" >&6
43326else
43327 echo "$as_me:$LINENO: result: no" >&5
43328echo "${ECHO_T}no" >&6
43329fi
43330
43331 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
43332 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43333 fi
43334 ;;
43335
43336 *-*-beos* )
1e9e8aba
DE
43337 SHARED_LD_CC="${LD} -nostart -o"
43338 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43339 ;;
43340
43341 *-*-irix* )
43342 if test "x$GCC" != "xyes"; then
43343 PIC_FLAG="-KPIC"
43344 fi
43345 ;;
43346
43347 *-*-cygwin* | *-*-mingw32* )
43348 PIC_FLAG=""
1e9e8aba
DE
43349 SHARED_LD_CC="\$(CC) -shared -o"
43350 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43351 WINDOWS_IMPLIB=1
a848cd7e
SC
43352 ;;
43353
43354 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43355 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43356 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43357 PIC_FLAG=""
473276a9
VS
43358
43359D='$'
43360cat <<EOF >dllar.sh
43361#!/bin/sh
43362#
43363# dllar - a tool to build both a .dll and an .a file
43364# from a set of object (.o) files for EMX/OS2.
43365#
43366# Written by Andrew Zabolotny, bit@freya.etu.ru
43367# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43368#
43369# This script will accept a set of files on the command line.
43370# All the public symbols from the .o files will be exported into
43371# a .DEF file, then linker will be run (through gcc) against them to
43372# build a shared library consisting of all given .o files. All libraries
43373# (.a) will be first decompressed into component .o files then act as
43374# described above. You can optionally give a description (-d "description")
43375# which will be put into .DLL. To see the list of accepted options (as well
43376# as command-line format) simply run this program without options. The .DLL
43377# is built to be imported by name (there is no guarantee that new versions
43378# of the library you build will have same ordinals for same symbols).
43379#
43380# dllar is free software; you can redistribute it and/or modify
43381# it under the terms of the GNU General Public License as published by
43382# the Free Software Foundation; either version 2, or (at your option)
43383# any later version.
43384#
43385# dllar is distributed in the hope that it will be useful,
43386# but WITHOUT ANY WARRANTY; without even the implied warranty of
43387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43388# GNU General Public License for more details.
43389#
43390# You should have received a copy of the GNU General Public License
43391# along with dllar; see the file COPYING. If not, write to the Free
43392# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
43393# 02111-1307, USA.
43394
43395# To successfuly run this program you will need:
43396# - Current drive should have LFN support (HPFS, ext2, network, etc)
43397# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
43398# - gcc
43399# (used to build the .dll)
43400# - emxexp
43401# (used to create .def file from .o files)
43402# - emximp
43403# (used to create .a file from .def file)
43404# - GNU text utilites (cat, sort, uniq)
43405# used to process emxexp output
43406# - GNU file utilities (mv, rm)
43407# - GNU sed
43408# - lxlite (optional, see flag below)
43409# (used for general .dll cleanup)
43410#
43411
43412flag_USE_LXLITE=1;
43413
43414#
43415# helper functions
43416# basnam, variant of basename, which does _not_ remove the path, _iff_
43417# second argument (suffix to remove) is given
43418basnam(){
43419 case ${D}# in
43420 1)
1e9e8aba 43421 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43422 ;;
43423 2)
43424 echo ${D}1 | sed 's/'${D}2'${D}//'
43425 ;;
43426 *)
43427 echo "error in basnam ${D}*"
43428 exit 8
43429 ;;
43430 esac
43431}
43432
43433# Cleanup temporary files and output
43434CleanUp() {
43435 cd ${D}curDir
43436 for i in ${D}inputFiles ; do
43437 case ${D}i in
43438 *!)
43439 rm -rf \`basnam ${D}i !\`
43440 ;;
43441 *)
43442 ;;
43443 esac
43444 done
43445
43446 # Kill result in case of failure as there is just to many stupid make/nmake
43447 # things out there which doesn't do this.
1e9e8aba 43448 if [ ${D}# -eq 0 ]; then
473276a9
VS
43449 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43450 fi
43451}
43452
43453# Print usage and exit script with rc=1.
43454PrintHelp() {
b1d22ded
DE
43455 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43456 echo ' [-name-mangler-script script.sh]'
43457 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43458 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43459 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43460 echo ' [*.o] [*.a]'
473276a9
VS
43461 echo '*> "output_file" should have no extension.'
43462 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43463 echo ' The import library name is derived from this and is set to "name".a,'
43464 echo ' unless overridden by -import'
43465 echo '*> "importlib_name" should have no extension.'
43466 echo ' If it has the .o, or .a extension, it is automatically removed.'
43467 echo ' This name is used as the import library name and may be longer and'
43468 echo ' more descriptive than the DLL name which has to follow the old '
43469 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43470 echo '*> "script.sh may be given to override the output_file name by a'
43471 echo ' different name. It is mainly useful if the regular make process'
43472 echo ' of some package does not take into account OS/2 restriction of'
43473 echo ' DLL name lengths. It takes the importlib name as input and is'
43474 echo ' supposed to procude a shorter name as output. The script should'
43475 echo ' expect to get importlib_name without extension and should produce'
43476 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43477 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43478 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43479 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43480 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43481 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43482 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43483 echo ' If the last character of a symbol is "*", all symbols beginning'
43484 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43485 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43486 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43487 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43488 echo ' C runtime DLLs.'
b1d22ded 43489 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43490 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43491 echo ' unchanged to GCC at the end of command line.'
43492 echo '*> If you create a DLL from a library and you do not specify -o,'
43493 echo ' the basename for DLL and import library will be set to library name,'
43494 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43495 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43496 echo ' library will be renamed into gcc_s.a.'
43497 echo '--------'
43498 echo 'Example:'
43499 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43500 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43501 CleanUp
43502 exit 1
43503}
43504
43505# Execute a command.
43506# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43507# @Uses Whatever CleanUp() uses.
43508doCommand() {
43509 echo "${D}*"
43510 eval ${D}*
43511 rcCmd=${D}?
43512
1e9e8aba 43513 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43514 echo "command failed, exit code="${D}rcCmd
43515 CleanUp
43516 exit ${D}rcCmd
43517 fi
43518}
43519
43520# main routine
43521# setup globals
43522cmdLine=${D}*
43523outFile=""
43524outimpFile=""
43525inputFiles=""
b1d22ded 43526renameScript=""
473276a9
VS
43527description=""
43528CC=gcc.exe
43529CFLAGS="-s -Zcrtdll"
43530EXTRA_CFLAGS=""
43531EXPORT_BY_ORDINALS=0
43532exclude_symbols=""
43533library_flags=""
43534curDir=\`pwd\`
43535curDirS=curDir
43536case ${D}curDirS in
43537*/)
43538 ;;
43539*)
43540 curDirS=${D}{curDirS}"/"
43541 ;;
43542esac
43543# Parse commandline
43544libsToLink=0
b1d22ded 43545omfLinking=0
1e9e8aba 43546while [ ${D}1 ]; do
473276a9
VS
43547 case ${D}1 in
43548 -ord*)
43549 EXPORT_BY_ORDINALS=1;
43550 ;;
43551 -o*)
43552 shift
43553 outFile=${D}1
43554 ;;
43555 -i*)
43556 shift
43557 outimpFile=${D}1
43558 ;;
b1d22ded
DE
43559 -name-mangler-script)
43560 shift
43561 renameScript=${D}1
43562 ;;
473276a9
VS
43563 -d*)
43564 shift
43565 description=${D}1
43566 ;;
43567 -f*)
43568 shift
43569 CFLAGS=${D}1
43570 ;;
43571 -c*)
43572 shift
43573 CC=${D}1
43574 ;;
43575 -h*)
43576 PrintHelp
43577 ;;
43578 -ex*)
43579 shift
43580 exclude_symbols=${D}{exclude_symbols}${D}1" "
43581 ;;
43582 -libf*)
43583 shift
43584 library_flags=${D}{library_flags}${D}1" "
43585 ;;
43586 -nocrt*)
43587 CFLAGS="-s"
43588 ;;
43589 -nolxl*)
43590 flag_USE_LXLITE=0
43591 ;;
43592 -* | /*)
43593 case ${D}1 in
43594 -L* | -l*)
43595 libsToLink=1
43596 ;;
b1d22ded
DE
43597 -Zomf)
43598 omfLinking=1
43599 ;;
473276a9
VS
43600 *)
43601 ;;
43602 esac
43603 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43604 ;;
b1d22ded
DE
43605 *.dll)
43606 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
43607 if [ ${D}omfLinking -eq 1 ]; then
43608 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
43609 else
43610 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
43611 fi
43612 ;;
473276a9
VS
43613 *)
43614 found=0;
1e9e8aba 43615 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
43616 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43617 else
43618 for file in ${D}1 ; do
1e9e8aba 43619 if [ -f ${D}file ]; then
473276a9
VS
43620 inputFiles="${D}{inputFiles} ${D}file"
43621 found=1
43622 fi
43623 done
1e9e8aba 43624 if [ ${D}found -eq 0 ]; then
473276a9
VS
43625 echo "ERROR: No file(s) found: "${D}1
43626 exit 8
43627 fi
43628 fi
43629 ;;
43630 esac
43631 shift
43632done # iterate cmdline words
43633
43634#
1e9e8aba 43635if [ -z "${D}inputFiles" ]; then
473276a9
VS
43636 echo "dllar: no input files"
43637 PrintHelp
43638fi
43639
43640# Now extract all .o files from .a files
43641newInputFiles=""
43642for file in ${D}inputFiles ; do
43643 case ${D}file in
43644 *.a | *.lib)
43645 case ${D}file in
43646 *.a)
43647 suffix=".a"
43648 AR="ar"
43649 ;;
43650 *.lib)
43651 suffix=".lib"
43652 AR="emxomfar"
43653 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43654 ;;
43655 *)
43656 ;;
43657 esac
43658 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43659 mkdir ${D}dirname
1e9e8aba 43660 if [ ${D}? -ne 0 ]; then
473276a9
VS
43661 echo "Failed to create subdirectory ./${D}dirname"
43662 CleanUp
43663 exit 8;
43664 fi
43665 # Append '!' to indicate archive
43666 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43667 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43668 cd ${D}curDir
43669 found=0;
43670 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43671 if [ -f ${D}subfile ]; then
473276a9 43672 found=1
1e9e8aba 43673 if [ -s ${D}subfile ]; then
473276a9
VS
43674 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43675 newInputFiles="${D}newInputFiles ${D}subfile"
43676 fi
43677 fi
43678 done
1e9e8aba
DE
43679 if [ ${D}found -eq 0 ]; then
43680 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43681 fi
43682 ;;
43683 *)
43684 newInputFiles="${D}{newInputFiles} ${D}file"
43685 ;;
43686 esac
43687done
43688inputFiles="${D}newInputFiles"
43689
43690# Output filename(s).
43691do_backup=0;
1e9e8aba 43692if [ -z ${D}outFile ]; then
473276a9
VS
43693 do_backup=1;
43694 set outFile ${D}inputFiles; outFile=${D}2
43695fi
43696
43697# If it is an archive, remove the '!' and the '_%' suffixes
43698case ${D}outFile in
43699*_%!)
43700 outFile=\`basnam ${D}outFile _%!\`
43701 ;;
43702*)
43703 ;;
43704esac
43705case ${D}outFile in
43706*.dll)
43707 outFile=\`basnam ${D}outFile .dll\`
43708 ;;
43709*.DLL)
43710 outFile=\`basnam ${D}outFile .DLL\`
43711 ;;
43712*.o)
43713 outFile=\`basnam ${D}outFile .o\`
43714 ;;
43715*.obj)
43716 outFile=\`basnam ${D}outFile .obj\`
43717 ;;
43718*.a)
43719 outFile=\`basnam ${D}outFile .a\`
43720 ;;
43721*.lib)
43722 outFile=\`basnam ${D}outFile .lib\`
43723 ;;
43724*)
43725 ;;
43726esac
43727case ${D}outimpFile in
43728*.a)
43729 outimpFile=\`basnam ${D}outimpFile .a\`
43730 ;;
43731*.lib)
43732 outimpFile=\`basnam ${D}outimpFile .lib\`
43733 ;;
43734*)
43735 ;;
43736esac
1e9e8aba 43737if [ -z ${D}outimpFile ]; then
473276a9
VS
43738 outimpFile=${D}outFile
43739fi
43740defFile="${D}{outFile}.def"
43741arcFile="${D}{outimpFile}.a"
43742arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43743
43744#create ${D}dllFile as something matching 8.3 restrictions,
43745if [ -z ${D}renameScript ] ; then
43746 dllFile="${D}outFile"
43747else
43748 dllFile=\`${D}renameScript ${D}outimpFile\`
43749fi
473276a9 43750
1e9e8aba
DE
43751if [ ${D}do_backup -ne 0 ] ; then
43752 if [ -f ${D}arcFile ] ; then
473276a9
VS
43753 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43754 fi
1e9e8aba 43755 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43756 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43757 fi
43758fi
43759
43760# Extract public symbols from all the object files.
43761tmpdefFile=${D}{defFile}_%
43762rm -f ${D}tmpdefFile
43763for file in ${D}inputFiles ; do
43764 case ${D}file in
43765 *!)
43766 ;;
43767 *)
43768 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43769 ;;
43770 esac
43771done
43772
43773# Create the def file.
43774rm -f ${D}defFile
43775echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43776dllFile="${D}{dllFile}.dll"
43777if [ ! -z ${D}description ]; then
1e9e8aba 43778 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43779fi
43780echo "EXPORTS" >> ${D}defFile
43781
43782doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43783grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43784
43785# Checks if the export is ok or not.
43786for word in ${D}exclude_symbols; do
43787 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43788 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43789done
43790
43791
1e9e8aba
DE
43792if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43793 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43794 sed '
43795 N
43796 : loop
1e9e8aba 43797 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43798 t loop
43799 ' > ${D}{tmpdefFile}%
43800 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43801else
43802 rm -f ${D}{tmpdefFile}%
43803fi
43804cat ${D}tmpdefFile >> ${D}defFile
43805rm -f ${D}tmpdefFile
43806
43807# Do linking, create implib, and apply lxlite.
43808gccCmdl="";
43809for file in ${D}inputFiles ; do
43810 case ${D}file in
43811 *!)
43812 ;;
43813 *)
43814 gccCmdl="${D}gccCmdl ${D}file"
43815 ;;
43816 esac
43817done
43818doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43819touch "${D}{outFile}.dll"
43820
43821doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43822if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43823 add_flags="";
1e9e8aba 43824 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43825 add_flags="-ynd"
43826 fi
43827 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43828fi
43829doCommand "emxomf -s -l ${D}arcFile"
43830
43831# Successful exit.
43832CleanUp 1
43833exit 0
43834EOF
43835
43836 chmod +x dllar.sh
a848cd7e
SC
43837 ;;
43838
1e9e8aba 43839 powerpc-apple-macos* | \
a848cd7e
SC
43840 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43841 *-*-sunos4* | \
43842 *-*-osf* | \
43843 *-*-dgux5* | \
47a7e797
MW
43844 *-*-sysv5* | \
43845 *-pc-msdosdjgpp )
a848cd7e
SC
43846 ;;
43847
43848 *)
43849 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43850echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43851 { (exit 1); exit 1; }; }
43852 esac
43853
2057db16
VS
43854 if test "x$PIC_FLAG" != "x" ; then
43855 PIC_FLAG="$PIC_FLAG -DPIC"
43856 fi
43857
a848cd7e
SC
43858 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43859 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43860 fi
43861 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43862 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43863 fi
43864
43865
43866
43867
43868
43869
43870
43871
810b94f0 43872
a848cd7e
SC
43873 USE_SOVERSION=0
43874 USE_SOVERLINUX=0
43875 USE_SOVERSOLARIS=0
810b94f0 43876 USE_SOVERCYGWIN=0
a848cd7e
SC
43877 USE_SOSYMLINKS=0
43878 USE_MACVERSION=0
43879 SONAME_FLAG=
43880
43881 case "${BAKEFILE_HOST}" in
b1d22ded 43882 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43883 SONAME_FLAG="-Wl,-soname,"
43884 USE_SOVERSION=1
43885 USE_SOVERLINUX=1
43886 USE_SOSYMLINKS=1
43887 ;;
43888
a848cd7e
SC
43889 *-*-solaris2* )
43890 SONAME_FLAG="-h "
43891 USE_SOVERSION=1
43892 USE_SOVERSOLARIS=1
43893 USE_SOSYMLINKS=1
43894 ;;
43895
43896 *-*-darwin* )
43897 USE_MACVERSION=1
43898 USE_SOVERSION=1
43899 USE_SOSYMLINKS=1
43900 ;;
810b94f0
MW
43901
43902 *-*-cygwin* )
43903 USE_SOVERSION=1
43904 USE_SOVERCYGWIN=1
43905 ;;
a848cd7e
SC
43906 esac
43907
43908
43909
43910
43911
43912
43913
43914
43915
810b94f0 43916
a848cd7e
SC
43917 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43918echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43919 DEPS_TRACKING=0
43920
43921 if test "x$GCC" = "xyes"; then
43922 DEPSMODE=gcc
43923 DEPS_TRACKING=1
43924 case "${BAKEFILE_HOST}" in
47bd5406 43925 *-*-darwin* )
a848cd7e
SC
43926 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43927 ;;
43928 * )
43929 DEPSFLAG_GCC="-MMD"
43930 ;;
43931 esac
43932 echo "$as_me:$LINENO: result: gcc" >&5
43933echo "${ECHO_T}gcc" >&6
b1d22ded 43934 elif test "x$MWCC" = "xyes"; then
81f90336 43935 DEPSMODE=mwcc
b1d22ded 43936 DEPS_TRACKING=1
81f90336 43937 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43938 echo "$as_me:$LINENO: result: mwcc" >&5
43939echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43940 elif test "x$SUNCC" = "xyes"; then
43941 DEPSMODE=suncc
43942 DEPS_TRACKING=1
43943 DEPSFLAG_SUNCC="-xM1"
43944 echo "$as_me:$LINENO: result: suncc" >&5
43945echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43946 else
43947 echo "$as_me:$LINENO: result: none" >&5
43948echo "${ECHO_T}none" >&6
43949 fi
43950
43951 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43952
43953D='$'
43954cat <<EOF >bk-deps
a848cd7e
SC
43955#!/bin/sh
43956
43957# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43958# script. It is used to track C/C++ files dependencies in portable way.
43959#
43960# Permission is given to use this file in any way.
43961
473276a9 43962DEPSMODE=${DEPSMODE}
a848cd7e 43963DEPSDIR=.deps
473276a9 43964DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43965DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43966DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43967
473276a9 43968mkdir -p ${D}DEPSDIR
a848cd7e 43969
473276a9
VS
43970if test ${D}DEPSMODE = gcc ; then
43971 ${D}* ${D}{DEPSFLAG_GCC}
43972 status=${D}?
43973 if test ${D}{status} != 0 ; then
43974 exit ${D}{status}
a848cd7e
SC
43975 fi
43976 # move created file to the location we want it in:
473276a9
VS
43977 while test ${D}# -gt 0; do
43978 case "${D}1" in
a848cd7e
SC
43979 -o )
43980 shift
473276a9 43981 objfile=${D}1
a848cd7e
SC
43982 ;;
43983 -* )
43984 ;;
43985 * )
473276a9 43986 srcfile=${D}1
a848cd7e
SC
43987 ;;
43988 esac
43989 shift
43990 done
1e9e8aba
DE
43991 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43992 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43993 if test -f ${D}depfile ; then
43994 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43995 rm -f ${D}depfile
a848cd7e 43996 else
1e9e8aba 43997 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43998 if test -f ${D}depfile ; then
43999 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44000 rm -f ${D}depfile
a848cd7e
SC
44001 fi
44002 fi
44003 exit 0
81f90336
MW
44004elif test ${D}DEPSMODE = mwcc ; then
44005 ${D}*
44006 status=${D}?
44007 if test ${D}{status} != 0 ; then
44008 exit ${D}{status}
44009 fi
44010 # Run mwcc again with -MM and redirect into the dep file we want
44011 # NOTE: We can't use shift here because we need ${D}* to be valid
44012 prevarg=
44013 for arg in ${D}* ; do
44014 if test "${D}prevarg" = "-o"; then
44015 objfile=${D}arg
44016 else
44017 case "${D}arg" in
44018 -* )
44019 ;;
44020 * )
44021 srcfile=${D}arg
44022 ;;
44023 esac
44024 fi
44025 prevarg="${D}arg"
44026 done
44027 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
44028 exit 0
a9e5b1f0
MW
44029elif test ${D}DEPSMODE = suncc; then
44030 ${D}* || exit
44031 # Run compiler again with deps flag and redirect into the dep file.
44032 # It doesn't work if the '-o FILE' option is used, but without it the
44033 # dependency file will contain the wrong name for the object. So it is
44034 # removed from the command line, and the dep file is fixed with sed.
44035 cmd=""
44036 while test ${D}# -gt 0; do
44037 case "${D}1" in
44038 -o )
44039 shift
44040 objfile=${D}1
44041 ;;
44042 * )
44043 eval arg${D}#=\\${D}1
44044 cmd="${D}cmd \\${D}arg${D}#"
44045 ;;
44046 esac
44047 shift
44048 done
44049 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
44050 exit 0
a848cd7e 44051else
473276a9
VS
44052 ${D}*
44053 exit ${D}?
a848cd7e
SC
44054fi
44055EOF
473276a9 44056
a848cd7e
SC
44057 chmod +x bk-deps
44058 fi
44059
44060
44061
44062
44063 RESCOMP=
44064 SETFILE=
44065
44066 case ${BAKEFILE_HOST} in
44067 *-*-cygwin* | *-*-mingw32* )
44068 if test "$build" != "$host" ; then
44069 RESCOMP=$host_alias-windres
44070 else
44071 # Extract the first word of "windres", so it can be a program name with args.
44072set dummy windres; ac_word=$2
44073echo "$as_me:$LINENO: checking for $ac_word" >&5
44074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44075if test "${ac_cv_prog_RESCOMP+set}" = set; then
44076 echo $ECHO_N "(cached) $ECHO_C" >&6
44077else
44078 if test -n "$RESCOMP"; then
44079 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44080else
44081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44082for as_dir in $PATH
44083do
44084 IFS=$as_save_IFS
44085 test -z "$as_dir" && as_dir=.
44086 for ac_exec_ext in '' $ac_executable_extensions; do
44087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44088 ac_cv_prog_RESCOMP="windres"
44089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44090 break 2
44091 fi
44092done
44093done
44094
44095 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44096fi
44097fi
44098RESCOMP=$ac_cv_prog_RESCOMP
44099if test -n "$RESCOMP"; then
44100 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44101echo "${ECHO_T}$RESCOMP" >&6
44102else
44103 echo "$as_me:$LINENO: result: no" >&5
44104echo "${ECHO_T}no" >&6
44105fi
44106
44107 fi
44108 ;;
44109
1e9e8aba 44110 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44111 # Extract the first word of "Rez", so it can be a program name with args.
44112set dummy Rez; ac_word=$2
44113echo "$as_me:$LINENO: checking for $ac_word" >&5
44114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44115if test "${ac_cv_prog_RESCOMP+set}" = set; then
44116 echo $ECHO_N "(cached) $ECHO_C" >&6
44117else
44118 if test -n "$RESCOMP"; then
44119 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44120else
44121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44122for as_dir in $PATH
44123do
44124 IFS=$as_save_IFS
44125 test -z "$as_dir" && as_dir=.
44126 for ac_exec_ext in '' $ac_executable_extensions; do
44127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44128 ac_cv_prog_RESCOMP="Rez"
44129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44130 break 2
44131 fi
44132done
44133done
44134
44135 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44136fi
44137fi
44138RESCOMP=$ac_cv_prog_RESCOMP
44139if test -n "$RESCOMP"; then
44140 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44141echo "${ECHO_T}$RESCOMP" >&6
44142else
44143 echo "$as_me:$LINENO: result: no" >&5
44144echo "${ECHO_T}no" >&6
44145fi
44146
44147 # Extract the first word of "SetFile", so it can be a program name with args.
44148set dummy SetFile; ac_word=$2
44149echo "$as_me:$LINENO: checking for $ac_word" >&5
44150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44151if test "${ac_cv_prog_SETFILE+set}" = set; then
44152 echo $ECHO_N "(cached) $ECHO_C" >&6
44153else
44154 if test -n "$SETFILE"; then
44155 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44156else
44157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44158for as_dir in $PATH
44159do
44160 IFS=$as_save_IFS
44161 test -z "$as_dir" && as_dir=.
44162 for ac_exec_ext in '' $ac_executable_extensions; do
44163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44164 ac_cv_prog_SETFILE="SetFile"
44165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44166 break 2
44167 fi
44168done
44169done
44170
44171 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44172fi
44173fi
44174SETFILE=$ac_cv_prog_SETFILE
44175if test -n "$SETFILE"; then
44176 echo "$as_me:$LINENO: result: $SETFILE" >&5
44177echo "${ECHO_T}$SETFILE" >&6
44178else
44179 echo "$as_me:$LINENO: result: no" >&5
44180echo "${ECHO_T}no" >&6
44181fi
44182
44183 ;;
44184 esac
44185
44186
44187
44188
44189
c9469659 44190 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44191
dcc1b6ad 44192
c9469659 44193BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44194
646b6ec1 44195
74b84332 44196
a848cd7e
SC
44197 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44198if test "${enable_precomp_headers+set}" = set; then
44199 enableval="$enable_precomp_headers"
44200 bk_use_pch="$enableval"
44201fi;
44202
44203 GCC_PCH=0
44204
44205 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44206 if test "x$GCC" = "xyes"; then
44207 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44208echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44209 cat >conftest.$ac_ext <<_ACEOF
44210/* confdefs.h. */
44211_ACEOF
44212cat confdefs.h >>conftest.$ac_ext
44213cat >>conftest.$ac_ext <<_ACEOF
44214/* end confdefs.h. */
44215
44216int
44217main ()
44218{
44219
44220 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44221 #error "no pch support"
44222 #endif
44223 #if (__GNUC__ < 3)
44224 #error "no pch support"
44225 #endif
44226 #if (__GNUC__ == 3) && \
44227 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44228 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44229 #error "no pch support"
44230 #endif
44231
44232 ;
44233 return 0;
44234}
44235_ACEOF
44236rm -f conftest.$ac_objext
44237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44238 (eval $ac_compile) 2>conftest.er1
a848cd7e 44239 ac_status=$?
ac1cb8d3
VS
44240 grep -v '^ *+' conftest.er1 >conftest.err
44241 rm -f conftest.er1
44242 cat conftest.err >&5
a848cd7e
SC
44243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44244 (exit $ac_status); } &&
6ebeb4c7 44245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44247 (eval $ac_try) 2>&5
44248 ac_status=$?
44249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250 (exit $ac_status); }; } &&
44251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44253 (eval $ac_try) 2>&5
44254 ac_status=$?
44255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44256 (exit $ac_status); }; }; then
44257
44258 echo "$as_me:$LINENO: result: yes" >&5
44259echo "${ECHO_T}yes" >&6
a848cd7e
SC
44260 GCC_PCH=1
44261
44262else
44263 echo "$as_me: failed program was:" >&5
44264sed 's/^/| /' conftest.$ac_ext >&5
44265
44266
44267 echo "$as_me:$LINENO: result: no" >&5
44268echo "${ECHO_T}no" >&6
44269
44270fi
ac1cb8d3 44271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44272 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44273
44274D='$'
44275cat <<EOF >bk-make-pch
a848cd7e
SC
44276#!/bin/sh
44277
44278# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44279# script. It is used to generated precompiled headers.
44280#
44281# Permission is given to use this file in any way.
44282
1e9e8aba
DE
44283outfile="${D}{1}"
44284header="${D}{2}"
a848cd7e
SC
44285shift
44286shift
44287
44288compiler=
44289headerfile=
1e9e8aba
DE
44290while test ${D}{#} -gt 0; do
44291 case "${D}{1}" in
a848cd7e 44292 -I* )
1e9e8aba
DE
44293 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44294 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44295 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44296 fi
44297 ;;
44298 esac
1e9e8aba 44299 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44300 shift
44301done
44302
1e9e8aba
DE
44303if test "x${D}{headerfile}" = "x" ; then
44304 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44305else
1e9e8aba
DE
44306 if test -f ${D}{outfile} ; then
44307 rm -f ${D}{outfile}
a848cd7e 44308 else
1e9e8aba 44309 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44310 fi
1e9e8aba 44311 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44312 mkdir -p .deps
44313 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44314 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44315 exit ${D}{?}
a848cd7e
SC
44316fi
44317EOF
1e9e8aba 44318
a848cd7e
SC
44319 chmod +x bk-make-pch
44320 fi
44321 fi
44322 fi
44323
44324
44325
a848cd7e
SC
44326 COND_BUILD_DEBUG="#"
44327 if test "x$BUILD" = "xdebug" ; then
44328 COND_BUILD_DEBUG=""
44329 fi
44330
44331 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44332 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44333 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44334 fi
44335
44336 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44337 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44338 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44339 fi
44340
44341 COND_BUILD_DEBUG_UNICODE_0="#"
44342 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44343 COND_BUILD_DEBUG_UNICODE_0=""
44344 fi
44345
44346 COND_BUILD_DEBUG_UNICODE_1="#"
44347 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44348 COND_BUILD_DEBUG_UNICODE_1=""
44349 fi
44350
44351 COND_BUILD_RELEASE="#"
44352 if test "x$BUILD" = "xrelease" ; then
44353 COND_BUILD_RELEASE=""
44354 fi
44355
44356 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44357 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44358 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44359 fi
44360
44361 COND_BUILD_RELEASE_UNICODE_0="#"
44362 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44363 COND_BUILD_RELEASE_UNICODE_0=""
44364 fi
44365
44366 COND_BUILD_RELEASE_UNICODE_1="#"
44367 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44368 COND_BUILD_RELEASE_UNICODE_1=""
44369 fi
44370
44371 COND_DEBUG_FLAG_1="#"
44372 if test "x$DEBUG_FLAG" = "x1" ; then
44373 COND_DEBUG_FLAG_1=""
44374 fi
44375
44376 COND_DEBUG_INFO_0="#"
44377 if test "x$DEBUG_INFO" = "x0" ; then
44378 COND_DEBUG_INFO_0=""
44379 fi
44380
44381 COND_DEBUG_INFO_1="#"
44382 if test "x$DEBUG_INFO" = "x1" ; then
44383 COND_DEBUG_INFO_1=""
44384 fi
44385
44386 COND_DEPS_TRACKING_0="#"
44387 if test "x$DEPS_TRACKING" = "x0" ; then
44388 COND_DEPS_TRACKING_0=""
44389 fi
44390
44391 COND_DEPS_TRACKING_1="#"
44392 if test "x$DEPS_TRACKING" = "x1" ; then
44393 COND_DEPS_TRACKING_1=""
44394 fi
44395
44396 COND_GCC_PCH_1="#"
44397 if test "x$GCC_PCH" = "x1" ; then
44398 COND_GCC_PCH_1=""
44399 fi
44400
44401 COND_MONOLITHIC_0="#"
44402 if test "x$MONOLITHIC" = "x0" ; then
44403 COND_MONOLITHIC_0=""
44404 fi
44405
44406 COND_MONOLITHIC_0_SHARED_0="#"
44407 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
44408 COND_MONOLITHIC_0_SHARED_0=""
44409 fi
44410
44411 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
44412 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
44413 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
44414 fi
44415
90970d69
DE
44416 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44417 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44418 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44419 fi
44420
a848cd7e
SC
44421 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44422 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44423 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44424 fi
44425
6671c68b
VZ
44426 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44427 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44428 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44429 fi
44430
a848cd7e
SC
44431 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44432 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44433 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44434 fi
44435
ceec2216
RL
44436 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44437 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44438 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44439 fi
44440
a848cd7e
SC
44441 COND_MONOLITHIC_0_SHARED_1="#"
44442 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44443 COND_MONOLITHIC_0_SHARED_1=""
44444 fi
44445
44446 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44447 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44448 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44449 fi
44450
90970d69
DE
44451 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44452 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44453 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44454 fi
44455
a848cd7e
SC
44456 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44457 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44458 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44459 fi
44460
6671c68b
VZ
44461 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44462 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44463 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44464 fi
44465
a848cd7e
SC
44466 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44467 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44468 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44469 fi
44470
ceec2216
RL
44471 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44472 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44473 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44474 fi
44475
a848cd7e
SC
44476 COND_MONOLITHIC_0_USE_ODBC_1="#"
44477 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44478 COND_MONOLITHIC_0_USE_ODBC_1=""
44479 fi
44480
44481 COND_MONOLITHIC_1="#"
44482 if test "x$MONOLITHIC" = "x1" ; then
44483 COND_MONOLITHIC_1=""
44484 fi
44485
44486 COND_MONOLITHIC_1_SHARED_0="#"
44487 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44488 COND_MONOLITHIC_1_SHARED_0=""
44489 fi
44490
44491 COND_MONOLITHIC_1_SHARED_1="#"
44492 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44493 COND_MONOLITHIC_1_SHARED_1=""
44494 fi
44495
44496 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44497 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44498 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44499 fi
44500
44501 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44502 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44503 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44504 fi
44505
eb730a0c
JS
44506 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44507 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44508 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44509 fi
44510
a848cd7e
SC
44511 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44512 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44513 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44514 fi
44515
44516 COND_PLATFORM_MACOSX_1="#"
44517 if test "x$PLATFORM_MACOSX" = "x1" ; then
44518 COND_PLATFORM_MACOSX_1=""
44519 fi
44520
a30f955f
VS
44521 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44522 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44523 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44524 fi
44525
a848cd7e
SC
44526 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44527 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44528 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44529 fi
44530
44531 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44532 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44533 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44534 fi
44535
44536 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
44537 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
44538 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
44539 fi
44540
fc480dc1
DE
44541 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
44542 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44543 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
44544 fi
44545
1e9e8aba
DE
44546 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44547 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44548 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44549 fi
44550
ebee3cd0
VS
44551 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
44552 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
44553 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
44554 fi
44555
44556 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
44557 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
44558 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
44559 fi
44560
a848cd7e
SC
44561 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
44562 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
44563 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
44564 fi
44565
44566 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
44567 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44568 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
44569 fi
44570
b48a2016
DE
44571 COND_PLATFORM_MACOS_1="#"
44572 if test "x$PLATFORM_MACOS" = "x1" ; then
44573 COND_PLATFORM_MACOS_1=""
44574 fi
44575
083508af
MW
44576 COND_PLATFORM_MAC_1="#"
44577 if test "x$PLATFORM_MAC" = "x1" ; then
44578 COND_PLATFORM_MAC_1=""
44579 fi
44580
83d8eb47
MW
44581 COND_PLATFORM_MSDOS_1="#"
44582 if test "x$PLATFORM_MSDOS" = "x1" ; then
44583 COND_PLATFORM_MSDOS_1=""
44584 fi
44585
a848cd7e
SC
44586 COND_PLATFORM_OS2_1="#"
44587 if test "x$PLATFORM_OS2" = "x1" ; then
44588 COND_PLATFORM_OS2_1=""
44589 fi
44590
44591 COND_PLATFORM_UNIX_0="#"
44592 if test "x$PLATFORM_UNIX" = "x0" ; then
44593 COND_PLATFORM_UNIX_0=""
44594 fi
44595
44596 COND_PLATFORM_UNIX_1="#"
44597 if test "x$PLATFORM_UNIX" = "x1" ; then
44598 COND_PLATFORM_UNIX_1=""
44599 fi
44600
44601 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
44602 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
44603 COND_PLATFORM_UNIX_1_USE_GUI_1=""
44604 fi
44605
44606 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
44607 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
44608 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
44609 fi
44610
44611 COND_PLATFORM_WIN32_0="#"
44612 if test "x$PLATFORM_WIN32" = "x0" ; then
44613 COND_PLATFORM_WIN32_0=""
44614 fi
44615
44616 COND_PLATFORM_WIN32_1="#"
44617 if test "x$PLATFORM_WIN32" = "x1" ; then
44618 COND_PLATFORM_WIN32_1=""
44619 fi
44620
44621 COND_SHARED_0="#"
44622 if test "x$SHARED" = "x0" ; then
44623 COND_SHARED_0=""
44624 fi
44625
083508af
MW
44626 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
44627 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
44628 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
44629 fi
44630
44631 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
44632 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
44633 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
44634 fi
44635
44636 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
44637 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44638 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44639 fi
44640
a848cd7e
SC
44641 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44642 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44643 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44644 fi
44645
44646 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44647 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44648 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44649 fi
44650
44651 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44652 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44653 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44654 fi
44655
44656 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44657 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44658 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44659 fi
44660
083508af
MW
44661 COND_SHARED_0_USE_XRC_1="#"
44662 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44663 COND_SHARED_0_USE_XRC_1=""
44664 fi
44665
a848cd7e
SC
44666 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44667 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44668 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44669 fi
44670
44671 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44672 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44673 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44674 fi
44675
44676 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44677 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44678 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44679 fi
44680
44681 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44682 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44683 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44684 fi
44685
44686 COND_SHARED_1="#"
44687 if test "x$SHARED" = "x1" ; then
44688 COND_SHARED_1=""
44689 fi
44690
44691 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44692 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44693 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44694 fi
44695
083508af
MW
44696 COND_SHARED_1_USE_XRC_1="#"
44697 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44698 COND_SHARED_1_USE_XRC_1=""
44699 fi
44700
a30f955f
VS
44701 COND_TOOLKIT_="#"
44702 if test "x$TOOLKIT" = "x" ; then
44703 COND_TOOLKIT_=""
44704 fi
44705
a848cd7e
SC
44706 COND_TOOLKIT_COCOA="#"
44707 if test "x$TOOLKIT" = "xCOCOA" ; then
44708 COND_TOOLKIT_COCOA=""
44709 fi
44710
a49baeab
DE
44711 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44712 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44713 COND_TOOLKIT_COCOA_USE_GUI_1=""
44714 fi
44715
a848cd7e
SC
44716 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44717 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44718 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44719 fi
44720
44721 COND_TOOLKIT_GTK="#"
44722 if test "x$TOOLKIT" = "xGTK" ; then
44723 COND_TOOLKIT_GTK=""
44724 fi
44725
44726 COND_TOOLKIT_GTK_USE_GUI_1="#"
44727 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44728 COND_TOOLKIT_GTK_USE_GUI_1=""
44729 fi
44730
44731 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44732 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44733 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44734 fi
44735
44736 COND_TOOLKIT_MAC="#"
44737 if test "x$TOOLKIT" = "xMAC" ; then
44738 COND_TOOLKIT_MAC=""
44739 fi
44740
44741 COND_TOOLKIT_MAC_USE_GUI_1="#"
44742 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44743 COND_TOOLKIT_MAC_USE_GUI_1=""
44744 fi
44745
44746 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44747 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44748 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44749 fi
44750
44751 COND_TOOLKIT_MGL="#"
44752 if test "x$TOOLKIT" = "xMGL" ; then
44753 COND_TOOLKIT_MGL=""
44754 fi
44755
44756 COND_TOOLKIT_MGL_USE_GUI_1="#"
44757 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44758 COND_TOOLKIT_MGL_USE_GUI_1=""
44759 fi
44760
44761 COND_TOOLKIT_MOTIF="#"
44762 if test "x$TOOLKIT" = "xMOTIF" ; then
44763 COND_TOOLKIT_MOTIF=""
44764 fi
44765
44766 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44767 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44768 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44769 fi
44770
44771 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44772 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44773 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44774 fi
44775
44776 COND_TOOLKIT_MSW="#"
44777 if test "x$TOOLKIT" = "xMSW" ; then
44778 COND_TOOLKIT_MSW=""
44779 fi
44780
44781 COND_TOOLKIT_MSW_USE_GUI_1="#"
44782 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44783 COND_TOOLKIT_MSW_USE_GUI_1=""
44784 fi
44785
44786 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44787 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44788 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44789 fi
44790
44791 COND_TOOLKIT_PM="#"
44792 if test "x$TOOLKIT" = "xPM" ; then
44793 COND_TOOLKIT_PM=""
44794 fi
44795
44796 COND_TOOLKIT_PM_USE_GUI_1="#"
44797 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44798 COND_TOOLKIT_PM_USE_GUI_1=""
44799 fi
44800
44801 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44802 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44803 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44804 fi
44805
3fd9c298
DE
44806 COND_TOOLKIT_WINCE="#"
44807 if test "x$TOOLKIT" = "xWINCE" ; then
44808 COND_TOOLKIT_WINCE=""
44809 fi
44810
44811 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44812 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44813 COND_TOOLKIT_WINCE_USE_GUI_1=""
44814 fi
44815
44816 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44817 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44818 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44819 fi
44820
a848cd7e
SC
44821 COND_TOOLKIT_X11="#"
44822 if test "x$TOOLKIT" = "xX11" ; then
44823 COND_TOOLKIT_X11=""
44824 fi
44825
44826 COND_TOOLKIT_X11_USE_GUI_1="#"
44827 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44828 COND_TOOLKIT_X11_USE_GUI_1=""
44829 fi
44830
44831 COND_UNICODE_1="#"
44832 if test "x$UNICODE" = "x1" ; then
44833 COND_UNICODE_1=""
44834 fi
44835
44836 COND_USE_EXCEPTIONS_0="#"
44837 if test "x$USE_EXCEPTIONS" = "x0" ; then
44838 COND_USE_EXCEPTIONS_0=""
44839 fi
44840
44841 COND_USE_EXCEPTIONS_1="#"
44842 if test "x$USE_EXCEPTIONS" = "x1" ; then
44843 COND_USE_EXCEPTIONS_1=""
44844 fi
44845
44846 COND_USE_GUI_0="#"
44847 if test "x$USE_GUI" = "x0" ; then
44848 COND_USE_GUI_0=""
44849 fi
44850
44851 COND_USE_GUI_1="#"
44852 if test "x$USE_GUI" = "x1" ; then
44853 COND_USE_GUI_1=""
44854 fi
44855
44856 COND_USE_GUI_1_WXUNIV_0="#"
44857 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44858 COND_USE_GUI_1_WXUNIV_0=""
44859 fi
44860
44861 COND_USE_GUI_1_WXUNIV_1="#"
44862 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44863 COND_USE_GUI_1_WXUNIV_1=""
44864 fi
44865
44866 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44867 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44868 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44869 fi
44870
44871 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44872 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44873 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44874 fi
44875
44876 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44877 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44878 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44879 fi
44880
083508af
MW
44881 COND_USE_ODBC_1="#"
44882 if test "x$USE_ODBC" = "x1" ; then
44883 COND_USE_ODBC_1=""
44884 fi
44885
44886 COND_USE_OPENGL_1="#"
44887 if test "x$USE_OPENGL" = "x1" ; then
44888 COND_USE_OPENGL_1=""
44889 fi
44890
a848cd7e
SC
44891 COND_USE_PLUGINS_0="#"
44892 if test "x$USE_PLUGINS" = "x0" ; then
44893 COND_USE_PLUGINS_0=""
44894 fi
44895
0b78747f
MW
44896 COND_USE_RTTI_0="#"
44897 if test "x$USE_RTTI" = "x0" ; then
44898 COND_USE_RTTI_0=""
44899 fi
44900
44901 COND_USE_RTTI_1="#"
44902 if test "x$USE_RTTI" = "x1" ; then
44903 COND_USE_RTTI_1=""
44904 fi
44905
a848cd7e
SC
44906 COND_USE_SOSYMLINKS_1="#"
44907 if test "x$USE_SOSYMLINKS" = "x1" ; then
44908 COND_USE_SOSYMLINKS_1=""
44909 fi
44910
eb730a0c
JS
44911 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44912 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44913 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44914 fi
44915
a848cd7e
SC
44916 COND_USE_SOVERLINUX_1="#"
44917 if test "x$USE_SOVERLINUX" = "x1" ; then
44918 COND_USE_SOVERLINUX_1=""
44919 fi
44920
44921 COND_USE_SOVERSION_0="#"
44922 if test "x$USE_SOVERSION" = "x0" ; then
44923 COND_USE_SOVERSION_0=""
44924 fi
44925
44926 COND_USE_SOVERSOLARIS_1="#"
44927 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44928 COND_USE_SOVERSOLARIS_1=""
44929 fi
44930
0b78747f
MW
44931 COND_USE_THREADS_0="#"
44932 if test "x$USE_THREADS" = "x0" ; then
44933 COND_USE_THREADS_0=""
44934 fi
44935
44936 COND_USE_THREADS_1="#"
44937 if test "x$USE_THREADS" = "x1" ; then
44938 COND_USE_THREADS_1=""
44939 fi
44940
a13a7f89
RL
44941 COND_USE_XRC_1="#"
44942 if test "x$USE_XRC" = "x1" ; then
44943 COND_USE_XRC_1=""
44944 fi
44945
eb730a0c
JS
44946 COND_WINDOWS_IMPLIB_1="#"
44947 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44948 COND_WINDOWS_IMPLIB_1=""
44949 fi
44950
a848cd7e
SC
44951 COND_WITH_PLUGIN_SDL_1="#"
44952 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44953 COND_WITH_PLUGIN_SDL_1=""
44954 fi
44955
1e6eb025
VZ
44956 COND_WXUNIV_0="#"
44957 if test "x$WXUNIV" = "x0" ; then
44958 COND_WXUNIV_0=""
44959 fi
44960
a848cd7e
SC
44961 COND_WXUNIV_1="#"
44962 if test "x$WXUNIV" = "x1" ; then
44963 COND_WXUNIV_1=""
44964 fi
44965
44966 COND_WXUSE_EXPAT_BUILTIN="#"
44967 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44968 COND_WXUSE_EXPAT_BUILTIN=""
44969 fi
44970
44971 COND_WXUSE_LIBJPEG_BUILTIN="#"
44972 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44973 COND_WXUSE_LIBJPEG_BUILTIN=""
44974 fi
44975
44976 COND_WXUSE_LIBPNG_BUILTIN="#"
44977 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44978 COND_WXUSE_LIBPNG_BUILTIN=""
44979 fi
44980
44981 COND_WXUSE_LIBTIFF_BUILTIN="#"
44982 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44983 COND_WXUSE_LIBTIFF_BUILTIN=""
44984 fi
44985
44986 COND_WXUSE_ODBC_BUILTIN="#"
44987 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44988 COND_WXUSE_ODBC_BUILTIN=""
44989 fi
44990
44991 COND_WXUSE_REGEX_BUILTIN="#"
44992 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44993 COND_WXUSE_REGEX_BUILTIN=""
44994 fi
44995
44996 COND_WXUSE_ZLIB_BUILTIN="#"
44997 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44998 COND_WXUSE_ZLIB_BUILTIN=""
44999 fi
45000
45001
45002
810b94f0
MW
45003 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45004 { { 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
45005echo "$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;}
45006 { (exit 1); exit 1; }; }
45007 fi
45008
2057db16
VS
45009 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45010 { { 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
45011echo "$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;}
45012 { (exit 1); exit 1; }; }
45013 fi
45014
a848cd7e 45015
ceec2216
RL
45016if test "$wxUSE_SHARED" = "yes"; then
45017
45018 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45019 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45020
5b674b9d
DE
45021 case "${host}" in
45022 *-pc-os2_emx | *-pc-os2-emx )
45023 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45024 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45025 cp -p ${srcdir}/src/os2/dllnames.sh .
45026 cp -p ${srcdir}/src/os2/dllar.sh .
45027 ;;
45028 esac
ceec2216
RL
45029else
45030
45031 EXE_LINKER="$CXX -o"
45032
45033fi
69120ee4
VZ
45034if test "$wxUSE_OMF" = "yes"; then
45035 case "${host}" in
45036 *-pc-os2_emx | *-pc-os2-emx )
45037 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45038 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45039 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45040 ;;
45041 esac
45042fi
a848cd7e 45043
ddd14b14
RR
45044GCC_PRAGMA_FLAGS=""
45045PCH_FLAGS=""
87dd70d3 45046
c08ebc62 45047if test $GCC_PCH = 1 ; then
ddd14b14 45048 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
45049 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
45050else
45051 if test "$GCC" = yes; then
45052 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 45053echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45054 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
45055/* confdefs.h. */
45056_ACEOF
45057cat confdefs.h >>conftest.$ac_ext
45058cat >>conftest.$ac_ext <<_ACEOF
45059/* end confdefs.h. */
45060
45061int
45062main ()
45063{
45064#if (__GNUC__ < 4)
04e525a0 45065 Not GCC 4.0 or greater
87ae5038 45066 #endif
87dd70d3
RR
45067
45068 ;
45069 return 0;
45070}
45071_ACEOF
45072rm -f conftest.$ac_objext
45073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45074 (eval $ac_compile) 2>conftest.er1
45075 ac_status=$?
45076 grep -v '^ *+' conftest.er1 >conftest.err
45077 rm -f conftest.er1
45078 cat conftest.err >&5
45079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45080 (exit $ac_status); } &&
6ebeb4c7 45081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
45082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45083 (eval $ac_try) 2>&5
45084 ac_status=$?
45085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086 (exit $ac_status); }; } &&
45087 { ac_try='test -s conftest.$ac_objext'
45088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089 (eval $ac_try) 2>&5
45090 ac_status=$?
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); }; }; then
45093 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45094 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
45095echo "${ECHO_T}yes" >&6
45096else
45097 echo "$as_me: failed program was:" >&5
45098sed 's/^/| /' conftest.$ac_ext >&5
45099
45100echo "$as_me:$LINENO: result: no" >&5
45101echo "${ECHO_T}no" >&6
87ae5038 45102 case "${host}" in
cfda0ea8 45103 *-*-darwin* )
87ae5038
RR
45104 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
45105 ;;
45106 *-*-mingw32* )
45107 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
45108 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
45109 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 45110 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 45111echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45112 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
45113/* confdefs.h. */
45114_ACEOF
45115cat confdefs.h >>conftest.$ac_ext
45116cat >>conftest.$ac_ext <<_ACEOF
45117/* end confdefs.h. */
45118
45119int
45120main ()
45121{
45122#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 45123 Not GCC 3.2 or greater
87ae5038 45124 #endif
ddd14b14
RR
45125
45126 ;
45127 return 0;
45128}
45129_ACEOF
45130rm -f conftest.$ac_objext
45131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45132 (eval $ac_compile) 2>conftest.er1
45133 ac_status=$?
45134 grep -v '^ *+' conftest.er1 >conftest.err
45135 rm -f conftest.er1
45136 cat conftest.err >&5
45137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45138 (exit $ac_status); } &&
6ebeb4c7 45139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
45140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45141 (eval $ac_try) 2>&5
45142 ac_status=$?
45143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144 (exit $ac_status); }; } &&
45145 { ac_try='test -s conftest.$ac_objext'
45146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45147 (eval $ac_try) 2>&5
45148 ac_status=$?
45149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45150 (exit $ac_status); }; }; then
45151 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45152 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
45153echo "${ECHO_T}yes" >&6
45154else
45155 echo "$as_me: failed program was:" >&5
45156sed 's/^/| /' conftest.$ac_ext >&5
45157
45158echo "$as_me:$LINENO: result: no" >&5
45159echo "${ECHO_T}no" >&6
3314e67b 45160fi
ddd14b14 45161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
45162 fi
45163 ;;
45164 *-pc-os2_emx | *-pc-os2-emx )
45165 if test "$wxUSE_STL" = "yes"; then
45166 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 45167echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45168 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
45169/* confdefs.h. */
45170_ACEOF
45171cat confdefs.h >>conftest.$ac_ext
45172cat >>conftest.$ac_ext <<_ACEOF
45173/* end confdefs.h. */
45174
45175int
45176main ()
45177{
45178#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 45179 Not GCC 3.2 or greater
87ae5038 45180 #endif
ddd14b14
RR
45181
45182 ;
45183 return 0;
45184}
45185_ACEOF
45186rm -f conftest.$ac_objext
45187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45188 (eval $ac_compile) 2>conftest.er1
45189 ac_status=$?
45190 grep -v '^ *+' conftest.er1 >conftest.err
45191 rm -f conftest.er1
45192 cat conftest.err >&5
45193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); } &&
6ebeb4c7 45195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
45196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45197 (eval $ac_try) 2>&5
45198 ac_status=$?
45199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45200 (exit $ac_status); }; } &&
45201 { ac_try='test -s conftest.$ac_objext'
45202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45203 (eval $ac_try) 2>&5
45204 ac_status=$?
45205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45206 (exit $ac_status); }; }; then
45207 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45208 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
45209echo "${ECHO_T}yes" >&6
45210else
45211 echo "$as_me: failed program was:" >&5
45212sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 45213
ddd14b14
RR
45214echo "$as_me:$LINENO: result: no" >&5
45215echo "${ECHO_T}no" >&6
45216fi
45217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
45218 fi
45219 ;;
45220 esac
45221
45222fi
45223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45224 fi
ddd14b14
RR
45225fi
45226CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
45227
45228
45229SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45230
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270
45271
a848cd7e
SC
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
45286
45287
45288
45289
ddd14b14 45290
a848cd7e
SC
45291
45292
45293echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45294echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45295set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45296if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45297 echo $ECHO_N "(cached) $ECHO_C" >&6
45298else
45299 cat >conftest.make <<\_ACEOF
45300all:
45301 @echo 'ac_maketemp="$(MAKE)"'
45302_ACEOF
45303# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45304eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45305if test -n "$ac_maketemp"; then
45306 eval ac_cv_prog_make_${ac_make}_set=yes
45307else
45308 eval ac_cv_prog_make_${ac_make}_set=no
45309fi
45310rm -f conftest.make
45311fi
45312if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45313 echo "$as_me:$LINENO: result: yes" >&5
45314echo "${ECHO_T}yes" >&6
45315 SET_MAKE=
45316else
45317 echo "$as_me:$LINENO: result: no" >&5
45318echo "${ECHO_T}no" >&6
45319 SET_MAKE="MAKE=${MAKE-make}"
45320fi
45321
45322
a848cd7e 45323
ceec2216
RL
45324 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45325
a848cd7e 45326
ceec2216 45327 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45328
a848cd7e 45329
ceec2216 45330 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45331
ceec2216
RL
45332
45333 ac_config_files="$ac_config_files version-script Makefile"
45334
45335
45336 ac_config_commands="$ac_config_commands wx-config
45337 "
a848cd7e
SC
45338
45339
9103d280
RL
45340
45341
a848cd7e
SC
45342if test "$wxUSE_GUI" = "yes"; then
45343 SUBDIRS="samples demos utils contrib"
45344else SUBDIRS="samples utils"
45345fi
45346
45347
45348
45349# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45350if test "${with_cppunit_prefix+set}" = set; then
45351 withval="$with_cppunit_prefix"
45352 cppunit_config_prefix="$withval"
45353else
45354 cppunit_config_prefix=""
45355fi;
45356
45357# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45358if test "${with_cppunit_exec_prefix+set}" = set; then
45359 withval="$with_cppunit_exec_prefix"
45360 cppunit_config_exec_prefix="$withval"
45361else
45362 cppunit_config_exec_prefix=""
45363fi;
45364
45365 if test x$cppunit_config_exec_prefix != x ; then
45366 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45367 if test x${CPPUNIT_CONFIG+set} != xset ; then
45368 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45369 fi
45370 fi
45371 if test x$cppunit_config_prefix != x ; then
45372 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45373 if test x${CPPUNIT_CONFIG+set} != xset ; then
45374 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45375 fi
45376 fi
45377
45378 # Extract the first word of "cppunit-config", so it can be a program name with args.
45379set dummy cppunit-config; ac_word=$2
45380echo "$as_me:$LINENO: checking for $ac_word" >&5
45381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45382if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45383 echo $ECHO_N "(cached) $ECHO_C" >&6
45384else
45385 case $CPPUNIT_CONFIG in
45386 [\\/]* | ?:[\\/]*)
45387 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45388 ;;
45389 *)
45390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45391for as_dir in $PATH
45392do
45393 IFS=$as_save_IFS
45394 test -z "$as_dir" && as_dir=.
45395 for ac_exec_ext in '' $ac_executable_extensions; do
45396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45397 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45399 break 2
45400 fi
45401done
45402done
45403
45404 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45405 ;;
45406esac
45407fi
45408CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45409
45410if test -n "$CPPUNIT_CONFIG"; then
45411 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45412echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45413else
45414 echo "$as_me:$LINENO: result: no" >&5
45415echo "${ECHO_T}no" >&6
45416fi
45417
45418 cppunit_version_min=1.8.0
45419
45420 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45421echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45422 no_cppunit=""
45423 if test "$CPPUNIT_CONFIG" = "no" ; then
45424 no_cppunit=yes
45425 else
45426 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45427 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45428 cppunit_version=`$CPPUNIT_CONFIG --version`
45429
45430 cppunit_major_version=`echo $cppunit_version | \
45431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45432 cppunit_minor_version=`echo $cppunit_version | \
45433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45434 cppunit_micro_version=`echo $cppunit_version | \
45435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45436
45437 cppunit_major_min=`echo $cppunit_version_min | \
45438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45439 cppunit_minor_min=`echo $cppunit_version_min | \
45440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45441 cppunit_micro_min=`echo $cppunit_version_min | \
45442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45443
45444 cppunit_version_proper=`expr \
45445 $cppunit_major_version \> $cppunit_major_min \| \
45446 $cppunit_major_version \= $cppunit_major_min \& \
45447 $cppunit_minor_version \> $cppunit_minor_min \| \
45448 $cppunit_major_version \= $cppunit_major_min \& \
45449 $cppunit_minor_version \= $cppunit_minor_min \& \
45450 $cppunit_micro_version \>= $cppunit_micro_min `
45451
45452 if test "$cppunit_version_proper" = "1" ; then
45453 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45454echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45455 else
45456 echo "$as_me:$LINENO: result: no" >&5
45457echo "${ECHO_T}no" >&6
45458 no_cppunit=yes
45459 fi
45460 fi
45461
45462 if test "x$no_cppunit" = x ; then
c2218763 45463 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45464 else
45465 CPPUNIT_CFLAGS=""
45466 CPPUNIT_LIBS=""
c2218763 45467 :
a848cd7e
SC
45468 fi
45469
45470
45471
45472
45473
45474for subdir in `echo $SUBDIRS`; do
45475 if test -d ${srcdir}/${subdir} ; then
45476 if test "$wxUSE_GUI" = "yes"; then
45477 if test ${subdir} = "samples"; then
45478 makefiles="samples/Makefile.in $makefiles"
45479 for sample in `echo $SAMPLES_SUBDIRS`; do
45480 if test -d $srcdir/samples/$sample; then
45481 makefiles="samples/$sample/Makefile.in $makefiles"
45482 fi
45483 done
9c112555
MW
45484 else
45485 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45486 eval "disabled=\$$disabled_var"
45487 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45488 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45489 fi
45490 else if test ${subdir} = "samples"; then
45491 makefiles="samples/Makefile.in samples/console/Makefile.in"
45492 elif test ${subdir} = "utils"; then
6537ccf8
VS
45493 makefiles=""
45494 for util in HelpGen tex2rtf ; do
45495 if test -d $srcdir/utils/$util ; then
45496 makefiles="utils/$util/Makefile.in \
45497 utils/$util/src/Makefile.in \
45498 $makefiles"
45499 fi
45500 done
a848cd7e
SC
45501 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45502 fi
45503 fi
45504
45505 for mkin in $makefiles ; do
45506 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45507 ac_config_files="$ac_config_files $mk"
45508
45509 done
45510 fi
45511done
45512
45513
45514cat >confcache <<\_ACEOF
45515# This file is a shell script that caches the results of configure
45516# tests run on this system so they can be shared between configure
45517# scripts and configure runs, see configure's option --config-cache.
45518# It is not useful on other systems. If it contains results you don't
45519# want to keep, you may remove or edit it.
45520#
45521# config.status only pays attention to the cache file if you give it
45522# the --recheck option to rerun configure.
45523#
45524# `ac_cv_env_foo' variables (set or unset) will be overridden when
45525# loading this file, other *unset* `ac_cv_foo' will be assigned the
45526# following values.
45527
45528_ACEOF
45529
45530# The following way of writing the cache mishandles newlines in values,
45531# but we know of no workaround that is simple, portable, and efficient.
45532# So, don't put newlines in cache variables' values.
45533# Ultrix sh set writes to stderr and can't be redirected directly,
45534# and sets the high bit in the cache file unless we assign to the vars.
45535{
45536 (set) 2>&1 |
45537 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45538 *ac_space=\ *)
45539 # `set' does not quote correctly, so add quotes (double-quote
45540 # substitution turns \\\\ into \\, and sed turns \\ into \).
45541 sed -n \
ac1cb8d3
VS
45542 "s/'/'\\\\''/g;
45543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45544 ;;
45545 *)
45546 # `set' quotes correctly as required by POSIX, so do not add quotes.
45547 sed -n \
ac1cb8d3 45548 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45549 ;;
45550 esac;
45551} |
45552 sed '
45553 t clear
45554 : clear
45555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45556 t end
45557 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45558 : end' >>confcache
45559if diff $cache_file confcache >/dev/null 2>&1; then :; else
45560 if test -w $cache_file; then
45561 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45562 cat confcache >$cache_file
45563 else
45564 echo "not updating unwritable cache $cache_file"
45565 fi
45566fi
45567rm -f confcache
45568
45569test "x$prefix" = xNONE && prefix=$ac_default_prefix
45570# Let make expand exec_prefix.
45571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45572
45573# VPATH may cause trouble with some makes, so we remove $(srcdir),
45574# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45575# trailing colons and then remove the whole line if VPATH becomes empty
45576# (actually we leave an empty line to preserve line numbers).
45577if test "x$srcdir" = x.; then
ac1cb8d3 45578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45579s/:*\$(srcdir):*/:/;
45580s/:*\${srcdir}:*/:/;
45581s/:*@srcdir@:*/:/;
ac1cb8d3 45582s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45583s/:*$//;
ac1cb8d3 45584s/^[^=]*=[ ]*$//;
a848cd7e
SC
45585}'
45586fi
45587
45588DEFS=-DHAVE_CONFIG_H
45589
45590ac_libobjs=
45591ac_ltlibobjs=
45592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45593 # 1. Remove the extension, and $U if already installed.
45594 ac_i=`echo "$ac_i" |
ac1cb8d3 45595 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45596 # 2. Add them.
45597 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45598 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45599done
45600LIBOBJS=$ac_libobjs
45601
45602LTLIBOBJS=$ac_ltlibobjs
45603
45604
45605
45606: ${CONFIG_STATUS=./config.status}
45607ac_clean_files_save=$ac_clean_files
45608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45609{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45610echo "$as_me: creating $CONFIG_STATUS" >&6;}
45611cat >$CONFIG_STATUS <<_ACEOF
45612#! $SHELL
45613# Generated by $as_me.
45614# Run this file to recreate the current configuration.
45615# Compiler output produced by configure, useful for debugging
45616# configure, is in config.log if it exists.
45617
45618debug=false
45619ac_cs_recheck=false
45620ac_cs_silent=false
45621SHELL=\${CONFIG_SHELL-$SHELL}
45622_ACEOF
45623
45624cat >>$CONFIG_STATUS <<\_ACEOF
45625## --------------------- ##
45626## M4sh Initialization. ##
45627## --------------------- ##
45628
45629# Be Bourne compatible
45630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45631 emulate sh
45632 NULLCMD=:
45633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45634 # is contrary to our usage. Disable this feature.
45635 alias -g '${1+"$@"}'='"$@"'
45636elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45637 set -o posix
45638fi
ac1cb8d3 45639DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45640
45641# Support unset when possible.
ac1cb8d3 45642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45643 as_unset=unset
45644else
45645 as_unset=false
45646fi
45647
45648
45649# Work around bugs in pre-3.0 UWIN ksh.
45650$as_unset ENV MAIL MAILPATH
45651PS1='$ '
45652PS2='> '
45653PS4='+ '
45654
45655# NLS nuisances.
45656for as_var in \
45657 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45658 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45659 LC_TELEPHONE LC_TIME
45660do
ac1cb8d3 45661 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45662 eval $as_var=C; export $as_var
45663 else
45664 $as_unset $as_var
45665 fi
45666done
45667
45668# Required to use basename.
45669if expr a : '\(a\)' >/dev/null 2>&1; then
45670 as_expr=expr
45671else
45672 as_expr=false
45673fi
45674
45675if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45676 as_basename=basename
45677else
45678 as_basename=false
45679fi
45680
45681
45682# Name of the executable.
45683as_me=`$as_basename "$0" ||
45684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45685 X"$0" : 'X\(//\)$' \| \
45686 X"$0" : 'X\(/\)$' \| \
45687 . : '\(.\)' 2>/dev/null ||
45688echo X/"$0" |
45689 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45690 /^X\/\(\/\/\)$/{ s//\1/; q; }
45691 /^X\/\(\/\).*/{ s//\1/; q; }
45692 s/.*/./; q'`
45693
45694
45695# PATH needs CR, and LINENO needs CR and PATH.
45696# Avoid depending upon Character Ranges.
45697as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45699as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45700as_cr_digits='0123456789'
45701as_cr_alnum=$as_cr_Letters$as_cr_digits
45702
45703# The user is always right.
45704if test "${PATH_SEPARATOR+set}" != set; then
45705 echo "#! /bin/sh" >conf$$.sh
45706 echo "exit 0" >>conf$$.sh
45707 chmod +x conf$$.sh
45708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45709 PATH_SEPARATOR=';'
45710 else
45711 PATH_SEPARATOR=:
45712 fi
45713 rm -f conf$$.sh
45714fi
45715
45716
45717 as_lineno_1=$LINENO
45718 as_lineno_2=$LINENO
45719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45720 test "x$as_lineno_1" != "x$as_lineno_2" &&
45721 test "x$as_lineno_3" = "x$as_lineno_2" || {
45722 # Find who we are. Look in the path if we contain no path at all
45723 # relative or not.
45724 case $0 in
45725 *[\\/]* ) as_myself=$0 ;;
45726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45727for as_dir in $PATH
45728do
45729 IFS=$as_save_IFS
45730 test -z "$as_dir" && as_dir=.
45731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45732done
45733
45734 ;;
45735 esac
45736 # We did not find ourselves, most probably we were run as `sh COMMAND'
45737 # in which case we are not to be found in the path.
45738 if test "x$as_myself" = x; then
45739 as_myself=$0
45740 fi
45741 if test ! -f "$as_myself"; then
45742 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45743echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45744 { (exit 1); exit 1; }; }
45745 fi
45746 case $CONFIG_SHELL in
45747 '')
45748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45749for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45750do
45751 IFS=$as_save_IFS
45752 test -z "$as_dir" && as_dir=.
45753 for as_base in sh bash ksh sh5; do
45754 case $as_dir in
45755 /*)
45756 if ("$as_dir/$as_base" -c '
45757 as_lineno_1=$LINENO
45758 as_lineno_2=$LINENO
45759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45760 test "x$as_lineno_1" != "x$as_lineno_2" &&
45761 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45762 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45763 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45764 CONFIG_SHELL=$as_dir/$as_base
45765 export CONFIG_SHELL
45766 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45767 fi;;
45768 esac
45769 done
45770done
45771;;
45772 esac
45773
45774 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45775 # uniformly replaced by the line number. The first 'sed' inserts a
45776 # line-number line before each line; the second 'sed' does the real
45777 # work. The second script uses 'N' to pair each line-number line
45778 # with the numbered line, and appends trailing '-' during
45779 # substitution so that $LINENO is not a special case at line end.
45780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45781 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45782 sed '=' <$as_myself |
45783 sed '
45784 N
45785 s,$,-,
45786 : loop
45787 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45788 t loop
45789 s,-$,,
45790 s,^['$as_cr_digits']*\n,,
45791 ' >$as_me.lineno &&
45792 chmod +x $as_me.lineno ||
45793 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45794echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45795 { (exit 1); exit 1; }; }
45796
45797 # Don't try to exec as it changes $[0], causing all sort of problems
45798 # (the dirname of $[0] is not the place where we might find the
45799 # original and so on. Autoconf is especially sensible to this).
45800 . ./$as_me.lineno
45801 # Exit status is that of the last command.
45802 exit
45803}
45804
45805
45806case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45807 *c*,-n*) ECHO_N= ECHO_C='
45808' ECHO_T=' ' ;;
45809 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45810 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45811esac
45812
45813if expr a : '\(a\)' >/dev/null 2>&1; then
45814 as_expr=expr
45815else
45816 as_expr=false
45817fi
45818
45819rm -f conf$$ conf$$.exe conf$$.file
45820echo >conf$$.file
45821if ln -s conf$$.file conf$$ 2>/dev/null; then
45822 # We could just check for DJGPP; but this test a) works b) is more generic
45823 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45824 if test -f conf$$.exe; then
45825 # Don't use ln at all; we don't have any links
45826 as_ln_s='cp -p'
45827 else
45828 as_ln_s='ln -s'
45829 fi
45830elif ln conf$$.file conf$$ 2>/dev/null; then
45831 as_ln_s=ln
45832else
45833 as_ln_s='cp -p'
45834fi
45835rm -f conf$$ conf$$.exe conf$$.file
45836
45837if mkdir -p . 2>/dev/null; then
45838 as_mkdir_p=:
45839else
ac1cb8d3 45840 test -d ./-p && rmdir ./-p
a848cd7e
SC
45841 as_mkdir_p=false
45842fi
45843
45844as_executable_p="test -f"
45845
45846# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45848
45849# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45851
45852
45853# IFS
45854# We need space, tab and new line, in precisely that order.
45855as_nl='
45856'
45857IFS=" $as_nl"
45858
45859# CDPATH.
45860$as_unset CDPATH
45861
45862exec 6>&1
45863
45864# Open the log real soon, to keep \$[0] and so on meaningful, and to
45865# report actual input values of CONFIG_FILES etc. instead of their
45866# values after options handling. Logging --version etc. is OK.
45867exec 5>>config.log
45868{
45869 echo
45870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45871## Running $as_me. ##
45872_ASBOX
45873} >&5
45874cat >&5 <<_CSEOF
45875
eb730a0c 45876This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45877generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45878
45879 CONFIG_FILES = $CONFIG_FILES
45880 CONFIG_HEADERS = $CONFIG_HEADERS
45881 CONFIG_LINKS = $CONFIG_LINKS
45882 CONFIG_COMMANDS = $CONFIG_COMMANDS
45883 $ $0 $@
45884
45885_CSEOF
45886echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45887echo >&5
45888_ACEOF
45889
45890# Files that config.status was made for.
45891if test -n "$ac_config_files"; then
45892 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45893fi
45894
45895if test -n "$ac_config_headers"; then
45896 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45897fi
45898
45899if test -n "$ac_config_links"; then
45900 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45901fi
45902
45903if test -n "$ac_config_commands"; then
45904 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45905fi
45906
45907cat >>$CONFIG_STATUS <<\_ACEOF
45908
45909ac_cs_usage="\
45910\`$as_me' instantiates files from templates according to the
45911current configuration.
45912
45913Usage: $0 [OPTIONS] [FILE]...
45914
45915 -h, --help print this help, then exit
45916 -V, --version print version number, then exit
45917 -q, --quiet do not print progress messages
45918 -d, --debug don't remove temporary files
45919 --recheck update $as_me by reconfiguring in the same conditions
45920 --file=FILE[:TEMPLATE]
ac1cb8d3 45921 instantiate the configuration file FILE
a848cd7e 45922 --header=FILE[:TEMPLATE]
ac1cb8d3 45923 instantiate the configuration header FILE
a848cd7e
SC
45924
45925Configuration files:
45926$config_files
45927
45928Configuration headers:
45929$config_headers
45930
45931Configuration commands:
45932$config_commands
45933
45934Report bugs to <bug-autoconf@gnu.org>."
45935_ACEOF
45936
45937cat >>$CONFIG_STATUS <<_ACEOF
45938ac_cs_version="\\
eb730a0c 45939wxWidgets config.status 2.6.2
ac1cb8d3 45940configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45941 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45942
ac1cb8d3 45943Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45944This config.status script is free software; the Free Software Foundation
45945gives unlimited permission to copy, distribute and modify it."
45946srcdir=$srcdir
45947INSTALL="$INSTALL"
45948_ACEOF
45949
45950cat >>$CONFIG_STATUS <<\_ACEOF
45951# If no file are specified by the user, then we need to provide default
45952# value. By we need to know if files were specified by the user.
45953ac_need_defaults=:
45954while test $# != 0
45955do
45956 case $1 in
45957 --*=*)
45958 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45959 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45960 ac_shift=:
45961 ;;
45962 -*)
45963 ac_option=$1
45964 ac_optarg=$2
45965 ac_shift=shift
45966 ;;
45967 *) # This is not an option, so the user has probably given explicit
45968 # arguments.
45969 ac_option=$1
45970 ac_need_defaults=false;;
45971 esac
45972
45973 case $ac_option in
45974 # Handling of the options.
45975_ACEOF
45976cat >>$CONFIG_STATUS <<\_ACEOF
45977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45978 ac_cs_recheck=: ;;
45979 --version | --vers* | -V )
45980 echo "$ac_cs_version"; exit 0 ;;
45981 --he | --h)
45982 # Conflict between --help and --header
45983 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45984Try \`$0 --help' for more information." >&5
45985echo "$as_me: error: ambiguous option: $1
45986Try \`$0 --help' for more information." >&2;}
45987 { (exit 1); exit 1; }; };;
45988 --help | --hel | -h )
45989 echo "$ac_cs_usage"; exit 0 ;;
45990 --debug | --d* | -d )
45991 debug=: ;;
45992 --file | --fil | --fi | --f )
45993 $ac_shift
45994 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45995 ac_need_defaults=false;;
45996 --header | --heade | --head | --hea )
45997 $ac_shift
45998 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45999 ac_need_defaults=false;;
46000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46002 ac_cs_silent=: ;;
46003
46004 # This is an error.
46005 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46006Try \`$0 --help' for more information." >&5
46007echo "$as_me: error: unrecognized option: $1
46008Try \`$0 --help' for more information." >&2;}
46009 { (exit 1); exit 1; }; } ;;
46010
46011 *) ac_config_targets="$ac_config_targets $1" ;;
46012
46013 esac
46014 shift
46015done
46016
46017ac_configure_extra_args=
46018
46019if $ac_cs_silent; then
46020 exec 6>/dev/null
46021 ac_configure_extra_args="$ac_configure_extra_args --silent"
46022fi
46023
46024_ACEOF
46025cat >>$CONFIG_STATUS <<_ACEOF
46026if \$ac_cs_recheck; then
46027 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46028 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46029fi
46030
46031_ACEOF
46032
46033cat >>$CONFIG_STATUS <<_ACEOF
46034#
46035# INIT-COMMANDS section.
46036#
46037
ceec2216
RL
46038 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46039 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46040 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46041 LN_S="${LN_S}"
a848cd7e
SC
46042
46043
46044_ACEOF
46045
46046
46047
46048cat >>$CONFIG_STATUS <<\_ACEOF
46049for ac_config_target in $ac_config_targets
46050do
46051 case "$ac_config_target" in
46052 # Handling of arguments.
ceec2216
RL
46053 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46054 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46055 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46056 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46057 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46058 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46059 "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
46060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46061echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46062 { (exit 1); exit 1; }; };;
46063 esac
46064done
46065
46066# If the user did not use the arguments to specify the items to instantiate,
46067# then the envvar interface is used. Set only those that are not.
46068# We use the long form for the default assignment because of an extremely
46069# bizarre bug on SunOS 4.1.3.
46070if $ac_need_defaults; then
46071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46074fi
46075
46076# Have a temporary directory for convenience. Make it in the build tree
46077# simply because there is no reason to put it here, and in addition,
46078# creating and moving files from /tmp can sometimes cause problems.
46079# Create a temporary directory, and hook for its removal unless debugging.
46080$debug ||
46081{
46082 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46083 trap '{ (exit 1); exit 1; }' 1 2 13 15
46084}
46085
46086# Create a (secure) tmp directory for tmp files.
46087
46088{
46089 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46090 test -n "$tmp" && test -d "$tmp"
46091} ||
46092{
46093 tmp=./confstat$$-$RANDOM
46094 (umask 077 && mkdir $tmp)
46095} ||
46096{
46097 echo "$me: cannot create a temporary directory in ." >&2
46098 { (exit 1); exit 1; }
46099}
46100
46101_ACEOF
46102
46103cat >>$CONFIG_STATUS <<_ACEOF
46104
46105#
46106# CONFIG_FILES section.
46107#
46108
46109# No need to generate the scripts if there are no CONFIG_FILES.
46110# This happens for instance when ./config.status config.h
46111if test -n "\$CONFIG_FILES"; then
46112 # Protect against being on the right side of a sed subst in config.status.
46113 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46114 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46115s,@SHELL@,$SHELL,;t t
46116s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46117s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46118s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46119s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46120s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46121s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46122s,@exec_prefix@,$exec_prefix,;t t
46123s,@prefix@,$prefix,;t t
46124s,@program_transform_name@,$program_transform_name,;t t
46125s,@bindir@,$bindir,;t t
46126s,@sbindir@,$sbindir,;t t
46127s,@libexecdir@,$libexecdir,;t t
46128s,@datadir@,$datadir,;t t
46129s,@sysconfdir@,$sysconfdir,;t t
46130s,@sharedstatedir@,$sharedstatedir,;t t
46131s,@localstatedir@,$localstatedir,;t t
46132s,@libdir@,$libdir,;t t
46133s,@includedir@,$includedir,;t t
46134s,@oldincludedir@,$oldincludedir,;t t
46135s,@infodir@,$infodir,;t t
46136s,@mandir@,$mandir,;t t
46137s,@build_alias@,$build_alias,;t t
46138s,@host_alias@,$host_alias,;t t
46139s,@target_alias@,$target_alias,;t t
46140s,@DEFS@,$DEFS,;t t
46141s,@ECHO_C@,$ECHO_C,;t t
46142s,@ECHO_N@,$ECHO_N,;t t
46143s,@ECHO_T@,$ECHO_T,;t t
46144s,@LIBS@,$LIBS,;t t
46145s,@build@,$build,;t t
46146s,@build_cpu@,$build_cpu,;t t
46147s,@build_vendor@,$build_vendor,;t t
46148s,@build_os@,$build_os,;t t
46149s,@host@,$host,;t t
46150s,@host_cpu@,$host_cpu,;t t
46151s,@host_vendor@,$host_vendor,;t t
46152s,@host_os@,$host_os,;t t
46153s,@target@,$target,;t t
46154s,@target_cpu@,$target_cpu,;t t
46155s,@target_vendor@,$target_vendor,;t t
46156s,@target_os@,$target_os,;t t
46157s,@CC@,$CC,;t t
46158s,@CFLAGS@,$CFLAGS,;t t
46159s,@LDFLAGS@,$LDFLAGS,;t t
46160s,@CPPFLAGS@,$CPPFLAGS,;t t
46161s,@ac_ct_CC@,$ac_ct_CC,;t t
46162s,@EXEEXT@,$EXEEXT,;t t
46163s,@OBJEXT@,$OBJEXT,;t t
46164s,@CPP@,$CPP,;t t
46165s,@EGREP@,$EGREP,;t t
46166s,@CXX@,$CXX,;t t
46167s,@CXXFLAGS@,$CXXFLAGS,;t t
46168s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46169s,@RANLIB@,$RANLIB,;t t
46170s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46171s,@AR@,$AR,;t t
8c80d384 46172s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46173s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46174s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46175s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46176s,@STRIP@,$STRIP,;t t
8c80d384
DE
46177s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46178s,@RESCOMP@,$RESCOMP,;t t
46179s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46180s,@DLLTOOL@,$DLLTOOL,;t t
46181s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46182s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46183s,@LN_S@,$LN_S,;t t
46184s,@CXXCPP@,$CXXCPP,;t t
46185s,@subdirs@,$subdirs,;t t
46186s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46187s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46188s,@GTK_LIBS@,$GTK_LIBS,;t t
46189s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46190s,@X_CFLAGS@,$X_CFLAGS,;t t
46191s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46192s,@X_LIBS@,$X_LIBS,;t t
46193s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46194s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46195s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46196s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46197s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46198s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46199s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46200s,@DEREZ@,$DEREZ,;t t
46201s,@SETFILE@,$SETFILE,;t t
46202s,@LIBICONV@,$LIBICONV,;t t
46203s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46204s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46205s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46206s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46207s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46208s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46209s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46210s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46211s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46212s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46213s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46214s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46215s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46216s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46217s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46218s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46219s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46220s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46221s,@VENDOR@,$VENDOR,;t t
46222s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46223s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46224s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46225s,@WXUNIV@,$WXUNIV,;t t
46226s,@MONOLITHIC@,$MONOLITHIC,;t t
46227s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46228s,@EXTRALIBS@,$EXTRALIBS,;t t
46229s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46230s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46231s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46232s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46233s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46234s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46235s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46236s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46237s,@UNICODE@,$UNICODE,;t t
46238s,@BUILD@,$BUILD,;t t
46239s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46240s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46241s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46242s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46243s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46244s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46245s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46246s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46247s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46248s,@SET_MAKE@,$SET_MAKE,;t t
46249s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46250s,@NM@,$NM,;t t
46251s,@ac_ct_NM@,$ac_ct_NM,;t t
46252s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46253s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46254s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46255s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46256s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46257s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46258s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46259s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46260s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46261s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46262s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46263s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46264s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46265s,@LIBPREFIX@,$LIBPREFIX,;t t
46266s,@LIBEXT@,$LIBEXT,;t t
46267s,@DLLPREFIX@,$DLLPREFIX,;t t
46268s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46269s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46270s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46271s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46272s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46273s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46274s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46275s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46276s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46277s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46278s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46279s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46280s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46281s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46282s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46283s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46284s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46285s,@GCC_PCH@,$GCC_PCH,;t t
46286s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46287s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46288s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46289s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46290s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46291s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46292s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46293s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46294s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46295s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46296s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46297s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46298s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46299s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46300s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46301s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46302s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46303s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46304s,@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 46305s,@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 46306s,@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 46307s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46308s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46309s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46310s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46311s,@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 46312s,@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 46313s,@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 46314s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46315s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46316s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46317s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46318s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46319s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46320s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46321s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46322s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46323s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46324s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46325s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46326s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46327s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46328s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46329s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46330s,@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
46331s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46332s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46333s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46334s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46335s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46336s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46337s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46338s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46339s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46340s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46341s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46342s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46343s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46344s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46345s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46346s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46347s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46348s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46349s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46350s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46351s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46352s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46353s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46354s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46355s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46356s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46357s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46358s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46359s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46360s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46361s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46362s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46363s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46364s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46365s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46366s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46367s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46368s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46369s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46370s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46371s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46372s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46373s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46374s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46375s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46376s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46377s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46378s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
46379s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46380s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46381s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46382s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46383s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46384s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
46385s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46386s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46387s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46388s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46389s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46390s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46391s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46392s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46393s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46394s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46395s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46396s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46397s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46398s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46399s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46400s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46401s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46402s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46403s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46404s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46405s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46406s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46407s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46408s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46409s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46410s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46411s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46412s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46413s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46414s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46415s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46416s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46417s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46418s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46419s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46420s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46421s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46422s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46423s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46424s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46425s,@USE_GUI@,$USE_GUI,;t t
46426s,@AFMINSTALL@,$AFMINSTALL,;t t
46427s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46428s,@TOOLKIT@,$TOOLKIT,;t t
46429s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46430s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46431s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46432s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46433s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46434s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46435s,@WIDGET_SET@,$WIDGET_SET,;t t
46436s,@WX_RELEASE@,$WX_RELEASE,;t t
46437s,@WX_VERSION@,$WX_VERSION,;t t
46438s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46439s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46440s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46441s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46442s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46443s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46444s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46445s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46446s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46447s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46448s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46449s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46450s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46451s,@DISTDIR@,$DISTDIR,;t t
46452s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46453s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46454s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46455s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46456s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46457s,@RESFLAGS@,$RESFLAGS,;t t
46458s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46459s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46460s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46461s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46462s,@MACRESCOMP@,$MACRESCOMP,;t t
46463s,@MACSETFILE@,$MACSETFILE,;t t
46464s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46465s,@GCC@,$GCC,;t t
a848cd7e
SC
46466s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46467s,@LIBOBJS@,$LIBOBJS,;t t
46468s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46469CEOF
46470
46471_ACEOF
46472
46473 cat >>$CONFIG_STATUS <<\_ACEOF
46474 # Split the substitutions into bite-sized pieces for seds with
46475 # small command number limits, like on Digital OSF/1 and HP-UX.
46476 ac_max_sed_lines=48
46477 ac_sed_frag=1 # Number of current file.
46478 ac_beg=1 # First line for current file.
46479 ac_end=$ac_max_sed_lines # Line after last line for current file.
46480 ac_more_lines=:
46481 ac_sed_cmds=
46482 while $ac_more_lines; do
46483 if test $ac_beg -gt 1; then
46484 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46485 else
46486 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46487 fi
46488 if test ! -s $tmp/subs.frag; then
46489 ac_more_lines=false
46490 else
46491 # The purpose of the label and of the branching condition is to
46492 # speed up the sed processing (if there are no `@' at all, there
46493 # is no need to browse any of the substitutions).
46494 # These are the two extra sed commands mentioned above.
46495 (echo ':t
46496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46497 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46498 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46499 else
ac1cb8d3 46500 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46501 fi
46502 ac_sed_frag=`expr $ac_sed_frag + 1`
46503 ac_beg=$ac_end
46504 ac_end=`expr $ac_end + $ac_max_sed_lines`
46505 fi
46506 done
46507 if test -z "$ac_sed_cmds"; then
46508 ac_sed_cmds=cat
46509 fi
46510fi # test -n "$CONFIG_FILES"
46511
46512_ACEOF
46513cat >>$CONFIG_STATUS <<\_ACEOF
46514for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46516 case $ac_file in
46517 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46518 cat >$tmp/stdin
46519 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46521 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46523 * ) ac_file_in=$ac_file.in ;;
46524 esac
46525
46526 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46527 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46529 X"$ac_file" : 'X\(//\)[^/]' \| \
46530 X"$ac_file" : 'X\(//\)$' \| \
46531 X"$ac_file" : 'X\(/\)' \| \
46532 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46533echo X"$ac_file" |
46534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46536 /^X\(\/\/\)$/{ s//\1/; q; }
46537 /^X\(\/\).*/{ s//\1/; q; }
46538 s/.*/./; q'`
46539 { if $as_mkdir_p; then
46540 mkdir -p "$ac_dir"
46541 else
46542 as_dir="$ac_dir"
46543 as_dirs=
46544 while test ! -d "$as_dir"; do
46545 as_dirs="$as_dir $as_dirs"
46546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46548 X"$as_dir" : 'X\(//\)[^/]' \| \
46549 X"$as_dir" : 'X\(//\)$' \| \
46550 X"$as_dir" : 'X\(/\)' \| \
46551 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46552echo X"$as_dir" |
46553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46555 /^X\(\/\/\)$/{ s//\1/; q; }
46556 /^X\(\/\).*/{ s//\1/; q; }
46557 s/.*/./; q'`
46558 done
46559 test ! -n "$as_dirs" || mkdir $as_dirs
46560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46561echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46562 { (exit 1); exit 1; }; }; }
46563
46564 ac_builddir=.
46565
46566if test "$ac_dir" != .; then
46567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46568 # A "../" for each directory in $ac_dir_suffix.
46569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46570else
46571 ac_dir_suffix= ac_top_builddir=
46572fi
46573
46574case $srcdir in
46575 .) # No --srcdir option. We are building in place.
46576 ac_srcdir=.
46577 if test -z "$ac_top_builddir"; then
46578 ac_top_srcdir=.
46579 else
46580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46581 fi ;;
46582 [\\/]* | ?:[\\/]* ) # Absolute path.
46583 ac_srcdir=$srcdir$ac_dir_suffix;
46584 ac_top_srcdir=$srcdir ;;
46585 *) # Relative path.
46586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46588esac
ac1cb8d3
VS
46589
46590# Do not use `cd foo && pwd` to compute absolute paths, because
46591# the directories may not exist.
46592case `pwd` in
46593.) ac_abs_builddir="$ac_dir";;
46594*)
46595 case "$ac_dir" in
46596 .) ac_abs_builddir=`pwd`;;
46597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46599 esac;;
46600esac
46601case $ac_abs_builddir in
46602.) ac_abs_top_builddir=${ac_top_builddir}.;;
46603*)
46604 case ${ac_top_builddir}. in
46605 .) ac_abs_top_builddir=$ac_abs_builddir;;
46606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46608 esac;;
46609esac
46610case $ac_abs_builddir in
46611.) ac_abs_srcdir=$ac_srcdir;;
46612*)
46613 case $ac_srcdir in
46614 .) ac_abs_srcdir=$ac_abs_builddir;;
46615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46617 esac;;
46618esac
46619case $ac_abs_builddir in
46620.) ac_abs_top_srcdir=$ac_top_srcdir;;
46621*)
46622 case $ac_top_srcdir in
46623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46626 esac;;
46627esac
a848cd7e
SC
46628
46629
46630 case $INSTALL in
46631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46632 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46633 esac
46634
a848cd7e
SC
46635 # Let's still pretend it is `configure' which instantiates (i.e., don't
46636 # use $as_me), people would be surprised to read:
46637 # /* config.h. Generated by config.status. */
46638 if test x"$ac_file" = x-; then
46639 configure_input=
46640 else
46641 configure_input="$ac_file. "
46642 fi
46643 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46644 sed 's,.*/,,'` by configure."
a848cd7e
SC
46645
46646 # First look for the input files in the build tree, otherwise in the
46647 # src tree.
46648 ac_file_inputs=`IFS=:
46649 for f in $ac_file_in; do
46650 case $f in
46651 -) echo $tmp/stdin ;;
46652 [\\/$]*)
ac1cb8d3
VS
46653 # Absolute (can't be DOS-style, as IFS=:)
46654 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46655echo "$as_me: error: cannot find input file: $f" >&2;}
46656 { (exit 1); exit 1; }; }
ac1cb8d3 46657 echo "$f";;
a848cd7e 46658 *) # Relative
ac1cb8d3
VS
46659 if test -f "$f"; then
46660 # Build tree
46661 echo "$f"
46662 elif test -f "$srcdir/$f"; then
46663 # Source tree
46664 echo "$srcdir/$f"
46665 else
46666 # /dev/null tree
46667 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46668echo "$as_me: error: cannot find input file: $f" >&2;}
46669 { (exit 1); exit 1; }; }
ac1cb8d3 46670 fi;;
a848cd7e
SC
46671 esac
46672 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46673
46674 if test x"$ac_file" != x-; then
46675 { echo "$as_me:$LINENO: creating $ac_file" >&5
46676echo "$as_me: creating $ac_file" >&6;}
46677 rm -f "$ac_file"
46678 fi
a848cd7e
SC
46679_ACEOF
46680cat >>$CONFIG_STATUS <<_ACEOF
46681 sed "$ac_vpsub
46682$extrasub
46683_ACEOF
46684cat >>$CONFIG_STATUS <<\_ACEOF
46685:t
46686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46687s,@configure_input@,$configure_input,;t t
46688s,@srcdir@,$ac_srcdir,;t t
46689s,@abs_srcdir@,$ac_abs_srcdir,;t t
46690s,@top_srcdir@,$ac_top_srcdir,;t t
46691s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46692s,@builddir@,$ac_builddir,;t t
46693s,@abs_builddir@,$ac_abs_builddir,;t t
46694s,@top_builddir@,$ac_top_builddir,;t t
46695s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46696s,@INSTALL@,$ac_INSTALL,;t t
46697" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46698 rm -f $tmp/stdin
46699 if test x"$ac_file" != x-; then
46700 mv $tmp/out $ac_file
46701 else
46702 cat $tmp/out
46703 rm -f $tmp/out
46704 fi
46705
ceec2216
RL
46706 # Run the commands associated with the file.
46707 case $ac_file in
46708 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46709 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46710 esac
a848cd7e
SC
46711done
46712_ACEOF
46713cat >>$CONFIG_STATUS <<\_ACEOF
46714
46715#
46716# CONFIG_HEADER section.
46717#
46718
46719# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46720# NAME is the cpp macro being defined and VALUE is the value it is being given.
46721#
46722# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46723ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46724ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46725ac_dC=' '
46726ac_dD=',;t'
46727# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46728ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46729ac_uB='$,\1#\2define\3'
46730ac_uC=' '
46731ac_uD=',;t'
46732
46733for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46735 case $ac_file in
46736 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46737 cat >$tmp/stdin
46738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46742 * ) ac_file_in=$ac_file.in ;;
46743 esac
46744
46745 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46746echo "$as_me: creating $ac_file" >&6;}
46747
46748 # First look for the input files in the build tree, otherwise in the
46749 # src tree.
46750 ac_file_inputs=`IFS=:
46751 for f in $ac_file_in; do
46752 case $f in
46753 -) echo $tmp/stdin ;;
46754 [\\/$]*)
ac1cb8d3
VS
46755 # Absolute (can't be DOS-style, as IFS=:)
46756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46757echo "$as_me: error: cannot find input file: $f" >&2;}
46758 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46759 # Do quote $f, to prevent DOS paths from being IFS'd.
46760 echo "$f";;
a848cd7e 46761 *) # Relative
ac1cb8d3
VS
46762 if test -f "$f"; then
46763 # Build tree
46764 echo "$f"
46765 elif test -f "$srcdir/$f"; then
46766 # Source tree
46767 echo "$srcdir/$f"
46768 else
46769 # /dev/null tree
46770 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46771echo "$as_me: error: cannot find input file: $f" >&2;}
46772 { (exit 1); exit 1; }; }
ac1cb8d3 46773 fi;;
a848cd7e
SC
46774 esac
46775 done` || { (exit 1); exit 1; }
46776 # Remove the trailing spaces.
ac1cb8d3 46777 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46778
46779_ACEOF
46780
46781# Transform confdefs.h into two sed scripts, `conftest.defines' and
46782# `conftest.undefs', that substitutes the proper values into
46783# config.h.in to produce config.h. The first handles `#define'
46784# templates, and the second `#undef' templates.
46785# And first: Protect against being on the right side of a sed subst in
46786# config.status. Protect against being in an unquoted here document
46787# in config.status.
46788rm -f conftest.defines conftest.undefs
46789# Using a here document instead of a string reduces the quoting nightmare.
46790# Putting comments in sed scripts is not portable.
46791#
46792# `end' is used to avoid that the second main sed command (meant for
46793# 0-ary CPP macros) applies to n-ary macro definitions.
46794# See the Autoconf documentation for `clear'.
46795cat >confdef2sed.sed <<\_ACEOF
46796s/[\\&,]/\\&/g
46797s,[\\$`],\\&,g
46798t clear
46799: clear
ac1cb8d3 46800s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46801t end
ac1cb8d3 46802s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46803: end
46804_ACEOF
46805# If some macros were called several times there might be several times
46806# the same #defines, which is useless. Nevertheless, we may not want to
46807# sort them, since we want the *last* AC-DEFINE to be honored.
46808uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46809sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46810rm -f confdef2sed.sed
46811
46812# This sed command replaces #undef with comments. This is necessary, for
46813# example, in the case of _POSIX_SOURCE, which is predefined and required
46814# on some systems where configure will not decide to define it.
46815cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46816s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46817_ACEOF
46818
46819# Break up conftest.defines because some shells have a limit on the size
46820# of here documents, and old seds have small limits too (100 cmds).
46821echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46822echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46823echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46824echo ' :' >>$CONFIG_STATUS
46825rm -f conftest.tail
46826while grep . conftest.defines >/dev/null
46827do
46828 # Write a limited-size here document to $tmp/defines.sed.
46829 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46830 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46831 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46832 # Work around the forget-to-reset-the-flag bug.
46833 echo 't clr' >>$CONFIG_STATUS
46834 echo ': clr' >>$CONFIG_STATUS
46835 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46836 echo 'CEOF
46837 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46838 rm -f $tmp/in
46839 mv $tmp/out $tmp/in
46840' >>$CONFIG_STATUS
46841 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46842 rm -f conftest.defines
46843 mv conftest.tail conftest.defines
46844done
46845rm -f conftest.defines
46846echo ' fi # grep' >>$CONFIG_STATUS
46847echo >>$CONFIG_STATUS
46848
46849# Break up conftest.undefs because some shells have a limit on the size
46850# of here documents, and old seds have small limits too (100 cmds).
46851echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46852rm -f conftest.tail
46853while grep . conftest.undefs >/dev/null
46854do
46855 # Write a limited-size here document to $tmp/undefs.sed.
46856 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46857 # Speed up: don't consider the non `#undef'
ac1cb8d3 46858 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46859 # Work around the forget-to-reset-the-flag bug.
46860 echo 't clr' >>$CONFIG_STATUS
46861 echo ': clr' >>$CONFIG_STATUS
46862 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46863 echo 'CEOF
46864 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46865 rm -f $tmp/in
46866 mv $tmp/out $tmp/in
46867' >>$CONFIG_STATUS
46868 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46869 rm -f conftest.undefs
46870 mv conftest.tail conftest.undefs
46871done
46872rm -f conftest.undefs
46873
46874cat >>$CONFIG_STATUS <<\_ACEOF
46875 # Let's still pretend it is `configure' which instantiates (i.e., don't
46876 # use $as_me), people would be surprised to read:
46877 # /* config.h. Generated by config.status. */
46878 if test x"$ac_file" = x-; then
46879 echo "/* Generated by configure. */" >$tmp/config.h
46880 else
46881 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46882 fi
46883 cat $tmp/in >>$tmp/config.h
46884 rm -f $tmp/in
46885 if test x"$ac_file" != x-; then
46886 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46887 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46888echo "$as_me: $ac_file is unchanged" >&6;}
46889 else
46890 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46892 X"$ac_file" : 'X\(//\)[^/]' \| \
46893 X"$ac_file" : 'X\(//\)$' \| \
46894 X"$ac_file" : 'X\(/\)' \| \
46895 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46896echo X"$ac_file" |
46897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46899 /^X\(\/\/\)$/{ s//\1/; q; }
46900 /^X\(\/\).*/{ s//\1/; q; }
46901 s/.*/./; q'`
46902 { if $as_mkdir_p; then
46903 mkdir -p "$ac_dir"
46904 else
46905 as_dir="$ac_dir"
46906 as_dirs=
46907 while test ! -d "$as_dir"; do
46908 as_dirs="$as_dir $as_dirs"
46909 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46911 X"$as_dir" : 'X\(//\)[^/]' \| \
46912 X"$as_dir" : 'X\(//\)$' \| \
46913 X"$as_dir" : 'X\(/\)' \| \
46914 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46915echo X"$as_dir" |
46916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46918 /^X\(\/\/\)$/{ s//\1/; q; }
46919 /^X\(\/\).*/{ s//\1/; q; }
46920 s/.*/./; q'`
46921 done
46922 test ! -n "$as_dirs" || mkdir $as_dirs
46923 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46924echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46925 { (exit 1); exit 1; }; }; }
46926
46927 rm -f $ac_file
46928 mv $tmp/config.h $ac_file
46929 fi
46930 else
46931 cat $tmp/config.h
46932 rm -f $tmp/config.h
46933 fi
46934done
46935_ACEOF
46936cat >>$CONFIG_STATUS <<\_ACEOF
46937
46938#
46939# CONFIG_COMMANDS section.
46940#
46941for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46942 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46943 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46944 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46945$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46946 X"$ac_dest" : 'X\(//\)[^/]' \| \
46947 X"$ac_dest" : 'X\(//\)$' \| \
46948 X"$ac_dest" : 'X\(/\)' \| \
46949 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46950echo X"$ac_dest" |
46951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46953 /^X\(\/\/\)$/{ s//\1/; q; }
46954 /^X\(\/\).*/{ s//\1/; q; }
46955 s/.*/./; q'`
ac1cb8d3
VS
46956 { if $as_mkdir_p; then
46957 mkdir -p "$ac_dir"
46958 else
46959 as_dir="$ac_dir"
46960 as_dirs=
46961 while test ! -d "$as_dir"; do
46962 as_dirs="$as_dir $as_dirs"
46963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46965 X"$as_dir" : 'X\(//\)[^/]' \| \
46966 X"$as_dir" : 'X\(//\)$' \| \
46967 X"$as_dir" : 'X\(/\)' \| \
46968 . : '\(.\)' 2>/dev/null ||
46969echo X"$as_dir" |
46970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46972 /^X\(\/\/\)$/{ s//\1/; q; }
46973 /^X\(\/\).*/{ s//\1/; q; }
46974 s/.*/./; q'`
46975 done
46976 test ! -n "$as_dirs" || mkdir $as_dirs
46977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46978echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46979 { (exit 1); exit 1; }; }; }
46980
a848cd7e
SC
46981 ac_builddir=.
46982
46983if test "$ac_dir" != .; then
46984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46985 # A "../" for each directory in $ac_dir_suffix.
46986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46987else
46988 ac_dir_suffix= ac_top_builddir=
46989fi
46990
46991case $srcdir in
46992 .) # No --srcdir option. We are building in place.
46993 ac_srcdir=.
46994 if test -z "$ac_top_builddir"; then
46995 ac_top_srcdir=.
46996 else
46997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46998 fi ;;
46999 [\\/]* | ?:[\\/]* ) # Absolute path.
47000 ac_srcdir=$srcdir$ac_dir_suffix;
47001 ac_top_srcdir=$srcdir ;;
47002 *) # Relative path.
47003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47005esac
ac1cb8d3
VS
47006
47007# Do not use `cd foo && pwd` to compute absolute paths, because
47008# the directories may not exist.
47009case `pwd` in
47010.) ac_abs_builddir="$ac_dir";;
47011*)
47012 case "$ac_dir" in
47013 .) ac_abs_builddir=`pwd`;;
47014 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47015 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47016 esac;;
47017esac
47018case $ac_abs_builddir in
47019.) ac_abs_top_builddir=${ac_top_builddir}.;;
47020*)
47021 case ${ac_top_builddir}. in
47022 .) ac_abs_top_builddir=$ac_abs_builddir;;
47023 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47024 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47025 esac;;
47026esac
47027case $ac_abs_builddir in
47028.) ac_abs_srcdir=$ac_srcdir;;
47029*)
47030 case $ac_srcdir in
47031 .) ac_abs_srcdir=$ac_abs_builddir;;
47032 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47033 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47034 esac;;
47035esac
47036case $ac_abs_builddir in
47037.) ac_abs_top_srcdir=$ac_top_srcdir;;
47038*)
47039 case $ac_top_srcdir in
47040 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47041 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47042 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47043 esac;;
47044esac
a848cd7e
SC
47045
47046
47047 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47048echo "$as_me: executing $ac_dest commands" >&6;}
47049 case $ac_dest in
ceec2216
RL
47050 wx-config ) rm -f wx-config
47051 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47052 ;;
a848cd7e
SC
47053 esac
47054done
47055_ACEOF
47056
47057cat >>$CONFIG_STATUS <<\_ACEOF
47058
47059{ (exit 0); exit 0; }
47060_ACEOF
47061chmod +x $CONFIG_STATUS
47062ac_clean_files=$ac_clean_files_save
47063
47064
47065# configure is writing to config.log, and then calls config.status.
47066# config.status does its own redirection, appending to config.log.
47067# Unfortunately, on DOS this fails, as config.log is still kept open
47068# by configure, so config.status won't be able to write to it; its
47069# output is simply discarded. So we exec the FD to /dev/null,
47070# effectively closing config.log, so it can be properly (re)opened and
47071# appended to by config.status. When coming back to configure, we
47072# need to make the FD available again.
47073if test "$no_create" != yes; then
47074 ac_cs_success=:
47075 ac_config_status_args=
47076 test "$silent" = yes &&
47077 ac_config_status_args="$ac_config_status_args --quiet"
47078 exec 5>/dev/null
47079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47080 exec 5>>config.log
47081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47082 # would make configure fail if this is the last instruction.
47083 $ac_cs_success || { (exit 1); exit 1; }
47084fi
47085
47086#
47087# CONFIG_SUBDIRS section.
47088#
47089if test "$no_recursion" != yes; then
47090
47091 # Remove --cache-file and --srcdir arguments so they do not pile up.
47092 ac_sub_configure_args=
47093 ac_prev=
47094 for ac_arg in $ac_configure_args; do
47095 if test -n "$ac_prev"; then
47096 ac_prev=
47097 continue
47098 fi
47099 case $ac_arg in
47100 -cache-file | --cache-file | --cache-fil | --cache-fi \
47101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47102 ac_prev=cache_file ;;
47103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47105 | --c=*)
47106 ;;
47107 --config-cache | -C)
47108 ;;
47109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47110 ac_prev=srcdir ;;
47111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47112 ;;
47113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47114 ac_prev=prefix ;;
47115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47116 ;;
47117 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47118 esac
47119 done
47120
47121 # Always prepend --prefix to ensure using the same prefix
47122 # in subdir configurations.
47123 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47124
47125 ac_popdir=`pwd`
47126 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47127
47128 # Do not complain, so a configure script can configure whichever
47129 # parts of a large source tree are present.
47130 test -d $srcdir/$ac_dir || continue
47131
47132 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47133echo "$as_me: configuring in $ac_dir" >&6;}
47134 { if $as_mkdir_p; then
47135 mkdir -p "$ac_dir"
47136 else
47137 as_dir="$ac_dir"
47138 as_dirs=
47139 while test ! -d "$as_dir"; do
47140 as_dirs="$as_dir $as_dirs"
47141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47143 X"$as_dir" : 'X\(//\)[^/]' \| \
47144 X"$as_dir" : 'X\(//\)$' \| \
47145 X"$as_dir" : 'X\(/\)' \| \
47146 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47147echo X"$as_dir" |
47148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47150 /^X\(\/\/\)$/{ s//\1/; q; }
47151 /^X\(\/\).*/{ s//\1/; q; }
47152 s/.*/./; q'`
47153 done
47154 test ! -n "$as_dirs" || mkdir $as_dirs
47155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47156echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47157 { (exit 1); exit 1; }; }; }
47158
47159 ac_builddir=.
47160
47161if test "$ac_dir" != .; then
47162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47163 # A "../" for each directory in $ac_dir_suffix.
47164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47165else
47166 ac_dir_suffix= ac_top_builddir=
47167fi
47168
47169case $srcdir in
47170 .) # No --srcdir option. We are building in place.
47171 ac_srcdir=.
47172 if test -z "$ac_top_builddir"; then
47173 ac_top_srcdir=.
47174 else
47175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47176 fi ;;
47177 [\\/]* | ?:[\\/]* ) # Absolute path.
47178 ac_srcdir=$srcdir$ac_dir_suffix;
47179 ac_top_srcdir=$srcdir ;;
47180 *) # Relative path.
47181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47183esac
ac1cb8d3
VS
47184
47185# Do not use `cd foo && pwd` to compute absolute paths, because
47186# the directories may not exist.
47187case `pwd` in
47188.) ac_abs_builddir="$ac_dir";;
47189*)
47190 case "$ac_dir" in
47191 .) ac_abs_builddir=`pwd`;;
47192 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47193 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47194 esac;;
47195esac
47196case $ac_abs_builddir in
47197.) ac_abs_top_builddir=${ac_top_builddir}.;;
47198*)
47199 case ${ac_top_builddir}. in
47200 .) ac_abs_top_builddir=$ac_abs_builddir;;
47201 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47202 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47203 esac;;
47204esac
47205case $ac_abs_builddir in
47206.) ac_abs_srcdir=$ac_srcdir;;
47207*)
47208 case $ac_srcdir in
47209 .) ac_abs_srcdir=$ac_abs_builddir;;
47210 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47211 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47212 esac;;
47213esac
47214case $ac_abs_builddir in
47215.) ac_abs_top_srcdir=$ac_top_srcdir;;
47216*)
47217 case $ac_top_srcdir in
47218 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47219 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47220 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47221 esac;;
47222esac
a848cd7e
SC
47223
47224
47225 cd $ac_dir
47226
47227 # Check for guested configure; otherwise get Cygnus style configure.
47228 if test -f $ac_srcdir/configure.gnu; then
47229 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47230 elif test -f $ac_srcdir/configure; then
47231 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47232 elif test -f $ac_srcdir/configure.in; then
47233 ac_sub_configure=$ac_configure
47234 else
47235 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47236echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47237 ac_sub_configure=
47238 fi
47239
47240 # The recursion is here.
47241 if test -n "$ac_sub_configure"; then
47242 # Make the cache file name correct relative to the subdirectory.
47243 case $cache_file in
47244 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47245 *) # Relative path.
ac1cb8d3 47246 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47247 esac
47248
47249 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47250echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47251 # The eval makes quoting arguments work.
47252 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47253 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47254 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47255echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47256 { (exit 1); exit 1; }; }
47257 fi
47258
6ebeb4c7 47259 cd "$ac_popdir"
a848cd7e
SC
47260 done
47261fi
47262
47263
47264echo
77ffb593 47265echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47266echo ""
4d4ff94c 47267echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47268echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47269
77ffb593
JS
47270echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47271echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47272echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47273
77ffb593
JS
47274echo " What level of wxWidgets compatibility should be enabled?"
47275echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47276echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47277
77ffb593 47278echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47279echo " jpeg ${wxUSE_LIBJPEG-none}"
47280echo " png ${wxUSE_LIBPNG-none}"
47281echo " regex ${wxUSE_REGEX}"
47282echo " tiff ${wxUSE_LIBTIFF-none}"
47283if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47284echo " xpm ${wxUSE_LIBXPM-none}"
47285fi
47286echo " zlib ${wxUSE_ZLIB}"
47287echo " odbc ${wxUSE_ODBC}"
47288echo " expat ${wxUSE_EXPAT}"
47289echo " libmspack ${wxUSE_LIBMSPACK}"
47290echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47291echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47292
47293echo ""
47294