]> git.saurik.com Git - wxWidgets.git/blame - configure
test for wxHAVE_PTHREAD_CLEANUP with #ifdefs instead of testing for (never defined...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
083508af 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
ddd14b14 1193 cd $ac_popdir
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
eb730a0c 1200wxWidgets configure 2.6.2
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
eb730a0c 1214It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535 1664wx_minor_version_number=6
eb730a0c 1665wx_release_number=2
063c96c1 1666wx_subrelease_number=1
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
a848cd7e
SC
1674
1675
1676
1677USE_UNIX=1
1678USE_OS2=0
1679USE_WIN32=0
1680USE_DOS=0
1681USE_BEOS=0
1682USE_MAC=0
1683
1684USE_AIX=
1685USE_BSD= USE_DARWIN= USE_FREEBSD=
1686USE_GNU= USE_HPUX=
1687USE_LINUX=
1688USE_NETBSD=
1689USE_OPENBSD=
1690USE_OSF= USE_SGI=
1691USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1692USE_ULTRIX=
1693USE_UNIXWARE=
1694
1695USE_ALPHA=
1696
1697NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1698
1699ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1700
1701DEFAULT_wxUSE_COCOA=0
1702DEFAULT_wxUSE_GTK=0
1703DEFAULT_wxUSE_MAC=0
1704DEFAULT_wxUSE_MGL=0
1705DEFAULT_wxUSE_MICROWIN=0
1706DEFAULT_wxUSE_MOTIF=0
1707DEFAULT_wxUSE_MSW=0
1708DEFAULT_wxUSE_PM=0
1709DEFAULT_wxUSE_X11=0
1710
1711DEFAULT_DEFAULT_wxUSE_COCOA=0
1712DEFAULT_DEFAULT_wxUSE_GTK=0
1713DEFAULT_DEFAULT_wxUSE_MAC=0
1714DEFAULT_DEFAULT_wxUSE_MGL=0
1715DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1716DEFAULT_DEFAULT_wxUSE_MOTIF=0
1717DEFAULT_DEFAULT_wxUSE_MSW=0
1718DEFAULT_DEFAULT_wxUSE_PM=0
1719DEFAULT_DEFAULT_wxUSE_X11=0
1720
1721PROGRAM_EXT=
1722SO_SUFFIX=so
1723SAMPLES_RPATH_FLAG=
1724SAMPLES_RPATH_POSTLINK=
1725
a03b8b04
RD
1726DEFAULT_STD_FLAG=yes
1727
a848cd7e
SC
1728case "${host}" in
1729 *-hp-hpux* )
1730 USE_HPUX=1
1731 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1732 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1733 SO_SUFFIX=sl
1734 cat >>confdefs.h <<\_ACEOF
1735#define __HPUX__ 1
1736_ACEOF
1737
1738 ;;
1739 *-*-linux* )
1740 USE_LINUX=1
1741 cat >>confdefs.h <<\_ACEOF
1742#define __LINUX__ 1
1743_ACEOF
1744
1745 TMP=`uname -m`
1746 if test "x$TMP" = "xalpha"; then
1747 USE_ALPHA=1
1748 cat >>confdefs.h <<\_ACEOF
1749#define __ALPHA__ 1
1750_ACEOF
1751
1752 fi
1753 DEFAULT_DEFAULT_wxUSE_GTK=1
1754 ;;
1755 *-*-gnu* | *-*-k*bsd*-gnu )
1756 USE_GNU=1
1757 TMP=`uname -m`
1758 if test "x$TMP" = "xalpha"; then
1759 USE_ALPHA=1
1760 cat >>confdefs.h <<\_ACEOF
1761#define __ALPHA__ 1
1762_ACEOF
1763
1764 fi
1765 DEFAULT_DEFAULT_wxUSE_GTK=1
1766 ;;
1767 *-*-irix5* | *-*-irix6* )
1768 USE_SGI=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SGI__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SVR4__ 1
1776_ACEOF
1777
1778 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1779 ;;
1780 *-*-solaris2* )
1781 USE_SUN=1
1782 USE_SOLARIS=1
1783 USE_SVR4=1
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SUN__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SOLARIS__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SVR4__ 1
1794_ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1798 ;;
1799 *-*-sunos4* )
1800 USE_SUN=1
1801 USE_SUNOS=1
1802 USE_BSD=1
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SUN__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUNOS__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1816 ;;
1817 *-*-freebsd*)
1818 USE_BSD=1
1819 USE_FREEBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __FREEBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-openbsd*)
1831 USE_BSD=1
1832 USE_OPENBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __OPENBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-netbsd*)
1844 USE_BSD=1
1845 USE_NETBSD=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __NETBSD__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __BSD__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_GTK=1
1855 ;;
1856 *-*-osf* )
1857 USE_ALPHA=1
1858 USE_OSF=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __OSF__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1869 ;;
1870 *-*-dgux5* )
1871 USE_ALPHA=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __ALPHA__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-sysv5* )
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SYSV__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SVR4__ 1
1892_ACEOF
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896 *-*-aix* )
1897 USE_AIX=1
1898 USE_SYSV=1
1899 USE_SVR4=1
1900 SO_SUFFIX=a
1901 cat >>confdefs.h <<\_ACEOF
1902#define __AIX__ 1
1903_ACEOF
1904
1905 cat >>confdefs.h <<\_ACEOF
1906#define __SYSV__ 1
1907_ACEOF
1908
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SVR4__ 1
1911_ACEOF
1912
1913 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1914 ;;
1915
1916 *-*-*UnixWare*)
1917 USE_SYSV=1
1918 USE_SVR4=1
1919 USE_UNIXWARE=1
1920 cat >>confdefs.h <<\_ACEOF
1921#define __UNIXWARE__ 1
1922_ACEOF
1923
1924 ;;
1925
1926 *-*-cygwin* | *-*-mingw32* )
1927 SO_SUFFIX=dll
1928 PROGRAM_EXT=".exe"
1929 RESCOMP=windres
1930 DEFAULT_DEFAULT_wxUSE_MSW=1
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
1977 powerpc-*-darwin* )
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
10047
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-palette or --disable-palette was given.
10054if test "${enable_palette+set}" = set; then
10055 enableval="$enable_palette"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_palette='wxUSE_PALETTE=yes'
10059 else
10060 ac_cv_use_palette='wxUSE_PALETTE=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10073
10074fi;
10075
10076 eval "$ac_cv_use_palette"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_PALETTE" = 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
10089
10090 enablestring=
10091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10092echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10093 no_cache=0
10094 # Check whether --enable-image or --disable-image was given.
10095if test "${enable_image+set}" = set; then
10096 enableval="$enable_image"
10097
10098 if test "$enableval" = yes; then
10099 ac_cv_use_image='wxUSE_IMAGE=yes'
10100 else
10101 ac_cv_use_image='wxUSE_IMAGE=no'
10102 fi
10103
10104else
10105
10106 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10107 if test "x$LINE" != x ; then
10108 eval "DEFAULT_$LINE"
10109 else
10110 no_cache=1
10111 fi
10112
10113 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10114
10115fi;
10116
10117 eval "$ac_cv_use_image"
10118 if test "$no_cache" != 1; then
10119 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10120 fi
10121
10122 if test "$wxUSE_IMAGE" = yes; then
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
10125 else
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
10128 fi
10129
10130
10131 enablestring=
10132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10133echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10134 no_cache=0
10135 # Check whether --enable-gif or --disable-gif was given.
10136if test "${enable_gif+set}" = set; then
10137 enableval="$enable_gif"
10138
10139 if test "$enableval" = yes; then
10140 ac_cv_use_gif='wxUSE_GIF=yes'
10141 else
10142 ac_cv_use_gif='wxUSE_GIF=no'
10143 fi
10144
10145else
10146
10147 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10148 if test "x$LINE" != x ; then
10149 eval "DEFAULT_$LINE"
10150 else
10151 no_cache=1
10152 fi
10153
10154 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10155
10156fi;
10157
10158 eval "$ac_cv_use_gif"
10159 if test "$no_cache" != 1; then
10160 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10161 fi
10162
10163 if test "$wxUSE_GIF" = yes; then
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166 else
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
10169 fi
10170
10171
10172 enablestring=
10173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10174echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10175 no_cache=0
10176 # Check whether --enable-pcx or --disable-pcx was given.
10177if test "${enable_pcx+set}" = set; then
10178 enableval="$enable_pcx"
10179
10180 if test "$enableval" = yes; then
10181 ac_cv_use_pcx='wxUSE_PCX=yes'
10182 else
10183 ac_cv_use_pcx='wxUSE_PCX=no'
10184 fi
10185
10186else
10187
10188 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10189 if test "x$LINE" != x ; then
10190 eval "DEFAULT_$LINE"
10191 else
10192 no_cache=1
10193 fi
10194
10195 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10196
10197fi;
10198
10199 eval "$ac_cv_use_pcx"
10200 if test "$no_cache" != 1; then
10201 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10202 fi
10203
10204 if test "$wxUSE_PCX" = yes; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206echo "${ECHO_T}yes" >&6
10207 else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210 fi
10211
10212
10213 enablestring=
10214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10215echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10216 no_cache=0
10217 # Check whether --enable-iff or --disable-iff was given.
10218if test "${enable_iff+set}" = set; then
10219 enableval="$enable_iff"
10220
10221 if test "$enableval" = yes; then
10222 ac_cv_use_iff='wxUSE_IFF=yes'
10223 else
10224 ac_cv_use_iff='wxUSE_IFF=no'
10225 fi
10226
10227else
10228
10229 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10230 if test "x$LINE" != x ; then
10231 eval "DEFAULT_$LINE"
10232 else
10233 no_cache=1
10234 fi
10235
10236 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10237
10238fi;
10239
10240 eval "$ac_cv_use_iff"
10241 if test "$no_cache" != 1; then
10242 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10243 fi
10244
10245 if test "$wxUSE_IFF" = yes; then
10246 echo "$as_me:$LINENO: result: yes" >&5
10247echo "${ECHO_T}yes" >&6
10248 else
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
10251 fi
10252
10253
10254 enablestring=
10255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10256echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10257 no_cache=0
10258 # Check whether --enable-pnm or --disable-pnm was given.
10259if test "${enable_pnm+set}" = set; then
10260 enableval="$enable_pnm"
10261
10262 if test "$enableval" = yes; then
10263 ac_cv_use_pnm='wxUSE_PNM=yes'
10264 else
10265 ac_cv_use_pnm='wxUSE_PNM=no'
10266 fi
10267
10268else
10269
10270 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10271 if test "x$LINE" != x ; then
10272 eval "DEFAULT_$LINE"
10273 else
10274 no_cache=1
10275 fi
10276
10277 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10278
10279fi;
10280
10281 eval "$ac_cv_use_pnm"
10282 if test "$no_cache" != 1; then
10283 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10284 fi
10285
10286 if test "$wxUSE_PNM" = yes; then
10287 echo "$as_me:$LINENO: result: yes" >&5
10288echo "${ECHO_T}yes" >&6
10289 else
10290 echo "$as_me:$LINENO: result: no" >&5
10291echo "${ECHO_T}no" >&6
10292 fi
10293
10294
10295 enablestring=
10296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10297echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10298 no_cache=0
10299 # Check whether --enable-xpm or --disable-xpm was given.
10300if test "${enable_xpm+set}" = set; then
10301 enableval="$enable_xpm"
10302
10303 if test "$enableval" = yes; then
10304 ac_cv_use_xpm='wxUSE_XPM=yes'
10305 else
10306 ac_cv_use_xpm='wxUSE_XPM=no'
10307 fi
10308
10309else
10310
10311 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10312 if test "x$LINE" != x ; then
10313 eval "DEFAULT_$LINE"
10314 else
10315 no_cache=1
10316 fi
10317
10318 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10319
10320fi;
10321
10322 eval "$ac_cv_use_xpm"
10323 if test "$no_cache" != 1; then
10324 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10325 fi
10326
10327 if test "$wxUSE_XPM" = yes; then
10328 echo "$as_me:$LINENO: result: yes" >&5
10329echo "${ECHO_T}yes" >&6
10330 else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333 fi
10334
10335
10336 enablestring=
10337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10338echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10339 no_cache=0
10340 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10341if test "${enable_ico_cur+set}" = set; then
10342 enableval="$enable_ico_cur"
10343
10344 if test "$enableval" = yes; then
10345 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10346 else
10347 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10348 fi
10349
10350else
10351
10352 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10353 if test "x$LINE" != x ; then
10354 eval "DEFAULT_$LINE"
10355 else
10356 no_cache=1
10357 fi
10358
10359 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10360
10361fi;
10362
10363 eval "$ac_cv_use_ico_cur"
10364 if test "$no_cache" != 1; then
10365 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10366 fi
10367
10368 if test "$wxUSE_ICO_CUR" = yes; then
10369 echo "$as_me:$LINENO: result: yes" >&5
10370echo "${ECHO_T}yes" >&6
10371 else
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
10374 fi
10375
10376
10377fi
10378
10379
10380
ceec2216
RL
10381# Check whether --with-flavour or --without-flavour was given.
10382if test "${with_flavour+set}" = set; then
10383 withval="$with_flavour"
10384 WX_FLAVOUR="$withval"
10385fi;
10386
10387
10388
a848cd7e
SC
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-official_build or --disable-official_build was given.
10394if test "${enable_official_build+set}" = set; then
10395 enableval="$enable_official_build"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10399 else
10400 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10413
10414fi;
10415
10416 eval "$ac_cv_use_official_build"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429# Check whether --enable-vendor or --disable-vendor was given.
10430if test "${enable_vendor+set}" = set; then
10431 enableval="$enable_vendor"
10432 VENDOR="$enableval"
10433fi;
10434if test "x$VENDOR" = "x"; then
10435 VENDOR="custom"
10436fi
10437
a848cd7e
SC
10438
10439
10440
10441 echo "saving argument cache $wx_arg_cache_file"
10442 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10443
10444
10445
10446echo "$as_me:$LINENO: checking for toolkit" >&5
10447echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10448
10449# In Wine, we need to default to MSW, not GTK or MOTIF
10450if test "$wxUSE_WINE" = "yes"; then
10451 DEFAULT_DEFAULT_wxUSE_GTK=0
10452 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10453 DEFAULT_DEFAULT_wxUSE_MSW=1
10454 wxUSE_SHARED=no
10455fi
10456
f597b41c 10457
a848cd7e
SC
10458if test "$wxUSE_GUI" = "yes"; then
10459
10460 if test "$USE_BEOS" = 1; then
10461 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10462echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10463 { (exit 1); exit 1; }; }
10464 fi
10465
10466 if test "$TOOLKIT_GIVEN" = 1; then
10467 for toolkit in `echo $ALL_TOOLKITS`; do
10468 var=wxUSE_$toolkit
10469 eval "value=\$${var}"
f34ca037
MW
10470 if test "x$value" = "xno"; then
10471 eval "$var=0"
10472 elif test "x$value" != "x"; then
10473 eval "$var=1"
10474 fi
10475
10476 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10477 eval "wx${toolkit}_VERSION=$value"
10478 fi
a848cd7e
SC
10479 done
10480 else
10481 for toolkit in `echo $ALL_TOOLKITS`; do
10482 if test "$has_toolkit_in_cache" != 1; then
10483 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10484 else
10485 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10486
10487 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10488 if test "x$version" != "x"; then
10489 eval "wx${toolkit}_VERSION=$version"
10490 fi
a848cd7e
SC
10491 fi
10492 eval "wxUSE_$toolkit=\$${var}"
10493 done
10494 fi
10495
10496 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10497 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10498 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10499
10500 case "${host}" in
10501 *-pc-os2_emx | *-pc-os2-emx )
10502 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10503 esac
10504
10505 case "$NUM_TOOLKITS" in
10506 1)
10507 ;;
10508 0)
10509 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10510echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10511 { (exit 1); exit 1; }; }
10512 ;;
10513 *)
10514 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10515echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10516 { (exit 1); exit 1; }; }
10517 esac
10518
f34ca037
MW
10519 # to be removed when --disable-gtk2 isn't needed
10520 if test "x$wxUSE_GTK2" = "xyes"; then
10521 wxGTK_VERSION=2
10522 elif test "x$wxUSE_GTK2" = "xno"; then
10523 wxGTK_VERSION=1
10524 fi
10525
a848cd7e
SC
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 var=wxUSE_$toolkit
10528 eval "value=\$${var}"
10529 if test "x$value" != x; then
10530 cache_var=CACHE_$toolkit
10531 eval "cache=\$${cache_var}"
10532 if test "$cache" = 1; then
10533 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10534 eval "version=\$wx${toolkit}_VERSION"
10535 if test "x$version" != "x"; then
10536 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10537 fi
a848cd7e
SC
10538 fi
10539 if test "$value" = 1; then
10540 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10541 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10542echo "${ECHO_T}$toolkit_echo" >&6
10543 fi
10544 fi
10545 done
10546else
10547 if test "x$host_alias" != "x"; then
10548 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10549echo "${ECHO_T}base ($host_alias hosted) only" >&6
10550 else
10551 echo "$as_me:$LINENO: result: base only" >&5
10552echo "${ECHO_T}base only" >&6
10553 fi
10554fi
10555
10556wants_win32=0
10557doesnt_want_win32=0
10558case "${host}" in
10559 *-*-cygwin*)
10560 if test "$wxUSE_MSW" = 1 ; then
10561 wants_win32=1
7275146d 10562 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10563 else
10564 doesnt_want_win32=1
10565 fi
10566 ;;
10567 *-*-mingw*)
10568 wants_win32=1
10569 ;;
10570esac
10571
10572if test "$wxUSE_WINE" = "yes"; then
10573 wants_win32=1
10574 CC=winegcc
10575 CXX=wineg++
10576 RESCOMP=wrc
10577 LDFLAGS_GUI="-mwindows"
10578fi
10579
10580if test "$wants_win32" = 1 ; then
10581 USE_UNIX=0
10582 USE_WIN32=1
10583 cat >>confdefs.h <<\_ACEOF
10584#define __WIN32__ 1
10585_ACEOF
10586
10587 cat >>confdefs.h <<\_ACEOF
10588#define __WIN95__ 1
10589_ACEOF
10590
10591 cat >>confdefs.h <<\_ACEOF
10592#define __WINDOWS__ 1
10593_ACEOF
10594
10595 cat >>confdefs.h <<\_ACEOF
10596#define __GNUWIN32__ 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define STRICT 1
10601_ACEOF
10602
10603 cat >>confdefs.h <<\_ACEOF
10604#define WINVER 0x0400
10605_ACEOF
10606
10607fi
10608if test "$doesnt_want_win32" = 1 ; then
10609 USE_UNIX=1
10610 USE_WIN32=0
10611fi
10612
10613if test "$USE_UNIX" = 1 ; then
10614 wxUSE_UNIX=yes
10615 cat >>confdefs.h <<\_ACEOF
10616#define __UNIX__ 1
10617_ACEOF
10618
10619fi
10620
10621
10622cat >confcache <<\_ACEOF
10623# This file is a shell script that caches the results of configure
10624# tests run on this system so they can be shared between configure
10625# scripts and configure runs, see configure's option --config-cache.
10626# It is not useful on other systems. If it contains results you don't
10627# want to keep, you may remove or edit it.
10628#
10629# config.status only pays attention to the cache file if you give it
10630# the --recheck option to rerun configure.
10631#
10632# `ac_cv_env_foo' variables (set or unset) will be overridden when
10633# loading this file, other *unset* `ac_cv_foo' will be assigned the
10634# following values.
10635
10636_ACEOF
10637
10638# The following way of writing the cache mishandles newlines in values,
10639# but we know of no workaround that is simple, portable, and efficient.
10640# So, don't put newlines in cache variables' values.
10641# Ultrix sh set writes to stderr and can't be redirected directly,
10642# and sets the high bit in the cache file unless we assign to the vars.
10643{
10644 (set) 2>&1 |
10645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10646 *ac_space=\ *)
10647 # `set' does not quote correctly, so add quotes (double-quote
10648 # substitution turns \\\\ into \\, and sed turns \\ into \).
10649 sed -n \
ac1cb8d3
VS
10650 "s/'/'\\\\''/g;
10651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10652 ;;
10653 *)
10654 # `set' quotes correctly as required by POSIX, so do not add quotes.
10655 sed -n \
ac1cb8d3 10656 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10657 ;;
10658 esac;
10659} |
10660 sed '
10661 t clear
10662 : clear
10663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10664 t end
10665 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10666 : end' >>confcache
10667if diff $cache_file confcache >/dev/null 2>&1; then :; else
10668 if test -w $cache_file; then
10669 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10670 cat confcache >$cache_file
10671 else
10672 echo "not updating unwritable cache $cache_file"
10673 fi
10674fi
10675rm -f confcache
10676
10677if test "$build" != "$host" ; then
1e9e8aba 10678 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10679 CC=$host_alias-gcc
10680 CXX=$host_alias-c++
10681 AR=$host_alias-ar
10682 RANLIB=$host_alias-ranlib
10683 DLLTOOL=$host_alias-dlltool
10684 RESCOMP=$host_alias-windres
a848cd7e 10685 STRIP=$host_alias-strip
1e9e8aba
DE
10686 elif test "x$CC" '!=' "x"; then
10687 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10688 else
10689 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10690echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10691 { (exit 1); exit 1; }; }
10692 fi
10693fi
10694
10695CFLAGS=${CFLAGS:=}
6dcfc289
DE
10696
10697
10698 ac_ext=c
a848cd7e
SC
10699ac_cpp='$CPP $CPPFLAGS'
10700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702ac_compiler_gnu=$ac_cv_c_compiler_gnu
10703if test -n "$ac_tool_prefix"; then
10704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10705set dummy ${ac_tool_prefix}gcc; ac_word=$2
10706echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708if test "${ac_cv_prog_CC+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 if test -n "$CC"; then
10712 ac_cv_prog_CC="$CC" # Let the user override the test.
10713else
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725done
10726done
10727
10728fi
10729fi
10730CC=$ac_cv_prog_CC
10731if test -n "$CC"; then
10732 echo "$as_me:$LINENO: result: $CC" >&5
10733echo "${ECHO_T}$CC" >&6
10734else
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
10737fi
10738
10739fi
10740if test -z "$ac_cv_prog_CC"; then
10741 ac_ct_CC=$CC
10742 # Extract the first word of "gcc", so it can be a program name with args.
10743set dummy gcc; ac_word=$2
10744echo "$as_me:$LINENO: checking for $ac_word" >&5
10745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 if test -n "$ac_ct_CC"; then
10750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_ac_ct_CC="gcc"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
10766fi
10767fi
10768ac_ct_CC=$ac_cv_prog_ac_ct_CC
10769if test -n "$ac_ct_CC"; then
10770 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10771echo "${ECHO_T}$ac_ct_CC" >&6
10772else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775fi
10776
10777 CC=$ac_ct_CC
10778else
10779 CC="$ac_cv_prog_CC"
10780fi
10781
10782if test -z "$CC"; then
10783 if test -n "$ac_tool_prefix"; then
10784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10785set dummy ${ac_tool_prefix}cc; ac_word=$2
10786echo "$as_me:$LINENO: checking for $ac_word" >&5
10787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788if test "${ac_cv_prog_CC+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 if test -n "$CC"; then
10792 ac_cv_prog_CC="$CC" # Let the user override the test.
10793else
10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795for as_dir in $PATH
10796do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_CC="${ac_tool_prefix}cc"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805done
10806done
10807
10808fi
10809fi
10810CC=$ac_cv_prog_CC
10811if test -n "$CC"; then
10812 echo "$as_me:$LINENO: result: $CC" >&5
10813echo "${ECHO_T}$CC" >&6
10814else
10815 echo "$as_me:$LINENO: result: no" >&5
10816echo "${ECHO_T}no" >&6
10817fi
10818
10819fi
10820if test -z "$ac_cv_prog_CC"; then
10821 ac_ct_CC=$CC
10822 # Extract the first word of "cc", so it can be a program name with args.
10823set dummy cc; ac_word=$2
10824echo "$as_me:$LINENO: checking for $ac_word" >&5
10825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 if test -n "$ac_ct_CC"; then
10830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10831else
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_ac_ct_CC="cc"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10842 fi
10843done
10844done
10845
10846fi
10847fi
10848ac_ct_CC=$ac_cv_prog_ac_ct_CC
10849if test -n "$ac_ct_CC"; then
10850 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10851echo "${ECHO_T}$ac_ct_CC" >&6
10852else
10853 echo "$as_me:$LINENO: result: no" >&5
10854echo "${ECHO_T}no" >&6
10855fi
10856
10857 CC=$ac_ct_CC
10858else
10859 CC="$ac_cv_prog_CC"
10860fi
10861
10862fi
10863if test -z "$CC"; then
10864 # Extract the first word of "cc", so it can be a program name with args.
10865set dummy cc; ac_word=$2
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868if test "${ac_cv_prog_CC+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 if test -n "$CC"; then
10872 ac_cv_prog_CC="$CC" # Let the user override the test.
10873else
10874 ac_prog_rejected=no
10875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876for as_dir in $PATH
10877do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10883 ac_prog_rejected=yes
10884 continue
10885 fi
10886 ac_cv_prog_CC="cc"
10887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890done
10891done
10892
10893if test $ac_prog_rejected = yes; then
10894 # We found a bogon in the path, so make sure we never use it.
10895 set dummy $ac_cv_prog_CC
10896 shift
10897 if test $# != 0; then
10898 # We chose a different compiler from the bogus one.
10899 # However, it has the same basename, so the bogon will be chosen
10900 # first if we set CC to just the basename; use the full file name.
10901 shift
10902 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10903 fi
10904fi
10905fi
10906fi
10907CC=$ac_cv_prog_CC
10908if test -n "$CC"; then
10909 echo "$as_me:$LINENO: result: $CC" >&5
10910echo "${ECHO_T}$CC" >&6
10911else
10912 echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6
10914fi
10915
10916fi
10917if test -z "$CC"; then
10918 if test -n "$ac_tool_prefix"; then
10919 for ac_prog in cl
10920 do
10921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10923echo "$as_me:$LINENO: checking for $ac_word" >&5
10924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925if test "${ac_cv_prog_CC+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 if test -n "$CC"; then
10929 ac_cv_prog_CC="$CC" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942done
10943done
10944
10945fi
10946fi
10947CC=$ac_cv_prog_CC
10948if test -n "$CC"; then
10949 echo "$as_me:$LINENO: result: $CC" >&5
10950echo "${ECHO_T}$CC" >&6
10951else
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
10954fi
10955
10956 test -n "$CC" && break
10957 done
10958fi
10959if test -z "$CC"; then
10960 ac_ct_CC=$CC
10961 for ac_prog in cl
10962do
10963 # Extract the first word of "$ac_prog", so it can be a program name with args.
10964set dummy $ac_prog; ac_word=$2
10965echo "$as_me:$LINENO: checking for $ac_word" >&5
10966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 if test -n "$ac_ct_CC"; then
10971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_prog_ac_ct_CC="$ac_prog"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985done
10986
10987fi
10988fi
10989ac_ct_CC=$ac_cv_prog_ac_ct_CC
10990if test -n "$ac_ct_CC"; then
10991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10992echo "${ECHO_T}$ac_ct_CC" >&6
10993else
10994 echo "$as_me:$LINENO: result: no" >&5
10995echo "${ECHO_T}no" >&6
10996fi
10997
10998 test -n "$ac_ct_CC" && break
10999done
11000
11001 CC=$ac_ct_CC
11002fi
11003
11004fi
11005
11006
11007test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11008See \`config.log' for more details." >&5
11009echo "$as_me: error: no acceptable C compiler found in \$PATH
11010See \`config.log' for more details." >&2;}
11011 { (exit 1); exit 1; }; }
11012
11013# Provide some information about the compiler.
11014echo "$as_me:$LINENO:" \
11015 "checking for C compiler version" >&5
11016ac_compiler=`set X $ac_compile; echo $2`
11017{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11018 (eval $ac_compiler --version </dev/null >&5) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }
11022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11023 (eval $ac_compiler -v </dev/null >&5) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }
11027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11028 (eval $ac_compiler -V </dev/null >&5) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }
11032
11033cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039
11040int
11041main ()
11042{
11043
11044 ;
11045 return 0;
11046}
11047_ACEOF
11048ac_clean_files_save=$ac_clean_files
11049ac_clean_files="$ac_clean_files a.out a.exe b.out"
11050# Try to create an executable without -o first, disregard a.out.
11051# It will help us diagnose broken compilers, and finding out an intuition
11052# of exeext.
ac1cb8d3
VS
11053echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11054echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11055ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11056if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11057 (eval $ac_link_default) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; then
11061 # Find the output, starting from the most likely. This scheme is
11062# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11063# resort.
11064
11065# Be careful to initialize this variable, since it used to be cached.
11066# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11067ac_cv_exeext=
11068# b.out is created by i960 compilers.
11069for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11070do
11071 test -f "$ac_file" || continue
11072 case $ac_file in
11073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11074 ;;
a848cd7e 11075 conftest.$ac_ext )
ac1cb8d3
VS
11076 # This is the source file.
11077 ;;
a848cd7e 11078 [ab].out )
ac1cb8d3
VS
11079 # We found the default executable, but exeext='' is most
11080 # certainly right.
11081 break;;
a848cd7e 11082 *.* )
ac1cb8d3
VS
11083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11084 # FIXME: I believe we export ac_cv_exeext for Libtool,
11085 # but it would be cool to find out if it's true. Does anybody
11086 # maintain Libtool? --akim.
11087 export ac_cv_exeext
11088 break;;
a848cd7e 11089 * )
ac1cb8d3 11090 break;;
a848cd7e
SC
11091 esac
11092done
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11098See \`config.log' for more details." >&5
11099echo "$as_me: error: C compiler cannot create executables
11100See \`config.log' for more details." >&2;}
11101 { (exit 77); exit 77; }; }
11102fi
11103
11104ac_exeext=$ac_cv_exeext
11105echo "$as_me:$LINENO: result: $ac_file" >&5
11106echo "${ECHO_T}$ac_file" >&6
11107
11108# Check the compiler produces executables we can run. If not, either
11109# the compiler is broken, or we cross compile.
11110echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11111echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11112# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11113# If not cross compiling, check that we can run a simple program.
11114if test "$cross_compiling" != yes; then
11115 if { ac_try='./$ac_file'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 cross_compiling=no
11122 else
11123 if test "$cross_compiling" = maybe; then
11124 cross_compiling=yes
11125 else
11126 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11127If you meant to cross compile, use \`--host'.
11128See \`config.log' for more details." >&5
11129echo "$as_me: error: cannot run C compiled programs.
11130If you meant to cross compile, use \`--host'.
11131See \`config.log' for more details." >&2;}
11132 { (exit 1); exit 1; }; }
11133 fi
11134 fi
11135fi
11136echo "$as_me:$LINENO: result: yes" >&5
11137echo "${ECHO_T}yes" >&6
11138
11139rm -f a.out a.exe conftest$ac_cv_exeext b.out
11140ac_clean_files=$ac_clean_files_save
11141# Check the compiler produces executables we can run. If not, either
11142# the compiler is broken, or we cross compile.
11143echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11144echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11145echo "$as_me:$LINENO: result: $cross_compiling" >&5
11146echo "${ECHO_T}$cross_compiling" >&6
11147
11148echo "$as_me:$LINENO: checking for suffix of executables" >&5
11149echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; then
11155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11156# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11157# work properly (i.e., refer to `conftest.exe'), while it won't with
11158# `rm'.
11159for ac_file in conftest.exe conftest conftest.*; do
11160 test -f "$ac_file" || continue
11161 case $ac_file in
11162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11164 export ac_cv_exeext
11165 break;;
a848cd7e
SC
11166 * ) break;;
11167 esac
11168done
11169else
11170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11171See \`config.log' for more details." >&5
11172echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11173See \`config.log' for more details." >&2;}
11174 { (exit 1); exit 1; }; }
11175fi
11176
11177rm -f conftest$ac_cv_exeext
11178echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11179echo "${ECHO_T}$ac_cv_exeext" >&6
11180
11181rm -f conftest.$ac_ext
11182EXEEXT=$ac_cv_exeext
11183ac_exeext=$EXEEXT
11184echo "$as_me:$LINENO: checking for suffix of object files" >&5
11185echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11186if test "${ac_cv_objext+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188else
11189 cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
11195
11196int
11197main ()
11198{
11199
11200 ;
11201 return 0;
11202}
11203_ACEOF
11204rm -f conftest.o conftest.obj
11205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; then
11210 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11211 case $ac_file in
11212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11214 break;;
11215 esac
11216done
11217else
11218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11222See \`config.log' for more details." >&5
11223echo "$as_me: error: cannot compute suffix of object files: cannot compile
11224See \`config.log' for more details." >&2;}
11225 { (exit 1); exit 1; }; }
11226fi
11227
11228rm -f conftest.$ac_cv_objext conftest.$ac_ext
11229fi
11230echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11231echo "${ECHO_T}$ac_cv_objext" >&6
11232OBJEXT=$ac_cv_objext
11233ac_objext=$OBJEXT
11234echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11235echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11236if test "${ac_cv_c_compiler_gnu+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245
11246int
11247main ()
11248{
11249#ifndef __GNUC__
11250 choke me
11251#endif
11252
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11259 (eval $ac_compile) 2>conftest.er1
a848cd7e 11260 ac_status=$?
ac1cb8d3
VS
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
a848cd7e
SC
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
ddd14b14
RR
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
ac1cb8d3
VS
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_compiler_gnu=yes
11280else
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284ac_compiler_gnu=no
11285fi
ac1cb8d3 11286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11287ac_cv_c_compiler_gnu=$ac_compiler_gnu
11288
11289fi
11290echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11291echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11292GCC=`test $ac_compiler_gnu = yes && echo yes`
11293ac_test_CFLAGS=${CFLAGS+set}
11294ac_save_CFLAGS=$CFLAGS
52ada004 11295CFLAGS="-g"
a848cd7e
SC
11296echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11297echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11298if test "${ac_cv_prog_cc_g+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301 cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307
11308int
11309main ()
11310{
11311
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11318 (eval $ac_compile) 2>conftest.er1
a848cd7e 11319 ac_status=$?
ac1cb8d3
VS
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
a848cd7e
SC
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
ddd14b14
RR
11325 { ac_try='test -z "$ac_c_werror_flag"
11326 || test ! -s conftest.err'
ac1cb8d3
VS
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_cv_prog_cc_g=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343ac_cv_prog_cc_g=no
11344fi
ac1cb8d3 11345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11346fi
11347echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11348echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11349if test "$ac_test_CFLAGS" = set; then
11350 CFLAGS=$ac_save_CFLAGS
11351elif test $ac_cv_prog_cc_g = yes; then
11352 if test "$GCC" = yes; then
11353 CFLAGS="-g -O2"
11354 else
11355 CFLAGS="-g"
11356 fi
11357else
11358 if test "$GCC" = yes; then
11359 CFLAGS="-O2"
11360 else
11361 CFLAGS=
11362 fi
11363fi
11364echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11365echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11366if test "${ac_cv_prog_cc_stdc+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 ac_cv_prog_cc_stdc=no
11370ac_save_CC=$CC
11371cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377#include <stdarg.h>
11378#include <stdio.h>
11379#include <sys/types.h>
11380#include <sys/stat.h>
11381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11382struct buf { int x; };
11383FILE * (*rcsopen) (struct buf *, struct stat *, int);
11384static char *e (p, i)
11385 char **p;
11386 int i;
11387{
11388 return p[i];
11389}
11390static char *f (char * (*g) (char **, int), char **p, ...)
11391{
11392 char *s;
11393 va_list v;
11394 va_start (v,p);
11395 s = g (p, va_arg (v,int));
11396 va_end (v);
11397 return s;
11398}
ac1cb8d3
VS
11399
11400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11401 function prototypes and stuff, but not '\xHH' hex character constants.
11402 These don't provoke an error unfortunately, instead are silently treated
11403 as 'x'. The following induces an error, until -std1 is added to get
11404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11405 array size at least. It's necessary to write '\x00'==0 to get something
11406 that's true only with -std1. */
11407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11408
a848cd7e
SC
11409int test (int i, double x);
11410struct s1 {int (*f) (int a);};
11411struct s2 {int (*f) (double a);};
11412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11413int argc;
11414char **argv;
11415int
11416main ()
11417{
11418return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423# Don't try gcc -ansi; that turns off useful extensions and
11424# breaks some systems' header files.
11425# AIX -qlanglvl=ansi
11426# Ultrix and OSF/1 -std1
11427# HP-UX 10.20 and later -Ae
11428# HP-UX older versions -Aa -D_HPUX_SOURCE
11429# SVR4 -Xc -D__EXTENSIONS__
11430for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11431do
11432 CC="$ac_save_CC $ac_arg"
11433 rm -f conftest.$ac_objext
11434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11435 (eval $ac_compile) 2>conftest.er1
a848cd7e 11436 ac_status=$?
ac1cb8d3
VS
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
a848cd7e
SC
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
ddd14b14
RR
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
ac1cb8d3
VS
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_cv_prog_cc_stdc=$ac_arg
11456break
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461fi
ac1cb8d3 11462rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11463done
11464rm -f conftest.$ac_ext conftest.$ac_objext
11465CC=$ac_save_CC
11466
11467fi
11468
11469case "x$ac_cv_prog_cc_stdc" in
11470 x|xno)
11471 echo "$as_me:$LINENO: result: none needed" >&5
11472echo "${ECHO_T}none needed" >&6 ;;
11473 *)
11474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11475echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11476 CC="$CC $ac_cv_prog_cc_stdc" ;;
11477esac
11478
11479# Some people use a C++ compiler to compile C. Since we use `exit',
11480# in C++ we need to declare it. In case someone uses the same compiler
11481# for both compiling C and C++ we need to have the C++ compiler decide
11482# the declaration of exit, since it's the most demanding environment.
11483cat >conftest.$ac_ext <<_ACEOF
11484#ifndef __cplusplus
11485 choke me
11486#endif
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11490 (eval $ac_compile) 2>conftest.er1
a848cd7e 11491 ac_status=$?
ac1cb8d3
VS
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
a848cd7e
SC
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
ddd14b14
RR
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
ac1cb8d3
VS
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 for ac_declaration in \
ac1cb8d3 11511 '' \
a848cd7e
SC
11512 'extern "C" void std::exit (int) throw (); using std::exit;' \
11513 'extern "C" void std::exit (int); using std::exit;' \
11514 'extern "C" void exit (int) throw ();' \
11515 'extern "C" void exit (int);' \
11516 'void exit (int);'
11517do
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
de59c161 11524$ac_declaration
ac1cb8d3 11525#include <stdlib.h>
a848cd7e
SC
11526int
11527main ()
11528{
11529exit (42);
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext
11535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11536 (eval $ac_compile) 2>conftest.er1
a848cd7e 11537 ac_status=$?
ac1cb8d3
VS
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
a848cd7e
SC
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
ddd14b14
RR
11543 { ac_try='test -z "$ac_c_werror_flag"
11544 || test ! -s conftest.err'
ac1cb8d3
VS
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 :
11557else
11558 echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561continue
11562fi
ac1cb8d3 11563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11564 cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h. */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h. */
11570$ac_declaration
11571int
11572main ()
11573{
11574exit (42);
11575 ;
11576 return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext
11580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11581 (eval $ac_compile) 2>conftest.er1
a848cd7e 11582 ac_status=$?
ac1cb8d3
VS
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
a848cd7e
SC
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
ddd14b14
RR
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
ac1cb8d3
VS
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 break
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606fi
ac1cb8d3 11607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11608done
11609rm -f conftest*
11610if test -n "$ac_declaration"; then
11611 echo '#ifdef __cplusplus' >>confdefs.h
11612 echo $ac_declaration >>confdefs.h
11613 echo '#endif' >>confdefs.h
11614fi
11615
11616else
11617 echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
11619
11620fi
ac1cb8d3 11621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11622ac_ext=c
11623ac_cpp='$CPP $CPPFLAGS'
11624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_c_compiler_gnu
11627
6dcfc289 11628 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11629echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11630if test "${wx_cv_c_exto+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
11639
11640int
11641main ()
11642{
11643
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext conftest.$ac_ext.o
11649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; then
11654 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11655 case $ac_file in
11656 conftest.$ac_ext.o)
11657 wx_cv_c_exto="-ext o"
11658 ;;
11659 *)
11660 ;;
11661 esac
11662done
11663else
11664 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11665See \`config.log' for more details." >&5
11666echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11667See \`config.log' for more details." >&2;}
11668 { (exit 1); exit 1; }; }
11669
11670fi
11671
11672rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11673
11674fi
11675echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11676echo "${ECHO_T}$wx_cv_c_exto" >&6
11677if test "x$wx_cv_c_exto" '!=' "x"; then
11678 if test "c" = "c"; then
11679 CFLAGS="$wx_cv_c_exto $CFLAGS"
11680 fi
11681 if test "c" = "cxx"; then
11682 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11683 fi
11684fi
11685
6dcfc289
DE
11686 if test "x$wx_cv_c_exto" '!=' "x"; then
11687 unset ac_cv_prog_cc_g
11688 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11689ac_save_CFLAGS=$CFLAGS
52ada004 11690CFLAGS="-g"
480ccd21
DE
11691echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11692echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11693if test "${ac_cv_prog_cc_g+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695else
11696 cat >conftest.$ac_ext <<_ACEOF
11697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
11702
11703int
11704main ()
11705{
11706
11707 ;
11708 return 0;
11709}
11710_ACEOF
11711rm -f conftest.$ac_objext
11712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
ddd14b14
RR
11720 { ac_try='test -z "$ac_c_werror_flag"
11721 || test ! -s conftest.err'
480ccd21
DE
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest.$ac_objext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_prog_cc_g=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738ac_cv_prog_cc_g=no
11739fi
11740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11741fi
11742echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11743echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11744if test "$ac_test_CFLAGS" = set; then
11745 CFLAGS=$ac_save_CFLAGS
11746elif test $ac_cv_prog_cc_g = yes; then
11747 if test "$GCC" = yes; then
11748 CFLAGS="-g -O2"
11749 else
11750 CFLAGS="-g"
11751 fi
11752else
11753 if test "$GCC" = yes; then
11754 CFLAGS="-O2"
11755 else
11756 CFLAGS=
11757 fi
11758fi
6dcfc289
DE
11759 fi
11760 ac_ext=c
95986553
DE
11761ac_cpp='$CPP $CPPFLAGS'
11762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11767echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11768if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777
11778int
11779main ()
11780{
11781#ifndef __MWERKS__
11782 choke me
11783#endif
11784
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext
11790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
ddd14b14
RR
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
95986553
DE
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 bakefile_compiler_mwerks=yes
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816bakefile_compiler_mwerks=no
11817fi
11818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11820
11821fi
11822echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11823echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11824
0e6fa1d9 11825MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11826ac_ext=c
11827ac_cpp='$CPP $CPPFLAGS'
11828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830ac_compiler_gnu=$ac_cv_c_compiler_gnu
11831
11832
6dcfc289 11833 ac_ext=c
9273ffba
DE
11834ac_cpp='$CPP $CPPFLAGS'
11835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838
11839echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11840echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11841if test "${wx_cv_c_compiler_xlc+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
11850
11851int
11852main ()
11853{
11854#ifndef __xlC__
11855 choke me
11856#endif
11857
11858 ;
11859 return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext
11863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 (eval $ac_compile) 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
ddd14b14
RR
11871 { ac_try='test -z "$ac_c_werror_flag"
11872 || test ! -s conftest.err'
9273ffba
DE
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 wx_compiler_xlc=yes
11885else
11886 echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889wx_compiler_xlc=no
11890fi
11891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11893
11894fi
11895echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11896echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11897
0e6fa1d9 11898XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11899ac_ext=c
11900ac_cpp='$CPP $CPPFLAGS'
11901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903ac_compiler_gnu=$ac_cv_c_compiler_gnu
11904
11905
a848cd7e 11906
6dcfc289 11907
a9e5b1f0
MW
11908 ac_ext=c
11909ac_cpp='$CPP $CPPFLAGS'
11910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913
11914 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11915echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11916if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h. */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h. */
11925
11926int
11927main ()
11928{
11929
11930 #ifndef __SUNPRO_C
11931 choke me
11932 #endif
11933
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext
11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
ddd14b14
RR
11947 { ac_try='test -z "$ac_c_werror_flag"
11948 || test ! -s conftest.err'
a9e5b1f0
MW
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 bakefile_cv_c_compiler___SUNPRO_C=yes
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965bakefile_cv_c_compiler___SUNPRO_C=no
11966
11967fi
11968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969
11970
11971fi
11972echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11973echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11974 ac_ext=c
11975ac_cpp='$CPP $CPPFLAGS'
11976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11981 :; SUNCC=yes
11982 else
11983 :;
11984 fi
11985
11986
11987
11988
a848cd7e
SC
11989ac_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
11994echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11995echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11996# On Suns, sometimes $CPP names a directory.
11997if test -n "$CPP" && test -d "$CPP"; then
11998 CPP=
11999fi
12000if test -z "$CPP"; then
12001 if test "${ac_cv_prog_CPP+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 # Double quotes because CPP needs to be expanded
12005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12006 do
12007 ac_preproc_ok=false
12008for ac_c_preproc_warn_flag in '' yes
12009do
12010 # Use a header file that comes with gcc, so configuring glibc
12011 # with a fresh cross-compiler works.
12012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 # <limits.h> exists even on freestanding compilers.
12014 # On the NeXT, cc -E runs the code through the compiler's parser,
12015 # not just through cpp. "Syntax error" is here to catch this case.
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022#ifdef __STDC__
12023# include <limits.h>
12024#else
12025# include <assert.h>
12026#endif
ac1cb8d3 12027 Syntax error
a848cd7e
SC
12028_ACEOF
12029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } >/dev/null; then
12037 if test -s conftest.err; then
12038 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12040 else
12041 ac_cpp_err=
12042 fi
12043else
12044 ac_cpp_err=yes
12045fi
12046if test -z "$ac_cpp_err"; then
12047 :
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 # Broken: fails on valid input.
12053continue
12054fi
12055rm -f conftest.err conftest.$ac_ext
12056
12057 # OK, works on sane cases. Now check whether non-existent headers
12058 # can be detected and how.
12059 cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065#include <ac_nonexistent.h>
12066_ACEOF
12067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } >/dev/null; then
12075 if test -s conftest.err; then
12076 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12078 else
12079 ac_cpp_err=
12080 fi
12081else
12082 ac_cpp_err=yes
12083fi
12084if test -z "$ac_cpp_err"; then
12085 # Broken: success on invalid input.
12086continue
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 # Passes both tests.
12092ac_preproc_ok=:
12093break
12094fi
12095rm -f conftest.err conftest.$ac_ext
12096
12097done
12098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12099rm -f conftest.err conftest.$ac_ext
12100if $ac_preproc_ok; then
12101 break
12102fi
12103
12104 done
12105 ac_cv_prog_CPP=$CPP
12106
12107fi
12108 CPP=$ac_cv_prog_CPP
12109else
12110 ac_cv_prog_CPP=$CPP
12111fi
12112echo "$as_me:$LINENO: result: $CPP" >&5
12113echo "${ECHO_T}$CPP" >&6
12114ac_preproc_ok=false
12115for ac_c_preproc_warn_flag in '' yes
12116do
12117 # Use a header file that comes with gcc, so configuring glibc
12118 # with a fresh cross-compiler works.
12119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 # <limits.h> exists even on freestanding compilers.
12121 # On the NeXT, cc -E runs the code through the compiler's parser,
12122 # not just through cpp. "Syntax error" is here to catch this case.
12123 cat >conftest.$ac_ext <<_ACEOF
12124/* confdefs.h. */
12125_ACEOF
12126cat confdefs.h >>conftest.$ac_ext
12127cat >>conftest.$ac_ext <<_ACEOF
12128/* end confdefs.h. */
12129#ifdef __STDC__
12130# include <limits.h>
12131#else
12132# include <assert.h>
12133#endif
ac1cb8d3 12134 Syntax error
a848cd7e
SC
12135_ACEOF
12136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } >/dev/null; then
12144 if test -s conftest.err; then
12145 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12147 else
12148 ac_cpp_err=
12149 fi
12150else
12151 ac_cpp_err=yes
12152fi
12153if test -z "$ac_cpp_err"; then
12154 :
12155else
12156 echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
12159 # Broken: fails on valid input.
12160continue
12161fi
12162rm -f conftest.err conftest.$ac_ext
12163
12164 # OK, works on sane cases. Now check whether non-existent headers
12165 # can be detected and how.
12166 cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172#include <ac_nonexistent.h>
12173_ACEOF
12174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12185 else
12186 ac_cpp_err=
12187 fi
12188else
12189 ac_cpp_err=yes
12190fi
12191if test -z "$ac_cpp_err"; then
12192 # Broken: success on invalid input.
12193continue
12194else
12195 echo "$as_me: failed program was:" >&5
12196sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 # Passes both tests.
12199ac_preproc_ok=:
12200break
12201fi
12202rm -f conftest.err conftest.$ac_ext
12203
12204done
12205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12206rm -f conftest.err conftest.$ac_ext
12207if $ac_preproc_ok; then
12208 :
12209else
12210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12211See \`config.log' for more details." >&5
12212echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12213See \`config.log' for more details." >&2;}
12214 { (exit 1); exit 1; }; }
12215fi
12216
12217ac_ext=c
12218ac_cpp='$CPP $CPPFLAGS'
12219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
12224echo "$as_me:$LINENO: checking for egrep" >&5
12225echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12226if test "${ac_cv_prog_egrep+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12230 then ac_cv_prog_egrep='grep -E'
12231 else ac_cv_prog_egrep='egrep'
12232 fi
12233fi
12234echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12235echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12236 EGREP=$ac_cv_prog_egrep
12237
12238
12239if test $ac_cv_c_compiler_gnu = yes; then
12240 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12241echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12242if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245 ac_pattern="Autoconf.*'x'"
12246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252#include <sgtty.h>
12253Autoconf TIOCGETP
12254_ACEOF
12255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12256 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12257 ac_cv_prog_gcc_traditional=yes
12258else
12259 ac_cv_prog_gcc_traditional=no
12260fi
12261rm -f conftest*
12262
12263
12264 if test $ac_cv_prog_gcc_traditional = no; then
12265 cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271#include <termio.h>
12272Autoconf TCGETA
12273_ACEOF
12274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12275 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12276 ac_cv_prog_gcc_traditional=yes
12277fi
12278rm -f conftest*
12279
12280 fi
12281fi
12282echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12283echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12284 if test $ac_cv_prog_gcc_traditional = yes; then
12285 CC="$CC -traditional"
12286 fi
12287fi
12288
12289
12290
12291
12292ac_ext=cc
12293ac_cpp='$CXXCPP $CPPFLAGS'
12294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12297
12298
12299CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12300
12301
12302 ac_ext=cc
a848cd7e
SC
12303ac_cpp='$CXXCPP $CPPFLAGS'
12304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12307if test -n "$ac_tool_prefix"; then
12308 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12309 do
12310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12312echo "$as_me:$LINENO: checking for $ac_word" >&5
12313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12314if test "${ac_cv_prog_CXX+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316else
12317 if test -n "$CXX"; then
12318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331done
12332done
12333
12334fi
12335fi
12336CXX=$ac_cv_prog_CXX
12337if test -n "$CXX"; then
12338 echo "$as_me:$LINENO: result: $CXX" >&5
12339echo "${ECHO_T}$CXX" >&6
12340else
12341 echo "$as_me:$LINENO: result: no" >&5
12342echo "${ECHO_T}no" >&6
12343fi
12344
12345 test -n "$CXX" && break
12346 done
12347fi
12348if test -z "$CXX"; then
12349 ac_ct_CXX=$CXX
12350 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12351do
12352 # Extract the first word of "$ac_prog", so it can be a program name with args.
12353set dummy $ac_prog; ac_word=$2
12354echo "$as_me:$LINENO: checking for $ac_word" >&5
12355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12356if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359 if test -n "$ac_ct_CXX"; then
12360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_ac_ct_CXX="$ac_prog"
12370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374done
12375
12376fi
12377fi
12378ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12379if test -n "$ac_ct_CXX"; then
12380 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12381echo "${ECHO_T}$ac_ct_CXX" >&6
12382else
12383 echo "$as_me:$LINENO: result: no" >&5
12384echo "${ECHO_T}no" >&6
12385fi
12386
12387 test -n "$ac_ct_CXX" && break
12388done
12389test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12390
12391 CXX=$ac_ct_CXX
12392fi
12393
12394
12395# Provide some information about the compiler.
12396echo "$as_me:$LINENO:" \
12397 "checking for C++ compiler version" >&5
12398ac_compiler=`set X $ac_compile; echo $2`
12399{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12400 (eval $ac_compiler --version </dev/null >&5) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }
12404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12405 (eval $ac_compiler -v </dev/null >&5) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }
12409{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12410 (eval $ac_compiler -V </dev/null >&5) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }
12414
12415echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12416echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12417if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420 cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
12426
12427int
12428main ()
12429{
12430#ifndef __GNUC__
12431 choke me
12432#endif
12433
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438rm -f conftest.$ac_objext
12439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12440 (eval $ac_compile) 2>conftest.er1
a848cd7e 12441 ac_status=$?
ac1cb8d3
VS
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
a848cd7e
SC
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
ddd14b14
RR
12447 { ac_try='test -z "$ac_cxx_werror_flag"
12448 || test ! -s conftest.err'
ac1cb8d3
VS
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_compiler_gnu=yes
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465ac_compiler_gnu=no
12466fi
ac1cb8d3 12467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12469
12470fi
12471echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12472echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12473GXX=`test $ac_compiler_gnu = yes && echo yes`
12474ac_test_CXXFLAGS=${CXXFLAGS+set}
12475ac_save_CXXFLAGS=$CXXFLAGS
12476CXXFLAGS="-g"
12477echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12478echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12479if test "${ac_cv_prog_cxx_g+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
12488
12489int
12490main ()
12491{
12492
12493 ;
12494 return 0;
12495}
12496_ACEOF
12497rm -f conftest.$ac_objext
12498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12499 (eval $ac_compile) 2>conftest.er1
a848cd7e 12500 ac_status=$?
ac1cb8d3
VS
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
a848cd7e
SC
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
ddd14b14
RR
12506 { ac_try='test -z "$ac_cxx_werror_flag"
12507 || test ! -s conftest.err'
ac1cb8d3
VS
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 ac_cv_prog_cxx_g=yes
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524ac_cv_prog_cxx_g=no
12525fi
ac1cb8d3 12526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12527fi
12528echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12529echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12530if test "$ac_test_CXXFLAGS" = set; then
12531 CXXFLAGS=$ac_save_CXXFLAGS
12532elif test $ac_cv_prog_cxx_g = yes; then
12533 if test "$GXX" = yes; then
52ada004 12534 CXXFLAGS="-g -O2"
a848cd7e 12535 else
52ada004 12536 CXXFLAGS="-g"
a848cd7e
SC
12537 fi
12538else
12539 if test "$GXX" = yes; then
12540 CXXFLAGS="-O2"
12541 else
12542 CXXFLAGS=
12543 fi
12544fi
12545for ac_declaration in \
ac1cb8d3 12546 '' \
a848cd7e
SC
12547 'extern "C" void std::exit (int) throw (); using std::exit;' \
12548 'extern "C" void std::exit (int); using std::exit;' \
12549 'extern "C" void exit (int) throw ();' \
12550 'extern "C" void exit (int);' \
12551 'void exit (int);'
12552do
12553 cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
de59c161 12559$ac_declaration
ac1cb8d3 12560#include <stdlib.h>
a848cd7e
SC
12561int
12562main ()
12563{
12564exit (42);
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12571 (eval $ac_compile) 2>conftest.er1
a848cd7e 12572 ac_status=$?
ac1cb8d3
VS
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
a848cd7e
SC
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
ddd14b14
RR
12578 { ac_try='test -z "$ac_cxx_werror_flag"
12579 || test ! -s conftest.err'
ac1cb8d3
VS
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 :
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596continue
12597fi
ac1cb8d3 12598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605$ac_declaration
12606int
12607main ()
12608{
12609exit (42);
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614rm -f conftest.$ac_objext
12615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12616 (eval $ac_compile) 2>conftest.er1
a848cd7e 12617 ac_status=$?
ac1cb8d3
VS
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
a848cd7e
SC
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
ddd14b14
RR
12623 { ac_try='test -z "$ac_cxx_werror_flag"
12624 || test ! -s conftest.err'
ac1cb8d3
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 break
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641fi
ac1cb8d3 12642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12643done
12644rm -f conftest*
12645if test -n "$ac_declaration"; then
12646 echo '#ifdef __cplusplus' >>confdefs.h
12647 echo $ac_declaration >>confdefs.h
12648 echo '#endif' >>confdefs.h
12649fi
12650
12651ac_ext=cc
12652ac_cpp='$CXXCPP $CPPFLAGS'
12653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12656
6dcfc289 12657 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12658echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12659if test "${wx_cv_cxx_exto+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662 cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668
12669int
12670main ()
12671{
12672
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677rm -f conftest.$ac_objext conftest.$ac_ext.o
12678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12679 (eval $ac_compile) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; then
12683 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12684 case $ac_file in
12685 conftest.$ac_ext.o)
12686 wx_cv_cxx_exto="-ext o"
12687 ;;
12688 *)
12689 ;;
12690 esac
12691done
12692else
12693 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12694See \`config.log' for more details." >&5
12695echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12696See \`config.log' for more details." >&2;}
12697 { (exit 1); exit 1; }; }
12698
12699fi
12700
12701rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12702
12703fi
12704echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12705echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12706if test "x$wx_cv_cxx_exto" '!=' "x"; then
12707 if test "cxx" = "c"; then
12708 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12709 fi
12710 if test "cxx" = "cxx"; then
12711 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12712 fi
12713fi
12714
6dcfc289
DE
12715 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12716 unset ac_cv_prog_cxx_g
12717 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12718ac_save_CXXFLAGS=$CXXFLAGS
12719CXXFLAGS="-g"
12720echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12721echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12722if test "${ac_cv_prog_cxx_g+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731
12732int
12733main ()
12734{
12735
12736 ;
12737 return 0;
12738}
12739_ACEOF
12740rm -f conftest.$ac_objext
12741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
ddd14b14
RR
12749 { ac_try='test -z "$ac_cxx_werror_flag"
12750 || test ! -s conftest.err'
480ccd21
DE
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_prog_cxx_g=yes
12763else
12764 echo "$as_me: failed program was:" >&5
12765sed 's/^/| /' conftest.$ac_ext >&5
12766
12767ac_cv_prog_cxx_g=no
12768fi
12769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12770fi
12771echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12772echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12773if test "$ac_test_CXXFLAGS" = set; then
12774 CXXFLAGS=$ac_save_CXXFLAGS
12775elif test $ac_cv_prog_cxx_g = yes; then
12776 if test "$GXX" = yes; then
52ada004 12777 CXXFLAGS="-g -O2"
480ccd21 12778 else
52ada004 12779 CXXFLAGS="-g"
480ccd21
DE
12780 fi
12781else
12782 if test "$GXX" = yes; then
12783 CXXFLAGS="-O2"
12784 else
12785 CXXFLAGS=
12786 fi
12787fi
6dcfc289
DE
12788 fi
12789 ac_ext=cc
95986553
DE
12790ac_cpp='$CXXCPP $CPPFLAGS'
12791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12794
12795echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12796echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12797if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806
12807int
12808main ()
12809{
12810#ifndef __MWERKS__
12811 choke me
12812#endif
12813
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
ddd14b14
RR
12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
95986553
DE
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 bakefile_compiler_mwerks=yes
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845bakefile_compiler_mwerks=no
12846fi
12847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12849
12850fi
12851echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12852echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12853
0e6fa1d9 12854MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12855ac_ext=cc
12856ac_cpp='$CXXCPP $CPPFLAGS'
12857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12860
12861
6dcfc289 12862 ac_ext=cc
9273ffba
DE
12863ac_cpp='$CXXCPP $CPPFLAGS'
12864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12867
12868echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12869echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12870if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */
12879
12880int
12881main ()
12882{
12883#ifndef __xlC__
12884 choke me
12885#endif
12886
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext
12892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
ddd14b14
RR
12900 { ac_try='test -z "$ac_cxx_werror_flag"
12901 || test ! -s conftest.err'
9273ffba
DE
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 wx_compiler_xlc=yes
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918wx_compiler_xlc=no
12919fi
12920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12922
12923fi
12924echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12925echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12926
0e6fa1d9 12927XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12928ac_ext=cc
12929ac_cpp='$CXXCPP $CPPFLAGS'
12930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12933
12934
95986553 12935
6dcfc289 12936
a9e5b1f0
MW
12937 ac_ext=cc
12938ac_cpp='$CXXCPP $CPPFLAGS'
12939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12942
12943 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12944echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12945if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 cat >conftest.$ac_ext <<_ACEOF
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954
12955int
12956main ()
12957{
12958
12959 #ifndef __SUNPRO_CC
12960 choke me
12961 #endif
12962
12963 ;
12964 return 0;
12965}
12966_ACEOF
12967rm -f conftest.$ac_objext
12968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
ddd14b14
RR
12976 { ac_try='test -z "$ac_cxx_werror_flag"
12977 || test ! -s conftest.err'
a9e5b1f0
MW
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994bakefile_cv_cxx_compiler___SUNPRO_CC=no
12995
12996fi
12997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12998
12999
13000fi
13001echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13002echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13003 ac_ext=cc
13004ac_cpp='$CXXCPP $CPPFLAGS'
13005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13008
13009 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13010 :; SUNCXX=yes
13011 else
13012 :;
13013 fi
13014
13015
13016
13017
a848cd7e
SC
13018ac_ext=c
13019ac_cpp='$CPP $CPPFLAGS'
13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
13024
a848cd7e
SC
13025if test -n "$ac_tool_prefix"; then
13026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13027set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13028echo "$as_me:$LINENO: checking for $ac_word" >&5
13029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13030if test "${ac_cv_prog_RANLIB+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032else
13033 if test -n "$RANLIB"; then
13034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13035else
13036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037for as_dir in $PATH
13038do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047done
13048done
13049
13050fi
13051fi
13052RANLIB=$ac_cv_prog_RANLIB
13053if test -n "$RANLIB"; then
13054 echo "$as_me:$LINENO: result: $RANLIB" >&5
13055echo "${ECHO_T}$RANLIB" >&6
13056else
13057 echo "$as_me:$LINENO: result: no" >&5
13058echo "${ECHO_T}no" >&6
13059fi
13060
13061fi
13062if test -z "$ac_cv_prog_RANLIB"; then
13063 ac_ct_RANLIB=$RANLIB
13064 # Extract the first word of "ranlib", so it can be a program name with args.
13065set dummy ranlib; ac_word=$2
13066echo "$as_me:$LINENO: checking for $ac_word" >&5
13067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13068if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071 if test -n "$ac_ct_RANLIB"; then
13072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13073else
13074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075for as_dir in $PATH
13076do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_ac_ct_RANLIB="ranlib"
13082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085done
13086done
13087
13088 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13089fi
13090fi
13091ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13092if test -n "$ac_ct_RANLIB"; then
13093 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13094echo "${ECHO_T}$ac_ct_RANLIB" >&6
13095else
13096 echo "$as_me:$LINENO: result: no" >&5
13097echo "${ECHO_T}no" >&6
13098fi
13099
13100 RANLIB=$ac_ct_RANLIB
13101else
13102 RANLIB="$ac_cv_prog_RANLIB"
13103fi
13104
13105
13106# Extract the first word of "ar", so it can be a program name with args.
13107set dummy ar; ac_word=$2
13108echo "$as_me:$LINENO: checking for $ac_word" >&5
13109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13110if test "${ac_cv_prog_AR+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
13113 if test -n "$AR"; then
13114 ac_cv_prog_AR="$AR" # Let the user override the test.
13115else
13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_prog_AR="ar"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127done
13128done
13129
13130fi
13131fi
13132AR=$ac_cv_prog_AR
13133if test -n "$AR"; then
13134 echo "$as_me:$LINENO: result: $AR" >&5
13135echo "${ECHO_T}$AR" >&6
13136else
13137 echo "$as_me:$LINENO: result: no" >&5
13138echo "${ECHO_T}no" >&6
13139fi
13140
13141if test "x$AR" = "x" ; then
77ffb593
JS
13142 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13143echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13144 { (exit 1); exit 1; }; }
13145fi
13146
13147# Find a good install program. We prefer a C program (faster),
13148# so one script is as good as another. But avoid the broken or
13149# incompatible versions:
13150# SysV /etc/install, /usr/sbin/install
13151# SunOS /usr/etc/install
13152# IRIX /sbin/install
13153# AIX /bin/install
13154# AmigaOS /C/install, which installs bootblocks on floppy discs
13155# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13156# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13157# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13158# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13159# ./install, which can be erroneously created by make from ./install.sh.
13160echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13161echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13162if test -z "$INSTALL"; then
13163if test "${ac_cv_path_install+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 # Account for people who put trailing slashes in PATH elements.
13172case $as_dir/ in
13173 ./ | .// | /cC/* | \
13174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13176 /usr/ucb/* ) ;;
13177 *)
13178 # OSF1 and SCO ODT 3.0 have their own names for install.
13179 # Don't use installbsd from OSF since it installs stuff as root
13180 # by default.
13181 for ac_prog in ginstall scoinst install; do
13182 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13183 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13184 if test $ac_prog = install &&
13185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13186 # AIX install. It has an incompatible calling convention.
13187 :
13188 elif test $ac_prog = install &&
13189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13190 # program-specific install script used by HP pwplus--don't use.
13191 :
13192 else
13193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13194 break 3
13195 fi
13196 fi
a848cd7e
SC
13197 done
13198 done
13199 ;;
13200esac
13201done
13202
13203
13204fi
13205 if test "${ac_cv_path_install+set}" = set; then
13206 INSTALL=$ac_cv_path_install
13207 else
13208 # As a last resort, use the slow shell script. We don't cache a
13209 # path for INSTALL within a source directory, because that will
13210 # break other packages using the cache if that directory is
13211 # removed, or if the path is relative.
13212 INSTALL=$ac_install_sh
13213 fi
13214fi
13215echo "$as_me:$LINENO: result: $INSTALL" >&5
13216echo "${ECHO_T}$INSTALL" >&6
13217
13218# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13219# It thinks the first close brace ends the variable substitution.
13220test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13221
13222test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13223
13224test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13225
13226
13227case ${INSTALL} in
13228 /* ) # Absolute
13229 ;;
13230 ?:* ) # Drive letter, considered as absolute.
13231 ;;
13232 *)
13233 INSTALL=`pwd`/${INSTALL} ;;
13234esac
13235
a848cd7e
SC
13236
13237case "${host}" in
13238
13239 powerpc-*-darwin* )
13240 INSTALL_PROGRAM="cp -fp"
13241 INSTALL_DATA="cp -fp"
13242 ;;
13243 *)
13244 ;;
13245esac
13246
13247# Extract the first word of "strip", so it can be a program name with args.
13248set dummy strip; ac_word=$2
13249echo "$as_me:$LINENO: checking for $ac_word" >&5
13250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13251if test "${ac_cv_prog_STRIP+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254 if test -n "$STRIP"; then
13255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_prog_STRIP="strip"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269done
13270
13271 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13272fi
13273fi
13274STRIP=$ac_cv_prog_STRIP
13275if test -n "$STRIP"; then
13276 echo "$as_me:$LINENO: result: $STRIP" >&5
13277echo "${ECHO_T}$STRIP" >&6
13278else
13279 echo "$as_me:$LINENO: result: no" >&5
13280echo "${ECHO_T}no" >&6
13281fi
13282
13283
13284echo "$as_me:$LINENO: checking if make is GNU make" >&5
13285echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13286if test "${wx_cv_prog_makeisgnu+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289
13290 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13291 egrep -s GNU > /dev/null); then
13292 wx_cv_prog_makeisgnu="yes"
13293 else
13294 wx_cv_prog_makeisgnu="no"
13295 fi
13296
13297fi
13298echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13299echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13300
13301if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13302 IF_GNU_MAKE=""
13303else
13304 IF_GNU_MAKE="#"
13305fi
13306
13307
13308
13309if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13310echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13311echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13312if test "${wx_cv_prog_makevpath+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314else
13315
13316cat - << EOF > confMake
13317check : file
13318 cp \$? \$@
13319 cp \$? final_file
13320EOF
13321
13322if test ! -d sub ; then
13323 mkdir sub
13324fi
13325echo dummy > sub/file
13326${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13327RESULT=$?
13328rm -f sub/file check final_file confMake
13329rmdir sub
13330if test "$RESULT" = 0; then
13331 wx_cv_prog_makevpath="yes"
13332else
13333 wx_cv_prog_makevpath="no"
13334fi
13335
13336fi
13337echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13338echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13339
13340if test "x$wx_cv_prog_makevpath" != "xyes"; then
13341{ { echo "$as_me:$LINENO: error:
13342You need a make-utility that is able to use the variable
13343VPATH correctly.
13344If your version of make does not support VPATH correctly,
13345please install GNU-make (possibly as gmake), and start
13346configure with the following command:
13347export MAKE=gmake; ./configure for sh-type shells
13348setenv MAKE gmake; ./configure for csh-type shells
13349Also please do remember to use gmake in this case every time
13350you are trying to compile.
13351" >&5
13352echo "$as_me: error:
13353You need a make-utility that is able to use the variable
13354VPATH correctly.
13355If your version of make does not support VPATH correctly,
13356please install GNU-make (possibly as gmake), and start
13357configure with the following command:
13358export MAKE=gmake; ./configure for sh-type shells
13359setenv MAKE gmake; ./configure for csh-type shells
13360Also please do remember to use gmake in this case every time
13361you are trying to compile.
13362" >&2;}
13363 { (exit 1); exit 1; }; }
13364fi fi
13365echo "$as_me:$LINENO: checking whether ln -s works" >&5
13366echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13367LN_S=$as_ln_s
13368if test "$LN_S" = "ln -s"; then
13369 echo "$as_me:$LINENO: result: yes" >&5
13370echo "${ECHO_T}yes" >&6
13371else
13372 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13373echo "${ECHO_T}no, using $LN_S" >&6
13374fi
13375
13376
13377
2113bc77 13378if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13379 CXXFLAGS="$CXXFLAGS -qunique"
13380fi
13381
13382
4d7ec9f1
DE
13383case "${host}" in
13384 powerpc-*-darwin* )
13385 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13386echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393
13394int
13395main ()
13396{
13397#ifndef __POWERPC__
13398 choke me for lack of PowerPC
13399#endif
13400
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405rm -f conftest.$ac_objext
13406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
ddd14b14
RR
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
4d7ec9f1
DE
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 echo "$as_me:$LINENO: result: yes" >&5
13428echo "${ECHO_T}yes" >&6
13429else
13430 echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433echo "$as_me:$LINENO: result: no" >&5
13434echo "${ECHO_T}no" >&6
13435 cat >>confdefs.h <<\_ACEOF
13436#define __POWERPC__ 1
13437_ACEOF
13438
13439
13440fi
13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13443echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h. */
13450#include <CoreFoundation/CFBase.h>
13451
13452int
13453main ()
13454{
13455
13456 ;
13457 return 0;
13458}
13459_ACEOF
13460rm -f conftest.$ac_objext
13461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
ddd14b14
RR
13469 { ac_try='test -z "$ac_c_werror_flag"
13470 || test ! -s conftest.err'
4d7ec9f1
DE
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 echo "$as_me:$LINENO: result: yes" >&5
13483echo "${ECHO_T}yes" >&6
13484else
13485 echo "$as_me: failed program was:" >&5
13486sed 's/^/| /' conftest.$ac_ext >&5
13487
13488echo "$as_me:$LINENO: result: no" >&5
13489echo "${ECHO_T}no" >&6
13490 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13491echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13492 cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498#define __CF_USE_FRAMEWORK_INCLUDES__
13499#include <CoreFoundation/CFBase.h>
13500
13501int
13502main ()
13503{
13504
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
ddd14b14
RR
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
4d7ec9f1
DE
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 echo "$as_me:$LINENO: result: yes" >&5
13532echo "${ECHO_T}yes" >&6
13533 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13534else
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13539See \`config.log' for more details." >&5
13540echo "$as_me: error: no. CoreFoundation not available.
13541See \`config.log' for more details." >&2;}
13542 { (exit 1); exit 1; }; }
13543
13544fi
13545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546
13547
13548fi
13549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 ;;
13551esac
13552
a848cd7e
SC
13553case "${host}" in
13554 *-pc-os2_emx | *-pc-os2-emx )
13555 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13556 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13557echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13558if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561 ac_check_lib_save_LIBS=$LIBS
13562LIBS="-lcExt $LIBS"
13563cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
13569
13570/* Override any gcc2 internal prototype to avoid an error. */
13571#ifdef __cplusplus
13572extern "C"
13573#endif
13574/* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13576char drand48 ();
13577int
13578main ()
13579{
13580drand48 ();
13581 ;
13582 return 0;
13583}
13584_ACEOF
13585rm -f conftest.$ac_objext conftest$ac_exeext
13586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13587 (eval $ac_link) 2>conftest.er1
a848cd7e 13588 ac_status=$?
ac1cb8d3
VS
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
a848cd7e
SC
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
ddd14b14
RR
13594 { ac_try='test -z "$ac_c_werror_flag"
13595 || test ! -s conftest.err'
ac1cb8d3
VS
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_lib_cExt_drand48=yes
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612ac_cv_lib_cExt_drand48=no
13613fi
ac1cb8d3
VS
13614rm -f conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13616LIBS=$ac_check_lib_save_LIBS
13617fi
13618echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13619echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13620if test $ac_cv_lib_cExt_drand48 = yes; then
13621 LIBS="$LIBS -lcExt"
13622fi
13623
13624 else
13625 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13626 fi
69120ee4
VZ
13627 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13628echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13629if test "${wx_cv_gccversion+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631else
13632
391a765e
VS
13633 if test "$cross_compiling" = yes; then
13634 wx_cv_gccversion="EMX2"
13635
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
13643
391a765e 13644 #include <stdio.h>
a848cd7e 13645
391a765e
VS
13646 int main()
13647 {
13648 FILE *f=fopen("conftestval", "w");
13649 if (!f) exit(1);
13650 fprintf(f,
a848cd7e 13651 #if (__GNUC__ < 3)
391a765e
VS
13652 "EMX2"
13653 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13654 "EMX3"
13655 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13656 "Innotek5"
13657 #else
13658 "Innotek6"
a848cd7e 13659 #endif
391a765e
VS
13660 );
13661 exit(0);
13662 }
a848cd7e 13663
a848cd7e 13664_ACEOF
391a765e
VS
13665rm -f conftest$ac_exeext
13666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>&5
ac1cb8d3
VS
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
391a765e 13676 wx_cv_gccversion=`cat conftestval`
a848cd7e 13677else
391a765e
VS
13678 echo "$as_me: program exited with status $ac_status" >&5
13679echo "$as_me: failed program was:" >&5
a848cd7e
SC
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
391a765e
VS
13682( exit $ac_status )
13683wx_cv_gccversion="EMX2"
a848cd7e 13684fi
391a765e 13685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13686fi
a848cd7e
SC
13687
13688fi
13689echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13690echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13691 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13692 LIBS="$LIBS -lstdcpp"
13693 LDFLAGS="$LDFLAGS -Zsysv-signals"
13694 else
391a765e 13695 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13696 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13697 LDFLAGS="$LDFLAGS -Zsysv-signals"
13698 else
13699 LIBS="$LIBS -lstdc++"
13700 fi
13701 fi
94acd38e
DE
13702 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13703 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13704echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13705 wxUSE_OMF=yes
2da0c077 13706 enable_omf=yes
a848cd7e
SC
13707 fi
13708 ;;
13709 *)
13710
13711
13712
13713 ac_ext=cc
13714ac_cpp='$CXXCPP $CPPFLAGS'
13715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13718
13719
95986553 13720 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13721echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13722if test "${ac_cv_string_strcasecmp+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13724else
13725
13726 cat >conftest.$ac_ext <<_ACEOF
13727/* confdefs.h. */
13728_ACEOF
13729cat confdefs.h >>conftest.$ac_ext
13730cat >>conftest.$ac_ext <<_ACEOF
13731/* end confdefs.h. */
13732
13733 #include <string.h>
13734
13735int
13736main ()
13737{
13738
13739 strcasecmp("foo", "bar");
13740
13741 ;
13742 return 0;
13743}
13744_ACEOF
13745rm -f conftest.$ac_objext conftest$ac_exeext
13746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13747 (eval $ac_link) 2>conftest.er1
a848cd7e 13748 ac_status=$?
ac1cb8d3
VS
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
a848cd7e
SC
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
ddd14b14
RR
13754 { ac_try='test -z "$ac_cxx_werror_flag"
13755 || test ! -s conftest.err'
ac1cb8d3
VS
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_string_strcasecmp=yes
13768else
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772ac_cv_string_strcasecmp=no
13773
13774fi
ac1cb8d3
VS
13775rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13777
13778fi
13779echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13780echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13781
13782 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13783 cat >>confdefs.h <<\_ACEOF
13784#define HAVE_STRCASECMP_IN_STRING_H 1
13785_ACEOF
13786
13787 else
13788 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13789echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13790if test "${ac_cv_strings_strcasecmp+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792else
13793
13794 cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800
13801 #include <strings.h>
13802
13803int
13804main ()
13805{
13806
13807 strcasecmp("foo", "bar");
13808
13809 ;
13810 return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext conftest$ac_exeext
13814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13815 (eval $ac_link) 2>conftest.er1
a848cd7e 13816 ac_status=$?
ac1cb8d3
VS
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
a848cd7e
SC
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
ddd14b14
RR
13822 { ac_try='test -z "$ac_cxx_werror_flag"
13823 || test ! -s conftest.err'
ac1cb8d3
VS
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_cv_strings_strcasecmp=yes
13836else
13837 echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840ac_cv_strings_strcasecmp=no
13841
13842fi
ac1cb8d3
VS
13843rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13845
13846fi
13847echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13848echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13849
0c3c69fc 13850 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13851 cat >>confdefs.h <<\_ACEOF
13852#define HAVE_STRCASECMP_IN_STRINGS_H 1
13853_ACEOF
13854
13855 else
13856 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13857echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13858 { (exit 1); exit 1; }; }
13859 fi
13860 fi
13861
13862 ac_ext=c
13863ac_cpp='$CPP $CPPFLAGS'
13864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13866ac_compiler_gnu=$ac_cv_c_compiler_gnu
13867
13868 ;;
13869esac
13870
13871
13872echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13873echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13874if test "${ac_cv_header_stdc+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883#include <stdlib.h>
13884#include <stdarg.h>
13885#include <string.h>
13886#include <float.h>
13887
13888int
13889main ()
13890{
13891
13892 ;
13893 return 0;
13894}
13895_ACEOF
13896rm -f conftest.$ac_objext
13897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13898 (eval $ac_compile) 2>conftest.er1
a848cd7e 13899 ac_status=$?
ac1cb8d3
VS
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
a848cd7e
SC
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
ddd14b14
RR
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
ac1cb8d3
VS
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_header_stdc=yes
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923ac_cv_header_stdc=no
13924fi
ac1cb8d3 13925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13926
13927if test $ac_cv_header_stdc = yes; then
13928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13929 cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935#include <string.h>
13936
13937_ACEOF
13938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13939 $EGREP "memchr" >/dev/null 2>&1; then
13940 :
13941else
13942 ac_cv_header_stdc=no
13943fi
13944rm -f conftest*
13945
13946fi
13947
13948if test $ac_cv_header_stdc = yes; then
13949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13950 cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956#include <stdlib.h>
13957
13958_ACEOF
13959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13960 $EGREP "free" >/dev/null 2>&1; then
13961 :
13962else
13963 ac_cv_header_stdc=no
13964fi
13965rm -f conftest*
13966
13967fi
13968
13969if test $ac_cv_header_stdc = yes; then
13970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13971 if test "$cross_compiling" = yes; then
13972 :
13973else
13974 cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980#include <ctype.h>
13981#if ((' ' & 0x0FF) == 0x020)
13982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13984#else
13985# define ISLOWER(c) \
ac1cb8d3
VS
13986 (('a' <= (c) && (c) <= 'i') \
13987 || ('j' <= (c) && (c) <= 'r') \
13988 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13990#endif
13991
13992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13993int
13994main ()
13995{
13996 int i;
13997 for (i = 0; i < 256; i++)
13998 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13999 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14000 exit(2);
14001 exit (0);
14002}
14003_ACEOF
14004rm -f conftest$ac_exeext
14005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14006 (eval $ac_link) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 :
14016else
14017 echo "$as_me: program exited with status $ac_status" >&5
14018echo "$as_me: failed program was:" >&5
14019sed 's/^/| /' conftest.$ac_ext >&5
14020
14021( exit $ac_status )
14022ac_cv_header_stdc=no
14023fi
ac1cb8d3 14024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14025fi
14026fi
14027fi
14028echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14029echo "${ECHO_T}$ac_cv_header_stdc" >&6
14030if test $ac_cv_header_stdc = yes; then
14031
14032cat >>confdefs.h <<\_ACEOF
14033#define STDC_HEADERS 1
14034_ACEOF
14035
14036fi
14037
14038# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14049 inttypes.h stdint.h unistd.h
a848cd7e
SC
14050do
14051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14052echo "$as_me:$LINENO: checking for $ac_header" >&5
14053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14054if eval "test \"\${$as_ac_Header+set}\" = set"; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
14057 cat >conftest.$ac_ext <<_ACEOF
14058/* confdefs.h. */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h. */
14063$ac_includes_default
14064
14065#include <$ac_header>
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14069 (eval $ac_compile) 2>conftest.er1
a848cd7e 14070 ac_status=$?
ac1cb8d3
VS
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
a848cd7e
SC
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
ddd14b14
RR
14076 { ac_try='test -z "$ac_c_werror_flag"
14077 || test ! -s conftest.err'
ac1cb8d3
VS
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 eval "$as_ac_Header=yes"
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
14094eval "$as_ac_Header=no"
14095fi
ac1cb8d3 14096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14097fi
14098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100if test `eval echo '${'$as_ac_Header'}'` = yes; then
14101 cat >>confdefs.h <<_ACEOF
14102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14103_ACEOF
14104
14105fi
14106
14107done
14108
14109
14110
14111for ac_header in stdlib.h
14112do
14113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114if eval "test \"\${$as_ac_Header+set}\" = set"; then
14115 echo "$as_me:$LINENO: checking for $ac_header" >&5
14116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14117if eval "test \"\${$as_ac_Header+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119fi
14120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14122else
14123 # Is the header compilable?
14124echo "$as_me:$LINENO: checking $ac_header usability" >&5
14125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14126cat >conftest.$ac_ext <<_ACEOF
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132$ac_includes_default
14133#include <$ac_header>
14134_ACEOF
14135rm -f conftest.$ac_objext
14136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14137 (eval $ac_compile) 2>conftest.er1
a848cd7e 14138 ac_status=$?
ac1cb8d3
VS
14139 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1
14141 cat conftest.err >&5
a848cd7e
SC
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
ddd14b14
RR
14144 { ac_try='test -z "$ac_c_werror_flag"
14145 || test ! -s conftest.err'
ac1cb8d3
VS
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_header_compiler=yes
14158else
14159 echo "$as_me: failed program was:" >&5
14160sed 's/^/| /' conftest.$ac_ext >&5
14161
14162ac_header_compiler=no
14163fi
ac1cb8d3 14164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14166echo "${ECHO_T}$ac_header_compiler" >&6
14167
14168# Is the header present?
14169echo "$as_me:$LINENO: checking $ac_header presence" >&5
14170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14171cat >conftest.$ac_ext <<_ACEOF
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
14176/* end confdefs.h. */
14177#include <$ac_header>
14178_ACEOF
14179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } >/dev/null; then
14187 if test -s conftest.err; then
14188 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14190 else
14191 ac_cpp_err=
14192 fi
14193else
14194 ac_cpp_err=yes
14195fi
14196if test -z "$ac_cpp_err"; then
14197 ac_header_preproc=yes
14198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202 ac_header_preproc=no
14203fi
14204rm -f conftest.err conftest.$ac_ext
14205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14206echo "${ECHO_T}$ac_header_preproc" >&6
14207
14208# So? What about this header?
ac1cb8d3
VS
14209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14210 yes:no: )
a848cd7e
SC
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14215 ac_header_preproc=yes
a848cd7e 14216 ;;
ac1cb8d3 14217 no:yes:* )
a848cd7e
SC
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14230 (
14231 cat <<\_ASBOX
ac1cb8d3
VS
14232## ----------------------------------------- ##
14233## Report this to wx-dev@lists.wxwidgets.org ##
14234## ----------------------------------------- ##
a848cd7e
SC
14235_ASBOX
14236 ) |
14237 sed "s/^/$as_me: WARNING: /" >&2
14238 ;;
14239esac
14240echo "$as_me:$LINENO: checking for $ac_header" >&5
14241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
ac1cb8d3 14245 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14246fi
14247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14249
14250fi
14251if test `eval echo '${'$as_ac_Header'}'` = yes; then
14252 cat >>confdefs.h <<_ACEOF
14253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14254_ACEOF
14255
14256fi
14257
14258done
14259
14260
14261for ac_header in malloc.h
14262do
14263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14264if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo "$as_me:$LINENO: checking for $ac_header" >&5
14266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272else
14273 # Is the header compilable?
14274echo "$as_me:$LINENO: checking $ac_header usability" >&5
14275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14276cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h. */
14282$ac_includes_default
14283#include <$ac_header>
14284_ACEOF
14285rm -f conftest.$ac_objext
14286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14287 (eval $ac_compile) 2>conftest.er1
a848cd7e 14288 ac_status=$?
ac1cb8d3
VS
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
a848cd7e
SC
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
ddd14b14
RR
14294 { ac_try='test -z "$ac_c_werror_flag"
14295 || test ! -s conftest.err'
ac1cb8d3
VS
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_header_compiler=yes
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312ac_header_compiler=no
14313fi
ac1cb8d3 14314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14316echo "${ECHO_T}$ac_header_compiler" >&6
14317
14318# Is the header present?
14319echo "$as_me:$LINENO: checking $ac_header presence" >&5
14320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14321cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327#include <$ac_header>
14328_ACEOF
14329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } >/dev/null; then
14337 if test -s conftest.err; then
14338 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14340 else
14341 ac_cpp_err=
14342 fi
14343else
14344 ac_cpp_err=yes
14345fi
14346if test -z "$ac_cpp_err"; then
14347 ac_header_preproc=yes
14348else
14349 echo "$as_me: failed program was:" >&5
14350sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ac_header_preproc=no
14353fi
14354rm -f conftest.err conftest.$ac_ext
14355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14356echo "${ECHO_T}$ac_header_preproc" >&6
14357
14358# So? What about this header?
ac1cb8d3
VS
14359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14360 yes:no: )
a848cd7e
SC
14361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14365 ac_header_preproc=yes
a848cd7e 14366 ;;
ac1cb8d3 14367 no:yes:* )
a848cd7e
SC
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14380 (
14381 cat <<\_ASBOX
ac1cb8d3
VS
14382## ----------------------------------------- ##
14383## Report this to wx-dev@lists.wxwidgets.org ##
14384## ----------------------------------------- ##
a848cd7e
SC
14385_ASBOX
14386 ) |
14387 sed "s/^/$as_me: WARNING: /" >&2
14388 ;;
14389esac
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
ac1cb8d3 14395 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14396fi
14397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14399
14400fi
14401if test `eval echo '${'$as_ac_Header'}'` = yes; then
14402 cat >>confdefs.h <<_ACEOF
14403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14404_ACEOF
14405
14406fi
14407
14408done
14409
14410
14411for ac_header in unistd.h
14412do
14413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14414if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo "$as_me:$LINENO: checking for $ac_header" >&5
14416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14417if eval "test \"\${$as_ac_Header+set}\" = set"; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419fi
14420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14422else
14423 # Is the header compilable?
14424echo "$as_me:$LINENO: checking $ac_header usability" >&5
14425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14426cat >conftest.$ac_ext <<_ACEOF
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
14432$ac_includes_default
14433#include <$ac_header>
14434_ACEOF
14435rm -f conftest.$ac_objext
14436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14437 (eval $ac_compile) 2>conftest.er1
a848cd7e 14438 ac_status=$?
ac1cb8d3
VS
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
a848cd7e
SC
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
ddd14b14
RR
14444 { ac_try='test -z "$ac_c_werror_flag"
14445 || test ! -s conftest.err'
ac1cb8d3
VS
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_header_compiler=yes
14458else
14459 echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462ac_header_compiler=no
14463fi
ac1cb8d3 14464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14466echo "${ECHO_T}$ac_header_compiler" >&6
14467
14468# Is the header present?
14469echo "$as_me:$LINENO: checking $ac_header presence" >&5
14470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14471cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477#include <$ac_header>
14478_ACEOF
14479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } >/dev/null; then
14487 if test -s conftest.err; then
14488 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14490 else
14491 ac_cpp_err=
14492 fi
14493else
14494 ac_cpp_err=yes
14495fi
14496if test -z "$ac_cpp_err"; then
14497 ac_header_preproc=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_preproc=no
14503fi
14504rm -f conftest.err conftest.$ac_ext
14505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14506echo "${ECHO_T}$ac_header_preproc" >&6
14507
14508# So? What about this header?
ac1cb8d3
VS
14509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14510 yes:no: )
a848cd7e
SC
14511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14515 ac_header_preproc=yes
a848cd7e 14516 ;;
ac1cb8d3 14517 no:yes:* )
a848cd7e
SC
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14530 (
14531 cat <<\_ASBOX
ac1cb8d3
VS
14532## ----------------------------------------- ##
14533## Report this to wx-dev@lists.wxwidgets.org ##
14534## ----------------------------------------- ##
a848cd7e
SC
14535_ASBOX
14536 ) |
14537 sed "s/^/$as_me: WARNING: /" >&2
14538 ;;
14539esac
14540echo "$as_me:$LINENO: checking for $ac_header" >&5
14541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14542if eval "test \"\${$as_ac_Header+set}\" = set"; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14544else
ac1cb8d3 14545 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14546fi
14547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14549
14550fi
14551if test `eval echo '${'$as_ac_Header'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14554_ACEOF
14555
14556fi
14557
14558done
14559
14560
14561for ac_header in wchar.h
14562do
14563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564if eval "test \"\${$as_ac_Header+set}\" = set"; then
14565 echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14567if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569fi
14570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14572else
14573 # Is the header compilable?
14574echo "$as_me:$LINENO: checking $ac_header usability" >&5
14575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14576cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582$ac_includes_default
14583#include <$ac_header>
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14587 (eval $ac_compile) 2>conftest.er1
a848cd7e 14588 ac_status=$?
ac1cb8d3
VS
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
a848cd7e
SC
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
ddd14b14
RR
14594 { ac_try='test -z "$ac_c_werror_flag"
14595 || test ! -s conftest.err'
ac1cb8d3
VS
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_header_compiler=yes
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612ac_header_compiler=no
14613fi
ac1cb8d3 14614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14616echo "${ECHO_T}$ac_header_compiler" >&6
14617
14618# Is the header present?
14619echo "$as_me:$LINENO: checking $ac_header presence" >&5
14620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14621cat >conftest.$ac_ext <<_ACEOF
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */
14627#include <$ac_header>
14628_ACEOF
14629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } >/dev/null; then
14637 if test -s conftest.err; then
14638 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14640 else
14641 ac_cpp_err=
14642 fi
14643else
14644 ac_cpp_err=yes
14645fi
14646if test -z "$ac_cpp_err"; then
14647 ac_header_preproc=yes
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_header_preproc=no
14653fi
14654rm -f conftest.err conftest.$ac_ext
14655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656echo "${ECHO_T}$ac_header_preproc" >&6
14657
14658# So? What about this header?
ac1cb8d3
VS
14659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14660 yes:no: )
a848cd7e
SC
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14665 ac_header_preproc=yes
a848cd7e 14666 ;;
ac1cb8d3 14667 no:yes:* )
a848cd7e
SC
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14680 (
14681 cat <<\_ASBOX
ac1cb8d3
VS
14682## ----------------------------------------- ##
14683## Report this to wx-dev@lists.wxwidgets.org ##
14684## ----------------------------------------- ##
a848cd7e
SC
14685_ASBOX
14686 ) |
14687 sed "s/^/$as_me: WARNING: /" >&2
14688 ;;
14689esac
14690echo "$as_me:$LINENO: checking for $ac_header" >&5
14691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14692if eval "test \"\${$as_ac_Header+set}\" = set"; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694else
ac1cb8d3 14695 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14696fi
14697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14699
14700fi
14701if test `eval echo '${'$as_ac_Header'}'` = yes; then
14702 cat >>confdefs.h <<_ACEOF
14703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14704_ACEOF
14705
14706fi
14707
14708done
14709
14710
14711if test "$ac_cv_header_wchar_h" != "yes"; then
14712
14713for ac_header in wcstr.h
14714do
14715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14716if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo "$as_me:$LINENO: checking for $ac_header" >&5
14718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14719if eval "test \"\${$as_ac_Header+set}\" = set"; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14721fi
14722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14724else
14725 # Is the header compilable?
14726echo "$as_me:$LINENO: checking $ac_header usability" >&5
14727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14728cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734$ac_includes_default
14735#include <$ac_header>
14736_ACEOF
14737rm -f conftest.$ac_objext
14738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14739 (eval $ac_compile) 2>conftest.er1
a848cd7e 14740 ac_status=$?
ac1cb8d3
VS
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
a848cd7e
SC
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
ddd14b14
RR
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
ac1cb8d3
VS
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_header_compiler=yes
14760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764ac_header_compiler=no
14765fi
ac1cb8d3 14766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14768echo "${ECHO_T}$ac_header_compiler" >&6
14769
14770# Is the header present?
14771echo "$as_me:$LINENO: checking $ac_header presence" >&5
14772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14773cat >conftest.$ac_ext <<_ACEOF
14774/* confdefs.h. */
14775_ACEOF
14776cat confdefs.h >>conftest.$ac_ext
14777cat >>conftest.$ac_ext <<_ACEOF
14778/* end confdefs.h. */
14779#include <$ac_header>
14780_ACEOF
14781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } >/dev/null; then
14789 if test -s conftest.err; then
14790 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14792 else
14793 ac_cpp_err=
14794 fi
14795else
14796 ac_cpp_err=yes
14797fi
14798if test -z "$ac_cpp_err"; then
14799 ac_header_preproc=yes
14800else
14801 echo "$as_me: failed program was:" >&5
14802sed 's/^/| /' conftest.$ac_ext >&5
14803
14804 ac_header_preproc=no
14805fi
14806rm -f conftest.err conftest.$ac_ext
14807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14808echo "${ECHO_T}$ac_header_preproc" >&6
14809
14810# So? What about this header?
ac1cb8d3
VS
14811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14812 yes:no: )
a848cd7e
SC
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14817 ac_header_preproc=yes
a848cd7e 14818 ;;
ac1cb8d3 14819 no:yes:* )
a848cd7e
SC
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14832 (
14833 cat <<\_ASBOX
ac1cb8d3
VS
14834## ----------------------------------------- ##
14835## Report this to wx-dev@lists.wxwidgets.org ##
14836## ----------------------------------------- ##
a848cd7e
SC
14837_ASBOX
14838 ) |
14839 sed "s/^/$as_me: WARNING: /" >&2
14840 ;;
14841esac
14842echo "$as_me:$LINENO: checking for $ac_header" >&5
14843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14844if eval "test \"\${$as_ac_Header+set}\" = set"; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
ac1cb8d3 14847 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14848fi
14849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14851
14852fi
14853if test `eval echo '${'$as_ac_Header'}'` = yes; then
14854 cat >>confdefs.h <<_ACEOF
14855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14856_ACEOF
14857
14858fi
14859
14860done
14861
14862fi
14863
14864
14865for ac_header in fnmatch.h
14866do
14867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14868if eval "test \"\${$as_ac_Header+set}\" = set"; then
14869 echo "$as_me:$LINENO: checking for $ac_header" >&5
14870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14871if eval "test \"\${$as_ac_Header+set}\" = set"; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873fi
14874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14876else
14877 # Is the header compilable?
14878echo "$as_me:$LINENO: checking $ac_header usability" >&5
14879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14880cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887#include <$ac_header>
14888_ACEOF
14889rm -f conftest.$ac_objext
14890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14891 (eval $ac_compile) 2>conftest.er1
a848cd7e 14892 ac_status=$?
ac1cb8d3
VS
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
a848cd7e
SC
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
ddd14b14
RR
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
ac1cb8d3
VS
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_header_compiler=yes
14912else
14913 echo "$as_me: failed program was:" >&5
14914sed 's/^/| /' conftest.$ac_ext >&5
14915
14916ac_header_compiler=no
14917fi
ac1cb8d3 14918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920echo "${ECHO_T}$ac_header_compiler" >&6
14921
14922# Is the header present?
14923echo "$as_me:$LINENO: checking $ac_header presence" >&5
14924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14925cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
14931#include <$ac_header>
14932_ACEOF
14933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } >/dev/null; then
14941 if test -s conftest.err; then
14942 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14944 else
14945 ac_cpp_err=
14946 fi
14947else
14948 ac_cpp_err=yes
14949fi
14950if test -z "$ac_cpp_err"; then
14951 ac_header_preproc=yes
14952else
14953 echo "$as_me: failed program was:" >&5
14954sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_header_preproc=no
14957fi
14958rm -f conftest.err conftest.$ac_ext
14959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960echo "${ECHO_T}$ac_header_preproc" >&6
14961
14962# So? What about this header?
ac1cb8d3
VS
14963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 yes:no: )
a848cd7e
SC
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
a848cd7e 14970 ;;
ac1cb8d3 14971 no:yes:* )
a848cd7e
SC
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14984 (
14985 cat <<\_ASBOX
ac1cb8d3
VS
14986## ----------------------------------------- ##
14987## Report this to wx-dev@lists.wxwidgets.org ##
14988## ----------------------------------------- ##
a848cd7e
SC
14989_ASBOX
14990 ) |
14991 sed "s/^/$as_me: WARNING: /" >&2
14992 ;;
14993esac
14994echo "$as_me:$LINENO: checking for $ac_header" >&5
14995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14996if eval "test \"\${$as_ac_Header+set}\" = set"; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998else
ac1cb8d3 14999 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15000fi
15001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15003
15004fi
15005if test `eval echo '${'$as_ac_Header'}'` = yes; then
15006 cat >>confdefs.h <<_ACEOF
15007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15008_ACEOF
15009
15010fi
15011
15012done
15013
15014
15015if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
15016
15017for ac_func in fnmatch
15018do
15019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15020echo "$as_me:$LINENO: checking for $ac_func" >&5
15021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15022if eval "test \"\${$as_ac_var+set}\" = set"; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
15025 cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
ac1cb8d3
VS
15031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15033#define $ac_func innocuous_$ac_func
15034
a848cd7e
SC
15035/* System header to define __stub macros and hopefully few prototypes,
15036 which can conflict with char $ac_func (); below.
15037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 15039
a848cd7e
SC
15040#ifdef __STDC__
15041# include <limits.h>
15042#else
15043# include <assert.h>
15044#endif
ac1cb8d3
VS
15045
15046#undef $ac_func
15047
a848cd7e
SC
15048/* Override any gcc2 internal prototype to avoid an error. */
15049#ifdef __cplusplus
15050extern "C"
15051{
15052#endif
15053/* We use char because int might match the return type of a gcc2
15054 builtin and then its argument prototype would still apply. */
15055char $ac_func ();
15056/* The GNU C library defines this for functions which it implements
15057 to always fail with ENOSYS. Some functions are actually named
15058 something starting with __ and the normal name is an alias. */
15059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15060choke me
15061#else
15062char (*f) () = $ac_func;
15063#endif
15064#ifdef __cplusplus
15065}
15066#endif
15067
15068int
15069main ()
15070{
15071return f != $ac_func;
15072 ;
15073 return 0;
15074}
15075_ACEOF
15076rm -f conftest.$ac_objext conftest$ac_exeext
15077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15078 (eval $ac_link) 2>conftest.er1
a848cd7e 15079 ac_status=$?
ac1cb8d3
VS
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
a848cd7e
SC
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
ddd14b14
RR
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
ac1cb8d3
VS
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 eval "$as_ac_var=yes"
15099else
15100 echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
15103eval "$as_ac_var=no"
15104fi
ac1cb8d3
VS
15105rm -f conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15107fi
15108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15110if test `eval echo '${'$as_ac_var'}'` = yes; then
15111 cat >>confdefs.h <<_ACEOF
15112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15113_ACEOF
15114
15115fi
15116done
15117
15118fi
15119
15120
15121for ac_header in langinfo.h
15122do
15123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15124if eval "test \"\${$as_ac_Header+set}\" = set"; then
15125 echo "$as_me:$LINENO: checking for $ac_header" >&5
15126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15127if eval "test \"\${$as_ac_Header+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129fi
15130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15132else
15133 # Is the header compilable?
15134echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15136cat >conftest.$ac_ext <<_ACEOF
15137/* confdefs.h. */
15138_ACEOF
15139cat confdefs.h >>conftest.$ac_ext
15140cat >>conftest.$ac_ext <<_ACEOF
15141/* end confdefs.h. */
15142$ac_includes_default
15143#include <$ac_header>
15144_ACEOF
15145rm -f conftest.$ac_objext
15146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15147 (eval $ac_compile) 2>conftest.er1
a848cd7e 15148 ac_status=$?
ac1cb8d3
VS
15149 grep -v '^ *+' conftest.er1 >conftest.err
15150 rm -f conftest.er1
15151 cat conftest.err >&5
a848cd7e
SC
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
ddd14b14
RR
15154 { ac_try='test -z "$ac_c_werror_flag"
15155 || test ! -s conftest.err'
ac1cb8d3
VS
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_header_compiler=yes
15168else
15169 echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
15172ac_header_compiler=no
15173fi
ac1cb8d3 15174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15176echo "${ECHO_T}$ac_header_compiler" >&6
15177
15178# Is the header present?
15179echo "$as_me:$LINENO: checking $ac_header presence" >&5
15180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15181cat >conftest.$ac_ext <<_ACEOF
15182/* confdefs.h. */
15183_ACEOF
15184cat confdefs.h >>conftest.$ac_ext
15185cat >>conftest.$ac_ext <<_ACEOF
15186/* end confdefs.h. */
15187#include <$ac_header>
15188_ACEOF
15189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } >/dev/null; then
15197 if test -s conftest.err; then
15198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15200 else
15201 ac_cpp_err=
15202 fi
15203else
15204 ac_cpp_err=yes
15205fi
15206if test -z "$ac_cpp_err"; then
15207 ac_header_preproc=yes
15208else
15209 echo "$as_me: failed program was:" >&5
15210sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ac_header_preproc=no
15213fi
15214rm -f conftest.err conftest.$ac_ext
15215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15216echo "${ECHO_T}$ac_header_preproc" >&6
15217
15218# So? What about this header?
ac1cb8d3
VS
15219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15220 yes:no: )
a848cd7e
SC
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15225 ac_header_preproc=yes
a848cd7e 15226 ;;
ac1cb8d3 15227 no:yes:* )
a848cd7e
SC
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15240 (
15241 cat <<\_ASBOX
ac1cb8d3
VS
15242## ----------------------------------------- ##
15243## Report this to wx-dev@lists.wxwidgets.org ##
15244## ----------------------------------------- ##
a848cd7e
SC
15245_ASBOX
15246 ) |
15247 sed "s/^/$as_me: WARNING: /" >&2
15248 ;;
15249esac
15250echo "$as_me:$LINENO: checking for $ac_header" >&5
15251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15252if eval "test \"\${$as_ac_Header+set}\" = set"; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
ac1cb8d3 15255 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15256fi
15257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15259
15260fi
15261if test `eval echo '${'$as_ac_Header'}'` = yes; then
15262 cat >>confdefs.h <<_ACEOF
15263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15264_ACEOF
15265
15266fi
15267
15268done
15269
15270
15271case "${host}" in
15272 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15273 if test $ac_cv_header_langinfo_h = "yes" \
15274 -a \( "$wx_cv_gccversion" = "EMX2" \
15275 -o "$wx_cv_gccversion" = "EMX3" \
15276 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15277 LIBS="$LIBS -lintl"
15278 fi
15279 ;;
15280esac
15281
15282if test "$wxUSE_GUI" = "yes"; then
15283 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15284
15285for ac_header in X11/Xlib.h
15286do
15287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15288if eval "test \"\${$as_ac_Header+set}\" = set"; then
15289 echo "$as_me:$LINENO: checking for $ac_header" >&5
15290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15291if eval "test \"\${$as_ac_Header+set}\" = set"; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293fi
15294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15296else
15297 # Is the header compilable?
15298echo "$as_me:$LINENO: checking $ac_header usability" >&5
15299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15300cat >conftest.$ac_ext <<_ACEOF
15301/* confdefs.h. */
15302_ACEOF
15303cat confdefs.h >>conftest.$ac_ext
15304cat >>conftest.$ac_ext <<_ACEOF
15305/* end confdefs.h. */
15306$ac_includes_default
15307#include <$ac_header>
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15311 (eval $ac_compile) 2>conftest.er1
a848cd7e 15312 ac_status=$?
ac1cb8d3
VS
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
a848cd7e
SC
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
ddd14b14
RR
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
ac1cb8d3
VS
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336ac_header_compiler=no
15337fi
ac1cb8d3 15338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340echo "${ECHO_T}$ac_header_compiler" >&6
15341
15342# Is the header present?
15343echo "$as_me:$LINENO: checking $ac_header presence" >&5
15344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15345cat >conftest.$ac_ext <<_ACEOF
15346/* confdefs.h. */
15347_ACEOF
15348cat confdefs.h >>conftest.$ac_ext
15349cat >>conftest.$ac_ext <<_ACEOF
15350/* end confdefs.h. */
15351#include <$ac_header>
15352_ACEOF
15353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } >/dev/null; then
15361 if test -s conftest.err; then
15362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15364 else
15365 ac_cpp_err=
15366 fi
15367else
15368 ac_cpp_err=yes
15369fi
15370if test -z "$ac_cpp_err"; then
15371 ac_header_preproc=yes
15372else
15373 echo "$as_me: failed program was:" >&5
15374sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_header_preproc=no
15377fi
15378rm -f conftest.err conftest.$ac_ext
15379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15380echo "${ECHO_T}$ac_header_preproc" >&6
15381
15382# So? What about this header?
ac1cb8d3
VS
15383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15384 yes:no: )
a848cd7e
SC
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15389 ac_header_preproc=yes
a848cd7e 15390 ;;
ac1cb8d3 15391 no:yes:* )
a848cd7e
SC
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15404 (
15405 cat <<\_ASBOX
ac1cb8d3
VS
15406## ----------------------------------------- ##
15407## Report this to wx-dev@lists.wxwidgets.org ##
15408## ----------------------------------------- ##
a848cd7e
SC
15409_ASBOX
15410 ) |
15411 sed "s/^/$as_me: WARNING: /" >&2
15412 ;;
15413esac
15414echo "$as_me:$LINENO: checking for $ac_header" >&5
15415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15416if eval "test \"\${$as_ac_Header+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
ac1cb8d3 15419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15420fi
15421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15423
15424fi
15425if test `eval echo '${'$as_ac_Header'}'` = yes; then
15426 cat >>confdefs.h <<_ACEOF
15427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15428_ACEOF
15429
15430fi
15431
15432done
15433
15434
15435for ac_header in X11/XKBlib.h
15436do
15437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15438echo "$as_me:$LINENO: checking for $ac_header" >&5
15439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15440if eval "test \"\${$as_ac_Header+set}\" = set"; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442else
15443 cat >conftest.$ac_ext <<_ACEOF
15444/* confdefs.h. */
15445_ACEOF
15446cat confdefs.h >>conftest.$ac_ext
15447cat >>conftest.$ac_ext <<_ACEOF
15448/* end confdefs.h. */
15449
15450 #if HAVE_X11_XLIB_H
15451 #include <X11/Xlib.h>
15452 #endif
15453
15454
15455#include <$ac_header>
15456_ACEOF
15457rm -f conftest.$ac_objext
15458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15459 (eval $ac_compile) 2>conftest.er1
a848cd7e 15460 ac_status=$?
ac1cb8d3
VS
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
a848cd7e
SC
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
ddd14b14
RR
15466 { ac_try='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
ac1cb8d3
VS
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 eval "$as_ac_Header=yes"
15480else
15481 echo "$as_me: failed program was:" >&5
15482sed 's/^/| /' conftest.$ac_ext >&5
15483
15484eval "$as_ac_Header=no"
15485fi
ac1cb8d3 15486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15487fi
15488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15490if test `eval echo '${'$as_ac_Header'}'` = yes; then
15491 cat >>confdefs.h <<_ACEOF
15492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15493_ACEOF
15494
15495fi
15496
15497done
15498
15499 fi
15500fi
15501
15502
15503echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15504echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15505if test "${ac_cv_c_const+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507else
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514
15515int
15516main ()
15517{
15518/* FIXME: Include the comments suggested by Paul. */
15519#ifndef __cplusplus
15520 /* Ultrix mips cc rejects this. */
15521 typedef int charset[2];
15522 const charset x;
15523 /* SunOS 4.1.1 cc rejects this. */
15524 char const *const *ccp;
15525 char **p;
15526 /* NEC SVR4.0.2 mips cc rejects this. */
15527 struct point {int x, y;};
15528 static struct point const zero = {0,0};
15529 /* AIX XL C 1.02.0.0 rejects this.
15530 It does not let you subtract one const X* pointer from another in
15531 an arm of an if-expression whose if-part is not a constant
15532 expression */
15533 const char *g = "string";
15534 ccp = &g + (g ? g-g : 0);
15535 /* HPUX 7.0 cc rejects these. */
15536 ++ccp;
15537 p = (char**) ccp;
15538 ccp = (char const *const *) p;
15539 { /* SCO 3.2v4 cc rejects this. */
15540 char *t;
15541 char const *s = 0 ? (char *) 0 : (char const *) 0;
15542
15543 *t++ = 0;
15544 }
15545 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15546 int x[] = {25, 17};
15547 const int *foo = &x[0];
15548 ++foo;
15549 }
15550 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15551 typedef const int *iptr;
15552 iptr p = 0;
15553 ++p;
15554 }
15555 { /* AIX XL C 1.02.0.0 rejects this saying
15556 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15557 struct s { int j; const int *ap[3]; };
15558 struct s *b; b->j = 5;
15559 }
15560 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15561 const int foo = 10;
15562 }
15563#endif
15564
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15571 (eval $ac_compile) 2>conftest.er1
a848cd7e 15572 ac_status=$?
ac1cb8d3
VS
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
a848cd7e
SC
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
ddd14b14
RR
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
ac1cb8d3
VS
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_c_const=yes
15592else
15593 echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596ac_cv_c_const=no
15597fi
ac1cb8d3 15598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15599fi
15600echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15601echo "${ECHO_T}$ac_cv_c_const" >&6
15602if test $ac_cv_c_const = no; then
15603
15604cat >>confdefs.h <<\_ACEOF
15605#define const
15606_ACEOF
15607
15608fi
15609
15610echo "$as_me:$LINENO: checking for inline" >&5
15611echo $ECHO_N "checking for inline... $ECHO_C" >&6
15612if test "${ac_cv_c_inline+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
15615 ac_cv_c_inline=no
15616for ac_kw in inline __inline__ __inline; do
15617 cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h. */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h. */
15623#ifndef __cplusplus
15624typedef int foo_t;
15625static $ac_kw foo_t static_foo () {return 0; }
15626$ac_kw foo_t foo () {return 0; }
15627#endif
15628
15629_ACEOF
15630rm -f conftest.$ac_objext
15631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15632 (eval $ac_compile) 2>conftest.er1
a848cd7e 15633 ac_status=$?
ac1cb8d3
VS
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
a848cd7e
SC
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
ddd14b14
RR
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
ac1cb8d3
VS
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_cv_c_inline=$ac_kw; break
15653else
15654 echo "$as_me: failed program was:" >&5
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
15657fi
ac1cb8d3 15658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15659done
15660
15661fi
15662echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15663echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15664
15665
a848cd7e
SC
15666case $ac_cv_c_inline in
15667 inline | yes) ;;
ac1cb8d3
VS
15668 *)
15669 case $ac_cv_c_inline in
15670 no) ac_val=;;
15671 *) ac_val=$ac_cv_c_inline;;
15672 esac
15673 cat >>confdefs.h <<_ACEOF
15674#ifndef __cplusplus
15675#define inline $ac_val
15676#endif
de59c161 15677_ACEOF
ac1cb8d3 15678 ;;
a848cd7e
SC
15679esac
15680
15681
15682echo "$as_me:$LINENO: checking for char" >&5
15683echo $ECHO_N "checking for char... $ECHO_C" >&6
15684if test "${ac_cv_type_char+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15686else
15687 cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693$ac_includes_default
15694int
15695main ()
15696{
15697if ((char *) 0)
15698 return 0;
15699if (sizeof (char))
15700 return 0;
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705rm -f conftest.$ac_objext
15706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15707 (eval $ac_compile) 2>conftest.er1
a848cd7e 15708 ac_status=$?
ac1cb8d3
VS
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
a848cd7e
SC
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
ddd14b14
RR
15714 { ac_try='test -z "$ac_c_werror_flag"
15715 || test ! -s conftest.err'
ac1cb8d3
VS
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; } &&
15721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_type_char=yes
15728else
15729 echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732ac_cv_type_char=no
15733fi
ac1cb8d3 15734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15735fi
15736echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15737echo "${ECHO_T}$ac_cv_type_char" >&6
15738
15739echo "$as_me:$LINENO: checking size of char" >&5
15740echo $ECHO_N "checking size of char... $ECHO_C" >&6
15741if test "${ac_cv_sizeof_char+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
15744 if test "$ac_cv_type_char" = yes; then
15745 # The cast to unsigned long works around a bug in the HP C Compiler
15746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15748 # This bug is HP SR number 8606223364.
15749 if test "$cross_compiling" = yes; then
15750 # Depending upon the size, compute the lo and hi bounds.
15751cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
15757$ac_includes_default
15758int
15759main ()
15760{
15761static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15762test_array [0] = 0
15763
15764 ;
15765 return 0;
15766}
15767_ACEOF
15768rm -f conftest.$ac_objext
15769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15770 (eval $ac_compile) 2>conftest.er1
a848cd7e 15771 ac_status=$?
ac1cb8d3
VS
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
a848cd7e
SC
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
ddd14b14
RR
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
ac1cb8d3
VS
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_lo=0 ac_mid=0
15791 while :; do
15792 cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798$ac_includes_default
15799int
15800main ()
15801{
15802static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15803test_array [0] = 0
15804
15805 ;
15806 return 0;
15807}
15808_ACEOF
15809rm -f conftest.$ac_objext
15810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15811 (eval $ac_compile) 2>conftest.er1
a848cd7e 15812 ac_status=$?
ac1cb8d3
VS
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
a848cd7e
SC
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
ddd14b14
RR
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || 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); } &&
ddd14b14
RR
15875 { ac_try='test -z "$ac_c_werror_flag"
15876 || test ! -s conftest.err'
ac1cb8d3
VS
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_hi=-1 ac_mid=-1
15889 while :; do
15890 cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896$ac_includes_default
15897int
15898main ()
15899{
15900static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15901test_array [0] = 0
15902
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext
15908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15909 (eval $ac_compile) 2>conftest.er1
a848cd7e 15910 ac_status=$?
ac1cb8d3
VS
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
a848cd7e
SC
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
ddd14b14
RR
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
ac1cb8d3
VS
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 ac_lo=$ac_mid; break
15930else
15931 echo "$as_me: failed program was:" >&5
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
15934ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15935 if test $ac_mid -le $ac_hi; then
15936 ac_lo= ac_hi=
15937 break
15938 fi
15939 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15940fi
ac1cb8d3 15941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15942 done
15943else
15944 echo "$as_me: failed program was:" >&5
15945sed 's/^/| /' conftest.$ac_ext >&5
15946
15947ac_lo= ac_hi=
15948fi
ac1cb8d3 15949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15950fi
ac1cb8d3 15951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15952# Binary search between lo and hi bounds.
15953while test "x$ac_lo" != "x$ac_hi"; do
15954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15955 cat >conftest.$ac_ext <<_ACEOF
15956/* confdefs.h. */
15957_ACEOF
15958cat confdefs.h >>conftest.$ac_ext
15959cat >>conftest.$ac_ext <<_ACEOF
15960/* end confdefs.h. */
15961$ac_includes_default
15962int
15963main ()
15964{
15965static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15966test_array [0] = 0
15967
15968 ;
15969 return 0;
15970}
15971_ACEOF
15972rm -f conftest.$ac_objext
15973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15974 (eval $ac_compile) 2>conftest.er1
a848cd7e 15975 ac_status=$?
ac1cb8d3
VS
15976 grep -v '^ *+' conftest.er1 >conftest.err
15977 rm -f conftest.er1
15978 cat conftest.err >&5
a848cd7e
SC
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } &&
ddd14b14
RR
15981 { ac_try='test -z "$ac_c_werror_flag"
15982 || test ! -s conftest.err'
ac1cb8d3
VS
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; } &&
15988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_hi=$ac_mid
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999ac_lo=`expr '(' $ac_mid ')' + 1`
16000fi
ac1cb8d3 16001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16002done
16003case $ac_lo in
16004?*) ac_cv_sizeof_char=$ac_lo;;
16005'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16006See \`config.log' for more details." >&5
16007echo "$as_me: error: cannot compute sizeof (char), 77
16008See \`config.log' for more details." >&2;}
16009 { (exit 1); exit 1; }; } ;;
16010esac
16011else
16012 if test "$cross_compiling" = yes; then
ddd14b14
RR
16013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16014See \`config.log' for more details." >&5
16015echo "$as_me: error: cannot run test program while cross compiling
16016See \`config.log' for more details." >&2;}
a848cd7e
SC
16017 { (exit 1); exit 1; }; }
16018else
16019 cat >conftest.$ac_ext <<_ACEOF
16020/* confdefs.h. */
16021_ACEOF
16022cat confdefs.h >>conftest.$ac_ext
16023cat >>conftest.$ac_ext <<_ACEOF
16024/* end confdefs.h. */
16025$ac_includes_default
16026long longval () { return (long) (sizeof (char)); }
16027unsigned long ulongval () { return (long) (sizeof (char)); }
16028#include <stdio.h>
16029#include <stdlib.h>
16030int
16031main ()
16032{
16033
16034 FILE *f = fopen ("conftest.val", "w");
16035 if (! f)
16036 exit (1);
16037 if (((long) (sizeof (char))) < 0)
16038 {
16039 long i = longval ();
16040 if (i != ((long) (sizeof (char))))
16041 exit (1);
16042 fprintf (f, "%ld\n", i);
16043 }
16044 else
16045 {
16046 unsigned long i = ulongval ();
16047 if (i != ((long) (sizeof (char))))
16048 exit (1);
16049 fprintf (f, "%lu\n", i);
16050 }
16051 exit (ferror (f) || fclose (f) != 0);
16052
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057rm -f conftest$ac_exeext
16058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059 (eval $ac_link) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_cv_sizeof_char=`cat conftest.val`
16069else
16070 echo "$as_me: program exited with status $ac_status" >&5
16071echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074( exit $ac_status )
16075{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16076See \`config.log' for more details." >&5
16077echo "$as_me: error: cannot compute sizeof (char), 77
16078See \`config.log' for more details." >&2;}
16079 { (exit 1); exit 1; }; }
16080fi
ac1cb8d3 16081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16082fi
16083fi
16084rm -f conftest.val
16085else
16086 ac_cv_sizeof_char=0
16087fi
16088fi
16089echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16090echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16091cat >>confdefs.h <<_ACEOF
16092#define SIZEOF_CHAR $ac_cv_sizeof_char
16093_ACEOF
16094
16095
16096echo "$as_me:$LINENO: checking for short" >&5
16097echo $ECHO_N "checking for short... $ECHO_C" >&6
16098if test "${ac_cv_type_short+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100else
16101 cat >conftest.$ac_ext <<_ACEOF
16102/* confdefs.h. */
16103_ACEOF
16104cat confdefs.h >>conftest.$ac_ext
16105cat >>conftest.$ac_ext <<_ACEOF
16106/* end confdefs.h. */
16107$ac_includes_default
16108int
16109main ()
16110{
16111if ((short *) 0)
16112 return 0;
16113if (sizeof (short))
16114 return 0;
16115 ;
16116 return 0;
16117}
16118_ACEOF
16119rm -f conftest.$ac_objext
16120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16121 (eval $ac_compile) 2>conftest.er1
a848cd7e 16122 ac_status=$?
ac1cb8d3
VS
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
a848cd7e
SC
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
ddd14b14
RR
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_type_short=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146ac_cv_type_short=no
16147fi
ac1cb8d3 16148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16149fi
16150echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16151echo "${ECHO_T}$ac_cv_type_short" >&6
16152
16153echo "$as_me:$LINENO: checking size of short" >&5
16154echo $ECHO_N "checking size of short... $ECHO_C" >&6
16155if test "${ac_cv_sizeof_short+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157else
16158 if test "$ac_cv_type_short" = yes; then
16159 # The cast to unsigned long works around a bug in the HP C Compiler
16160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16162 # This bug is HP SR number 8606223364.
16163 if test "$cross_compiling" = yes; then
16164 # Depending upon the size, compute the lo and hi bounds.
16165cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171$ac_includes_default
16172int
16173main ()
16174{
16175static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16176test_array [0] = 0
16177
16178 ;
16179 return 0;
16180}
16181_ACEOF
16182rm -f conftest.$ac_objext
16183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16184 (eval $ac_compile) 2>conftest.er1
a848cd7e 16185 ac_status=$?
ac1cb8d3
VS
16186 grep -v '^ *+' conftest.er1 >conftest.err
16187 rm -f conftest.er1
16188 cat conftest.err >&5
a848cd7e
SC
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
ddd14b14
RR
16191 { ac_try='test -z "$ac_c_werror_flag"
16192 || test ! -s conftest.err'
ac1cb8d3
VS
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; } &&
16198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_lo=0 ac_mid=0
16205 while :; do
16206 cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212$ac_includes_default
16213int
16214main ()
16215{
16216static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16217test_array [0] = 0
16218
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16225 (eval $ac_compile) 2>conftest.er1
a848cd7e 16226 ac_status=$?
ac1cb8d3
VS
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
a848cd7e
SC
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
ddd14b14
RR
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
ac1cb8d3
VS
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_hi=$ac_mid; break
16246else
16247 echo "$as_me: failed program was:" >&5
16248sed 's/^/| /' conftest.$ac_ext >&5
16249
16250ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16251 if test $ac_lo -le $ac_mid; then
16252 ac_lo= ac_hi=
16253 break
16254 fi
16255 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16256fi
ac1cb8d3 16257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16258 done
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263cat >conftest.$ac_ext <<_ACEOF
16264/* confdefs.h. */
16265_ACEOF
16266cat confdefs.h >>conftest.$ac_ext
16267cat >>conftest.$ac_ext <<_ACEOF
16268/* end confdefs.h. */
16269$ac_includes_default
16270int
16271main ()
16272{
16273static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16274test_array [0] = 0
16275
16276 ;
16277 return 0;
16278}
16279_ACEOF
16280rm -f conftest.$ac_objext
16281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16282 (eval $ac_compile) 2>conftest.er1
a848cd7e 16283 ac_status=$?
ac1cb8d3
VS
16284 grep -v '^ *+' conftest.er1 >conftest.err
16285 rm -f conftest.er1
16286 cat conftest.err >&5
a848cd7e
SC
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
ddd14b14
RR
16289 { ac_try='test -z "$ac_c_werror_flag"
16290 || test ! -s conftest.err'
ac1cb8d3
VS
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_hi=-1 ac_mid=-1
16303 while :; do
16304 cat >conftest.$ac_ext <<_ACEOF
16305/* confdefs.h. */
16306_ACEOF
16307cat confdefs.h >>conftest.$ac_ext
16308cat >>conftest.$ac_ext <<_ACEOF
16309/* end confdefs.h. */
16310$ac_includes_default
16311int
16312main ()
16313{
16314static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16315test_array [0] = 0
16316
16317 ;
16318 return 0;
16319}
16320_ACEOF
16321rm -f conftest.$ac_objext
16322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16323 (eval $ac_compile) 2>conftest.er1
a848cd7e 16324 ac_status=$?
ac1cb8d3
VS
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
a848cd7e
SC
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
ddd14b14
RR
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
ac1cb8d3
VS
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_lo=$ac_mid; break
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16349 if test $ac_mid -le $ac_hi; then
16350 ac_lo= ac_hi=
16351 break
16352 fi
16353 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16354fi
ac1cb8d3 16355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16356 done
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_lo= ac_hi=
16362fi
ac1cb8d3 16363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16364fi
ac1cb8d3 16365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16366# Binary search between lo and hi bounds.
16367while test "x$ac_lo" != "x$ac_hi"; do
16368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16369 cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376int
16377main ()
16378{
16379static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16380test_array [0] = 0
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16388 (eval $ac_compile) 2>conftest.er1
a848cd7e 16389 ac_status=$?
ac1cb8d3
VS
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
a848cd7e
SC
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
ddd14b14
RR
16395 { ac_try='test -z "$ac_c_werror_flag"
16396 || test ! -s conftest.err'
ac1cb8d3
VS
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_hi=$ac_mid
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413ac_lo=`expr '(' $ac_mid ')' + 1`
16414fi
ac1cb8d3 16415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16416done
16417case $ac_lo in
16418?*) ac_cv_sizeof_short=$ac_lo;;
16419'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16420See \`config.log' for more details." >&5
16421echo "$as_me: error: cannot compute sizeof (short), 77
16422See \`config.log' for more details." >&2;}
16423 { (exit 1); exit 1; }; } ;;
16424esac
16425else
16426 if test "$cross_compiling" = yes; then
ddd14b14
RR
16427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16428See \`config.log' for more details." >&5
16429echo "$as_me: error: cannot run test program while cross compiling
16430See \`config.log' for more details." >&2;}
a848cd7e
SC
16431 { (exit 1); exit 1; }; }
16432else
16433 cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h. */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h. */
16439$ac_includes_default
16440long longval () { return (long) (sizeof (short)); }
16441unsigned long ulongval () { return (long) (sizeof (short)); }
16442#include <stdio.h>
16443#include <stdlib.h>
16444int
16445main ()
16446{
16447
16448 FILE *f = fopen ("conftest.val", "w");
16449 if (! f)
16450 exit (1);
16451 if (((long) (sizeof (short))) < 0)
16452 {
16453 long i = longval ();
16454 if (i != ((long) (sizeof (short))))
16455 exit (1);
16456 fprintf (f, "%ld\n", i);
16457 }
16458 else
16459 {
16460 unsigned long i = ulongval ();
16461 if (i != ((long) (sizeof (short))))
16462 exit (1);
16463 fprintf (f, "%lu\n", i);
16464 }
16465 exit (ferror (f) || fclose (f) != 0);
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest$ac_exeext
16472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473 (eval $ac_link) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_cv_sizeof_short=`cat conftest.val`
16483else
16484 echo "$as_me: program exited with status $ac_status" >&5
16485echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488( exit $ac_status )
16489{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16490See \`config.log' for more details." >&5
16491echo "$as_me: error: cannot compute sizeof (short), 77
16492See \`config.log' for more details." >&2;}
16493 { (exit 1); exit 1; }; }
16494fi
ac1cb8d3 16495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16496fi
16497fi
16498rm -f conftest.val
16499else
16500 ac_cv_sizeof_short=0
16501fi
16502fi
16503echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16504echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16505cat >>confdefs.h <<_ACEOF
16506#define SIZEOF_SHORT $ac_cv_sizeof_short
16507_ACEOF
16508
16509
16510echo "$as_me:$LINENO: checking for void *" >&5
16511echo $ECHO_N "checking for void *... $ECHO_C" >&6
16512if test "${ac_cv_type_void_p+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514else
16515 cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522int
16523main ()
16524{
16525if ((void * *) 0)
16526 return 0;
16527if (sizeof (void *))
16528 return 0;
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16535 (eval $ac_compile) 2>conftest.er1
a848cd7e 16536 ac_status=$?
ac1cb8d3
VS
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
a848cd7e
SC
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
ddd14b14
RR
16542 { ac_try='test -z "$ac_c_werror_flag"
16543 || test ! -s conftest.err'
ac1cb8d3
VS
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_type_void_p=yes
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560ac_cv_type_void_p=no
16561fi
ac1cb8d3 16562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16563fi
16564echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16565echo "${ECHO_T}$ac_cv_type_void_p" >&6
16566
16567echo "$as_me:$LINENO: checking size of void *" >&5
16568echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16569if test "${ac_cv_sizeof_void_p+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
16572 if test "$ac_cv_type_void_p" = yes; then
16573 # The cast to unsigned long works around a bug in the HP C Compiler
16574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16576 # This bug is HP SR number 8606223364.
16577 if test "$cross_compiling" = yes; then
16578 # Depending upon the size, compute the lo and hi bounds.
16579cat >conftest.$ac_ext <<_ACEOF
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586int
16587main ()
16588{
16589static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16590test_array [0] = 0
16591
16592 ;
16593 return 0;
16594}
16595_ACEOF
16596rm -f conftest.$ac_objext
16597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16598 (eval $ac_compile) 2>conftest.er1
a848cd7e 16599 ac_status=$?
ac1cb8d3
VS
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
a848cd7e
SC
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
ddd14b14
RR
16605 { ac_try='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
ac1cb8d3
VS
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_lo=0 ac_mid=0
16619 while :; do
16620 cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626$ac_includes_default
16627int
16628main ()
16629{
16630static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16631test_array [0] = 0
16632
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext
16638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16639 (eval $ac_compile) 2>conftest.er1
a848cd7e 16640 ac_status=$?
ac1cb8d3
VS
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
a848cd7e
SC
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
ddd14b14
RR
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
ac1cb8d3
VS
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_hi=$ac_mid; break
16660else
16661 echo "$as_me: failed program was:" >&5
16662sed 's/^/| /' conftest.$ac_ext >&5
16663
16664ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16665 if test $ac_lo -le $ac_mid; then
16666 ac_lo= ac_hi=
16667 break
16668 fi
16669 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672 done
16673else
16674 echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
16677cat >conftest.$ac_ext <<_ACEOF
16678/* confdefs.h. */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h. */
16683$ac_includes_default
16684int
16685main ()
16686{
16687static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16688test_array [0] = 0
16689
16690 ;
16691 return 0;
16692}
16693_ACEOF
16694rm -f conftest.$ac_objext
16695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16696 (eval $ac_compile) 2>conftest.er1
a848cd7e 16697 ac_status=$?
ac1cb8d3
VS
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
a848cd7e
SC
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
ddd14b14
RR
16703 { ac_try='test -z "$ac_c_werror_flag"
16704 || test ! -s conftest.err'
ac1cb8d3
VS
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_hi=-1 ac_mid=-1
16717 while :; do
16718 cat >conftest.$ac_ext <<_ACEOF
16719/* confdefs.h. */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h. */
16724$ac_includes_default
16725int
16726main ()
16727{
16728static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16729test_array [0] = 0
16730
16731 ;
16732 return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext
16736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16737 (eval $ac_compile) 2>conftest.er1
a848cd7e 16738 ac_status=$?
ac1cb8d3
VS
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
a848cd7e
SC
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
ddd14b14
RR
16744 { ac_try='test -z "$ac_c_werror_flag"
16745 || test ! -s conftest.err'
ac1cb8d3
VS
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_lo=$ac_mid; break
16758else
16759 echo "$as_me: failed program was:" >&5
16760sed 's/^/| /' conftest.$ac_ext >&5
16761
16762ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16763 if test $ac_mid -le $ac_hi; then
16764 ac_lo= ac_hi=
16765 break
16766 fi
16767 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16768fi
ac1cb8d3 16769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16770 done
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775ac_lo= ac_hi=
16776fi
ac1cb8d3 16777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16778fi
ac1cb8d3 16779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16780# Binary search between lo and hi bounds.
16781while test "x$ac_lo" != "x$ac_hi"; do
16782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789$ac_includes_default
16790int
16791main ()
16792{
16793static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16794test_array [0] = 0
16795
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext
16801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16802 (eval $ac_compile) 2>conftest.er1
a848cd7e 16803 ac_status=$?
ac1cb8d3
VS
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
a848cd7e
SC
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
ddd14b14
RR
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
ac1cb8d3
VS
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_hi=$ac_mid
16823else
16824 echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
16827ac_lo=`expr '(' $ac_mid ')' + 1`
16828fi
ac1cb8d3 16829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16830done
16831case $ac_lo in
16832?*) ac_cv_sizeof_void_p=$ac_lo;;
16833'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16834See \`config.log' for more details." >&5
16835echo "$as_me: error: cannot compute sizeof (void *), 77
16836See \`config.log' for more details." >&2;}
16837 { (exit 1); exit 1; }; } ;;
16838esac
16839else
16840 if test "$cross_compiling" = yes; then
ddd14b14
RR
16841 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16842See \`config.log' for more details." >&5
16843echo "$as_me: error: cannot run test program while cross compiling
16844See \`config.log' for more details." >&2;}
a848cd7e
SC
16845 { (exit 1); exit 1; }; }
16846else
16847 cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853$ac_includes_default
16854long longval () { return (long) (sizeof (void *)); }
16855unsigned long ulongval () { return (long) (sizeof (void *)); }
16856#include <stdio.h>
16857#include <stdlib.h>
16858int
16859main ()
16860{
16861
16862 FILE *f = fopen ("conftest.val", "w");
16863 if (! f)
16864 exit (1);
16865 if (((long) (sizeof (void *))) < 0)
16866 {
16867 long i = longval ();
16868 if (i != ((long) (sizeof (void *))))
16869 exit (1);
16870 fprintf (f, "%ld\n", i);
16871 }
16872 else
16873 {
16874 unsigned long i = ulongval ();
16875 if (i != ((long) (sizeof (void *))))
16876 exit (1);
16877 fprintf (f, "%lu\n", i);
16878 }
16879 exit (ferror (f) || fclose (f) != 0);
16880
16881 ;
16882 return 0;
16883}
16884_ACEOF
16885rm -f conftest$ac_exeext
16886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_sizeof_void_p=`cat conftest.val`
16897else
16898 echo "$as_me: program exited with status $ac_status" >&5
16899echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902( exit $ac_status )
16903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16904See \`config.log' for more details." >&5
16905echo "$as_me: error: cannot compute sizeof (void *), 77
16906See \`config.log' for more details." >&2;}
16907 { (exit 1); exit 1; }; }
16908fi
ac1cb8d3 16909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16910fi
16911fi
16912rm -f conftest.val
16913else
16914 ac_cv_sizeof_void_p=0
16915fi
16916fi
16917echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16918echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16919cat >>confdefs.h <<_ACEOF
16920#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16921_ACEOF
16922
16923
16924echo "$as_me:$LINENO: checking for int" >&5
16925echo $ECHO_N "checking for int... $ECHO_C" >&6
16926if test "${ac_cv_type_int+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928else
16929 cat >conftest.$ac_ext <<_ACEOF
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
16935$ac_includes_default
16936int
16937main ()
16938{
16939if ((int *) 0)
16940 return 0;
16941if (sizeof (int))
16942 return 0;
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext
16948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16949 (eval $ac_compile) 2>conftest.er1
a848cd7e 16950 ac_status=$?
ac1cb8d3
VS
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
a848cd7e
SC
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
ddd14b14
RR
16956 { ac_try='test -z "$ac_c_werror_flag"
16957 || test ! -s conftest.err'
ac1cb8d3
VS
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_type_int=yes
16970else
16971 echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974ac_cv_type_int=no
16975fi
ac1cb8d3 16976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16977fi
16978echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16979echo "${ECHO_T}$ac_cv_type_int" >&6
16980
16981echo "$as_me:$LINENO: checking size of int" >&5
16982echo $ECHO_N "checking size of int... $ECHO_C" >&6
16983if test "${ac_cv_sizeof_int+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 if test "$ac_cv_type_int" = yes; then
16987 # The cast to unsigned long works around a bug in the HP C Compiler
16988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16990 # This bug is HP SR number 8606223364.
16991 if test "$cross_compiling" = yes; then
16992 # Depending upon the size, compute the lo and hi bounds.
16993cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999$ac_includes_default
17000int
17001main ()
17002{
17003static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17004test_array [0] = 0
17005
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext
17011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17012 (eval $ac_compile) 2>conftest.er1
a848cd7e 17013 ac_status=$?
ac1cb8d3
VS
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
a848cd7e
SC
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
ddd14b14
RR
17019 { ac_try='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
ac1cb8d3
VS
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_lo=0 ac_mid=0
17033 while :; do
17034 cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040$ac_includes_default
17041int
17042main ()
17043{
17044static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17045test_array [0] = 0
17046
17047 ;
17048 return 0;
17049}
17050_ACEOF
17051rm -f conftest.$ac_objext
17052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17053 (eval $ac_compile) 2>conftest.er1
a848cd7e 17054 ac_status=$?
ac1cb8d3
VS
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
a848cd7e
SC
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
ddd14b14
RR
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
ac1cb8d3
VS
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_hi=$ac_mid; break
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17079 if test $ac_lo -le $ac_mid; then
17080 ac_lo= ac_hi=
17081 break
17082 fi
17083 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17084fi
ac1cb8d3 17085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17086 done
17087else
17088 echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
17097$ac_includes_default
17098int
17099main ()
17100{
17101static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17102test_array [0] = 0
17103
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17110 (eval $ac_compile) 2>conftest.er1
a848cd7e 17111 ac_status=$?
ac1cb8d3
VS
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
a848cd7e
SC
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
ddd14b14
RR
17117 { ac_try='test -z "$ac_c_werror_flag"
17118 || test ! -s conftest.err'
ac1cb8d3
VS
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; } &&
17124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 ac_hi=-1 ac_mid=-1
17131 while :; do
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139int
17140main ()
17141{
17142static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17143test_array [0] = 0
17144
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext
17150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17151 (eval $ac_compile) 2>conftest.er1
a848cd7e 17152 ac_status=$?
ac1cb8d3
VS
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
a848cd7e
SC
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
ddd14b14
RR
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
ac1cb8d3
VS
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_lo=$ac_mid; break
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
17176ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17177 if test $ac_mid -le $ac_hi; then
17178 ac_lo= ac_hi=
17179 break
17180 fi
17181 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17182fi
ac1cb8d3 17183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17184 done
17185else
17186 echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
17189ac_lo= ac_hi=
17190fi
ac1cb8d3 17191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17194# Binary search between lo and hi bounds.
17195while test "x$ac_lo" != "x$ac_hi"; do
17196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17197 cat >conftest.$ac_ext <<_ACEOF
17198/* confdefs.h. */
17199_ACEOF
17200cat confdefs.h >>conftest.$ac_ext
17201cat >>conftest.$ac_ext <<_ACEOF
17202/* end confdefs.h. */
17203$ac_includes_default
17204int
17205main ()
17206{
17207static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17208test_array [0] = 0
17209
17210 ;
17211 return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext
17215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17216 (eval $ac_compile) 2>conftest.er1
a848cd7e 17217 ac_status=$?
ac1cb8d3
VS
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
a848cd7e
SC
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
ddd14b14
RR
17223 { ac_try='test -z "$ac_c_werror_flag"
17224 || test ! -s conftest.err'
ac1cb8d3
VS
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_hi=$ac_mid
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241ac_lo=`expr '(' $ac_mid ')' + 1`
17242fi
ac1cb8d3 17243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17244done
17245case $ac_lo in
17246?*) ac_cv_sizeof_int=$ac_lo;;
17247'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17248See \`config.log' for more details." >&5
17249echo "$as_me: error: cannot compute sizeof (int), 77
17250See \`config.log' for more details." >&2;}
17251 { (exit 1); exit 1; }; } ;;
17252esac
17253else
17254 if test "$cross_compiling" = yes; then
ddd14b14
RR
17255 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17256See \`config.log' for more details." >&5
17257echo "$as_me: error: cannot run test program while cross compiling
17258See \`config.log' for more details." >&2;}
a848cd7e
SC
17259 { (exit 1); exit 1; }; }
17260else
17261 cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h. */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h. */
17267$ac_includes_default
17268long longval () { return (long) (sizeof (int)); }
17269unsigned long ulongval () { return (long) (sizeof (int)); }
17270#include <stdio.h>
17271#include <stdlib.h>
17272int
17273main ()
17274{
17275
17276 FILE *f = fopen ("conftest.val", "w");
17277 if (! f)
17278 exit (1);
17279 if (((long) (sizeof (int))) < 0)
17280 {
17281 long i = longval ();
17282 if (i != ((long) (sizeof (int))))
17283 exit (1);
17284 fprintf (f, "%ld\n", i);
17285 }
17286 else
17287 {
17288 unsigned long i = ulongval ();
17289 if (i != ((long) (sizeof (int))))
17290 exit (1);
17291 fprintf (f, "%lu\n", i);
17292 }
17293 exit (ferror (f) || fclose (f) != 0);
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest$ac_exeext
17300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_cv_sizeof_int=`cat conftest.val`
17311else
17312 echo "$as_me: program exited with status $ac_status" >&5
17313echo "$as_me: failed program was:" >&5
17314sed 's/^/| /' conftest.$ac_ext >&5
17315
17316( exit $ac_status )
17317{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17318See \`config.log' for more details." >&5
17319echo "$as_me: error: cannot compute sizeof (int), 77
17320See \`config.log' for more details." >&2;}
17321 { (exit 1); exit 1; }; }
17322fi
ac1cb8d3 17323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17324fi
17325fi
17326rm -f conftest.val
17327else
17328 ac_cv_sizeof_int=0
17329fi
17330fi
17331echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17332echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17333cat >>confdefs.h <<_ACEOF
17334#define SIZEOF_INT $ac_cv_sizeof_int
17335_ACEOF
17336
17337
17338echo "$as_me:$LINENO: checking for long" >&5
17339echo $ECHO_N "checking for long... $ECHO_C" >&6
17340if test "${ac_cv_type_long+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 cat >conftest.$ac_ext <<_ACEOF
17344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
17349$ac_includes_default
17350int
17351main ()
17352{
17353if ((long *) 0)
17354 return 0;
17355if (sizeof (long))
17356 return 0;
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361rm -f conftest.$ac_objext
17362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17363 (eval $ac_compile) 2>conftest.er1
a848cd7e 17364 ac_status=$?
ac1cb8d3
VS
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
a848cd7e
SC
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
ddd14b14
RR
17370 { ac_try='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
ac1cb8d3
VS
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_cv_type_long=yes
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388ac_cv_type_long=no
17389fi
ac1cb8d3 17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17391fi
17392echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17393echo "${ECHO_T}$ac_cv_type_long" >&6
17394
17395echo "$as_me:$LINENO: checking size of long" >&5
17396echo $ECHO_N "checking size of long... $ECHO_C" >&6
17397if test "${ac_cv_sizeof_long+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 if test "$ac_cv_type_long" = yes; then
17401 # The cast to unsigned long works around a bug in the HP C Compiler
17402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17404 # This bug is HP SR number 8606223364.
17405 if test "$cross_compiling" = yes; then
17406 # Depending upon the size, compute the lo and hi bounds.
17407cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413$ac_includes_default
17414int
17415main ()
17416{
17417static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17418test_array [0] = 0
17419
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17426 (eval $ac_compile) 2>conftest.er1
a848cd7e 17427 ac_status=$?
ac1cb8d3
VS
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
a848cd7e
SC
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
ddd14b14
RR
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
ac1cb8d3
VS
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_lo=0 ac_mid=0
17447 while :; do
17448 cat >conftest.$ac_ext <<_ACEOF
17449/* confdefs.h. */
17450_ACEOF
17451cat confdefs.h >>conftest.$ac_ext
17452cat >>conftest.$ac_ext <<_ACEOF
17453/* end confdefs.h. */
17454$ac_includes_default
17455int
17456main ()
17457{
17458static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17459test_array [0] = 0
17460
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext
17466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17467 (eval $ac_compile) 2>conftest.er1
a848cd7e 17468 ac_status=$?
ac1cb8d3
VS
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
a848cd7e
SC
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
ddd14b14
RR
17474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
ac1cb8d3
VS
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_hi=$ac_mid; break
17488else
17489 echo "$as_me: failed program was:" >&5
17490sed 's/^/| /' conftest.$ac_ext >&5
17491
17492ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17493 if test $ac_lo -le $ac_mid; then
17494 ac_lo= ac_hi=
17495 break
17496 fi
17497 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17498fi
ac1cb8d3 17499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17500 done
17501else
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
17505cat >conftest.$ac_ext <<_ACEOF
17506/* confdefs.h. */
17507_ACEOF
17508cat confdefs.h >>conftest.$ac_ext
17509cat >>conftest.$ac_ext <<_ACEOF
17510/* end confdefs.h. */
17511$ac_includes_default
17512int
17513main ()
17514{
17515static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17516test_array [0] = 0
17517
17518 ;
17519 return 0;
17520}
17521_ACEOF
17522rm -f conftest.$ac_objext
17523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17524 (eval $ac_compile) 2>conftest.er1
a848cd7e 17525 ac_status=$?
ac1cb8d3
VS
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
a848cd7e
SC
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
ddd14b14
RR
17531 { ac_try='test -z "$ac_c_werror_flag"
17532 || test ! -s conftest.err'
ac1cb8d3
VS
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_hi=-1 ac_mid=-1
17545 while :; do
17546 cat >conftest.$ac_ext <<_ACEOF
17547/* confdefs.h. */
17548_ACEOF
17549cat confdefs.h >>conftest.$ac_ext
17550cat >>conftest.$ac_ext <<_ACEOF
17551/* end confdefs.h. */
17552$ac_includes_default
17553int
17554main ()
17555{
17556static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17557test_array [0] = 0
17558
17559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext
17564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17565 (eval $ac_compile) 2>conftest.er1
a848cd7e 17566 ac_status=$?
ac1cb8d3
VS
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
a848cd7e
SC
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
ddd14b14
RR
17572 { ac_try='test -z "$ac_c_werror_flag"
17573 || test ! -s conftest.err'
ac1cb8d3
VS
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_lo=$ac_mid; break
17586else
17587 echo "$as_me: failed program was:" >&5
17588sed 's/^/| /' conftest.$ac_ext >&5
17589
17590ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17591 if test $ac_mid -le $ac_hi; then
17592 ac_lo= ac_hi=
17593 break
17594 fi
17595 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17596fi
ac1cb8d3 17597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17598 done
17599else
17600 echo "$as_me: failed program was:" >&5
17601sed 's/^/| /' conftest.$ac_ext >&5
17602
17603ac_lo= ac_hi=
17604fi
ac1cb8d3 17605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17606fi
ac1cb8d3 17607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17608# Binary search between lo and hi bounds.
17609while test "x$ac_lo" != "x$ac_hi"; do
17610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17611 cat >conftest.$ac_ext <<_ACEOF
17612/* confdefs.h. */
17613_ACEOF
17614cat confdefs.h >>conftest.$ac_ext
17615cat >>conftest.$ac_ext <<_ACEOF
17616/* end confdefs.h. */
17617$ac_includes_default
17618int
17619main ()
17620{
17621static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17622test_array [0] = 0
17623
17624 ;
17625 return 0;
17626}
17627_ACEOF
17628rm -f conftest.$ac_objext
17629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17630 (eval $ac_compile) 2>conftest.er1
a848cd7e 17631 ac_status=$?
ac1cb8d3
VS
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
a848cd7e
SC
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
ddd14b14
RR
17637 { ac_try='test -z "$ac_c_werror_flag"
17638 || test ! -s conftest.err'
ac1cb8d3
VS
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_hi=$ac_mid
17651else
17652 echo "$as_me: failed program was:" >&5
17653sed 's/^/| /' conftest.$ac_ext >&5
17654
17655ac_lo=`expr '(' $ac_mid ')' + 1`
17656fi
ac1cb8d3 17657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17658done
17659case $ac_lo in
17660?*) ac_cv_sizeof_long=$ac_lo;;
17661'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17662See \`config.log' for more details." >&5
17663echo "$as_me: error: cannot compute sizeof (long), 77
17664See \`config.log' for more details." >&2;}
17665 { (exit 1); exit 1; }; } ;;
17666esac
17667else
17668 if test "$cross_compiling" = yes; then
ddd14b14
RR
17669 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17670See \`config.log' for more details." >&5
17671echo "$as_me: error: cannot run test program while cross compiling
17672See \`config.log' for more details." >&2;}
a848cd7e
SC
17673 { (exit 1); exit 1; }; }
17674else
17675 cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681$ac_includes_default
17682long longval () { return (long) (sizeof (long)); }
17683unsigned long ulongval () { return (long) (sizeof (long)); }
17684#include <stdio.h>
17685#include <stdlib.h>
17686int
17687main ()
17688{
17689
17690 FILE *f = fopen ("conftest.val", "w");
17691 if (! f)
17692 exit (1);
17693 if (((long) (sizeof (long))) < 0)
17694 {
17695 long i = longval ();
17696 if (i != ((long) (sizeof (long))))
17697 exit (1);
17698 fprintf (f, "%ld\n", i);
17699 }
17700 else
17701 {
17702 unsigned long i = ulongval ();
17703 if (i != ((long) (sizeof (long))))
17704 exit (1);
17705 fprintf (f, "%lu\n", i);
17706 }
17707 exit (ferror (f) || fclose (f) != 0);
17708
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest$ac_exeext
17714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ac_cv_sizeof_long=`cat conftest.val`
17725else
17726 echo "$as_me: program exited with status $ac_status" >&5
17727echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730( exit $ac_status )
17731{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17732See \`config.log' for more details." >&5
17733echo "$as_me: error: cannot compute sizeof (long), 77
17734See \`config.log' for more details." >&2;}
17735 { (exit 1); exit 1; }; }
17736fi
ac1cb8d3 17737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17738fi
17739fi
17740rm -f conftest.val
17741else
17742 ac_cv_sizeof_long=0
17743fi
17744fi
17745echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17746echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17747cat >>confdefs.h <<_ACEOF
17748#define SIZEOF_LONG $ac_cv_sizeof_long
17749_ACEOF
17750
17751
17752echo "$as_me:$LINENO: checking for size_t" >&5
17753echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17754if test "${ac_cv_type_size_t+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763$ac_includes_default
17764int
17765main ()
17766{
17767if ((size_t *) 0)
17768 return 0;
17769if (sizeof (size_t))
17770 return 0;
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775rm -f conftest.$ac_objext
17776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17777 (eval $ac_compile) 2>conftest.er1
a848cd7e 17778 ac_status=$?
ac1cb8d3
VS
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
a848cd7e
SC
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
ddd14b14
RR
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
ac1cb8d3
VS
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_type_size_t=yes
17798else
17799 echo "$as_me: failed program was:" >&5
17800sed 's/^/| /' conftest.$ac_ext >&5
17801
17802ac_cv_type_size_t=no
17803fi
ac1cb8d3 17804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17805fi
17806echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17807echo "${ECHO_T}$ac_cv_type_size_t" >&6
17808
17809echo "$as_me:$LINENO: checking size of size_t" >&5
17810echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17811if test "${ac_cv_sizeof_size_t+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 if test "$ac_cv_type_size_t" = yes; then
17815 # The cast to unsigned long works around a bug in the HP C Compiler
17816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17818 # This bug is HP SR number 8606223364.
17819 if test "$cross_compiling" = yes; then
17820 # Depending upon the size, compute the lo and hi bounds.
17821cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h. */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h. */
17827$ac_includes_default
17828int
17829main ()
17830{
17831static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17832test_array [0] = 0
17833
17834 ;
17835 return 0;
17836}
17837_ACEOF
17838rm -f conftest.$ac_objext
17839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17840 (eval $ac_compile) 2>conftest.er1
a848cd7e 17841 ac_status=$?
ac1cb8d3
VS
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
a848cd7e
SC
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
ddd14b14
RR
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
ac1cb8d3
VS
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_lo=0 ac_mid=0
17861 while :; do
17862 cat >conftest.$ac_ext <<_ACEOF
17863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868$ac_includes_default
17869int
17870main ()
17871{
17872static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17873test_array [0] = 0
17874
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17881 (eval $ac_compile) 2>conftest.er1
a848cd7e 17882 ac_status=$?
ac1cb8d3
VS
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
a848cd7e
SC
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
ddd14b14
RR
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
ac1cb8d3
VS
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_hi=$ac_mid; break
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17907 if test $ac_lo -le $ac_mid; then
17908 ac_lo= ac_hi=
17909 break
17910 fi
17911 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914 done
17915else
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919cat >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))) < 0)];
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); } &&
ddd14b14
RR
17945 { ac_try='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
ac1cb8d3
VS
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_hi=-1 ac_mid=-1
17959 while :; do
17960 cat >conftest.$ac_ext <<_ACEOF
17961/* confdefs.h. */
17962_ACEOF
17963cat confdefs.h >>conftest.$ac_ext
17964cat >>conftest.$ac_ext <<_ACEOF
17965/* end confdefs.h. */
17966$ac_includes_default
17967int
17968main ()
17969{
17970static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17971test_array [0] = 0
17972
17973 ;
17974 return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext
17978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17979 (eval $ac_compile) 2>conftest.er1
a848cd7e 17980 ac_status=$?
ac1cb8d3
VS
17981 grep -v '^ *+' conftest.er1 >conftest.err
17982 rm -f conftest.er1
17983 cat conftest.err >&5
a848cd7e
SC
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
ddd14b14
RR
17986 { ac_try='test -z "$ac_c_werror_flag"
17987 || test ! -s conftest.err'
ac1cb8d3
VS
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 ac_lo=$ac_mid; break
18000else
18001 echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18005 if test $ac_mid -le $ac_hi; then
18006 ac_lo= ac_hi=
18007 break
18008 fi
18009 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18010fi
ac1cb8d3 18011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012 done
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017ac_lo= ac_hi=
18018fi
ac1cb8d3 18019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18020fi
ac1cb8d3 18021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18022# Binary search between lo and hi bounds.
18023while test "x$ac_lo" != "x$ac_hi"; do
18024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18025 cat >conftest.$ac_ext <<_ACEOF
18026/* confdefs.h. */
18027_ACEOF
18028cat confdefs.h >>conftest.$ac_ext
18029cat >>conftest.$ac_ext <<_ACEOF
18030/* end confdefs.h. */
18031$ac_includes_default
18032int
18033main ()
18034{
18035static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18036test_array [0] = 0
18037
18038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest.$ac_objext
18043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18044 (eval $ac_compile) 2>conftest.er1
a848cd7e 18045 ac_status=$?
ac1cb8d3
VS
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
a848cd7e
SC
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
ddd14b14
RR
18051 { ac_try='test -z "$ac_c_werror_flag"
18052 || test ! -s conftest.err'
ac1cb8d3
VS
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_hi=$ac_mid
18065else
18066 echo "$as_me: failed program was:" >&5
18067sed 's/^/| /' conftest.$ac_ext >&5
18068
18069ac_lo=`expr '(' $ac_mid ')' + 1`
18070fi
ac1cb8d3 18071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18072done
18073case $ac_lo in
18074?*) ac_cv_sizeof_size_t=$ac_lo;;
18075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18076See \`config.log' for more details." >&5
18077echo "$as_me: error: cannot compute sizeof (size_t), 77
18078See \`config.log' for more details." >&2;}
18079 { (exit 1); exit 1; }; } ;;
18080esac
18081else
18082 if test "$cross_compiling" = yes; then
ddd14b14
RR
18083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18084See \`config.log' for more details." >&5
18085echo "$as_me: error: cannot run test program while cross compiling
18086See \`config.log' for more details." >&2;}
a848cd7e
SC
18087 { (exit 1); exit 1; }; }
18088else
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095$ac_includes_default
18096long longval () { return (long) (sizeof (size_t)); }
18097unsigned long ulongval () { return (long) (sizeof (size_t)); }
18098#include <stdio.h>
18099#include <stdlib.h>
18100int
18101main ()
18102{
18103
18104 FILE *f = fopen ("conftest.val", "w");
18105 if (! f)
18106 exit (1);
18107 if (((long) (sizeof (size_t))) < 0)
18108 {
18109 long i = longval ();
18110 if (i != ((long) (sizeof (size_t))))
18111 exit (1);
18112 fprintf (f, "%ld\n", i);
18113 }
18114 else
18115 {
18116 unsigned long i = ulongval ();
18117 if (i != ((long) (sizeof (size_t))))
18118 exit (1);
18119 fprintf (f, "%lu\n", i);
18120 }
18121 exit (ferror (f) || fclose (f) != 0);
18122
18123 ;
18124 return 0;
18125}
18126_ACEOF
18127rm -f conftest$ac_exeext
18128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_sizeof_size_t=`cat conftest.val`
18139else
18140 echo "$as_me: program exited with status $ac_status" >&5
18141echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144( exit $ac_status )
18145{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18146See \`config.log' for more details." >&5
18147echo "$as_me: error: cannot compute sizeof (size_t), 77
18148See \`config.log' for more details." >&2;}
18149 { (exit 1); exit 1; }; }
18150fi
ac1cb8d3 18151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18152fi
18153fi
18154rm -f conftest.val
18155else
18156 ac_cv_sizeof_size_t=0
18157fi
18158fi
18159echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18160echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18161cat >>confdefs.h <<_ACEOF
18162#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18163_ACEOF
18164
18165
18166
18167case "${host}" in
18168 arm-*-linux* )
18169 echo "$as_me:$LINENO: checking for long long" >&5
18170echo $ECHO_N "checking for long long... $ECHO_C" >&6
18171if test "${ac_cv_type_long_long+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174 cat >conftest.$ac_ext <<_ACEOF
18175/* confdefs.h. */
18176_ACEOF
18177cat confdefs.h >>conftest.$ac_ext
18178cat >>conftest.$ac_ext <<_ACEOF
18179/* end confdefs.h. */
18180$ac_includes_default
18181int
18182main ()
18183{
18184if ((long long *) 0)
18185 return 0;
18186if (sizeof (long long))
18187 return 0;
18188 ;
18189 return 0;
18190}
18191_ACEOF
18192rm -f conftest.$ac_objext
18193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18194 (eval $ac_compile) 2>conftest.er1
a848cd7e 18195 ac_status=$?
ac1cb8d3
VS
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
a848cd7e
SC
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
ddd14b14
RR
18201 { ac_try='test -z "$ac_c_werror_flag"
18202 || test ! -s conftest.err'
ac1cb8d3
VS
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 ac_cv_type_long_long=yes
18215else
18216 echo "$as_me: failed program was:" >&5
18217sed 's/^/| /' conftest.$ac_ext >&5
18218
18219ac_cv_type_long_long=no
18220fi
ac1cb8d3 18221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18222fi
18223echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18224echo "${ECHO_T}$ac_cv_type_long_long" >&6
18225
18226echo "$as_me:$LINENO: checking size of long long" >&5
18227echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18228if test "${ac_cv_sizeof_long_long+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230else
18231 if test "$ac_cv_type_long_long" = yes; then
18232 # The cast to unsigned long works around a bug in the HP C Compiler
18233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18235 # This bug is HP SR number 8606223364.
18236 if test "$cross_compiling" = yes; then
18237 # Depending upon the size, compute the lo and hi bounds.
18238cat >conftest.$ac_ext <<_ACEOF
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244$ac_includes_default
18245int
18246main ()
18247{
18248static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18249test_array [0] = 0
18250
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext
18256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18257 (eval $ac_compile) 2>conftest.er1
a848cd7e 18258 ac_status=$?
ac1cb8d3
VS
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
a848cd7e
SC
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
ddd14b14
RR
18264 { ac_try='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
ac1cb8d3
VS
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_lo=0 ac_mid=0
18278 while :; do
18279 cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h. */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h. */
18285$ac_includes_default
18286int
18287main ()
18288{
18289static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18290test_array [0] = 0
18291
18292 ;
18293 return 0;
18294}
18295_ACEOF
18296rm -f conftest.$ac_objext
18297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18298 (eval $ac_compile) 2>conftest.er1
a848cd7e 18299 ac_status=$?
ac1cb8d3
VS
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
a848cd7e
SC
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } &&
ddd14b14
RR
18305 { ac_try='test -z "$ac_c_werror_flag"
18306 || test ! -s conftest.err'
ac1cb8d3
VS
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_hi=$ac_mid; break
18319else
18320 echo "$as_me: failed program was:" >&5
18321sed 's/^/| /' conftest.$ac_ext >&5
18322
18323ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18324 if test $ac_lo -le $ac_mid; then
18325 ac_lo= ac_hi=
18326 break
18327 fi
18328 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18329fi
ac1cb8d3 18330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18331 done
18332else
18333 echo "$as_me: failed program was:" >&5
18334sed 's/^/| /' conftest.$ac_ext >&5
18335
18336cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342$ac_includes_default
18343int
18344main ()
18345{
18346static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18347test_array [0] = 0
18348
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext
18354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18355 (eval $ac_compile) 2>conftest.er1
a848cd7e 18356 ac_status=$?
ac1cb8d3
VS
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
a848cd7e
SC
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
ddd14b14
RR
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
ac1cb8d3
VS
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 ac_hi=-1 ac_mid=-1
18376 while :; do
18377 cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383$ac_includes_default
18384int
18385main ()
18386{
18387static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18388test_array [0] = 0
18389
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext
18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18396 (eval $ac_compile) 2>conftest.er1
a848cd7e 18397 ac_status=$?
ac1cb8d3
VS
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
a848cd7e
SC
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
ddd14b14
RR
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
ac1cb8d3
VS
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_lo=$ac_mid; break
18417else
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18422 if test $ac_mid -le $ac_hi; then
18423 ac_lo= ac_hi=
18424 break
18425 fi
18426 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18427fi
ac1cb8d3 18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18429 done
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434ac_lo= ac_hi=
18435fi
ac1cb8d3 18436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18437fi
ac1cb8d3 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18439# Binary search between lo and hi bounds.
18440while test "x$ac_lo" != "x$ac_hi"; do
18441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
18448$ac_includes_default
18449int
18450main ()
18451{
18452static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18453test_array [0] = 0
18454
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext
18460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18461 (eval $ac_compile) 2>conftest.er1
a848cd7e 18462 ac_status=$?
ac1cb8d3
VS
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
a848cd7e
SC
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
ddd14b14
RR
18468 { ac_try='test -z "$ac_c_werror_flag"
18469 || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_hi=$ac_mid
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_lo=`expr '(' $ac_mid ')' + 1`
18487fi
ac1cb8d3 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18489done
18490case $ac_lo in
18491?*) ac_cv_sizeof_long_long=$ac_lo;;
18492'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18493See \`config.log' for more details." >&5
18494echo "$as_me: error: cannot compute sizeof (long long), 77
18495See \`config.log' for more details." >&2;}
18496 { (exit 1); exit 1; }; } ;;
18497esac
18498else
18499 if test "$cross_compiling" = yes; then
ddd14b14
RR
18500 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18501See \`config.log' for more details." >&5
18502echo "$as_me: error: cannot run test program while cross compiling
18503See \`config.log' for more details." >&2;}
a848cd7e
SC
18504 { (exit 1); exit 1; }; }
18505else
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512$ac_includes_default
18513long longval () { return (long) (sizeof (long long)); }
18514unsigned long ulongval () { return (long) (sizeof (long long)); }
18515#include <stdio.h>
18516#include <stdlib.h>
18517int
18518main ()
18519{
18520
18521 FILE *f = fopen ("conftest.val", "w");
18522 if (! f)
18523 exit (1);
18524 if (((long) (sizeof (long long))) < 0)
18525 {
18526 long i = longval ();
18527 if (i != ((long) (sizeof (long long))))
18528 exit (1);
18529 fprintf (f, "%ld\n", i);
18530 }
18531 else
18532 {
18533 unsigned long i = ulongval ();
18534 if (i != ((long) (sizeof (long long))))
18535 exit (1);
18536 fprintf (f, "%lu\n", i);
18537 }
18538 exit (ferror (f) || fclose (f) != 0);
18539
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest$ac_exeext
18545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18546 (eval $ac_link) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_sizeof_long_long=`cat conftest.val`
18556else
18557 echo "$as_me: program exited with status $ac_status" >&5
18558echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561( exit $ac_status )
18562{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18563See \`config.log' for more details." >&5
18564echo "$as_me: error: cannot compute sizeof (long long), 77
18565See \`config.log' for more details." >&2;}
18566 { (exit 1); exit 1; }; }
18567fi
ac1cb8d3 18568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18569fi
18570fi
18571rm -f conftest.val
18572else
18573 ac_cv_sizeof_long_long=0
18574fi
18575fi
18576echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18577echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18578cat >>confdefs.h <<_ACEOF
18579#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18580_ACEOF
18581
18582
18583 ;;
18584 *-hp-hpux* )
18585 echo "$as_me:$LINENO: checking for long long" >&5
18586echo $ECHO_N "checking for long long... $ECHO_C" >&6
18587if test "${ac_cv_type_long_long+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596$ac_includes_default
18597int
18598main ()
18599{
18600if ((long long *) 0)
18601 return 0;
18602if (sizeof (long long))
18603 return 0;
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext
18609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18610 (eval $ac_compile) 2>conftest.er1
a848cd7e 18611 ac_status=$?
ac1cb8d3
VS
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
a848cd7e
SC
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
ddd14b14
RR
18617 { ac_try='test -z "$ac_c_werror_flag"
18618 || test ! -s conftest.err'
ac1cb8d3
VS
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_type_long_long=yes
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635ac_cv_type_long_long=no
18636fi
ac1cb8d3 18637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18638fi
18639echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18640echo "${ECHO_T}$ac_cv_type_long_long" >&6
18641
18642echo "$as_me:$LINENO: checking size of long long" >&5
18643echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18644if test "${ac_cv_sizeof_long_long+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 if test "$ac_cv_type_long_long" = yes; then
18648 # The cast to unsigned long works around a bug in the HP C Compiler
18649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18651 # This bug is HP SR number 8606223364.
18652 if test "$cross_compiling" = yes; then
18653 # Depending upon the size, compute the lo and hi bounds.
18654cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660$ac_includes_default
18661int
18662main ()
18663{
18664static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18665test_array [0] = 0
18666
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18673 (eval $ac_compile) 2>conftest.er1
a848cd7e 18674 ac_status=$?
ac1cb8d3
VS
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
a848cd7e
SC
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
ddd14b14
RR
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
ac1cb8d3
VS
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_lo=0 ac_mid=0
18694 while :; do
18695 cat >conftest.$ac_ext <<_ACEOF
18696/* confdefs.h. */
18697_ACEOF
18698cat confdefs.h >>conftest.$ac_ext
18699cat >>conftest.$ac_ext <<_ACEOF
18700/* end confdefs.h. */
18701$ac_includes_default
18702int
18703main ()
18704{
18705static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18706test_array [0] = 0
18707
18708 ;
18709 return 0;
18710}
18711_ACEOF
18712rm -f conftest.$ac_objext
18713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18714 (eval $ac_compile) 2>conftest.er1
a848cd7e 18715 ac_status=$?
ac1cb8d3
VS
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
a848cd7e
SC
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
ddd14b14
RR
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || 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=$ac_mid; break
18735else
18736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18740 if test $ac_lo -le $ac_mid; then
18741 ac_lo= ac_hi=
18742 break
18743 fi
18744 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18745fi
ac1cb8d3 18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18747 done
18748else
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758$ac_includes_default
18759int
18760main ()
18761{
18762static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18763test_array [0] = 0
18764
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18771 (eval $ac_compile) 2>conftest.er1
a848cd7e 18772 ac_status=$?
ac1cb8d3
VS
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
a848cd7e
SC
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
ddd14b14
RR
18778 { ac_try='test -z "$ac_c_werror_flag"
18779 || test ! -s conftest.err'
ac1cb8d3
VS
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_hi=-1 ac_mid=-1
18792 while :; do
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799$ac_includes_default
18800int
18801main ()
18802{
18803static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18804test_array [0] = 0
18805
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext
18811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18812 (eval $ac_compile) 2>conftest.er1
a848cd7e 18813 ac_status=$?
ac1cb8d3
VS
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
a848cd7e
SC
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
ddd14b14
RR
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
ac1cb8d3
VS
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_lo=$ac_mid; break
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18838 if test $ac_mid -le $ac_hi; then
18839 ac_lo= ac_hi=
18840 break
18841 fi
18842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18843fi
ac1cb8d3 18844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18845 done
18846else
18847 echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850ac_lo= ac_hi=
18851fi
ac1cb8d3 18852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18853fi
ac1cb8d3 18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18855# Binary search between lo and hi bounds.
18856while test "x$ac_lo" != "x$ac_hi"; do
18857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864$ac_includes_default
18865int
18866main ()
18867{
18868static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18869test_array [0] = 0
18870
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18877 (eval $ac_compile) 2>conftest.er1
a848cd7e 18878 ac_status=$?
ac1cb8d3
VS
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
a848cd7e
SC
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
ddd14b14
RR
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
ac1cb8d3
VS
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_hi=$ac_mid
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902ac_lo=`expr '(' $ac_mid ')' + 1`
18903fi
ac1cb8d3 18904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18905done
18906case $ac_lo in
18907?*) ac_cv_sizeof_long_long=$ac_lo;;
18908'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18909See \`config.log' for more details." >&5
18910echo "$as_me: error: cannot compute sizeof (long long), 77
18911See \`config.log' for more details." >&2;}
18912 { (exit 1); exit 1; }; } ;;
18913esac
18914else
18915 if test "$cross_compiling" = yes; then
ddd14b14
RR
18916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18917See \`config.log' for more details." >&5
18918echo "$as_me: error: cannot run test program while cross compiling
18919See \`config.log' for more details." >&2;}
a848cd7e
SC
18920 { (exit 1); exit 1; }; }
18921else
18922 cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
18928$ac_includes_default
18929long longval () { return (long) (sizeof (long long)); }
18930unsigned long ulongval () { return (long) (sizeof (long long)); }
18931#include <stdio.h>
18932#include <stdlib.h>
18933int
18934main ()
18935{
18936
18937 FILE *f = fopen ("conftest.val", "w");
18938 if (! f)
18939 exit (1);
18940 if (((long) (sizeof (long long))) < 0)
18941 {
18942 long i = longval ();
18943 if (i != ((long) (sizeof (long long))))
18944 exit (1);
18945 fprintf (f, "%ld\n", i);
18946 }
18947 else
18948 {
18949 unsigned long i = ulongval ();
18950 if (i != ((long) (sizeof (long long))))
18951 exit (1);
18952 fprintf (f, "%lu\n", i);
18953 }
18954 exit (ferror (f) || fclose (f) != 0);
18955
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest$ac_exeext
18961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_sizeof_long_long=`cat conftest.val`
18972else
18973 echo "$as_me: program exited with status $ac_status" >&5
18974echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977( exit $ac_status )
18978{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18979See \`config.log' for more details." >&5
18980echo "$as_me: error: cannot compute sizeof (long long), 77
18981See \`config.log' for more details." >&2;}
18982 { (exit 1); exit 1; }; }
18983fi
ac1cb8d3 18984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18985fi
18986fi
18987rm -f conftest.val
18988else
18989 ac_cv_sizeof_long_long=0
18990fi
18991fi
18992echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18993echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18994cat >>confdefs.h <<_ACEOF
18995#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18996_ACEOF
18997
18998
18999 if test "$ac_cv_sizeof_long_long" != "0"; then
19000 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19001 fi
19002 ;;
19003 * )
19004 echo "$as_me:$LINENO: checking for long long" >&5
19005echo $ECHO_N "checking for long long... $ECHO_C" >&6
19006if test "${ac_cv_type_long_long+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
19015$ac_includes_default
19016int
19017main ()
19018{
19019if ((long long *) 0)
19020 return 0;
19021if (sizeof (long long))
19022 return 0;
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext
19028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19029 (eval $ac_compile) 2>conftest.er1
a848cd7e 19030 ac_status=$?
ac1cb8d3
VS
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
a848cd7e
SC
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
ddd14b14
RR
19036 { ac_try='test -z "$ac_c_werror_flag"
19037 || 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_cv_type_long_long=yes
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054ac_cv_type_long_long=no
19055fi
ac1cb8d3 19056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19057fi
19058echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19059echo "${ECHO_T}$ac_cv_type_long_long" >&6
19060
19061echo "$as_me:$LINENO: checking size of long long" >&5
19062echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19063if test "${ac_cv_sizeof_long_long+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19065else
19066 if test "$ac_cv_type_long_long" = yes; then
19067 # The cast to unsigned long works around a bug in the HP C Compiler
19068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19070 # This bug is HP SR number 8606223364.
19071 if test "$cross_compiling" = yes; then
19072 # Depending upon the size, compute the lo and hi bounds.
19073cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079$ac_includes_default
19080int
19081main ()
19082{
19083static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19084test_array [0] = 0
19085
19086 ;
19087 return 0;
19088}
19089_ACEOF
19090rm -f conftest.$ac_objext
19091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19092 (eval $ac_compile) 2>conftest.er1
a848cd7e 19093 ac_status=$?
ac1cb8d3
VS
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
a848cd7e
SC
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
ddd14b14
RR
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
ac1cb8d3
VS
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_lo=0 ac_mid=0
19113 while :; do
19114 cat >conftest.$ac_ext <<_ACEOF
19115/* confdefs.h. */
19116_ACEOF
19117cat confdefs.h >>conftest.$ac_ext
19118cat >>conftest.$ac_ext <<_ACEOF
19119/* end confdefs.h. */
19120$ac_includes_default
19121int
19122main ()
19123{
19124static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19125test_array [0] = 0
19126
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext
19132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19133 (eval $ac_compile) 2>conftest.er1
a848cd7e 19134 ac_status=$?
ac1cb8d3
VS
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
a848cd7e
SC
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
ddd14b14
RR
19140 { ac_try='test -z "$ac_c_werror_flag"
19141 || test ! -s conftest.err'
ac1cb8d3
VS
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_hi=$ac_mid; break
19154else
19155 echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19159 if test $ac_lo -le $ac_mid; then
19160 ac_lo= ac_hi=
19161 break
19162 fi
19163 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19164fi
ac1cb8d3 19165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19166 done
19167else
19168 echo "$as_me: failed program was:" >&5
19169sed 's/^/| /' conftest.$ac_ext >&5
19170
19171cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177$ac_includes_default
19178int
19179main ()
19180{
19181static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19182test_array [0] = 0
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext
19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19190 (eval $ac_compile) 2>conftest.er1
a848cd7e 19191 ac_status=$?
ac1cb8d3
VS
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
a848cd7e
SC
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
ddd14b14
RR
19197 { ac_try='test -z "$ac_c_werror_flag"
19198 || test ! -s conftest.err'
ac1cb8d3
VS
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_hi=-1 ac_mid=-1
19211 while :; do
19212 cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218$ac_includes_default
19219int
19220main ()
19221{
19222static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19223test_array [0] = 0
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19231 (eval $ac_compile) 2>conftest.er1
a848cd7e 19232 ac_status=$?
ac1cb8d3
VS
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
a848cd7e
SC
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
ddd14b14
RR
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
ac1cb8d3
VS
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_lo=$ac_mid; break
19252else
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19257 if test $ac_mid -le $ac_hi; then
19258 ac_lo= ac_hi=
19259 break
19260 fi
19261 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19262fi
ac1cb8d3 19263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19264 done
19265else
19266 echo "$as_me: failed program was:" >&5
19267sed 's/^/| /' conftest.$ac_ext >&5
19268
19269ac_lo= ac_hi=
19270fi
ac1cb8d3 19271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19272fi
ac1cb8d3 19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19274# Binary search between lo and hi bounds.
19275while test "x$ac_lo" != "x$ac_hi"; do
19276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19277 cat >conftest.$ac_ext <<_ACEOF
19278/* confdefs.h. */
19279_ACEOF
19280cat confdefs.h >>conftest.$ac_ext
19281cat >>conftest.$ac_ext <<_ACEOF
19282/* end confdefs.h. */
19283$ac_includes_default
19284int
19285main ()
19286{
19287static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19288test_array [0] = 0
19289
19290 ;
19291 return 0;
19292}
19293_ACEOF
19294rm -f conftest.$ac_objext
19295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19296 (eval $ac_compile) 2>conftest.er1
a848cd7e 19297 ac_status=$?
ac1cb8d3
VS
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
a848cd7e
SC
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
ddd14b14
RR
19303 { ac_try='test -z "$ac_c_werror_flag"
19304 || test ! -s conftest.err'
ac1cb8d3
VS
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 ac_hi=$ac_mid
19317else
19318 echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321ac_lo=`expr '(' $ac_mid ')' + 1`
19322fi
ac1cb8d3 19323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19324done
19325case $ac_lo in
19326?*) ac_cv_sizeof_long_long=$ac_lo;;
19327'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19328See \`config.log' for more details." >&5
19329echo "$as_me: error: cannot compute sizeof (long long), 77
19330See \`config.log' for more details." >&2;}
19331 { (exit 1); exit 1; }; } ;;
19332esac
19333else
19334 if test "$cross_compiling" = yes; then
ddd14b14
RR
19335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19336See \`config.log' for more details." >&5
19337echo "$as_me: error: cannot run test program while cross compiling
19338See \`config.log' for more details." >&2;}
a848cd7e
SC
19339 { (exit 1); exit 1; }; }
19340else
19341 cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347$ac_includes_default
19348long longval () { return (long) (sizeof (long long)); }
19349unsigned long ulongval () { return (long) (sizeof (long long)); }
19350#include <stdio.h>
19351#include <stdlib.h>
19352int
19353main ()
19354{
19355
19356 FILE *f = fopen ("conftest.val", "w");
19357 if (! f)
19358 exit (1);
19359 if (((long) (sizeof (long long))) < 0)
19360 {
19361 long i = longval ();
19362 if (i != ((long) (sizeof (long long))))
19363 exit (1);
19364 fprintf (f, "%ld\n", i);
19365 }
19366 else
19367 {
19368 unsigned long i = ulongval ();
19369 if (i != ((long) (sizeof (long long))))
19370 exit (1);
19371 fprintf (f, "%lu\n", i);
19372 }
19373 exit (ferror (f) || fclose (f) != 0);
19374
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest$ac_exeext
19380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381 (eval $ac_link) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_sizeof_long_long=`cat conftest.val`
19391else
19392 echo "$as_me: program exited with status $ac_status" >&5
19393echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396( exit $ac_status )
19397{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19398See \`config.log' for more details." >&5
19399echo "$as_me: error: cannot compute sizeof (long long), 77
19400See \`config.log' for more details." >&2;}
19401 { (exit 1); exit 1; }; }
19402fi
ac1cb8d3 19403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19404fi
19405fi
19406rm -f conftest.val
19407else
19408 ac_cv_sizeof_long_long=0
19409fi
19410fi
19411echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19412echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19413cat >>confdefs.h <<_ACEOF
19414#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19415_ACEOF
19416
19417
19418esac
19419
238ecede
MW
19420echo "$as_me:$LINENO: checking for wchar_t" >&5
19421echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19422if test "${ac_cv_type_wchar_t+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431
83d8eb47
MW
19432 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19433 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19434 # error "fake wchar_t"
19435 #endif
19436 #ifdef HAVE_WCHAR_H
19437 # ifdef __CYGWIN__
19438 # include <stddef.h>
19439 # endif
19440 # include <wchar.h>
19441 #endif
19442 #ifdef HAVE_STDLIB_H
19443 # include <stdlib.h>
19444 #endif
19445 #include <stdio.h>
19446
19447
19448
19449int
19450main ()
19451{
19452if ((wchar_t *) 0)
19453 return 0;
19454if (sizeof (wchar_t))
19455 return 0;
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
ddd14b14
RR
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
238ecede
MW
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_type_wchar_t=yes
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_cv_type_wchar_t=no
19488fi
19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490fi
19491echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19492echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19493
a848cd7e
SC
19494echo "$as_me:$LINENO: checking size of wchar_t" >&5
19495echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19496if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
238ecede
MW
19499 if test "$ac_cv_type_wchar_t" = yes; then
19500 # The cast to unsigned long works around a bug in the HP C Compiler
19501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19503 # This bug is HP SR number 8606223364.
19504 if test "$cross_compiling" = yes; then
19505 # Depending upon the size, compute the lo and hi bounds.
19506cat >conftest.$ac_ext <<_ACEOF
19507/* confdefs.h. */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
19511/* end confdefs.h. */
19512
83d8eb47
MW
19513 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19514 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19515 # error "fake wchar_t"
19516 #endif
19517 #ifdef HAVE_WCHAR_H
19518 # ifdef __CYGWIN__
19519 # include <stddef.h>
19520 # endif
19521 # include <wchar.h>
19522 #endif
19523 #ifdef HAVE_STDLIB_H
19524 # include <stdlib.h>
19525 #endif
19526 #include <stdio.h>
19527
19528
19529
19530int
19531main ()
19532{
19533static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19534test_array [0] = 0
19535
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
ddd14b14
RR
19549 { ac_try='test -z "$ac_c_werror_flag"
19550 || test ! -s conftest.err'
238ecede
MW
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_lo=0 ac_mid=0
19563 while :; do
19564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570
83d8eb47
MW
19571 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19572 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19573 # error "fake wchar_t"
19574 #endif
19575 #ifdef HAVE_WCHAR_H
19576 # ifdef __CYGWIN__
19577 # include <stddef.h>
19578 # endif
19579 # include <wchar.h>
19580 #endif
19581 #ifdef HAVE_STDLIB_H
19582 # include <stdlib.h>
19583 #endif
19584 #include <stdio.h>
19585
19586
19587
19588int
19589main ()
19590{
19591static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19592test_array [0] = 0
19593
19594 ;
19595 return 0;
19596}
19597_ACEOF
19598rm -f conftest.$ac_objext
19599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
ddd14b14
RR
19607 { ac_try='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
238ecede
MW
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_hi=$ac_mid; break
19621else
19622 echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
19625ac_lo=`expr $ac_mid + 1`
19626 if test $ac_lo -le $ac_mid; then
19627 ac_lo= ac_hi=
19628 break
19629 fi
19630 ac_mid=`expr 2 '*' $ac_mid + 1`
19631fi
19632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19633 done
19634else
19635 echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638cat >conftest.$ac_ext <<_ACEOF
19639/* confdefs.h. */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h. */
19644
83d8eb47
MW
19645 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19646 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19647 # error "fake wchar_t"
19648 #endif
19649 #ifdef HAVE_WCHAR_H
19650 # ifdef __CYGWIN__
19651 # include <stddef.h>
19652 # endif
19653 # include <wchar.h>
19654 #endif
19655 #ifdef HAVE_STDLIB_H
19656 # include <stdlib.h>
19657 #endif
19658 #include <stdio.h>
19659
19660
19661
19662int
19663main ()
19664{
19665static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19666test_array [0] = 0
19667
19668 ;
19669 return 0;
19670}
19671_ACEOF
19672rm -f conftest.$ac_objext
19673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19674 (eval $ac_compile) 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } &&
ddd14b14
RR
19681 { ac_try='test -z "$ac_c_werror_flag"
19682 || test ! -s conftest.err'
238ecede
MW
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_hi=-1 ac_mid=-1
19695 while :; do
19696 cat >conftest.$ac_ext <<_ACEOF
19697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
19702
83d8eb47
MW
19703 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19704 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19705 # error "fake wchar_t"
19706 #endif
19707 #ifdef HAVE_WCHAR_H
19708 # ifdef __CYGWIN__
19709 # include <stddef.h>
19710 # endif
19711 # include <wchar.h>
19712 #endif
19713 #ifdef HAVE_STDLIB_H
19714 # include <stdlib.h>
19715 #endif
19716 #include <stdio.h>
19717
19718
19719
19720int
19721main ()
19722{
19723static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19724test_array [0] = 0
19725
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
19731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
ddd14b14
RR
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
238ecede
MW
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_lo=$ac_mid; break
19753else
19754 echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_hi=`expr '(' $ac_mid ')' - 1`
19758 if test $ac_mid -le $ac_hi; then
19759 ac_lo= ac_hi=
19760 break
19761 fi
19762 ac_mid=`expr 2 '*' $ac_mid`
19763fi
19764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765 done
19766else
19767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770ac_lo= ac_hi=
19771fi
19772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773fi
19774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775# Binary search between lo and hi bounds.
19776while test "x$ac_lo" != "x$ac_hi"; do
19777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19778 cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
19784
83d8eb47
MW
19785 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19786 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19787 # error "fake wchar_t"
19788 #endif
19789 #ifdef HAVE_WCHAR_H
19790 # ifdef __CYGWIN__
19791 # include <stddef.h>
19792 # endif
19793 # include <wchar.h>
19794 #endif
19795 #ifdef HAVE_STDLIB_H
19796 # include <stdlib.h>
19797 #endif
19798 #include <stdio.h>
a848cd7e 19799
a848cd7e 19800
a848cd7e 19801
238ecede
MW
19802int
19803main ()
19804{
19805static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19806test_array [0] = 0
a848cd7e 19807
238ecede
MW
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814 (eval $ac_compile) 2>conftest.er1
19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
ddd14b14
RR
19821 { ac_try='test -z "$ac_c_werror_flag"
19822 || test ! -s conftest.err'
238ecede
MW
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; } &&
19828 { ac_try='test -s conftest.$ac_objext'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 ac_hi=$ac_mid
19835else
19836 echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839ac_lo=`expr '(' $ac_mid ')' + 1`
19840fi
19841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842done
19843case $ac_lo in
19844?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19845'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19846See \`config.log' for more details." >&5
19847echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19848See \`config.log' for more details." >&2;}
19849 { (exit 1); exit 1; }; } ;;
19850esac
19851else
19852 if test "$cross_compiling" = yes; then
ddd14b14
RR
19853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19854See \`config.log' for more details." >&5
19855echo "$as_me: error: cannot run test program while cross compiling
19856See \`config.log' for more details." >&2;}
238ecede 19857 { (exit 1); exit 1; }; }
a848cd7e
SC
19858else
19859 cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865
83d8eb47
MW
19866 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19867 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19868 # error "fake wchar_t"
19869 #endif
19870 #ifdef HAVE_WCHAR_H
19871 # ifdef __CYGWIN__
19872 # include <stddef.h>
19873 # endif
19874 # include <wchar.h>
19875 #endif
19876 #ifdef HAVE_STDLIB_H
19877 # include <stdlib.h>
19878 #endif
19879 #include <stdio.h>
19880
19881
19882
19883long longval () { return (long) (sizeof (wchar_t)); }
19884unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19885#include <stdio.h>
19886#include <stdlib.h>
19887int
19888main ()
19889{
a848cd7e 19890
238ecede
MW
19891 FILE *f = fopen ("conftest.val", "w");
19892 if (! f)
19893 exit (1);
19894 if (((long) (sizeof (wchar_t))) < 0)
19895 {
19896 long i = longval ();
19897 if (i != ((long) (sizeof (wchar_t))))
19898 exit (1);
19899 fprintf (f, "%ld\n", i);
19900 }
19901 else
19902 {
19903 unsigned long i = ulongval ();
19904 if (i != ((long) (sizeof (wchar_t))))
19905 exit (1);
19906 fprintf (f, "%lu\n", i);
19907 }
19908 exit (ferror (f) || fclose (f) != 0);
19909
19910 ;
19911 return 0;
19912}
a848cd7e
SC
19913_ACEOF
19914rm -f conftest$ac_exeext
19915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19916 (eval $ac_link) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
238ecede 19925 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19926else
19927 echo "$as_me: program exited with status $ac_status" >&5
19928echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931( exit $ac_status )
238ecede
MW
19932{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19933See \`config.log' for more details." >&5
19934echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19935See \`config.log' for more details." >&2;}
19936 { (exit 1); exit 1; }; }
a848cd7e 19937fi
ac1cb8d3 19938rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19939fi
a848cd7e 19940fi
238ecede
MW
19941rm -f conftest.val
19942else
19943 ac_cv_sizeof_wchar_t=0
19944fi
19945fi
19946echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19947echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19948cat >>confdefs.h <<_ACEOF
238ecede 19949#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19950_ACEOF
19951
19952
47a7e797
MW
19953if test "$ac_cv_sizeof_wchar_t" != "0"; then
19954 wxUSE_WCHAR_T=yes
19955else
19956 wxUSE_WCHAR_T=no
19957fi
238ecede 19958
ba3d13e1
VZ
19959echo "$as_me:$LINENO: checking for va_copy" >&5
19960echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19961if test "${wx_cv_func_va_copy+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963else
19964
19965 cat >conftest.$ac_ext <<_ACEOF
19966
19967 #include <stdarg.h>
19968 void foo(char *f, ...)
19969 {
19970 va_list ap1, ap2;
19971 va_start(ap1, f);
19972 va_copy(ap2, ap1);
19973 va_end(ap2);
19974 va_end(ap1);
19975 }
5886b072
VZ
19976 int main()
19977 {
b902e639
VZ
19978 foo("hi", 17);
19979 return 0;
5886b072 19980 }
ba3d13e1
VZ
19981_ACEOF
19982rm -f conftest.$ac_objext conftest$ac_exeext
19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
ddd14b14
RR
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
ba3d13e1
VZ
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest$ac_exeext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 wx_cv_func_va_copy=yes
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009wx_cv_func_va_copy=no
20010
20011fi
20012rm -f conftest.err conftest.$ac_objext \
20013 conftest$ac_exeext conftest.$ac_ext
20014
20015
20016fi
20017echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20018echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20019
20020if test $wx_cv_func_va_copy = "yes"; then
20021 cat >>confdefs.h <<\_ACEOF
20022#define HAVE_VA_COPY 1
20023_ACEOF
20024
20025else
20026 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20027echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20028if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030else
20031
20032 if test "$cross_compiling" = yes; then
20033 wx_cv_type_va_list_lvalue=yes
20034
20035else
20036 cat >conftest.$ac_ext <<_ACEOF
20037
20038 #include <stdarg.h>
20039 int foo(char *f, ...)
20040 {
20041 va_list ap1, ap2;
20042 va_start(ap1, f);
20043 ap2 = ap1;
20044 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20045 return 1;
20046 va_end(ap2);
20047 va_end(ap1);
20048 return 0;
20049 }
20050 int main()
20051 {
20052 return foo("hi", 17);
20053 }
20054_ACEOF
20055rm -f conftest$ac_exeext
20056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 wx_cv_type_va_list_lvalue=yes
20067else
20068 echo "$as_me: program exited with status $ac_status" >&5
20069echo "$as_me: failed program was:" >&5
20070sed 's/^/| /' conftest.$ac_ext >&5
20071
20072( exit $ac_status )
20073wx_cv_type_va_list_lvalue=no
20074fi
20075rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20076fi
20077
20078
20079fi
20080echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20081echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20082
20083 if test $wx_cv_type_va_list_lvalue != "yes"; then
20084 cat >>confdefs.h <<\_ACEOF
20085#define VA_LIST_IS_ARRAY 1
20086_ACEOF
20087
20088 fi
20089fi
20090
a848cd7e
SC
20091# Check whether --enable-largefile or --disable-largefile was given.
20092if test "${enable_largefile+set}" = set; then
20093 enableval="$enable_largefile"
20094
20095fi;
20096if test "$enable_largefile" != no; then
20097 wx_largefile=no
20098
20099 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20100echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20101if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104
20105 cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
20111#define _FILE_OFFSET_BITS 64
20112 #include <sys/types.h>
20113int
20114main ()
20115{
20116typedef struct {
20117 unsigned int field: sizeof(off_t) == 8;
20118} wxlf;
20119
20120 ;
20121 return 0;
20122}
20123_ACEOF
20124rm -f conftest.$ac_objext
20125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20126 (eval $ac_compile) 2>conftest.er1
a848cd7e 20127 ac_status=$?
ac1cb8d3
VS
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
a848cd7e
SC
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
ddd14b14
RR
20133 { ac_try='test -z "$ac_c_werror_flag"
20134 || test ! -s conftest.err'
ac1cb8d3
VS
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; } &&
20140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 ac_cv_sys_file_offset_bits=64
20147else
20148 echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151ac_cv_sys_file_offset_bits=no
20152fi
ac1cb8d3 20153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20154
20155
20156fi
20157echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20158echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20159
20160 if test "$ac_cv_sys_file_offset_bits" != no; then
20161 wx_largefile=yes
20162 cat >>confdefs.h <<_ACEOF
20163#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20164_ACEOF
20165
20166 fi
20167
20168 if test "x$wx_largefile" != "xyes"; then
20169
20170 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20171echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20172if test "${ac_cv_sys_large_files+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
20175
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182#define _LARGE_FILES 1
20183 #include <sys/types.h>
20184int
20185main ()
20186{
20187typedef struct {
20188 unsigned int field: sizeof(off_t) == 8;
20189} wxlf;
20190
20191 ;
20192 return 0;
20193}
20194_ACEOF
20195rm -f conftest.$ac_objext
20196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20197 (eval $ac_compile) 2>conftest.er1
a848cd7e 20198 ac_status=$?
ac1cb8d3
VS
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
a848cd7e
SC
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
ddd14b14
RR
20204 { ac_try='test -z "$ac_c_werror_flag"
20205 || test ! -s conftest.err'
ac1cb8d3
VS
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_sys_large_files=1
20218else
20219 echo "$as_me: failed program was:" >&5
20220sed 's/^/| /' conftest.$ac_ext >&5
20221
20222ac_cv_sys_large_files=no
20223fi
ac1cb8d3 20224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20225
20226
20227fi
20228echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20229echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20230
20231 if test "$ac_cv_sys_large_files" != no; then
20232 wx_largefile=yes
20233 cat >>confdefs.h <<_ACEOF
20234#define _LARGE_FILES $ac_cv_sys_large_files
20235_ACEOF
20236
20237 fi
20238
20239 fi
20240
20241 echo "$as_me:$LINENO: checking if large file support is available" >&5
20242echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20243 if test "x$wx_largefile" = "xyes"; then
20244 cat >>confdefs.h <<\_ACEOF
20245#define HAVE_LARGEFILE_SUPPORT 1
20246_ACEOF
20247
20248 fi
20249 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20250echo "${ECHO_T}$wx_largefile" >&6
20251fi
20252
5b674b9d
DE
20253
20254if test "x$wx_largefile" = "xyes"; then
20255 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20256 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
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); } &&
ddd14b14
RR
20291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
5294a27e
VZ
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 break
20305else
20306 echo "$as_me: failed program was:" >&5
20307sed 's/^/| /' conftest.$ac_ext >&5
20308
20309fi
20310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20311 cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317#define _LARGEFILE_SOURCE 1
20318#include <stdio.h>
20319int
20320main ()
20321{
20322return !fseeko;
20323 ;
20324 return 0;
20325}
20326_ACEOF
20327rm -f conftest.$ac_objext
20328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
ddd14b14
RR
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
5294a27e
VZ
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_cv_sys_largefile_source=1; break
20350else
20351 echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354fi
20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356 break
20357done
20358fi
20359echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20360echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20361if test "$ac_cv_sys_largefile_source" != no; then
20362
20363cat >>confdefs.h <<_ACEOF
20364#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20365_ACEOF
20366
20367fi
20368rm -f conftest*
20369
20370# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20371# in glibc 2.1.3, but that breaks too many other things.
20372# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20373echo "$as_me:$LINENO: checking for fseeko" >&5
20374echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20375if test "${ac_cv_func_fseeko+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377else
20378 cat >conftest.$ac_ext <<_ACEOF
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
20384#include <stdio.h>
20385int
20386main ()
20387{
20388return fseeko && fseeko (stdin, 0, 0);
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest.$ac_objext conftest$ac_exeext
20394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20395 (eval $ac_link) 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
ddd14b14
RR
20402 { ac_try='test -z "$ac_c_werror_flag"
20403 || test ! -s conftest.err'
5294a27e
VZ
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest$ac_exeext'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_cv_func_fseeko=yes
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420ac_cv_func_fseeko=no
20421fi
20422rm -f conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424fi
20425echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20426echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20427if test $ac_cv_func_fseeko = yes; then
20428
20429cat >>confdefs.h <<\_ACEOF
20430#define HAVE_FSEEKO 1
20431_ACEOF
20432
20433fi
20434
5b674b9d
DE
20435 if test "$ac_cv_sys_largefile_source" != no; then
20436 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20437 fi
20438 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20439fi
20440
20441echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20442echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20443if test "${ac_cv_c_bigendian+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446 ac_cv_c_bigendian=unknown
20447# See if sys/param.h defines the BYTE_ORDER macro.
20448cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454#include <sys/types.h>
20455#include <sys/param.h>
20456int
20457main ()
20458{
20459
20460#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20461 bogus endian macros
20462#endif
20463 ;
20464 return 0;
20465}
20466_ACEOF
20467rm -f conftest.$ac_objext
20468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20469 (eval $ac_compile) 2>conftest.er1
a848cd7e 20470 ac_status=$?
ac1cb8d3
VS
20471 grep -v '^ *+' conftest.er1 >conftest.err
20472 rm -f conftest.er1
20473 cat conftest.err >&5
a848cd7e
SC
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
ddd14b14
RR
20476 { ac_try='test -z "$ac_c_werror_flag"
20477 || test ! -s conftest.err'
ac1cb8d3
VS
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 # It does; now see whether it defined to BIG_ENDIAN or not.
20490cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496#include <sys/types.h>
20497#include <sys/param.h>
20498int
20499main ()
20500{
20501
20502#if BYTE_ORDER != BIG_ENDIAN
20503 not big endian
20504#endif
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext
20510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20511 (eval $ac_compile) 2>conftest.er1
a848cd7e 20512 ac_status=$?
ac1cb8d3
VS
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
a848cd7e
SC
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
ddd14b14
RR
20518 { ac_try='test -z "$ac_c_werror_flag"
20519 || test ! -s conftest.err'
ac1cb8d3
VS
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 ac_cv_c_bigendian=yes
20532else
20533 echo "$as_me: failed program was:" >&5
20534sed 's/^/| /' conftest.$ac_ext >&5
20535
20536ac_cv_c_bigendian=no
20537fi
ac1cb8d3 20538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20539else
20540 echo "$as_me: failed program was:" >&5
20541sed 's/^/| /' conftest.$ac_ext >&5
20542
20543fi
ac1cb8d3 20544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20545if test $ac_cv_c_bigendian = unknown; then
20546if test "$cross_compiling" = yes; then
20547 ac_cv_c_bigendian=unknown
20548else
20549 cat >conftest.$ac_ext <<_ACEOF
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555main () {
20556 /* Are we little or big endian? From Harbison&Steele. */
20557 union
20558 {
20559 long l;
20560 char c[sizeof (long)];
20561 } u;
20562 u.l = 1;
20563 exit (u.c[sizeof (long) - 1] == 1);
20564}
20565_ACEOF
20566rm -f conftest$ac_exeext
20567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568 (eval $ac_link) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_c_bigendian=no
20578else
20579 echo "$as_me: program exited with status $ac_status" >&5
20580echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583( exit $ac_status )
20584ac_cv_c_bigendian=yes
20585fi
ac1cb8d3 20586rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20587fi
20588fi
20589fi
20590echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20591echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20592if test $ac_cv_c_bigendian = unknown; then
20593 { 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
20594echo "$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;}
20595fi
20596if test $ac_cv_c_bigendian = yes; then
20597 cat >>confdefs.h <<\_ACEOF
20598#define WORDS_BIGENDIAN 1
20599_ACEOF
20600
20601fi
20602
20603
20604ac_ext=cc
20605ac_cpp='$CXXCPP $CPPFLAGS'
20606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20609echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20610echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20611if test -z "$CXXCPP"; then
20612 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614else
20615 # Double quotes because CXXCPP needs to be expanded
20616 for CXXCPP in "$CXX -E" "/lib/cpp"
20617 do
20618 ac_preproc_ok=false
20619for ac_cxx_preproc_warn_flag in '' yes
20620do
20621 # Use a header file that comes with gcc, so configuring glibc
20622 # with a fresh cross-compiler works.
20623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20624 # <limits.h> exists even on freestanding compilers.
20625 # On the NeXT, cc -E runs the code through the compiler's parser,
20626 # not just through cpp. "Syntax error" is here to catch this case.
20627 cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633#ifdef __STDC__
20634# include <limits.h>
20635#else
20636# include <assert.h>
20637#endif
ac1cb8d3 20638 Syntax error
a848cd7e
SC
20639_ACEOF
20640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } >/dev/null; then
20648 if test -s conftest.err; then
20649 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20651 else
20652 ac_cpp_err=
20653 fi
20654else
20655 ac_cpp_err=yes
20656fi
20657if test -z "$ac_cpp_err"; then
20658 :
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 # Broken: fails on valid input.
20664continue
20665fi
20666rm -f conftest.err conftest.$ac_ext
20667
20668 # OK, works on sane cases. Now check whether non-existent headers
20669 # can be detected and how.
20670 cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676#include <ac_nonexistent.h>
20677_ACEOF
20678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } >/dev/null; then
20686 if test -s conftest.err; then
20687 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20689 else
20690 ac_cpp_err=
20691 fi
20692else
20693 ac_cpp_err=yes
20694fi
20695if test -z "$ac_cpp_err"; then
20696 # Broken: success on invalid input.
20697continue
20698else
20699 echo "$as_me: failed program was:" >&5
20700sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 # Passes both tests.
20703ac_preproc_ok=:
20704break
20705fi
20706rm -f conftest.err conftest.$ac_ext
20707
20708done
20709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20710rm -f conftest.err conftest.$ac_ext
20711if $ac_preproc_ok; then
20712 break
20713fi
20714
20715 done
20716 ac_cv_prog_CXXCPP=$CXXCPP
20717
20718fi
20719 CXXCPP=$ac_cv_prog_CXXCPP
20720else
20721 ac_cv_prog_CXXCPP=$CXXCPP
20722fi
20723echo "$as_me:$LINENO: result: $CXXCPP" >&5
20724echo "${ECHO_T}$CXXCPP" >&6
20725ac_preproc_ok=false
20726for ac_cxx_preproc_warn_flag in '' yes
20727do
20728 # Use a header file that comes with gcc, so configuring glibc
20729 # with a fresh cross-compiler works.
20730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731 # <limits.h> exists even on freestanding compilers.
20732 # On the NeXT, cc -E runs the code through the compiler's parser,
20733 # not just through cpp. "Syntax error" is here to catch this case.
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740#ifdef __STDC__
20741# include <limits.h>
20742#else
20743# include <assert.h>
20744#endif
ac1cb8d3 20745 Syntax error
a848cd7e
SC
20746_ACEOF
20747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } >/dev/null; then
20755 if test -s conftest.err; then
20756 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20757 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20758 else
20759 ac_cpp_err=
20760 fi
20761else
20762 ac_cpp_err=yes
20763fi
20764if test -z "$ac_cpp_err"; then
20765 :
20766else
20767 echo "$as_me: failed program was:" >&5
20768sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 # Broken: fails on valid input.
20771continue
20772fi
20773rm -f conftest.err conftest.$ac_ext
20774
20775 # OK, works on sane cases. Now check whether non-existent headers
20776 # can be detected and how.
20777 cat >conftest.$ac_ext <<_ACEOF
20778/* confdefs.h. */
20779_ACEOF
20780cat confdefs.h >>conftest.$ac_ext
20781cat >>conftest.$ac_ext <<_ACEOF
20782/* end confdefs.h. */
20783#include <ac_nonexistent.h>
20784_ACEOF
20785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } >/dev/null; then
20793 if test -s conftest.err; then
20794 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20795 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20796 else
20797 ac_cpp_err=
20798 fi
20799else
20800 ac_cpp_err=yes
20801fi
20802if test -z "$ac_cpp_err"; then
20803 # Broken: success on invalid input.
20804continue
20805else
20806 echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 # Passes both tests.
20810ac_preproc_ok=:
20811break
20812fi
20813rm -f conftest.err conftest.$ac_ext
20814
20815done
20816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20817rm -f conftest.err conftest.$ac_ext
20818if $ac_preproc_ok; then
20819 :
20820else
20821 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20822See \`config.log' for more details." >&5
20823echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20824See \`config.log' for more details." >&2;}
20825 { (exit 1); exit 1; }; }
20826fi
20827
20828ac_ext=cc
20829ac_cpp='$CXXCPP $CPPFLAGS'
20830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20833
20834
20835
20836
20837
20838 ac_ext=cc
20839ac_cpp='$CXXCPP $CPPFLAGS'
20840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20843
20844
20845
20846for ac_header in iostream
20847do
20848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20849if eval "test \"\${$as_ac_Header+set}\" = set"; then
20850 echo "$as_me:$LINENO: checking for $ac_header" >&5
20851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20852if eval "test \"\${$as_ac_Header+set}\" = set"; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854fi
20855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20857else
20858 # Is the header compilable?
20859echo "$as_me:$LINENO: checking $ac_header usability" >&5
20860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20861cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h. */
20867$ac_includes_default
20868#include <$ac_header>
20869_ACEOF
20870rm -f conftest.$ac_objext
20871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20872 (eval $ac_compile) 2>conftest.er1
a848cd7e 20873 ac_status=$?
ac1cb8d3
VS
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
a848cd7e
SC
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
ddd14b14
RR
20879 { ac_try='test -z "$ac_cxx_werror_flag"
20880 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_header_compiler=yes
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897ac_header_compiler=no
20898fi
ac1cb8d3 20899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20901echo "${ECHO_T}$ac_header_compiler" >&6
20902
20903# Is the header present?
20904echo "$as_me:$LINENO: checking $ac_header presence" >&5
20905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20906cat >conftest.$ac_ext <<_ACEOF
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
20912#include <$ac_header>
20913_ACEOF
20914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } >/dev/null; then
20922 if test -s conftest.err; then
20923 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20925 else
20926 ac_cpp_err=
20927 fi
20928else
20929 ac_cpp_err=yes
20930fi
20931if test -z "$ac_cpp_err"; then
20932 ac_header_preproc=yes
20933else
20934 echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 ac_header_preproc=no
20938fi
20939rm -f conftest.err conftest.$ac_ext
20940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20941echo "${ECHO_T}$ac_header_preproc" >&6
20942
20943# So? What about this header?
ac1cb8d3
VS
20944case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20945 yes:no: )
a848cd7e
SC
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20950 ac_header_preproc=yes
a848cd7e 20951 ;;
ac1cb8d3 20952 no:yes:* )
a848cd7e
SC
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20956echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20960echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20965 (
20966 cat <<\_ASBOX
ac1cb8d3
VS
20967## ----------------------------------------- ##
20968## Report this to wx-dev@lists.wxwidgets.org ##
20969## ----------------------------------------- ##
a848cd7e
SC
20970_ASBOX
20971 ) |
20972 sed "s/^/$as_me: WARNING: /" >&2
20973 ;;
20974esac
20975echo "$as_me:$LINENO: checking for $ac_header" >&5
20976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20977if eval "test \"\${$as_ac_Header+set}\" = set"; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20979else
ac1cb8d3 20980 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20981fi
20982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20984
20985fi
20986if test `eval echo '${'$as_ac_Header'}'` = yes; then
20987 cat >>confdefs.h <<_ACEOF
20988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989_ACEOF
20990
20991fi
20992
20993done
20994
20995
20996 if test "$ac_cv_header_iostream" = "yes" ; then
20997 :
20998 else
20999 cat >>confdefs.h <<\_ACEOF
21000#define wxUSE_IOSTREAMH 1
21001_ACEOF
21002
21003 fi
21004
21005 ac_ext=c
21006ac_cpp='$CPP $CPPFLAGS'
21007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010
21011
21012
21013
21014 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21015echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21016if test "${wx_cv_cpp_bool+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018else
21019
21020
21021
21022 ac_ext=cc
21023ac_cpp='$CXXCPP $CPPFLAGS'
21024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21027
21028
21029 cat >conftest.$ac_ext <<_ACEOF
21030/* confdefs.h. */
21031_ACEOF
21032cat confdefs.h >>conftest.$ac_ext
21033cat >>conftest.$ac_ext <<_ACEOF
21034/* end confdefs.h. */
21035
21036
21037int
21038main ()
21039{
21040
21041 bool b = true;
21042
21043 return 0;
21044
21045 ;
21046 return 0;
21047}
21048_ACEOF
21049rm -f conftest.$ac_objext
21050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21051 (eval $ac_compile) 2>conftest.er1
a848cd7e 21052 ac_status=$?
ac1cb8d3
VS
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
a848cd7e
SC
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } &&
ddd14b14
RR
21058 { ac_try='test -z "$ac_cxx_werror_flag"
21059 || test ! -s conftest.err'
ac1cb8d3
VS
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; } &&
21065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071
21072 wx_cv_cpp_bool=yes
21073
21074else
21075 echo "$as_me: failed program was:" >&5
21076sed 's/^/| /' conftest.$ac_ext >&5
21077
21078
21079 wx_cv_cpp_bool=no
21080
21081
21082fi
ac1cb8d3 21083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21084
21085 ac_ext=c
21086ac_cpp='$CPP $CPPFLAGS'
21087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090
21091
21092fi
21093echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21094echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21095
21096 if test "$wx_cv_cpp_bool" = "yes"; then
21097 cat >>confdefs.h <<\_ACEOF
21098#define HAVE_BOOL 1
21099_ACEOF
21100
21101 fi
21102
21103
21104
21105 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21106echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21107if test "${wx_cv_explicit+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109else
21110
21111
21112
21113 ac_ext=cc
21114ac_cpp='$CXXCPP $CPPFLAGS'
21115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21118
21119
21120 cat >conftest.$ac_ext <<_ACEOF
21121/* confdefs.h. */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h. */
21126
21127 class Foo { public: explicit Foo(int) {} };
21128
21129int
21130main ()
21131{
21132
21133 return 0;
21134
21135 ;
21136 return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21141 (eval $ac_compile) 2>conftest.er1
a848cd7e 21142 ac_status=$?
ac1cb8d3
VS
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
a848cd7e
SC
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
ddd14b14
RR
21148 { ac_try='test -z "$ac_cxx_werror_flag"
21149 || test ! -s conftest.err'
ac1cb8d3
VS
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; } &&
21155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161
21162 cat >conftest.$ac_ext <<_ACEOF
21163/* confdefs.h. */
21164_ACEOF
21165cat confdefs.h >>conftest.$ac_ext
21166cat >>conftest.$ac_ext <<_ACEOF
21167/* end confdefs.h. */
21168
21169 class Foo { public: explicit Foo(int) {} };
21170 static void TakeFoo(const Foo& foo) { }
21171
21172int
21173main ()
21174{
21175
21176 TakeFoo(17);
21177 return 0;
21178
21179 ;
21180 return 0;
21181}
21182_ACEOF
21183rm -f conftest.$ac_objext
21184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21185 (eval $ac_compile) 2>conftest.er1
a848cd7e 21186 ac_status=$?
ac1cb8d3
VS
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
a848cd7e
SC
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
ddd14b14
RR
21192 { ac_try='test -z "$ac_cxx_werror_flag"
21193 || test ! -s conftest.err'
ac1cb8d3
VS
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 wx_cv_explicit=no
21206else
21207 echo "$as_me: failed program was:" >&5
21208sed 's/^/| /' conftest.$ac_ext >&5
21209
21210wx_cv_explicit=yes
21211
21212fi
ac1cb8d3 21213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21214
21215else
21216 echo "$as_me: failed program was:" >&5
21217sed 's/^/| /' conftest.$ac_ext >&5
21218
21219wx_cv_explicit=no
21220
21221fi
ac1cb8d3 21222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21223
21224 ac_ext=c
21225ac_cpp='$CPP $CPPFLAGS'
21226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228ac_compiler_gnu=$ac_cv_c_compiler_gnu
21229
21230
21231fi
21232echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21233echo "${ECHO_T}$wx_cv_explicit" >&6
21234
21235 if test "$wx_cv_explicit" = "yes"; then
21236 cat >>confdefs.h <<\_ACEOF
21237#define HAVE_EXPLICIT 1
21238_ACEOF
21239
21240 fi
21241
21242
21243echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21244echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21245if test "${ac_cv_cxx_const_cast+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248
21249
21250 ac_ext=cc
21251ac_cpp='$CXXCPP $CPPFLAGS'
21252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21255
21256 cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
21262
21263int
21264main ()
21265{
21266int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21267 ;
21268 return 0;
21269}
21270_ACEOF
21271rm -f conftest.$ac_objext
21272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21273 (eval $ac_compile) 2>conftest.er1
a848cd7e 21274 ac_status=$?
ac1cb8d3
VS
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
a848cd7e
SC
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
ddd14b14
RR
21280 { ac_try='test -z "$ac_cxx_werror_flag"
21281 || test ! -s conftest.err'
ac1cb8d3
VS
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_cxx_const_cast=yes
21294else
21295 echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298ac_cv_cxx_const_cast=no
21299fi
ac1cb8d3 21300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21301 ac_ext=c
21302ac_cpp='$CPP $CPPFLAGS'
21303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305ac_compiler_gnu=$ac_cv_c_compiler_gnu
21306
21307
21308fi
21309echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21310echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21311if test "$ac_cv_cxx_const_cast" = yes; then
21312
21313cat >>confdefs.h <<\_ACEOF
21314#define HAVE_CONST_CAST
21315_ACEOF
21316
21317fi
21318
7714864e
RL
21319echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21320echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21321if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21323else
21324
21325
21326 ac_ext=cc
21327ac_cpp='$CXXCPP $CPPFLAGS'
21328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21331
21332 cat >conftest.$ac_ext <<_ACEOF
21333/* confdefs.h. */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h. */
21338#include <typeinfo>
21339class Base { public : Base () {} virtual void f () = 0;};
21340class Derived : public Base { public : Derived () {} virtual void f () {} };
21341class Unrelated { public : Unrelated () {} };
21342int g (Unrelated&) { return 0; }
21343int
21344main ()
21345{
21346
21347Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21348 ;
21349 return 0;
21350}
21351_ACEOF
21352rm -f conftest.$ac_objext
21353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
ddd14b14
RR
21361 { ac_try='test -z "$ac_cxx_werror_flag"
21362 || test ! -s conftest.err'
7714864e
RL
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try='test -s conftest.$ac_objext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 ac_cv_cxx_reinterpret_cast=yes
21375else
21376 echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379ac_cv_cxx_reinterpret_cast=no
21380fi
21381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21382 ac_ext=c
21383ac_cpp='$CPP $CPPFLAGS'
21384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386ac_compiler_gnu=$ac_cv_c_compiler_gnu
21387
21388
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21391echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21392if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21393
21394cat >>confdefs.h <<\_ACEOF
21395#define HAVE_REINTERPRET_CAST
21396_ACEOF
21397
21398fi
21399
a848cd7e
SC
21400echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21401echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21402if test "${ac_cv_cxx_static_cast+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405
21406
21407 ac_ext=cc
21408ac_cpp='$CXXCPP $CPPFLAGS'
21409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21412
21413 cat >conftest.$ac_ext <<_ACEOF
21414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
21419#include <typeinfo>
21420class Base { public : Base () {} virtual void f () = 0; };
21421class Derived : public Base { public : Derived () {} virtual void f () {} };
21422int g (Derived&) { return 0; }
21423int
21424main ()
21425{
21426
21427Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21434 (eval $ac_compile) 2>conftest.er1
a848cd7e 21435 ac_status=$?
ac1cb8d3
VS
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
a848cd7e
SC
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
ddd14b14
RR
21441 { ac_try='test -z "$ac_cxx_werror_flag"
21442 || test ! -s conftest.err'
ac1cb8d3
VS
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_cxx_static_cast=yes
21455else
21456 echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459ac_cv_cxx_static_cast=no
21460fi
ac1cb8d3 21461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21462 ac_ext=c
21463ac_cpp='$CPP $CPPFLAGS'
21464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466ac_compiler_gnu=$ac_cv_c_compiler_gnu
21467
21468
21469fi
21470echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21471echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21472if test "$ac_cv_cxx_static_cast" = yes; then
21473
21474cat >>confdefs.h <<\_ACEOF
21475#define HAVE_STATIC_CAST
21476_ACEOF
21477
21478fi
21479
21480
f56c22b4 21481if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21482 ac_ext=cc
21483ac_cpp='$CXXCPP $CPPFLAGS'
21484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21487
21488
f56c22b4
MW
21489 if test "$wxUSE_UNICODE" = "yes"; then
21490 std_string="std::wstring"
21491 char_type="wchar_t"
21492 else
21493 std_string="std::string"
21494 char_type="char"
21495 fi
21496
21497 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21498echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21499 cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h. */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h. */
21505#include <string>
a848cd7e
SC
21506int
21507main ()
21508{
f56c22b4 21509$std_string foo;
a848cd7e
SC
21510 ;
21511 return 0;
21512}
21513_ACEOF
21514rm -f conftest.$ac_objext
21515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21516 (eval $ac_compile) 2>conftest.er1
a848cd7e 21517 ac_status=$?
ac1cb8d3
VS
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
a848cd7e
SC
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } &&
ddd14b14
RR
21523 { ac_try='test -z "$ac_cxx_werror_flag"
21524 || test ! -s conftest.err'
ac1cb8d3
VS
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; } &&
21530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 echo "$as_me:$LINENO: result: yes" >&5
21537echo "${ECHO_T}yes" >&6
0a08f02a
MB
21538 cat >>confdefs.h <<\_ACEOF
21539#define HAVE_STD_WSTRING 1
21540_ACEOF
21541
a848cd7e
SC
21542else
21543 echo "$as_me: failed program was:" >&5
21544sed 's/^/| /' conftest.$ac_ext >&5
21545
21546echo "$as_me:$LINENO: result: no" >&5
21547echo "${ECHO_T}no" >&6
f56c22b4
MW
21548 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21549echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21550 cat >conftest.$ac_ext <<_ACEOF
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
21556
21557 #ifdef HAVE_WCHAR_H
21558 # ifdef __CYGWIN__
21559 # include <stddef.h>
21560 # endif
21561 # include <wchar.h>
21562 #endif
21563 #ifdef HAVE_STDLIB_H
21564 # include <stdlib.h>
21565 #endif
21566 #include <stdio.h>
21567 #include <string>
21568
21569int
21570main ()
21571{
f56c22b4
MW
21572std::basic_string<$char_type> foo;
21573 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21574 ;
21575 return 0;
21576}
21577_ACEOF
21578rm -f conftest.$ac_objext
21579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21580 (eval $ac_compile) 2>conftest.er1
21581 ac_status=$?
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
ddd14b14
RR
21587 { ac_try='test -z "$ac_cxx_werror_flag"
21588 || test ! -s conftest.err'
0a08f02a
MB
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); }; } &&
21594 { ac_try='test -s conftest.$ac_objext'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 echo "$as_me:$LINENO: result: yes" >&5
21601echo "${ECHO_T}yes" >&6
21602else
21603 echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606echo "$as_me:$LINENO: result: no" >&5
21607echo "${ECHO_T}no" >&6
f56c22b4 21608 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21609 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21610echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21611 { (exit 1); exit 1; }; }
21612 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21613 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21614echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21615 { (exit 1); exit 1; }; }
f56c22b4
MW
21616 else
21617 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21618echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21619 wxUSE_STD_STRING=no
21620 fi
21621
0a08f02a 21622
a848cd7e 21623fi
ac1cb8d3 21624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21625
0a08f02a
MB
21626fi
21627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21628
21629 ac_ext=c
21630ac_cpp='$CPP $CPPFLAGS'
21631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21633ac_compiler_gnu=$ac_cv_c_compiler_gnu
21634
21635fi
21636
21637if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21638 ac_ext=cc
21639ac_cpp='$CXXCPP $CPPFLAGS'
21640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21643
21644
21645 echo "$as_me:$LINENO: checking for std::istream" >&5
21646echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21647if test "${ac_cv_type_std__istream+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649else
21650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
21656#include <iostream>
21657
21658int
21659main ()
21660{
21661if ((std::istream *) 0)
21662 return 0;
21663if (sizeof (std::istream))
21664 return 0;
21665 ;
21666 return 0;
21667}
21668_ACEOF
21669rm -f conftest.$ac_objext
21670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21672 ac_status=$?
21673 grep -v '^ *+' conftest.er1 >conftest.err
21674 rm -f conftest.er1
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
ddd14b14
RR
21678 { ac_try='test -z "$ac_cxx_werror_flag"
21679 || test ! -s conftest.err'
f56c22b4
MW
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_type_std__istream=yes
21692else
21693 echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696ac_cv_type_std__istream=no
21697fi
21698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699fi
21700echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21701echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21702if test $ac_cv_type_std__istream = yes; then
21703
21704cat >>confdefs.h <<_ACEOF
21705#define HAVE_STD__ISTREAM 1
21706_ACEOF
21707
21708
21709else
21710 wxUSE_STD_IOSTREAM=no
21711fi
21712echo "$as_me:$LINENO: checking for std::ostream" >&5
21713echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21714if test "${ac_cv_type_std__ostream+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716else
21717 cat >conftest.$ac_ext <<_ACEOF
21718/* confdefs.h. */
21719_ACEOF
21720cat confdefs.h >>conftest.$ac_ext
21721cat >>conftest.$ac_ext <<_ACEOF
21722/* end confdefs.h. */
21723#include <iostream>
21724
21725int
21726main ()
21727{
21728if ((std::ostream *) 0)
21729 return 0;
21730if (sizeof (std::ostream))
21731 return 0;
21732 ;
21733 return 0;
21734}
21735_ACEOF
21736rm -f conftest.$ac_objext
21737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21738 (eval $ac_compile) 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
ddd14b14
RR
21745 { ac_try='test -z "$ac_cxx_werror_flag"
21746 || test ! -s conftest.err'
f56c22b4
MW
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest.$ac_objext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_cv_type_std__ostream=yes
21759else
21760 echo "$as_me: failed program was:" >&5
21761sed 's/^/| /' conftest.$ac_ext >&5
21762
21763ac_cv_type_std__ostream=no
21764fi
21765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766fi
21767echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21768echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21769if test $ac_cv_type_std__ostream = yes; then
21770
21771cat >>confdefs.h <<_ACEOF
21772#define HAVE_STD__OSTREAM 1
21773_ACEOF
21774
21775
21776else
21777 wxUSE_STD_IOSTREAM=no
21778fi
21779
21780
21781 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21782 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21783 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21784echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21785 { (exit 1); exit 1; }; }
21786 else
21787 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21788echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21789 fi
f56c22b4
MW
21790 fi
21791
21792 ac_ext=c
21793ac_cpp='$CPP $CPPFLAGS'
21794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21796ac_compiler_gnu=$ac_cv_c_compiler_gnu
21797
21798fi
21799
21800if test "$wxUSE_STL" = "yes"; then
21801 ac_ext=cc
21802ac_cpp='$CXXCPP $CPPFLAGS'
21803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21806
21807
21808 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21809echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21810 cat >conftest.$ac_ext <<_ACEOF
21811/* confdefs.h. */
21812_ACEOF
21813cat confdefs.h >>conftest.$ac_ext
21814cat >>conftest.$ac_ext <<_ACEOF
21815/* end confdefs.h. */
21816#include <string>
0a08f02a
MB
21817 #include <functional>
21818 #include <algorithm>
21819 #include <vector>
21820 #include <list>
a848cd7e
SC
21821int
21822main ()
21823{
0a08f02a
MB
21824std::vector<int> moo;
21825 std::list<int> foo;
21826 std::vector<int>::iterator it =
21827 std::find_if(moo.begin(), moo.end(),
21828 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21829 ;
21830 return 0;
21831}
21832_ACEOF
21833rm -f conftest.$ac_objext
21834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21835 (eval $ac_compile) 2>conftest.er1
a848cd7e 21836 ac_status=$?
ac1cb8d3
VS
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
a848cd7e
SC
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } &&
ddd14b14
RR
21842 { ac_try='test -z "$ac_cxx_werror_flag"
21843 || test ! -s conftest.err'
ac1cb8d3
VS
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } &&
21849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 echo "$as_me:$LINENO: result: yes" >&5
21856echo "${ECHO_T}yes" >&6
a848cd7e
SC
21857else
21858 echo "$as_me: failed program was:" >&5
21859sed 's/^/| /' conftest.$ac_ext >&5
21860
21861echo "$as_me:$LINENO: result: no" >&5
21862echo "${ECHO_T}no" >&6
0a08f02a
MB
21863 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21864echo "$as_me: error: Basic STL functionality missing" >&2;}
21865 { (exit 1); exit 1; }; }
a848cd7e 21866fi
ac1cb8d3 21867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21868
21869 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21870echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21871 cat >conftest.$ac_ext <<_ACEOF
21872/* confdefs.h. */
21873_ACEOF
21874cat confdefs.h >>conftest.$ac_ext
21875cat >>conftest.$ac_ext <<_ACEOF
21876/* end confdefs.h. */
21877#include <string>
21878int
21879main ()
21880{
21881std::string foo, bar;
21882 foo.compare(bar);
21883 foo.compare(1, 1, bar);
21884 foo.compare(1, 1, bar, 1, 1);
21885 foo.compare("");
21886 foo.compare(1, 1, "");
21887 foo.compare(1, 1, "", 2);
21888 ;
21889 return 0;
21890}
21891_ACEOF
21892rm -f conftest.$ac_objext
21893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21894 (eval $ac_compile) 2>conftest.er1
a848cd7e 21895 ac_status=$?
ac1cb8d3
VS
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
a848cd7e
SC
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
ddd14b14
RR
21901 { ac_try='test -z "$ac_cxx_werror_flag"
21902 || test ! -s conftest.err'
ac1cb8d3
VS
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 echo "$as_me:$LINENO: result: yes" >&5
21915echo "${ECHO_T}yes" >&6
21916 cat >>confdefs.h <<\_ACEOF
21917#define HAVE_STD_STRING_COMPARE 1
21918_ACEOF
21919
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924echo "$as_me:$LINENO: result: no" >&5
21925echo "${ECHO_T}no" >&6
21926fi
ac1cb8d3 21927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21928
21929 if test "${ac_cv_header_hash_map+set}" = set; then
21930 echo "$as_me:$LINENO: checking for hash_map" >&5
21931echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21932if test "${ac_cv_header_hash_map+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934fi
21935echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21936echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21937else
21938 # Is the header compilable?
21939echo "$as_me:$LINENO: checking hash_map usability" >&5
21940echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21941cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
21947$ac_includes_default
21948#include <hash_map>
21949_ACEOF
21950rm -f conftest.$ac_objext
21951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21952 (eval $ac_compile) 2>conftest.er1
bdcade0a 21953 ac_status=$?
ac1cb8d3
VS
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
bdcade0a
MB
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
ddd14b14
RR
21959 { ac_try='test -z "$ac_cxx_werror_flag"
21960 || test ! -s conftest.err'
ac1cb8d3
VS
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 ac_header_compiler=yes
21973else
21974 echo "$as_me: failed program was:" >&5
21975sed 's/^/| /' conftest.$ac_ext >&5
21976
21977ac_header_compiler=no
21978fi
ac1cb8d3 21979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21981echo "${ECHO_T}$ac_header_compiler" >&6
21982
21983# Is the header present?
21984echo "$as_me:$LINENO: checking hash_map presence" >&5
21985echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21986cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992#include <hash_map>
21993_ACEOF
21994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } >/dev/null; then
22002 if test -s conftest.err; then
22003 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22005 else
22006 ac_cpp_err=
22007 fi
22008else
22009 ac_cpp_err=yes
22010fi
22011if test -z "$ac_cpp_err"; then
22012 ac_header_preproc=yes
22013else
22014 echo "$as_me: failed program was:" >&5
22015sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 ac_header_preproc=no
22018fi
22019rm -f conftest.err conftest.$ac_ext
22020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22021echo "${ECHO_T}$ac_header_preproc" >&6
22022
22023# So? What about this header?
ac1cb8d3
VS
22024case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22025 yes:no: )
bdcade0a
MB
22026 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22027echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22028 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22029echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22030 ac_header_preproc=yes
bdcade0a 22031 ;;
ac1cb8d3 22032 no:yes:* )
bdcade0a
MB
22033 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22034echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22035 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22036echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22038echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22040echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22041 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22042echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22043 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22044echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22045 (
22046 cat <<\_ASBOX
ac1cb8d3
VS
22047## ----------------------------------------- ##
22048## Report this to wx-dev@lists.wxwidgets.org ##
22049## ----------------------------------------- ##
bdcade0a
MB
22050_ASBOX
22051 ) |
22052 sed "s/^/$as_me: WARNING: /" >&2
22053 ;;
22054esac
22055echo "$as_me:$LINENO: checking for hash_map" >&5
22056echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22057if test "${ac_cv_header_hash_map+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22059else
22060 ac_cv_header_hash_map=$ac_header_preproc
22061fi
22062echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22063echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22064
22065fi
22066if test $ac_cv_header_hash_map = yes; then
22067 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22068echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22069 cat >conftest.$ac_ext <<_ACEOF
22070/* confdefs.h. */
22071_ACEOF
22072cat confdefs.h >>conftest.$ac_ext
22073cat >>conftest.$ac_ext <<_ACEOF
22074/* end confdefs.h. */
22075#include <hash_map>
22076 #include <hash_set>
22077int
22078main ()
22079{
22080std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22081 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22082 ;
22083 return 0;
22084}
22085_ACEOF
22086rm -f conftest.$ac_objext
22087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22088 (eval $ac_compile) 2>conftest.er1
bdcade0a 22089 ac_status=$?
ac1cb8d3
VS
22090 grep -v '^ *+' conftest.er1 >conftest.err
22091 rm -f conftest.er1
22092 cat conftest.err >&5
bdcade0a
MB
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } &&
ddd14b14
RR
22095 { ac_try='test -z "$ac_cxx_werror_flag"
22096 || test ! -s conftest.err'
ac1cb8d3
VS
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 echo "$as_me:$LINENO: result: yes" >&5
22109echo "${ECHO_T}yes" >&6
22110 cat >>confdefs.h <<\_ACEOF
22111#define HAVE_HASH_MAP 1
22112_ACEOF
22113
22114 cat >>confdefs.h <<\_ACEOF
22115#define HAVE_STD_HASH_MAP 1
22116_ACEOF
22117
22118else
22119 echo "$as_me: failed program was:" >&5
22120sed 's/^/| /' conftest.$ac_ext >&5
22121
22122echo "$as_me:$LINENO: result: no" >&5
22123echo "${ECHO_T}no" >&6
22124fi
ac1cb8d3 22125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22126
22127fi
22128
22129
22130
22131 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22132 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22133echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22134if test "${ac_cv_header_ext_hash_map+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136fi
22137echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22138echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22139else
22140 # Is the header compilable?
22141echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22142echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22143cat >conftest.$ac_ext <<_ACEOF
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149$ac_includes_default
22150#include <ext/hash_map>
22151_ACEOF
22152rm -f conftest.$ac_objext
22153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22154 (eval $ac_compile) 2>conftest.er1
bdcade0a 22155 ac_status=$?
ac1cb8d3
VS
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
bdcade0a
MB
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
ddd14b14
RR
22161 { ac_try='test -z "$ac_cxx_werror_flag"
22162 || test ! -s conftest.err'
ac1cb8d3
VS
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_header_compiler=yes
22175else
22176 echo "$as_me: failed program was:" >&5
22177sed 's/^/| /' conftest.$ac_ext >&5
22178
22179ac_header_compiler=no
22180fi
ac1cb8d3 22181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22183echo "${ECHO_T}$ac_header_compiler" >&6
22184
22185# Is the header present?
22186echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22187echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22188cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194#include <ext/hash_map>
22195_ACEOF
22196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } >/dev/null; then
22204 if test -s conftest.err; then
22205 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22207 else
22208 ac_cpp_err=
22209 fi
22210else
22211 ac_cpp_err=yes
22212fi
22213if test -z "$ac_cpp_err"; then
22214 ac_header_preproc=yes
22215else
22216 echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 ac_header_preproc=no
22220fi
22221rm -f conftest.err conftest.$ac_ext
22222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22223echo "${ECHO_T}$ac_header_preproc" >&6
22224
22225# So? What about this header?
ac1cb8d3
VS
22226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22227 yes:no: )
bdcade0a
MB
22228 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22229echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22230 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22231echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22232 ac_header_preproc=yes
bdcade0a 22233 ;;
ac1cb8d3 22234 no:yes:* )
bdcade0a
MB
22235 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22236echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22237 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22238echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22240echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22242echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22243 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22244echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22245 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22246echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22247 (
22248 cat <<\_ASBOX
ac1cb8d3
VS
22249## ----------------------------------------- ##
22250## Report this to wx-dev@lists.wxwidgets.org ##
22251## ----------------------------------------- ##
bdcade0a
MB
22252_ASBOX
22253 ) |
22254 sed "s/^/$as_me: WARNING: /" >&2
22255 ;;
22256esac
22257echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22258echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22259if test "${ac_cv_header_ext_hash_map+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261else
22262 ac_cv_header_ext_hash_map=$ac_header_preproc
22263fi
22264echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22265echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22266
22267fi
22268if test $ac_cv_header_ext_hash_map = yes; then
22269 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22270echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22271 cat >conftest.$ac_ext <<_ACEOF
22272/* confdefs.h. */
22273_ACEOF
22274cat confdefs.h >>conftest.$ac_ext
22275cat >>conftest.$ac_ext <<_ACEOF
22276/* end confdefs.h. */
22277#include <ext/hash_map>
22278 #include <ext/hash_set>
22279int
22280main ()
22281{
22282__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22283 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22284 ;
22285 return 0;
22286}
22287_ACEOF
22288rm -f conftest.$ac_objext
22289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22290 (eval $ac_compile) 2>conftest.er1
bdcade0a 22291 ac_status=$?
ac1cb8d3
VS
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
bdcade0a
MB
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
ddd14b14
RR
22297 { ac_try='test -z "$ac_cxx_werror_flag"
22298 || test ! -s conftest.err'
ac1cb8d3
VS
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } &&
22304 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 echo "$as_me:$LINENO: result: yes" >&5
22311echo "${ECHO_T}yes" >&6
22312 cat >>confdefs.h <<\_ACEOF
22313#define HAVE_EXT_HASH_MAP 1
22314_ACEOF
22315
22316 cat >>confdefs.h <<\_ACEOF
22317#define HAVE_GNU_CXX_HASH_MAP 1
22318_ACEOF
22319
22320else
22321 echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
22324echo "$as_me:$LINENO: result: no" >&5
22325echo "${ECHO_T}no" >&6
22326fi
ac1cb8d3 22327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22328
22329fi
22330
22331
a848cd7e
SC
22332
22333 ac_ext=c
22334ac_cpp='$CPP $CPPFLAGS'
22335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337ac_compiler_gnu=$ac_cv_c_compiler_gnu
22338
22339fi
22340
22341
22342SEARCH_INCLUDE="\
22343 /usr/local/include \
22344 \
22345 /usr/Motif-2.1/include \
22346 /usr/Motif-1.2/include \
22347 /usr/include/Motif1.2 \
22348 /opt/xpm/include/X11 \
22349 /opt/GBxpm/include/ \
22350 /opt/GBxpm/X11/include/ \
22351 \
22352 /usr/dt/include \
22353 /usr/openwin/include \
22354 \
22355 /usr/include/Xm \
22356 \
22357 /usr/X11R6/include \
22358 /usr/X11R6.4/include \
22359 /usr/X11R5/include \
22360 /usr/X11R4/include \
22361 \
22362 /usr/include/X11R6 \
22363 /usr/include/X11R5 \
22364 /usr/include/X11R4 \
22365 \
22366 /usr/local/X11R6/include \
22367 /usr/local/X11R5/include \
22368 /usr/local/X11R4/include \
22369 \
22370 /usr/local/include/X11R6 \
22371 /usr/local/include/X11R5 \
22372 /usr/local/include/X11R4 \
22373 \
22374 /usr/X11/include \
22375 /usr/include/X11 \
22376 /usr/local/X11/include \
22377 /usr/local/include/X11 \
22378 \
22379 /usr/X386/include \
22380 /usr/x386/include \
22381 /usr/XFree86/include/X11 \
22382 \
22383 X:/XFree86/include \
22384 X:/XFree86/include/X11 \
22385 \
22386 /usr/include/gtk \
22387 /usr/local/include/gtk \
22388 /usr/include/glib \
22389 /usr/local/include/glib \
22390 \
22391 /usr/include/qt \
22392 /usr/local/include/qt \
22393 \
22394 /usr/local/arm/3.3.2/include \
22395 \
22396 /usr/include/windows \
22397 /usr/include/wine \
22398 /usr/local/include/wine \
22399 \
22400 /usr/unsupported/include \
22401 /usr/athena/include \
22402 /usr/local/x11r5/include \
22403 /usr/lpp/Xamples/include \
22404 \
22405 /usr/openwin/share/include"
22406
07158944 22407SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22408
3eca31dc
MW
22409if test "$build" != "$host" -a "$GCC" = yes; then
22410 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22411 cross_root=`dirname $cross_root`
22412 cross_root=`dirname $cross_root`
22413
22414 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22415 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22416
22417 if test -z "$PKG_CONFIG_PATH"; then
22418 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22419 export PKG_CONFIG_PATH
22420 fi
22421
22422 if test -z "$x_includes" -o "$x_includes" = NONE; then
22423
22424ac_find_includes=
22425for ac_dir in $SEARCH_INCLUDE /usr/include;
22426 do
22427 if test -f "$ac_dir/X11/Intrinsic.h"; then
22428 ac_find_includes=$ac_dir
22429 break
22430 fi
22431 done
22432
22433 x_includes=$ac_find_includes
22434 fi
22435 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22436
22437ac_find_libraries=
22438for ac_dir in $SEARCH_LIB /usr/lib;
22439 do
22440 for ac_extension in a so sl dylib dll.a; do
22441 if test -f "$ac_dir/libXt.$ac_extension"; then
22442 ac_find_libraries=$ac_dir
22443 break 2
22444 fi
22445 done
22446 done
22447
22448 x_libraries=$ac_find_libraries
22449 fi
22450 fi
22451fi
22452
a848cd7e
SC
22453
22454cat >confcache <<\_ACEOF
22455# This file is a shell script that caches the results of configure
22456# tests run on this system so they can be shared between configure
22457# scripts and configure runs, see configure's option --config-cache.
22458# It is not useful on other systems. If it contains results you don't
22459# want to keep, you may remove or edit it.
22460#
22461# config.status only pays attention to the cache file if you give it
22462# the --recheck option to rerun configure.
22463#
22464# `ac_cv_env_foo' variables (set or unset) will be overridden when
22465# loading this file, other *unset* `ac_cv_foo' will be assigned the
22466# following values.
22467
22468_ACEOF
22469
22470# The following way of writing the cache mishandles newlines in values,
22471# but we know of no workaround that is simple, portable, and efficient.
22472# So, don't put newlines in cache variables' values.
22473# Ultrix sh set writes to stderr and can't be redirected directly,
22474# and sets the high bit in the cache file unless we assign to the vars.
22475{
22476 (set) 2>&1 |
22477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22478 *ac_space=\ *)
22479 # `set' does not quote correctly, so add quotes (double-quote
22480 # substitution turns \\\\ into \\, and sed turns \\ into \).
22481 sed -n \
ac1cb8d3
VS
22482 "s/'/'\\\\''/g;
22483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22484 ;;
22485 *)
22486 # `set' quotes correctly as required by POSIX, so do not add quotes.
22487 sed -n \
ac1cb8d3 22488 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22489 ;;
22490 esac;
22491} |
22492 sed '
22493 t clear
22494 : clear
22495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22496 t end
22497 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22498 : end' >>confcache
22499if diff $cache_file confcache >/dev/null 2>&1; then :; else
22500 if test -w $cache_file; then
22501 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22502 cat confcache >$cache_file
22503 else
22504 echo "not updating unwritable cache $cache_file"
22505 fi
22506fi
22507rm -f confcache
22508
22509if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22510 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22511echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22512if test "${wx_cv_lib_glibc21+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514else
22515
22516 cat >conftest.$ac_ext <<_ACEOF
22517/* confdefs.h. */
22518_ACEOF
22519cat confdefs.h >>conftest.$ac_ext
22520cat >>conftest.$ac_ext <<_ACEOF
22521/* end confdefs.h. */
22522#include <features.h>
22523int
22524main ()
22525{
22526
22527 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22528 #error not glibc2.1
22529 #endif
22530
22531 ;
22532 return 0;
22533}
22534_ACEOF
22535rm -f conftest.$ac_objext
22536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22537 (eval $ac_compile) 2>conftest.er1
a848cd7e 22538 ac_status=$?
ac1cb8d3
VS
22539 grep -v '^ *+' conftest.er1 >conftest.err
22540 rm -f conftest.er1
22541 cat conftest.err >&5
a848cd7e
SC
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } &&
ddd14b14
RR
22544 { ac_try='test -z "$ac_c_werror_flag"
22545 || test ! -s conftest.err'
ac1cb8d3
VS
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; } &&
22551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557
22558 wx_cv_lib_glibc21=yes
22559
22560else
22561 echo "$as_me: failed program was:" >&5
22562sed 's/^/| /' conftest.$ac_ext >&5
22563
22564
22565 wx_cv_lib_glibc21=no
22566
22567
22568fi
ac1cb8d3 22569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22570
22571fi
22572echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22573echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22574 if test "$wx_cv_lib_glibc21" = "yes"; then
22575 cat >>confdefs.h <<\_ACEOF
22576#define wxHAVE_GLIBC2 1
22577_ACEOF
22578
22579 fi
22580fi
22581
22582if test "x$wx_cv_lib_glibc21" = "xyes"; then
22583 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22584 cat >>confdefs.h <<\_ACEOF
22585#define _GNU_SOURCE 1
22586_ACEOF
22587
22588 fi
22589fi
22590
22591
22592
22593if test "$wxUSE_REGEX" != "no"; then
22594 cat >>confdefs.h <<\_ACEOF
22595#define wxUSE_REGEX 1
22596_ACEOF
22597
22598
22599 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22600 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22601echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22602 wxUSE_REGEX=builtin
22603 fi
22604
22605 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22606 if test "${ac_cv_header_regex_h+set}" = set; then
22607 echo "$as_me:$LINENO: checking for regex.h" >&5
22608echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22609if test "${ac_cv_header_regex_h+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22611fi
22612echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22613echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22614else
22615 # Is the header compilable?
22616echo "$as_me:$LINENO: checking regex.h usability" >&5
22617echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22618cat >conftest.$ac_ext <<_ACEOF
22619/* confdefs.h. */
22620_ACEOF
22621cat confdefs.h >>conftest.$ac_ext
22622cat >>conftest.$ac_ext <<_ACEOF
22623/* end confdefs.h. */
22624$ac_includes_default
22625#include <regex.h>
22626_ACEOF
22627rm -f conftest.$ac_objext
22628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22629 (eval $ac_compile) 2>conftest.er1
a848cd7e 22630 ac_status=$?
ac1cb8d3
VS
22631 grep -v '^ *+' conftest.er1 >conftest.err
22632 rm -f conftest.er1
22633 cat conftest.err >&5
a848cd7e
SC
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } &&
ddd14b14
RR
22636 { ac_try='test -z "$ac_c_werror_flag"
22637 || test ! -s conftest.err'
ac1cb8d3
VS
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; } &&
22643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; }; then
22649 ac_header_compiler=yes
22650else
22651 echo "$as_me: failed program was:" >&5
22652sed 's/^/| /' conftest.$ac_ext >&5
22653
22654ac_header_compiler=no
22655fi
ac1cb8d3 22656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22658echo "${ECHO_T}$ac_header_compiler" >&6
22659
22660# Is the header present?
22661echo "$as_me:$LINENO: checking regex.h presence" >&5
22662echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22663cat >conftest.$ac_ext <<_ACEOF
22664/* confdefs.h. */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h. */
22669#include <regex.h>
22670_ACEOF
22671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } >/dev/null; then
22679 if test -s conftest.err; then
22680 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22682 else
22683 ac_cpp_err=
22684 fi
22685else
22686 ac_cpp_err=yes
22687fi
22688if test -z "$ac_cpp_err"; then
22689 ac_header_preproc=yes
22690else
22691 echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_header_preproc=no
22695fi
22696rm -f conftest.err conftest.$ac_ext
22697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22698echo "${ECHO_T}$ac_header_preproc" >&6
22699
22700# So? What about this header?
ac1cb8d3
VS
22701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22702 yes:no: )
a848cd7e
SC
22703 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22704echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22705 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22706echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22707 ac_header_preproc=yes
a848cd7e 22708 ;;
ac1cb8d3 22709 no:yes:* )
a848cd7e
SC
22710 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22711echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22712 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22713echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22714 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22715echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22716 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22717echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22718 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22719echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22720 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22721echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22722 (
22723 cat <<\_ASBOX
ac1cb8d3
VS
22724## ----------------------------------------- ##
22725## Report this to wx-dev@lists.wxwidgets.org ##
22726## ----------------------------------------- ##
a848cd7e
SC
22727_ASBOX
22728 ) |
22729 sed "s/^/$as_me: WARNING: /" >&2
22730 ;;
22731esac
22732echo "$as_me:$LINENO: checking for regex.h" >&5
22733echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22734if test "${ac_cv_header_regex_h+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22736else
22737 ac_cv_header_regex_h=$ac_header_preproc
22738fi
22739echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22740echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22741
22742fi
22743if test $ac_cv_header_regex_h = yes; then
22744
22745for ac_func in regcomp
22746do
22747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22748echo "$as_me:$LINENO: checking for $ac_func" >&5
22749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22750if eval "test \"\${$as_ac_var+set}\" = set"; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752else
22753 cat >conftest.$ac_ext <<_ACEOF
22754/* confdefs.h. */
22755_ACEOF
22756cat confdefs.h >>conftest.$ac_ext
22757cat >>conftest.$ac_ext <<_ACEOF
22758/* end confdefs.h. */
ac1cb8d3
VS
22759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22761#define $ac_func innocuous_$ac_func
22762
a848cd7e
SC
22763/* System header to define __stub macros and hopefully few prototypes,
22764 which can conflict with char $ac_func (); below.
22765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22766 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22767
a848cd7e
SC
22768#ifdef __STDC__
22769# include <limits.h>
22770#else
22771# include <assert.h>
22772#endif
ac1cb8d3
VS
22773
22774#undef $ac_func
22775
a848cd7e
SC
22776/* Override any gcc2 internal prototype to avoid an error. */
22777#ifdef __cplusplus
22778extern "C"
22779{
22780#endif
22781/* We use char because int might match the return type of a gcc2
22782 builtin and then its argument prototype would still apply. */
22783char $ac_func ();
22784/* The GNU C library defines this for functions which it implements
22785 to always fail with ENOSYS. Some functions are actually named
22786 something starting with __ and the normal name is an alias. */
22787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22788choke me
22789#else
22790char (*f) () = $ac_func;
22791#endif
22792#ifdef __cplusplus
22793}
22794#endif
22795
22796int
22797main ()
22798{
22799return f != $ac_func;
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext conftest$ac_exeext
22805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22806 (eval $ac_link) 2>conftest.er1
a848cd7e 22807 ac_status=$?
ac1cb8d3
VS
22808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
a848cd7e
SC
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
ddd14b14
RR
22813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
ac1cb8d3
VS
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 eval "$as_ac_var=yes"
22827else
22828 echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831eval "$as_ac_var=no"
22832fi
ac1cb8d3
VS
22833rm -f conftest.err conftest.$ac_objext \
22834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22835fi
22836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22838if test `eval echo '${'$as_ac_var'}'` = yes; then
22839 cat >>confdefs.h <<_ACEOF
22840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22841_ACEOF
22842
22843fi
22844done
22845
22846fi
22847
22848
22849
22850 if test "x$ac_cv_func_regcomp" != "xyes"; then
22851 if test "$wxUSE_REGEX" = "sys" ; then
22852 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22853echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22854 { (exit 1); exit 1; }; }
22855 else
22856 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22857echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22858 wxUSE_REGEX=builtin
22859 fi
22860 else
22861 wxUSE_REGEX=sys
22862 cat >>confdefs.h <<\_ACEOF
22863#define WX_NO_REGEX_ADVANCED 1
22864_ACEOF
22865
22866 fi
22867 fi
22868fi
22869
22870
22871ZLIB_LINK=
22872if test "$wxUSE_ZLIB" != "no" ; then
22873 cat >>confdefs.h <<\_ACEOF
22874#define wxUSE_ZLIB 1
22875_ACEOF
22876
22877
22878 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22879 if test "$USE_DARWIN" = 1; then
22880 system_zlib_h_ok="yes"
22881 else
22882 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22883echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22884if test "${ac_cv_header_zlib_h+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886else
22887 if test "$cross_compiling" = yes; then
22888 unset ac_cv_header_zlib_h
22889
22890else
22891 cat >conftest.$ac_ext <<_ACEOF
22892/* confdefs.h. */
22893_ACEOF
22894cat confdefs.h >>conftest.$ac_ext
22895cat >>conftest.$ac_ext <<_ACEOF
22896/* end confdefs.h. */
22897
22898 #include <zlib.h>
22899 #include <stdio.h>
22900
22901 int main()
22902 {
22903 FILE *f=fopen("conftestval", "w");
22904 if (!f) exit(1);
22905 fprintf(f, "%s",
22906 ZLIB_VERSION[0] == '1' &&
22907 (ZLIB_VERSION[2] > '1' ||
22908 (ZLIB_VERSION[2] == '1' &&
22909 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22910 exit(0);
22911 }
22912
22913_ACEOF
22914rm -f conftest$ac_exeext
22915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22916 (eval $ac_link) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; }; then
22925 ac_cv_header_zlib_h=`cat conftestval`
22926else
22927 echo "$as_me: program exited with status $ac_status" >&5
22928echo "$as_me: failed program was:" >&5
22929sed 's/^/| /' conftest.$ac_ext >&5
22930
22931( exit $ac_status )
22932ac_cv_header_zlib_h=no
22933fi
ac1cb8d3 22934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22935fi
22936
22937fi
22938echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22939echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22940 if test "${ac_cv_header_zlib_h+set}" = set; then
22941 echo "$as_me:$LINENO: checking for zlib.h" >&5
22942echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22943if test "${ac_cv_header_zlib_h+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945fi
22946echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22947echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22948else
22949 # Is the header compilable?
22950echo "$as_me:$LINENO: checking zlib.h usability" >&5
22951echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22952cat >conftest.$ac_ext <<_ACEOF
22953/* confdefs.h. */
22954_ACEOF
22955cat confdefs.h >>conftest.$ac_ext
22956cat >>conftest.$ac_ext <<_ACEOF
22957/* end confdefs.h. */
22958$ac_includes_default
22959#include <zlib.h>
22960_ACEOF
22961rm -f conftest.$ac_objext
22962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22963 (eval $ac_compile) 2>conftest.er1
a848cd7e 22964 ac_status=$?
ac1cb8d3
VS
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
a848cd7e
SC
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
ddd14b14
RR
22970 { ac_try='test -z "$ac_c_werror_flag"
22971 || test ! -s conftest.err'
ac1cb8d3
VS
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ac_header_compiler=yes
22984else
22985 echo "$as_me: failed program was:" >&5
22986sed 's/^/| /' conftest.$ac_ext >&5
22987
22988ac_header_compiler=no
22989fi
ac1cb8d3 22990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22992echo "${ECHO_T}$ac_header_compiler" >&6
22993
22994# Is the header present?
22995echo "$as_me:$LINENO: checking zlib.h presence" >&5
22996echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22997cat >conftest.$ac_ext <<_ACEOF
22998/* confdefs.h. */
22999_ACEOF
23000cat confdefs.h >>conftest.$ac_ext
23001cat >>conftest.$ac_ext <<_ACEOF
23002/* end confdefs.h. */
23003#include <zlib.h>
23004_ACEOF
23005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } >/dev/null; then
23013 if test -s conftest.err; then
23014 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23016 else
23017 ac_cpp_err=
23018 fi
23019else
23020 ac_cpp_err=yes
23021fi
23022if test -z "$ac_cpp_err"; then
23023 ac_header_preproc=yes
23024else
23025 echo "$as_me: failed program was:" >&5
23026sed 's/^/| /' conftest.$ac_ext >&5
23027
23028 ac_header_preproc=no
23029fi
23030rm -f conftest.err conftest.$ac_ext
23031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23032echo "${ECHO_T}$ac_header_preproc" >&6
23033
23034# So? What about this header?
ac1cb8d3
VS
23035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036 yes:no: )
a848cd7e
SC
23037 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23038echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23039 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23040echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23041 ac_header_preproc=yes
a848cd7e 23042 ;;
ac1cb8d3 23043 no:yes:* )
a848cd7e
SC
23044 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23045echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23046 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23047echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23048 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23049echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23051echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23052 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23053echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23054 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23055echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23056 (
23057 cat <<\_ASBOX
ac1cb8d3
VS
23058## ----------------------------------------- ##
23059## Report this to wx-dev@lists.wxwidgets.org ##
23060## ----------------------------------------- ##
a848cd7e
SC
23061_ASBOX
23062 ) |
23063 sed "s/^/$as_me: WARNING: /" >&2
23064 ;;
23065esac
23066echo "$as_me:$LINENO: checking for zlib.h" >&5
23067echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23068if test "${ac_cv_header_zlib_h+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23070else
23071 ac_cv_header_zlib_h=$ac_header_preproc
23072fi
23073echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23074echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23075
23076fi
23077
23078
23079
23080 system_zlib_h_ok=$ac_cv_header_zlib_h
23081 fi
23082
23083 if test "$system_zlib_h_ok" = "yes"; then
23084 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23085echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23086if test "${ac_cv_lib_z_deflate+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088else
23089 ac_check_lib_save_LIBS=$LIBS
23090LIBS="-lz $LIBS"
23091cat >conftest.$ac_ext <<_ACEOF
23092/* confdefs.h. */
23093_ACEOF
23094cat confdefs.h >>conftest.$ac_ext
23095cat >>conftest.$ac_ext <<_ACEOF
23096/* end confdefs.h. */
23097
23098/* Override any gcc2 internal prototype to avoid an error. */
23099#ifdef __cplusplus
23100extern "C"
23101#endif
23102/* We use char because int might match the return type of a gcc2
23103 builtin and then its argument prototype would still apply. */
23104char deflate ();
23105int
23106main ()
23107{
23108deflate ();
23109 ;
23110 return 0;
23111}
23112_ACEOF
23113rm -f conftest.$ac_objext conftest$ac_exeext
23114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23115 (eval $ac_link) 2>conftest.er1
a848cd7e 23116 ac_status=$?
ac1cb8d3
VS
23117 grep -v '^ *+' conftest.er1 >conftest.err
23118 rm -f conftest.er1
23119 cat conftest.err >&5
a848cd7e
SC
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); } &&
ddd14b14
RR
23122 { ac_try='test -z "$ac_c_werror_flag"
23123 || test ! -s conftest.err'
ac1cb8d3
VS
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; } &&
23129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23132 ac_status=$?
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; }; then
23135 ac_cv_lib_z_deflate=yes
23136else
23137 echo "$as_me: failed program was:" >&5
23138sed 's/^/| /' conftest.$ac_ext >&5
23139
23140ac_cv_lib_z_deflate=no
23141fi
ac1cb8d3
VS
23142rm -f conftest.err conftest.$ac_objext \
23143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23144LIBS=$ac_check_lib_save_LIBS
23145fi
23146echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23147echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23148if test $ac_cv_lib_z_deflate = yes; then
23149 ZLIB_LINK=" -lz"
23150fi
23151
23152 fi
23153
23154 if test "x$ZLIB_LINK" = "x" ; then
23155 if test "$wxUSE_ZLIB" = "sys" ; then
23156 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23157echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23158 { (exit 1); exit 1; }; }
23159 else
23160 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23161echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23162 wxUSE_ZLIB=builtin
23163 fi
23164 else
23165 wxUSE_ZLIB=sys
23166 fi
23167 fi
23168fi
23169
23170
23171PNG_LINK=
23172if test "$wxUSE_LIBPNG" != "no" ; then
23173 cat >>confdefs.h <<\_ACEOF
23174#define wxUSE_LIBPNG 1
23175_ACEOF
23176
23177
23178 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23179 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23180echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23181 wxUSE_LIBPNG=sys
23182 fi
23183
23184 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23185 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23186echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23187 wxUSE_LIBPNG=builtin
23188 fi
23189
23190 if test "$wxUSE_MGL" != 1 ; then
23191 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23192 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23193echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23194if test "${ac_cv_header_png_h+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196else
23197 if test "$cross_compiling" = yes; then
23198 unset ac_cv_header_png_h
23199
23200else
23201 cat >conftest.$ac_ext <<_ACEOF
23202/* confdefs.h. */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h. */
23207
23208 #include <png.h>
23209 #include <stdio.h>
23210
23211 int main()
23212 {
23213 FILE *f=fopen("conftestval", "w");
23214 if (!f) exit(1);
23215 fprintf(f, "%s",
23216 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23217 exit(0);
23218 }
23219
23220_ACEOF
23221rm -f conftest$ac_exeext
23222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23223 (eval $ac_link) 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_header_png_h=`cat conftestval`
23233else
23234 echo "$as_me: program exited with status $ac_status" >&5
23235echo "$as_me: failed program was:" >&5
23236sed 's/^/| /' conftest.$ac_ext >&5
23237
23238( exit $ac_status )
23239ac_cv_header_png_h=no
23240fi
ac1cb8d3 23241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23242fi
23243
23244fi
23245echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23246echo "${ECHO_T}$ac_cv_header_png_h" >&6
23247 if test "${ac_cv_header_png_h+set}" = set; then
23248 echo "$as_me:$LINENO: checking for png.h" >&5
23249echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23250if test "${ac_cv_header_png_h+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252fi
23253echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23254echo "${ECHO_T}$ac_cv_header_png_h" >&6
23255else
23256 # Is the header compilable?
23257echo "$as_me:$LINENO: checking png.h usability" >&5
23258echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23259cat >conftest.$ac_ext <<_ACEOF
23260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
23265$ac_includes_default
23266#include <png.h>
23267_ACEOF
23268rm -f conftest.$ac_objext
23269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23270 (eval $ac_compile) 2>conftest.er1
a848cd7e 23271 ac_status=$?
ac1cb8d3
VS
23272 grep -v '^ *+' conftest.er1 >conftest.err
23273 rm -f conftest.er1
23274 cat conftest.err >&5
a848cd7e
SC
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } &&
ddd14b14
RR
23277 { ac_try='test -z "$ac_c_werror_flag"
23278 || test ! -s conftest.err'
ac1cb8d3
VS
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; } &&
23284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_header_compiler=yes
23291else
23292 echo "$as_me: failed program was:" >&5
23293sed 's/^/| /' conftest.$ac_ext >&5
23294
23295ac_header_compiler=no
23296fi
ac1cb8d3 23297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23299echo "${ECHO_T}$ac_header_compiler" >&6
23300
23301# Is the header present?
23302echo "$as_me:$LINENO: checking png.h presence" >&5
23303echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23304cat >conftest.$ac_ext <<_ACEOF
23305/* confdefs.h. */
23306_ACEOF
23307cat confdefs.h >>conftest.$ac_ext
23308cat >>conftest.$ac_ext <<_ACEOF
23309/* end confdefs.h. */
23310#include <png.h>
23311_ACEOF
23312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23314 ac_status=$?
23315 grep -v '^ *+' conftest.er1 >conftest.err
23316 rm -f conftest.er1
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } >/dev/null; then
23320 if test -s conftest.err; then
23321 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23323 else
23324 ac_cpp_err=
23325 fi
23326else
23327 ac_cpp_err=yes
23328fi
23329if test -z "$ac_cpp_err"; then
23330 ac_header_preproc=yes
23331else
23332 echo "$as_me: failed program was:" >&5
23333sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 ac_header_preproc=no
23336fi
23337rm -f conftest.err conftest.$ac_ext
23338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23339echo "${ECHO_T}$ac_header_preproc" >&6
23340
23341# So? What about this header?
ac1cb8d3
VS
23342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23343 yes:no: )
a848cd7e
SC
23344 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23345echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23346 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23347echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23348 ac_header_preproc=yes
a848cd7e 23349 ;;
ac1cb8d3 23350 no:yes:* )
a848cd7e
SC
23351 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23352echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23353 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23354echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23355 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23356echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23357 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23358echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23359 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23360echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23361 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23362echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23363 (
23364 cat <<\_ASBOX
ac1cb8d3
VS
23365## ----------------------------------------- ##
23366## Report this to wx-dev@lists.wxwidgets.org ##
23367## ----------------------------------------- ##
a848cd7e
SC
23368_ASBOX
23369 ) |
23370 sed "s/^/$as_me: WARNING: /" >&2
23371 ;;
23372esac
23373echo "$as_me:$LINENO: checking for png.h" >&5
23374echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23375if test "${ac_cv_header_png_h+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377else
23378 ac_cv_header_png_h=$ac_header_preproc
23379fi
23380echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23381echo "${ECHO_T}$ac_cv_header_png_h" >&6
23382
23383fi
23384
23385
23386
23387 if test "$ac_cv_header_png_h" = "yes"; then
23388 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23389echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23390if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23392else
23393 ac_check_lib_save_LIBS=$LIBS
23394LIBS="-lpng -lz -lm $LIBS"
23395cat >conftest.$ac_ext <<_ACEOF
23396/* confdefs.h. */
23397_ACEOF
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h. */
23401
23402/* Override any gcc2 internal prototype to avoid an error. */
23403#ifdef __cplusplus
23404extern "C"
23405#endif
23406/* We use char because int might match the return type of a gcc2
23407 builtin and then its argument prototype would still apply. */
23408char png_check_sig ();
23409int
23410main ()
23411{
23412png_check_sig ();
23413 ;
23414 return 0;
23415}
23416_ACEOF
23417rm -f conftest.$ac_objext conftest$ac_exeext
23418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23419 (eval $ac_link) 2>conftest.er1
a848cd7e 23420 ac_status=$?
ac1cb8d3
VS
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
a848cd7e
SC
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
ddd14b14
RR
23426 { ac_try='test -z "$ac_c_werror_flag"
23427 || test ! -s conftest.err'
ac1cb8d3
VS
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; } &&
23433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 ac_cv_lib_png_png_check_sig=yes
23440else
23441 echo "$as_me: failed program was:" >&5
23442sed 's/^/| /' conftest.$ac_ext >&5
23443
23444ac_cv_lib_png_png_check_sig=no
23445fi
ac1cb8d3
VS
23446rm -f conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23448LIBS=$ac_check_lib_save_LIBS
23449fi
23450echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23451echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23452if test $ac_cv_lib_png_png_check_sig = yes; then
23453 PNG_LINK=" -lpng -lz"
23454fi
23455
23456 fi
23457
23458 if test "x$PNG_LINK" = "x" ; then
23459 if test "$wxUSE_LIBPNG" = "sys" ; then
23460 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23461echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23462 { (exit 1); exit 1; }; }
23463 else
23464 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23465echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23466 wxUSE_LIBPNG=builtin
23467 fi
23468 else
23469 wxUSE_LIBPNG=sys
23470 fi
23471 fi
23472 fi
23473
23474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23475fi
23476
23477
23478JPEG_LINK=
23479if test "$wxUSE_LIBJPEG" != "no" ; then
23480 cat >>confdefs.h <<\_ACEOF
23481#define wxUSE_LIBJPEG 1
23482_ACEOF
23483
23484
23485 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23486 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23487echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23488 wxUSE_LIBJPEG=sys
23489 fi
23490
23491 if test "$wxUSE_MGL" != 1 ; then
23492 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23493 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23494echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23495 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497else
23498 cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504
23505 #undef HAVE_STDLIB_H
23506 #include <stdio.h>
23507 #include <jpeglib.h>
23508
23509int
23510main ()
23511{
23512
23513
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23520 (eval $ac_compile) 2>conftest.er1
a848cd7e 23521 ac_status=$?
ac1cb8d3
VS
23522 grep -v '^ *+' conftest.er1 >conftest.err
23523 rm -f conftest.er1
23524 cat conftest.err >&5
a848cd7e
SC
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } &&
ddd14b14
RR
23527 { ac_try='test -z "$ac_c_werror_flag"
23528 || test ! -s conftest.err'
ac1cb8d3
VS
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; } &&
23534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_cv_header_jpeglib_h=yes
23541else
23542 echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545ac_cv_header_jpeglib_h=no
23546
23547fi
ac1cb8d3 23548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23549
23550fi
23551
23552 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23553echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23554
23555 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23556 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23557echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23558if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561 ac_check_lib_save_LIBS=$LIBS
23562LIBS="-ljpeg $LIBS"
23563cat >conftest.$ac_ext <<_ACEOF
23564/* confdefs.h. */
23565_ACEOF
23566cat confdefs.h >>conftest.$ac_ext
23567cat >>conftest.$ac_ext <<_ACEOF
23568/* end confdefs.h. */
23569
23570/* Override any gcc2 internal prototype to avoid an error. */
23571#ifdef __cplusplus
23572extern "C"
23573#endif
23574/* We use char because int might match the return type of a gcc2
23575 builtin and then its argument prototype would still apply. */
23576char jpeg_read_header ();
23577int
23578main ()
23579{
23580jpeg_read_header ();
23581 ;
23582 return 0;
23583}
23584_ACEOF
23585rm -f conftest.$ac_objext conftest$ac_exeext
23586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23587 (eval $ac_link) 2>conftest.er1
a848cd7e 23588 ac_status=$?
ac1cb8d3
VS
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
a848cd7e
SC
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } &&
ddd14b14
RR
23594 { ac_try='test -z "$ac_c_werror_flag"
23595 || test ! -s conftest.err'
ac1cb8d3
VS
23596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); }; } &&
23601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; }; then
23607 ac_cv_lib_jpeg_jpeg_read_header=yes
23608else
23609 echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
23612ac_cv_lib_jpeg_jpeg_read_header=no
23613fi
ac1cb8d3
VS
23614rm -f conftest.err conftest.$ac_objext \
23615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23616LIBS=$ac_check_lib_save_LIBS
23617fi
23618echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23619echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23620if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23621 JPEG_LINK=" -ljpeg"
23622fi
23623
23624 fi
23625
23626 if test "x$JPEG_LINK" = "x" ; then
23627 if test "$wxUSE_LIBJPEG" = "sys" ; then
23628 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23629echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23630 { (exit 1); exit 1; }; }
23631 else
23632 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23633echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23634 wxUSE_LIBJPEG=builtin
23635 fi
23636 else
23637 wxUSE_LIBJPEG=sys
23638 fi
23639 fi
23640 fi
23641fi
23642
23643
23644TIFF_LINK=
23645TIFF_PREREQ_LINKS=-lm
23646if test "$wxUSE_LIBTIFF" != "no" ; then
23647 cat >>confdefs.h <<\_ACEOF
23648#define wxUSE_LIBTIFF 1
23649_ACEOF
23650
23651
23652 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23653 if test "$wxUSE_LIBJPEG" = "sys"; then
23654 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23655 fi
23656 if test "$wxUSE_ZLIB" = "sys"; then
23657 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23658 fi
23659 if test "${ac_cv_header_tiffio_h+set}" = set; then
23660 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23661echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23662if test "${ac_cv_header_tiffio_h+set}" = set; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664fi
23665echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23666echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23667else
23668 # Is the header compilable?
23669echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23670echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23671cat >conftest.$ac_ext <<_ACEOF
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
23677$ac_includes_default
23678#include <tiffio.h>
23679_ACEOF
23680rm -f conftest.$ac_objext
23681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23682 (eval $ac_compile) 2>conftest.er1
a848cd7e 23683 ac_status=$?
ac1cb8d3
VS
23684 grep -v '^ *+' conftest.er1 >conftest.err
23685 rm -f conftest.er1
23686 cat conftest.err >&5
a848cd7e
SC
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } &&
ddd14b14
RR
23689 { ac_try='test -z "$ac_c_werror_flag"
23690 || test ! -s conftest.err'
ac1cb8d3
VS
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; } &&
23696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }; then
23702 ac_header_compiler=yes
23703else
23704 echo "$as_me: failed program was:" >&5
23705sed 's/^/| /' conftest.$ac_ext >&5
23706
23707ac_header_compiler=no
23708fi
ac1cb8d3 23709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23711echo "${ECHO_T}$ac_header_compiler" >&6
23712
23713# Is the header present?
23714echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23715echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23716cat >conftest.$ac_ext <<_ACEOF
23717/* confdefs.h. */
23718_ACEOF
23719cat confdefs.h >>conftest.$ac_ext
23720cat >>conftest.$ac_ext <<_ACEOF
23721/* end confdefs.h. */
23722#include <tiffio.h>
23723_ACEOF
23724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } >/dev/null; then
23732 if test -s conftest.err; then
23733 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23735 else
23736 ac_cpp_err=
23737 fi
23738else
23739 ac_cpp_err=yes
23740fi
23741if test -z "$ac_cpp_err"; then
23742 ac_header_preproc=yes
23743else
23744 echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747 ac_header_preproc=no
23748fi
23749rm -f conftest.err conftest.$ac_ext
23750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23751echo "${ECHO_T}$ac_header_preproc" >&6
23752
23753# So? What about this header?
ac1cb8d3
VS
23754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23755 yes:no: )
a848cd7e
SC
23756 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23757echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23758 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23759echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23760 ac_header_preproc=yes
a848cd7e 23761 ;;
ac1cb8d3 23762 no:yes:* )
a848cd7e
SC
23763 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23764echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23765 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23766echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23767 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23768echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23769 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23770echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23771 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23772echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23773 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23774echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23775 (
23776 cat <<\_ASBOX
ac1cb8d3
VS
23777## ----------------------------------------- ##
23778## Report this to wx-dev@lists.wxwidgets.org ##
23779## ----------------------------------------- ##
a848cd7e
SC
23780_ASBOX
23781 ) |
23782 sed "s/^/$as_me: WARNING: /" >&2
23783 ;;
23784esac
23785echo "$as_me:$LINENO: checking for tiffio.h" >&5
23786echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23787if test "${ac_cv_header_tiffio_h+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789else
23790 ac_cv_header_tiffio_h=$ac_header_preproc
23791fi
23792echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23793echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23794
23795fi
23796if test $ac_cv_header_tiffio_h = yes; then
23797
23798 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23799echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23800if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23802else
23803 ac_check_lib_save_LIBS=$LIBS
23804LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23805cat >conftest.$ac_ext <<_ACEOF
23806/* confdefs.h. */
23807_ACEOF
23808cat confdefs.h >>conftest.$ac_ext
23809cat >>conftest.$ac_ext <<_ACEOF
23810/* end confdefs.h. */
23811
23812/* Override any gcc2 internal prototype to avoid an error. */
23813#ifdef __cplusplus
23814extern "C"
23815#endif
23816/* We use char because int might match the return type of a gcc2
23817 builtin and then its argument prototype would still apply. */
23818char TIFFError ();
23819int
23820main ()
23821{
23822TIFFError ();
23823 ;
23824 return 0;
23825}
23826_ACEOF
23827rm -f conftest.$ac_objext conftest$ac_exeext
23828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23829 (eval $ac_link) 2>conftest.er1
a848cd7e 23830 ac_status=$?
ac1cb8d3
VS
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
a848cd7e
SC
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
ddd14b14
RR
23836 { ac_try='test -z "$ac_c_werror_flag"
23837 || test ! -s conftest.err'
ac1cb8d3
VS
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 ac_cv_lib_tiff_TIFFError=yes
23850else
23851 echo "$as_me: failed program was:" >&5
23852sed 's/^/| /' conftest.$ac_ext >&5
23853
23854ac_cv_lib_tiff_TIFFError=no
23855fi
ac1cb8d3
VS
23856rm -f conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23858LIBS=$ac_check_lib_save_LIBS
23859fi
23860echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23861echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23862if test $ac_cv_lib_tiff_TIFFError = yes; then
23863 TIFF_LINK=" -ltiff"
23864fi
23865
23866
23867
23868fi
23869
23870
23871
23872 if test "x$TIFF_LINK" = "x" ; then
23873 if test "$wxUSE_LIBTIFF" = "sys" ; then
23874 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23875echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23876 { (exit 1); exit 1; }; }
23877 else
23878 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23879echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23880 wxUSE_LIBTIFF=builtin
23881 fi
23882 else
23883 wxUSE_LIBTIFF=sys
23884 fi
23885 fi
23886fi
23887
23888
47a7e797
MW
23889if test "$wxUSE_WCHAR_T" != "yes"; then
23890 if test "$wxUSE_EXPAT" != "no"; then
23891 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23892echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23893 wxUSE_EXPAT=no
23894 fi
23895 if test "$wxUSE_XML" != "no"; then
23896 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23897echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23898 wxUSE_XML=no
23899 fi
23900fi
23901
a848cd7e
SC
23902if test "$wxUSE_EXPAT" != "no"; then
23903 wxUSE_XML=yes
23904 cat >>confdefs.h <<\_ACEOF
23905#define wxUSE_EXPAT 1
23906_ACEOF
23907
23908 cat >>confdefs.h <<\_ACEOF
23909#define wxUSE_XML 1
23910_ACEOF
23911
23912
23913 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23914 if test "${ac_cv_header_expat_h+set}" = set; then
23915 echo "$as_me:$LINENO: checking for expat.h" >&5
23916echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23917if test "${ac_cv_header_expat_h+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23919fi
23920echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23921echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23922else
23923 # Is the header compilable?
23924echo "$as_me:$LINENO: checking expat.h usability" >&5
23925echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23926cat >conftest.$ac_ext <<_ACEOF
23927/* confdefs.h. */
23928_ACEOF
23929cat confdefs.h >>conftest.$ac_ext
23930cat >>conftest.$ac_ext <<_ACEOF
23931/* end confdefs.h. */
23932$ac_includes_default
23933#include <expat.h>
23934_ACEOF
23935rm -f conftest.$ac_objext
23936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23937 (eval $ac_compile) 2>conftest.er1
a848cd7e 23938 ac_status=$?
ac1cb8d3
VS
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
a848cd7e
SC
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } &&
ddd14b14
RR
23944 { ac_try='test -z "$ac_c_werror_flag"
23945 || test ! -s conftest.err'
ac1cb8d3
VS
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; } &&
23951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; }; then
23957 ac_header_compiler=yes
23958else
23959 echo "$as_me: failed program was:" >&5
23960sed 's/^/| /' conftest.$ac_ext >&5
23961
23962ac_header_compiler=no
23963fi
ac1cb8d3 23964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23966echo "${ECHO_T}$ac_header_compiler" >&6
23967
23968# Is the header present?
23969echo "$as_me:$LINENO: checking expat.h presence" >&5
23970echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23971cat >conftest.$ac_ext <<_ACEOF
23972/* confdefs.h. */
23973_ACEOF
23974cat confdefs.h >>conftest.$ac_ext
23975cat >>conftest.$ac_ext <<_ACEOF
23976/* end confdefs.h. */
23977#include <expat.h>
23978_ACEOF
23979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23981 ac_status=$?
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } >/dev/null; then
23987 if test -s conftest.err; then
23988 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23990 else
23991 ac_cpp_err=
23992 fi
23993else
23994 ac_cpp_err=yes
23995fi
23996if test -z "$ac_cpp_err"; then
23997 ac_header_preproc=yes
23998else
23999 echo "$as_me: failed program was:" >&5
24000sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ac_header_preproc=no
24003fi
24004rm -f conftest.err conftest.$ac_ext
24005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24006echo "${ECHO_T}$ac_header_preproc" >&6
24007
24008# So? What about this header?
ac1cb8d3
VS
24009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24010 yes:no: )
a848cd7e
SC
24011 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24012echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24013 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24014echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24015 ac_header_preproc=yes
a848cd7e 24016 ;;
ac1cb8d3 24017 no:yes:* )
a848cd7e
SC
24018 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24019echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24020 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24021echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24022 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24023echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24024 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24025echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24026 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24027echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24028 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24029echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24030 (
24031 cat <<\_ASBOX
ac1cb8d3
VS
24032## ----------------------------------------- ##
24033## Report this to wx-dev@lists.wxwidgets.org ##
24034## ----------------------------------------- ##
a848cd7e
SC
24035_ASBOX
24036 ) |
24037 sed "s/^/$as_me: WARNING: /" >&2
24038 ;;
24039esac
24040echo "$as_me:$LINENO: checking for expat.h" >&5
24041echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24042if test "${ac_cv_header_expat_h+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24044else
24045 ac_cv_header_expat_h=$ac_header_preproc
24046fi
24047echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24048echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24049
24050fi
24051if test $ac_cv_header_expat_h = yes; then
24052 found_expat_h=1
24053fi
24054
24055
24056 if test "x$found_expat_h" = "x1"; then
24057 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24058echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24059if test "${wx_cv_expat_is_not_broken+set}" = set; then
24060 echo $ECHO_N "(cached) $ECHO_C" >&6
24061else
24062
24063
24064
24065 ac_ext=cc
24066ac_cpp='$CXXCPP $CPPFLAGS'
24067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24070
24071 cat >conftest.$ac_ext <<_ACEOF
24072/* confdefs.h. */
24073_ACEOF
24074cat confdefs.h >>conftest.$ac_ext
24075cat >>conftest.$ac_ext <<_ACEOF
24076/* end confdefs.h. */
24077#include <expat.h>
24078int
24079main ()
24080{
24081
24082 ;
24083 return 0;
24084}
24085_ACEOF
24086rm -f conftest.$ac_objext
24087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24088 (eval $ac_compile) 2>conftest.er1
a848cd7e 24089 ac_status=$?
ac1cb8d3
VS
24090 grep -v '^ *+' conftest.er1 >conftest.err
24091 rm -f conftest.er1
24092 cat conftest.err >&5
a848cd7e
SC
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
ddd14b14
RR
24095 { ac_try='test -z "$ac_cxx_werror_flag"
24096 || test ! -s conftest.err'
ac1cb8d3
VS
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24099 ac_status=$?
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; } &&
24102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24105 ac_status=$?
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; }; then
24108 wx_cv_expat_is_not_broken=yes
24109else
24110 echo "$as_me: failed program was:" >&5
24111sed 's/^/| /' conftest.$ac_ext >&5
24112
24113wx_cv_expat_is_not_broken=no
24114
24115fi
ac1cb8d3 24116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24117 ac_ext=c
24118ac_cpp='$CPP $CPPFLAGS'
24119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24121ac_compiler_gnu=$ac_cv_c_compiler_gnu
24122
24123
24124
24125fi
24126echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24127echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24128 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24129 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24130echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24131if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133else
24134 ac_check_lib_save_LIBS=$LIBS
24135LIBS="-lexpat $LIBS"
24136cat >conftest.$ac_ext <<_ACEOF
24137/* confdefs.h. */
24138_ACEOF
24139cat confdefs.h >>conftest.$ac_ext
24140cat >>conftest.$ac_ext <<_ACEOF
24141/* end confdefs.h. */
24142
24143/* Override any gcc2 internal prototype to avoid an error. */
24144#ifdef __cplusplus
24145extern "C"
24146#endif
24147/* We use char because int might match the return type of a gcc2
24148 builtin and then its argument prototype would still apply. */
24149char XML_ParserCreate ();
24150int
24151main ()
24152{
24153XML_ParserCreate ();
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext conftest$ac_exeext
24159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24160 (eval $ac_link) 2>conftest.er1
a848cd7e 24161 ac_status=$?
ac1cb8d3
VS
24162 grep -v '^ *+' conftest.er1 >conftest.err
24163 rm -f conftest.er1
24164 cat conftest.err >&5
a848cd7e
SC
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
ddd14b14
RR
24167 { ac_try='test -z "$ac_c_werror_flag"
24168 || test ! -s conftest.err'
ac1cb8d3
VS
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24171 ac_status=$?
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; } &&
24174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 ac_cv_lib_expat_XML_ParserCreate=yes
24181else
24182 echo "$as_me: failed program was:" >&5
24183sed 's/^/| /' conftest.$ac_ext >&5
24184
24185ac_cv_lib_expat_XML_ParserCreate=no
24186fi
ac1cb8d3
VS
24187rm -f conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24189LIBS=$ac_check_lib_save_LIBS
24190fi
24191echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24192echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24193if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24194 EXPAT_LINK=" -lexpat"
24195fi
24196
24197 fi
24198 fi
24199 if test "x$EXPAT_LINK" = "x" ; then
24200 if test "$wxUSE_EXPAT" = "sys" ; then
24201 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24202echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24203 { (exit 1); exit 1; }; }
24204 else
24205 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24206echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24207 wxUSE_EXPAT=builtin
24208 fi
24209 else
24210 wxUSE_EXPAT=sys
24211 fi
24212 fi
24213 if test "$wxUSE_EXPAT" = "builtin" ; then
24214
24215
24216subdirs="$subdirs src/expat"
24217
24218 fi
24219fi
24220
24221
24222
24223if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24224 if test "${ac_cv_header_mspack_h+set}" = set; then
24225 echo "$as_me:$LINENO: checking for mspack.h" >&5
24226echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24227if test "${ac_cv_header_mspack_h+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24229fi
24230echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24231echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24232else
24233 # Is the header compilable?
24234echo "$as_me:$LINENO: checking mspack.h usability" >&5
24235echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24236cat >conftest.$ac_ext <<_ACEOF
24237/* confdefs.h. */
24238_ACEOF
24239cat confdefs.h >>conftest.$ac_ext
24240cat >>conftest.$ac_ext <<_ACEOF
24241/* end confdefs.h. */
24242$ac_includes_default
24243#include <mspack.h>
24244_ACEOF
24245rm -f conftest.$ac_objext
24246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24247 (eval $ac_compile) 2>conftest.er1
a848cd7e 24248 ac_status=$?
ac1cb8d3
VS
24249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
a848cd7e
SC
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
ddd14b14
RR
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
ac1cb8d3
VS
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_header_compiler=yes
24268else
24269 echo "$as_me: failed program was:" >&5
24270sed 's/^/| /' conftest.$ac_ext >&5
24271
24272ac_header_compiler=no
24273fi
ac1cb8d3 24274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24276echo "${ECHO_T}$ac_header_compiler" >&6
24277
24278# Is the header present?
24279echo "$as_me:$LINENO: checking mspack.h presence" >&5
24280echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24281cat >conftest.$ac_ext <<_ACEOF
24282/* confdefs.h. */
24283_ACEOF
24284cat confdefs.h >>conftest.$ac_ext
24285cat >>conftest.$ac_ext <<_ACEOF
24286/* end confdefs.h. */
24287#include <mspack.h>
24288_ACEOF
24289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24291 ac_status=$?
24292 grep -v '^ *+' conftest.er1 >conftest.err
24293 rm -f conftest.er1
24294 cat conftest.err >&5
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } >/dev/null; then
24297 if test -s conftest.err; then
24298 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24300 else
24301 ac_cpp_err=
24302 fi
24303else
24304 ac_cpp_err=yes
24305fi
24306if test -z "$ac_cpp_err"; then
24307 ac_header_preproc=yes
24308else
24309 echo "$as_me: failed program was:" >&5
24310sed 's/^/| /' conftest.$ac_ext >&5
24311
24312 ac_header_preproc=no
24313fi
24314rm -f conftest.err conftest.$ac_ext
24315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24316echo "${ECHO_T}$ac_header_preproc" >&6
24317
24318# So? What about this header?
ac1cb8d3
VS
24319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24320 yes:no: )
a848cd7e
SC
24321 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24322echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24323 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24324echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24325 ac_header_preproc=yes
a848cd7e 24326 ;;
ac1cb8d3 24327 no:yes:* )
a848cd7e
SC
24328 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24329echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24330 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24331echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24332 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24333echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24334 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24335echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24336 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24337echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24338 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24339echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24340 (
24341 cat <<\_ASBOX
ac1cb8d3
VS
24342## ----------------------------------------- ##
24343## Report this to wx-dev@lists.wxwidgets.org ##
24344## ----------------------------------------- ##
a848cd7e
SC
24345_ASBOX
24346 ) |
24347 sed "s/^/$as_me: WARNING: /" >&2
24348 ;;
24349esac
24350echo "$as_me:$LINENO: checking for mspack.h" >&5
24351echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24352if test "${ac_cv_header_mspack_h+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24354else
24355 ac_cv_header_mspack_h=$ac_header_preproc
24356fi
24357echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24358echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24359
24360fi
24361if test $ac_cv_header_mspack_h = yes; then
24362 found_mspack_h=1
24363fi
24364
24365
24366 if test "x$found_mspack_h" = "x1"; then
24367 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24368echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24369if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24370 echo $ECHO_N "(cached) $ECHO_C" >&6
24371else
24372 ac_check_lib_save_LIBS=$LIBS
24373LIBS="-lmspack $LIBS"
24374cat >conftest.$ac_ext <<_ACEOF
24375/* confdefs.h. */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h. */
24380
24381/* Override any gcc2 internal prototype to avoid an error. */
24382#ifdef __cplusplus
24383extern "C"
24384#endif
24385/* We use char because int might match the return type of a gcc2
24386 builtin and then its argument prototype would still apply. */
24387char mspack_create_chm_decompressor ();
24388int
24389main ()
24390{
24391mspack_create_chm_decompressor ();
24392 ;
24393 return 0;
24394}
24395_ACEOF
24396rm -f conftest.$ac_objext conftest$ac_exeext
24397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24398 (eval $ac_link) 2>conftest.er1
a848cd7e 24399 ac_status=$?
ac1cb8d3
VS
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
a848cd7e
SC
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } &&
ddd14b14
RR
24405 { ac_try='test -z "$ac_c_werror_flag"
24406 || test ! -s conftest.err'
ac1cb8d3
VS
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; } &&
24412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24415 ac_status=$?
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; }; then
24418 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24419else
24420 echo "$as_me: failed program was:" >&5
24421sed 's/^/| /' conftest.$ac_ext >&5
24422
24423ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24424fi
ac1cb8d3
VS
24425rm -f conftest.err conftest.$ac_objext \
24426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24427LIBS=$ac_check_lib_save_LIBS
24428fi
24429echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24430echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24431if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24432 MSPACK_LINK=" -lmspack"
24433fi
24434
24435 fi
24436 if test "x$MSPACK_LINK" = "x" ; then
24437 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24438 fi
24439fi
24440
24441if test "$wxUSE_LIBMSPACK" != "no"; then
24442 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24443#define wxUSE_LIBMSPACK 1
24444_ACEOF
24445
a848cd7e
SC
24446fi
24447
24448
24449
24450AFMINSTALL=
24451WIN32INSTALL=
24452
24453TOOLKIT=
24454TOOLKIT_INCLUDE=
24455WIDGET_SET=
24456
24457if test "$USE_WIN32" = 1 ; then
24458
24459for ac_header in w32api.h
24460do
24461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24462if eval "test \"\${$as_ac_Header+set}\" = set"; then
24463 echo "$as_me:$LINENO: checking for $ac_header" >&5
24464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24465if eval "test \"\${$as_ac_Header+set}\" = set"; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24467fi
24468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24470else
24471 # Is the header compilable?
24472echo "$as_me:$LINENO: checking $ac_header usability" >&5
24473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24474cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
24480$ac_includes_default
24481#include <$ac_header>
24482_ACEOF
24483rm -f conftest.$ac_objext
24484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24485 (eval $ac_compile) 2>conftest.er1
a848cd7e 24486 ac_status=$?
ac1cb8d3
VS
24487 grep -v '^ *+' conftest.er1 >conftest.err
24488 rm -f conftest.er1
24489 cat conftest.err >&5
a848cd7e
SC
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } &&
ddd14b14
RR
24492 { ac_try='test -z "$ac_c_werror_flag"
24493 || test ! -s conftest.err'
ac1cb8d3
VS
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24496 ac_status=$?
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; } &&
24499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24501 (eval $ac_try) 2>&5
24502 ac_status=$?
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); }; }; then
24505 ac_header_compiler=yes
24506else
24507 echo "$as_me: failed program was:" >&5
24508sed 's/^/| /' conftest.$ac_ext >&5
24509
24510ac_header_compiler=no
24511fi
ac1cb8d3 24512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24514echo "${ECHO_T}$ac_header_compiler" >&6
24515
24516# Is the header present?
24517echo "$as_me:$LINENO: checking $ac_header presence" >&5
24518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24519cat >conftest.$ac_ext <<_ACEOF
24520/* confdefs.h. */
24521_ACEOF
24522cat confdefs.h >>conftest.$ac_ext
24523cat >>conftest.$ac_ext <<_ACEOF
24524/* end confdefs.h. */
24525#include <$ac_header>
24526_ACEOF
24527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24529 ac_status=$?
24530 grep -v '^ *+' conftest.er1 >conftest.err
24531 rm -f conftest.er1
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } >/dev/null; then
24535 if test -s conftest.err; then
24536 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24538 else
24539 ac_cpp_err=
24540 fi
24541else
24542 ac_cpp_err=yes
24543fi
24544if test -z "$ac_cpp_err"; then
24545 ac_header_preproc=yes
24546else
24547 echo "$as_me: failed program was:" >&5
24548sed 's/^/| /' conftest.$ac_ext >&5
24549
24550 ac_header_preproc=no
24551fi
24552rm -f conftest.err conftest.$ac_ext
24553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24554echo "${ECHO_T}$ac_header_preproc" >&6
24555
24556# So? What about this header?
ac1cb8d3
VS
24557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24558 yes:no: )
a848cd7e
SC
24559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24563 ac_header_preproc=yes
a848cd7e 24564 ;;
ac1cb8d3 24565 no:yes:* )
a848cd7e
SC
24566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24578 (
24579 cat <<\_ASBOX
ac1cb8d3
VS
24580## ----------------------------------------- ##
24581## Report this to wx-dev@lists.wxwidgets.org ##
24582## ----------------------------------------- ##
a848cd7e
SC
24583_ASBOX
24584 ) |
24585 sed "s/^/$as_me: WARNING: /" >&2
24586 ;;
24587esac
24588echo "$as_me:$LINENO: checking for $ac_header" >&5
24589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24590if eval "test \"\${$as_ac_Header+set}\" = set"; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24592else
ac1cb8d3 24593 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24594fi
24595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24597
24598fi
24599if test `eval echo '${'$as_ac_Header'}'` = yes; then
24600 cat >>confdefs.h <<_ACEOF
24601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24602_ACEOF
24603
24604fi
24605
24606done
24607
24608 if test "${ac_cv_header_windows_h+set}" = set; then
24609 echo "$as_me:$LINENO: checking for windows.h" >&5
24610echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24611if test "${ac_cv_header_windows_h+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24613fi
24614echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24615echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24616else
24617 # Is the header compilable?
24618echo "$as_me:$LINENO: checking windows.h usability" >&5
24619echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24620cat >conftest.$ac_ext <<_ACEOF
24621/* confdefs.h. */
24622_ACEOF
24623cat confdefs.h >>conftest.$ac_ext
24624cat >>conftest.$ac_ext <<_ACEOF
24625/* end confdefs.h. */
24626$ac_includes_default
24627#include <windows.h>
24628_ACEOF
24629rm -f conftest.$ac_objext
24630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24631 (eval $ac_compile) 2>conftest.er1
a848cd7e 24632 ac_status=$?
ac1cb8d3
VS
24633 grep -v '^ *+' conftest.er1 >conftest.err
24634 rm -f conftest.er1
24635 cat conftest.err >&5
a848cd7e
SC
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
ddd14b14
RR
24638 { ac_try='test -z "$ac_c_werror_flag"
24639 || test ! -s conftest.err'
ac1cb8d3
VS
24640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 ac_header_compiler=yes
24652else
24653 echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656ac_header_compiler=no
24657fi
ac1cb8d3 24658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24660echo "${ECHO_T}$ac_header_compiler" >&6
24661
24662# Is the header present?
24663echo "$as_me:$LINENO: checking windows.h presence" >&5
24664echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24665cat >conftest.$ac_ext <<_ACEOF
24666/* confdefs.h. */
24667_ACEOF
24668cat confdefs.h >>conftest.$ac_ext
24669cat >>conftest.$ac_ext <<_ACEOF
24670/* end confdefs.h. */
24671#include <windows.h>
24672_ACEOF
24673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24675 ac_status=$?
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } >/dev/null; then
24681 if test -s conftest.err; then
24682 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24684 else
24685 ac_cpp_err=
24686 fi
24687else
24688 ac_cpp_err=yes
24689fi
24690if test -z "$ac_cpp_err"; then
24691 ac_header_preproc=yes
24692else
24693 echo "$as_me: failed program was:" >&5
24694sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ac_header_preproc=no
24697fi
24698rm -f conftest.err conftest.$ac_ext
24699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24700echo "${ECHO_T}$ac_header_preproc" >&6
24701
24702# So? What about this header?
ac1cb8d3
VS
24703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24704 yes:no: )
a848cd7e
SC
24705 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24706echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24707 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24708echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24709 ac_header_preproc=yes
a848cd7e 24710 ;;
ac1cb8d3 24711 no:yes:* )
a848cd7e
SC
24712 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24713echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24714 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24715echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24717echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24719echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24720 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24721echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24722 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24723echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24724 (
24725 cat <<\_ASBOX
ac1cb8d3
VS
24726## ----------------------------------------- ##
24727## Report this to wx-dev@lists.wxwidgets.org ##
24728## ----------------------------------------- ##
a848cd7e
SC
24729_ASBOX
24730 ) |
24731 sed "s/^/$as_me: WARNING: /" >&2
24732 ;;
24733esac
24734echo "$as_me:$LINENO: checking for windows.h" >&5
24735echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24736if test "${ac_cv_header_windows_h+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738else
24739 ac_cv_header_windows_h=$ac_header_preproc
24740fi
24741echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24742echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24743
24744fi
24745if test $ac_cv_header_windows_h = yes; then
24746 :
24747else
24748
24749 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24750echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24751 { (exit 1); exit 1; }; }
24752
24753fi
24754
24755
24756
24757 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24758
24759 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24760 LIBS="$LIBS -loleacc"
24761 fi
24762
24763 case "${host}" in
24764 *-*-cygwin* )
24765 LIBS="$LIBS -lkernel32 -luser32"
24766 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24767 esac
24768
24769 if test "$wxUSE_ODBC" = "sys" ; then
24770 wxUSE_ODBC = "yes"
24771 fi
24772 if test "$wxUSE_ODBC" = "yes" ; then
24773 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24774 cat >>confdefs.h <<\_ACEOF
24775#define wxUSE_ODBC 1
24776_ACEOF
24777
24778 fi
24779
24780 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24781 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24782
24783 WIN32INSTALL=win32install
24784fi
24785
24786if test "$wxUSE_GUI" = "yes"; then
24787 USE_GUI=1
24788
24789 GUI_TK_LIBRARY=
24790
24791 WXGTK12=
24792 WXGTK127=
24793 WXGTK20=
24794 WXGPE=
24795
207bc66c
RN
24796 if test "$wxUSE_COCOA" = 1 ; then
24797 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24798 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24799echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24800 wxUSE_PRINTING_ARCHITECTURE=no
24801 fi
24802 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24803 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24804echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24805 wxUSE_DRAG_AND_DROP=no
24806 fi
24807 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24808 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24809echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24810 wxUSE_DRAGIMAGE=no
24811 fi
24812 fi
24813
a848cd7e
SC
24814 if test "$wxUSE_MSW" = 1 ; then
24815 TOOLKIT=MSW
24816 GUIDIST=MSW_DIST
24817
ceec2216 24818 case "${host}" in
a848cd7e
SC
24819 *-*-mingw32* )
24820 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24821 esac
24822 fi
24823
24824 if test "$wxUSE_GTK" = 1; then
24825 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24826echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24827
24828 gtk_version_cached=1
24829 if test "${wx_cv_lib_gtk+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832
24833 gtk_version_cached=0
24834 echo "$as_me:$LINENO: result: " >&5
24835echo "${ECHO_T}" >&6
24836
24837 GTK_MODULES=
24838 if test "$wxUSE_THREADS" = "yes"; then
24839 GTK_MODULES=gthread
24840 fi
24841
f597b41c 24842 wx_cv_lib_gtk=
f34ca037 24843 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24844 # Check whether --enable-gtktest or --disable-gtktest was given.
24845if test "${enable_gtktest+set}" = set; then
24846 enableval="$enable_gtktest"
24847
24848else
24849 enable_gtktest=yes
24850fi;
24851
24852 pkg_config_args=gtk+-2.0
24853 for module in . $GTK_MODULES
24854 do
24855 case "$module" in
24856 gthread)
24857 pkg_config_args="$pkg_config_args gthread-2.0"
24858 ;;
24859 esac
24860 done
24861
24862 no_gtk=""
24863
24864 # Extract the first word of "pkg-config", so it can be a program name with args.
24865set dummy pkg-config; ac_word=$2
24866echo "$as_me:$LINENO: checking for $ac_word" >&5
24867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24868if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870else
24871 case $PKG_CONFIG in
24872 [\\/]* | ?:[\\/]*)
24873 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24874 ;;
24875 *)
24876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24877for as_dir in $PATH
24878do
24879 IFS=$as_save_IFS
24880 test -z "$as_dir" && as_dir=.
24881 for ac_exec_ext in '' $ac_executable_extensions; do
24882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24883 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24885 break 2
24886 fi
24887done
24888done
24889
24890 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24891 ;;
24892esac
24893fi
24894PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24895
24896if test -n "$PKG_CONFIG"; then
24897 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24898echo "${ECHO_T}$PKG_CONFIG" >&6
24899else
24900 echo "$as_me:$LINENO: result: no" >&5
24901echo "${ECHO_T}no" >&6
24902fi
24903
24904
24905 if test x$PKG_CONFIG != xno ; then
24906 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24907 :
24908 else
c2218763 24909 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24910 no_gtk=yes
24911 PKG_CONFIG=no
24912 fi
24913 else
24914 no_gtk=yes
24915 fi
24916
24917 min_gtk_version=2.0.0
24918 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24919echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24920
24921 if test x$PKG_CONFIG != xno ; then
24922 ## don't try to run the test against uninstalled libtool libs
24923 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24924 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24925 enable_gtktest=no
24926 fi
24927
24928 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24929 :
24930 else
24931 no_gtk=yes
24932 fi
24933 fi
24934
24935 if test x"$no_gtk" = x ; then
24936 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24937 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24938 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24940 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24942 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24944 if test "x$enable_gtktest" = "xyes" ; then
24945 ac_save_CFLAGS="$CFLAGS"
24946 ac_save_LIBS="$LIBS"
24947 CFLAGS="$CFLAGS $GTK_CFLAGS"
24948 LIBS="$GTK_LIBS $LIBS"
24949 rm -f conf.gtktest
24950 if test "$cross_compiling" = yes; then
24951 echo $ac_n "cross compiling; assumed OK... $ac_c"
24952else
24953 cat >conftest.$ac_ext <<_ACEOF
24954/* confdefs.h. */
24955_ACEOF
24956cat confdefs.h >>conftest.$ac_ext
24957cat >>conftest.$ac_ext <<_ACEOF
24958/* end confdefs.h. */
24959
24960#include <gtk/gtk.h>
24961#include <stdio.h>
24962#include <stdlib.h>
24963
24964int
24965main ()
24966{
24967 int major, minor, micro;
24968 char *tmp_version;
24969
24970 system ("touch conf.gtktest");
24971
24972 /* HP/UX 9 (%@#!) writes to sscanf strings */
24973 tmp_version = g_strdup("$min_gtk_version");
24974 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24975 printf("%s, bad version string\n", "$min_gtk_version");
24976 exit(1);
24977 }
24978
24979 if ((gtk_major_version != $gtk_config_major_version) ||
24980 (gtk_minor_version != $gtk_config_minor_version) ||
24981 (gtk_micro_version != $gtk_config_micro_version))
24982 {
24983 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24984 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24985 gtk_major_version, gtk_minor_version, gtk_micro_version);
24986 printf ("*** was found! If pkg-config was correct, then it is best\n");
24987 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24988 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24989 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24990 printf("*** required on your system.\n");
24991 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24992 printf("*** to point to the correct configuration files\n");
24993 }
24994 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24995 (gtk_minor_version != GTK_MINOR_VERSION) ||
24996 (gtk_micro_version != GTK_MICRO_VERSION))
24997 {
24998 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24999 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25000 printf("*** library (version %d.%d.%d)\n",
25001 gtk_major_version, gtk_minor_version, gtk_micro_version);
25002 }
25003 else
25004 {
25005 if ((gtk_major_version > major) ||
25006 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25007 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25008 {
25009 return 0;
25010 }
25011 else
25012 {
25013 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25014 gtk_major_version, gtk_minor_version, gtk_micro_version);
25015 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25016 major, minor, micro);
25017 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25018 printf("***\n");
25019 printf("*** If you have already installed a sufficiently new version, this error\n");
25020 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25021 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25022 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25023 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25024 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25025 printf("*** so that the correct libraries are found at run-time))\n");
25026 }
25027 }
25028 return 1;
25029}
25030
25031_ACEOF
25032rm -f conftest$ac_exeext
25033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25034 (eval $ac_link) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; }; then
25043 :
25044else
25045 echo "$as_me: program exited with status $ac_status" >&5
25046echo "$as_me: failed program was:" >&5
25047sed 's/^/| /' conftest.$ac_ext >&5
25048
25049( exit $ac_status )
25050no_gtk=yes
25051fi
ac1cb8d3 25052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25053fi
25054 CFLAGS="$ac_save_CFLAGS"
25055 LIBS="$ac_save_LIBS"
25056 fi
25057 fi
25058 if test "x$no_gtk" = x ; then
25059 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25060echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25061 wx_cv_lib_gtk=2.0
25062 else
25063 echo "$as_me:$LINENO: result: no" >&5
25064echo "${ECHO_T}no" >&6
25065 if test "$PKG_CONFIG" = "no" ; then
25066 echo "*** A new enough version of pkg-config was not found."
25067 echo "*** See http://pkgconfig.sourceforge.net"
25068 else
25069 if test -f conf.gtktest ; then
25070 :
25071 else
25072 echo "*** Could not run GTK+ test program, checking why..."
25073 ac_save_CFLAGS="$CFLAGS"
25074 ac_save_LIBS="$LIBS"
25075 CFLAGS="$CFLAGS $GTK_CFLAGS"
25076 LIBS="$LIBS $GTK_LIBS"
25077 cat >conftest.$ac_ext <<_ACEOF
25078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
25083
25084#include <gtk/gtk.h>
25085#include <stdio.h>
25086
25087int
25088main ()
25089{
25090 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25091 ;
25092 return 0;
25093}
25094_ACEOF
25095rm -f conftest.$ac_objext conftest$ac_exeext
25096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25097 (eval $ac_link) 2>conftest.er1
a848cd7e 25098 ac_status=$?
ac1cb8d3
VS
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
a848cd7e
SC
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
ddd14b14
RR
25104 { ac_try='test -z "$ac_c_werror_flag"
25105 || test ! -s conftest.err'
ac1cb8d3
VS
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 echo "*** The test program compiled, but did not run. This usually means"
25118 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25119 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25120 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25121 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25122 echo "*** is required on your system"
25123 echo "***"
25124 echo "*** If you have an old version installed, it is best to remove it, although"
25125 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25126else
25127 echo "$as_me: failed program was:" >&5
25128sed 's/^/| /' conftest.$ac_ext >&5
25129
25130 echo "*** The test program failed to compile or link. See the file config.log for the"
25131 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25132fi
ac1cb8d3
VS
25133rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25135 CFLAGS="$ac_save_CFLAGS"
25136 LIBS="$ac_save_LIBS"
25137 fi
25138 fi
25139 GTK_CFLAGS=""
25140 GTK_LIBS=""
25141 :
25142 fi
25143
25144
25145 rm -f conf.gtktest
25146
f597b41c
MW
25147 fi
25148
f34ca037
MW
25149 if test -z "$wx_cv_lib_gtk"; then
25150 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25151
25152# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25153if test "${with_gtk_prefix+set}" = set; then
25154 withval="$with_gtk_prefix"
25155 gtk_config_prefix="$withval"
25156else
25157 gtk_config_prefix=""
25158fi;
25159
25160# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25161if test "${with_gtk_exec_prefix+set}" = set; then
25162 withval="$with_gtk_exec_prefix"
25163 gtk_config_exec_prefix="$withval"
25164else
25165 gtk_config_exec_prefix=""
25166fi;
25167# Check whether --enable-gtktest or --disable-gtktest was given.
25168if test "${enable_gtktest+set}" = set; then
25169 enableval="$enable_gtktest"
25170
25171else
25172 enable_gtktest=yes
25173fi;
25174
25175 for module in . $GTK_MODULES
25176 do
25177 case "$module" in
25178 gthread)
25179 gtk_config_args="$gtk_config_args gthread"
25180 ;;
25181 esac
25182 done
25183
25184 if test x$gtk_config_exec_prefix != x ; then
25185 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25186 if test x${GTK_CONFIG+set} != xset ; then
25187 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25188 fi
25189 fi
25190 if test x$gtk_config_prefix != x ; then
25191 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25192 if test x${GTK_CONFIG+set} != xset ; then
25193 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25194 fi
25195 fi
25196
25197 # Extract the first word of "gtk-config", so it can be a program name with args.
25198set dummy gtk-config; ac_word=$2
25199echo "$as_me:$LINENO: checking for $ac_word" >&5
25200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25201if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204 case $GTK_CONFIG in
25205 [\\/]* | ?:[\\/]*)
25206 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25207 ;;
25208 *)
25209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25210for as_dir in $PATH
25211do
25212 IFS=$as_save_IFS
25213 test -z "$as_dir" && as_dir=.
25214 for ac_exec_ext in '' $ac_executable_extensions; do
25215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25216 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25218 break 2
25219 fi
25220done
25221done
25222
25223 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25224 ;;
25225esac
25226fi
25227GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25228
25229if test -n "$GTK_CONFIG"; then
25230 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25231echo "${ECHO_T}$GTK_CONFIG" >&6
25232else
25233 echo "$as_me:$LINENO: result: no" >&5
25234echo "${ECHO_T}no" >&6
25235fi
25236
25237 min_gtk_version=1.2.7
25238 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25239echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25240 no_gtk=""
25241 if test "$GTK_CONFIG" = "no" ; then
25242 no_gtk=yes
25243 else
25244 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25245 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25246 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25248 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25250 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25252 if test "x$enable_gtktest" = "xyes" ; then
25253 ac_save_CFLAGS="$CFLAGS"
25254 ac_save_LIBS="$LIBS"
25255 CFLAGS="$CFLAGS $GTK_CFLAGS"
25256 LIBS="$GTK_LIBS $LIBS"
25257 rm -f conf.gtktest
25258 if test "$cross_compiling" = yes; then
25259 echo $ac_n "cross compiling; assumed OK... $ac_c"
25260else
25261 cat >conftest.$ac_ext <<_ACEOF
25262/* confdefs.h. */
25263_ACEOF
25264cat confdefs.h >>conftest.$ac_ext
25265cat >>conftest.$ac_ext <<_ACEOF
25266/* end confdefs.h. */
25267
25268#include <gtk/gtk.h>
25269#include <stdio.h>
25270#include <stdlib.h>
25271
25272int
25273main ()
25274{
25275 int major, minor, micro;
25276 char *tmp_version;
25277
25278 system ("touch conf.gtktest");
25279
25280 /* HP/UX 9 (%@#!) writes to sscanf strings */
25281 tmp_version = g_strdup("$min_gtk_version");
25282 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25283 printf("%s, bad version string\n", "$min_gtk_version");
25284 exit(1);
25285 }
25286
25287 if ((gtk_major_version != $gtk_config_major_version) ||
25288 (gtk_minor_version != $gtk_config_minor_version) ||
25289 (gtk_micro_version != $gtk_config_micro_version))
25290 {
25291 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25292 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25293 gtk_major_version, gtk_minor_version, gtk_micro_version);
25294 printf ("*** was found! If gtk-config was correct, then it is best\n");
25295 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25296 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25297 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25298 printf("*** required on your system.\n");
25299 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25300 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25301 printf("*** before re-running configure\n");
25302 }
25303#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25304 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25305 (gtk_minor_version != GTK_MINOR_VERSION) ||
25306 (gtk_micro_version != GTK_MICRO_VERSION))
25307 {
25308 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25309 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25310 printf("*** library (version %d.%d.%d)\n",
25311 gtk_major_version, gtk_minor_version, gtk_micro_version);
25312 }
25313#endif /* defined (GTK_MAJOR_VERSION) ... */
25314 else
25315 {
25316 if ((gtk_major_version > major) ||
25317 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25318 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25319 {
25320 return 0;
25321 }
25322 else
25323 {
25324 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25325 gtk_major_version, gtk_minor_version, gtk_micro_version);
25326 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25327 major, minor, micro);
25328 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25329 printf("***\n");
25330 printf("*** If you have already installed a sufficiently new version, this error\n");
25331 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25332 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25333 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25334 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25335 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25336 printf("*** so that the correct libraries are found at run-time))\n");
25337 }
25338 }
25339 return 1;
25340}
25341
25342_ACEOF
25343rm -f conftest$ac_exeext
25344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345 (eval $ac_link) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350 (eval $ac_try) 2>&5
25351 ac_status=$?
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 :
25355else
25356 echo "$as_me: program exited with status $ac_status" >&5
25357echo "$as_me: failed program was:" >&5
25358sed 's/^/| /' conftest.$ac_ext >&5
25359
25360( exit $ac_status )
25361no_gtk=yes
25362fi
ac1cb8d3 25363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25364fi
25365 CFLAGS="$ac_save_CFLAGS"
25366 LIBS="$ac_save_LIBS"
25367 fi
25368 fi
25369 if test "x$no_gtk" = x ; then
25370 echo "$as_me:$LINENO: result: yes" >&5
25371echo "${ECHO_T}yes" >&6
25372 wx_cv_lib_gtk=1.2.7
25373 else
25374 echo "$as_me:$LINENO: result: no" >&5
25375echo "${ECHO_T}no" >&6
25376 if test "$GTK_CONFIG" = "no" ; then
25377 echo "*** The gtk-config script installed by GTK could not be found"
25378 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25379 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25380 echo "*** full path to gtk-config."
25381 else
25382 if test -f conf.gtktest ; then
25383 :
25384 else
25385 echo "*** Could not run GTK test program, checking why..."
25386 CFLAGS="$CFLAGS $GTK_CFLAGS"
25387 LIBS="$LIBS $GTK_LIBS"
25388 cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h. */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h. */
25394
25395#include <gtk/gtk.h>
25396#include <stdio.h>
25397
25398int
25399main ()
25400{
25401 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25402 ;
25403 return 0;
25404}
25405_ACEOF
25406rm -f conftest.$ac_objext conftest$ac_exeext
25407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25408 (eval $ac_link) 2>conftest.er1
a848cd7e 25409 ac_status=$?
ac1cb8d3
VS
25410 grep -v '^ *+' conftest.er1 >conftest.err
25411 rm -f conftest.er1
25412 cat conftest.err >&5
a848cd7e
SC
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
ddd14b14
RR
25415 { ac_try='test -z "$ac_c_werror_flag"
25416 || test ! -s conftest.err'
ac1cb8d3
VS
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; } &&
25422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; }; then
25428 echo "*** The test program compiled, but did not run. This usually means"
25429 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25430 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25431 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25432 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25433 echo "*** is required on your system"
25434 echo "***"
25435 echo "*** If you have an old version installed, it is best to remove it, although"
25436 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25437 echo "***"
25438 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25439 echo "*** came with the system with the command"
25440 echo "***"
25441 echo "*** rpm --erase --nodeps gtk gtk-devel"
25442else
25443 echo "$as_me: failed program was:" >&5
25444sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 echo "*** The test program failed to compile or link. See the file config.log for the"
25447 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25448 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25449 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25450fi
ac1cb8d3
VS
25451rm -f conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25453 CFLAGS="$ac_save_CFLAGS"
25454 LIBS="$ac_save_LIBS"
25455 fi
25456 fi
25457 GTK_CFLAGS=""
25458 GTK_LIBS=""
25459 :
25460 fi
25461
25462
25463 rm -f conf.gtktest
25464
25465
f34ca037 25466 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25467
25468# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25469if test "${with_gtk_prefix+set}" = set; then
25470 withval="$with_gtk_prefix"
25471 gtk_config_prefix="$withval"
25472else
25473 gtk_config_prefix=""
25474fi;
25475
25476# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25477if test "${with_gtk_exec_prefix+set}" = set; then
25478 withval="$with_gtk_exec_prefix"
25479 gtk_config_exec_prefix="$withval"
25480else
25481 gtk_config_exec_prefix=""
25482fi;
25483# Check whether --enable-gtktest or --disable-gtktest was given.
25484if test "${enable_gtktest+set}" = set; then
25485 enableval="$enable_gtktest"
25486
25487else
25488 enable_gtktest=yes
25489fi;
25490
25491 for module in . $GTK_MODULES
25492 do
25493 case "$module" in
25494 gthread)
25495 gtk_config_args="$gtk_config_args gthread"
25496 ;;
25497 esac
25498 done
25499
25500 if test x$gtk_config_exec_prefix != x ; then
25501 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25502 if test x${GTK_CONFIG+set} != xset ; then
25503 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25504 fi
25505 fi
25506 if test x$gtk_config_prefix != x ; then
25507 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25508 if test x${GTK_CONFIG+set} != xset ; then
25509 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25510 fi
25511 fi
25512
25513 # Extract the first word of "gtk-config", so it can be a program name with args.
25514set dummy gtk-config; ac_word=$2
25515echo "$as_me:$LINENO: checking for $ac_word" >&5
25516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25517if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25519else
25520 case $GTK_CONFIG in
25521 [\\/]* | ?:[\\/]*)
25522 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25523 ;;
25524 *)
25525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25526for as_dir in $PATH
25527do
25528 IFS=$as_save_IFS
25529 test -z "$as_dir" && as_dir=.
25530 for ac_exec_ext in '' $ac_executable_extensions; do
25531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25532 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25534 break 2
25535 fi
25536done
25537done
25538
25539 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25540 ;;
25541esac
25542fi
25543GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25544
25545if test -n "$GTK_CONFIG"; then
25546 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25547echo "${ECHO_T}$GTK_CONFIG" >&6
25548else
25549 echo "$as_me:$LINENO: result: no" >&5
25550echo "${ECHO_T}no" >&6
25551fi
25552
25553 min_gtk_version=1.2.3
25554 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25555echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25556 no_gtk=""
25557 if test "$GTK_CONFIG" = "no" ; then
25558 no_gtk=yes
25559 else
25560 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25561 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25562 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25564 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25566 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25568 if test "x$enable_gtktest" = "xyes" ; then
25569 ac_save_CFLAGS="$CFLAGS"
25570 ac_save_LIBS="$LIBS"
25571 CFLAGS="$CFLAGS $GTK_CFLAGS"
25572 LIBS="$GTK_LIBS $LIBS"
25573 rm -f conf.gtktest
25574 if test "$cross_compiling" = yes; then
25575 echo $ac_n "cross compiling; assumed OK... $ac_c"
25576else
25577 cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583
25584#include <gtk/gtk.h>
25585#include <stdio.h>
25586#include <stdlib.h>
25587
25588int
25589main ()
25590{
25591 int major, minor, micro;
25592 char *tmp_version;
25593
25594 system ("touch conf.gtktest");
25595
25596 /* HP/UX 9 (%@#!) writes to sscanf strings */
25597 tmp_version = g_strdup("$min_gtk_version");
25598 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25599 printf("%s, bad version string\n", "$min_gtk_version");
25600 exit(1);
25601 }
25602
25603 if ((gtk_major_version != $gtk_config_major_version) ||
25604 (gtk_minor_version != $gtk_config_minor_version) ||
25605 (gtk_micro_version != $gtk_config_micro_version))
25606 {
25607 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25608 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25609 gtk_major_version, gtk_minor_version, gtk_micro_version);
25610 printf ("*** was found! If gtk-config was correct, then it is best\n");
25611 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25612 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25613 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25614 printf("*** required on your system.\n");
25615 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25616 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25617 printf("*** before re-running configure\n");
25618 }
25619#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25620 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25621 (gtk_minor_version != GTK_MINOR_VERSION) ||
25622 (gtk_micro_version != GTK_MICRO_VERSION))
25623 {
25624 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25625 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25626 printf("*** library (version %d.%d.%d)\n",
25627 gtk_major_version, gtk_minor_version, gtk_micro_version);
25628 }
25629#endif /* defined (GTK_MAJOR_VERSION) ... */
25630 else
25631 {
25632 if ((gtk_major_version > major) ||
25633 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25634 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25635 {
25636 return 0;
25637 }
25638 else
25639 {
25640 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25641 gtk_major_version, gtk_minor_version, gtk_micro_version);
25642 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25643 major, minor, micro);
25644 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25645 printf("***\n");
25646 printf("*** If you have already installed a sufficiently new version, this error\n");
25647 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25648 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25649 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25650 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25651 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25652 printf("*** so that the correct libraries are found at run-time))\n");
25653 }
25654 }
25655 return 1;
25656}
25657
25658_ACEOF
25659rm -f conftest$ac_exeext
25660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25661 (eval $ac_link) 2>&5
25662 ac_status=$?
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
25670 :
25671else
25672 echo "$as_me: program exited with status $ac_status" >&5
25673echo "$as_me: failed program was:" >&5
25674sed 's/^/| /' conftest.$ac_ext >&5
25675
25676( exit $ac_status )
25677no_gtk=yes
25678fi
ac1cb8d3 25679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25680fi
25681 CFLAGS="$ac_save_CFLAGS"
25682 LIBS="$ac_save_LIBS"
25683 fi
25684 fi
25685 if test "x$no_gtk" = x ; then
25686 echo "$as_me:$LINENO: result: yes" >&5
25687echo "${ECHO_T}yes" >&6
25688 wx_cv_lib_gtk=1.2.3
25689 else
25690 echo "$as_me:$LINENO: result: no" >&5
25691echo "${ECHO_T}no" >&6
25692 if test "$GTK_CONFIG" = "no" ; then
25693 echo "*** The gtk-config script installed by GTK could not be found"
25694 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25695 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25696 echo "*** full path to gtk-config."
25697 else
25698 if test -f conf.gtktest ; then
25699 :
25700 else
25701 echo "*** Could not run GTK test program, checking why..."
25702 CFLAGS="$CFLAGS $GTK_CFLAGS"
25703 LIBS="$LIBS $GTK_LIBS"
25704 cat >conftest.$ac_ext <<_ACEOF
25705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
25710
25711#include <gtk/gtk.h>
25712#include <stdio.h>
25713
25714int
25715main ()
25716{
25717 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25718 ;
25719 return 0;
25720}
25721_ACEOF
25722rm -f conftest.$ac_objext conftest$ac_exeext
25723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25724 (eval $ac_link) 2>conftest.er1
a848cd7e 25725 ac_status=$?
ac1cb8d3
VS
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
a848cd7e
SC
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
ddd14b14
RR
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
ac1cb8d3
VS
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 echo "*** The test program compiled, but did not run. This usually means"
25745 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25746 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25747 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25748 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25749 echo "*** is required on your system"
25750 echo "***"
25751 echo "*** If you have an old version installed, it is best to remove it, although"
25752 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25753 echo "***"
25754 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25755 echo "*** came with the system with the command"
25756 echo "***"
25757 echo "*** rpm --erase --nodeps gtk gtk-devel"
25758else
25759 echo "$as_me: failed program was:" >&5
25760sed 's/^/| /' conftest.$ac_ext >&5
25761
25762 echo "*** The test program failed to compile or link. See the file config.log for the"
25763 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25764 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25765 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25766fi
ac1cb8d3
VS
25767rm -f conftest.err conftest.$ac_objext \
25768 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25769 CFLAGS="$ac_save_CFLAGS"
25770 LIBS="$ac_save_LIBS"
25771 fi
25772 fi
25773 GTK_CFLAGS=""
25774 GTK_LIBS=""
25775 :
25776 fi
25777
25778
25779 rm -f conf.gtktest
25780
f34ca037 25781 fi
a848cd7e
SC
25782 fi
25783 fi
25784
25785 if test -z "$wx_cv_lib_gtk"; then
25786 wx_cv_lib_gtk=none
25787 else
25788 wx_cv_cflags_gtk=$GTK_CFLAGS
25789 wx_cv_libs_gtk=$GTK_LIBS
25790 fi
25791
25792
25793fi
25794
25795
25796 if test "$gtk_version_cached" = 1; then
25797 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25798echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25799 fi
25800
25801 case "$wx_cv_lib_gtk" in
25802 2.0) WXGTK20=1
25803 TOOLKIT_VERSION=2
25804 ;;
25805 1.2.7) WXGTK127=1
25806 WXGTK12=1
25807 ;;
25808 1.2.3) WXGTK12=1
25809 ;;
25810 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25811The development files for GTK+ were not found. For GTK+ 2, please
25812ensure that pkg-config is in the path and that gtk+-2.0.pc is
25813installed. For GTK+ 1.2 please check that gtk-config is in the path,
25814and that the version is 1.2.3 or above. Also check that the
25815libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25816--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25817 " >&5
25818echo "$as_me: error:
f597b41c
MW
25819The development files for GTK+ were not found. For GTK+ 2, please
25820ensure that pkg-config is in the path and that gtk+-2.0.pc is
25821installed. For GTK+ 1.2 please check that gtk-config is in the path,
25822and that the version is 1.2.3 or above. Also check that the
25823libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25824--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25825 " >&2;}
25826 { (exit 1); exit 1; }; }
25827 ;;
25828 esac
25829
25830 if test "$WXGTK20" = 1; then
304205f1
VS
25831 save_CFLAGS="$CFLAGS"
25832 save_LIBS="$LIBS"
9d271838 25833 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25834 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25835
9755e73b 25836
304205f1
VS
25837for ac_func in pango_font_family_is_monospace
25838do
25839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25840echo "$as_me:$LINENO: checking for $ac_func" >&5
25841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25842if eval "test \"\${$as_ac_var+set}\" = set"; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25844else
25845 cat >conftest.$ac_ext <<_ACEOF
25846/* confdefs.h. */
25847_ACEOF
25848cat confdefs.h >>conftest.$ac_ext
25849cat >>conftest.$ac_ext <<_ACEOF
25850/* end confdefs.h. */
25851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25853#define $ac_func innocuous_$ac_func
25854
25855/* System header to define __stub macros and hopefully few prototypes,
25856 which can conflict with char $ac_func (); below.
25857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25858 <limits.h> exists even on freestanding compilers. */
25859
25860#ifdef __STDC__
25861# include <limits.h>
25862#else
25863# include <assert.h>
25864#endif
25865
25866#undef $ac_func
25867
25868/* Override any gcc2 internal prototype to avoid an error. */
25869#ifdef __cplusplus
25870extern "C"
25871{
25872#endif
25873/* We use char because int might match the return type of a gcc2
25874 builtin and then its argument prototype would still apply. */
25875char $ac_func ();
25876/* The GNU C library defines this for functions which it implements
25877 to always fail with ENOSYS. Some functions are actually named
25878 something starting with __ and the normal name is an alias. */
25879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25880choke me
25881#else
25882char (*f) () = $ac_func;
25883#endif
25884#ifdef __cplusplus
25885}
25886#endif
25887
25888int
25889main ()
25890{
25891return f != $ac_func;
25892 ;
25893 return 0;
25894}
25895_ACEOF
25896rm -f conftest.$ac_objext conftest$ac_exeext
25897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25898 (eval $ac_link) 2>conftest.er1
25899 ac_status=$?
25900 grep -v '^ *+' conftest.er1 >conftest.err
25901 rm -f conftest.er1
25902 cat conftest.err >&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); } &&
ddd14b14
RR
25905 { ac_try='test -z "$ac_c_werror_flag"
25906 || test ! -s conftest.err'
304205f1
VS
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; } &&
25912 { ac_try='test -s conftest$ac_exeext'
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; }; then
25918 eval "$as_ac_var=yes"
25919else
25920 echo "$as_me: failed program was:" >&5
25921sed 's/^/| /' conftest.$ac_ext >&5
25922
25923eval "$as_ac_var=no"
25924fi
25925rm -f conftest.err conftest.$ac_objext \
25926 conftest$ac_exeext conftest.$ac_ext
25927fi
25928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25930if test `eval echo '${'$as_ac_var'}'` = yes; then
25931 cat >>confdefs.h <<_ACEOF
25932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25933_ACEOF
25934
25935fi
25936done
25937
9755e73b 25938
abc736fd
MW
25939 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25940echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25941 cat >conftest.$ac_ext <<_ACEOF
25942/* confdefs.h. */
25943_ACEOF
25944cat confdefs.h >>conftest.$ac_ext
25945cat >>conftest.$ac_ext <<_ACEOF
25946/* end confdefs.h. */
25947
25948 #include <gtk/gtk.h>
25949
25950int
25951main ()
25952{
25953
25954 void *f = gtk_icon_size_lookup;
25955
25956 ;
25957 return 0;
25958}
25959_ACEOF
25960rm -f conftest.$ac_objext
25961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25962 (eval $ac_compile) 2>conftest.er1
25963 ac_status=$?
25964 grep -v '^ *+' conftest.er1 >conftest.err
25965 rm -f conftest.er1
25966 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
ddd14b14
RR
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
abc736fd
MW
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest.$ac_objext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982
25983 echo "$as_me:$LINENO: result: no" >&5
25984echo "${ECHO_T}no" >&6
25985
25986else
25987 echo "$as_me: failed program was:" >&5
25988sed 's/^/| /' conftest.$ac_ext >&5
25989
25990
25991 cat >>confdefs.h <<\_ACEOF
25992#define NEED_GTK_ICON_SIZE_LOOKUP 1
25993_ACEOF
25994
25995 echo "$as_me:$LINENO: result: yes" >&5
25996echo "${ECHO_T}yes" >&6
25997
25998fi
25999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26000
9755e73b
VS
26001 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26002echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26003 cat >conftest.$ac_ext <<_ACEOF
26004/* confdefs.h. */
26005_ACEOF
26006cat confdefs.h >>conftest.$ac_ext
26007cat >>conftest.$ac_ext <<_ACEOF
26008/* end confdefs.h. */
26009
26010 #include <gtk/gtk.h>
26011
26012int
26013main ()
26014{
26015
26016 #if !GTK_CHECK_VERSION(2,4,0)
26017 #error "Not GTK+ 2.4"
26018 #endif
26019
26020 ;
26021 return 0;
26022}
26023_ACEOF
26024rm -f conftest.$ac_objext
26025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026 (eval $ac_compile) 2>conftest.er1
26027 ac_status=$?
26028 grep -v '^ *+' conftest.er1 >conftest.err
26029 rm -f conftest.er1
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
ddd14b14
RR
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
9755e73b
VS
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046
26047 cat >>confdefs.h <<\_ACEOF
26048#define __WXGTK24__ 1
26049_ACEOF
26050
26051 echo "$as_me:$LINENO: result: yes" >&5
26052echo "${ECHO_T}yes" >&6
26053
26054else
26055 echo "$as_me: failed program was:" >&5
26056sed 's/^/| /' conftest.$ac_ext >&5
26057
26058
26059 echo "$as_me:$LINENO: result: no" >&5
26060echo "${ECHO_T}no" >&6
26061
26062fi
26063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26064
304205f1
VS
26065 CFLAGS="$save_CFLAGS"
26066 LIBS="$save_LIBS"
a848cd7e
SC
26067 else
26068 if test "$wxUSE_UNICODE" = "yes"; then
26069 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26070echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26071 wxUSE_UNICODE=no
26072 fi
26073 fi
26074
26075 if test "$USE_DARWIN" != 1; then
26076
26077for ac_func in poll
26078do
26079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26080echo "$as_me:$LINENO: checking for $ac_func" >&5
26081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26082if eval "test \"\${$as_ac_var+set}\" = set"; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26084else
26085 cat >conftest.$ac_ext <<_ACEOF
26086/* confdefs.h. */
26087_ACEOF
26088cat confdefs.h >>conftest.$ac_ext
26089cat >>conftest.$ac_ext <<_ACEOF
26090/* end confdefs.h. */
ac1cb8d3
VS
26091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26093#define $ac_func innocuous_$ac_func
26094
a848cd7e
SC
26095/* System header to define __stub macros and hopefully few prototypes,
26096 which can conflict with char $ac_func (); below.
26097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26098 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26099
a848cd7e
SC
26100#ifdef __STDC__
26101# include <limits.h>
26102#else
26103# include <assert.h>
26104#endif
ac1cb8d3
VS
26105
26106#undef $ac_func
26107
a848cd7e
SC
26108/* Override any gcc2 internal prototype to avoid an error. */
26109#ifdef __cplusplus
26110extern "C"
26111{
26112#endif
26113/* We use char because int might match the return type of a gcc2
26114 builtin and then its argument prototype would still apply. */
26115char $ac_func ();
26116/* The GNU C library defines this for functions which it implements
26117 to always fail with ENOSYS. Some functions are actually named
26118 something starting with __ and the normal name is an alias. */
26119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26120choke me
26121#else
26122char (*f) () = $ac_func;
26123#endif
26124#ifdef __cplusplus
26125}
26126#endif
26127
26128int
26129main ()
26130{
26131return f != $ac_func;
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext conftest$ac_exeext
26137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26138 (eval $ac_link) 2>conftest.er1
a848cd7e 26139 ac_status=$?
ac1cb8d3
VS
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
a848cd7e
SC
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
ddd14b14
RR
26145 { ac_try='test -z "$ac_c_werror_flag"
26146 || test ! -s conftest.err'
ac1cb8d3
VS
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; } &&
26152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 eval "$as_ac_var=yes"
26159else
26160 echo "$as_me: failed program was:" >&5
26161sed 's/^/| /' conftest.$ac_ext >&5
26162
26163eval "$as_ac_var=no"
26164fi
ac1cb8d3
VS
26165rm -f conftest.err conftest.$ac_objext \
26166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26167fi
26168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26170if test `eval echo '${'$as_ac_var'}'` = yes; then
26171 cat >>confdefs.h <<_ACEOF
26172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26173_ACEOF
26174
26175fi
26176done
26177
26178 fi
26179
26180 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26181 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26182
26183 AFMINSTALL=afminstall
26184 TOOLKIT=GTK
26185 GUIDIST=GTK_DIST
26186
26187 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26188echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26189if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191else
26192 ac_check_lib_save_LIBS=$LIBS
26193LIBS="-lgdk $LIBS"
26194cat >conftest.$ac_ext <<_ACEOF
26195/* confdefs.h. */
26196_ACEOF
26197cat confdefs.h >>conftest.$ac_ext
26198cat >>conftest.$ac_ext <<_ACEOF
26199/* end confdefs.h. */
26200
26201/* Override any gcc2 internal prototype to avoid an error. */
26202#ifdef __cplusplus
26203extern "C"
26204#endif
26205/* We use char because int might match the return type of a gcc2
26206 builtin and then its argument prototype would still apply. */
26207char gdk_im_open ();
26208int
26209main ()
26210{
26211gdk_im_open ();
26212 ;
26213 return 0;
26214}
26215_ACEOF
26216rm -f conftest.$ac_objext conftest$ac_exeext
26217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26218 (eval $ac_link) 2>conftest.er1
a848cd7e 26219 ac_status=$?
ac1cb8d3
VS
26220 grep -v '^ *+' conftest.er1 >conftest.err
26221 rm -f conftest.er1
26222 cat conftest.err >&5
a848cd7e
SC
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
ddd14b14
RR
26225 { ac_try='test -z "$ac_c_werror_flag"
26226 || test ! -s conftest.err'
ac1cb8d3
VS
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26238 ac_cv_lib_gdk_gdk_im_open=yes
26239else
26240 echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
26243ac_cv_lib_gdk_gdk_im_open=no
26244fi
ac1cb8d3
VS
26245rm -f conftest.err conftest.$ac_objext \
26246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26247LIBS=$ac_check_lib_save_LIBS
26248fi
26249echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26250echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26251if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26252 cat >>confdefs.h <<\_ACEOF
26253#define HAVE_XIM 1
26254_ACEOF
26255
26256fi
26257
26258
26259
26260 if test "$wxUSE_GPE" = "yes"; then
26261 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26262echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26263
26264ac_find_libraries=
26265for ac_dir in $SEARCH_LIB /usr/lib;
26266 do
3eca31dc 26267 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26268 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26269 ac_find_libraries=$ac_dir
26270 break 2
26271 fi
26272 done
26273 done
26274
26275 if test "$ac_find_libraries" != "" ; then
26276
26277 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26278 result=$?
26279 if test $result = 0; then
26280 ac_path_to_link=""
26281 else
26282 ac_path_to_link=" -L$ac_find_libraries"
26283 fi
26284
26285 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26286 WXGPE=1
26287 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26288echo "${ECHO_T}found at $ac_find_libraries" >&6
26289 else
26290 echo "$as_me:$LINENO: result: not found" >&5
26291echo "${ECHO_T}not found" >&6
26292 fi
26293
26294 fi
26295 fi
26296
26297 if test "$wxUSE_MGL" = 1; then
26298 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26299echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26300 if test "x$MGL_ROOT" = x ; then
26301 echo "$as_me:$LINENO: result: not found" >&5
26302echo "${ECHO_T}not found" >&6
26303 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26304echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26305 { (exit 1); exit 1; }; }
26306 else
26307 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26308echo "${ECHO_T}$MGL_ROOT" >&6
26309 fi
26310
26311 echo "$as_me:$LINENO: checking for libmgl location" >&5
26312echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26313 case "${host}" in
26314 *-*-linux* )
26315 if test "x$wxUSE_SHARED" = xyes ; then
26316 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26317 else
26318 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26319 fi
26320 ;;
26321 *-pc-msdosdjgpp )
26322 mgl_os_candidates="dos32/dj2"
26323 ;;
26324 *)
26325 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26326echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26327 { (exit 1); exit 1; }; }
26328 esac
26329
26330 mgl_lib_type=""
26331 mgl_os=""
26332
26333 for mgl_os_i in $mgl_os_candidates ; do
26334 if test "x$mgl_os" = x ; then
26335 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26336 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26337 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26338 mgl_lib_type=debug
26339 mgl_os=$mgl_os_i
26340 fi
26341 fi
26342 if test "x$mgl_lib_type" = x ; then
26343 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26344 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26345 mgl_lib_type=release
26346 mgl_os=$mgl_os_i
26347 fi
26348 fi
26349 fi
26350 done
26351
26352 if test "x$mgl_os" = x ; then
26353 echo "$as_me:$LINENO: result: not found" >&5
26354echo "${ECHO_T}not found" >&6
26355 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26356echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26357 { (exit 1); exit 1; }; }
26358 fi
26359 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26360echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26361
26362 wxUSE_UNIVERSAL="yes"
26363
26364 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26365 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26366
26367 AFMINSTALL=afminstall
26368 TOOLKIT=MGL
26369 GUIDIST=MGL_DIST
26370 fi
26371
26372 if test "$wxUSE_MICROWIN" = 1; then
26373 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26374echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26375 if test "x$MICROWINDOWS" = x ; then
26376 echo "$as_me:$LINENO: result: not found" >&5
26377echo "${ECHO_T}not found" >&6
26378 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26379echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26380 { (exit 1); exit 1; }; }
26381 else
26382 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26383echo "${ECHO_T}$MICROWINDOWS" >&6
26384 fi
26385
26386 if test -f $MICROWINDOWS/lib/libmwin.a; then
26387 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26388echo "${ECHO_T}MicroWindows' libraries found." >&6
26389 else
26390 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26391echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26392 { (exit 1); exit 1; }; }
26393 fi
26394
26395 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26396 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26397
26398 wxUSE_UNIVERSAL="yes"
26399
26400 AFMINSTALL=afminstall
26401 TOOLKIT=MICROWIN
26402 GUIDIST=MICROWIN_DIST
26403
26404 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26405 fi
26406
74b84332 26407 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ddd14b14 26408 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26409echo $ECHO_N "checking for X... $ECHO_C" >&6
26410
26411
26412# Check whether --with-x or --without-x was given.
26413if test "${with_x+set}" = set; then
26414 withval="$with_x"
26415
26416fi;
26417# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26418if test "x$with_x" = xno; then
26419 # The user explicitly disabled X.
26420 have_x=disabled
26421else
26422 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26423 # Both variables are already set.
26424 have_x=yes
26425 else
26426 if test "${ac_cv_have_x+set}" = set; then
26427 echo $ECHO_N "(cached) $ECHO_C" >&6
26428else
26429 # One or both of the vars are not set, and there is no cached value.
26430ac_x_includes=no ac_x_libraries=no
26431rm -fr conftest.dir
26432if mkdir conftest.dir; then
26433 cd conftest.dir
26434 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26435 cat >Imakefile <<'_ACEOF'
26436acfindx:
26437 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26438_ACEOF
26439 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26441 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26443 for ac_extension in a so sl; do
26444 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26445 test -f $ac_im_libdir/libX11.$ac_extension; then
26446 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26447 fi
26448 done
26449 # Screen out bogus values from the imake configuration. They are
26450 # bogus both because they are the default anyway, and because
26451 # using them would break gcc on systems where it needs fixed includes.
26452 case $ac_im_incroot in
26453 /usr/include) ;;
26454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26455 esac
26456 case $ac_im_usrlibdir in
26457 /usr/lib | /lib) ;;
26458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26459 esac
26460 fi
26461 cd ..
26462 rm -fr conftest.dir
26463fi
26464
26465# Standard set of common directories for X headers.
26466# Check X11 before X11Rn because it is often a symlink to the current release.
26467ac_x_header_dirs='
26468/usr/X11/include
26469/usr/X11R6/include
26470/usr/X11R5/include
26471/usr/X11R4/include
26472
26473/usr/include/X11
26474/usr/include/X11R6
26475/usr/include/X11R5
26476/usr/include/X11R4
26477
26478/usr/local/X11/include
26479/usr/local/X11R6/include
26480/usr/local/X11R5/include
26481/usr/local/X11R4/include
26482
26483/usr/local/include/X11
26484/usr/local/include/X11R6
26485/usr/local/include/X11R5
26486/usr/local/include/X11R4
26487
26488/usr/X386/include
26489/usr/x386/include
26490/usr/XFree86/include/X11
26491
26492/usr/include
26493/usr/local/include
26494/usr/unsupported/include
26495/usr/athena/include
26496/usr/local/x11r5/include
26497/usr/lpp/Xamples/include
26498
26499/usr/openwin/include
26500/usr/openwin/share/include'
26501
26502if test "$ac_x_includes" = no; then
ddd14b14 26503 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
26504 # First, try using that file with no special directory specified.
26505 cat >conftest.$ac_ext <<_ACEOF
26506/* confdefs.h. */
26507_ACEOF
26508cat confdefs.h >>conftest.$ac_ext
26509cat >>conftest.$ac_ext <<_ACEOF
26510/* end confdefs.h. */
26511#include <X11/Intrinsic.h>
26512_ACEOF
26513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26515 ac_status=$?
26516 grep -v '^ *+' conftest.er1 >conftest.err
26517 rm -f conftest.er1
26518 cat conftest.err >&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } >/dev/null; then
26521 if test -s conftest.err; then
26522 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26524 else
26525 ac_cpp_err=
26526 fi
26527else
26528 ac_cpp_err=yes
26529fi
26530if test -z "$ac_cpp_err"; then
26531 # We can compile using X headers with no special include directory.
26532ac_x_includes=
26533else
26534 echo "$as_me: failed program was:" >&5
26535sed 's/^/| /' conftest.$ac_ext >&5
26536
26537 for ac_dir in $ac_x_header_dirs; do
26538 if test -r "$ac_dir/X11/Intrinsic.h"; then
26539 ac_x_includes=$ac_dir
26540 break
26541 fi
26542done
26543fi
26544rm -f conftest.err conftest.$ac_ext
26545fi # $ac_x_includes = no
26546
26547if test "$ac_x_libraries" = no; then
26548 # Check for the libraries.
26549 # See if we find them without any special options.
26550 # Don't add to $LIBS permanently.
26551 ac_save_LIBS=$LIBS
26552 LIBS="-lXt $LIBS"
26553 cat >conftest.$ac_ext <<_ACEOF
26554/* confdefs.h. */
26555_ACEOF
26556cat confdefs.h >>conftest.$ac_ext
26557cat >>conftest.$ac_ext <<_ACEOF
26558/* end confdefs.h. */
26559#include <X11/Intrinsic.h>
26560int
26561main ()
26562{
26563XtMalloc (0)
26564 ;
26565 return 0;
26566}
26567_ACEOF
26568rm -f conftest.$ac_objext conftest$ac_exeext
26569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26570 (eval $ac_link) 2>conftest.er1
a848cd7e 26571 ac_status=$?
ac1cb8d3
VS
26572 grep -v '^ *+' conftest.er1 >conftest.err
26573 rm -f conftest.er1
26574 cat conftest.err >&5
a848cd7e
SC
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } &&
ddd14b14
RR
26577 { ac_try='test -z "$ac_c_werror_flag"
26578 || test ! -s conftest.err'
ac1cb8d3
VS
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; } &&
26584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26590 LIBS=$ac_save_LIBS
26591# We can link X programs with no special library path.
26592ac_x_libraries=
26593else
26594 echo "$as_me: failed program was:" >&5
26595sed 's/^/| /' conftest.$ac_ext >&5
26596
26597LIBS=$ac_save_LIBS
26598for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26599do
26600 # Don't even attempt the hair of trying to link an X program!
26601 for ac_extension in a so sl; do
26602 if test -r $ac_dir/libXt.$ac_extension; then
26603 ac_x_libraries=$ac_dir
26604 break 2
26605 fi
26606 done
26607done
26608fi
ac1cb8d3
VS
26609rm -f conftest.err conftest.$ac_objext \
26610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26611fi # $ac_x_libraries = no
26612
26613if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26614 # Didn't find X anywhere. Cache the known absence of X.
26615 ac_cv_have_x="have_x=no"
26616else
26617 # Record where we found X for the cache.
26618 ac_cv_have_x="have_x=yes \
ac1cb8d3 26619 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26620fi
26621fi
26622
26623 fi
26624 eval "$ac_cv_have_x"
26625fi # $with_x != no
26626
26627if test "$have_x" != yes; then
26628 echo "$as_me:$LINENO: result: $have_x" >&5
26629echo "${ECHO_T}$have_x" >&6
26630 no_x=yes
26631else
26632 # If each of the values was on the command line, it overrides each guess.
26633 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26634 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26635 # Update the cache value to reflect the command line values.
26636 ac_cv_have_x="have_x=yes \
26637 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ddd14b14
RR
26638 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
26639echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
26640fi
26641
26642if test "$no_x" = yes; then
26643 # Not all programs may use this symbol, but it does not hurt to define it.
26644
26645cat >>confdefs.h <<\_ACEOF
26646#define X_DISPLAY_MISSING 1
26647_ACEOF
26648
26649 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26650else
26651 if test -n "$x_includes"; then
26652 X_CFLAGS="$X_CFLAGS -I$x_includes"
26653 fi
26654
26655 # It would also be nice to do this for all -L options, not just this one.
26656 if test -n "$x_libraries"; then
26657 X_LIBS="$X_LIBS -L$x_libraries"
26658 # For Solaris; some versions of Sun CC require a space after -R and
26659 # others require no space. Words are not sufficient . . . .
26660 case `(uname -sr) 2>/dev/null` in
26661 "SunOS 5"*)
26662 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26663echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26664 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26665 cat >conftest.$ac_ext <<_ACEOF
26666/* confdefs.h. */
26667_ACEOF
26668cat confdefs.h >>conftest.$ac_ext
26669cat >>conftest.$ac_ext <<_ACEOF
26670/* end confdefs.h. */
26671
26672int
26673main ()
26674{
26675
26676 ;
26677 return 0;
26678}
26679_ACEOF
26680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26682 (eval $ac_link) 2>conftest.er1
a848cd7e 26683 ac_status=$?
ac1cb8d3
VS
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
a848cd7e
SC
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
ddd14b14
RR
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
ac1cb8d3
VS
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 ac_R_nospace=yes
26703else
26704 echo "$as_me: failed program was:" >&5
26705sed 's/^/| /' conftest.$ac_ext >&5
26706
26707ac_R_nospace=no
26708fi
ac1cb8d3
VS
26709rm -f conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26711 if test $ac_R_nospace = yes; then
26712 echo "$as_me:$LINENO: result: no" >&5
26713echo "${ECHO_T}no" >&6
26714 X_LIBS="$X_LIBS -R$x_libraries"
26715 else
26716 LIBS="$ac_xsave_LIBS -R $x_libraries"
26717 cat >conftest.$ac_ext <<_ACEOF
26718/* confdefs.h. */
26719_ACEOF
26720cat confdefs.h >>conftest.$ac_ext
26721cat >>conftest.$ac_ext <<_ACEOF
26722/* end confdefs.h. */
26723
26724int
26725main ()
26726{
26727
26728 ;
26729 return 0;
26730}
26731_ACEOF
26732rm -f conftest.$ac_objext conftest$ac_exeext
26733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26734 (eval $ac_link) 2>conftest.er1
a848cd7e 26735 ac_status=$?
ac1cb8d3
VS
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
a848cd7e
SC
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
ddd14b14
RR
26741 { ac_try='test -z "$ac_c_werror_flag"
26742 || test ! -s conftest.err'
ac1cb8d3
VS
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 ac_R_space=yes
26755else
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759ac_R_space=no
26760fi
ac1cb8d3
VS
26761rm -f conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26763 if test $ac_R_space = yes; then
26764 echo "$as_me:$LINENO: result: yes" >&5
26765echo "${ECHO_T}yes" >&6
26766 X_LIBS="$X_LIBS -R $x_libraries"
26767 else
26768 echo "$as_me:$LINENO: result: neither works" >&5
26769echo "${ECHO_T}neither works" >&6
26770 fi
26771 fi
26772 LIBS=$ac_xsave_LIBS
26773 esac
26774 fi
26775
26776 # Check for system-dependent libraries X programs must link with.
26777 # Do this before checking for the system-independent R6 libraries
26778 # (-lICE), since we may need -lsocket or whatever for X linking.
26779
26780 if test "$ISC" = yes; then
26781 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26782 else
26783 # Martyn Johnson says this is needed for Ultrix, if the X
26784 # libraries were built with DECnet support. And Karl Berry says
26785 # the Alpha needs dnet_stub (dnet does not exist).
26786 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26787 cat >conftest.$ac_ext <<_ACEOF
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
26793
26794/* Override any gcc2 internal prototype to avoid an error. */
26795#ifdef __cplusplus
26796extern "C"
26797#endif
26798/* We use char because int might match the return type of a gcc2
26799 builtin and then its argument prototype would still apply. */
26800char XOpenDisplay ();
26801int
26802main ()
26803{
26804XOpenDisplay ();
26805 ;
26806 return 0;
26807}
26808_ACEOF
26809rm -f conftest.$ac_objext conftest$ac_exeext
26810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26811 (eval $ac_link) 2>conftest.er1
a848cd7e 26812 ac_status=$?
ac1cb8d3
VS
26813 grep -v '^ *+' conftest.er1 >conftest.err
26814 rm -f conftest.er1
26815 cat conftest.err >&5
a848cd7e
SC
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
ddd14b14
RR
26818 { ac_try='test -z "$ac_c_werror_flag"
26819 || test ! -s conftest.err'
ac1cb8d3
VS
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; } &&
26825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 :
26832else
26833 echo "$as_me: failed program was:" >&5
26834sed 's/^/| /' conftest.$ac_ext >&5
26835
26836echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26837echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26838if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26840else
26841 ac_check_lib_save_LIBS=$LIBS
26842LIBS="-ldnet $LIBS"
26843cat >conftest.$ac_ext <<_ACEOF
26844/* confdefs.h. */
26845_ACEOF
26846cat confdefs.h >>conftest.$ac_ext
26847cat >>conftest.$ac_ext <<_ACEOF
26848/* end confdefs.h. */
26849
26850/* Override any gcc2 internal prototype to avoid an error. */
26851#ifdef __cplusplus
26852extern "C"
26853#endif
26854/* We use char because int might match the return type of a gcc2
26855 builtin and then its argument prototype would still apply. */
26856char dnet_ntoa ();
26857int
26858main ()
26859{
26860dnet_ntoa ();
26861 ;
26862 return 0;
26863}
26864_ACEOF
26865rm -f conftest.$ac_objext conftest$ac_exeext
26866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26867 (eval $ac_link) 2>conftest.er1
a848cd7e 26868 ac_status=$?
ac1cb8d3
VS
26869 grep -v '^ *+' conftest.er1 >conftest.err
26870 rm -f conftest.er1
26871 cat conftest.err >&5
a848cd7e
SC
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } &&
ddd14b14
RR
26874 { ac_try='test -z "$ac_c_werror_flag"
26875 || test ! -s conftest.err'
ac1cb8d3
VS
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; } &&
26881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26884 ac_status=$?
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; }; then
26887 ac_cv_lib_dnet_dnet_ntoa=yes
26888else
26889 echo "$as_me: failed program was:" >&5
26890sed 's/^/| /' conftest.$ac_ext >&5
26891
26892ac_cv_lib_dnet_dnet_ntoa=no
26893fi
ac1cb8d3
VS
26894rm -f conftest.err conftest.$ac_objext \
26895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26896LIBS=$ac_check_lib_save_LIBS
26897fi
26898echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26899echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26900if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26901 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26902fi
26903
26904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26905 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26906echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26907if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26908 echo $ECHO_N "(cached) $ECHO_C" >&6
26909else
26910 ac_check_lib_save_LIBS=$LIBS
26911LIBS="-ldnet_stub $LIBS"
26912cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h. */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h. */
26918
26919/* Override any gcc2 internal prototype to avoid an error. */
26920#ifdef __cplusplus
26921extern "C"
26922#endif
26923/* We use char because int might match the return type of a gcc2
26924 builtin and then its argument prototype would still apply. */
26925char dnet_ntoa ();
26926int
26927main ()
26928{
26929dnet_ntoa ();
26930 ;
26931 return 0;
26932}
26933_ACEOF
26934rm -f conftest.$ac_objext conftest$ac_exeext
26935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26936 (eval $ac_link) 2>conftest.er1
a848cd7e 26937 ac_status=$?
ac1cb8d3
VS
26938 grep -v '^ *+' conftest.er1 >conftest.err
26939 rm -f conftest.er1
26940 cat conftest.err >&5
a848cd7e
SC
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
ddd14b14
RR
26943 { ac_try='test -z "$ac_c_werror_flag"
26944 || test ! -s conftest.err'
ac1cb8d3
VS
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952 (eval $ac_try) 2>&5
26953 ac_status=$?
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); }; }; then
26956 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26957else
26958 echo "$as_me: failed program was:" >&5
26959sed 's/^/| /' conftest.$ac_ext >&5
26960
26961ac_cv_lib_dnet_stub_dnet_ntoa=no
26962fi
ac1cb8d3
VS
26963rm -f conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26965LIBS=$ac_check_lib_save_LIBS
26966fi
26967echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26968echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26969if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26971fi
26972
26973 fi
26974fi
ac1cb8d3
VS
26975rm -f conftest.err conftest.$ac_objext \
26976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26977 LIBS="$ac_xsave_LIBS"
26978
26979 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26980 # to get the SysV transport functions.
26981 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26982 # needs -lnsl.
26983 # The nsl library prevents programs from opening the X display
26984 # on Irix 5.2, according to T.E. Dickey.
26985 # The functions gethostbyname, getservbyname, and inet_addr are
26986 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26987 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26988echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26989if test "${ac_cv_func_gethostbyname+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26991else
26992 cat >conftest.$ac_ext <<_ACEOF
26993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
ac1cb8d3
VS
26998/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27000#define gethostbyname innocuous_gethostbyname
27001
a848cd7e
SC
27002/* System header to define __stub macros and hopefully few prototypes,
27003 which can conflict with char gethostbyname (); below.
27004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27006
a848cd7e
SC
27007#ifdef __STDC__
27008# include <limits.h>
27009#else
27010# include <assert.h>
27011#endif
ac1cb8d3
VS
27012
27013#undef gethostbyname
27014
a848cd7e
SC
27015/* Override any gcc2 internal prototype to avoid an error. */
27016#ifdef __cplusplus
27017extern "C"
27018{
27019#endif
27020/* We use char because int might match the return type of a gcc2
27021 builtin and then its argument prototype would still apply. */
27022char gethostbyname ();
27023/* The GNU C library defines this for functions which it implements
27024 to always fail with ENOSYS. Some functions are actually named
27025 something starting with __ and the normal name is an alias. */
27026#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27027choke me
27028#else
27029char (*f) () = gethostbyname;
27030#endif
27031#ifdef __cplusplus
27032}
27033#endif
27034
27035int
27036main ()
27037{
27038return f != gethostbyname;
27039 ;
27040 return 0;
27041}
27042_ACEOF
27043rm -f conftest.$ac_objext conftest$ac_exeext
27044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27045 (eval $ac_link) 2>conftest.er1
a848cd7e 27046 ac_status=$?
ac1cb8d3
VS
27047 grep -v '^ *+' conftest.er1 >conftest.err
27048 rm -f conftest.er1
27049 cat conftest.err >&5
a848cd7e
SC
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
ddd14b14
RR
27052 { ac_try='test -z "$ac_c_werror_flag"
27053 || test ! -s conftest.err'
ac1cb8d3
VS
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); }; }; then
27065 ac_cv_func_gethostbyname=yes
27066else
27067 echo "$as_me: failed program was:" >&5
27068sed 's/^/| /' conftest.$ac_ext >&5
27069
27070ac_cv_func_gethostbyname=no
27071fi
ac1cb8d3
VS
27072rm -f conftest.err conftest.$ac_objext \
27073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27074fi
27075echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27076echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27077
27078 if test $ac_cv_func_gethostbyname = no; then
27079 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27080echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27081if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27083else
27084 ac_check_lib_save_LIBS=$LIBS
27085LIBS="-lnsl $LIBS"
27086cat >conftest.$ac_ext <<_ACEOF
27087/* confdefs.h. */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h. */
27092
27093/* Override any gcc2 internal prototype to avoid an error. */
27094#ifdef __cplusplus
27095extern "C"
27096#endif
27097/* We use char because int might match the return type of a gcc2
27098 builtin and then its argument prototype would still apply. */
27099char gethostbyname ();
27100int
27101main ()
27102{
27103gethostbyname ();
27104 ;
27105 return 0;
27106}
27107_ACEOF
27108rm -f conftest.$ac_objext conftest$ac_exeext
27109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27110 (eval $ac_link) 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } &&
ddd14b14
RR
27117 { ac_try='test -z "$ac_c_werror_flag"
27118 || test ! -s conftest.err'
ac1cb8d3
VS
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27130 ac_cv_lib_nsl_gethostbyname=yes
27131else
27132 echo "$as_me: failed program was:" >&5
27133sed 's/^/| /' conftest.$ac_ext >&5
27134
27135ac_cv_lib_nsl_gethostbyname=no
27136fi
27137rm -f conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27139LIBS=$ac_check_lib_save_LIBS
27140fi
27141echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27142echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27143if test $ac_cv_lib_nsl_gethostbyname = yes; then
27144 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27145fi
27146
27147 if test $ac_cv_lib_nsl_gethostbyname = no; then
27148 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27149echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27150if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 ac_check_lib_save_LIBS=$LIBS
27154LIBS="-lbsd $LIBS"
27155cat >conftest.$ac_ext <<_ACEOF
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
27161
27162/* Override any gcc2 internal prototype to avoid an error. */
27163#ifdef __cplusplus
27164extern "C"
27165#endif
27166/* We use char because int might match the return type of a gcc2
27167 builtin and then its argument prototype would still apply. */
27168char gethostbyname ();
27169int
27170main ()
27171{
27172gethostbyname ();
27173 ;
27174 return 0;
27175}
27176_ACEOF
27177rm -f conftest.$ac_objext conftest$ac_exeext
27178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27179 (eval $ac_link) 2>conftest.er1
a848cd7e 27180 ac_status=$?
ac1cb8d3
VS
27181 grep -v '^ *+' conftest.er1 >conftest.err
27182 rm -f conftest.er1
27183 cat conftest.err >&5
a848cd7e
SC
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
ddd14b14
RR
27186 { ac_try='test -z "$ac_c_werror_flag"
27187 || test ! -s conftest.err'
a848cd7e
SC
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27192 (exit $ac_status); }; } &&
27193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
27199 ac_cv_lib_bsd_gethostbyname=yes
27200else
27201 echo "$as_me: failed program was:" >&5
27202sed 's/^/| /' conftest.$ac_ext >&5
27203
27204ac_cv_lib_bsd_gethostbyname=no
27205fi
ac1cb8d3
VS
27206rm -f conftest.err conftest.$ac_objext \
27207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27208LIBS=$ac_check_lib_save_LIBS
27209fi
27210echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27211echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27212if test $ac_cv_lib_bsd_gethostbyname = yes; then
27213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27214fi
27215
27216 fi
27217 fi
27218
27219 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27220 # socket/setsockopt and other routines are undefined under SCO ODT
27221 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27222 # on later versions), says Simon Leinen: it contains gethostby*
27223 # variants that don't use the name server (or something). -lsocket
27224 # must be given before -lnsl if both are needed. We assume that
27225 # if connect needs -lnsl, so does gethostbyname.
27226 echo "$as_me:$LINENO: checking for connect" >&5
27227echo $ECHO_N "checking for connect... $ECHO_C" >&6
27228if test "${ac_cv_func_connect+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27230else
27231 cat >conftest.$ac_ext <<_ACEOF
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
ac1cb8d3
VS
27237/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27239#define connect innocuous_connect
27240
a848cd7e
SC
27241/* System header to define __stub macros and hopefully few prototypes,
27242 which can conflict with char connect (); below.
27243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27245
a848cd7e
SC
27246#ifdef __STDC__
27247# include <limits.h>
27248#else
27249# include <assert.h>
27250#endif
ac1cb8d3
VS
27251
27252#undef connect
27253
a848cd7e
SC
27254/* Override any gcc2 internal prototype to avoid an error. */
27255#ifdef __cplusplus
27256extern "C"
27257{
27258#endif
27259/* We use char because int might match the return type of a gcc2
27260 builtin and then its argument prototype would still apply. */
27261char connect ();
27262/* The GNU C library defines this for functions which it implements
27263 to always fail with ENOSYS. Some functions are actually named
27264 something starting with __ and the normal name is an alias. */
27265#if defined (__stub_connect) || defined (__stub___connect)
27266choke me
27267#else
27268char (*f) () = connect;
27269#endif
27270#ifdef __cplusplus
27271}
27272#endif
27273
27274int
27275main ()
27276{
27277return f != connect;
27278 ;
27279 return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext conftest$ac_exeext
27283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27284 (eval $ac_link) 2>conftest.er1
a848cd7e 27285 ac_status=$?
ac1cb8d3
VS
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
a848cd7e
SC
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
ddd14b14
RR
27291 { ac_try='test -z "$ac_c_werror_flag"
27292 || test ! -s conftest.err'
ac1cb8d3
VS
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; } &&
27298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 ac_cv_func_connect=yes
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309ac_cv_func_connect=no
27310fi
ac1cb8d3
VS
27311rm -f conftest.err conftest.$ac_objext \
27312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27313fi
27314echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27315echo "${ECHO_T}$ac_cv_func_connect" >&6
27316
27317 if test $ac_cv_func_connect = no; then
27318 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27319echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27320if test "${ac_cv_lib_socket_connect+set}" = set; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27322else
27323 ac_check_lib_save_LIBS=$LIBS
27324LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27325cat >conftest.$ac_ext <<_ACEOF
27326/* confdefs.h. */
27327_ACEOF
27328cat confdefs.h >>conftest.$ac_ext
27329cat >>conftest.$ac_ext <<_ACEOF
27330/* end confdefs.h. */
27331
27332/* Override any gcc2 internal prototype to avoid an error. */
27333#ifdef __cplusplus
27334extern "C"
27335#endif
27336/* We use char because int might match the return type of a gcc2
27337 builtin and then its argument prototype would still apply. */
27338char connect ();
27339int
27340main ()
27341{
27342connect ();
27343 ;
27344 return 0;
27345}
27346_ACEOF
27347rm -f conftest.$ac_objext conftest$ac_exeext
27348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27349 (eval $ac_link) 2>conftest.er1
a848cd7e 27350 ac_status=$?
ac1cb8d3
VS
27351 grep -v '^ *+' conftest.er1 >conftest.err
27352 rm -f conftest.er1
27353 cat conftest.err >&5
a848cd7e
SC
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } &&
ddd14b14
RR
27356 { ac_try='test -z "$ac_c_werror_flag"
27357 || test ! -s conftest.err'
ac1cb8d3
VS
27358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27359 (eval $ac_try) 2>&5
27360 ac_status=$?
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); }; } &&
27363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; }; then
27369 ac_cv_lib_socket_connect=yes
27370else
27371 echo "$as_me: failed program was:" >&5
27372sed 's/^/| /' conftest.$ac_ext >&5
27373
27374ac_cv_lib_socket_connect=no
27375fi
ac1cb8d3
VS
27376rm -f conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27378LIBS=$ac_check_lib_save_LIBS
27379fi
27380echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27381echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27382if test $ac_cv_lib_socket_connect = yes; then
27383 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27384fi
27385
27386 fi
27387
27388 # Guillermo Gomez says -lposix is necessary on A/UX.
27389 echo "$as_me:$LINENO: checking for remove" >&5
27390echo $ECHO_N "checking for remove... $ECHO_C" >&6
27391if test "${ac_cv_func_remove+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27393else
27394 cat >conftest.$ac_ext <<_ACEOF
27395/* confdefs.h. */
27396_ACEOF
27397cat confdefs.h >>conftest.$ac_ext
27398cat >>conftest.$ac_ext <<_ACEOF
27399/* end confdefs.h. */
ac1cb8d3
VS
27400/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27402#define remove innocuous_remove
27403
a848cd7e
SC
27404/* System header to define __stub macros and hopefully few prototypes,
27405 which can conflict with char remove (); below.
27406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27408
a848cd7e
SC
27409#ifdef __STDC__
27410# include <limits.h>
27411#else
27412# include <assert.h>
27413#endif
ac1cb8d3
VS
27414
27415#undef remove
27416
a848cd7e
SC
27417/* Override any gcc2 internal prototype to avoid an error. */
27418#ifdef __cplusplus
27419extern "C"
27420{
27421#endif
27422/* We use char because int might match the return type of a gcc2
27423 builtin and then its argument prototype would still apply. */
27424char remove ();
27425/* The GNU C library defines this for functions which it implements
27426 to always fail with ENOSYS. Some functions are actually named
27427 something starting with __ and the normal name is an alias. */
27428#if defined (__stub_remove) || defined (__stub___remove)
27429choke me
27430#else
27431char (*f) () = remove;
27432#endif
27433#ifdef __cplusplus
27434}
27435#endif
27436
27437int
27438main ()
27439{
27440return f != remove;
27441 ;
27442 return 0;
27443}
27444_ACEOF
27445rm -f conftest.$ac_objext conftest$ac_exeext
27446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27447 (eval $ac_link) 2>conftest.er1
a848cd7e 27448 ac_status=$?
ac1cb8d3
VS
27449 grep -v '^ *+' conftest.er1 >conftest.err
27450 rm -f conftest.er1
27451 cat conftest.err >&5
a848cd7e
SC
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
ddd14b14
RR
27454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
ac1cb8d3
VS
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_cv_func_remove=yes
27468else
27469 echo "$as_me: failed program was:" >&5
27470sed 's/^/| /' conftest.$ac_ext >&5
27471
27472ac_cv_func_remove=no
27473fi
ac1cb8d3
VS
27474rm -f conftest.err conftest.$ac_objext \
27475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27476fi
27477echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27478echo "${ECHO_T}$ac_cv_func_remove" >&6
27479
27480 if test $ac_cv_func_remove = no; then
27481 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27482echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27483if test "${ac_cv_lib_posix_remove+set}" = set; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27485else
27486 ac_check_lib_save_LIBS=$LIBS
27487LIBS="-lposix $LIBS"
27488cat >conftest.$ac_ext <<_ACEOF
27489/* confdefs.h. */
27490_ACEOF
27491cat confdefs.h >>conftest.$ac_ext
27492cat >>conftest.$ac_ext <<_ACEOF
27493/* end confdefs.h. */
27494
27495/* Override any gcc2 internal prototype to avoid an error. */
27496#ifdef __cplusplus
27497extern "C"
27498#endif
27499/* We use char because int might match the return type of a gcc2
27500 builtin and then its argument prototype would still apply. */
27501char remove ();
27502int
27503main ()
27504{
27505remove ();
27506 ;
27507 return 0;
27508}
27509_ACEOF
27510rm -f conftest.$ac_objext conftest$ac_exeext
27511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27512 (eval $ac_link) 2>conftest.er1
a848cd7e 27513 ac_status=$?
ac1cb8d3
VS
27514 grep -v '^ *+' conftest.er1 >conftest.err
27515 rm -f conftest.er1
27516 cat conftest.err >&5
a848cd7e
SC
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
ddd14b14
RR
27519 { ac_try='test -z "$ac_c_werror_flag"
27520 || test ! -s conftest.err'
ac1cb8d3
VS
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; } &&
27526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; }; then
27532 ac_cv_lib_posix_remove=yes
27533else
27534 echo "$as_me: failed program was:" >&5
27535sed 's/^/| /' conftest.$ac_ext >&5
27536
27537ac_cv_lib_posix_remove=no
27538fi
ac1cb8d3
VS
27539rm -f conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27541LIBS=$ac_check_lib_save_LIBS
27542fi
27543echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27544echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27545if test $ac_cv_lib_posix_remove = yes; then
27546 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27547fi
27548
27549 fi
27550
27551 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27552 echo "$as_me:$LINENO: checking for shmat" >&5
27553echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27554if test "${ac_cv_func_shmat+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27556else
27557 cat >conftest.$ac_ext <<_ACEOF
27558/* confdefs.h. */
27559_ACEOF
27560cat confdefs.h >>conftest.$ac_ext
27561cat >>conftest.$ac_ext <<_ACEOF
27562/* end confdefs.h. */
ac1cb8d3
VS
27563/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27565#define shmat innocuous_shmat
27566
a848cd7e
SC
27567/* System header to define __stub macros and hopefully few prototypes,
27568 which can conflict with char shmat (); below.
27569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27571
a848cd7e
SC
27572#ifdef __STDC__
27573# include <limits.h>
27574#else
27575# include <assert.h>
27576#endif
ac1cb8d3
VS
27577
27578#undef shmat
27579
a848cd7e
SC
27580/* Override any gcc2 internal prototype to avoid an error. */
27581#ifdef __cplusplus
27582extern "C"
27583{
27584#endif
27585/* We use char because int might match the return type of a gcc2
27586 builtin and then its argument prototype would still apply. */
27587char shmat ();
27588/* The GNU C library defines this for functions which it implements
27589 to always fail with ENOSYS. Some functions are actually named
27590 something starting with __ and the normal name is an alias. */
27591#if defined (__stub_shmat) || defined (__stub___shmat)
27592choke me
27593#else
27594char (*f) () = shmat;
27595#endif
27596#ifdef __cplusplus
27597}
27598#endif
27599
27600int
27601main ()
27602{
27603return f != shmat;
27604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext conftest$ac_exeext
27609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27610 (eval $ac_link) 2>conftest.er1
a848cd7e 27611 ac_status=$?
ac1cb8d3
VS
27612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
a848cd7e
SC
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
ddd14b14
RR
27617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
ac1cb8d3
VS
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_func_shmat=yes
27631else
27632 echo "$as_me: failed program was:" >&5
27633sed 's/^/| /' conftest.$ac_ext >&5
27634
27635ac_cv_func_shmat=no
27636fi
ac1cb8d3
VS
27637rm -f conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27639fi
27640echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27641echo "${ECHO_T}$ac_cv_func_shmat" >&6
27642
27643 if test $ac_cv_func_shmat = no; then
27644 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27645echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27646if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27647 echo $ECHO_N "(cached) $ECHO_C" >&6
27648else
27649 ac_check_lib_save_LIBS=$LIBS
27650LIBS="-lipc $LIBS"
27651cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657
27658/* Override any gcc2 internal prototype to avoid an error. */
27659#ifdef __cplusplus
27660extern "C"
27661#endif
27662/* We use char because int might match the return type of a gcc2
27663 builtin and then its argument prototype would still apply. */
27664char shmat ();
27665int
27666main ()
27667{
27668shmat ();
27669 ;
27670 return 0;
27671}
27672_ACEOF
27673rm -f conftest.$ac_objext conftest$ac_exeext
27674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27675 (eval $ac_link) 2>conftest.er1
a848cd7e 27676 ac_status=$?
ac1cb8d3
VS
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
a848cd7e
SC
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
ddd14b14
RR
27682 { ac_try='test -z "$ac_c_werror_flag"
27683 || test ! -s conftest.err'
ac1cb8d3
VS
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; } &&
27689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; }; then
27695 ac_cv_lib_ipc_shmat=yes
27696else
27697 echo "$as_me: failed program was:" >&5
27698sed 's/^/| /' conftest.$ac_ext >&5
27699
27700ac_cv_lib_ipc_shmat=no
27701fi
ac1cb8d3
VS
27702rm -f conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27704LIBS=$ac_check_lib_save_LIBS
27705fi
27706echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27707echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27708if test $ac_cv_lib_ipc_shmat = yes; then
27709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27710fi
27711
27712 fi
27713 fi
27714
27715 # Check for libraries that X11R6 Xt/Xaw programs need.
27716 ac_save_LDFLAGS=$LDFLAGS
27717 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27718 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27719 # check for ICE first), but we must link in the order -lSM -lICE or
27720 # we get undefined symbols. So assume we have SM if we have ICE.
27721 # These have to be linked with before -lX11, unlike the other
27722 # libraries we check for below, so use a different variable.
27723 # John Interrante, Karl Berry
27724 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27725echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27726if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27728else
27729 ac_check_lib_save_LIBS=$LIBS
27730LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27731cat >conftest.$ac_ext <<_ACEOF
27732/* confdefs.h. */
27733_ACEOF
27734cat confdefs.h >>conftest.$ac_ext
27735cat >>conftest.$ac_ext <<_ACEOF
27736/* end confdefs.h. */
27737
27738/* Override any gcc2 internal prototype to avoid an error. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742/* We use char because int might match the return type of a gcc2
27743 builtin and then its argument prototype would still apply. */
27744char IceConnectionNumber ();
27745int
27746main ()
27747{
27748IceConnectionNumber ();
27749 ;
27750 return 0;
27751}
27752_ACEOF
27753rm -f conftest.$ac_objext conftest$ac_exeext
27754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27755 (eval $ac_link) 2>conftest.er1
a848cd7e 27756 ac_status=$?
ac1cb8d3
VS
27757 grep -v '^ *+' conftest.er1 >conftest.err
27758 rm -f conftest.er1
27759 cat conftest.err >&5
a848cd7e
SC
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } &&
ddd14b14
RR
27762 { ac_try='test -z "$ac_c_werror_flag"
27763 || test ! -s conftest.err'
ac1cb8d3
VS
27764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765 (eval $ac_try) 2>&5
27766 ac_status=$?
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); }; } &&
27769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; }; then
27775 ac_cv_lib_ICE_IceConnectionNumber=yes
27776else
27777 echo "$as_me: failed program was:" >&5
27778sed 's/^/| /' conftest.$ac_ext >&5
27779
27780ac_cv_lib_ICE_IceConnectionNumber=no
27781fi
ac1cb8d3
VS
27782rm -f conftest.err conftest.$ac_objext \
27783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27784LIBS=$ac_check_lib_save_LIBS
27785fi
27786echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27787echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27788if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27789 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27790fi
27791
27792 LDFLAGS=$ac_save_LDFLAGS
27793
27794fi
27795
27796
27797 if test "$no_x" = "yes"; then
27798 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27799echo "$as_me: error: X11 not found" >&2;}
27800 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27801 fi
27802
74b84332
VS
27803 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27804 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27805 AFMINSTALL=afminstall
27806 COMPILED_X_PROGRAM=0
27807
74b84332
VS
27808 fi
27809
27810 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27811 if test "$wxUSE_NANOX" = "yes"; then
27812 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27813echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27814 if test "x$MICROWIN" = x ; then
27815 echo "$as_me:$LINENO: result: not found" >&5
27816echo "${ECHO_T}not found" >&6
27817 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27818echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27819 { (exit 1); exit 1; }; }
27820 else
27821 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27822echo "${ECHO_T}$MICROWIN" >&6
27823 cat >>confdefs.h <<\_ACEOF
27824#define wxUSE_NANOX 1
27825_ACEOF
27826
27827 fi
27828 fi
27829
27830 if test "$wxUSE_UNICODE" = "yes"; then
27831
27832 succeeded=no
27833
27834 if test -z "$PKG_CONFIG"; then
27835 # Extract the first word of "pkg-config", so it can be a program name with args.
27836set dummy pkg-config; ac_word=$2
27837echo "$as_me:$LINENO: checking for $ac_word" >&5
27838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27839if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27841else
27842 case $PKG_CONFIG in
27843 [\\/]* | ?:[\\/]*)
27844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27845 ;;
27846 *)
27847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27848for as_dir in $PATH
27849do
27850 IFS=$as_save_IFS
27851 test -z "$as_dir" && as_dir=.
27852 for ac_exec_ext in '' $ac_executable_extensions; do
27853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27856 break 2
27857 fi
27858done
27859done
27860
27861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27862 ;;
27863esac
27864fi
27865PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27866
27867if test -n "$PKG_CONFIG"; then
27868 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27869echo "${ECHO_T}$PKG_CONFIG" >&6
27870else
27871 echo "$as_me:$LINENO: result: no" >&5
27872echo "${ECHO_T}no" >&6
27873fi
27874
27875 fi
27876
27877 if test "$PKG_CONFIG" = "no" ; then
27878 echo "*** The pkg-config script could not be found. Make sure it is"
27879 echo "*** in your path, or set the PKG_CONFIG environment variable"
27880 echo "*** to the full path to pkg-config."
27881 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27882 else
27883 PKG_CONFIG_MIN_VERSION=0.9.0
27884 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27885 echo "$as_me:$LINENO: checking for pangox" >&5
27886echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27887
27888 if $PKG_CONFIG --exists "pangox" ; then
27889 echo "$as_me:$LINENO: result: yes" >&5
27890echo "${ECHO_T}yes" >&6
27891 succeeded=yes
27892
27893 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27894echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27895 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27896 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27897echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27898
27899 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27900echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27901 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27902 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27903echo "${ECHO_T}$PANGOX_LIBS" >&6
27904 else
27905 PANGOX_CFLAGS=""
27906 PANGOX_LIBS=""
27907 ## If we have a custom action on failure, don't print errors, but
27908 ## do set a variable so people can do so.
27909 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27910
27911 fi
27912
27913
27914
27915 else
27916 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27917 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27918 fi
27919 fi
27920
27921 if test $succeeded = yes; then
27922
27923 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27924 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27925
27926 else
27927
27928 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27929echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27930 { (exit 1); exit 1; }; }
27931
27932
27933 fi
27934
27935
27936 succeeded=no
27937
27938 if test -z "$PKG_CONFIG"; then
27939 # Extract the first word of "pkg-config", so it can be a program name with args.
27940set dummy pkg-config; ac_word=$2
27941echo "$as_me:$LINENO: checking for $ac_word" >&5
27942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27943if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27945else
27946 case $PKG_CONFIG in
27947 [\\/]* | ?:[\\/]*)
27948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27949 ;;
27950 *)
27951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27952for as_dir in $PATH
27953do
27954 IFS=$as_save_IFS
27955 test -z "$as_dir" && as_dir=.
27956 for ac_exec_ext in '' $ac_executable_extensions; do
27957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27960 break 2
27961 fi
27962done
27963done
27964
27965 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27966 ;;
27967esac
27968fi
27969PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27970
27971if test -n "$PKG_CONFIG"; then
27972 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27973echo "${ECHO_T}$PKG_CONFIG" >&6
27974else
27975 echo "$as_me:$LINENO: result: no" >&5
27976echo "${ECHO_T}no" >&6
27977fi
27978
27979 fi
27980
27981 if test "$PKG_CONFIG" = "no" ; then
27982 echo "*** The pkg-config script could not be found. Make sure it is"
27983 echo "*** in your path, or set the PKG_CONFIG environment variable"
27984 echo "*** to the full path to pkg-config."
27985 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27986 else
27987 PKG_CONFIG_MIN_VERSION=0.9.0
27988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27989 echo "$as_me:$LINENO: checking for pangoft2" >&5
27990echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27991
27992 if $PKG_CONFIG --exists "pangoft2" ; then
27993 echo "$as_me:$LINENO: result: yes" >&5
27994echo "${ECHO_T}yes" >&6
27995 succeeded=yes
27996
27997 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27998echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27999 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28000 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28001echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28002
28003 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28004echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28005 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28006 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28007echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28008 else
28009 PANGOFT2_CFLAGS=""
28010 PANGOFT2_LIBS=""
28011 ## If we have a custom action on failure, don't print errors, but
28012 ## do set a variable so people can do so.
28013 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28014
28015 fi
28016
28017
28018
28019 else
28020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28022 fi
28023 fi
28024
28025 if test $succeeded = yes; then
28026
28027 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28028 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28029
28030 else
28031
28032 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28033echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28034 wxUSE_PRINTING_ARCHITECTURE="no"
28035
28036
28037 fi
28038
28039
28040 succeeded=no
28041
28042 if test -z "$PKG_CONFIG"; then
28043 # Extract the first word of "pkg-config", so it can be a program name with args.
28044set dummy pkg-config; ac_word=$2
28045echo "$as_me:$LINENO: checking for $ac_word" >&5
28046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28047if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28049else
28050 case $PKG_CONFIG in
28051 [\\/]* | ?:[\\/]*)
28052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28053 ;;
28054 *)
28055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28056for as_dir in $PATH
28057do
28058 IFS=$as_save_IFS
28059 test -z "$as_dir" && as_dir=.
28060 for ac_exec_ext in '' $ac_executable_extensions; do
28061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28064 break 2
28065 fi
28066done
28067done
28068
28069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28070 ;;
28071esac
28072fi
28073PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28074
28075if test -n "$PKG_CONFIG"; then
28076 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28077echo "${ECHO_T}$PKG_CONFIG" >&6
28078else
28079 echo "$as_me:$LINENO: result: no" >&5
28080echo "${ECHO_T}no" >&6
28081fi
28082
28083 fi
28084
28085 if test "$PKG_CONFIG" = "no" ; then
28086 echo "*** The pkg-config script could not be found. Make sure it is"
28087 echo "*** in your path, or set the PKG_CONFIG environment variable"
28088 echo "*** to the full path to pkg-config."
28089 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28090 else
28091 PKG_CONFIG_MIN_VERSION=0.9.0
28092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28093 echo "$as_me:$LINENO: checking for pangoxft" >&5
28094echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28095
28096 if $PKG_CONFIG --exists "pangoxft" ; then
28097 echo "$as_me:$LINENO: result: yes" >&5
28098echo "${ECHO_T}yes" >&6
28099 succeeded=yes
28100
28101 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28102echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28103 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28104 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28105echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28106
28107 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28108echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28109 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28110 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28111echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28112 else
28113 PANGOXFT_CFLAGS=""
28114 PANGOXFT_LIBS=""
28115 ## If we have a custom action on failure, don't print errors, but
28116 ## do set a variable so people can do so.
28117 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28118
28119 fi
28120
28121
28122
28123 else
28124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28126 fi
28127 fi
28128
28129 if test $succeeded = yes; then
28130
4ae1af05
MB
28131 cat >>confdefs.h <<\_ACEOF
28132#define HAVE_PANGO_XFT 1
28133_ACEOF
28134
a848cd7e
SC
28135 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28136 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28137
28138 else
28139
28140 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28141echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28142
28143
28144 fi
28145
304205f1
VS
28146 save_CFLAGS="$CFLAGS"
28147 save_LIBS="$LIBS"
28148 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28149 LIBS="$LIBS $PANGOX_LIBS"
28150
28151for ac_func in pango_font_family_is_monospace
28152do
28153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28154echo "$as_me:$LINENO: checking for $ac_func" >&5
28155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28156if eval "test \"\${$as_ac_var+set}\" = set"; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159 cat >conftest.$ac_ext <<_ACEOF
28160/* confdefs.h. */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h. */
28165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28167#define $ac_func innocuous_$ac_func
28168
28169/* System header to define __stub macros and hopefully few prototypes,
28170 which can conflict with char $ac_func (); below.
28171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28172 <limits.h> exists even on freestanding compilers. */
28173
28174#ifdef __STDC__
28175# include <limits.h>
28176#else
28177# include <assert.h>
28178#endif
28179
28180#undef $ac_func
28181
28182/* Override any gcc2 internal prototype to avoid an error. */
28183#ifdef __cplusplus
28184extern "C"
28185{
28186#endif
28187/* We use char because int might match the return type of a gcc2
28188 builtin and then its argument prototype would still apply. */
28189char $ac_func ();
28190/* The GNU C library defines this for functions which it implements
28191 to always fail with ENOSYS. Some functions are actually named
28192 something starting with __ and the normal name is an alias. */
28193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28194choke me
28195#else
28196char (*f) () = $ac_func;
28197#endif
28198#ifdef __cplusplus
28199}
28200#endif
28201
28202int
28203main ()
28204{
28205return f != $ac_func;
28206 ;
28207 return 0;
28208}
28209_ACEOF
28210rm -f conftest.$ac_objext conftest$ac_exeext
28211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28212 (eval $ac_link) 2>conftest.er1
28213 ac_status=$?
28214 grep -v '^ *+' conftest.er1 >conftest.err
28215 rm -f conftest.er1
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
ddd14b14
RR
28219 { ac_try='test -z "$ac_c_werror_flag"
28220 || test ! -s conftest.err'
304205f1
VS
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28223 ac_status=$?
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; } &&
28226 { ac_try='test -s conftest$ac_exeext'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
28232 eval "$as_ac_var=yes"
28233else
28234 echo "$as_me: failed program was:" >&5
28235sed 's/^/| /' conftest.$ac_ext >&5
28236
28237eval "$as_ac_var=no"
28238fi
28239rm -f conftest.err conftest.$ac_objext \
28240 conftest$ac_exeext conftest.$ac_ext
28241fi
28242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28244if test `eval echo '${'$as_ac_var'}'` = yes; then
28245 cat >>confdefs.h <<_ACEOF
28246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28247_ACEOF
28248
28249fi
28250done
28251
28252 CFLAGS="$save_CFLAGS"
28253 LIBS="$save_LIBS"
a848cd7e
SC
28254 fi
28255
28256 wxUSE_UNIVERSAL="yes"
28257
28258 if test "$wxUSE_NANOX" = "yes"; then
28259 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28260 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"
28261 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28262 else
28263 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28264 fi
28265
a848cd7e
SC
28266 TOOLKIT=X11
28267 GUIDIST=X11_DIST
28268 fi
28269
28270 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28271 if test "$wxUSE_UNICODE" = "yes"; then
28272 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28273echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28274 { (exit 1); exit 1; }; }
28275 fi
28276
74b84332
VS
28277 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28278echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28279
74b84332
VS
28280ac_find_includes=
28281for ac_dir in $SEARCH_INCLUDE /usr/include;
28282 do
28283 if test -f "$ac_dir/Xm/Xm.h"; then
28284 ac_find_includes=$ac_dir
28285 break
28286 fi
28287 done
a848cd7e 28288
74b84332
VS
28289 if test "$ac_find_includes" != "" ; then
28290 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28291echo "${ECHO_T}found in $ac_find_includes" >&6
28292
28293 if test "x$ac_find_includes" = "x/usr/include"; then
28294 ac_path_to_include=""
28295 else
28296 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28297 result=$?
28298 if test $result = 0; then
28299 ac_path_to_include=""
28300 else
28301 ac_path_to_include=" -I$ac_find_includes"
28302 fi
a848cd7e
SC
28303 fi
28304
74b84332
VS
28305 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28306 else
28307 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28308/* confdefs.h. */
28309_ACEOF
28310cat confdefs.h >>conftest.$ac_ext
28311cat >>conftest.$ac_ext <<_ACEOF
28312/* end confdefs.h. */
28313
74b84332
VS
28314 #include <Xm/Xm.h>
28315
a848cd7e
SC
28316int
28317main ()
28318{
28319
74b84332
VS
28320 int version;
28321 version = xmUseVersion;
28322
a848cd7e
SC
28323 ;
28324 return 0;
28325}
28326_ACEOF
74b84332
VS
28327rm -f conftest.$ac_objext
28328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28329 (eval $ac_compile) 2>conftest.er1
a848cd7e 28330 ac_status=$?
ac1cb8d3
VS
28331 grep -v '^ *+' conftest.er1 >conftest.err
28332 rm -f conftest.er1
28333 cat conftest.err >&5
a848cd7e
SC
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } &&
ddd14b14
RR
28336 { ac_try='test -z "$ac_c_werror_flag"
28337 || test ! -s conftest.err'
ac1cb8d3
VS
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; } &&
74b84332 28343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
74b84332
VS
28349
28350 echo "$as_me:$LINENO: result: found in default search path" >&5
28351echo "${ECHO_T}found in default search path" >&6
28352 COMPILED_X_PROGRAM=1
28353
a848cd7e
SC
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
a848cd7e 28358
74b84332
VS
28359 echo "$as_me:$LINENO: result: no" >&5
28360echo "${ECHO_T}no" >&6
28361 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28362echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28363 { (exit 1); exit 1; }; }
a848cd7e 28364
a848cd7e 28365
a848cd7e 28366fi
74b84332
VS
28367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28368 fi
28369
28370 if test "$COMPILED_X_PROGRAM" = 0; then
28371 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28372echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28373
28374ac_find_libraries=
28375for ac_dir in $SEARCH_LIB /usr/lib;
28376 do
3eca31dc 28377 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28378 if test -f "$ac_dir/libXm.$ac_extension"; then
28379 ac_find_libraries=$ac_dir
28380 break 2
a848cd7e 28381 fi
74b84332
VS
28382 done
28383 done
a848cd7e 28384
74b84332
VS
28385 if test "$ac_find_libraries" != "" ; then
28386 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28387echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28388
74b84332
VS
28389
28390 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28391 result=$?
28392 if test $result = 0; then
28393 ac_path_to_link=""
a848cd7e 28394 else
74b84332
VS
28395 ac_path_to_link=" -L$ac_find_libraries"
28396 fi
28397
28398 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28399 else
28400 save_CFLAGS=$CFLAGS
28401 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28402
28403 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28404/* confdefs.h. */
28405_ACEOF
28406cat confdefs.h >>conftest.$ac_ext
28407cat >>conftest.$ac_ext <<_ACEOF
28408/* end confdefs.h. */
28409
74b84332
VS
28410 #include <Xm/Xm.h>
28411
a848cd7e
SC
28412int
28413main ()
28414{
74b84332
VS
28415
28416 int version;
28417 version = xmUseVersion;
28418
a848cd7e
SC
28419 ;
28420 return 0;
28421}
28422_ACEOF
74b84332
VS
28423rm -f conftest.$ac_objext
28424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28425 (eval $ac_compile) 2>conftest.er1
a848cd7e 28426 ac_status=$?
ac1cb8d3
VS
28427 grep -v '^ *+' conftest.er1 >conftest.err
28428 rm -f conftest.er1
28429 cat conftest.err >&5
a848cd7e
SC
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } &&
ddd14b14
RR
28432 { ac_try='test -z "$ac_c_werror_flag"
28433 || test ! -s conftest.err'
ac1cb8d3
VS
28434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28435 (eval $ac_try) 2>&5
28436 ac_status=$?
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; } &&
74b84332 28439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; }; then
74b84332
VS
28445
28446 echo "$as_me:$LINENO: result: found in default search path" >&5
28447echo "${ECHO_T}found in default search path" >&6
28448 COMPILED_X_PROGRAM=1
28449
a848cd7e
SC
28450else
28451 echo "$as_me: failed program was:" >&5
28452sed 's/^/| /' conftest.$ac_ext >&5
28453
74b84332
VS
28454
28455 echo "$as_me:$LINENO: result: no" >&5
28456echo "${ECHO_T}no" >&6
28457 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28458echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28459 { (exit 1); exit 1; }; }
28460
28461
28462fi
28463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28464
28465 CFLAGS=$save_CFLAGS
28466 fi
28467 fi
28468
28469 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28470echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28471 libp_link=""
28472 libsm_ice_link=""
28473 libs_found=0
28474 for libp in "" " -lXp"; do
28475 if test "$libs_found" = "0"; then
28476 for libsm_ice in "" " -lSM -lICE"; do
28477 if test "$libs_found" = "0"; then
28478 save_LIBS="$LIBS"
28479 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28480 save_CFLAGS=$CFLAGS
28481 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28482
28483 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
28489
74b84332
VS
28490 #include <Xm/Xm.h>
28491 #include <Xm/List.h>
28492
a848cd7e
SC
28493int
28494main ()
28495{
74b84332
VS
28496
28497 XmString string = NULL;
28498 Widget w = NULL;
28499 int position = 0;
28500 XmListAddItem(w, string, position);
28501
a848cd7e
SC
28502 ;
28503 return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext conftest$ac_exeext
28507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28508 (eval $ac_link) 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); } &&
ddd14b14
RR
28515 { ac_try='test -z "$ac_c_werror_flag"
28516 || test ! -s conftest.err'
ac1cb8d3
VS
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
28528
28529 libp_link="$libp"
28530 libsm_ice_link="$libsm_ice"
28531 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28532echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28533 libs_found=1
28534
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539
28540
28541fi
ac1cb8d3
VS
28542rm -f conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28544
28545 LIBS="$save_LIBS"
28546 CFLAGS=$save_CFLAGS
28547 fi
28548 done
28549 fi
28550 done
28551
28552 if test "$libs_found" = "0"; then
28553 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28554echo "${ECHO_T}can't find the right libraries" >&6
28555 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28556echo "$as_me: error: can't link a simple motif program" >&2;}
28557 { (exit 1); exit 1; }; }
28558 fi
28559
28560 save_CFLAGS=$CFLAGS
28561 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28562 echo "$as_me:$LINENO: checking for Motif 2" >&5
28563echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28564 cat >conftest.$ac_ext <<_ACEOF
28565/* confdefs.h. */
28566_ACEOF
28567cat confdefs.h >>conftest.$ac_ext
28568cat >>conftest.$ac_ext <<_ACEOF
28569/* end confdefs.h. */
28570
28571 #include <Xm/Xm.h>
28572
28573int
28574main ()
28575{
28576
28577 #if XmVersion < 2000
28578 #error "Not Motif 2"
28579 #endif
28580
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585rm -f conftest.$ac_objext
28586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28587 (eval $ac_compile) 2>conftest.er1
a848cd7e 28588 ac_status=$?
ac1cb8d3
VS
28589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
a848cd7e
SC
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
ddd14b14
RR
28594 { ac_try='test -z "$ac_c_werror_flag"
28595 || test ! -s conftest.err'
ac1cb8d3
VS
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607
28608 cat >>confdefs.h <<\_ACEOF
28609#define __WXMOTIF20__ 1
28610_ACEOF
28611
28612 echo "$as_me:$LINENO: result: found" >&5
28613echo "${ECHO_T}found" >&6
28614
28615else
28616 echo "$as_me: failed program was:" >&5
28617sed 's/^/| /' conftest.$ac_ext >&5
28618
28619
28620 cat >>confdefs.h <<\_ACEOF
28621#define __WXMOTIF20__ 0
28622_ACEOF
28623
28624 echo "$as_me:$LINENO: result: not found" >&5
28625echo "${ECHO_T}not found" >&6
28626
2113bc77
MW
28627fi
28628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28629
28630 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28631echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28632 cat >conftest.$ac_ext <<_ACEOF
28633/* confdefs.h. */
28634_ACEOF
28635cat confdefs.h >>conftest.$ac_ext
28636cat >>conftest.$ac_ext <<_ACEOF
28637/* end confdefs.h. */
28638
28639 #include <Xm/Xm.h>
28640
28641int
28642main ()
28643{
28644
28645 #if !defined(LesstifVersion) || LesstifVersion <= 0
28646 #error "Not Lesstif"
28647 #endif
28648
28649 ;
28650 return 0;
28651}
28652_ACEOF
28653rm -f conftest.$ac_objext
28654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28655 (eval $ac_compile) 2>conftest.er1
28656 ac_status=$?
28657 grep -v '^ *+' conftest.er1 >conftest.err
28658 rm -f conftest.er1
28659 cat conftest.err >&5
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } &&
28662 { ac_try='test -z "$ac_c_werror_flag"
28663 || test ! -s conftest.err'
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; } &&
28669 { ac_try='test -s conftest.$ac_objext'
28670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671 (eval $ac_try) 2>&5
28672 ac_status=$?
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; }; then
28675
28676 cat >>confdefs.h <<\_ACEOF
28677#define __WXLESSTIF__ 1
28678_ACEOF
28679
28680 echo "$as_me:$LINENO: result: yes" >&5
28681echo "${ECHO_T}yes" >&6
28682
28683else
28684 echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687
28688 cat >>confdefs.h <<\_ACEOF
28689#define __WXLESSTIF__ 0
28690_ACEOF
28691
28692 echo "$as_me:$LINENO: result: no" >&5
28693echo "${ECHO_T}no" >&6
28694
a848cd7e 28695fi
ac1cb8d3 28696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28697 CFLAGS=$save_CFLAGS
28698
28699 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28700 TOOLKIT=MOTIF
28701 GUIDIST=MOTIF_DIST
28702 fi
28703
74b84332 28704 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28705 if test "$wxUSE_LIBXPM" = "sys"; then
28706 echo "$as_me:$LINENO: checking for Xpm library" >&5
28707echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28708
28709ac_find_libraries=
28710for ac_dir in $SEARCH_LIB /usr/lib;
28711 do
3eca31dc 28712 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28713 if test -f "$ac_dir/libXpm.$ac_extension"; then
28714 ac_find_libraries=$ac_dir
28715 break 2
28716 fi
28717 done
28718 done
28719
28720 if test "$ac_find_libraries" != "" ; then
28721
28722 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28723 result=$?
28724 if test $result = 0; then
28725 ac_path_to_link=""
28726 else
28727 ac_path_to_link=" -L$ac_find_libraries"
28728 fi
28729
28730 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28731 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28732echo "${ECHO_T}found at $ac_find_libraries" >&6
28733
28734 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28735echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28736if test "${wx_cv_x11_xpm_h+set}" = set; then
28737 echo $ECHO_N "(cached) $ECHO_C" >&6
28738else
28739
28740 save_CFLAGS=$CFLAGS
28741 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28742
28743 cat >conftest.$ac_ext <<_ACEOF
28744/* confdefs.h. */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h. */
28749
28750 #include <X11/xpm.h>
28751
28752int
28753main ()
28754{
28755
28756 int version;
28757 version = XpmLibraryVersion();
28758
28759 ;
28760 return 0;
28761}
28762_ACEOF
28763rm -f conftest.$ac_objext
28764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28765 (eval $ac_compile) 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); } &&
ddd14b14
RR
28772 { ac_try='test -z "$ac_c_werror_flag"
28773 || test ! -s conftest.err'
ac1cb8d3
VS
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; } &&
28779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 wx_cv_x11_xpm_h=yes
28786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790wx_cv_x11_xpm_h=no
28791
28792fi
ac1cb8d3 28793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28794
28795 CFLAGS=$save_CFLAGS
28796
28797
28798fi
28799echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28800echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28801
28802 if test $wx_cv_x11_xpm_h = "yes"; then
28803 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28804 cat >>confdefs.h <<\_ACEOF
28805#define wxHAVE_LIB_XPM 1
28806_ACEOF
28807
28808 else
28809 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28810echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28811 fi
28812 fi
28813
28814 fi
28815
28816 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28817echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28818if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
28820else
28821 ac_check_lib_save_LIBS=$LIBS
28822LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28823cat >conftest.$ac_ext <<_ACEOF
28824/* confdefs.h. */
28825_ACEOF
28826cat confdefs.h >>conftest.$ac_ext
28827cat >>conftest.$ac_ext <<_ACEOF
28828/* end confdefs.h. */
28829
28830/* Override any gcc2 internal prototype to avoid an error. */
28831#ifdef __cplusplus
28832extern "C"
28833#endif
28834/* We use char because int might match the return type of a gcc2
28835 builtin and then its argument prototype would still apply. */
28836char XShapeQueryExtension ();
28837int
28838main ()
28839{
28840XShapeQueryExtension ();
28841 ;
28842 return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext conftest$ac_exeext
28846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28847 (eval $ac_link) 2>conftest.er1
a848cd7e 28848 ac_status=$?
ac1cb8d3
VS
28849 grep -v '^ *+' conftest.er1 >conftest.err
28850 rm -f conftest.er1
28851 cat conftest.err >&5
a848cd7e
SC
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
ddd14b14
RR
28854 { ac_try='test -z "$ac_c_werror_flag"
28855 || test ! -s conftest.err'
ac1cb8d3
VS
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 ac_cv_lib_Xext_XShapeQueryExtension=yes
28868else
28869 echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872ac_cv_lib_Xext_XShapeQueryExtension=no
28873fi
ac1cb8d3
VS
28874rm -f conftest.err conftest.$ac_objext \
28875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28876LIBS=$ac_check_lib_save_LIBS
28877fi
28878echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28879echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28880if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28881
28882 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28883 wxHAVE_XEXT_LIB=1
28884
28885fi
28886
28887
28888 if test "$wxHAVE_XEXT_LIB" = 1; then
28889 save_CFLAGS="$CFLAGS"
28890 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28891
28892 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28893echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28894 cat >conftest.$ac_ext <<_ACEOF
28895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
28900
28901 #include <X11/Xlib.h>
28902 #include <X11/extensions/shape.h>
28903
28904int
28905main ()
28906{
28907
28908 int dummy1, dummy2;
28909 XShapeQueryExtension((Display*)NULL,
28910 (int*)NULL, (int*)NULL);
28911
28912 ;
28913 return 0;
28914}
28915_ACEOF
28916rm -f conftest.$ac_objext
28917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28918 (eval $ac_compile) 2>conftest.er1
a848cd7e 28919 ac_status=$?
ac1cb8d3
VS
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
a848cd7e
SC
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } &&
ddd14b14
RR
28925 { ac_try='test -z "$ac_c_werror_flag"
28926 || test ! -s conftest.err'
ac1cb8d3
VS
28927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; } &&
28932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28935 ac_status=$?
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; }; then
28938
28939 cat >>confdefs.h <<\_ACEOF
28940#define HAVE_XSHAPE 1
28941_ACEOF
28942
28943 echo "$as_me:$LINENO: result: found" >&5
28944echo "${ECHO_T}found" >&6
28945
28946else
28947 echo "$as_me: failed program was:" >&5
28948sed 's/^/| /' conftest.$ac_ext >&5
28949
28950
28951 echo "$as_me:$LINENO: result: not found" >&5
28952echo "${ECHO_T}not found" >&6
28953
28954fi
ac1cb8d3 28955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28956 CFLAGS="$save_CFLAGS"
28957
28958 fi
28959 fi
28960
28961 if test "$wxUSE_MAC" = 1; then
28962 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28963echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28964 if test "$GCC" = yes; then
28965 echo "$as_me:$LINENO: result: gcc" >&5
28966echo "${ECHO_T}gcc" >&6
28967 CPPFLAGS_PASCAL="-fpascal-strings"
28968 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28969 echo "$as_me:$LINENO: result: xlc" >&5
28970echo "${ECHO_T}xlc" >&6
28971 CPPFLAGS_PASCAL="-qmacpstr"
28972 else
28973 echo "$as_me:$LINENO: result: none" >&5
28974echo "${ECHO_T}none" >&6
28975 fi
28976
1e9e8aba
DE
28977 if test "x$wxUSE_UNIX" = "xyes"; then
28978 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28979 else
28980 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28981 fi
a848cd7e 28982
a848cd7e
SC
28983 TOOLKIT=MAC
28984 GUIDIST=MACX_DIST
dd21ced8 28985 WXBASEPORT="_carbon"
a848cd7e
SC
28986 fi
28987
28988 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28989 TOOLKIT=COCOA
28990 GUIDIST=COCOA_DIST
28991 fi
28992
28993 if test "$wxUSE_PM" = 1; then
28994 TOOLKIT=PM
de59c161
RD
28995 GUIDIST=PM_DIST
28996 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28997echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28998if test "${wx_cv_spbcdata+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29000else
29001
29002 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29003/* confdefs.h. */
29004_ACEOF
29005cat confdefs.h >>conftest.$ac_ext
29006cat >>conftest.$ac_ext <<_ACEOF
29007/* end confdefs.h. */
29008
29009 #define INCL_PM
29010 #include <os2.h>
29011
29012int
29013main ()
29014{
29015
29016 SPBCDATA test;
29017
29018 ;
29019 return 0;
29020}
29021_ACEOF
29022rm -f conftest.$ac_objext
29023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29024 (eval $ac_compile) 2>conftest.er1
de59c161 29025 ac_status=$?
ac1cb8d3
VS
29026 grep -v '^ *+' conftest.er1 >conftest.err
29027 rm -f conftest.er1
29028 cat conftest.err >&5
de59c161
RD
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } &&
ddd14b14
RR
29031 { ac_try='test -z "$ac_c_werror_flag"
29032 || test ! -s conftest.err'
ac1cb8d3
VS
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; } &&
29038 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040 (eval $ac_try) 2>&5
29041 ac_status=$?
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; }; then
29044 wx_cv_spbcdata=yes
29045else
29046 echo "$as_me: failed program was:" >&5
29047sed 's/^/| /' conftest.$ac_ext >&5
29048
29049wx_cv_spbcdata=no
29050
29051fi
ac1cb8d3 29052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29053
29054
29055fi
29056echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29057echo "${ECHO_T}$wx_cv_spbcdata" >&6
29058
29059 if test $wx_cv_spbcdata = "yes"; then
29060 cat >>confdefs.h <<\_ACEOF
29061#define HAVE_SPBCDATA 1
29062_ACEOF
29063
29064 fi
a848cd7e
SC
29065 fi
29066
29067 if test "$TOOLKIT" = "PM" ; then
29068 TOOLKIT_DIR="os2"
29069 else
29070 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29071 fi
29072
a848cd7e 29073 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29074 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29075 WIDGET_SET=univ
a848cd7e
SC
29076 fi
29077
29078 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29079 DISTDIR="wx\$(TOOLKIT)"
29080else
29081 USE_GUI=0
29082
29083 TOOLKIT_DIR="base"
29084
29085 if test "$USE_WIN32" = 1 ; then
a848cd7e 29086 TOOLKIT="MSW"
a848cd7e
SC
29087 fi
29088
a848cd7e
SC
29089 GUIDIST="BASE_DIST"
29090 DISTDIR="wxBase"
29091fi
29092
29093
29094
29095
29096IODBC_C_SRC=""
29097
29098
29099if test "$TOOLKIT" != "MSW" ; then
29100
29101 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29102
29103 if test "${ac_cv_header_sql_h+set}" = set; then
29104 echo "$as_me:$LINENO: checking for sql.h" >&5
29105echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29106if test "${ac_cv_header_sql_h+set}" = set; then
29107 echo $ECHO_N "(cached) $ECHO_C" >&6
29108fi
29109echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29110echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29111else
29112 # Is the header compilable?
29113echo "$as_me:$LINENO: checking sql.h usability" >&5
29114echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29115cat >conftest.$ac_ext <<_ACEOF
29116/* confdefs.h. */
29117_ACEOF
29118cat confdefs.h >>conftest.$ac_ext
29119cat >>conftest.$ac_ext <<_ACEOF
29120/* end confdefs.h. */
29121$ac_includes_default
29122#include <sql.h>
29123_ACEOF
29124rm -f conftest.$ac_objext
29125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29126 (eval $ac_compile) 2>conftest.er1
a848cd7e 29127 ac_status=$?
ac1cb8d3
VS
29128 grep -v '^ *+' conftest.er1 >conftest.err
29129 rm -f conftest.er1
29130 cat conftest.err >&5
a848cd7e
SC
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } &&
ddd14b14
RR
29133 { ac_try='test -z "$ac_c_werror_flag"
29134 || test ! -s conftest.err'
ac1cb8d3
VS
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; } &&
29140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; }; then
29146 ac_header_compiler=yes
29147else
29148 echo "$as_me: failed program was:" >&5
29149sed 's/^/| /' conftest.$ac_ext >&5
29150
29151ac_header_compiler=no
29152fi
ac1cb8d3 29153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29155echo "${ECHO_T}$ac_header_compiler" >&6
29156
29157# Is the header present?
29158echo "$as_me:$LINENO: checking sql.h presence" >&5
29159echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29160cat >conftest.$ac_ext <<_ACEOF
29161/* confdefs.h. */
29162_ACEOF
29163cat confdefs.h >>conftest.$ac_ext
29164cat >>conftest.$ac_ext <<_ACEOF
29165/* end confdefs.h. */
29166#include <sql.h>
29167_ACEOF
29168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29170 ac_status=$?
29171 grep -v '^ *+' conftest.er1 >conftest.err
29172 rm -f conftest.er1
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } >/dev/null; then
29176 if test -s conftest.err; then
29177 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29179 else
29180 ac_cpp_err=
29181 fi
29182else
29183 ac_cpp_err=yes
29184fi
29185if test -z "$ac_cpp_err"; then
29186 ac_header_preproc=yes
29187else
29188 echo "$as_me: failed program was:" >&5
29189sed 's/^/| /' conftest.$ac_ext >&5
29190
29191 ac_header_preproc=no
29192fi
29193rm -f conftest.err conftest.$ac_ext
29194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29195echo "${ECHO_T}$ac_header_preproc" >&6
29196
29197# So? What about this header?
ac1cb8d3
VS
29198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29199 yes:no: )
a848cd7e
SC
29200 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29201echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29202 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29203echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29204 ac_header_preproc=yes
a848cd7e 29205 ;;
ac1cb8d3 29206 no:yes:* )
a848cd7e
SC
29207 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29208echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29209 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29210echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29212echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29214echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29215 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29216echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29217 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29218echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29219 (
29220 cat <<\_ASBOX
ac1cb8d3
VS
29221## ----------------------------------------- ##
29222## Report this to wx-dev@lists.wxwidgets.org ##
29223## ----------------------------------------- ##
a848cd7e
SC
29224_ASBOX
29225 ) |
29226 sed "s/^/$as_me: WARNING: /" >&2
29227 ;;
29228esac
29229echo "$as_me:$LINENO: checking for sql.h" >&5
29230echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29231if test "${ac_cv_header_sql_h+set}" = set; then
29232 echo $ECHO_N "(cached) $ECHO_C" >&6
29233else
29234 ac_cv_header_sql_h=$ac_header_preproc
29235fi
29236echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29237echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29238
29239fi
29240if test $ac_cv_header_sql_h = yes; then
29241 found_sql_h=1
29242fi
29243
29244
29245 if test "x$found_sql_h" = "x1" ; then
29246 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29247echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29248if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 ac_check_lib_save_LIBS=$LIBS
29252LIBS="-liodbc $LIBS"
29253cat >conftest.$ac_ext <<_ACEOF
29254/* confdefs.h. */
29255_ACEOF
29256cat confdefs.h >>conftest.$ac_ext
29257cat >>conftest.$ac_ext <<_ACEOF
29258/* end confdefs.h. */
29259
29260/* Override any gcc2 internal prototype to avoid an error. */
29261#ifdef __cplusplus
29262extern "C"
29263#endif
29264/* We use char because int might match the return type of a gcc2
29265 builtin and then its argument prototype would still apply. */
29266char SQLAllocEnv ();
29267int
29268main ()
29269{
29270SQLAllocEnv ();
29271 ;
29272 return 0;
29273}
29274_ACEOF
29275rm -f conftest.$ac_objext conftest$ac_exeext
29276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29277 (eval $ac_link) 2>conftest.er1
a848cd7e 29278 ac_status=$?
ac1cb8d3
VS
29279 grep -v '^ *+' conftest.er1 >conftest.err
29280 rm -f conftest.er1
29281 cat conftest.err >&5
a848cd7e
SC
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); } &&
ddd14b14
RR
29284 { ac_try='test -z "$ac_c_werror_flag"
29285 || test ! -s conftest.err'
ac1cb8d3
VS
29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287 (eval $ac_try) 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; } &&
29291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293 (eval $ac_try) 2>&5
29294 ac_status=$?
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
29297 ac_cv_lib_iodbc_SQLAllocEnv=yes
29298else
29299 echo "$as_me: failed program was:" >&5
29300sed 's/^/| /' conftest.$ac_ext >&5
29301
29302ac_cv_lib_iodbc_SQLAllocEnv=no
29303fi
ac1cb8d3
VS
29304rm -f conftest.err conftest.$ac_objext \
29305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29306LIBS=$ac_check_lib_save_LIBS
29307fi
29308echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29309echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29310if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29311 ODBC_LINK=" -liodbc"
29312else
29313
29314 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29315echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29316if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29318else
29319 ac_check_lib_save_LIBS=$LIBS
29320LIBS="-lunixodbc $LIBS"
29321cat >conftest.$ac_ext <<_ACEOF
29322/* confdefs.h. */
29323_ACEOF
29324cat confdefs.h >>conftest.$ac_ext
29325cat >>conftest.$ac_ext <<_ACEOF
29326/* end confdefs.h. */
29327
29328/* Override any gcc2 internal prototype to avoid an error. */
29329#ifdef __cplusplus
29330extern "C"
29331#endif
29332/* We use char because int might match the return type of a gcc2
29333 builtin and then its argument prototype would still apply. */
29334char SQLAllocEnv ();
29335int
29336main ()
29337{
29338SQLAllocEnv ();
29339 ;
29340 return 0;
29341}
29342_ACEOF
29343rm -f conftest.$ac_objext conftest$ac_exeext
29344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29345 (eval $ac_link) 2>conftest.er1
a848cd7e 29346 ac_status=$?
ac1cb8d3
VS
29347 grep -v '^ *+' conftest.er1 >conftest.err
29348 rm -f conftest.er1
29349 cat conftest.err >&5
a848cd7e
SC
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } &&
ddd14b14
RR
29352 { ac_try='test -z "$ac_c_werror_flag"
29353 || test ! -s conftest.err'
ac1cb8d3
VS
29354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
29365 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370ac_cv_lib_unixodbc_SQLAllocEnv=no
29371fi
ac1cb8d3
VS
29372rm -f conftest.err conftest.$ac_objext \
29373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29374LIBS=$ac_check_lib_save_LIBS
29375fi
29376echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29377echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29378if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29379 ODBC_LINK=" -lunixodbc"
29380else
29381
29382 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29383echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29384if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29386else
29387 ac_check_lib_save_LIBS=$LIBS
29388LIBS="-lodbc $LIBS"
29389cat >conftest.$ac_ext <<_ACEOF
29390/* confdefs.h. */
29391_ACEOF
29392cat confdefs.h >>conftest.$ac_ext
29393cat >>conftest.$ac_ext <<_ACEOF
29394/* end confdefs.h. */
29395
29396/* Override any gcc2 internal prototype to avoid an error. */
29397#ifdef __cplusplus
29398extern "C"
29399#endif
29400/* We use char because int might match the return type of a gcc2
29401 builtin and then its argument prototype would still apply. */
29402char SQLAllocEnv ();
29403int
29404main ()
29405{
29406SQLAllocEnv ();
29407 ;
29408 return 0;
29409}
29410_ACEOF
29411rm -f conftest.$ac_objext conftest$ac_exeext
29412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29413 (eval $ac_link) 2>conftest.er1
a848cd7e 29414 ac_status=$?
ac1cb8d3
VS
29415 grep -v '^ *+' conftest.er1 >conftest.err
29416 rm -f conftest.er1
29417 cat conftest.err >&5
a848cd7e
SC
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
ddd14b14
RR
29420 { ac_try='test -z "$ac_c_werror_flag"
29421 || test ! -s conftest.err'
ac1cb8d3
VS
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29424 ac_status=$?
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; } &&
29427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
29433 ac_cv_lib_odbc_SQLAllocEnv=yes
29434else
29435 echo "$as_me: failed program was:" >&5
29436sed 's/^/| /' conftest.$ac_ext >&5
29437
29438ac_cv_lib_odbc_SQLAllocEnv=no
29439fi
ac1cb8d3
VS
29440rm -f conftest.err conftest.$ac_objext \
29441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29442LIBS=$ac_check_lib_save_LIBS
29443fi
29444echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29445echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29446if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29447 ODBC_LINK=" -lodbc"
29448fi
29449
29450
29451fi
29452
29453
29454fi
29455
29456 fi
29457 if test "x$ODBC_LINK" = "x" ; then
29458 if test "$wxUSE_ODBC" = "sys" ; then
29459 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29460echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29461 { (exit 1); exit 1; }; }
29462 else
29463 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29464echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29465 wxUSE_ODBC=builtin
29466 fi
29467 else
29468 wxUSE_ODBC=sys
29469 fi
29470 fi
a848cd7e 29471
2da0c077
RD
29472 if test "$wxUSE_ODBC" = "builtin" ; then
29473 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29474#define wxUSE_BUILTIN_IODBC 1
29475_ACEOF
29476
a848cd7e
SC
29477 fi
29478fi
29479
2da0c077
RD
29480if test "$wxUSE_ODBC" != "no" ; then
29481 cat >>confdefs.h <<\_ACEOF
29482#define wxUSE_ODBC 1
29483_ACEOF
29484
29485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29486
29487 WXODBCFLAG="-D_IODBC_"
29488fi
a848cd7e 29489
01cb68df 29490
a848cd7e 29491if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29492 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29493 echo "$as_me:$LINENO: checking for Xinerama" >&5
29494echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29495
29496ac_find_libraries=
29497for ac_dir in $SEARCH_LIB /usr/lib;
29498 do
3eca31dc 29499 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29500 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29501 ac_find_libraries=$ac_dir
29502 break 2
29503 fi
29504 done
29505 done
29506
29507 if test "$ac_find_libraries" != "" ; then
29508
29509 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29510 result=$?
29511 if test $result = 0; then
29512 ac_path_to_link=""
29513 else
29514 ac_path_to_link=" -L$ac_find_libraries"
29515 fi
29516
29517 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29518 LDFLAGS="$LDFLAGS $ac_path_to_link"
29519 fi
29520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29521 echo "$as_me:$LINENO: result: yes" >&5
29522echo "${ECHO_T}yes" >&6
29523
29524 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29525echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29526
29527ac_find_libraries=
29528for ac_dir in $SEARCH_LIB /usr/lib;
29529 do
3eca31dc 29530 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29531 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29532 ac_find_libraries=$ac_dir
29533 break 2
29534 fi
29535 done
29536 done
29537
29538 if test "$ac_find_libraries" != "" ; then
29539 echo "$as_me:$LINENO: result: yes" >&5
29540echo "${ECHO_T}yes" >&6
29541
29542for ac_header in X11/extensions/xf86vmode.h
29543do
29544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29545echo "$as_me:$LINENO: checking for $ac_header" >&5
29546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29547if eval "test \"\${$as_ac_Header+set}\" = set"; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550 cat >conftest.$ac_ext <<_ACEOF
29551/* confdefs.h. */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h. */
29556
29557 #if HAVE_X11_XLIB_H
29558 #include <X11/Xlib.h>
29559 #endif
29560
29561
29562#include <$ac_header>
29563_ACEOF
29564rm -f conftest.$ac_objext
29565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29566 (eval $ac_compile) 2>conftest.er1
a848cd7e 29567 ac_status=$?
ac1cb8d3
VS
29568 grep -v '^ *+' conftest.er1 >conftest.err
29569 rm -f conftest.er1
29570 cat conftest.err >&5
a848cd7e
SC
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } &&
ddd14b14
RR
29573 { ac_try='test -z "$ac_c_werror_flag"
29574 || test ! -s conftest.err'
ac1cb8d3
VS
29575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29576 (eval $ac_try) 2>&5
29577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; } &&
29580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; }; then
29586 eval "$as_ac_Header=yes"
29587else
29588 echo "$as_me: failed program was:" >&5
29589sed 's/^/| /' conftest.$ac_ext >&5
29590
29591eval "$as_ac_Header=no"
29592fi
ac1cb8d3 29593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29594fi
29595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29597if test `eval echo '${'$as_ac_Header'}'` = yes; then
29598 cat >>confdefs.h <<_ACEOF
29599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29600_ACEOF
29601
29602 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29603
29604fi
29605
29606done
29607
29608 else
29609 echo "$as_me:$LINENO: result: no" >&5
29610echo "${ECHO_T}no" >&6
29611 fi
29612
29613 else
29614 echo "$as_me:$LINENO: result: no" >&5
29615echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29616 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29617echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29618 wxUSE_DISPLAY="no"
29619 fi
01cb68df
RG
29620 elif test "$wxUSE_MSW" = 1; then
29621
29622
29623for ac_header in multimon.h ddraw.h
29624do
29625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29626echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29628if eval "test \"\${$as_ac_Header+set}\" = set"; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29630else
5294a27e 29631 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
5294a27e
VZ
29637#include <windows.h>
29638
01cb68df
RG
29639#include <$ac_header>
29640_ACEOF
29641rm -f conftest.$ac_objext
29642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29643 (eval $ac_compile) 2>conftest.er1
01cb68df 29644 ac_status=$?
ac1cb8d3
VS
29645 grep -v '^ *+' conftest.er1 >conftest.err
29646 rm -f conftest.er1
29647 cat conftest.err >&5
01cb68df
RG
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } &&
ddd14b14
RR
29650 { ac_try='test -z "$ac_c_werror_flag"
29651 || test ! -s conftest.err'
ac1cb8d3
VS
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
5294a27e 29663 eval "$as_ac_Header=yes"
01cb68df
RG
29664else
29665 echo "$as_me: failed program was:" >&5
29666sed 's/^/| /' conftest.$ac_ext >&5
29667
5294a27e 29668eval "$as_ac_Header=no"
01cb68df 29669fi
ac1cb8d3 29670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29671fi
29672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29674if test `eval echo '${'$as_ac_Header'}'` = yes; then
29675 cat >>confdefs.h <<_ACEOF
29676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29677_ACEOF
29678
29679else
29680
5294a27e
VZ
29681 wxUSE_DISPLAY="no"
29682 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29683echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29684
29685fi
29686
29687done
29688
a848cd7e
SC
29689 fi
29690fi
29691
29692
29693USE_OPENGL=0
29694if test "$wxUSE_OPENGL" = "yes"; then
29695 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29696 OPENGL_LIBS="-framework OpenGL -framework AGL"
29697 elif test "$wxUSE_MSW" = 1; then
29698 OPENGL_LIBS="-lopengl32 -lglu32"
29699 else
29700
29701
29702ac_find_includes=
29703for ac_dir in $SEARCH_INCLUDE /usr/include;
29704 do
29705 if test -f "$ac_dir/GL/gl.h"; then
29706 ac_find_includes=$ac_dir
29707 break
29708 fi
29709 done
29710
29711 if test "$ac_find_includes" != "" ; then
29712 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29713echo "${ECHO_T}found in $ac_find_includes" >&6
29714
29715 if test "x$ac_find_includes" = "x/usr/include"; then
29716 ac_path_to_include=""
29717 else
29718 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29719 result=$?
29720 if test $result = 0; then
29721 ac_path_to_include=""
29722 else
29723 ac_path_to_include=" -I$ac_find_includes"
29724 fi
29725 fi
29726
29727 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29728 fi
29729
29730 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29731 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29732echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29733if test "${ac_cv_header_GL_gl_h+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29735fi
29736echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29737echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29738else
29739 # Is the header compilable?
29740echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29741echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29742cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748$ac_includes_default
29749#include <GL/gl.h>
29750_ACEOF
29751rm -f conftest.$ac_objext
29752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29753 (eval $ac_compile) 2>conftest.er1
a848cd7e 29754 ac_status=$?
ac1cb8d3
VS
29755 grep -v '^ *+' conftest.er1 >conftest.err
29756 rm -f conftest.er1
29757 cat conftest.err >&5
a848cd7e
SC
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
ddd14b14
RR
29760 { ac_try='test -z "$ac_c_werror_flag"
29761 || test ! -s conftest.err'
ac1cb8d3
VS
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29764 ac_status=$?
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29770 ac_status=$?
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 ac_header_compiler=yes
29774else
29775 echo "$as_me: failed program was:" >&5
29776sed 's/^/| /' conftest.$ac_ext >&5
29777
29778ac_header_compiler=no
29779fi
ac1cb8d3 29780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29782echo "${ECHO_T}$ac_header_compiler" >&6
29783
29784# Is the header present?
29785echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29786echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29787cat >conftest.$ac_ext <<_ACEOF
29788/* confdefs.h. */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h. */
29793#include <GL/gl.h>
29794_ACEOF
29795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29797 ac_status=$?
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } >/dev/null; then
29803 if test -s conftest.err; then
29804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29806 else
29807 ac_cpp_err=
29808 fi
29809else
29810 ac_cpp_err=yes
29811fi
29812if test -z "$ac_cpp_err"; then
29813 ac_header_preproc=yes
29814else
29815 echo "$as_me: failed program was:" >&5
29816sed 's/^/| /' conftest.$ac_ext >&5
29817
29818 ac_header_preproc=no
29819fi
29820rm -f conftest.err conftest.$ac_ext
29821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29822echo "${ECHO_T}$ac_header_preproc" >&6
29823
29824# So? What about this header?
ac1cb8d3
VS
29825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29826 yes:no: )
a848cd7e
SC
29827 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29828echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29829 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29830echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29831 ac_header_preproc=yes
a848cd7e 29832 ;;
ac1cb8d3 29833 no:yes:* )
a848cd7e
SC
29834 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29835echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29836 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29837echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29838 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29839echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29840 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29841echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29842 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29843echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29844 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29845echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29846 (
29847 cat <<\_ASBOX
ac1cb8d3
VS
29848## ----------------------------------------- ##
29849## Report this to wx-dev@lists.wxwidgets.org ##
29850## ----------------------------------------- ##
a848cd7e
SC
29851_ASBOX
29852 ) |
29853 sed "s/^/$as_me: WARNING: /" >&2
29854 ;;
29855esac
29856echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29857echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29858if test "${ac_cv_header_GL_gl_h+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29860else
29861 ac_cv_header_GL_gl_h=$ac_header_preproc
29862fi
29863echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29864echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29865
29866fi
29867if test $ac_cv_header_GL_gl_h = yes; then
29868
29869 found_gl=0
29870
29871 echo "$as_me:$LINENO: checking for -lGL" >&5
29872echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29873
29874ac_find_libraries=
29875for ac_dir in $SEARCH_LIB /usr/lib;
29876 do
3eca31dc 29877 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29878 if test -f "$ac_dir/libGL.$ac_extension"; then
29879 ac_find_libraries=$ac_dir
29880 break 2
29881 fi
29882 done
29883 done
29884
29885 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29886 echo "$as_me:$LINENO: result: yes" >&5
29887echo "${ECHO_T}yes" >&6
29888
a848cd7e
SC
29889
29890 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29891 result=$?
29892 if test $result = 0; then
29893 ac_path_to_link=""
29894 else
29895 ac_path_to_link=" -L$ac_find_libraries"
29896 fi
29897
29898 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29899 LDFLAGS_GL="$ac_path_to_link"
29900 fi
29901
69120ee4
VZ
29902 echo "$as_me:$LINENO: checking for -lGLU" >&5
29903echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29904
29905ac_find_libraries=
29906for ac_dir in $SEARCH_LIB /usr/lib;
29907 do
3eca31dc 29908 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29909 if test -f "$ac_dir/libGLU.$ac_extension"; then
29910 ac_find_libraries=$ac_dir
29911 break 2
29912 fi
29913 done
29914 done
29915
29916 if test "$ac_find_libraries" != "" ; then
29917
29918 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29919 result=$?
29920 if test $result = 0; then
29921 ac_path_to_link=""
29922 else
29923 ac_path_to_link=" -L$ac_find_libraries"
29924 fi
29925
29926 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29927 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29928 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29929 fi
29930
29931 found_gl=1
29932 OPENGL_LIBS="-lGL -lGLU"
29933 echo "$as_me:$LINENO: result: yes" >&5
29934echo "${ECHO_T}yes" >&6
69120ee4
VZ
29935 else
29936 echo "$as_me:$LINENO: result: no" >&5
29937echo "${ECHO_T}no" >&6
a848cd7e 29938 fi
69120ee4
VZ
29939 else
29940 echo "$as_me:$LINENO: result: no" >&5
29941echo "${ECHO_T}no" >&6
a848cd7e
SC
29942 fi
29943
29944 if test "$found_gl" != 1; then
a848cd7e
SC
29945 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29946echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29947
29948ac_find_libraries=
29949for ac_dir in $SEARCH_LIB /usr/lib;
29950 do
3eca31dc 29951 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29952 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29953 ac_find_libraries=$ac_dir
29954 break 2
29955 fi
29956 done
29957 done
29958
29959 if test "$ac_find_libraries" != "" ; then
29960
29961 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29962 result=$?
29963 if test $result = 0; then
29964 ac_path_to_link=""
29965 else
29966 ac_path_to_link=" -L$ac_find_libraries"
29967 fi
29968
29969 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29970 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29971 echo "$as_me:$LINENO: result: yes" >&5
29972echo "${ECHO_T}yes" >&6
29973 else
29974 echo "$as_me:$LINENO: result: no" >&5
29975echo "${ECHO_T}no" >&6
29976 fi
29977 fi
29978
29979fi
29980
29981
29982
29983 if test "x$OPENGL_LIBS" = "x"; then
29984 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29985echo "$as_me: error: OpenGL libraries not available" >&2;}
29986 { (exit 1); exit 1; }; }
29987 fi
29988 fi
29989
29990 if test "$wxUSE_OPENGL" = "yes"; then
29991 USE_OPENGL=1
29992 cat >>confdefs.h <<\_ACEOF
29993#define wxUSE_OPENGL 1
29994_ACEOF
29995
29996 cat >>confdefs.h <<\_ACEOF
29997#define wxUSE_GLCANVAS 1
29998_ACEOF
29999
30000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30001 fi
30002fi
30003
a848cd7e
SC
30004
30005if test -n "$TOOLKIT" ; then
30006 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30007fi
30008
a848cd7e
SC
30009
30010
30011if test "$wxUSE_SHARED" = "yes"; then
30012 case "${host}" in
30013 *-pc-msdosdjgpp )
30014 wxUSE_SHARED=no
30015 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30016echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30017 ;;
30018 esac
30019fi
30020
a848cd7e 30021if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30022
30023
30024 found_versioning=no
30025
30026
30027 if test $found_versioning = no ; then
30028 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30029echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30030if test "${wx_cv_version_script+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
30033
30034 echo "VER_1 { *; };" >conftest.sym
30035 echo "int main() { return 0; }" >conftest.cpp
30036
30037 if { ac_try='
30038 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30039 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; } ; then
30045 if test -s conftest.stderr ; then
30046 wx_cv_version_script=no
30047 else
30048 wx_cv_version_script=yes
30049 fi
30050 else
30051 wx_cv_version_script=no
30052 fi
e5d4b470
MW
30053
30054 if test $wx_cv_version_script = yes
30055 then
30056 echo "struct B { virtual ~B() { } }; \
30057 struct D : public B { }; \
30058 void F() { D d; }" > conftest.cpp
30059
30060 if { ac_try='
30061 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30062 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064 (eval $ac_try) 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='
30069 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30070 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }
30076 then
30077 if { ac_try='
30078 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30079 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30081 (eval $ac_try) 2>&5
30082 ac_status=$?
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); }; }
30085 then
30086 wx_cv_version_script=yes
30087 else
30088 wx_cv_version_script=no
30089 fi
30090 fi
30091 fi
30092
a848cd7e 30093 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30094 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30095
30096fi
30097echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30098echo "${ECHO_T}$wx_cv_version_script" >&6
30099 if test $wx_cv_version_script = yes ; then
30100 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30101 fi
30102 fi
30103
30104
30105 case "${host}" in
30106 *-*-linux* | *-*-gnu* )
30107 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30108 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30109 ;;
30110
30111 *-*-solaris2* )
30112 if test "$GCC" = yes ; then
30113 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30114
30115 saveLdflags="$LDFLAGS"
30116 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30117 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30118echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30119 cat >conftest.$ac_ext <<_ACEOF
30120/* confdefs.h. */
30121_ACEOF
30122cat confdefs.h >>conftest.$ac_ext
30123cat >>conftest.$ac_ext <<_ACEOF
30124/* end confdefs.h. */
30125
30126int
30127main ()
30128{
30129
30130 ;
30131 return 0;
30132}
30133_ACEOF
30134rm -f conftest.$ac_objext conftest$ac_exeext
30135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30136 (eval $ac_link) 2>conftest.er1
a848cd7e 30137 ac_status=$?
ac1cb8d3
VS
30138 grep -v '^ *+' conftest.er1 >conftest.err
30139 rm -f conftest.er1
30140 cat conftest.err >&5
a848cd7e
SC
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } &&
ddd14b14
RR
30143 { ac_try='test -z "$ac_c_werror_flag"
30144 || test ! -s conftest.err'
ac1cb8d3
VS
30145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30146 (eval $ac_try) 2>&5
30147 ac_status=$?
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); }; } &&
30150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30152 (eval $ac_try) 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; }; then
30156
30157 echo "$as_me:$LINENO: result: yes" >&5
30158echo "${ECHO_T}yes" >&6
30159 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30160 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30161
30162else
30163 echo "$as_me: failed program was:" >&5
30164sed 's/^/| /' conftest.$ac_ext >&5
30165
30166
30167 echo "$as_me:$LINENO: result: no" >&5
30168echo "${ECHO_T}no" >&6
30169 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30170echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30171 LDFLAGS="$saveLdflags -Wl,-R,/"
30172 cat >conftest.$ac_ext <<_ACEOF
30173/* confdefs.h. */
30174_ACEOF
30175cat confdefs.h >>conftest.$ac_ext
30176cat >>conftest.$ac_ext <<_ACEOF
30177/* end confdefs.h. */
30178
30179int
30180main ()
30181{
30182
30183 ;
30184 return 0;
30185}
30186_ACEOF
30187rm -f conftest.$ac_objext conftest$ac_exeext
30188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30189 (eval $ac_link) 2>conftest.er1
a848cd7e 30190 ac_status=$?
ac1cb8d3
VS
30191 grep -v '^ *+' conftest.er1 >conftest.err
30192 rm -f conftest.er1
30193 cat conftest.err >&5
a848cd7e
SC
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); } &&
ddd14b14
RR
30196 { ac_try='test -z "$ac_c_werror_flag"
30197 || test ! -s conftest.err'
ac1cb8d3
VS
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30200 ac_status=$?
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; } &&
30203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30206 ac_status=$?
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; }; then
30209
ffa0583f 30210 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30211echo "${ECHO_T}yes" >&6
ffa0583f
RL
30212 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30213 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30214
a848cd7e
SC
30215else
30216 echo "$as_me: failed program was:" >&5
30217sed 's/^/| /' conftest.$ac_ext >&5
30218
30219
30220 echo "$as_me:$LINENO: result: no" >&5
30221echo "${ECHO_T}no" >&6
30222
30223fi
ac1cb8d3
VS
30224rm -f conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30226
30227fi
ac1cb8d3
VS
30228rm -f conftest.err conftest.$ac_objext \
30229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30230 LDFLAGS="$saveLdflags"
30231 else
a848cd7e 30232 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30233 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30234 fi
30235 ;;
30236
30237 powerpc-*-darwin* )
0caebc27
MW
30238 install_name_tool=`which install_name_tool`
30239 if test "$install_name_tool" -a -x "$install_name_tool"; then
30240 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30241 cat <<EOF >change-install-names
a848cd7e
SC
30242#!/bin/sh
30243libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30244inst_cmd="install_name_tool "
30245for i in \${libnames} ; do
30246 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30247done
30248\${inst_cmd} \${3}
30249EOF
0caebc27
MW
30250 chmod +x change-install-names
30251 fi
a848cd7e
SC
30252 ;;
30253
30254 *-*-cygwin* | *-*-mingw32* )
30255 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30256 ;;
30257
81f90336
MW
30258 *-*-hpux* )
30259 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30260 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30261 ;;
30262
a848cd7e 30263 esac
ceec2216 30264
ffa0583f
RL
30265 if test $wxUSE_RPATH = "no"; then
30266 SAMPLES_RPATH_FLAG=''
30267 SAMPLES_RPATH_POSTLINK=''
30268 WXCONFIG_RPATH=''
30269 fi
30270
30271 SHARED=1
30272
30273else
30274
ceec2216
RL
30275 config_linkage_component="-static"
30276 SHARED=0
ffa0583f 30277
ceec2216 30278fi
a848cd7e 30279
a848cd7e 30280
ceec2216
RL
30281UNICODE=0
30282lib_unicode_suffix=
30283WX_CHARTYPE="ansi"
30284if test "$wxUSE_UNICODE" = "yes"; then
30285 lib_unicode_suffix=u
30286 WX_CHARTYPE="unicode"
30287 UNICODE=1
a848cd7e
SC
30288fi
30289
ceec2216
RL
30290lib_debug_suffix=
30291WX_DEBUGTYPE="release"
30292DEBUG_FLAG=0
30293if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30294 lib_debug_suffix=d
30295 WX_DEBUGTYPE="debug"
30296 DEBUG_FLAG=1
30297fi
a848cd7e 30298
ceec2216
RL
30299WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30300WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30301
ceec2216
RL
30302DEBUG_INFO=0
30303if test "$wxUSE_DEBUG_INFO" = "yes"; then
30304 DEBUG_INFO=1
30305fi
a848cd7e 30306
ceec2216 30307WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30308
ceec2216 30309TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30310
ceec2216 30311TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30312
ceec2216
RL
30313if test "$cross_compiling" = "yes"; then
30314 HOST_SUFFIX="-$host_alias"
30315 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30316 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30317fi
30318
dd21ced8 30319WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30320if test "${TOOLKIT_DIR}" = "os2"; then
30321 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30322else
30323 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30324fi
ceec2216
RL
30325
30326
30327
1d1af5ea
DE
30328if test "$wxUSE_COCOA" = 1; then
30329
30330
30331 ac_ext=c
30332ac_cpp='$CPP $CPPFLAGS'
30333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30335ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336
30337ac_ext=m
30338
30339 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30340echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30341 cat >conftest.$ac_ext <<_ACEOF
30342/* confdefs.h. */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h. */
30347#include <AppKit/NSEvent.h>
30348#include <CoreFoundation/CoreFoundation.h>
30349
30350int
30351main ()
30352{
30353
30354 ;
30355 return 0;
30356}
30357_ACEOF
30358rm -f conftest.$ac_objext
30359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30360 (eval $ac_compile) 2>conftest.er1
30361 ac_status=$?
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
ddd14b14
RR
30367 { ac_try='test -z "$ac_c_werror_flag"
30368 || test ! -s conftest.err'
1d1af5ea
DE
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 echo "$as_me:$LINENO: result: no" >&5
30381echo "${ECHO_T}no" >&6
30382else
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
30386echo "$as_me:$LINENO: result: yes" >&5
30387echo "${ECHO_T}yes" >&6
30388 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30389echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30390 cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396#define __Point__ 1
30397#include <AppKit/NSEvent.h>
30398#include <CoreFoundation/CoreFoundation.h>
30399
30400int
30401main ()
30402{
30403
30404 ;
30405 return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext
30409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30410 (eval $ac_compile) 2>conftest.er1
30411 ac_status=$?
30412 grep -v '^ *+' conftest.er1 >conftest.err
30413 rm -f conftest.er1
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } &&
ddd14b14
RR
30417 { ac_try='test -z "$ac_c_werror_flag"
30418 || test ! -s conftest.err'
1d1af5ea
DE
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest.$ac_objext'
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; }; then
30430 echo "$as_me:$LINENO: result: yes" >&5
30431echo "${ECHO_T}yes" >&6
30432 cat >>confdefs.h <<\_ACEOF
30433#define __Point__ 1
30434_ACEOF
30435
30436
30437else
30438 echo "$as_me: failed program was:" >&5
30439sed 's/^/| /' conftest.$ac_ext >&5
30440
30441{ { echo "$as_me:$LINENO: error: no
30442See \`config.log' for more details." >&5
30443echo "$as_me: error: no
30444See \`config.log' for more details." >&2;}
30445 { (exit 1); exit 1; }; }
30446
30447fi
30448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30449
30450fi
30451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30452 ac_ext=c
30453ac_cpp='$CPP $CPPFLAGS'
30454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30456ac_compiler_gnu=$ac_cv_c_compiler_gnu
30457
30458fi
30459
a848cd7e 30460if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30461 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30462 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30463
a848cd7e 30464 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30465
30466 # Extract the first word of "Rez", so it can be a program name with args.
30467set dummy Rez; ac_word=$2
30468echo "$as_me:$LINENO: checking for $ac_word" >&5
30469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30470if test "${ac_cv_prog_RESCOMP+set}" = set; then
30471 echo $ECHO_N "(cached) $ECHO_C" >&6
30472else
30473 if test -n "$RESCOMP"; then
30474 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30475else
30476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30477for as_dir in $PATH
30478do
30479 IFS=$as_save_IFS
30480 test -z "$as_dir" && as_dir=.
30481 for ac_exec_ext in '' $ac_executable_extensions; do
30482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30483 ac_cv_prog_RESCOMP="Rez"
30484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30485 break 2
30486 fi
30487done
30488done
30489
30490 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30491fi
30492fi
30493RESCOMP=$ac_cv_prog_RESCOMP
30494if test -n "$RESCOMP"; then
30495 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30496echo "${ECHO_T}$RESCOMP" >&6
30497else
30498 echo "$as_me:$LINENO: result: no" >&5
30499echo "${ECHO_T}no" >&6
30500fi
30501
30502 # Extract the first word of "DeRez", so it can be a program name with args.
30503set dummy DeRez; ac_word=$2
30504echo "$as_me:$LINENO: checking for $ac_word" >&5
30505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30506if test "${ac_cv_prog_DEREZ+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30508else
30509 if test -n "$DEREZ"; then
30510 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30511else
30512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30513for as_dir in $PATH
30514do
30515 IFS=$as_save_IFS
30516 test -z "$as_dir" && as_dir=.
30517 for ac_exec_ext in '' $ac_executable_extensions; do
30518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30519 ac_cv_prog_DEREZ="DeRez"
30520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30521 break 2
30522 fi
30523done
30524done
30525
30526 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30527fi
30528fi
30529DEREZ=$ac_cv_prog_DEREZ
30530if test -n "$DEREZ"; then
30531 echo "$as_me:$LINENO: result: $DEREZ" >&5
30532echo "${ECHO_T}$DEREZ" >&6
30533else
30534 echo "$as_me:$LINENO: result: no" >&5
30535echo "${ECHO_T}no" >&6
30536fi
30537
30538 # Extract the first word of "SetFile", so it can be a program name with args.
30539set dummy SetFile; ac_word=$2
30540echo "$as_me:$LINENO: checking for $ac_word" >&5
30541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30542if test "${ac_cv_prog_SETFILE+set}" = set; then
30543 echo $ECHO_N "(cached) $ECHO_C" >&6
30544else
30545 if test -n "$SETFILE"; then
30546 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30547else
30548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549for as_dir in $PATH
30550do
30551 IFS=$as_save_IFS
30552 test -z "$as_dir" && as_dir=.
30553 for ac_exec_ext in '' $ac_executable_extensions; do
30554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30555 ac_cv_prog_SETFILE="SetFile"
30556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30557 break 2
30558 fi
30559done
30560done
30561
30562 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30563fi
30564fi
30565SETFILE=$ac_cv_prog_SETFILE
30566if test -n "$SETFILE"; then
30567 echo "$as_me:$LINENO: result: $SETFILE" >&5
30568echo "${ECHO_T}$SETFILE" >&6
30569else
30570 echo "$as_me:$LINENO: result: no" >&5
30571echo "${ECHO_T}no" >&6
30572fi
30573
30574
30575 MACSETFILE="\$(SETFILE)"
30576
30577 if test "$wxUSE_MAC" = 1; then
1a79f136 30578 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30579
1a79f136 30580 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30581 else
30582 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30583 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30584 fi
30585else
ffa0583f
RL
30586 MACSETFILE="@true"
30587 MACRESWXCONFIG="@true"
a848cd7e
SC
30588
30589 if test "$wxUSE_PM" = 1; then
30590 MACRESCOMP="emxbind -ep"
30591 else
ffa0583f 30592 MACRESCOMP="@true"
a848cd7e
SC
30593 fi
30594fi
30595
30596
30597
30598echo "$as_me:$LINENO: checking for mode_t" >&5
30599echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30600if test "${ac_cv_type_mode_t+set}" = set; then
30601 echo $ECHO_N "(cached) $ECHO_C" >&6
30602else
30603 cat >conftest.$ac_ext <<_ACEOF
30604/* confdefs.h. */
30605_ACEOF
30606cat confdefs.h >>conftest.$ac_ext
30607cat >>conftest.$ac_ext <<_ACEOF
30608/* end confdefs.h. */
30609$ac_includes_default
30610int
30611main ()
30612{
30613if ((mode_t *) 0)
30614 return 0;
30615if (sizeof (mode_t))
30616 return 0;
30617 ;
30618 return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext
30622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30623 (eval $ac_compile) 2>conftest.er1
a848cd7e 30624 ac_status=$?
ac1cb8d3
VS
30625 grep -v '^ *+' conftest.er1 >conftest.err
30626 rm -f conftest.er1
30627 cat conftest.err >&5
a848cd7e
SC
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } &&
ddd14b14
RR
30630 { ac_try='test -z "$ac_c_werror_flag"
30631 || test ! -s conftest.err'
ac1cb8d3
VS
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; } &&
30637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639 (eval $ac_try) 2>&5
30640 ac_status=$?
30641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642 (exit $ac_status); }; }; then
30643 ac_cv_type_mode_t=yes
30644else
30645 echo "$as_me: failed program was:" >&5
30646sed 's/^/| /' conftest.$ac_ext >&5
30647
30648ac_cv_type_mode_t=no
30649fi
ac1cb8d3 30650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30651fi
30652echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30653echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30654if test $ac_cv_type_mode_t = yes; then
30655 :
30656else
30657
30658cat >>confdefs.h <<_ACEOF
30659#define mode_t int
30660_ACEOF
30661
30662fi
30663
30664echo "$as_me:$LINENO: checking for off_t" >&5
30665echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30666if test "${ac_cv_type_off_t+set}" = set; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30668else
30669 cat >conftest.$ac_ext <<_ACEOF
30670/* confdefs.h. */
30671_ACEOF
30672cat confdefs.h >>conftest.$ac_ext
30673cat >>conftest.$ac_ext <<_ACEOF
30674/* end confdefs.h. */
30675$ac_includes_default
30676int
30677main ()
30678{
30679if ((off_t *) 0)
30680 return 0;
30681if (sizeof (off_t))
30682 return 0;
30683 ;
30684 return 0;
30685}
30686_ACEOF
30687rm -f conftest.$ac_objext
30688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30689 (eval $ac_compile) 2>conftest.er1
a848cd7e 30690 ac_status=$?
ac1cb8d3
VS
30691 grep -v '^ *+' conftest.er1 >conftest.err
30692 rm -f conftest.er1
30693 cat conftest.err >&5
a848cd7e
SC
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
ddd14b14
RR
30696 { ac_try='test -z "$ac_c_werror_flag"
30697 || test ! -s conftest.err'
ac1cb8d3
VS
30698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30699 (eval $ac_try) 2>&5
30700 ac_status=$?
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); }; } &&
30703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30705 (eval $ac_try) 2>&5
30706 ac_status=$?
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); }; }; then
30709 ac_cv_type_off_t=yes
30710else
30711 echo "$as_me: failed program was:" >&5
30712sed 's/^/| /' conftest.$ac_ext >&5
30713
30714ac_cv_type_off_t=no
30715fi
ac1cb8d3 30716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30717fi
30718echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30719echo "${ECHO_T}$ac_cv_type_off_t" >&6
30720if test $ac_cv_type_off_t = yes; then
30721 :
30722else
30723
30724cat >>confdefs.h <<_ACEOF
30725#define off_t long
30726_ACEOF
30727
30728fi
30729
30730echo "$as_me:$LINENO: checking for pid_t" >&5
30731echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30732if test "${ac_cv_type_pid_t+set}" = set; then
30733 echo $ECHO_N "(cached) $ECHO_C" >&6
30734else
30735 cat >conftest.$ac_ext <<_ACEOF
30736/* confdefs.h. */
30737_ACEOF
30738cat confdefs.h >>conftest.$ac_ext
30739cat >>conftest.$ac_ext <<_ACEOF
30740/* end confdefs.h. */
30741$ac_includes_default
30742int
30743main ()
30744{
30745if ((pid_t *) 0)
30746 return 0;
30747if (sizeof (pid_t))
30748 return 0;
30749 ;
30750 return 0;
30751}
30752_ACEOF
30753rm -f conftest.$ac_objext
30754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30755 (eval $ac_compile) 2>conftest.er1
a848cd7e 30756 ac_status=$?
ac1cb8d3
VS
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
a848cd7e
SC
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
ddd14b14
RR
30762 { ac_try='test -z "$ac_c_werror_flag"
30763 || test ! -s conftest.err'
ac1cb8d3
VS
30764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765 (eval $ac_try) 2>&5
30766 ac_status=$?
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; } &&
30769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 (eval $ac_try) 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; }; then
30775 ac_cv_type_pid_t=yes
30776else
30777 echo "$as_me: failed program was:" >&5
30778sed 's/^/| /' conftest.$ac_ext >&5
30779
30780ac_cv_type_pid_t=no
30781fi
ac1cb8d3 30782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30783fi
30784echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30785echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30786if test $ac_cv_type_pid_t = yes; then
30787 :
30788else
30789
30790cat >>confdefs.h <<_ACEOF
30791#define pid_t int
30792_ACEOF
30793
30794fi
30795
30796echo "$as_me:$LINENO: checking for size_t" >&5
30797echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30798if test "${ac_cv_type_size_t+set}" = set; then
30799 echo $ECHO_N "(cached) $ECHO_C" >&6
30800else
30801 cat >conftest.$ac_ext <<_ACEOF
30802/* confdefs.h. */
30803_ACEOF
30804cat confdefs.h >>conftest.$ac_ext
30805cat >>conftest.$ac_ext <<_ACEOF
30806/* end confdefs.h. */
30807$ac_includes_default
30808int
30809main ()
30810{
30811if ((size_t *) 0)
30812 return 0;
30813if (sizeof (size_t))
30814 return 0;
30815 ;
30816 return 0;
30817}
30818_ACEOF
30819rm -f conftest.$ac_objext
30820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30821 (eval $ac_compile) 2>conftest.er1
a848cd7e 30822 ac_status=$?
ac1cb8d3
VS
30823 grep -v '^ *+' conftest.er1 >conftest.err
30824 rm -f conftest.er1
30825 cat conftest.err >&5
a848cd7e
SC
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); } &&
ddd14b14
RR
30828 { ac_try='test -z "$ac_c_werror_flag"
30829 || test ! -s conftest.err'
ac1cb8d3
VS
30830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831 (eval $ac_try) 2>&5
30832 ac_status=$?
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; }; then
30841 ac_cv_type_size_t=yes
30842else
30843 echo "$as_me: failed program was:" >&5
30844sed 's/^/| /' conftest.$ac_ext >&5
30845
30846ac_cv_type_size_t=no
30847fi
ac1cb8d3 30848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30849fi
30850echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30851echo "${ECHO_T}$ac_cv_type_size_t" >&6
30852if test $ac_cv_type_size_t = yes; then
30853 :
30854else
30855
30856cat >>confdefs.h <<_ACEOF
30857#define size_t unsigned
30858_ACEOF
30859
30860fi
30861
30862echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30863echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30864if test "${ac_cv_type_uid_t+set}" = set; then
30865 echo $ECHO_N "(cached) $ECHO_C" >&6
30866else
30867 cat >conftest.$ac_ext <<_ACEOF
30868/* confdefs.h. */
30869_ACEOF
30870cat confdefs.h >>conftest.$ac_ext
30871cat >>conftest.$ac_ext <<_ACEOF
30872/* end confdefs.h. */
30873#include <sys/types.h>
30874
30875_ACEOF
30876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30877 $EGREP "uid_t" >/dev/null 2>&1; then
30878 ac_cv_type_uid_t=yes
30879else
30880 ac_cv_type_uid_t=no
30881fi
30882rm -f conftest*
30883
30884fi
30885echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30886echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30887if test $ac_cv_type_uid_t = no; then
30888
30889cat >>confdefs.h <<\_ACEOF
30890#define uid_t int
30891_ACEOF
30892
30893
30894cat >>confdefs.h <<\_ACEOF
30895#define gid_t int
30896_ACEOF
30897
30898fi
30899
30900
d51253e8
RL
30901echo "$as_me:$LINENO: checking for ssize_t" >&5
30902echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30903if test "${ac_cv_type_ssize_t+set}" = set; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905else
30906 cat >conftest.$ac_ext <<_ACEOF
30907/* confdefs.h. */
30908_ACEOF
30909cat confdefs.h >>conftest.$ac_ext
30910cat >>conftest.$ac_ext <<_ACEOF
30911/* end confdefs.h. */
30912$ac_includes_default
30913int
30914main ()
30915{
30916if ((ssize_t *) 0)
30917 return 0;
30918if (sizeof (ssize_t))
30919 return 0;
30920 ;
30921 return 0;
30922}
30923_ACEOF
30924rm -f conftest.$ac_objext
30925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30926 (eval $ac_compile) 2>conftest.er1
30927 ac_status=$?
30928 grep -v '^ *+' conftest.er1 >conftest.err
30929 rm -f conftest.er1
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); } &&
ddd14b14
RR
30933 { ac_try='test -z "$ac_c_werror_flag"
30934 || test ! -s conftest.err'
d51253e8
RL
30935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936 (eval $ac_try) 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; } &&
30940 { ac_try='test -s conftest.$ac_objext'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; }; then
30946 ac_cv_type_ssize_t=yes
30947else
30948 echo "$as_me: failed program was:" >&5
30949sed 's/^/| /' conftest.$ac_ext >&5
30950
30951ac_cv_type_ssize_t=no
30952fi
30953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30954fi
30955echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30956echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30957if test $ac_cv_type_ssize_t = yes; then
30958
30959cat >>confdefs.h <<_ACEOF
30960#define HAVE_SSIZE_T 1
30961_ACEOF
30962
30963
30964fi
30965
30966
a848cd7e
SC
30967
30968
30969ac_ext=cc
30970ac_cpp='$CXXCPP $CPPFLAGS'
30971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30974
30975echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30976echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30977if test "${wx_cv_size_t_is_uint+set}" = set; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30979else
30980
30981 cat >conftest.$ac_ext <<_ACEOF
30982/* confdefs.h. */
30983_ACEOF
30984cat confdefs.h >>conftest.$ac_ext
30985cat >>conftest.$ac_ext <<_ACEOF
30986/* end confdefs.h. */
30987#include <stddef.h>
30988int
30989main ()
30990{
30991
30992 return 0; }
30993
30994 struct Foo { void foo(size_t); void foo(unsigned int); };
30995
30996 int bar() {
30997
30998 ;
30999 return 0;
31000}
31001_ACEOF
31002rm -f conftest.$ac_objext
31003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31004 (eval $ac_compile) 2>conftest.er1
a848cd7e 31005 ac_status=$?
ac1cb8d3
VS
31006 grep -v '^ *+' conftest.er1 >conftest.err
31007 rm -f conftest.er1
31008 cat conftest.err >&5
a848cd7e
SC
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); } &&
ddd14b14
RR
31011 { ac_try='test -z "$ac_cxx_werror_flag"
31012 || test ! -s conftest.err'
ac1cb8d3
VS
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; } &&
31018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31021 ac_status=$?
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
31024 wx_cv_size_t_is_uint=no
31025else
31026 echo "$as_me: failed program was:" >&5
31027sed 's/^/| /' conftest.$ac_ext >&5
31028
31029wx_cv_size_t_is_uint=yes
31030
31031fi
ac1cb8d3 31032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31033
31034
31035fi
31036echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31037echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31038
31039if test "$wx_cv_size_t_is_uint" = "yes"; then
31040 cat >>confdefs.h <<\_ACEOF
31041#define wxSIZE_T_IS_UINT 1
31042_ACEOF
31043
31044else
31045 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31046echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31047if test "${wx_cv_size_t_is_ulong+set}" = set; then
31048 echo $ECHO_N "(cached) $ECHO_C" >&6
31049else
31050 cat >conftest.$ac_ext <<_ACEOF
31051/* confdefs.h. */
31052_ACEOF
31053cat confdefs.h >>conftest.$ac_ext
31054cat >>conftest.$ac_ext <<_ACEOF
31055/* end confdefs.h. */
31056#include <stddef.h>
31057int
31058main ()
31059{
31060
31061 return 0; }
31062
31063 struct Foo { void foo(size_t); void foo(unsigned long); };
31064
31065 int bar() {
31066
31067 ;
31068 return 0;
31069}
31070_ACEOF
31071rm -f conftest.$ac_objext
31072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31073 (eval $ac_compile) 2>conftest.er1
a848cd7e 31074 ac_status=$?
ac1cb8d3
VS
31075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
a848cd7e
SC
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
ddd14b14
RR
31080 { ac_try='test -z "$ac_cxx_werror_flag"
31081 || test ! -s conftest.err'
ac1cb8d3
VS
31082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083 (eval $ac_try) 2>&5
31084 ac_status=$?
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; } &&
31087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
31093 wx_cv_size_t_is_ulong=no
31094else
31095 echo "$as_me: failed program was:" >&5
31096sed 's/^/| /' conftest.$ac_ext >&5
31097
31098wx_cv_size_t_is_ulong=yes
31099
31100fi
ac1cb8d3 31101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31102
31103fi
31104echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31105echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31106
31107 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31108 cat >>confdefs.h <<\_ACEOF
31109#define wxSIZE_T_IS_ULONG 1
31110_ACEOF
31111
31112 fi
31113fi
31114
31115ac_ext=c
31116ac_cpp='$CPP $CPPFLAGS'
31117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31119ac_compiler_gnu=$ac_cv_c_compiler_gnu
31120
31121
31122
31123echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31124echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31125if test "${wx_cv_struct_pw_gecos+set}" = set; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31127else
31128
31129 cat >conftest.$ac_ext <<_ACEOF
31130/* confdefs.h. */
31131_ACEOF
31132cat confdefs.h >>conftest.$ac_ext
31133cat >>conftest.$ac_ext <<_ACEOF
31134/* end confdefs.h. */
31135#include <pwd.h>
31136int
31137main ()
31138{
31139
31140 char *p;
31141 struct passwd *pw;
31142 p = pw->pw_gecos;
31143
31144 ;
31145 return 0;
31146}
31147_ACEOF
31148rm -f conftest.$ac_objext
31149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31150 (eval $ac_compile) 2>conftest.er1
a848cd7e 31151 ac_status=$?
ac1cb8d3
VS
31152 grep -v '^ *+' conftest.er1 >conftest.err
31153 rm -f conftest.er1
31154 cat conftest.err >&5
a848cd7e
SC
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); } &&
ddd14b14
RR
31157 { ac_try='test -z "$ac_c_werror_flag"
31158 || test ! -s conftest.err'
ac1cb8d3
VS
31159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160 (eval $ac_try) 2>&5
31161 ac_status=$?
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; } &&
31164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31166 (eval $ac_try) 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; }; then
31170
31171 wx_cv_struct_pw_gecos=yes
31172
31173else
31174 echo "$as_me: failed program was:" >&5
31175sed 's/^/| /' conftest.$ac_ext >&5
31176
31177
31178 wx_cv_struct_pw_gecos=no
31179
31180
31181fi
ac1cb8d3 31182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31183
31184
31185fi
31186echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31187echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31188
31189if test "$wx_cv_struct_pw_gecos" = "yes"; then
31190 cat >>confdefs.h <<\_ACEOF
31191#define HAVE_PW_GECOS 1
31192_ACEOF
31193
31194fi
31195
31196
47a7e797 31197if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31198 cat >>confdefs.h <<\_ACEOF
31199#define wxUSE_WCHAR_T 1
31200_ACEOF
31201
31202
31203 WCSLEN_FOUND=0
31204 WCHAR_LINK=
31205
31206for ac_func in wcslen
31207do
31208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31209echo "$as_me:$LINENO: checking for $ac_func" >&5
31210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31211if eval "test \"\${$as_ac_var+set}\" = set"; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
31214 cat >conftest.$ac_ext <<_ACEOF
31215/* confdefs.h. */
31216_ACEOF
31217cat confdefs.h >>conftest.$ac_ext
31218cat >>conftest.$ac_ext <<_ACEOF
31219/* end confdefs.h. */
ac1cb8d3
VS
31220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31222#define $ac_func innocuous_$ac_func
31223
a848cd7e
SC
31224/* System header to define __stub macros and hopefully few prototypes,
31225 which can conflict with char $ac_func (); below.
31226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31227 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31228
a848cd7e
SC
31229#ifdef __STDC__
31230# include <limits.h>
31231#else
31232# include <assert.h>
31233#endif
ac1cb8d3
VS
31234
31235#undef $ac_func
31236
a848cd7e
SC
31237/* Override any gcc2 internal prototype to avoid an error. */
31238#ifdef __cplusplus
31239extern "C"
31240{
31241#endif
31242/* We use char because int might match the return type of a gcc2
31243 builtin and then its argument prototype would still apply. */
31244char $ac_func ();
31245/* The GNU C library defines this for functions which it implements
31246 to always fail with ENOSYS. Some functions are actually named
31247 something starting with __ and the normal name is an alias. */
31248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31249choke me
31250#else
31251char (*f) () = $ac_func;
31252#endif
31253#ifdef __cplusplus
31254}
31255#endif
31256
31257int
31258main ()
31259{
31260return f != $ac_func;
31261 ;
31262 return 0;
31263}
31264_ACEOF
31265rm -f conftest.$ac_objext conftest$ac_exeext
31266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31267 (eval $ac_link) 2>conftest.er1
a848cd7e 31268 ac_status=$?
ac1cb8d3
VS
31269 grep -v '^ *+' conftest.er1 >conftest.err
31270 rm -f conftest.er1
31271 cat conftest.err >&5
a848cd7e
SC
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); } &&
ddd14b14
RR
31274 { ac_try='test -z "$ac_c_werror_flag"
31275 || test ! -s conftest.err'
ac1cb8d3
VS
31276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31277 (eval $ac_try) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; } &&
31281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31283 (eval $ac_try) 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; }; then
31287 eval "$as_ac_var=yes"
31288else
31289 echo "$as_me: failed program was:" >&5
31290sed 's/^/| /' conftest.$ac_ext >&5
31291
31292eval "$as_ac_var=no"
31293fi
ac1cb8d3
VS
31294rm -f conftest.err conftest.$ac_objext \
31295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31296fi
31297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31299if test `eval echo '${'$as_ac_var'}'` = yes; then
31300 cat >>confdefs.h <<_ACEOF
31301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31302_ACEOF
31303 WCSLEN_FOUND=1
31304fi
31305done
31306
31307
31308 if test "$WCSLEN_FOUND" = 0; then
31309 if test "$TOOLKIT" = "MSW"; then
31310 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31311echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31312if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31313 echo $ECHO_N "(cached) $ECHO_C" >&6
31314else
31315 ac_check_lib_save_LIBS=$LIBS
31316LIBS="-lmsvcrt $LIBS"
31317cat >conftest.$ac_ext <<_ACEOF
31318/* confdefs.h. */
31319_ACEOF
31320cat confdefs.h >>conftest.$ac_ext
31321cat >>conftest.$ac_ext <<_ACEOF
31322/* end confdefs.h. */
31323
31324/* Override any gcc2 internal prototype to avoid an error. */
31325#ifdef __cplusplus
31326extern "C"
31327#endif
31328/* We use char because int might match the return type of a gcc2
31329 builtin and then its argument prototype would still apply. */
31330char wcslen ();
31331int
31332main ()
31333{
31334wcslen ();
31335 ;
31336 return 0;
31337}
31338_ACEOF
31339rm -f conftest.$ac_objext conftest$ac_exeext
31340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31341 (eval $ac_link) 2>conftest.er1
a848cd7e 31342 ac_status=$?
ac1cb8d3
VS
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
a848cd7e
SC
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } &&
ddd14b14
RR
31348 { ac_try='test -z "$ac_c_werror_flag"
31349 || test ! -s conftest.err'
ac1cb8d3
VS
31350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31351 (eval $ac_try) 2>&5
31352 ac_status=$?
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); }; } &&
31355 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; }; then
31361 ac_cv_lib_msvcrt_wcslen=yes
31362else
31363 echo "$as_me: failed program was:" >&5
31364sed 's/^/| /' conftest.$ac_ext >&5
31365
31366ac_cv_lib_msvcrt_wcslen=no
31367fi
ac1cb8d3
VS
31368rm -f conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31370LIBS=$ac_check_lib_save_LIBS
31371fi
31372echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31373echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31374if test $ac_cv_lib_msvcrt_wcslen = yes; then
31375 WCHAR_OK=1
31376fi
31377
31378 else
31379 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31380echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31381if test "${ac_cv_lib_w_wcslen+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31383else
31384 ac_check_lib_save_LIBS=$LIBS
31385LIBS="-lw $LIBS"
31386cat >conftest.$ac_ext <<_ACEOF
31387/* confdefs.h. */
31388_ACEOF
31389cat confdefs.h >>conftest.$ac_ext
31390cat >>conftest.$ac_ext <<_ACEOF
31391/* end confdefs.h. */
31392
31393/* Override any gcc2 internal prototype to avoid an error. */
31394#ifdef __cplusplus
31395extern "C"
31396#endif
31397/* We use char because int might match the return type of a gcc2
31398 builtin and then its argument prototype would still apply. */
31399char wcslen ();
31400int
31401main ()
31402{
31403wcslen ();
31404 ;
31405 return 0;
31406}
31407_ACEOF
31408rm -f conftest.$ac_objext conftest$ac_exeext
31409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31410 (eval $ac_link) 2>conftest.er1
a848cd7e 31411 ac_status=$?
ac1cb8d3
VS
31412 grep -v '^ *+' conftest.er1 >conftest.err
31413 rm -f conftest.er1
31414 cat conftest.err >&5
a848cd7e
SC
31415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416 (exit $ac_status); } &&
ddd14b14
RR
31417 { ac_try='test -z "$ac_c_werror_flag"
31418 || test ! -s conftest.err'
ac1cb8d3
VS
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31421 ac_status=$?
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; } &&
31424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; }; then
31430 ac_cv_lib_w_wcslen=yes
31431else
31432 echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435ac_cv_lib_w_wcslen=no
31436fi
ac1cb8d3
VS
31437rm -f conftest.err conftest.$ac_objext \
31438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31439LIBS=$ac_check_lib_save_LIBS
31440fi
31441echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31442echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31443if test $ac_cv_lib_w_wcslen = yes; then
31444
31445 WCHAR_LINK=" -lw"
31446 WCSLEN_FOUND=1
31447
31448fi
31449
31450 fi
31451 fi
31452
31453 if test "$WCSLEN_FOUND" = 1; then
31454 cat >>confdefs.h <<\_ACEOF
31455#define HAVE_WCSLEN 1
31456_ACEOF
31457
31458 fi
31459
81f90336 31460 if test "$USE_HPUX" = 1; then
473276a9
VS
31461 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31462 fi
31463
a848cd7e
SC
31464
31465for ac_func in wcsrtombs
31466do
31467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31468echo "$as_me:$LINENO: checking for $ac_func" >&5
31469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31470if eval "test \"\${$as_ac_var+set}\" = set"; then
31471 echo $ECHO_N "(cached) $ECHO_C" >&6
31472else
31473 cat >conftest.$ac_ext <<_ACEOF
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
ac1cb8d3
VS
31479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31481#define $ac_func innocuous_$ac_func
31482
a848cd7e
SC
31483/* System header to define __stub macros and hopefully few prototypes,
31484 which can conflict with char $ac_func (); below.
31485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31486 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31487
a848cd7e
SC
31488#ifdef __STDC__
31489# include <limits.h>
31490#else
31491# include <assert.h>
31492#endif
ac1cb8d3
VS
31493
31494#undef $ac_func
31495
a848cd7e
SC
31496/* Override any gcc2 internal prototype to avoid an error. */
31497#ifdef __cplusplus
31498extern "C"
31499{
31500#endif
31501/* We use char because int might match the return type of a gcc2
31502 builtin and then its argument prototype would still apply. */
31503char $ac_func ();
31504/* The GNU C library defines this for functions which it implements
31505 to always fail with ENOSYS. Some functions are actually named
31506 something starting with __ and the normal name is an alias. */
31507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31508choke me
31509#else
31510char (*f) () = $ac_func;
31511#endif
31512#ifdef __cplusplus
31513}
31514#endif
31515
31516int
31517main ()
31518{
31519return f != $ac_func;
31520 ;
31521 return 0;
31522}
31523_ACEOF
31524rm -f conftest.$ac_objext conftest$ac_exeext
31525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31526 (eval $ac_link) 2>conftest.er1
a848cd7e 31527 ac_status=$?
ac1cb8d3
VS
31528 grep -v '^ *+' conftest.er1 >conftest.err
31529 rm -f conftest.er1
31530 cat conftest.err >&5
a848cd7e
SC
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); } &&
ddd14b14
RR
31533 { ac_try='test -z "$ac_c_werror_flag"
31534 || test ! -s conftest.err'
ac1cb8d3
VS
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 eval "$as_ac_var=yes"
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
31551eval "$as_ac_var=no"
31552fi
ac1cb8d3
VS
31553rm -f conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31555fi
31556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31558if test `eval echo '${'$as_ac_var'}'` = yes; then
31559 cat >>confdefs.h <<_ACEOF
31560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31561_ACEOF
31562
31563fi
31564done
31565
31566else
31567 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31568echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31569fi
31570
31571
31572
31573ac_ext=cc
31574ac_cpp='$CXXCPP $CPPFLAGS'
31575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31578
31579
31580
31581for ac_func in vsnprintf
31582do
31583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31584echo "$as_me:$LINENO: checking for $ac_func" >&5
31585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31586if eval "test \"\${$as_ac_var+set}\" = set"; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31588else
31589 cat >conftest.$ac_ext <<_ACEOF
31590/* confdefs.h. */
31591_ACEOF
31592cat confdefs.h >>conftest.$ac_ext
31593cat >>conftest.$ac_ext <<_ACEOF
31594/* end confdefs.h. */
ac1cb8d3
VS
31595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31597#define $ac_func innocuous_$ac_func
31598
a848cd7e
SC
31599/* System header to define __stub macros and hopefully few prototypes,
31600 which can conflict with char $ac_func (); below.
31601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31603
a848cd7e
SC
31604#ifdef __STDC__
31605# include <limits.h>
31606#else
31607# include <assert.h>
31608#endif
ac1cb8d3
VS
31609
31610#undef $ac_func
31611
a848cd7e
SC
31612/* Override any gcc2 internal prototype to avoid an error. */
31613#ifdef __cplusplus
31614extern "C"
31615{
31616#endif
31617/* We use char because int might match the return type of a gcc2
31618 builtin and then its argument prototype would still apply. */
31619char $ac_func ();
31620/* The GNU C library defines this for functions which it implements
31621 to always fail with ENOSYS. Some functions are actually named
31622 something starting with __ and the normal name is an alias. */
31623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31624choke me
31625#else
31626char (*f) () = $ac_func;
31627#endif
31628#ifdef __cplusplus
31629}
31630#endif
31631
31632int
31633main ()
31634{
31635return f != $ac_func;
31636 ;
31637 return 0;
31638}
31639_ACEOF
31640rm -f conftest.$ac_objext conftest$ac_exeext
31641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31642 (eval $ac_link) 2>conftest.er1
a848cd7e 31643 ac_status=$?
ac1cb8d3
VS
31644 grep -v '^ *+' conftest.er1 >conftest.err
31645 rm -f conftest.er1
31646 cat conftest.err >&5
a848cd7e
SC
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } &&
ddd14b14
RR
31649 { ac_try='test -z "$ac_cxx_werror_flag"
31650 || test ! -s conftest.err'
ac1cb8d3
VS
31651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652 (eval $ac_try) 2>&5
31653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; } &&
31656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31658 (eval $ac_try) 2>&5
31659 ac_status=$?
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; }; then
31662 eval "$as_ac_var=yes"
31663else
31664 echo "$as_me: failed program was:" >&5
31665sed 's/^/| /' conftest.$ac_ext >&5
31666
31667eval "$as_ac_var=no"
31668fi
ac1cb8d3
VS
31669rm -f conftest.err conftest.$ac_objext \
31670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31671fi
31672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31674if test `eval echo '${'$as_ac_var'}'` = yes; then
31675 cat >>confdefs.h <<_ACEOF
31676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31677_ACEOF
31678
31679fi
31680done
31681
31682
31683if test "$ac_cv_func_vsnprintf" = "yes"; then
31684 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31685echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31686if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31687 echo $ECHO_N "(cached) $ECHO_C" >&6
31688else
31689
31690 cat >conftest.$ac_ext <<_ACEOF
31691/* confdefs.h. */
31692_ACEOF
31693cat confdefs.h >>conftest.$ac_ext
31694cat >>conftest.$ac_ext <<_ACEOF
31695/* end confdefs.h. */
31696
31697 #include <stdio.h>
31698 #include <stdarg.h>
31699
31700int
31701main ()
31702{
31703
31704 char *buf;
31705 va_list ap;
31706 vsnprintf(buf, 10u, "%s", ap);
31707
31708 ;
31709 return 0;
31710}
31711_ACEOF
31712rm -f conftest.$ac_objext
31713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31714 (eval $ac_compile) 2>conftest.er1
a848cd7e 31715 ac_status=$?
ac1cb8d3
VS
31716 grep -v '^ *+' conftest.er1 >conftest.err
31717 rm -f conftest.er1
31718 cat conftest.err >&5
a848cd7e
SC
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } &&
ddd14b14
RR
31721 { ac_try='test -z "$ac_cxx_werror_flag"
31722 || test ! -s conftest.err'
ac1cb8d3
VS
31723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31724 (eval $ac_try) 2>&5
31725 ac_status=$?
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; } &&
31728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; }; then
31734 wx_cv_func_vsnprintf_decl=yes
31735else
31736 echo "$as_me: failed program was:" >&5
31737sed 's/^/| /' conftest.$ac_ext >&5
31738
c122b164
DE
31739
31740 cat >conftest.$ac_ext <<_ACEOF
31741/* confdefs.h. */
31742_ACEOF
31743cat confdefs.h >>conftest.$ac_ext
31744cat >>conftest.$ac_ext <<_ACEOF
31745/* end confdefs.h. */
31746
31747 #include <stdio.h>
31748 #include <stdarg.h>
31749 using namespace std;
31750
31751int
31752main ()
31753{
31754
31755 char *buf;
31756 va_list ap;
31757 vsnprintf(buf, 10u, "%s", ap);
31758
31759 ;
31760 return 0;
31761}
31762_ACEOF
31763rm -f conftest.$ac_objext
31764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31765 (eval $ac_compile) 2>conftest.er1
31766 ac_status=$?
31767 grep -v '^ *+' conftest.er1 >conftest.err
31768 rm -f conftest.er1
31769 cat conftest.err >&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } &&
ddd14b14
RR
31772 { ac_try='test -z "$ac_cxx_werror_flag"
31773 || test ! -s conftest.err'
c122b164
DE
31774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31775 (eval $ac_try) 2>&5
31776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; } &&
31779 { ac_try='test -s conftest.$ac_objext'
31780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781 (eval $ac_try) 2>&5
31782 ac_status=$?
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
31785 wx_cv_func_vsnprintf_decl=yes
31786else
31787 echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
a848cd7e
SC
31790wx_cv_func_vsnprintf_decl=no
31791
31792fi
ac1cb8d3 31793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31794
31795
c122b164
DE
31796fi
31797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31798
31799
a848cd7e
SC
31800fi
31801echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31802echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31803
31804 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31805 cat >>confdefs.h <<\_ACEOF
31806#define HAVE_VSNPRINTF_DECL 1
31807_ACEOF
31808
31809 fi
31810fi
31811
31812if test "$wxUSE_UNICODE" = yes; then
31813
31814
31815
fbe47c7b
VS
31816
31817
31818
31819for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31820do
31821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31822echo "$as_me:$LINENO: checking for $ac_func" >&5
31823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31824if eval "test \"\${$as_ac_var+set}\" = set"; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826else
31827 cat >conftest.$ac_ext <<_ACEOF
31828/* confdefs.h. */
31829_ACEOF
31830cat confdefs.h >>conftest.$ac_ext
31831cat >>conftest.$ac_ext <<_ACEOF
31832/* end confdefs.h. */
ac1cb8d3
VS
31833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31835#define $ac_func innocuous_$ac_func
31836
a848cd7e
SC
31837/* System header to define __stub macros and hopefully few prototypes,
31838 which can conflict with char $ac_func (); below.
31839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31841
a848cd7e
SC
31842#ifdef __STDC__
31843# include <limits.h>
31844#else
31845# include <assert.h>
31846#endif
ac1cb8d3
VS
31847
31848#undef $ac_func
31849
a848cd7e
SC
31850/* Override any gcc2 internal prototype to avoid an error. */
31851#ifdef __cplusplus
31852extern "C"
31853{
31854#endif
31855/* We use char because int might match the return type of a gcc2
31856 builtin and then its argument prototype would still apply. */
31857char $ac_func ();
31858/* The GNU C library defines this for functions which it implements
31859 to always fail with ENOSYS. Some functions are actually named
31860 something starting with __ and the normal name is an alias. */
31861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31862choke me
31863#else
31864char (*f) () = $ac_func;
31865#endif
31866#ifdef __cplusplus
31867}
31868#endif
31869
31870int
31871main ()
31872{
31873return f != $ac_func;
31874 ;
31875 return 0;
31876}
31877_ACEOF
31878rm -f conftest.$ac_objext conftest$ac_exeext
31879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31880 (eval $ac_link) 2>conftest.er1
a848cd7e 31881 ac_status=$?
ac1cb8d3
VS
31882 grep -v '^ *+' conftest.er1 >conftest.err
31883 rm -f conftest.er1
31884 cat conftest.err >&5
a848cd7e
SC
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); } &&
ddd14b14
RR
31887 { ac_try='test -z "$ac_cxx_werror_flag"
31888 || test ! -s conftest.err'
ac1cb8d3
VS
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; } &&
31894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31896 (eval $ac_try) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
31900 eval "$as_ac_var=yes"
31901else
31902 echo "$as_me: failed program was:" >&5
31903sed 's/^/| /' conftest.$ac_ext >&5
31904
31905eval "$as_ac_var=no"
31906fi
ac1cb8d3
VS
31907rm -f conftest.err conftest.$ac_objext \
31908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31909fi
31910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31912if test `eval echo '${'$as_ac_var'}'` = yes; then
31913 cat >>confdefs.h <<_ACEOF
31914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31915_ACEOF
31916
31917fi
31918done
31919
31920
31921 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31922echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31923 cat >conftest.$ac_ext <<_ACEOF
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
31929#include <wchar.h>
31930int
31931main ()
31932{
31933&_vsnwprintf;
31934 ;
31935 return 0;
31936}
31937_ACEOF
31938rm -f conftest.$ac_objext
31939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31940 (eval $ac_compile) 2>conftest.er1
a848cd7e 31941 ac_status=$?
ac1cb8d3
VS
31942 grep -v '^ *+' conftest.er1 >conftest.err
31943 rm -f conftest.er1
31944 cat conftest.err >&5
a848cd7e
SC
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } &&
ddd14b14
RR
31947 { ac_try='test -z "$ac_cxx_werror_flag"
31948 || test ! -s conftest.err'
ac1cb8d3
VS
31949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950 (eval $ac_try) 2>&5
31951 ac_status=$?
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; } &&
31954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }; then
31960 echo "$as_me:$LINENO: result: yes" >&5
31961echo "${ECHO_T}yes" >&6
31962 cat >>confdefs.h <<\_ACEOF
31963#define HAVE__VSNWPRINTF 1
31964_ACEOF
31965
31966else
31967 echo "$as_me: failed program was:" >&5
31968sed 's/^/| /' conftest.$ac_ext >&5
31969
31970echo "$as_me:$LINENO: result: no" >&5
31971echo "${ECHO_T}no" >&6
31972fi
ac1cb8d3 31973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31974fi
31975
31976ac_ext=c
31977ac_cpp='$CPP $CPPFLAGS'
31978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31980ac_compiler_gnu=$ac_cv_c_compiler_gnu
31981
31982
31983
31984
31985if test "$TOOLKIT" != "MSW"; then
31986
31987
31988
31989
31990ac_ext=cc
31991ac_cpp='$CXXCPP $CPPFLAGS'
31992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995
31996
31997
31998
31999# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32000if test "${with_libiconv_prefix+set}" = set; then
32001 withval="$with_libiconv_prefix"
32002
32003 for dir in `echo "$withval" | tr : ' '`; do
32004 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32005 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32006 done
32007
32008fi;
32009
32010 echo "$as_me:$LINENO: checking for iconv" >&5
32011echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32012if test "${am_cv_func_iconv+set}" = set; then
32013 echo $ECHO_N "(cached) $ECHO_C" >&6
32014else
32015
32016 am_cv_func_iconv="no, consider installing GNU libiconv"
32017 am_cv_lib_iconv=no
32018 cat >conftest.$ac_ext <<_ACEOF
32019/* confdefs.h. */
32020_ACEOF
32021cat confdefs.h >>conftest.$ac_ext
32022cat >>conftest.$ac_ext <<_ACEOF
32023/* end confdefs.h. */
32024#include <stdlib.h>
32025#include <iconv.h>
32026int
32027main ()
32028{
32029iconv_t cd = iconv_open("","");
32030 iconv(cd,NULL,NULL,NULL,NULL);
32031 iconv_close(cd);
32032 ;
32033 return 0;
32034}
32035_ACEOF
32036rm -f conftest.$ac_objext conftest$ac_exeext
32037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32038 (eval $ac_link) 2>conftest.er1
a848cd7e 32039 ac_status=$?
ac1cb8d3
VS
32040 grep -v '^ *+' conftest.er1 >conftest.err
32041 rm -f conftest.er1
32042 cat conftest.err >&5
a848cd7e
SC
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); } &&
ddd14b14
RR
32045 { ac_try='test -z "$ac_cxx_werror_flag"
32046 || test ! -s conftest.err'
ac1cb8d3
VS
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; } &&
32052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32055 ac_status=$?
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 am_cv_func_iconv=yes
32059else
32060 echo "$as_me: failed program was:" >&5
32061sed 's/^/| /' conftest.$ac_ext >&5
32062
32063fi
ac1cb8d3
VS
32064rm -f conftest.err conftest.$ac_objext \
32065 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32066 if test "$am_cv_func_iconv" != yes; then
32067 am_save_LIBS="$LIBS"
32068 LIBS="$LIBS -liconv"
32069 cat >conftest.$ac_ext <<_ACEOF
32070/* confdefs.h. */
32071_ACEOF
32072cat confdefs.h >>conftest.$ac_ext
32073cat >>conftest.$ac_ext <<_ACEOF
32074/* end confdefs.h. */
32075#include <stdlib.h>
32076#include <iconv.h>
32077int
32078main ()
32079{
32080iconv_t cd = iconv_open("","");
32081 iconv(cd,NULL,NULL,NULL,NULL);
32082 iconv_close(cd);
32083 ;
32084 return 0;
32085}
32086_ACEOF
32087rm -f conftest.$ac_objext conftest$ac_exeext
32088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32089 (eval $ac_link) 2>conftest.er1
a848cd7e 32090 ac_status=$?
ac1cb8d3
VS
32091 grep -v '^ *+' conftest.er1 >conftest.err
32092 rm -f conftest.er1
32093 cat conftest.err >&5
a848cd7e
SC
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); } &&
ddd14b14
RR
32096 { ac_try='test -z "$ac_cxx_werror_flag"
32097 || test ! -s conftest.err'
ac1cb8d3
VS
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 am_cv_lib_iconv=yes
32110 am_cv_func_iconv=yes
32111else
32112 echo "$as_me: failed program was:" >&5
32113sed 's/^/| /' conftest.$ac_ext >&5
32114
32115fi
ac1cb8d3
VS
32116rm -f conftest.err conftest.$ac_objext \
32117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32118 LIBS="$am_save_LIBS"
32119 fi
32120
32121fi
32122echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32123echo "${ECHO_T}$am_cv_func_iconv" >&6
32124 if test "$am_cv_func_iconv" = yes; then
32125
32126cat >>confdefs.h <<\_ACEOF
32127#define HAVE_ICONV 1
32128_ACEOF
32129
32130 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32131echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32132if test "${wx_cv_func_iconv_const+set}" = set; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32134else
32135 cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
32141
32142#include <stdlib.h>
32143#include <iconv.h>
32144extern
32145#ifdef __cplusplus
32146"C"
32147#endif
32148#if defined(__STDC__) || defined(__cplusplus)
32149size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32150#else
32151size_t iconv();
32152#endif
32153
32154int
32155main ()
32156{
32157
32158 ;
32159 return 0;
32160}
32161_ACEOF
32162rm -f conftest.$ac_objext
32163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32164 (eval $ac_compile) 2>conftest.er1
a848cd7e 32165 ac_status=$?
ac1cb8d3
VS
32166 grep -v '^ *+' conftest.er1 >conftest.err
32167 rm -f conftest.er1
32168 cat conftest.err >&5
a848cd7e
SC
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
ddd14b14
RR
32171 { ac_try='test -z "$ac_cxx_werror_flag"
32172 || test ! -s conftest.err'
ac1cb8d3
VS
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; }; then
32184 wx_cv_func_iconv_const="no"
32185else
32186 echo "$as_me: failed program was:" >&5
32187sed 's/^/| /' conftest.$ac_ext >&5
32188
32189wx_cv_func_iconv_const="yes"
32190
32191fi
ac1cb8d3 32192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32193
32194fi
32195echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32196echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32197
32198 iconv_const=
32199 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32200 iconv_const="const"
32201 fi
32202
32203
32204cat >>confdefs.h <<_ACEOF
32205#define ICONV_CONST $iconv_const
32206_ACEOF
32207
32208 fi
32209 LIBICONV=
32210 if test "$am_cv_lib_iconv" = yes; then
32211 LIBICONV="-liconv"
32212 fi
32213
32214
32215LIBS="$LIBICONV $LIBS"
32216ac_ext=c
32217ac_cpp='$CPP $CPPFLAGS'
32218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32220ac_compiler_gnu=$ac_cv_c_compiler_gnu
32221
32222
32223if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32224
32225for ac_func in sigaction
32226do
32227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32228echo "$as_me:$LINENO: checking for $ac_func" >&5
32229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32230if eval "test \"\${$as_ac_var+set}\" = set"; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232else
32233 cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h. */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h. */
ac1cb8d3
VS
32239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32241#define $ac_func innocuous_$ac_func
32242
a848cd7e
SC
32243/* System header to define __stub macros and hopefully few prototypes,
32244 which can conflict with char $ac_func (); below.
32245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32247
a848cd7e
SC
32248#ifdef __STDC__
32249# include <limits.h>
32250#else
32251# include <assert.h>
32252#endif
ac1cb8d3
VS
32253
32254#undef $ac_func
32255
a848cd7e
SC
32256/* Override any gcc2 internal prototype to avoid an error. */
32257#ifdef __cplusplus
32258extern "C"
32259{
32260#endif
32261/* We use char because int might match the return type of a gcc2
32262 builtin and then its argument prototype would still apply. */
32263char $ac_func ();
32264/* The GNU C library defines this for functions which it implements
32265 to always fail with ENOSYS. Some functions are actually named
32266 something starting with __ and the normal name is an alias. */
32267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32268choke me
32269#else
32270char (*f) () = $ac_func;
32271#endif
32272#ifdef __cplusplus
32273}
32274#endif
32275
32276int
32277main ()
32278{
32279return f != $ac_func;
32280 ;
32281 return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext conftest$ac_exeext
32285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32286 (eval $ac_link) 2>conftest.er1
a848cd7e 32287 ac_status=$?
ac1cb8d3
VS
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
a848cd7e
SC
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
ddd14b14
RR
32293 { ac_try='test -z "$ac_c_werror_flag"
32294 || test ! -s conftest.err'
ac1cb8d3
VS
32295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296 (eval $ac_try) 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; } &&
32300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32302 (eval $ac_try) 2>&5
32303 ac_status=$?
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); }; }; then
32306 eval "$as_ac_var=yes"
32307else
32308 echo "$as_me: failed program was:" >&5
32309sed 's/^/| /' conftest.$ac_ext >&5
32310
32311eval "$as_ac_var=no"
32312fi
ac1cb8d3
VS
32313rm -f conftest.err conftest.$ac_objext \
32314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32315fi
32316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32318if test `eval echo '${'$as_ac_var'}'` = yes; then
32319 cat >>confdefs.h <<_ACEOF
32320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32321_ACEOF
32322
32323fi
32324done
32325
32326
32327 if test "$ac_cv_func_sigaction" = "no"; then
32328 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32329echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32330 wxUSE_ON_FATAL_EXCEPTION=no
32331 fi
32332
32333 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32334
32335
32336 ac_ext=cc
32337ac_cpp='$CXXCPP $CPPFLAGS'
32338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32341
32342
32343 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32344echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32345if test "${wx_cv_type_sa_handler+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348
32349 cat >conftest.$ac_ext <<_ACEOF
32350/* confdefs.h. */
32351_ACEOF
32352cat confdefs.h >>conftest.$ac_ext
32353cat >>conftest.$ac_ext <<_ACEOF
32354/* end confdefs.h. */
32355#include <signal.h>
32356int
32357main ()
32358{
32359
32360 extern void testSigHandler(int);
32361
32362 struct sigaction sa;
32363 sa.sa_handler = testSigHandler;
32364
32365 ;
32366 return 0;
32367}
32368_ACEOF
32369rm -f conftest.$ac_objext
32370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32371 (eval $ac_compile) 2>conftest.er1
a848cd7e 32372 ac_status=$?
ac1cb8d3
VS
32373 grep -v '^ *+' conftest.er1 >conftest.err
32374 rm -f conftest.er1
32375 cat conftest.err >&5
a848cd7e
SC
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } &&
ddd14b14
RR
32378 { ac_try='test -z "$ac_cxx_werror_flag"
32379 || test ! -s conftest.err'
ac1cb8d3
VS
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32382 ac_status=$?
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; } &&
32385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387 (eval $ac_try) 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
32391
32392 wx_cv_type_sa_handler=int
32393
32394else
32395 echo "$as_me: failed program was:" >&5
32396sed 's/^/| /' conftest.$ac_ext >&5
32397
32398
32399 wx_cv_type_sa_handler=void
32400
32401fi
ac1cb8d3 32402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32403
32404fi
32405echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32406echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32407
32408 ac_ext=c
32409ac_cpp='$CPP $CPPFLAGS'
32410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412ac_compiler_gnu=$ac_cv_c_compiler_gnu
32413
32414
32415 cat >>confdefs.h <<_ACEOF
32416#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32417_ACEOF
32418
32419 fi
32420fi
32421
eaff0f0d
VZ
32422if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32423
32424
32425 ac_ext=cc
32426ac_cpp='$CXXCPP $CPPFLAGS'
32427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32430
32431
32432 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32433echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32434if test "${wx_cv_func_backtrace+set}" = set; then
32435 echo $ECHO_N "(cached) $ECHO_C" >&6
32436else
32437
32438 cat >conftest.$ac_ext <<_ACEOF
32439/* confdefs.h. */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h. */
32444#include <execinfo.h>
32445int
32446main ()
32447{
32448
32449 void *trace[1];
32450 char **messages;
32451
32452 backtrace(trace, 1);
32453 messages = backtrace_symbols(trace, 1);
32454
32455 ;
32456 return 0;
32457}
32458_ACEOF
32459rm -f conftest.$ac_objext
32460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32461 (eval $ac_compile) 2>conftest.er1
32462 ac_status=$?
32463 grep -v '^ *+' conftest.er1 >conftest.err
32464 rm -f conftest.er1
32465 cat conftest.err >&5
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
ddd14b14
RR
32468 { ac_try='test -z "$ac_cxx_werror_flag"
32469 || test ! -s conftest.err'
eaff0f0d
VZ
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
32476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477 (eval $ac_try) 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32481 wx_cv_func_backtrace=yes
32482else
32483 echo "$as_me: failed program was:" >&5
32484sed 's/^/| /' conftest.$ac_ext >&5
32485
32486wx_cv_func_backtrace=no
32487
32488fi
32489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32490
32491
32492fi
32493echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32494echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32495
32496
32497 if test "$wx_cv_func_backtrace" = "no"; then
32498 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32499echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32500 wxUSE_STACKWALKER=no
32501 else
32502 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32503echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32504if test "${wx_cv_func_cxa_demangle+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32506else
32507
32508 cat >conftest.$ac_ext <<_ACEOF
32509/* confdefs.h. */
32510_ACEOF
32511cat confdefs.h >>conftest.$ac_ext
32512cat >>conftest.$ac_ext <<_ACEOF
32513/* end confdefs.h. */
32514#include <cxxabi.h>
32515int
32516main ()
32517{
32518
32519 int rc;
32520 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32521
32522 ;
32523 return 0;
32524}
32525_ACEOF
dfe0c803
JS
32526rm -f conftest.$ac_objext conftest$ac_exeext
32527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32528 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32529 ac_status=$?
32530 grep -v '^ *+' conftest.er1 >conftest.err
32531 rm -f conftest.er1
32532 cat conftest.err >&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } &&
ddd14b14
RR
32535 { ac_try='test -z "$ac_cxx_werror_flag"
32536 || test ! -s conftest.err'
eaff0f0d
VZ
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
dfe0c803 32542 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32544 (eval $ac_try) 2>&5
32545 ac_status=$?
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); }; }; then
32548 wx_cv_func_cxa_demangle=yes
32549else
32550 echo "$as_me: failed program was:" >&5
32551sed 's/^/| /' conftest.$ac_ext >&5
32552
32553wx_cv_func_cxa_demangle=no
32554
32555fi
dfe0c803
JS
32556rm -f conftest.err conftest.$ac_objext \
32557 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32558
32559
32560fi
32561echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32562echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32563
32564 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32565 cat >>confdefs.h <<\_ACEOF
32566#define HAVE_CXA_DEMANGLE 1
32567_ACEOF
32568
32569 fi
32570 fi
32571
32572 ac_ext=c
32573ac_cpp='$CPP $CPPFLAGS'
32574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32576ac_compiler_gnu=$ac_cv_c_compiler_gnu
32577
32578fi
32579
898beab1
DE
32580if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32581 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32582echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32583 wxUSE_STACKWALKER=no
32584fi
32585
32586
a848cd7e
SC
32587
32588
32589for ac_func in mkstemp mktemp
32590do
32591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32592echo "$as_me:$LINENO: checking for $ac_func" >&5
32593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32594if eval "test \"\${$as_ac_var+set}\" = set"; then
32595 echo $ECHO_N "(cached) $ECHO_C" >&6
32596else
32597 cat >conftest.$ac_ext <<_ACEOF
32598/* confdefs.h. */
32599_ACEOF
32600cat confdefs.h >>conftest.$ac_ext
32601cat >>conftest.$ac_ext <<_ACEOF
32602/* end confdefs.h. */
ac1cb8d3
VS
32603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32605#define $ac_func innocuous_$ac_func
32606
a848cd7e
SC
32607/* System header to define __stub macros and hopefully few prototypes,
32608 which can conflict with char $ac_func (); below.
32609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32610 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32611
a848cd7e
SC
32612#ifdef __STDC__
32613# include <limits.h>
32614#else
32615# include <assert.h>
32616#endif
ac1cb8d3
VS
32617
32618#undef $ac_func
32619
a848cd7e
SC
32620/* Override any gcc2 internal prototype to avoid an error. */
32621#ifdef __cplusplus
32622extern "C"
32623{
32624#endif
32625/* We use char because int might match the return type of a gcc2
32626 builtin and then its argument prototype would still apply. */
32627char $ac_func ();
32628/* The GNU C library defines this for functions which it implements
32629 to always fail with ENOSYS. Some functions are actually named
32630 something starting with __ and the normal name is an alias. */
32631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32632choke me
32633#else
32634char (*f) () = $ac_func;
32635#endif
32636#ifdef __cplusplus
32637}
32638#endif
32639
32640int
32641main ()
32642{
32643return f != $ac_func;
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); } &&
ddd14b14
RR
32657 { ac_try='test -z "$ac_c_werror_flag"
32658 || test ! -s conftest.err'
ac1cb8d3
VS
32659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660 (eval $ac_try) 2>&5
32661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; } &&
32664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32666 (eval $ac_try) 2>&5
32667 ac_status=$?
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; }; then
32670 eval "$as_ac_var=yes"
32671else
32672 echo "$as_me: failed program was:" >&5
32673sed 's/^/| /' conftest.$ac_ext >&5
32674
32675eval "$as_ac_var=no"
32676fi
ac1cb8d3
VS
32677rm -f conftest.err conftest.$ac_objext \
32678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32679fi
32680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32682if test `eval echo '${'$as_ac_var'}'` = yes; then
32683 cat >>confdefs.h <<_ACEOF
32684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32685_ACEOF
32686 break
32687fi
32688done
32689
32690
32691echo "$as_me:$LINENO: checking for statfs" >&5
32692echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32693if test "${wx_cv_func_statfs+set}" = set; then
32694 echo $ECHO_N "(cached) $ECHO_C" >&6
32695else
32696 cat >conftest.$ac_ext <<_ACEOF
32697/* confdefs.h. */
32698_ACEOF
32699cat confdefs.h >>conftest.$ac_ext
32700cat >>conftest.$ac_ext <<_ACEOF
32701/* end confdefs.h. */
32702
32703 #if defined(__BSD__)
32704 #include <sys/param.h>
32705 #include <sys/mount.h>
32706 #else
32707 #include <sys/vfs.h>
32708 #endif
32709
32710int
32711main ()
32712{
32713
32714 long l;
32715 struct statfs fs;
32716 statfs("/", &fs);
32717 l = fs.f_bsize;
32718 l += fs.f_blocks;
32719 l += fs.f_bavail;
32720
32721 ;
32722 return 0;
32723}
32724_ACEOF
32725rm -f conftest.$ac_objext
32726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32727 (eval $ac_compile) 2>conftest.er1
a848cd7e 32728 ac_status=$?
ac1cb8d3
VS
32729 grep -v '^ *+' conftest.er1 >conftest.err
32730 rm -f conftest.er1
32731 cat conftest.err >&5
a848cd7e
SC
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } &&
ddd14b14
RR
32734 { ac_try='test -z "$ac_c_werror_flag"
32735 || test ! -s conftest.err'
ac1cb8d3
VS
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; } &&
32741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; }; then
32747
32748 wx_cv_func_statfs=yes
32749
32750else
32751 echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
32754
32755 wx_cv_func_statfs=no
32756
32757
32758fi
ac1cb8d3 32759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32760
32761fi
32762echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32763echo "${ECHO_T}$wx_cv_func_statfs" >&6
32764
32765if test "$wx_cv_func_statfs" = "yes"; then
32766 wx_cv_type_statvfs_t="struct statfs"
32767 cat >>confdefs.h <<\_ACEOF
32768#define HAVE_STATFS 1
32769_ACEOF
32770
32771else
32772 echo "$as_me:$LINENO: checking for statvfs" >&5
32773echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32774if test "${wx_cv_func_statvfs+set}" = set; then
32775 echo $ECHO_N "(cached) $ECHO_C" >&6
32776else
32777 cat >conftest.$ac_ext <<_ACEOF
32778/* confdefs.h. */
32779_ACEOF
32780cat confdefs.h >>conftest.$ac_ext
32781cat >>conftest.$ac_ext <<_ACEOF
32782/* end confdefs.h. */
32783
32784 #include <stddef.h>
32785 #include <sys/statvfs.h>
32786
32787int
32788main ()
32789{
32790
32791 statvfs("/", NULL);
32792
32793 ;
32794 return 0;
32795}
32796_ACEOF
32797rm -f conftest.$ac_objext
32798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32799 (eval $ac_compile) 2>conftest.er1
a848cd7e 32800 ac_status=$?
ac1cb8d3
VS
32801 grep -v '^ *+' conftest.er1 >conftest.err
32802 rm -f conftest.er1
32803 cat conftest.err >&5
a848cd7e
SC
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
ddd14b14
RR
32806 { ac_try='test -z "$ac_c_werror_flag"
32807 || test ! -s conftest.err'
ac1cb8d3
VS
32808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809 (eval $ac_try) 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; } &&
32813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32815 (eval $ac_try) 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; }; then
32819 wx_cv_func_statvfs=yes
32820else
32821 echo "$as_me: failed program was:" >&5
32822sed 's/^/| /' conftest.$ac_ext >&5
32823
32824wx_cv_func_statvfs=no
32825
32826fi
ac1cb8d3 32827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32828
32829fi
32830echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32831echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32832
32833 if test "$wx_cv_func_statvfs" = "yes"; then
32834
32835
32836 ac_ext=cc
32837ac_cpp='$CXXCPP $CPPFLAGS'
32838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32841
32842
32843 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32844echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32845if test "${wx_cv_type_statvfs_t+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847else
32848 cat >conftest.$ac_ext <<_ACEOF
32849/* confdefs.h. */
32850_ACEOF
32851cat confdefs.h >>conftest.$ac_ext
32852cat >>conftest.$ac_ext <<_ACEOF
32853/* end confdefs.h. */
32854
32855 #include <sys/statvfs.h>
32856
32857int
32858main ()
32859{
32860
32861 long l;
32862 statvfs_t fs;
32863 statvfs("/", &fs);
32864 l = fs.f_bsize;
32865 l += fs.f_blocks;
32866 l += fs.f_bavail;
32867
32868 ;
32869 return 0;
32870}
32871_ACEOF
32872rm -f conftest.$ac_objext
32873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32874 (eval $ac_compile) 2>conftest.er1
a848cd7e 32875 ac_status=$?
ac1cb8d3
VS
32876 grep -v '^ *+' conftest.er1 >conftest.err
32877 rm -f conftest.er1
32878 cat conftest.err >&5
a848cd7e
SC
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); } &&
ddd14b14
RR
32881 { ac_try='test -z "$ac_cxx_werror_flag"
32882 || test ! -s conftest.err'
ac1cb8d3
VS
32883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884 (eval $ac_try) 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; } &&
32888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32890 (eval $ac_try) 2>&5
32891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; }; then
32894 wx_cv_type_statvfs_t=statvfs_t
32895else
32896 echo "$as_me: failed program was:" >&5
32897sed 's/^/| /' conftest.$ac_ext >&5
32898
32899
32900 cat >conftest.$ac_ext <<_ACEOF
32901/* confdefs.h. */
32902_ACEOF
32903cat confdefs.h >>conftest.$ac_ext
32904cat >>conftest.$ac_ext <<_ACEOF
32905/* end confdefs.h. */
32906
32907 #include <sys/statvfs.h>
32908
32909int
32910main ()
32911{
32912
32913 long l;
32914 struct statvfs fs;
32915 statvfs("/", &fs);
32916 l = fs.f_bsize;
32917 l += fs.f_blocks;
32918 l += fs.f_bavail;
32919
32920 ;
32921 return 0;
32922}
32923_ACEOF
32924rm -f conftest.$ac_objext
32925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32926 (eval $ac_compile) 2>conftest.er1
a848cd7e 32927 ac_status=$?
ac1cb8d3
VS
32928 grep -v '^ *+' conftest.er1 >conftest.err
32929 rm -f conftest.er1
32930 cat conftest.err >&5
a848cd7e
SC
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); } &&
ddd14b14
RR
32933 { ac_try='test -z "$ac_cxx_werror_flag"
32934 || test ! -s conftest.err'
ac1cb8d3
VS
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; } &&
32940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 wx_cv_type_statvfs_t="struct statvfs"
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
32951wx_cv_type_statvfs_t="unknown"
32952
32953fi
ac1cb8d3 32954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32955
32956
32957fi
ac1cb8d3 32958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32959
32960fi
32961echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32962echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32963
32964 ac_ext=c
32965ac_cpp='$CPP $CPPFLAGS'
32966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968ac_compiler_gnu=$ac_cv_c_compiler_gnu
32969
32970
32971 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32972 cat >>confdefs.h <<\_ACEOF
32973#define HAVE_STATVFS 1
32974_ACEOF
32975
32976 fi
32977 else
32978 wx_cv_type_statvfs_t="unknown"
32979 fi
32980fi
32981
32982if test "$wx_cv_type_statvfs_t" != "unknown"; then
32983 cat >>confdefs.h <<_ACEOF
32984#define WX_STATFS_T $wx_cv_type_statvfs_t
32985_ACEOF
32986
32987else
32988 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32989echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32990fi
32991
32992if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32993
32994
32995for ac_func in fcntl flock
32996do
32997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32998echo "$as_me:$LINENO: checking for $ac_func" >&5
32999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33000if eval "test \"\${$as_ac_var+set}\" = set"; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33002else
33003 cat >conftest.$ac_ext <<_ACEOF
33004/* confdefs.h. */
33005_ACEOF
33006cat confdefs.h >>conftest.$ac_ext
33007cat >>conftest.$ac_ext <<_ACEOF
33008/* end confdefs.h. */
ac1cb8d3
VS
33009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33011#define $ac_func innocuous_$ac_func
33012
a848cd7e
SC
33013/* System header to define __stub macros and hopefully few prototypes,
33014 which can conflict with char $ac_func (); below.
33015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33017
a848cd7e
SC
33018#ifdef __STDC__
33019# include <limits.h>
33020#else
33021# include <assert.h>
33022#endif
ac1cb8d3
VS
33023
33024#undef $ac_func
33025
a848cd7e
SC
33026/* Override any gcc2 internal prototype to avoid an error. */
33027#ifdef __cplusplus
33028extern "C"
33029{
33030#endif
33031/* We use char because int might match the return type of a gcc2
33032 builtin and then its argument prototype would still apply. */
33033char $ac_func ();
33034/* The GNU C library defines this for functions which it implements
33035 to always fail with ENOSYS. Some functions are actually named
33036 something starting with __ and the normal name is an alias. */
33037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33038choke me
33039#else
33040char (*f) () = $ac_func;
33041#endif
33042#ifdef __cplusplus
33043}
33044#endif
33045
33046int
33047main ()
33048{
33049return f != $ac_func;
33050 ;
33051 return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext conftest$ac_exeext
33055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33056 (eval $ac_link) 2>conftest.er1
a848cd7e 33057 ac_status=$?
ac1cb8d3
VS
33058 grep -v '^ *+' conftest.er1 >conftest.err
33059 rm -f conftest.er1
33060 cat conftest.err >&5
a848cd7e
SC
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); } &&
ddd14b14
RR
33063 { ac_try='test -z "$ac_c_werror_flag"
33064 || test ! -s conftest.err'
ac1cb8d3
VS
33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33072 (eval $ac_try) 2>&5
33073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 eval "$as_ac_var=yes"
33077else
33078 echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081eval "$as_ac_var=no"
33082fi
ac1cb8d3
VS
33083rm -f conftest.err conftest.$ac_objext \
33084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33085fi
33086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33088if test `eval echo '${'$as_ac_var'}'` = yes; then
33089 cat >>confdefs.h <<_ACEOF
33090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33091_ACEOF
33092 break
33093fi
33094done
33095
33096
33097 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33098 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33099echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33100 wxUSE_SNGLINST_CHECKER=no
33101 fi
33102fi
33103
33104
33105for ac_func in timegm
33106do
33107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33108echo "$as_me:$LINENO: checking for $ac_func" >&5
33109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33110if eval "test \"\${$as_ac_var+set}\" = set"; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33112else
33113 cat >conftest.$ac_ext <<_ACEOF
33114/* confdefs.h. */
33115_ACEOF
33116cat confdefs.h >>conftest.$ac_ext
33117cat >>conftest.$ac_ext <<_ACEOF
33118/* end confdefs.h. */
ac1cb8d3
VS
33119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33121#define $ac_func innocuous_$ac_func
33122
a848cd7e
SC
33123/* System header to define __stub macros and hopefully few prototypes,
33124 which can conflict with char $ac_func (); below.
33125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33127
a848cd7e
SC
33128#ifdef __STDC__
33129# include <limits.h>
33130#else
33131# include <assert.h>
33132#endif
ac1cb8d3
VS
33133
33134#undef $ac_func
33135
a848cd7e
SC
33136/* Override any gcc2 internal prototype to avoid an error. */
33137#ifdef __cplusplus
33138extern "C"
33139{
33140#endif
33141/* We use char because int might match the return type of a gcc2
33142 builtin and then its argument prototype would still apply. */
33143char $ac_func ();
33144/* The GNU C library defines this for functions which it implements
33145 to always fail with ENOSYS. Some functions are actually named
33146 something starting with __ and the normal name is an alias. */
33147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33148choke me
33149#else
33150char (*f) () = $ac_func;
33151#endif
33152#ifdef __cplusplus
33153}
33154#endif
33155
33156int
33157main ()
33158{
33159return f != $ac_func;
33160 ;
33161 return 0;
33162}
33163_ACEOF
33164rm -f conftest.$ac_objext conftest$ac_exeext
33165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33166 (eval $ac_link) 2>conftest.er1
a848cd7e 33167 ac_status=$?
ac1cb8d3
VS
33168 grep -v '^ *+' conftest.er1 >conftest.err
33169 rm -f conftest.er1
33170 cat conftest.err >&5
a848cd7e
SC
33171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33172 (exit $ac_status); } &&
ddd14b14
RR
33173 { ac_try='test -z "$ac_c_werror_flag"
33174 || test ! -s conftest.err'
ac1cb8d3
VS
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; } &&
33180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; }; then
33186 eval "$as_ac_var=yes"
33187else
33188 echo "$as_me: failed program was:" >&5
33189sed 's/^/| /' conftest.$ac_ext >&5
33190
33191eval "$as_ac_var=no"
33192fi
ac1cb8d3
VS
33193rm -f conftest.err conftest.$ac_objext \
33194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33195fi
33196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33198if test `eval echo '${'$as_ac_var'}'` = yes; then
33199 cat >>confdefs.h <<_ACEOF
33200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33201_ACEOF
33202
33203fi
33204done
33205
33206
33207
33208
33209for ac_func in putenv setenv
33210do
33211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33212echo "$as_me:$LINENO: checking for $ac_func" >&5
33213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33214if eval "test \"\${$as_ac_var+set}\" = set"; then
33215 echo $ECHO_N "(cached) $ECHO_C" >&6
33216else
33217 cat >conftest.$ac_ext <<_ACEOF
33218/* confdefs.h. */
33219_ACEOF
33220cat confdefs.h >>conftest.$ac_ext
33221cat >>conftest.$ac_ext <<_ACEOF
33222/* end confdefs.h. */
ac1cb8d3
VS
33223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33225#define $ac_func innocuous_$ac_func
33226
a848cd7e
SC
33227/* System header to define __stub macros and hopefully few prototypes,
33228 which can conflict with char $ac_func (); below.
33229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33231
a848cd7e
SC
33232#ifdef __STDC__
33233# include <limits.h>
33234#else
33235# include <assert.h>
33236#endif
ac1cb8d3
VS
33237
33238#undef $ac_func
33239
a848cd7e
SC
33240/* Override any gcc2 internal prototype to avoid an error. */
33241#ifdef __cplusplus
33242extern "C"
33243{
33244#endif
33245/* We use char because int might match the return type of a gcc2
33246 builtin and then its argument prototype would still apply. */
33247char $ac_func ();
33248/* The GNU C library defines this for functions which it implements
33249 to always fail with ENOSYS. Some functions are actually named
33250 something starting with __ and the normal name is an alias. */
33251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33252choke me
33253#else
33254char (*f) () = $ac_func;
33255#endif
33256#ifdef __cplusplus
33257}
33258#endif
33259
33260int
33261main ()
33262{
33263return f != $ac_func;
33264 ;
33265 return 0;
33266}
33267_ACEOF
33268rm -f conftest.$ac_objext conftest$ac_exeext
33269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33270 (eval $ac_link) 2>conftest.er1
a848cd7e 33271 ac_status=$?
ac1cb8d3
VS
33272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
a848cd7e
SC
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
ddd14b14
RR
33277 { ac_try='test -z "$ac_c_werror_flag"
33278 || test ! -s conftest.err'
ac1cb8d3
VS
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286 (eval $ac_try) 2>&5
33287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; }; then
33290 eval "$as_ac_var=yes"
33291else
33292 echo "$as_me: failed program was:" >&5
33293sed 's/^/| /' conftest.$ac_ext >&5
33294
33295eval "$as_ac_var=no"
33296fi
ac1cb8d3
VS
33297rm -f conftest.err conftest.$ac_objext \
33298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33299fi
33300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33302if test `eval echo '${'$as_ac_var'}'` = yes; then
33303 cat >>confdefs.h <<_ACEOF
33304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33305_ACEOF
33306 break
33307fi
33308done
33309
33310
33311HAVE_SOME_SLEEP_FUNC=0
33312if test "$USE_BEOS" = 1; then
33313 cat >>confdefs.h <<\_ACEOF
33314#define HAVE_SLEEP 1
33315_ACEOF
33316
33317 HAVE_SOME_SLEEP_FUNC=1
33318fi
33319
33320if test "$USE_DARWIN" = 1; then
33321 cat >>confdefs.h <<\_ACEOF
33322#define HAVE_USLEEP 1
33323_ACEOF
33324
33325 HAVE_SOME_SLEEP_FUNC=1
33326fi
33327
33328if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33329 POSIX4_LINK=
33330
33331for ac_func in nanosleep
33332do
33333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33334echo "$as_me:$LINENO: checking for $ac_func" >&5
33335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33336if eval "test \"\${$as_ac_var+set}\" = set"; then
33337 echo $ECHO_N "(cached) $ECHO_C" >&6
33338else
33339 cat >conftest.$ac_ext <<_ACEOF
33340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
ac1cb8d3
VS
33345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33347#define $ac_func innocuous_$ac_func
33348
a848cd7e
SC
33349/* System header to define __stub macros and hopefully few prototypes,
33350 which can conflict with char $ac_func (); below.
33351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33352 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33353
a848cd7e
SC
33354#ifdef __STDC__
33355# include <limits.h>
33356#else
33357# include <assert.h>
33358#endif
ac1cb8d3
VS
33359
33360#undef $ac_func
33361
a848cd7e
SC
33362/* Override any gcc2 internal prototype to avoid an error. */
33363#ifdef __cplusplus
33364extern "C"
33365{
33366#endif
33367/* We use char because int might match the return type of a gcc2
33368 builtin and then its argument prototype would still apply. */
33369char $ac_func ();
33370/* The GNU C library defines this for functions which it implements
33371 to always fail with ENOSYS. Some functions are actually named
33372 something starting with __ and the normal name is an alias. */
33373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33374choke me
33375#else
33376char (*f) () = $ac_func;
33377#endif
33378#ifdef __cplusplus
33379}
33380#endif
33381
33382int
33383main ()
33384{
33385return f != $ac_func;
33386 ;
33387 return 0;
33388}
33389_ACEOF
33390rm -f conftest.$ac_objext conftest$ac_exeext
33391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33392 (eval $ac_link) 2>conftest.er1
a848cd7e 33393 ac_status=$?
ac1cb8d3
VS
33394 grep -v '^ *+' conftest.er1 >conftest.err
33395 rm -f conftest.er1
33396 cat conftest.err >&5
a848cd7e
SC
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); } &&
ddd14b14
RR
33399 { ac_try='test -z "$ac_c_werror_flag"
33400 || test ! -s conftest.err'
ac1cb8d3
VS
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; }; then
33412 eval "$as_ac_var=yes"
33413else
33414 echo "$as_me: failed program was:" >&5
33415sed 's/^/| /' conftest.$ac_ext >&5
33416
33417eval "$as_ac_var=no"
33418fi
ac1cb8d3
VS
33419rm -f conftest.err conftest.$ac_objext \
33420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33421fi
33422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33424if test `eval echo '${'$as_ac_var'}'` = yes; then
33425 cat >>confdefs.h <<_ACEOF
33426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33427_ACEOF
33428 cat >>confdefs.h <<\_ACEOF
33429#define HAVE_NANOSLEEP 1
33430_ACEOF
33431
33432else
33433
33434 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33435echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33436if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33437 echo $ECHO_N "(cached) $ECHO_C" >&6
33438else
33439 ac_check_lib_save_LIBS=$LIBS
33440LIBS="-lposix4 $LIBS"
33441cat >conftest.$ac_ext <<_ACEOF
33442/* confdefs.h. */
33443_ACEOF
33444cat confdefs.h >>conftest.$ac_ext
33445cat >>conftest.$ac_ext <<_ACEOF
33446/* end confdefs.h. */
33447
33448/* Override any gcc2 internal prototype to avoid an error. */
33449#ifdef __cplusplus
33450extern "C"
33451#endif
33452/* We use char because int might match the return type of a gcc2
33453 builtin and then its argument prototype would still apply. */
33454char nanosleep ();
33455int
33456main ()
33457{
33458nanosleep ();
33459 ;
33460 return 0;
33461}
33462_ACEOF
33463rm -f conftest.$ac_objext conftest$ac_exeext
33464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33465 (eval $ac_link) 2>conftest.er1
a848cd7e 33466 ac_status=$?
ac1cb8d3
VS
33467 grep -v '^ *+' conftest.er1 >conftest.err
33468 rm -f conftest.er1
33469 cat conftest.err >&5
a848cd7e
SC
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } &&
ddd14b14
RR
33472 { ac_try='test -z "$ac_c_werror_flag"
33473 || test ! -s conftest.err'
ac1cb8d3
VS
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; } &&
33479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; }; then
33485 ac_cv_lib_posix4_nanosleep=yes
33486else
33487 echo "$as_me: failed program was:" >&5
33488sed 's/^/| /' conftest.$ac_ext >&5
33489
33490ac_cv_lib_posix4_nanosleep=no
33491fi
ac1cb8d3
VS
33492rm -f conftest.err conftest.$ac_objext \
33493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33494LIBS=$ac_check_lib_save_LIBS
33495fi
33496echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33497echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33498if test $ac_cv_lib_posix4_nanosleep = yes; then
33499
33500 cat >>confdefs.h <<\_ACEOF
33501#define HAVE_NANOSLEEP 1
33502_ACEOF
33503
33504 POSIX4_LINK=" -lposix4"
33505
33506else
33507
33508
33509for ac_func in usleep
33510do
33511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33512echo "$as_me:$LINENO: checking for $ac_func" >&5
33513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33514if eval "test \"\${$as_ac_var+set}\" = set"; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33516else
33517 cat >conftest.$ac_ext <<_ACEOF
33518/* confdefs.h. */
33519_ACEOF
33520cat confdefs.h >>conftest.$ac_ext
33521cat >>conftest.$ac_ext <<_ACEOF
33522/* end confdefs.h. */
ac1cb8d3
VS
33523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33525#define $ac_func innocuous_$ac_func
33526
a848cd7e
SC
33527/* System header to define __stub macros and hopefully few prototypes,
33528 which can conflict with char $ac_func (); below.
33529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33530 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33531
a848cd7e
SC
33532#ifdef __STDC__
33533# include <limits.h>
33534#else
33535# include <assert.h>
33536#endif
ac1cb8d3
VS
33537
33538#undef $ac_func
33539
a848cd7e
SC
33540/* Override any gcc2 internal prototype to avoid an error. */
33541#ifdef __cplusplus
33542extern "C"
33543{
33544#endif
33545/* We use char because int might match the return type of a gcc2
33546 builtin and then its argument prototype would still apply. */
33547char $ac_func ();
33548/* The GNU C library defines this for functions which it implements
33549 to always fail with ENOSYS. Some functions are actually named
33550 something starting with __ and the normal name is an alias. */
33551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33552choke me
33553#else
33554char (*f) () = $ac_func;
33555#endif
33556#ifdef __cplusplus
33557}
33558#endif
33559
33560int
33561main ()
33562{
33563return f != $ac_func;
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext conftest$ac_exeext
33569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33570 (eval $ac_link) 2>conftest.er1
a848cd7e 33571 ac_status=$?
ac1cb8d3
VS
33572 grep -v '^ *+' conftest.er1 >conftest.err
33573 rm -f conftest.er1
33574 cat conftest.err >&5
a848cd7e
SC
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
ddd14b14
RR
33577 { ac_try='test -z "$ac_c_werror_flag"
33578 || test ! -s conftest.err'
ac1cb8d3
VS
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33581 ac_status=$?
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 eval "$as_ac_var=yes"
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595eval "$as_ac_var=no"
33596fi
ac1cb8d3
VS
33597rm -f conftest.err conftest.$ac_objext \
33598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33599fi
33600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33602if test `eval echo '${'$as_ac_var'}'` = yes; then
33603 cat >>confdefs.h <<_ACEOF
33604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33605_ACEOF
33606 cat >>confdefs.h <<\_ACEOF
33607#define HAVE_USLEEP 1
33608_ACEOF
33609
33610else
33611 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33612echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33613
33614fi
33615done
33616
33617
33618
33619fi
33620
33621
33622
33623fi
33624done
33625
33626fi
33627
33628
33629
33630for ac_func in uname gethostname
33631do
33632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33633echo "$as_me:$LINENO: checking for $ac_func" >&5
33634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33635if eval "test \"\${$as_ac_var+set}\" = set"; then
33636 echo $ECHO_N "(cached) $ECHO_C" >&6
33637else
33638 cat >conftest.$ac_ext <<_ACEOF
33639/* confdefs.h. */
33640_ACEOF
33641cat confdefs.h >>conftest.$ac_ext
33642cat >>conftest.$ac_ext <<_ACEOF
33643/* end confdefs.h. */
ac1cb8d3
VS
33644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33646#define $ac_func innocuous_$ac_func
33647
a848cd7e
SC
33648/* System header to define __stub macros and hopefully few prototypes,
33649 which can conflict with char $ac_func (); below.
33650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33652
a848cd7e
SC
33653#ifdef __STDC__
33654# include <limits.h>
33655#else
33656# include <assert.h>
33657#endif
ac1cb8d3
VS
33658
33659#undef $ac_func
33660
a848cd7e
SC
33661/* Override any gcc2 internal prototype to avoid an error. */
33662#ifdef __cplusplus
33663extern "C"
33664{
33665#endif
33666/* We use char because int might match the return type of a gcc2
33667 builtin and then its argument prototype would still apply. */
33668char $ac_func ();
33669/* The GNU C library defines this for functions which it implements
33670 to always fail with ENOSYS. Some functions are actually named
33671 something starting with __ and the normal name is an alias. */
33672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33673choke me
33674#else
33675char (*f) () = $ac_func;
33676#endif
33677#ifdef __cplusplus
33678}
33679#endif
33680
33681int
33682main ()
33683{
33684return f != $ac_func;
33685 ;
33686 return 0;
33687}
33688_ACEOF
33689rm -f conftest.$ac_objext conftest$ac_exeext
33690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33691 (eval $ac_link) 2>conftest.er1
a848cd7e 33692 ac_status=$?
ac1cb8d3
VS
33693 grep -v '^ *+' conftest.er1 >conftest.err
33694 rm -f conftest.er1
33695 cat conftest.err >&5
a848cd7e
SC
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); } &&
ddd14b14
RR
33698 { ac_try='test -z "$ac_c_werror_flag"
33699 || test ! -s conftest.err'
ac1cb8d3
VS
33700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33701 (eval $ac_try) 2>&5
33702 ac_status=$?
33703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33704 (exit $ac_status); }; } &&
33705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33707 (eval $ac_try) 2>&5
33708 ac_status=$?
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; }; then
33711 eval "$as_ac_var=yes"
33712else
33713 echo "$as_me: failed program was:" >&5
33714sed 's/^/| /' conftest.$ac_ext >&5
33715
33716eval "$as_ac_var=no"
33717fi
ac1cb8d3
VS
33718rm -f conftest.err conftest.$ac_objext \
33719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33720fi
33721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33723if test `eval echo '${'$as_ac_var'}'` = yes; then
33724 cat >>confdefs.h <<_ACEOF
33725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33726_ACEOF
33727 break
33728fi
33729done
33730
33731
33732
33733
33734ac_ext=cc
33735ac_cpp='$CXXCPP $CPPFLAGS'
33736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33739
33740
33741
33742for ac_func in strtok_r
33743do
33744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33745echo "$as_me:$LINENO: checking for $ac_func" >&5
33746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33747if eval "test \"\${$as_ac_var+set}\" = set"; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750 cat >conftest.$ac_ext <<_ACEOF
33751/* confdefs.h. */
33752_ACEOF
33753cat confdefs.h >>conftest.$ac_ext
33754cat >>conftest.$ac_ext <<_ACEOF
33755/* end confdefs.h. */
ac1cb8d3
VS
33756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33758#define $ac_func innocuous_$ac_func
33759
a848cd7e
SC
33760/* System header to define __stub macros and hopefully few prototypes,
33761 which can conflict with char $ac_func (); below.
33762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33764
a848cd7e
SC
33765#ifdef __STDC__
33766# include <limits.h>
33767#else
33768# include <assert.h>
33769#endif
ac1cb8d3
VS
33770
33771#undef $ac_func
33772
a848cd7e
SC
33773/* Override any gcc2 internal prototype to avoid an error. */
33774#ifdef __cplusplus
33775extern "C"
33776{
33777#endif
33778/* We use char because int might match the return type of a gcc2
33779 builtin and then its argument prototype would still apply. */
33780char $ac_func ();
33781/* The GNU C library defines this for functions which it implements
33782 to always fail with ENOSYS. Some functions are actually named
33783 something starting with __ and the normal name is an alias. */
33784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33785choke me
33786#else
33787char (*f) () = $ac_func;
33788#endif
33789#ifdef __cplusplus
33790}
33791#endif
33792
33793int
33794main ()
33795{
33796return f != $ac_func;
33797 ;
33798 return 0;
33799}
33800_ACEOF
33801rm -f conftest.$ac_objext conftest$ac_exeext
33802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33803 (eval $ac_link) 2>conftest.er1
a848cd7e 33804 ac_status=$?
ac1cb8d3
VS
33805 grep -v '^ *+' conftest.er1 >conftest.err
33806 rm -f conftest.er1
33807 cat conftest.err >&5
a848cd7e
SC
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } &&
ddd14b14
RR
33810 { ac_try='test -z "$ac_cxx_werror_flag"
33811 || test ! -s conftest.err'
ac1cb8d3
VS
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33814 ac_status=$?
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; } &&
33817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33820 ac_status=$?
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; }; then
33823 eval "$as_ac_var=yes"
33824else
33825 echo "$as_me: failed program was:" >&5
33826sed 's/^/| /' conftest.$ac_ext >&5
33827
33828eval "$as_ac_var=no"
33829fi
ac1cb8d3
VS
33830rm -f conftest.err conftest.$ac_objext \
33831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33832fi
33833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33835if test `eval echo '${'$as_ac_var'}'` = yes; then
33836 cat >>confdefs.h <<_ACEOF
33837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33838_ACEOF
33839
33840fi
33841done
33842
33843
33844ac_ext=c
33845ac_cpp='$CPP $CPPFLAGS'
33846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33848ac_compiler_gnu=$ac_cv_c_compiler_gnu
33849
33850
33851INET_LINK=
33852
33853for ac_func in inet_addr
33854do
33855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33856echo "$as_me:$LINENO: checking for $ac_func" >&5
33857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33858if eval "test \"\${$as_ac_var+set}\" = set"; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33860else
33861 cat >conftest.$ac_ext <<_ACEOF
33862/* confdefs.h. */
33863_ACEOF
33864cat confdefs.h >>conftest.$ac_ext
33865cat >>conftest.$ac_ext <<_ACEOF
33866/* end confdefs.h. */
ac1cb8d3
VS
33867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33869#define $ac_func innocuous_$ac_func
33870
a848cd7e
SC
33871/* System header to define __stub macros and hopefully few prototypes,
33872 which can conflict with char $ac_func (); below.
33873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33874 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33875
a848cd7e
SC
33876#ifdef __STDC__
33877# include <limits.h>
33878#else
33879# include <assert.h>
33880#endif
ac1cb8d3
VS
33881
33882#undef $ac_func
33883
a848cd7e
SC
33884/* Override any gcc2 internal prototype to avoid an error. */
33885#ifdef __cplusplus
33886extern "C"
33887{
33888#endif
33889/* We use char because int might match the return type of a gcc2
33890 builtin and then its argument prototype would still apply. */
33891char $ac_func ();
33892/* The GNU C library defines this for functions which it implements
33893 to always fail with ENOSYS. Some functions are actually named
33894 something starting with __ and the normal name is an alias. */
33895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33896choke me
33897#else
33898char (*f) () = $ac_func;
33899#endif
33900#ifdef __cplusplus
33901}
33902#endif
33903
33904int
33905main ()
33906{
33907return f != $ac_func;
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext conftest$ac_exeext
33913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33914 (eval $ac_link) 2>conftest.er1
a848cd7e 33915 ac_status=$?
ac1cb8d3
VS
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
a848cd7e
SC
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
ddd14b14
RR
33921 { ac_try='test -z "$ac_c_werror_flag"
33922 || test ! -s conftest.err'
ac1cb8d3
VS
33923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924 (eval $ac_try) 2>&5
33925 ac_status=$?
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); }; } &&
33928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
33934 eval "$as_ac_var=yes"
33935else
33936 echo "$as_me: failed program was:" >&5
33937sed 's/^/| /' conftest.$ac_ext >&5
33938
33939eval "$as_ac_var=no"
33940fi
ac1cb8d3
VS
33941rm -f conftest.err conftest.$ac_objext \
33942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33943fi
33944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33946if test `eval echo '${'$as_ac_var'}'` = yes; then
33947 cat >>confdefs.h <<_ACEOF
33948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33949_ACEOF
33950 cat >>confdefs.h <<\_ACEOF
33951#define HAVE_INET_ADDR 1
33952_ACEOF
33953
33954else
33955
33956 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33957echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33958if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33959 echo $ECHO_N "(cached) $ECHO_C" >&6
33960else
33961 ac_check_lib_save_LIBS=$LIBS
33962LIBS="-lnsl $LIBS"
33963cat >conftest.$ac_ext <<_ACEOF
33964/* confdefs.h. */
33965_ACEOF
33966cat confdefs.h >>conftest.$ac_ext
33967cat >>conftest.$ac_ext <<_ACEOF
33968/* end confdefs.h. */
33969
33970/* Override any gcc2 internal prototype to avoid an error. */
33971#ifdef __cplusplus
33972extern "C"
33973#endif
33974/* We use char because int might match the return type of a gcc2
33975 builtin and then its argument prototype would still apply. */
33976char inet_addr ();
33977int
33978main ()
33979{
33980inet_addr ();
33981 ;
33982 return 0;
33983}
33984_ACEOF
33985rm -f conftest.$ac_objext conftest$ac_exeext
33986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33987 (eval $ac_link) 2>conftest.er1
a848cd7e 33988 ac_status=$?
ac1cb8d3
VS
33989 grep -v '^ *+' conftest.er1 >conftest.err
33990 rm -f conftest.er1
33991 cat conftest.err >&5
a848cd7e
SC
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); } &&
ddd14b14
RR
33994 { ac_try='test -z "$ac_c_werror_flag"
33995 || test ! -s conftest.err'
ac1cb8d3
VS
33996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33997 (eval $ac_try) 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34003 (eval $ac_try) 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
34007 ac_cv_lib_nsl_inet_addr=yes
34008else
34009 echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
34012ac_cv_lib_nsl_inet_addr=no
34013fi
ac1cb8d3
VS
34014rm -f conftest.err conftest.$ac_objext \
34015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34016LIBS=$ac_check_lib_save_LIBS
34017fi
34018echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34019echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34020if test $ac_cv_lib_nsl_inet_addr = yes; then
34021 INET_LINK="nsl"
34022else
34023
34024 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34025echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34026if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34028else
34029 ac_check_lib_save_LIBS=$LIBS
34030LIBS="-lresolv $LIBS"
34031cat >conftest.$ac_ext <<_ACEOF
34032/* confdefs.h. */
34033_ACEOF
34034cat confdefs.h >>conftest.$ac_ext
34035cat >>conftest.$ac_ext <<_ACEOF
34036/* end confdefs.h. */
34037
34038/* Override any gcc2 internal prototype to avoid an error. */
34039#ifdef __cplusplus
34040extern "C"
34041#endif
34042/* We use char because int might match the return type of a gcc2
34043 builtin and then its argument prototype would still apply. */
34044char inet_addr ();
34045int
34046main ()
34047{
34048inet_addr ();
34049 ;
34050 return 0;
34051}
34052_ACEOF
34053rm -f conftest.$ac_objext conftest$ac_exeext
34054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34055 (eval $ac_link) 2>conftest.er1
a848cd7e 34056 ac_status=$?
ac1cb8d3
VS
34057 grep -v '^ *+' conftest.er1 >conftest.err
34058 rm -f conftest.er1
34059 cat conftest.err >&5
a848cd7e
SC
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
ddd14b14
RR
34062 { ac_try='test -z "$ac_c_werror_flag"
34063 || test ! -s conftest.err'
ac1cb8d3
VS
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34066 ac_status=$?
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; } &&
34069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071 (eval $ac_try) 2>&5
34072 ac_status=$?
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); }; }; then
34075 ac_cv_lib_resolv_inet_addr=yes
34076else
34077 echo "$as_me: failed program was:" >&5
34078sed 's/^/| /' conftest.$ac_ext >&5
34079
34080ac_cv_lib_resolv_inet_addr=no
34081fi
ac1cb8d3
VS
34082rm -f conftest.err conftest.$ac_objext \
34083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34084LIBS=$ac_check_lib_save_LIBS
34085fi
34086echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34087echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34088if test $ac_cv_lib_resolv_inet_addr = yes; then
34089 INET_LINK="resolv"
34090else
34091
34092 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34093echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34094if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34096else
34097 ac_check_lib_save_LIBS=$LIBS
34098LIBS="-lsocket $LIBS"
34099cat >conftest.$ac_ext <<_ACEOF
34100/* confdefs.h. */
34101_ACEOF
34102cat confdefs.h >>conftest.$ac_ext
34103cat >>conftest.$ac_ext <<_ACEOF
34104/* end confdefs.h. */
34105
34106/* Override any gcc2 internal prototype to avoid an error. */
34107#ifdef __cplusplus
34108extern "C"
34109#endif
34110/* We use char because int might match the return type of a gcc2
34111 builtin and then its argument prototype would still apply. */
34112char inet_addr ();
34113int
34114main ()
34115{
34116inet_addr ();
34117 ;
34118 return 0;
34119}
34120_ACEOF
34121rm -f conftest.$ac_objext conftest$ac_exeext
34122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34123 (eval $ac_link) 2>conftest.er1
a848cd7e 34124 ac_status=$?
ac1cb8d3
VS
34125 grep -v '^ *+' conftest.er1 >conftest.err
34126 rm -f conftest.er1
34127 cat conftest.err >&5
a848cd7e
SC
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); } &&
ddd14b14
RR
34130 { ac_try='test -z "$ac_c_werror_flag"
34131 || test ! -s conftest.err'
ac1cb8d3
VS
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; } &&
34137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; }; then
34143 ac_cv_lib_socket_inet_addr=yes
34144else
34145 echo "$as_me: failed program was:" >&5
34146sed 's/^/| /' conftest.$ac_ext >&5
34147
34148ac_cv_lib_socket_inet_addr=no
34149fi
ac1cb8d3
VS
34150rm -f conftest.err conftest.$ac_objext \
34151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34152LIBS=$ac_check_lib_save_LIBS
34153fi
34154echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34155echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34156if test $ac_cv_lib_socket_inet_addr = yes; then
34157 INET_LINK="socket"
34158
34159fi
34160
34161
34162
34163fi
34164
34165
34166
34167fi
34168
34169
34170
34171fi
34172done
34173
34174
34175
34176for ac_func in inet_aton
34177do
34178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34179echo "$as_me:$LINENO: checking for $ac_func" >&5
34180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34181if eval "test \"\${$as_ac_var+set}\" = set"; then
34182 echo $ECHO_N "(cached) $ECHO_C" >&6
34183else
34184 cat >conftest.$ac_ext <<_ACEOF
34185/* confdefs.h. */
34186_ACEOF
34187cat confdefs.h >>conftest.$ac_ext
34188cat >>conftest.$ac_ext <<_ACEOF
34189/* end confdefs.h. */
ac1cb8d3
VS
34190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34192#define $ac_func innocuous_$ac_func
34193
a848cd7e
SC
34194/* System header to define __stub macros and hopefully few prototypes,
34195 which can conflict with char $ac_func (); below.
34196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34198
a848cd7e
SC
34199#ifdef __STDC__
34200# include <limits.h>
34201#else
34202# include <assert.h>
34203#endif
ac1cb8d3
VS
34204
34205#undef $ac_func
34206
a848cd7e
SC
34207/* Override any gcc2 internal prototype to avoid an error. */
34208#ifdef __cplusplus
34209extern "C"
34210{
34211#endif
34212/* We use char because int might match the return type of a gcc2
34213 builtin and then its argument prototype would still apply. */
34214char $ac_func ();
34215/* The GNU C library defines this for functions which it implements
34216 to always fail with ENOSYS. Some functions are actually named
34217 something starting with __ and the normal name is an alias. */
34218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34219choke me
34220#else
34221char (*f) () = $ac_func;
34222#endif
34223#ifdef __cplusplus
34224}
34225#endif
34226
34227int
34228main ()
34229{
34230return f != $ac_func;
34231 ;
34232 return 0;
34233}
34234_ACEOF
34235rm -f conftest.$ac_objext conftest$ac_exeext
34236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34237 (eval $ac_link) 2>conftest.er1
a848cd7e 34238 ac_status=$?
ac1cb8d3
VS
34239 grep -v '^ *+' conftest.er1 >conftest.err
34240 rm -f conftest.er1
34241 cat conftest.err >&5
a848cd7e
SC
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } &&
ddd14b14
RR
34244 { ac_try='test -z "$ac_c_werror_flag"
34245 || test ! -s conftest.err'
ac1cb8d3
VS
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; } &&
34251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 eval "$as_ac_var=yes"
34258else
34259 echo "$as_me: failed program was:" >&5
34260sed 's/^/| /' conftest.$ac_ext >&5
34261
34262eval "$as_ac_var=no"
34263fi
ac1cb8d3
VS
34264rm -f conftest.err conftest.$ac_objext \
34265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34266fi
34267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34269if test `eval echo '${'$as_ac_var'}'` = yes; then
34270 cat >>confdefs.h <<_ACEOF
34271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34272_ACEOF
34273 cat >>confdefs.h <<\_ACEOF
34274#define HAVE_INET_ATON 1
34275_ACEOF
34276
34277else
34278
34279 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34280echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34281echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34282if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34284else
34285 ac_check_lib_save_LIBS=$LIBS
34286LIBS="-l$INET_LINK $LIBS"
34287cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
34293
34294/* Override any gcc2 internal prototype to avoid an error. */
34295#ifdef __cplusplus
34296extern "C"
34297#endif
34298/* We use char because int might match the return type of a gcc2
34299 builtin and then its argument prototype would still apply. */
34300char inet_aton ();
34301int
34302main ()
34303{
34304inet_aton ();
34305 ;
34306 return 0;
34307}
34308_ACEOF
34309rm -f conftest.$ac_objext conftest$ac_exeext
34310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34311 (eval $ac_link) 2>conftest.er1
a848cd7e 34312 ac_status=$?
ac1cb8d3
VS
34313 grep -v '^ *+' conftest.er1 >conftest.err
34314 rm -f conftest.er1
34315 cat conftest.err >&5
a848cd7e
SC
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); } &&
ddd14b14
RR
34318 { ac_try='test -z "$ac_c_werror_flag"
34319 || test ! -s conftest.err'
ac1cb8d3
VS
34320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321 (eval $ac_try) 2>&5
34322 ac_status=$?
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 eval "$as_ac_Lib=yes"
34332else
34333 echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336eval "$as_ac_Lib=no"
34337fi
ac1cb8d3
VS
34338rm -f conftest.err conftest.$ac_objext \
34339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34340LIBS=$ac_check_lib_save_LIBS
34341fi
34342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34343echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34344if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34345 cat >>confdefs.h <<\_ACEOF
34346#define HAVE_INET_ATON 1
34347_ACEOF
34348
34349fi
34350
34351
34352fi
34353done
34354
34355
34356if test "x$INET_LINK" != "x"; then
34357 cat >>confdefs.h <<\_ACEOF
34358#define HAVE_INET_ADDR 1
34359_ACEOF
34360
34361 INET_LINK=" -l$INET_LINK"
34362fi
34363
34364fi
34365
34366
34367
34368EXTRALIBS_ESD=
34369echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34370echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34371if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34372 echo $ECHO_N "(cached) $ECHO_C" >&6
34373else
34374 ac_check_lib_save_LIBS=$LIBS
34375LIBS="-lesd $LIBS"
34376cat >conftest.$ac_ext <<_ACEOF
34377/* confdefs.h. */
34378_ACEOF
34379cat confdefs.h >>conftest.$ac_ext
34380cat >>conftest.$ac_ext <<_ACEOF
34381/* end confdefs.h. */
34382
34383/* Override any gcc2 internal prototype to avoid an error. */
34384#ifdef __cplusplus
34385extern "C"
34386#endif
34387/* We use char because int might match the return type of a gcc2
34388 builtin and then its argument prototype would still apply. */
34389char esd_close ();
34390int
34391main ()
34392{
34393esd_close ();
34394 ;
34395 return 0;
34396}
34397_ACEOF
34398rm -f conftest.$ac_objext conftest$ac_exeext
34399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34400 (eval $ac_link) 2>conftest.er1
a848cd7e 34401 ac_status=$?
ac1cb8d3
VS
34402 grep -v '^ *+' conftest.er1 >conftest.err
34403 rm -f conftest.er1
34404 cat conftest.err >&5
a848cd7e
SC
34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406 (exit $ac_status); } &&
ddd14b14
RR
34407 { ac_try='test -z "$ac_c_werror_flag"
34408 || test ! -s conftest.err'
ac1cb8d3
VS
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34411 ac_status=$?
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; } &&
34414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; }; then
34420 ac_cv_lib_esd_esd_close=yes
34421else
34422 echo "$as_me: failed program was:" >&5
34423sed 's/^/| /' conftest.$ac_ext >&5
34424
34425ac_cv_lib_esd_esd_close=no
34426fi
ac1cb8d3
VS
34427rm -f conftest.err conftest.$ac_objext \
34428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34429LIBS=$ac_check_lib_save_LIBS
34430fi
34431echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34432echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34433if test $ac_cv_lib_esd_esd_close = yes; then
34434
34435
34436for ac_header in esd.h
34437do
34438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34439if eval "test \"\${$as_ac_Header+set}\" = set"; then
34440 echo "$as_me:$LINENO: checking for $ac_header" >&5
34441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34442if eval "test \"\${$as_ac_Header+set}\" = set"; then
34443 echo $ECHO_N "(cached) $ECHO_C" >&6
34444fi
34445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34447else
34448 # Is the header compilable?
34449echo "$as_me:$LINENO: checking $ac_header usability" >&5
34450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34451cat >conftest.$ac_ext <<_ACEOF
34452/* confdefs.h. */
34453_ACEOF
34454cat confdefs.h >>conftest.$ac_ext
34455cat >>conftest.$ac_ext <<_ACEOF
34456/* end confdefs.h. */
34457$ac_includes_default
34458#include <$ac_header>
34459_ACEOF
34460rm -f conftest.$ac_objext
34461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34462 (eval $ac_compile) 2>conftest.er1
a848cd7e 34463 ac_status=$?
ac1cb8d3
VS
34464 grep -v '^ *+' conftest.er1 >conftest.err
34465 rm -f conftest.er1
34466 cat conftest.err >&5
a848cd7e
SC
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); } &&
ddd14b14
RR
34469 { ac_try='test -z "$ac_c_werror_flag"
34470 || test ! -s conftest.err'
ac1cb8d3
VS
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; } &&
34476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478 (eval $ac_try) 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; }; then
34482 ac_header_compiler=yes
34483else
34484 echo "$as_me: failed program was:" >&5
34485sed 's/^/| /' conftest.$ac_ext >&5
34486
34487ac_header_compiler=no
34488fi
ac1cb8d3 34489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34491echo "${ECHO_T}$ac_header_compiler" >&6
34492
34493# Is the header present?
34494echo "$as_me:$LINENO: checking $ac_header presence" >&5
34495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34496cat >conftest.$ac_ext <<_ACEOF
34497/* confdefs.h. */
34498_ACEOF
34499cat confdefs.h >>conftest.$ac_ext
34500cat >>conftest.$ac_ext <<_ACEOF
34501/* end confdefs.h. */
34502#include <$ac_header>
34503_ACEOF
34504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34506 ac_status=$?
34507 grep -v '^ *+' conftest.er1 >conftest.err
34508 rm -f conftest.er1
34509 cat conftest.err >&5
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); } >/dev/null; then
34512 if test -s conftest.err; then
34513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34515 else
34516 ac_cpp_err=
34517 fi
34518else
34519 ac_cpp_err=yes
34520fi
34521if test -z "$ac_cpp_err"; then
34522 ac_header_preproc=yes
34523else
34524 echo "$as_me: failed program was:" >&5
34525sed 's/^/| /' conftest.$ac_ext >&5
34526
34527 ac_header_preproc=no
34528fi
34529rm -f conftest.err conftest.$ac_ext
34530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34531echo "${ECHO_T}$ac_header_preproc" >&6
34532
34533# So? What about this header?
ac1cb8d3
VS
34534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34535 yes:no: )
a848cd7e
SC
34536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34540 ac_header_preproc=yes
a848cd7e 34541 ;;
ac1cb8d3 34542 no:yes:* )
a848cd7e
SC
34543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34555 (
34556 cat <<\_ASBOX
ac1cb8d3
VS
34557## ----------------------------------------- ##
34558## Report this to wx-dev@lists.wxwidgets.org ##
34559## ----------------------------------------- ##
a848cd7e
SC
34560_ASBOX
34561 ) |
34562 sed "s/^/$as_me: WARNING: /" >&2
34563 ;;
34564esac
34565echo "$as_me:$LINENO: checking for $ac_header" >&5
34566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34567if eval "test \"\${$as_ac_Header+set}\" = set"; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34569else
ac1cb8d3 34570 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34571fi
34572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34574
34575fi
34576if test `eval echo '${'$as_ac_Header'}'` = yes; then
34577 cat >>confdefs.h <<_ACEOF
34578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34579_ACEOF
34580
34581 EXTRALIBS_ESD="-lesd"
34582
34583fi
34584
34585done
34586
34587
34588fi
34589
34590
34591
34592echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34593echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34594cat >conftest.$ac_ext <<_ACEOF
34595/* confdefs.h. */
34596_ACEOF
34597cat confdefs.h >>conftest.$ac_ext
34598cat >>conftest.$ac_ext <<_ACEOF
34599/* end confdefs.h. */
34600#ifdef __linux__
34601 #include <linux/cdrom.h>
34602 #else
34603 /* For Solaris */
34604 #include <sys/cdio.h>
34605 #endif
34606
34607int
34608main ()
34609{
34610struct cdrom_tocentry entry, old_entry;
34611 ;
34612 return 0;
34613}
34614_ACEOF
34615rm -f conftest.$ac_objext
34616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34617 (eval $ac_compile) 2>conftest.er1
a848cd7e 34618 ac_status=$?
ac1cb8d3
VS
34619 grep -v '^ *+' conftest.er1 >conftest.err
34620 rm -f conftest.er1
34621 cat conftest.err >&5
a848cd7e
SC
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } &&
ddd14b14
RR
34624 { ac_try='test -z "$ac_c_werror_flag"
34625 || test ! -s conftest.err'
ac1cb8d3
VS
34626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 (eval $ac_try) 2>&5
34628 ac_status=$?
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); }; } &&
34631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34634 ac_status=$?
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637 echo "$as_me:$LINENO: result: yes" >&5
34638echo "${ECHO_T}yes" >&6
34639 cat >>confdefs.h <<\_ACEOF
34640#define HAVE_KNOWN_CDROM_INTERFACE 1
34641_ACEOF
34642
34643else
34644 echo "$as_me: failed program was:" >&5
34645sed 's/^/| /' conftest.$ac_ext >&5
34646
34647echo "$as_me:$LINENO: result: no" >&5
34648echo "${ECHO_T}no" >&6
34649fi
ac1cb8d3 34650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34651
34652
34653cat >confcache <<\_ACEOF
34654# This file is a shell script that caches the results of configure
34655# tests run on this system so they can be shared between configure
34656# scripts and configure runs, see configure's option --config-cache.
34657# It is not useful on other systems. If it contains results you don't
34658# want to keep, you may remove or edit it.
34659#
34660# config.status only pays attention to the cache file if you give it
34661# the --recheck option to rerun configure.
34662#
34663# `ac_cv_env_foo' variables (set or unset) will be overridden when
34664# loading this file, other *unset* `ac_cv_foo' will be assigned the
34665# following values.
34666
34667_ACEOF
34668
34669# The following way of writing the cache mishandles newlines in values,
34670# but we know of no workaround that is simple, portable, and efficient.
34671# So, don't put newlines in cache variables' values.
34672# Ultrix sh set writes to stderr and can't be redirected directly,
34673# and sets the high bit in the cache file unless we assign to the vars.
34674{
34675 (set) 2>&1 |
34676 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34677 *ac_space=\ *)
34678 # `set' does not quote correctly, so add quotes (double-quote
34679 # substitution turns \\\\ into \\, and sed turns \\ into \).
34680 sed -n \
ac1cb8d3
VS
34681 "s/'/'\\\\''/g;
34682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34683 ;;
34684 *)
34685 # `set' quotes correctly as required by POSIX, so do not add quotes.
34686 sed -n \
ac1cb8d3 34687 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34688 ;;
34689 esac;
34690} |
34691 sed '
34692 t clear
34693 : clear
34694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34695 t end
34696 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34697 : end' >>confcache
34698if diff $cache_file confcache >/dev/null 2>&1; then :; else
34699 if test -w $cache_file; then
34700 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34701 cat confcache >$cache_file
34702 else
34703 echo "not updating unwritable cache $cache_file"
34704 fi
34705fi
34706rm -f confcache
34707
34708
34709CPP_MT_FLAG=
34710if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34711
34712
34713 THREADS_LINK=
34714 THREADS_CFLAGS=
34715
34716 if test "$wxUSE_THREADS" = "yes" ; then
34717 if test "$USE_BEOS" = 1; then
34718 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34719echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34720 wxUSE_THREADS="no"
34721 fi
34722 fi
34723
34724 if test "$wxUSE_THREADS" = "yes" ; then
34725
34726
34727 THREAD_OPTS="-pthread"
34728 case "${host}" in
34729 *-*-solaris2* | *-*-sunos4* )
34730 if test "x$GCC" = "xyes"; then
34731 THREAD_OPTS="-pthreads $THREAD_OPTS"
34732 else
34733 THREAD_OPTS="-mt $THREAD_OPTS"
34734 fi
34735 ;;
34736 *-*-freebsd*)
34737 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34738 ;;
34739 *-*-darwin* | *-*-cygwin* )
34740 THREAD_OPTS=""
34741 ;;
34742 *-*-aix*)
34743 THREAD_OPTS="pthreads"
34744 ;;
34745 *-hp-hpux* )
34746 if test "x$GCC" != "xyes"; then
34747 THREAD_OPTS=""
34748 fi
34749 ;;
34750
34751 *-*-irix* )
34752 if test "x$GCC" = "xyes"; then
34753 THREAD_OPTS=""
34754 fi
34755 ;;
34756
34757 *-*-*UnixWare*)
34758 if test "x$GCC" != "xyes"; then
34759 THREAD_OPTS="-Ethread"
34760 fi
34761 ;;
34762 esac
34763
34764 THREAD_OPTS="$THREAD_OPTS pthread none"
34765
34766 THREADS_OK=no
34767 for flag in $THREAD_OPTS; do
34768 case $flag in
34769 none)
34770 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34771echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34772 ;;
34773
34774 -*)
34775 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34776echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34777 THREADS_CFLAGS="$flag"
34778 ;;
34779
34780 *)
34781 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34782echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34783 THREADS_LINK="-l$flag"
34784 ;;
34785 esac
34786
34787 save_LIBS="$LIBS"
34788 save_CFLAGS="$CFLAGS"
34789 LIBS="$THREADS_LINK $LIBS"
34790 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34791
34792 cat >conftest.$ac_ext <<_ACEOF
34793/* confdefs.h. */
34794_ACEOF
34795cat confdefs.h >>conftest.$ac_ext
34796cat >>conftest.$ac_ext <<_ACEOF
34797/* end confdefs.h. */
34798#include <pthread.h>
34799int
34800main ()
34801{
34802pthread_create(0,0,0,0);
34803 ;
34804 return 0;
34805}
34806_ACEOF
34807rm -f conftest.$ac_objext conftest$ac_exeext
34808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34809 (eval $ac_link) 2>conftest.er1
a848cd7e 34810 ac_status=$?
ac1cb8d3
VS
34811 grep -v '^ *+' conftest.er1 >conftest.err
34812 rm -f conftest.er1
34813 cat conftest.err >&5
a848cd7e
SC
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); } &&
ddd14b14
RR
34816 { ac_try='test -z "$ac_c_werror_flag"
34817 || test ! -s conftest.err'
ac1cb8d3
VS
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; } &&
34823 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34825 (eval $ac_try) 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
34829 THREADS_OK=yes
34830else
34831 echo "$as_me: failed program was:" >&5
34832sed 's/^/| /' conftest.$ac_ext >&5
34833
34834fi
ac1cb8d3
VS
34835rm -f conftest.err conftest.$ac_objext \
34836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34837
34838 LIBS="$save_LIBS"
34839 CFLAGS="$save_CFLAGS"
34840
34841 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34842echo "${ECHO_T}$THREADS_OK" >&6
34843 if test "x$THREADS_OK" = "xyes"; then
34844 break;
34845 fi
34846
34847 THREADS_LINK=""
34848 THREADS_CFLAGS=""
34849 done
34850
34851 if test "x$THREADS_OK" != "xyes"; then
34852 wxUSE_THREADS=no
34853 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34854echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34855 else
34856 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34857 LIBS="$THREADS_LINK $LIBS"
34858
34859 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34860echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34861 flag=no
34862 case "${host}" in
34863 *-aix*)
34864 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34865 flag="-D_THREAD_SAFE"
34866 ;;
34867 *-freebsd*)
34868 flag="-D_THREAD_SAFE"
34869 ;;
34870 *-hp-hpux* )
34871 flag="-D_REENTRANT"
34872 if test "x$GCC" != "xyes"; then
34873 flag="$flag -D_RWSTD_MULTI_THREAD"
34874 fi
34875 ;;
34876 *solaris* | alpha*-osf*)
34877 flag="-D_REENTRANT"
34878 ;;
34879 esac
34880 echo "$as_me:$LINENO: result: ${flag}" >&5
34881echo "${ECHO_T}${flag}" >&6
34882 if test "x$flag" != xno; then
34883 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34884 fi
34885
34886 if test "x$THREADS_CFLAGS" != "x"; then
34887 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34888 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34889 fi
34890 fi
34891 fi
34892
34893 if test "$wxUSE_THREADS" = "yes" ; then
34894
34895for ac_func in thr_setconcurrency
34896do
34897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34898echo "$as_me:$LINENO: checking for $ac_func" >&5
34899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34900if eval "test \"\${$as_ac_var+set}\" = set"; then
34901 echo $ECHO_N "(cached) $ECHO_C" >&6
34902else
34903 cat >conftest.$ac_ext <<_ACEOF
34904/* confdefs.h. */
34905_ACEOF
34906cat confdefs.h >>conftest.$ac_ext
34907cat >>conftest.$ac_ext <<_ACEOF
34908/* end confdefs.h. */
ac1cb8d3
VS
34909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34911#define $ac_func innocuous_$ac_func
34912
a848cd7e
SC
34913/* System header to define __stub macros and hopefully few prototypes,
34914 which can conflict with char $ac_func (); below.
34915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34916 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34917
a848cd7e
SC
34918#ifdef __STDC__
34919# include <limits.h>
34920#else
34921# include <assert.h>
34922#endif
ac1cb8d3
VS
34923
34924#undef $ac_func
34925
a848cd7e
SC
34926/* Override any gcc2 internal prototype to avoid an error. */
34927#ifdef __cplusplus
34928extern "C"
34929{
34930#endif
34931/* We use char because int might match the return type of a gcc2
34932 builtin and then its argument prototype would still apply. */
34933char $ac_func ();
34934/* The GNU C library defines this for functions which it implements
34935 to always fail with ENOSYS. Some functions are actually named
34936 something starting with __ and the normal name is an alias. */
34937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34938choke me
34939#else
34940char (*f) () = $ac_func;
34941#endif
34942#ifdef __cplusplus
34943}
34944#endif
34945
34946int
34947main ()
34948{
34949return f != $ac_func;
34950 ;
34951 return 0;
34952}
34953_ACEOF
34954rm -f conftest.$ac_objext conftest$ac_exeext
34955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34956 (eval $ac_link) 2>conftest.er1
a848cd7e 34957 ac_status=$?
ac1cb8d3
VS
34958 grep -v '^ *+' conftest.er1 >conftest.err
34959 rm -f conftest.er1
34960 cat conftest.err >&5
a848cd7e
SC
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } &&
ddd14b14
RR
34963 { ac_try='test -z "$ac_c_werror_flag"
34964 || test ! -s conftest.err'
ac1cb8d3
VS
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; } &&
34970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972 (eval $ac_try) 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; }; then
34976 eval "$as_ac_var=yes"
34977else
34978 echo "$as_me: failed program was:" >&5
34979sed 's/^/| /' conftest.$ac_ext >&5
34980
34981eval "$as_ac_var=no"
34982fi
ac1cb8d3
VS
34983rm -f conftest.err conftest.$ac_objext \
34984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34985fi
34986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34988if test `eval echo '${'$as_ac_var'}'` = yes; then
34989 cat >>confdefs.h <<_ACEOF
34990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34991_ACEOF
34992
34993fi
34994done
34995
34996
34997
34998for ac_header in sched.h
34999do
35000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35001if eval "test \"\${$as_ac_Header+set}\" = set"; then
35002 echo "$as_me:$LINENO: checking for $ac_header" >&5
35003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35004if eval "test \"\${$as_ac_Header+set}\" = set"; then
35005 echo $ECHO_N "(cached) $ECHO_C" >&6
35006fi
35007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35009else
35010 # Is the header compilable?
35011echo "$as_me:$LINENO: checking $ac_header usability" >&5
35012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35013cat >conftest.$ac_ext <<_ACEOF
35014/* confdefs.h. */
35015_ACEOF
35016cat confdefs.h >>conftest.$ac_ext
35017cat >>conftest.$ac_ext <<_ACEOF
35018/* end confdefs.h. */
35019$ac_includes_default
35020#include <$ac_header>
35021_ACEOF
35022rm -f conftest.$ac_objext
35023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35024 (eval $ac_compile) 2>conftest.er1
a848cd7e 35025 ac_status=$?
ac1cb8d3
VS
35026 grep -v '^ *+' conftest.er1 >conftest.err
35027 rm -f conftest.er1
35028 cat conftest.err >&5
a848cd7e
SC
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
ddd14b14
RR
35031 { ac_try='test -z "$ac_c_werror_flag"
35032 || test ! -s conftest.err'
ac1cb8d3
VS
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35035 ac_status=$?
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; } &&
35038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35041 ac_status=$?
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; }; then
35044 ac_header_compiler=yes
35045else
35046 echo "$as_me: failed program was:" >&5
35047sed 's/^/| /' conftest.$ac_ext >&5
35048
35049ac_header_compiler=no
35050fi
ac1cb8d3 35051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35053echo "${ECHO_T}$ac_header_compiler" >&6
35054
35055# Is the header present?
35056echo "$as_me:$LINENO: checking $ac_header presence" >&5
35057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35058cat >conftest.$ac_ext <<_ACEOF
35059/* confdefs.h. */
35060_ACEOF
35061cat confdefs.h >>conftest.$ac_ext
35062cat >>conftest.$ac_ext <<_ACEOF
35063/* end confdefs.h. */
35064#include <$ac_header>
35065_ACEOF
35066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35068 ac_status=$?
35069 grep -v '^ *+' conftest.er1 >conftest.err
35070 rm -f conftest.er1
35071 cat conftest.err >&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); } >/dev/null; then
35074 if test -s conftest.err; then
35075 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35077 else
35078 ac_cpp_err=
35079 fi
35080else
35081 ac_cpp_err=yes
35082fi
35083if test -z "$ac_cpp_err"; then
35084 ac_header_preproc=yes
35085else
35086 echo "$as_me: failed program was:" >&5
35087sed 's/^/| /' conftest.$ac_ext >&5
35088
35089 ac_header_preproc=no
35090fi
35091rm -f conftest.err conftest.$ac_ext
35092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35093echo "${ECHO_T}$ac_header_preproc" >&6
35094
35095# So? What about this header?
ac1cb8d3
VS
35096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35097 yes:no: )
a848cd7e
SC
35098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35102 ac_header_preproc=yes
a848cd7e 35103 ;;
ac1cb8d3 35104 no:yes:* )
a848cd7e
SC
35105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35117 (
35118 cat <<\_ASBOX
ac1cb8d3
VS
35119## ----------------------------------------- ##
35120## Report this to wx-dev@lists.wxwidgets.org ##
35121## ----------------------------------------- ##
a848cd7e
SC
35122_ASBOX
35123 ) |
35124 sed "s/^/$as_me: WARNING: /" >&2
35125 ;;
35126esac
35127echo "$as_me:$LINENO: checking for $ac_header" >&5
35128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35129if eval "test \"\${$as_ac_Header+set}\" = set"; then
35130 echo $ECHO_N "(cached) $ECHO_C" >&6
35131else
ac1cb8d3 35132 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35133fi
35134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35136
35137fi
35138if test `eval echo '${'$as_ac_Header'}'` = yes; then
35139 cat >>confdefs.h <<_ACEOF
35140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35141_ACEOF
35142
35143fi
35144
35145done
35146
35147 if test "$ac_cv_header_sched_h" = "yes"; then
35148 echo "$as_me:$LINENO: checking for sched_yield" >&5
35149echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35150if test "${ac_cv_func_sched_yield+set}" = set; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35152else
35153 cat >conftest.$ac_ext <<_ACEOF
35154/* confdefs.h. */
35155_ACEOF
35156cat confdefs.h >>conftest.$ac_ext
35157cat >>conftest.$ac_ext <<_ACEOF
35158/* end confdefs.h. */
ac1cb8d3
VS
35159/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35161#define sched_yield innocuous_sched_yield
35162
a848cd7e
SC
35163/* System header to define __stub macros and hopefully few prototypes,
35164 which can conflict with char sched_yield (); below.
35165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35166 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35167
a848cd7e
SC
35168#ifdef __STDC__
35169# include <limits.h>
35170#else
35171# include <assert.h>
35172#endif
ac1cb8d3
VS
35173
35174#undef sched_yield
35175
a848cd7e
SC
35176/* Override any gcc2 internal prototype to avoid an error. */
35177#ifdef __cplusplus
35178extern "C"
35179{
35180#endif
35181/* We use char because int might match the return type of a gcc2
35182 builtin and then its argument prototype would still apply. */
35183char sched_yield ();
35184/* The GNU C library defines this for functions which it implements
35185 to always fail with ENOSYS. Some functions are actually named
35186 something starting with __ and the normal name is an alias. */
35187#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35188choke me
35189#else
35190char (*f) () = sched_yield;
35191#endif
35192#ifdef __cplusplus
35193}
35194#endif
35195
35196int
35197main ()
35198{
35199return f != sched_yield;
35200 ;
35201 return 0;
35202}
35203_ACEOF
35204rm -f conftest.$ac_objext conftest$ac_exeext
35205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35206 (eval $ac_link) 2>conftest.er1
a848cd7e 35207 ac_status=$?
ac1cb8d3
VS
35208 grep -v '^ *+' conftest.er1 >conftest.err
35209 rm -f conftest.er1
35210 cat conftest.err >&5
a848cd7e
SC
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); } &&
ddd14b14
RR
35213 { ac_try='test -z "$ac_c_werror_flag"
35214 || test ! -s conftest.err'
ac1cb8d3
VS
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; } &&
35220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; }; then
35226 ac_cv_func_sched_yield=yes
35227else
35228 echo "$as_me: failed program was:" >&5
35229sed 's/^/| /' conftest.$ac_ext >&5
35230
35231ac_cv_func_sched_yield=no
35232fi
ac1cb8d3
VS
35233rm -f conftest.err conftest.$ac_objext \
35234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35235fi
35236echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35237echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35238if test $ac_cv_func_sched_yield = yes; then
35239 cat >>confdefs.h <<\_ACEOF
35240#define HAVE_SCHED_YIELD 1
35241_ACEOF
35242
35243else
35244
35245 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35246echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35247if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35248 echo $ECHO_N "(cached) $ECHO_C" >&6
35249else
35250 ac_check_lib_save_LIBS=$LIBS
35251LIBS="-lposix4 $LIBS"
35252cat >conftest.$ac_ext <<_ACEOF
35253/* confdefs.h. */
35254_ACEOF
35255cat confdefs.h >>conftest.$ac_ext
35256cat >>conftest.$ac_ext <<_ACEOF
35257/* end confdefs.h. */
35258
35259/* Override any gcc2 internal prototype to avoid an error. */
35260#ifdef __cplusplus
35261extern "C"
35262#endif
35263/* We use char because int might match the return type of a gcc2
35264 builtin and then its argument prototype would still apply. */
35265char sched_yield ();
35266int
35267main ()
35268{
35269sched_yield ();
35270 ;
35271 return 0;
35272}
35273_ACEOF
35274rm -f conftest.$ac_objext conftest$ac_exeext
35275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35276 (eval $ac_link) 2>conftest.er1
a848cd7e 35277 ac_status=$?
ac1cb8d3
VS
35278 grep -v '^ *+' conftest.er1 >conftest.err
35279 rm -f conftest.er1
35280 cat conftest.err >&5
a848cd7e
SC
35281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282 (exit $ac_status); } &&
ddd14b14
RR
35283 { ac_try='test -z "$ac_c_werror_flag"
35284 || test ! -s conftest.err'
ac1cb8d3
VS
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35287 ac_status=$?
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; } &&
35290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292 (eval $ac_try) 2>&5
35293 ac_status=$?
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); }; }; then
35296 ac_cv_lib_posix4_sched_yield=yes
35297else
35298 echo "$as_me: failed program was:" >&5
35299sed 's/^/| /' conftest.$ac_ext >&5
35300
35301ac_cv_lib_posix4_sched_yield=no
35302fi
ac1cb8d3
VS
35303rm -f conftest.err conftest.$ac_objext \
35304 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35305LIBS=$ac_check_lib_save_LIBS
35306fi
35307echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35308echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35309if test $ac_cv_lib_posix4_sched_yield = yes; then
35310 cat >>confdefs.h <<\_ACEOF
35311#define HAVE_SCHED_YIELD 1
35312_ACEOF
35313 POSIX4_LINK=" -lposix4"
35314else
35315 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35316echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35317
35318fi
35319
35320
35321
35322fi
35323
35324 fi
35325
35326 HAVE_PRIOR_FUNCS=0
35327 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35328echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35329if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35330 echo $ECHO_N "(cached) $ECHO_C" >&6
35331else
35332 cat >conftest.$ac_ext <<_ACEOF
35333/* confdefs.h. */
35334_ACEOF
35335cat confdefs.h >>conftest.$ac_ext
35336cat >>conftest.$ac_ext <<_ACEOF
35337/* end confdefs.h. */
ac1cb8d3
VS
35338/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35340#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35341
a848cd7e
SC
35342/* System header to define __stub macros and hopefully few prototypes,
35343 which can conflict with char pthread_attr_getschedpolicy (); below.
35344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35345 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35346
a848cd7e
SC
35347#ifdef __STDC__
35348# include <limits.h>
35349#else
35350# include <assert.h>
35351#endif
ac1cb8d3
VS
35352
35353#undef pthread_attr_getschedpolicy
35354
a848cd7e
SC
35355/* Override any gcc2 internal prototype to avoid an error. */
35356#ifdef __cplusplus
35357extern "C"
35358{
35359#endif
35360/* We use char because int might match the return type of a gcc2
35361 builtin and then its argument prototype would still apply. */
35362char pthread_attr_getschedpolicy ();
35363/* The GNU C library defines this for functions which it implements
35364 to always fail with ENOSYS. Some functions are actually named
35365 something starting with __ and the normal name is an alias. */
35366#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35367choke me
35368#else
35369char (*f) () = pthread_attr_getschedpolicy;
35370#endif
35371#ifdef __cplusplus
35372}
35373#endif
35374
35375int
35376main ()
35377{
35378return f != pthread_attr_getschedpolicy;
35379 ;
35380 return 0;
35381}
35382_ACEOF
35383rm -f conftest.$ac_objext conftest$ac_exeext
35384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35385 (eval $ac_link) 2>conftest.er1
a848cd7e 35386 ac_status=$?
ac1cb8d3
VS
35387 grep -v '^ *+' conftest.er1 >conftest.err
35388 rm -f conftest.er1
35389 cat conftest.err >&5
a848cd7e
SC
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); } &&
ddd14b14
RR
35392 { ac_try='test -z "$ac_c_werror_flag"
35393 || test ! -s conftest.err'
ac1cb8d3
VS
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35396 ac_status=$?
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; } &&
35399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401 (eval $ac_try) 2>&5
35402 ac_status=$?
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; }; then
35405 ac_cv_func_pthread_attr_getschedpolicy=yes
35406else
35407 echo "$as_me: failed program was:" >&5
35408sed 's/^/| /' conftest.$ac_ext >&5
35409
35410ac_cv_func_pthread_attr_getschedpolicy=no
35411fi
ac1cb8d3
VS
35412rm -f conftest.err conftest.$ac_objext \
35413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35414fi
35415echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35416echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35417if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35418 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35419echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35420if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35421 echo $ECHO_N "(cached) $ECHO_C" >&6
35422else
35423 cat >conftest.$ac_ext <<_ACEOF
35424/* confdefs.h. */
35425_ACEOF
35426cat confdefs.h >>conftest.$ac_ext
35427cat >>conftest.$ac_ext <<_ACEOF
35428/* end confdefs.h. */
ac1cb8d3
VS
35429/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35431#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35432
a848cd7e
SC
35433/* System header to define __stub macros and hopefully few prototypes,
35434 which can conflict with char pthread_attr_setschedparam (); below.
35435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35437
a848cd7e
SC
35438#ifdef __STDC__
35439# include <limits.h>
35440#else
35441# include <assert.h>
35442#endif
ac1cb8d3
VS
35443
35444#undef pthread_attr_setschedparam
35445
a848cd7e
SC
35446/* Override any gcc2 internal prototype to avoid an error. */
35447#ifdef __cplusplus
35448extern "C"
35449{
35450#endif
35451/* We use char because int might match the return type of a gcc2
35452 builtin and then its argument prototype would still apply. */
35453char pthread_attr_setschedparam ();
35454/* The GNU C library defines this for functions which it implements
35455 to always fail with ENOSYS. Some functions are actually named
35456 something starting with __ and the normal name is an alias. */
35457#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35458choke me
35459#else
35460char (*f) () = pthread_attr_setschedparam;
35461#endif
35462#ifdef __cplusplus
35463}
35464#endif
35465
35466int
35467main ()
35468{
35469return f != pthread_attr_setschedparam;
35470 ;
35471 return 0;
35472}
35473_ACEOF
35474rm -f conftest.$ac_objext conftest$ac_exeext
35475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35476 (eval $ac_link) 2>conftest.er1
a848cd7e 35477 ac_status=$?
ac1cb8d3
VS
35478 grep -v '^ *+' conftest.er1 >conftest.err
35479 rm -f conftest.er1
35480 cat conftest.err >&5
a848cd7e
SC
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); } &&
ddd14b14
RR
35483 { ac_try='test -z "$ac_c_werror_flag"
35484 || test ! -s conftest.err'
ac1cb8d3
VS
35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486 (eval $ac_try) 2>&5
35487 ac_status=$?
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } &&
35490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35496 ac_cv_func_pthread_attr_setschedparam=yes
35497else
35498 echo "$as_me: failed program was:" >&5
35499sed 's/^/| /' conftest.$ac_ext >&5
35500
35501ac_cv_func_pthread_attr_setschedparam=no
35502fi
ac1cb8d3
VS
35503rm -f conftest.err conftest.$ac_objext \
35504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35505fi
35506echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35507echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35508if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35509 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35510echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35511if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35512 echo $ECHO_N "(cached) $ECHO_C" >&6
35513else
35514 cat >conftest.$ac_ext <<_ACEOF
35515/* confdefs.h. */
35516_ACEOF
35517cat confdefs.h >>conftest.$ac_ext
35518cat >>conftest.$ac_ext <<_ACEOF
35519/* end confdefs.h. */
ac1cb8d3
VS
35520/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35522#define sched_get_priority_max innocuous_sched_get_priority_max
35523
a848cd7e
SC
35524/* System header to define __stub macros and hopefully few prototypes,
35525 which can conflict with char sched_get_priority_max (); below.
35526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35527 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35528
a848cd7e
SC
35529#ifdef __STDC__
35530# include <limits.h>
35531#else
35532# include <assert.h>
35533#endif
ac1cb8d3
VS
35534
35535#undef sched_get_priority_max
35536
a848cd7e
SC
35537/* Override any gcc2 internal prototype to avoid an error. */
35538#ifdef __cplusplus
35539extern "C"
35540{
35541#endif
35542/* We use char because int might match the return type of a gcc2
35543 builtin and then its argument prototype would still apply. */
35544char sched_get_priority_max ();
35545/* The GNU C library defines this for functions which it implements
35546 to always fail with ENOSYS. Some functions are actually named
35547 something starting with __ and the normal name is an alias. */
35548#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35549choke me
35550#else
35551char (*f) () = sched_get_priority_max;
35552#endif
35553#ifdef __cplusplus
35554}
35555#endif
35556
35557int
35558main ()
35559{
35560return f != sched_get_priority_max;
35561 ;
35562 return 0;
35563}
35564_ACEOF
35565rm -f conftest.$ac_objext conftest$ac_exeext
35566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35567 (eval $ac_link) 2>conftest.er1
a848cd7e 35568 ac_status=$?
ac1cb8d3
VS
35569 grep -v '^ *+' conftest.er1 >conftest.err
35570 rm -f conftest.er1
35571 cat conftest.err >&5
a848cd7e
SC
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); } &&
ddd14b14
RR
35574 { ac_try='test -z "$ac_c_werror_flag"
35575 || test ! -s conftest.err'
ac1cb8d3
VS
35576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35577 (eval $ac_try) 2>&5
35578 ac_status=$?
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); }; } &&
35581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35584 ac_status=$?
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35587 ac_cv_func_sched_get_priority_max=yes
35588else
35589 echo "$as_me: failed program was:" >&5
35590sed 's/^/| /' conftest.$ac_ext >&5
35591
35592ac_cv_func_sched_get_priority_max=no
35593fi
ac1cb8d3
VS
35594rm -f conftest.err conftest.$ac_objext \
35595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35596fi
35597echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35598echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35599if test $ac_cv_func_sched_get_priority_max = yes; then
35600 HAVE_PRIOR_FUNCS=1
35601else
35602 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35603echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35604if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lposix4 $LIBS"
35609cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616/* Override any gcc2 internal prototype to avoid an error. */
35617#ifdef __cplusplus
35618extern "C"
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char sched_get_priority_max ();
35623int
35624main ()
35625{
35626sched_get_priority_max ();
35627 ;
35628 return 0;
35629}
35630_ACEOF
35631rm -f conftest.$ac_objext conftest$ac_exeext
35632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35633 (eval $ac_link) 2>conftest.er1
a848cd7e 35634 ac_status=$?
ac1cb8d3
VS
35635 grep -v '^ *+' conftest.er1 >conftest.err
35636 rm -f conftest.er1
35637 cat conftest.err >&5
a848cd7e
SC
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); } &&
ddd14b14
RR
35640 { ac_try='test -z "$ac_c_werror_flag"
35641 || test ! -s conftest.err'
ac1cb8d3
VS
35642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35643 (eval $ac_try) 2>&5
35644 ac_status=$?
35645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35646 (exit $ac_status); }; } &&
35647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649 (eval $ac_try) 2>&5
35650 ac_status=$?
35651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652 (exit $ac_status); }; }; then
35653 ac_cv_lib_posix4_sched_get_priority_max=yes
35654else
35655 echo "$as_me: failed program was:" >&5
35656sed 's/^/| /' conftest.$ac_ext >&5
35657
35658ac_cv_lib_posix4_sched_get_priority_max=no
35659fi
ac1cb8d3
VS
35660rm -f conftest.err conftest.$ac_objext \
35661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35662LIBS=$ac_check_lib_save_LIBS
35663fi
35664echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35665echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35666if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35667
35668 HAVE_PRIOR_FUNCS=1
35669 POSIX4_LINK=" -lposix4"
35670
35671fi
35672
35673
35674fi
35675
35676
35677fi
35678
35679
35680fi
35681
35682
35683 if test "$HAVE_PRIOR_FUNCS" = 1; then
35684 cat >>confdefs.h <<\_ACEOF
35685#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35686_ACEOF
35687
35688 else
35689 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35690echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35691 fi
35692
35693 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35694echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35695if test "${ac_cv_func_pthread_cancel+set}" = set; then
35696 echo $ECHO_N "(cached) $ECHO_C" >&6
35697else
35698 cat >conftest.$ac_ext <<_ACEOF
35699/* confdefs.h. */
35700_ACEOF
35701cat confdefs.h >>conftest.$ac_ext
35702cat >>conftest.$ac_ext <<_ACEOF
35703/* end confdefs.h. */
ac1cb8d3
VS
35704/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35706#define pthread_cancel innocuous_pthread_cancel
35707
a848cd7e
SC
35708/* System header to define __stub macros and hopefully few prototypes,
35709 which can conflict with char pthread_cancel (); below.
35710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35711 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35712
a848cd7e
SC
35713#ifdef __STDC__
35714# include <limits.h>
35715#else
35716# include <assert.h>
35717#endif
ac1cb8d3
VS
35718
35719#undef pthread_cancel
35720
a848cd7e
SC
35721/* Override any gcc2 internal prototype to avoid an error. */
35722#ifdef __cplusplus
35723extern "C"
35724{
35725#endif
35726/* We use char because int might match the return type of a gcc2
35727 builtin and then its argument prototype would still apply. */
35728char pthread_cancel ();
35729/* The GNU C library defines this for functions which it implements
35730 to always fail with ENOSYS. Some functions are actually named
35731 something starting with __ and the normal name is an alias. */
35732#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35733choke me
35734#else
35735char (*f) () = pthread_cancel;
35736#endif
35737#ifdef __cplusplus
35738}
35739#endif
35740
35741int
35742main ()
35743{
35744return f != pthread_cancel;
35745 ;
35746 return 0;
35747}
35748_ACEOF
35749rm -f conftest.$ac_objext conftest$ac_exeext
35750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35751 (eval $ac_link) 2>conftest.er1
a848cd7e 35752 ac_status=$?
ac1cb8d3
VS
35753 grep -v '^ *+' conftest.er1 >conftest.err
35754 rm -f conftest.er1
35755 cat conftest.err >&5
a848cd7e
SC
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); } &&
ddd14b14
RR
35758 { ac_try='test -z "$ac_c_werror_flag"
35759 || test ! -s conftest.err'
ac1cb8d3
VS
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; } &&
35765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35767 (eval $ac_try) 2>&5
35768 ac_status=$?
35769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); }; }; then
35771 ac_cv_func_pthread_cancel=yes
35772else
35773 echo "$as_me: failed program was:" >&5
35774sed 's/^/| /' conftest.$ac_ext >&5
35775
35776ac_cv_func_pthread_cancel=no
35777fi
ac1cb8d3
VS
35778rm -f conftest.err conftest.$ac_objext \
35779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35780fi
35781echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35782echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35783if test $ac_cv_func_pthread_cancel = yes; then
35784 cat >>confdefs.h <<\_ACEOF
35785#define HAVE_PTHREAD_CANCEL 1
35786_ACEOF
35787
35788else
35789 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35790echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35791fi
35792
35793
abc736fd
MW
35794 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35795echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35796if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35797 echo $ECHO_N "(cached) $ECHO_C" >&6
35798else
35799 cat >conftest.$ac_ext <<_ACEOF
35800/* confdefs.h. */
35801_ACEOF
35802cat confdefs.h >>conftest.$ac_ext
35803cat >>conftest.$ac_ext <<_ACEOF
35804/* end confdefs.h. */
35805/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35807#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35808
35809/* System header to define __stub macros and hopefully few prototypes,
35810 which can conflict with char pthread_attr_setstacksize (); below.
35811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35812 <limits.h> exists even on freestanding compilers. */
35813
35814#ifdef __STDC__
35815# include <limits.h>
35816#else
35817# include <assert.h>
35818#endif
35819
35820#undef pthread_attr_setstacksize
35821
35822/* Override any gcc2 internal prototype to avoid an error. */
35823#ifdef __cplusplus
35824extern "C"
35825{
35826#endif
35827/* We use char because int might match the return type of a gcc2
35828 builtin and then its argument prototype would still apply. */
35829char pthread_attr_setstacksize ();
35830/* The GNU C library defines this for functions which it implements
35831 to always fail with ENOSYS. Some functions are actually named
35832 something starting with __ and the normal name is an alias. */
35833#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35834choke me
35835#else
35836char (*f) () = pthread_attr_setstacksize;
35837#endif
35838#ifdef __cplusplus
35839}
35840#endif
35841
35842int
35843main ()
35844{
35845return f != pthread_attr_setstacksize;
35846 ;
35847 return 0;
35848}
35849_ACEOF
35850rm -f conftest.$ac_objext conftest$ac_exeext
35851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35852 (eval $ac_link) 2>conftest.er1
35853 ac_status=$?
35854 grep -v '^ *+' conftest.er1 >conftest.err
35855 rm -f conftest.er1
35856 cat conftest.err >&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); } &&
ddd14b14
RR
35859 { ac_try='test -z "$ac_c_werror_flag"
35860 || test ! -s conftest.err'
abc736fd
MW
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; } &&
35866 { ac_try='test -s conftest$ac_exeext'
35867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35868 (eval $ac_try) 2>&5
35869 ac_status=$?
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); }; }; then
35872 ac_cv_func_pthread_attr_setstacksize=yes
35873else
35874 echo "$as_me: failed program was:" >&5
35875sed 's/^/| /' conftest.$ac_ext >&5
35876
35877ac_cv_func_pthread_attr_setstacksize=no
35878fi
35879rm -f conftest.err conftest.$ac_objext \
35880 conftest$ac_exeext conftest.$ac_ext
35881fi
35882echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35883echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35884if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35885 cat >>confdefs.h <<\_ACEOF
35886#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35887_ACEOF
35888
35889fi
35890
a848cd7e
SC
35891
35892
35893 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35894echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35895if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35896 echo $ECHO_N "(cached) $ECHO_C" >&6
35897else
35898
35899 cat >conftest.$ac_ext <<_ACEOF
35900/* confdefs.h. */
35901_ACEOF
35902cat confdefs.h >>conftest.$ac_ext
35903cat >>conftest.$ac_ext <<_ACEOF
35904/* end confdefs.h. */
35905#include <pthread.h>
35906int
35907main ()
35908{
35909
35910 pthread_mutexattr_t attr;
35911 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35912
35913 ;
35914 return 0;
35915}
35916_ACEOF
35917rm -f conftest.$ac_objext
35918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35919 (eval $ac_compile) 2>conftest.er1
a848cd7e 35920 ac_status=$?
ac1cb8d3
VS
35921 grep -v '^ *+' conftest.er1 >conftest.err
35922 rm -f conftest.er1
35923 cat conftest.err >&5
a848cd7e
SC
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } &&
ddd14b14
RR
35926 { ac_try='test -z "$ac_c_werror_flag"
35927 || test ! -s conftest.err'
ac1cb8d3
VS
35928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929 (eval $ac_try) 2>&5
35930 ac_status=$?
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); }; } &&
35933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935 (eval $ac_try) 2>&5
35936 ac_status=$?
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); }; }; then
35939
35940 wx_cv_type_pthread_mutexattr_t=yes
35941
35942else
35943 echo "$as_me: failed program was:" >&5
35944sed 's/^/| /' conftest.$ac_ext >&5
35945
35946
35947 wx_cv_type_pthread_mutexattr_t=no
35948
35949
35950fi
ac1cb8d3 35951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35952
35953fi
35954echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35955echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35956
35957 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35958 cat >>confdefs.h <<\_ACEOF
35959#define HAVE_PTHREAD_MUTEXATTR_T 1
35960_ACEOF
35961
35962 else
35963 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35964echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35965if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35966 echo $ECHO_N "(cached) $ECHO_C" >&6
35967else
35968
35969 cat >conftest.$ac_ext <<_ACEOF
35970/* confdefs.h. */
35971_ACEOF
35972cat confdefs.h >>conftest.$ac_ext
35973cat >>conftest.$ac_ext <<_ACEOF
35974/* end confdefs.h. */
35975#include <pthread.h>
35976int
35977main ()
35978{
35979
35980 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35981
35982 ;
35983 return 0;
35984}
35985_ACEOF
35986rm -f conftest.$ac_objext
35987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35988 (eval $ac_compile) 2>conftest.er1
a848cd7e 35989 ac_status=$?
ac1cb8d3
VS
35990 grep -v '^ *+' conftest.er1 >conftest.err
35991 rm -f conftest.er1
35992 cat conftest.err >&5
a848cd7e
SC
35993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994 (exit $ac_status); } &&
ddd14b14
RR
35995 { ac_try='test -z "$ac_c_werror_flag"
35996 || test ! -s conftest.err'
ac1cb8d3
VS
35997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35998 (eval $ac_try) 2>&5
35999 ac_status=$?
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); }; } &&
36002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36005 ac_status=$?
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; }; then
36008
36009 wx_cv_type_pthread_rec_mutex_init=yes
36010
36011else
36012 echo "$as_me: failed program was:" >&5
36013sed 's/^/| /' conftest.$ac_ext >&5
36014
36015
36016 wx_cv_type_pthread_rec_mutex_init=no
36017
36018
36019fi
ac1cb8d3 36020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36021
36022fi
36023echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36024echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36025 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36026 cat >>confdefs.h <<\_ACEOF
36027#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36028_ACEOF
36029
36030 else
36031 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36032echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36033 fi
36034 fi
36035 fi
36036
36037else
36038 if test "$wxUSE_THREADS" = "yes" ; then
36039 case "${host}" in
36040 *-*-mingw32* )
36041 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36042echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36043if test "${wx_cv_cflags_mthread+set}" = set; then
36044 echo $ECHO_N "(cached) $ECHO_C" >&6
36045else
36046
36047 CFLAGS_OLD="$CFLAGS"
36048 CFLAGS="$CFLAGS -mthreads"
36049 cat >conftest.$ac_ext <<_ACEOF
36050/* confdefs.h. */
36051_ACEOF
36052cat confdefs.h >>conftest.$ac_ext
36053cat >>conftest.$ac_ext <<_ACEOF
36054/* end confdefs.h. */
36055
36056int
36057main ()
36058{
36059
36060 ;
36061 return 0;
36062}
36063_ACEOF
36064rm -f conftest.$ac_objext
36065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36066 (eval $ac_compile) 2>conftest.er1
a848cd7e 36067 ac_status=$?
ac1cb8d3
VS
36068 grep -v '^ *+' conftest.er1 >conftest.err
36069 rm -f conftest.er1
36070 cat conftest.err >&5
a848cd7e
SC
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); } &&
ddd14b14
RR
36073 { ac_try='test -z "$ac_c_werror_flag"
36074 || test ! -s conftest.err'
ac1cb8d3
VS
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; } &&
36080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36082 (eval $ac_try) 2>&5
36083 ac_status=$?
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); }; }; then
36086 wx_cv_cflags_mthread=yes
36087else
36088 echo "$as_me: failed program was:" >&5
36089sed 's/^/| /' conftest.$ac_ext >&5
36090
36091wx_cv_cflags_mthread=no
36092
36093fi
ac1cb8d3 36094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36095
36096
36097fi
36098echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36099echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36100
36101 if test "$wx_cv_cflags_mthread" = "yes"; then
36102 CXXFLAGS="$CXXFLAGS -mthreads"
36103 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36104 LDFLAGS="$LDFLAGS -mthreads"
36105 else
36106 CFLAGS="$CFLAGS_OLD"
36107 fi
36108 ;;
36109 *-pc-os2*emx )
36110 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36111 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36112 LDFLAGS="$LDFLAGS -Zmt"
36113 ;;
36114 esac
36115 fi
36116fi
36117
36118if test "$wxUSE_THREADS" = "yes"; then
36119 cat >>confdefs.h <<\_ACEOF
36120#define wxUSE_THREADS 1
36121_ACEOF
36122
36123
36124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36125else
36126 if test "$ac_cv_func_strtok_r" = "yes"; then
36127 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36128echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36129 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36130 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36131 echo "$as_me:$LINENO: result: yes" >&5
36132echo "${ECHO_T}yes" >&6
36133 else
36134 echo "$as_me:$LINENO: result: no" >&5
36135echo "${ECHO_T}no" >&6
36136 fi
36137 fi
36138fi
36139
36140if test "$WXGTK20" = 1 ; then
36141 cat >>confdefs.h <<_ACEOF
36142#define __WXGTK20__ $WXGTK20
36143_ACEOF
36144
36145 WXGTK12=1
36146fi
36147
36148if test "$WXGTK12" = 1 ; then
36149 cat >>confdefs.h <<_ACEOF
36150#define __WXGTK12__ $WXGTK12
36151_ACEOF
36152
36153fi
36154
36155if test "$WXGTK127" = 1 ; then
36156 cat >>confdefs.h <<_ACEOF
36157#define __WXGTK127__ $WXGTK127
36158_ACEOF
36159
36160fi
36161
36162if test "$WXGPE" = 1 ; then
36163 cat >>confdefs.h <<_ACEOF
36164#define __WXGPE__ $WXGPE
36165_ACEOF
36166
36167fi
36168
36169WXDEBUG=
36170
36171if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36172 WXDEBUG="-g"
36173 wxUSE_OPTIMISE=no
36174fi
36175
36176if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36177 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36178 if test "$GCC" = yes; then
36179 WXDEBUG="-ggdb"
36180 fi
a848cd7e
SC
36181fi
36182
36183if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36184 cat >>confdefs.h <<\_ACEOF
36185#define WXDEBUG 1
36186_ACEOF
36187
36188 WXDEBUG_DEFINE="-D__WXDEBUG__"
36189else
36190 if test "$wxUSE_GTK" = 1 ; then
36191 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36192 fi
36193fi
36194
36195if test "$wxUSE_MEM_TRACING" = "yes" ; then
36196 cat >>confdefs.h <<\_ACEOF
36197#define wxUSE_MEMORY_TRACING 1
36198_ACEOF
36199
36200 cat >>confdefs.h <<\_ACEOF
36201#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36202_ACEOF
36203
36204 cat >>confdefs.h <<\_ACEOF
36205#define wxUSE_DEBUG_NEW_ALWAYS 1
36206_ACEOF
36207
36208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36209fi
36210
36211if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36212 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36213fi
36214
36215PROFILE=
36216if test "$wxUSE_PROFILE" = "yes" ; then
36217 PROFILE=" -pg"
36218fi
36219
36220CODE_GEN_FLAGS=
36221CODE_GEN_FLAGS_CXX=
36222if test "$GCC" = "yes" ; then
36223 if test "$wxUSE_NO_RTTI" = "yes" ; then
36224 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36225 fi
36226 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36227 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36228 fi
36229 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36230 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36231 fi
36232
36233 case "${host}" in
36234 powerpc*-*-aix* )
36235 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36236 ;;
36237 *-hppa* )
36238 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36239 ;;
36240 esac
36241fi
36242
36243OPTIMISE=
36244if test "$wxUSE_OPTIMISE" = "no" ; then
36245 if test "$GCC" = yes ; then
36246 OPTIMISE="-O0"
36247 fi
36248else
36249 if test "$GCC" = yes ; then
36250 OPTIMISE="-O2"
36251
36252 case "${host}" in
36253 i586-*-*|i686-*-* )
36254 OPTIMISE="${OPTIMISE} "
36255 ;;
36256 esac
36257 else
36258 OPTIMISE="-O"
36259 fi
36260fi
36261
36262
36263if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36264 cat >>confdefs.h <<\_ACEOF
36265#define WXWIN_COMPATIBILITY_2_2 1
36266_ACEOF
36267
36268
36269 WXWIN_COMPATIBILITY_2_4="yes"
36270fi
36271
36272if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36273 cat >>confdefs.h <<\_ACEOF
36274#define WXWIN_COMPATIBILITY_2_4 1
36275_ACEOF
36276
36277fi
36278
36279
36280if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36281 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36282#define wxUSE_GUI 1
36283_ACEOF
36284
36285
370fd4c2 36286 fi
a848cd7e
SC
36287
36288
36289if test "$wxUSE_UNIX" = "yes"; then
36290 cat >>confdefs.h <<\_ACEOF
36291#define wxUSE_UNIX 1
36292_ACEOF
36293
36294fi
36295
36296
36297if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36298
36299 HAVE_DL_FUNCS=0
36300 HAVE_SHL_FUNCS=0
36301 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36302 if test "$USE_DARWIN" = 1; then
36303 HAVE_DL_FUNCS=1
47a7e797
MW
36304 elif test "$USE_DOS" = 1; then
36305 HAVE_DL_FUNCS=0
a848cd7e
SC
36306 else
36307
36308for ac_func in dlopen
36309do
36310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36311echo "$as_me:$LINENO: checking for $ac_func" >&5
36312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36313if eval "test \"\${$as_ac_var+set}\" = set"; then
36314 echo $ECHO_N "(cached) $ECHO_C" >&6
36315else
36316 cat >conftest.$ac_ext <<_ACEOF
36317/* confdefs.h. */
36318_ACEOF
36319cat confdefs.h >>conftest.$ac_ext
36320cat >>conftest.$ac_ext <<_ACEOF
36321/* end confdefs.h. */
ac1cb8d3
VS
36322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36324#define $ac_func innocuous_$ac_func
36325
a848cd7e
SC
36326/* System header to define __stub macros and hopefully few prototypes,
36327 which can conflict with char $ac_func (); below.
36328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36329 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36330
a848cd7e
SC
36331#ifdef __STDC__
36332# include <limits.h>
36333#else
36334# include <assert.h>
36335#endif
ac1cb8d3
VS
36336
36337#undef $ac_func
36338
a848cd7e
SC
36339/* Override any gcc2 internal prototype to avoid an error. */
36340#ifdef __cplusplus
36341extern "C"
36342{
36343#endif
36344/* We use char because int might match the return type of a gcc2
36345 builtin and then its argument prototype would still apply. */
36346char $ac_func ();
36347/* The GNU C library defines this for functions which it implements
36348 to always fail with ENOSYS. Some functions are actually named
36349 something starting with __ and the normal name is an alias. */
36350#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36351choke me
36352#else
36353char (*f) () = $ac_func;
36354#endif
36355#ifdef __cplusplus
36356}
36357#endif
36358
36359int
36360main ()
36361{
36362return f != $ac_func;
36363 ;
36364 return 0;
36365}
36366_ACEOF
36367rm -f conftest.$ac_objext conftest$ac_exeext
36368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36369 (eval $ac_link) 2>conftest.er1
a848cd7e 36370 ac_status=$?
ac1cb8d3
VS
36371 grep -v '^ *+' conftest.er1 >conftest.err
36372 rm -f conftest.er1
36373 cat conftest.err >&5
a848cd7e
SC
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); } &&
ddd14b14
RR
36376 { ac_try='test -z "$ac_c_werror_flag"
36377 || test ! -s conftest.err'
ac1cb8d3
VS
36378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379 (eval $ac_try) 2>&5
36380 ac_status=$?
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); }; } &&
36383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; }; then
36389 eval "$as_ac_var=yes"
36390else
36391 echo "$as_me: failed program was:" >&5
36392sed 's/^/| /' conftest.$ac_ext >&5
36393
36394eval "$as_ac_var=no"
36395fi
ac1cb8d3
VS
36396rm -f conftest.err conftest.$ac_objext \
36397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36398fi
36399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36401if test `eval echo '${'$as_ac_var'}'` = yes; then
36402 cat >>confdefs.h <<_ACEOF
36403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36404_ACEOF
36405
36406 cat >>confdefs.h <<\_ACEOF
36407#define HAVE_DLOPEN 1
36408_ACEOF
36409
36410 HAVE_DL_FUNCS=1
36411
36412else
36413
36414 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36415echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36416if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36417 echo $ECHO_N "(cached) $ECHO_C" >&6
36418else
36419 ac_check_lib_save_LIBS=$LIBS
36420LIBS="-ldl $LIBS"
36421cat >conftest.$ac_ext <<_ACEOF
36422/* confdefs.h. */
36423_ACEOF
36424cat confdefs.h >>conftest.$ac_ext
36425cat >>conftest.$ac_ext <<_ACEOF
36426/* end confdefs.h. */
36427
36428/* Override any gcc2 internal prototype to avoid an error. */
36429#ifdef __cplusplus
36430extern "C"
36431#endif
36432/* We use char because int might match the return type of a gcc2
36433 builtin and then its argument prototype would still apply. */
36434char dlopen ();
36435int
36436main ()
36437{
36438dlopen ();
36439 ;
36440 return 0;
36441}
36442_ACEOF
36443rm -f conftest.$ac_objext conftest$ac_exeext
36444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36445 (eval $ac_link) 2>conftest.er1
a848cd7e 36446 ac_status=$?
ac1cb8d3
VS
36447 grep -v '^ *+' conftest.er1 >conftest.err
36448 rm -f conftest.er1
36449 cat conftest.err >&5
a848cd7e
SC
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); } &&
ddd14b14
RR
36452 { ac_try='test -z "$ac_c_werror_flag"
36453 || test ! -s conftest.err'
ac1cb8d3
VS
36454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455 (eval $ac_try) 2>&5
36456 ac_status=$?
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; } &&
36459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36461 (eval $ac_try) 2>&5
36462 ac_status=$?
36463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464 (exit $ac_status); }; }; then
36465 ac_cv_lib_dl_dlopen=yes
36466else
36467 echo "$as_me: failed program was:" >&5
36468sed 's/^/| /' conftest.$ac_ext >&5
36469
36470ac_cv_lib_dl_dlopen=no
36471fi
ac1cb8d3
VS
36472rm -f conftest.err conftest.$ac_objext \
36473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36474LIBS=$ac_check_lib_save_LIBS
36475fi
36476echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36477echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36478if test $ac_cv_lib_dl_dlopen = yes; then
36479
36480 cat >>confdefs.h <<\_ACEOF
36481#define HAVE_DLOPEN 1
36482_ACEOF
36483
36484 HAVE_DL_FUNCS=1
36485 DL_LINK=" -ldl$DL_LINK"
36486
36487else
36488
36489
36490for ac_func in shl_load
36491do
36492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36493echo "$as_me:$LINENO: checking for $ac_func" >&5
36494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36495if eval "test \"\${$as_ac_var+set}\" = set"; then
36496 echo $ECHO_N "(cached) $ECHO_C" >&6
36497else
36498 cat >conftest.$ac_ext <<_ACEOF
36499/* confdefs.h. */
36500_ACEOF
36501cat confdefs.h >>conftest.$ac_ext
36502cat >>conftest.$ac_ext <<_ACEOF
36503/* end confdefs.h. */
ac1cb8d3
VS
36504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36506#define $ac_func innocuous_$ac_func
36507
a848cd7e
SC
36508/* System header to define __stub macros and hopefully few prototypes,
36509 which can conflict with char $ac_func (); below.
36510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36512
a848cd7e
SC
36513#ifdef __STDC__
36514# include <limits.h>
36515#else
36516# include <assert.h>
36517#endif
ac1cb8d3
VS
36518
36519#undef $ac_func
36520
a848cd7e
SC
36521/* Override any gcc2 internal prototype to avoid an error. */
36522#ifdef __cplusplus
36523extern "C"
36524{
36525#endif
36526/* We use char because int might match the return type of a gcc2
36527 builtin and then its argument prototype would still apply. */
36528char $ac_func ();
36529/* The GNU C library defines this for functions which it implements
36530 to always fail with ENOSYS. Some functions are actually named
36531 something starting with __ and the normal name is an alias. */
36532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36533choke me
36534#else
36535char (*f) () = $ac_func;
36536#endif
36537#ifdef __cplusplus
36538}
36539#endif
36540
36541int
36542main ()
36543{
36544return f != $ac_func;
36545 ;
36546 return 0;
36547}
36548_ACEOF
36549rm -f conftest.$ac_objext conftest$ac_exeext
36550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36551 (eval $ac_link) 2>conftest.er1
a848cd7e 36552 ac_status=$?
ac1cb8d3
VS
36553 grep -v '^ *+' conftest.er1 >conftest.err
36554 rm -f conftest.er1
36555 cat conftest.err >&5
a848cd7e
SC
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); } &&
ddd14b14
RR
36558 { ac_try='test -z "$ac_c_werror_flag"
36559 || test ! -s conftest.err'
ac1cb8d3
VS
36560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36561 (eval $ac_try) 2>&5
36562 ac_status=$?
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); }; } &&
36565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567 (eval $ac_try) 2>&5
36568 ac_status=$?
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); }; }; then
36571 eval "$as_ac_var=yes"
36572else
36573 echo "$as_me: failed program was:" >&5
36574sed 's/^/| /' conftest.$ac_ext >&5
36575
36576eval "$as_ac_var=no"
36577fi
ac1cb8d3
VS
36578rm -f conftest.err conftest.$ac_objext \
36579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36580fi
36581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36583if test `eval echo '${'$as_ac_var'}'` = yes; then
36584 cat >>confdefs.h <<_ACEOF
36585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36586_ACEOF
36587
36588 cat >>confdefs.h <<\_ACEOF
36589#define HAVE_SHL_LOAD 1
36590_ACEOF
36591
36592 HAVE_SHL_FUNCS=1
36593
36594else
36595
36596 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36597echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36598if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36599 echo $ECHO_N "(cached) $ECHO_C" >&6
36600else
36601 ac_check_lib_save_LIBS=$LIBS
36602LIBS="-lshl_load $LIBS"
36603cat >conftest.$ac_ext <<_ACEOF
36604/* confdefs.h. */
36605_ACEOF
36606cat confdefs.h >>conftest.$ac_ext
36607cat >>conftest.$ac_ext <<_ACEOF
36608/* end confdefs.h. */
36609
36610/* Override any gcc2 internal prototype to avoid an error. */
36611#ifdef __cplusplus
36612extern "C"
36613#endif
36614/* We use char because int might match the return type of a gcc2
36615 builtin and then its argument prototype would still apply. */
36616char dld ();
36617int
36618main ()
36619{
36620dld ();
36621 ;
36622 return 0;
36623}
36624_ACEOF
36625rm -f conftest.$ac_objext conftest$ac_exeext
36626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36627 (eval $ac_link) 2>conftest.er1
a848cd7e 36628 ac_status=$?
ac1cb8d3
VS
36629 grep -v '^ *+' conftest.er1 >conftest.err
36630 rm -f conftest.er1
36631 cat conftest.err >&5
a848cd7e
SC
36632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633 (exit $ac_status); } &&
ddd14b14
RR
36634 { ac_try='test -z "$ac_c_werror_flag"
36635 || test ! -s conftest.err'
ac1cb8d3
VS
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; } &&
36641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36644 ac_status=$?
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; }; then
36647 ac_cv_lib_shl_load_dld=yes
36648else
36649 echo "$as_me: failed program was:" >&5
36650sed 's/^/| /' conftest.$ac_ext >&5
36651
36652ac_cv_lib_shl_load_dld=no
36653fi
ac1cb8d3
VS
36654rm -f conftest.err conftest.$ac_objext \
36655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36656LIBS=$ac_check_lib_save_LIBS
36657fi
36658echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36659echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36660if test $ac_cv_lib_shl_load_dld = yes; then
36661
36662 HAVE_SHL_FUNCS=1
36663 DL_LINK=" -ldld$DL_LINK"
36664
36665fi
36666
36667
36668fi
36669done
36670
36671
36672fi
36673
36674
36675fi
36676done
36677
36678
36679 if test "$HAVE_DL_FUNCS" = 1; then
36680
36681for ac_func in dlerror
36682do
36683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36684echo "$as_me:$LINENO: checking for $ac_func" >&5
36685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36686if eval "test \"\${$as_ac_var+set}\" = set"; then
36687 echo $ECHO_N "(cached) $ECHO_C" >&6
36688else
36689 cat >conftest.$ac_ext <<_ACEOF
36690/* confdefs.h. */
36691_ACEOF
36692cat confdefs.h >>conftest.$ac_ext
36693cat >>conftest.$ac_ext <<_ACEOF
36694/* end confdefs.h. */
ac1cb8d3
VS
36695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36697#define $ac_func innocuous_$ac_func
36698
a848cd7e
SC
36699/* System header to define __stub macros and hopefully few prototypes,
36700 which can conflict with char $ac_func (); below.
36701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36703
a848cd7e
SC
36704#ifdef __STDC__
36705# include <limits.h>
36706#else
36707# include <assert.h>
36708#endif
ac1cb8d3
VS
36709
36710#undef $ac_func
36711
a848cd7e
SC
36712/* Override any gcc2 internal prototype to avoid an error. */
36713#ifdef __cplusplus
36714extern "C"
36715{
36716#endif
36717/* We use char because int might match the return type of a gcc2
36718 builtin and then its argument prototype would still apply. */
36719char $ac_func ();
36720/* The GNU C library defines this for functions which it implements
36721 to always fail with ENOSYS. Some functions are actually named
36722 something starting with __ and the normal name is an alias. */
36723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36724choke me
36725#else
36726char (*f) () = $ac_func;
36727#endif
36728#ifdef __cplusplus
36729}
36730#endif
36731
36732int
36733main ()
36734{
36735return f != $ac_func;
36736 ;
36737 return 0;
36738}
36739_ACEOF
36740rm -f conftest.$ac_objext conftest$ac_exeext
36741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36742 (eval $ac_link) 2>conftest.er1
a848cd7e 36743 ac_status=$?
ac1cb8d3
VS
36744 grep -v '^ *+' conftest.er1 >conftest.err
36745 rm -f conftest.er1
36746 cat conftest.err >&5
a848cd7e
SC
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); } &&
ddd14b14
RR
36749 { ac_try='test -z "$ac_c_werror_flag"
36750 || 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_exeext'
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 eval "$as_ac_var=yes"
36763else
36764 echo "$as_me: failed program was:" >&5
36765sed 's/^/| /' conftest.$ac_ext >&5
36766
36767eval "$as_ac_var=no"
36768fi
ac1cb8d3
VS
36769rm -f conftest.err conftest.$ac_objext \
36770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36771fi
36772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36774if test `eval echo '${'$as_ac_var'}'` = yes; then
36775 cat >>confdefs.h <<_ACEOF
36776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36777_ACEOF
36778 cat >>confdefs.h <<\_ACEOF
36779#define HAVE_DLERROR 1
36780_ACEOF
36781
36782else
36783
36784 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36785echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36786if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36787 echo $ECHO_N "(cached) $ECHO_C" >&6
36788else
36789 ac_check_lib_save_LIBS=$LIBS
36790LIBS="-ldl $LIBS"
36791cat >conftest.$ac_ext <<_ACEOF
36792/* confdefs.h. */
36793_ACEOF
36794cat confdefs.h >>conftest.$ac_ext
36795cat >>conftest.$ac_ext <<_ACEOF
36796/* end confdefs.h. */
36797
36798/* Override any gcc2 internal prototype to avoid an error. */
36799#ifdef __cplusplus
36800extern "C"
36801#endif
36802/* We use char because int might match the return type of a gcc2
36803 builtin and then its argument prototype would still apply. */
36804char dlerror ();
36805int
36806main ()
36807{
36808dlerror ();
36809 ;
36810 return 0;
36811}
36812_ACEOF
36813rm -f conftest.$ac_objext conftest$ac_exeext
36814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36815 (eval $ac_link) 2>conftest.er1
a848cd7e 36816 ac_status=$?
ac1cb8d3
VS
36817 grep -v '^ *+' conftest.er1 >conftest.err
36818 rm -f conftest.er1
36819 cat conftest.err >&5
a848cd7e
SC
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); } &&
ddd14b14
RR
36822 { ac_try='test -z "$ac_c_werror_flag"
36823 || test ! -s conftest.err'
ac1cb8d3
VS
36824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36825 (eval $ac_try) 2>&5
36826 ac_status=$?
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); }; } &&
36829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831 (eval $ac_try) 2>&5
36832 ac_status=$?
36833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834 (exit $ac_status); }; }; then
36835 ac_cv_lib_dl_dlerror=yes
36836else
36837 echo "$as_me: failed program was:" >&5
36838sed 's/^/| /' conftest.$ac_ext >&5
36839
36840ac_cv_lib_dl_dlerror=no
36841fi
ac1cb8d3
VS
36842rm -f conftest.err conftest.$ac_objext \
36843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36844LIBS=$ac_check_lib_save_LIBS
36845fi
36846echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36847echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36848if test $ac_cv_lib_dl_dlerror = yes; then
36849 cat >>confdefs.h <<\_ACEOF
36850#define HAVE_DLERROR 1
36851_ACEOF
36852
36853fi
36854
36855
36856
36857fi
36858done
36859
36860 fi
36861 fi
36862
36863 if test "$HAVE_DL_FUNCS" = 0; then
36864 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36865 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36866 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36867echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36868 wxUSE_DYNAMIC_LOADER=no
36869 wxUSE_DYNLIB_CLASS=no
36870 else
36871 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36872echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36873 fi
36874 fi
36875 fi
36876 fi
36877fi
36878
36879if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36880 cat >>confdefs.h <<\_ACEOF
36881#define wxUSE_DYNAMIC_LOADER 1
36882_ACEOF
36883
36884fi
36885if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36886 cat >>confdefs.h <<\_ACEOF
36887#define wxUSE_DYNLIB_CLASS 1
36888_ACEOF
36889
36890fi
36891
36892
36893
36894if test "$wxUSE_PLUGINS" = "yes" ; then
36895 if test "$wxUSE_SHARED" = "no" ; then
36896 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36897echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36898 wxUSE_PLUGINS=no
36899 fi
36900 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36901 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36902echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36903 wxUSE_PLUGINS=no
36904 fi
36905 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36906 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36907echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36908 wxUSE_PLUGINS=no
36909 fi
36910 if test "$wxUSE_PLUGINS" = "yes" ; then
36911 cat >>confdefs.h <<\_ACEOF
36912#define wxUSE_PLUGINS 1
36913_ACEOF
36914
36915 fi
36916fi
36917
36918
36919if test "$wxUSE_STL" = "yes"; then
36920 cat >>confdefs.h <<\_ACEOF
36921#define wxUSE_STL 1
36922_ACEOF
36923
36924fi
36925
36926if test "$wxUSE_APPLE_IEEE" = "yes"; then
36927 cat >>confdefs.h <<\_ACEOF
36928#define wxUSE_APPLE_IEEE 1
36929_ACEOF
36930
36931fi
36932
36933if test "$wxUSE_TIMER" = "yes"; then
36934 cat >>confdefs.h <<\_ACEOF
36935#define wxUSE_TIMER 1
36936_ACEOF
36937
36938fi
36939
9c112555 36940if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36941
36942for ac_header in sys/soundcard.h
36943do
36944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36945if eval "test \"\${$as_ac_Header+set}\" = set"; then
36946 echo "$as_me:$LINENO: checking for $ac_header" >&5
36947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36948if eval "test \"\${$as_ac_Header+set}\" = set"; then
36949 echo $ECHO_N "(cached) $ECHO_C" >&6
36950fi
36951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36953else
36954 # Is the header compilable?
36955echo "$as_me:$LINENO: checking $ac_header usability" >&5
36956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36957cat >conftest.$ac_ext <<_ACEOF
36958/* confdefs.h. */
36959_ACEOF
36960cat confdefs.h >>conftest.$ac_ext
36961cat >>conftest.$ac_ext <<_ACEOF
36962/* end confdefs.h. */
36963$ac_includes_default
36964#include <$ac_header>
36965_ACEOF
36966rm -f conftest.$ac_objext
36967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36968 (eval $ac_compile) 2>conftest.er1
a848cd7e 36969 ac_status=$?
ac1cb8d3
VS
36970 grep -v '^ *+' conftest.er1 >conftest.err
36971 rm -f conftest.er1
36972 cat conftest.err >&5
a848cd7e
SC
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); } &&
ddd14b14
RR
36975 { ac_try='test -z "$ac_c_werror_flag"
36976 || test ! -s conftest.err'
ac1cb8d3
VS
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36979 ac_status=$?
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; } &&
36982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36985 ac_status=$?
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; }; then
36988 ac_header_compiler=yes
36989else
36990 echo "$as_me: failed program was:" >&5
36991sed 's/^/| /' conftest.$ac_ext >&5
36992
36993ac_header_compiler=no
36994fi
ac1cb8d3 36995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36997echo "${ECHO_T}$ac_header_compiler" >&6
36998
36999# Is the header present?
37000echo "$as_me:$LINENO: checking $ac_header presence" >&5
37001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37002cat >conftest.$ac_ext <<_ACEOF
37003/* confdefs.h. */
37004_ACEOF
37005cat confdefs.h >>conftest.$ac_ext
37006cat >>conftest.$ac_ext <<_ACEOF
37007/* end confdefs.h. */
37008#include <$ac_header>
37009_ACEOF
37010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37012 ac_status=$?
37013 grep -v '^ *+' conftest.er1 >conftest.err
37014 rm -f conftest.er1
37015 cat conftest.err >&5
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); } >/dev/null; then
37018 if test -s conftest.err; then
37019 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37021 else
37022 ac_cpp_err=
37023 fi
37024else
37025 ac_cpp_err=yes
37026fi
37027if test -z "$ac_cpp_err"; then
37028 ac_header_preproc=yes
37029else
37030 echo "$as_me: failed program was:" >&5
37031sed 's/^/| /' conftest.$ac_ext >&5
37032
37033 ac_header_preproc=no
37034fi
37035rm -f conftest.err conftest.$ac_ext
37036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37037echo "${ECHO_T}$ac_header_preproc" >&6
37038
37039# So? What about this header?
ac1cb8d3
VS
37040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37041 yes:no: )
a848cd7e
SC
37042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37046 ac_header_preproc=yes
a848cd7e 37047 ;;
ac1cb8d3 37048 no:yes:* )
a848cd7e
SC
37049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37061 (
37062 cat <<\_ASBOX
ac1cb8d3
VS
37063## ----------------------------------------- ##
37064## Report this to wx-dev@lists.wxwidgets.org ##
37065## ----------------------------------------- ##
a848cd7e
SC
37066_ASBOX
37067 ) |
37068 sed "s/^/$as_me: WARNING: /" >&2
37069 ;;
37070esac
37071echo "$as_me:$LINENO: checking for $ac_header" >&5
37072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37073if eval "test \"\${$as_ac_Header+set}\" = set"; then
37074 echo $ECHO_N "(cached) $ECHO_C" >&6
37075else
ac1cb8d3 37076 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37077fi
37078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37080
37081fi
37082if test `eval echo '${'$as_ac_Header'}'` = yes; then
37083 cat >>confdefs.h <<_ACEOF
37084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37085_ACEOF
37086
9c112555
MW
37087else
37088 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
37089fi
37090
37091done
37092
9c112555
MW
37093fi
37094WITH_PLUGIN_SDL=0
37095if test "$wxUSE_SOUND" = "yes"; then
37096 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37097 if test "$wxUSE_LIBSDL" != "no"; then
37098
37099# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37100if test "${with_sdl_prefix+set}" = set; then
37101 withval="$with_sdl_prefix"
37102 sdl_prefix="$withval"
37103else
37104 sdl_prefix=""
37105fi;
37106
37107# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37108if test "${with_sdl_exec_prefix+set}" = set; then
37109 withval="$with_sdl_exec_prefix"
37110 sdl_exec_prefix="$withval"
37111else
37112 sdl_exec_prefix=""
37113fi;
37114# Check whether --enable-sdltest or --disable-sdltest was given.
37115if test "${enable_sdltest+set}" = set; then
37116 enableval="$enable_sdltest"
37117
37118else
37119 enable_sdltest=yes
37120fi;
37121
37122 if test x$sdl_exec_prefix != x ; then
37123 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37124 if test x${SDL_CONFIG+set} != xset ; then
37125 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37126 fi
37127 fi
37128 if test x$sdl_prefix != x ; then
37129 sdl_args="$sdl_args --prefix=$sdl_prefix"
37130 if test x${SDL_CONFIG+set} != xset ; then
37131 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37132 fi
37133 fi
37134
37135
37136 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37137 # Extract the first word of "sdl-config", so it can be a program name with args.
37138set dummy sdl-config; ac_word=$2
37139echo "$as_me:$LINENO: checking for $ac_word" >&5
37140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37141if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37142 echo $ECHO_N "(cached) $ECHO_C" >&6
37143else
37144 case $SDL_CONFIG in
37145 [\\/]* | ?:[\\/]*)
37146 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37147 ;;
37148 *)
37149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37150for as_dir in $PATH
37151do
37152 IFS=$as_save_IFS
37153 test -z "$as_dir" && as_dir=.
37154 for ac_exec_ext in '' $ac_executable_extensions; do
37155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37156 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37158 break 2
37159 fi
37160done
37161done
37162
37163 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37164 ;;
37165esac
37166fi
37167SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37168
37169if test -n "$SDL_CONFIG"; then
37170 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37171echo "${ECHO_T}$SDL_CONFIG" >&6
37172else
37173 echo "$as_me:$LINENO: result: no" >&5
37174echo "${ECHO_T}no" >&6
37175fi
37176
37177 min_sdl_version=1.2.0
37178 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37179echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37180 no_sdl=""
37181 if test "$SDL_CONFIG" = "no" ; then
37182 no_sdl=yes
37183 else
37184 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37185 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37186
37187 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37189 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37191 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37192 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37193 if test "x$enable_sdltest" = "xyes" ; then
37194 ac_save_CFLAGS="$CFLAGS"
94acd38e 37195 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37196 ac_save_LIBS="$LIBS"
37197 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37198 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37199 LIBS="$LIBS $SDL_LIBS"
37200 rm -f conf.sdltest
37201 if test "$cross_compiling" = yes; then
37202 echo $ac_n "cross compiling; assumed OK... $ac_c"
37203else
37204 cat >conftest.$ac_ext <<_ACEOF
37205/* confdefs.h. */
37206_ACEOF
37207cat confdefs.h >>conftest.$ac_ext
37208cat >>conftest.$ac_ext <<_ACEOF
37209/* end confdefs.h. */
37210
37211#include <stdio.h>
37212#include <stdlib.h>
37213#include <string.h>
37214#include "SDL.h"
37215
37216char*
37217my_strdup (char *str)
37218{
37219 char *new_str;
37220
37221 if (str)
37222 {
37223 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37224 strcpy (new_str, str);
37225 }
37226 else
37227 new_str = NULL;
37228
37229 return new_str;
37230}
37231
37232int main (int argc, char *argv[])
37233{
37234 int major, minor, micro;
37235 char *tmp_version;
37236
37237 /* This hangs on some systems (?)
37238 system ("touch conf.sdltest");
37239 */
37240 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37241
37242 /* HP/UX 9 (%@#!) writes to sscanf strings */
37243 tmp_version = my_strdup("$min_sdl_version");
37244 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37245 printf("%s, bad version string\n", "$min_sdl_version");
37246 exit(1);
37247 }
37248
37249 if (($sdl_major_version > major) ||
37250 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37251 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37252 {
37253 return 0;
37254 }
37255 else
37256 {
37257 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37258 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37259 printf("*** best to upgrade to the required version.\n");
37260 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37261 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37262 printf("*** config.cache before re-running configure\n");
37263 return 1;
37264 }
37265}
37266
37267
37268_ACEOF
37269rm -f conftest$ac_exeext
37270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37271 (eval $ac_link) 2>&5
37272 ac_status=$?
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37276 (eval $ac_try) 2>&5
37277 ac_status=$?
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); }; }; then
37280 :
37281else
37282 echo "$as_me: program exited with status $ac_status" >&5
37283echo "$as_me: failed program was:" >&5
37284sed 's/^/| /' conftest.$ac_ext >&5
37285
37286( exit $ac_status )
37287no_sdl=yes
37288fi
ac1cb8d3 37289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37290fi
37291 CFLAGS="$ac_save_CFLAGS"
94acd38e 37292 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37293 LIBS="$ac_save_LIBS"
37294 fi
37295 fi
37296 if test "x$no_sdl" = x ; then
37297 echo "$as_me:$LINENO: result: yes" >&5
37298echo "${ECHO_T}yes" >&6
37299
37300 EXTRALIBS_SDL="$SDL_LIBS"
37301 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37302 cat >>confdefs.h <<\_ACEOF
37303#define wxUSE_LIBSDL 1
37304_ACEOF
37305
37306
37307 else
37308 echo "$as_me:$LINENO: result: no" >&5
37309echo "${ECHO_T}no" >&6
37310 if test "$SDL_CONFIG" = "no" ; then
37311 echo "*** The sdl-config script installed by SDL could not be found"
37312 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37313 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37314 echo "*** full path to sdl-config."
37315 else
37316 if test -f conf.sdltest ; then
37317 :
37318 else
37319 echo "*** Could not run SDL test program, checking why..."
37320 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37321 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37322 LIBS="$LIBS $SDL_LIBS"
37323 cat >conftest.$ac_ext <<_ACEOF
37324/* confdefs.h. */
37325_ACEOF
37326cat confdefs.h >>conftest.$ac_ext
37327cat >>conftest.$ac_ext <<_ACEOF
37328/* end confdefs.h. */
37329
37330#include <stdio.h>
37331#include "SDL.h"
37332
37333int main(int argc, char *argv[])
37334{ return 0; }
37335#undef main
37336#define main K_and_R_C_main
37337
37338int
37339main ()
37340{
37341 return 0;
37342 ;
37343 return 0;
37344}
37345_ACEOF
37346rm -f conftest.$ac_objext conftest$ac_exeext
37347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37348 (eval $ac_link) 2>conftest.er1
a848cd7e 37349 ac_status=$?
ac1cb8d3
VS
37350 grep -v '^ *+' conftest.er1 >conftest.err
37351 rm -f conftest.er1
37352 cat conftest.err >&5
a848cd7e
SC
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); } &&
ddd14b14
RR
37355 { ac_try='test -z "$ac_c_werror_flag"
37356 || test ! -s conftest.err'
ac1cb8d3
VS
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37359 ac_status=$?
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; } &&
37362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37364 (eval $ac_try) 2>&5
37365 ac_status=$?
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); }; }; then
37368 echo "*** The test program compiled, but did not run. This usually means"
37369 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37370 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37371 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37372 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37373 echo "*** is required on your system"
37374 echo "***"
37375 echo "*** If you have an old version installed, it is best to remove it, although"
37376 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37377else
37378 echo "$as_me: failed program was:" >&5
37379sed 's/^/| /' conftest.$ac_ext >&5
37380
37381 echo "*** The test program failed to compile or link. See the file config.log for the"
37382 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37383 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37384 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37385fi
ac1cb8d3
VS
37386rm -f conftest.err conftest.$ac_objext \
37387 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37388 CFLAGS="$ac_save_CFLAGS"
94acd38e 37389 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37390 LIBS="$ac_save_LIBS"
37391 fi
37392 fi
37393 SDL_CFLAGS=""
37394 SDL_LIBS=""
37395 wxUSE_LIBSDL="no"
37396 fi
37397
37398
37399 rm -f conf.sdltest
37400
37401 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37402 WITH_PLUGIN_SDL=1
37403 fi
37404 fi
37405 fi
37406
37407 cat >>confdefs.h <<\_ACEOF
37408#define wxUSE_SOUND 1
37409_ACEOF
37410
37411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37412fi
37413
d1c38808
VZ
37414if test "$WXGTK20" = 1; then
37415 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37416 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37417
37418
37419 succeeded=no
37420
37421 if test -z "$PKG_CONFIG"; then
37422 # Extract the first word of "pkg-config", so it can be a program name with args.
37423set dummy pkg-config; ac_word=$2
37424echo "$as_me:$LINENO: checking for $ac_word" >&5
37425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37426if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37427 echo $ECHO_N "(cached) $ECHO_C" >&6
37428else
37429 case $PKG_CONFIG in
37430 [\\/]* | ?:[\\/]*)
37431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37432 ;;
37433 *)
37434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37435for as_dir in $PATH
37436do
37437 IFS=$as_save_IFS
37438 test -z "$as_dir" && as_dir=.
37439 for ac_exec_ext in '' $ac_executable_extensions; do
37440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37443 break 2
37444 fi
37445done
37446done
37447
37448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37449 ;;
37450esac
37451fi
37452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37453
37454if test -n "$PKG_CONFIG"; then
37455 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37456echo "${ECHO_T}$PKG_CONFIG" >&6
37457else
37458 echo "$as_me:$LINENO: result: no" >&5
37459echo "${ECHO_T}no" >&6
37460fi
37461
37462 fi
37463
37464 if test "$PKG_CONFIG" = "no" ; then
37465 echo "*** The pkg-config script could not be found. Make sure it is"
37466 echo "*** in your path, or set the PKG_CONFIG environment variable"
37467 echo "*** to the full path to pkg-config."
37468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37469 else
37470 PKG_CONFIG_MIN_VERSION=0.9.0
37471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37472 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37473echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37474
ffa762ff 37475 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37476 echo "$as_me:$LINENO: result: yes" >&5
37477echo "${ECHO_T}yes" >&6
37478 succeeded=yes
37479
37480 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37481echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37482 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37483 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37484echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37485
37486 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37487echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37488 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37489 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37490echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37491 else
37492 LIBGNOMEPRINTUI_CFLAGS=""
37493 LIBGNOMEPRINTUI_LIBS=""
37494 ## If we have a custom action on failure, don't print errors, but
37495 ## do set a variable so people can do so.
ffa762ff 37496 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37497
37498 fi
37499
37500
37501
37502 else
37503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37505 fi
37506 fi
37507
37508 if test $succeeded = yes; then
37509
d1c38808
VZ
37510 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37511 cat >>confdefs.h <<\_ACEOF
37512#define wxUSE_LIBGNOMEPRINT 1
37513_ACEOF
37514
37515
37516 else
37517
37518 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37519echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37520 wxUSE_LIBGNOMEPRINT="no"
37521
37522
37523 fi
37524
37525 fi
37526 fi
37527fi
37528
37529
a848cd7e
SC
37530if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37531 cat >>confdefs.h <<\_ACEOF
37532#define wxUSE_CMDLINE_PARSER 1
37533_ACEOF
37534
37535fi
37536
37537if test "$wxUSE_STOPWATCH" = "yes"; then
37538 cat >>confdefs.h <<\_ACEOF
37539#define wxUSE_STOPWATCH 1
37540_ACEOF
37541
37542fi
37543
37544if test "$wxUSE_DATETIME" = "yes"; then
37545 cat >>confdefs.h <<\_ACEOF
37546#define wxUSE_DATETIME 1
37547_ACEOF
37548
37549fi
37550
37551if test "$wxUSE_FILE" = "yes"; then
37552 cat >>confdefs.h <<\_ACEOF
37553#define wxUSE_FILE 1
37554_ACEOF
37555
37556fi
37557
37558if test "$wxUSE_FFILE" = "yes"; then
37559 cat >>confdefs.h <<\_ACEOF
37560#define wxUSE_FFILE 1
37561_ACEOF
37562
37563fi
37564
37565if test "$wxUSE_FILESYSTEM" = "yes"; then
37566 cat >>confdefs.h <<\_ACEOF
37567#define wxUSE_FILESYSTEM 1
37568_ACEOF
37569
37570fi
37571
37572if test "$wxUSE_FS_ZIP" = "yes"; then
37573 cat >>confdefs.h <<\_ACEOF
37574#define wxUSE_FS_ZIP 1
37575_ACEOF
37576
37577fi
37578
9e8e867f 37579if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37580 cat >>confdefs.h <<\_ACEOF
9e8e867f 37581#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37582_ACEOF
37583
37584fi
37585
37586if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37587 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37588 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37589echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37590 elif test "$wxUSE_ZLIB" = "no"; then
37591 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37592echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37593 else
37594 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37595#define wxUSE_ZIPSTREAM 1
37596_ACEOF
37597
81f90336 37598 fi
a848cd7e
SC
37599fi
37600
a848cd7e 37601if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37602 if test "$USE_UNIX" != 1; then
37603 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37604echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37605 wxUSE_ON_FATAL_EXCEPTION=no
37606 else
37607 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37608#define wxUSE_ON_FATAL_EXCEPTION 1
37609_ACEOF
37610
18228ab4 37611 fi
a848cd7e
SC
37612fi
37613
eaff0f0d
VZ
37614if test "$wxUSE_STACKWALKER" = "yes"; then
37615 cat >>confdefs.h <<\_ACEOF
37616#define wxUSE_STACKWALKER 1
37617_ACEOF
37618
37619fi
37620
36b6448c 37621if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37622 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37623 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37624echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37625 wxUSE_DEBUGREPORT=no
37626 else
37627 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37628#define wxUSE_DEBUGREPORT 1
37629_ACEOF
37630
21dfc162
MW
37631 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37633 fi
dfe0c803 37634 fi
36b6448c
VZ
37635fi
37636
a848cd7e
SC
37637if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_SNGLINST_CHECKER 1
37640_ACEOF
37641
37642fi
37643
37644if test "$wxUSE_BUSYINFO" = "yes"; then
37645 cat >>confdefs.h <<\_ACEOF
37646#define wxUSE_BUSYINFO 1
37647_ACEOF
37648
37649fi
37650
37651if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37652 cat >>confdefs.h <<\_ACEOF
37653#define wxUSE_STD_IOSTREAM 1
37654_ACEOF
37655
37656fi
37657
59746b65
MW
37658if test "$wxUSE_STD_STRING" = "yes"; then
37659 cat >>confdefs.h <<\_ACEOF
37660#define wxUSE_STD_STRING 1
37661_ACEOF
37662
37663fi
37664
07158944
VZ
37665if test "$wxUSE_STDPATHS" = "yes"; then
37666 cat >>confdefs.h <<\_ACEOF
37667#define wxUSE_STDPATHS 1
37668_ACEOF
37669
37670fi
37671
a848cd7e
SC
37672if test "$wxUSE_TEXTBUFFER" = "yes"; then
37673 cat >>confdefs.h <<\_ACEOF
37674#define wxUSE_TEXTBUFFER 1
37675_ACEOF
37676
37677fi
37678
37679if test "$wxUSE_TEXTFILE" = "yes"; then
37680 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37681 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37682echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37683 else
37684 cat >>confdefs.h <<\_ACEOF
37685#define wxUSE_TEXTFILE 1
37686_ACEOF
37687
37688 fi
37689fi
37690
37691if test "$wxUSE_CONFIG" = "yes" ; then
37692 if test "$wxUSE_TEXTFILE" != "yes"; then
37693 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37694echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37695 else
37696 cat >>confdefs.h <<\_ACEOF
37697#define wxUSE_CONFIG 1
89be85c2
VS
37698_ACEOF
37699
37700 cat >>confdefs.h <<\_ACEOF
37701#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37702_ACEOF
37703
37704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37705 fi
37706fi
37707
37708if test "$wxUSE_INTL" = "yes" ; then
37709 if test "$wxUSE_FILE" != "yes"; then
37710 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37711echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37712 else
37713 cat >>confdefs.h <<\_ACEOF
37714#define wxUSE_INTL 1
37715_ACEOF
37716
37717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37718 GUIDIST="$GUIDIST INTL_DIST"
37719 fi
37720fi
37721
37722if test "$wxUSE_LOG" = "yes"; then
37723 cat >>confdefs.h <<\_ACEOF
37724#define wxUSE_LOG 1
37725_ACEOF
37726
37727
37728 if test "$wxUSE_LOGGUI" = "yes"; then
37729 cat >>confdefs.h <<\_ACEOF
37730#define wxUSE_LOGGUI 1
37731_ACEOF
37732
37733 fi
37734
37735 if test "$wxUSE_LOGWINDOW" = "yes"; then
37736 cat >>confdefs.h <<\_ACEOF
37737#define wxUSE_LOGWINDOW 1
37738_ACEOF
37739
37740 fi
37741
37742 if test "$wxUSE_LOGDIALOG" = "yes"; then
37743 cat >>confdefs.h <<\_ACEOF
37744#define wxUSE_LOG_DIALOG 1
37745_ACEOF
37746
37747 fi
0b78747f
MW
37748
37749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37750fi
37751
37752if test "$wxUSE_LONGLONG" = "yes"; then
37753 cat >>confdefs.h <<\_ACEOF
37754#define wxUSE_LONGLONG 1
37755_ACEOF
37756
37757fi
37758
37759if test "$wxUSE_GEOMETRY" = "yes"; then
37760 cat >>confdefs.h <<\_ACEOF
37761#define wxUSE_GEOMETRY 1
37762_ACEOF
37763
37764fi
37765
a848cd7e
SC
37766if test "$wxUSE_STREAMS" = "yes" ; then
37767 cat >>confdefs.h <<\_ACEOF
37768#define wxUSE_STREAMS 1
37769_ACEOF
37770
37771fi
37772
37773
37774if test "$wxUSE_DATETIME" = "yes"; then
37775
37776for ac_func in strptime
37777do
37778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37779echo "$as_me:$LINENO: checking for $ac_func" >&5
37780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37781if eval "test \"\${$as_ac_var+set}\" = set"; then
37782 echo $ECHO_N "(cached) $ECHO_C" >&6
37783else
37784 cat >conftest.$ac_ext <<_ACEOF
37785/* confdefs.h. */
37786_ACEOF
37787cat confdefs.h >>conftest.$ac_ext
37788cat >>conftest.$ac_ext <<_ACEOF
37789/* end confdefs.h. */
ac1cb8d3
VS
37790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37792#define $ac_func innocuous_$ac_func
37793
a848cd7e
SC
37794/* System header to define __stub macros and hopefully few prototypes,
37795 which can conflict with char $ac_func (); below.
37796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37798
a848cd7e
SC
37799#ifdef __STDC__
37800# include <limits.h>
37801#else
37802# include <assert.h>
37803#endif
ac1cb8d3
VS
37804
37805#undef $ac_func
37806
a848cd7e
SC
37807/* Override any gcc2 internal prototype to avoid an error. */
37808#ifdef __cplusplus
37809extern "C"
37810{
37811#endif
37812/* We use char because int might match the return type of a gcc2
37813 builtin and then its argument prototype would still apply. */
37814char $ac_func ();
37815/* The GNU C library defines this for functions which it implements
37816 to always fail with ENOSYS. Some functions are actually named
37817 something starting with __ and the normal name is an alias. */
37818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37819choke me
37820#else
37821char (*f) () = $ac_func;
37822#endif
37823#ifdef __cplusplus
37824}
37825#endif
37826
37827int
37828main ()
37829{
37830return f != $ac_func;
37831 ;
37832 return 0;
37833}
37834_ACEOF
37835rm -f conftest.$ac_objext conftest$ac_exeext
37836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37837 (eval $ac_link) 2>conftest.er1
a848cd7e 37838 ac_status=$?
ac1cb8d3
VS
37839 grep -v '^ *+' conftest.er1 >conftest.err
37840 rm -f conftest.er1
37841 cat conftest.err >&5
a848cd7e
SC
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); } &&
ddd14b14
RR
37844 { ac_try='test -z "$ac_c_werror_flag"
37845 || test ! -s conftest.err'
ac1cb8d3
VS
37846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 (eval $ac_try) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); }; } &&
37851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853 (eval $ac_try) 2>&5
37854 ac_status=$?
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); }; }; then
37857 eval "$as_ac_var=yes"
37858else
37859 echo "$as_me: failed program was:" >&5
37860sed 's/^/| /' conftest.$ac_ext >&5
37861
37862eval "$as_ac_var=no"
37863fi
ac1cb8d3
VS
37864rm -f conftest.err conftest.$ac_objext \
37865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37866fi
37867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37868echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37869if test `eval echo '${'$as_ac_var'}'` = yes; then
37870 cat >>confdefs.h <<_ACEOF
37871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37872_ACEOF
37873
37874fi
37875done
37876
37877
37878 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37879echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37880if test "${wx_cv_var_timezone+set}" = set; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37882else
37883
37884 cat >conftest.$ac_ext <<_ACEOF
37885/* confdefs.h. */
37886_ACEOF
37887cat confdefs.h >>conftest.$ac_ext
37888cat >>conftest.$ac_ext <<_ACEOF
37889/* end confdefs.h. */
37890
37891 #include <time.h>
37892
37893int
37894main ()
37895{
37896
37897 int tz;
37898 tz = timezone;
37899
37900 ;
37901 return 0;
37902}
37903_ACEOF
37904rm -f conftest.$ac_objext
37905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37906 (eval $ac_compile) 2>conftest.er1
a848cd7e 37907 ac_status=$?
ac1cb8d3
VS
37908 grep -v '^ *+' conftest.er1 >conftest.err
37909 rm -f conftest.er1
37910 cat conftest.err >&5
a848cd7e
SC
37911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37912 (exit $ac_status); } &&
ddd14b14
RR
37913 { ac_try='test -z "$ac_c_werror_flag"
37914 || test ! -s conftest.err'
ac1cb8d3
VS
37915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37916 (eval $ac_try) 2>&5
37917 ac_status=$?
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); }; } &&
37920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37922 (eval $ac_try) 2>&5
37923 ac_status=$?
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); }; }; then
37926
37927 wx_cv_var_timezone=timezone
37928
37929else
37930 echo "$as_me: failed program was:" >&5
37931sed 's/^/| /' conftest.$ac_ext >&5
37932
37933
37934 cat >conftest.$ac_ext <<_ACEOF
37935/* confdefs.h. */
37936_ACEOF
37937cat confdefs.h >>conftest.$ac_ext
37938cat >>conftest.$ac_ext <<_ACEOF
37939/* end confdefs.h. */
37940
37941 #include <time.h>
37942
37943int
37944main ()
37945{
37946
37947 int tz;
37948 tz = _timezone;
37949
37950 ;
37951 return 0;
37952}
37953_ACEOF
37954rm -f conftest.$ac_objext
37955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37956 (eval $ac_compile) 2>conftest.er1
a848cd7e 37957 ac_status=$?
ac1cb8d3
VS
37958 grep -v '^ *+' conftest.er1 >conftest.err
37959 rm -f conftest.er1
37960 cat conftest.err >&5
a848cd7e
SC
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); } &&
ddd14b14
RR
37963 { ac_try='test -z "$ac_c_werror_flag"
37964 || test ! -s conftest.err'
ac1cb8d3
VS
37965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37966 (eval $ac_try) 2>&5
37967 ac_status=$?
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); }; } &&
37970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37972 (eval $ac_try) 2>&5
37973 ac_status=$?
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; }; then
37976
37977 wx_cv_var_timezone=_timezone
37978
37979else
37980 echo "$as_me: failed program was:" >&5
37981sed 's/^/| /' conftest.$ac_ext >&5
37982
37983
37984 cat >conftest.$ac_ext <<_ACEOF
37985/* confdefs.h. */
37986_ACEOF
37987cat confdefs.h >>conftest.$ac_ext
37988cat >>conftest.$ac_ext <<_ACEOF
37989/* end confdefs.h. */
37990
37991 #include <time.h>
37992
37993int
37994main ()
37995{
37996
37997 int tz;
37998 tz = __timezone;
37999
38000 ;
38001 return 0;
38002}
38003_ACEOF
38004rm -f conftest.$ac_objext
38005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38006 (eval $ac_compile) 2>conftest.er1
a848cd7e 38007 ac_status=$?
ac1cb8d3
VS
38008 grep -v '^ *+' conftest.er1 >conftest.err
38009 rm -f conftest.er1
38010 cat conftest.err >&5
a848cd7e
SC
38011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012 (exit $ac_status); } &&
ddd14b14
RR
38013 { ac_try='test -z "$ac_c_werror_flag"
38014 || test ! -s conftest.err'
ac1cb8d3
VS
38015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38016 (eval $ac_try) 2>&5
38017 ac_status=$?
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); }; } &&
38020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38022 (eval $ac_try) 2>&5
38023 ac_status=$?
38024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025 (exit $ac_status); }; }; then
38026
38027 wx_cv_var_timezone=__timezone
38028
38029else
38030 echo "$as_me: failed program was:" >&5
38031sed 's/^/| /' conftest.$ac_ext >&5
38032
38033
38034 if test "$USE_DOS" = 0 ; then
38035 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38036echo "$as_me: WARNING: no timezone variable" >&2;}
38037 fi
38038
38039
38040fi
ac1cb8d3 38041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38042
38043
38044fi
ac1cb8d3 38045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38046
38047
38048fi
ac1cb8d3 38049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38050
38051
38052fi
38053echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38054echo "${ECHO_T}$wx_cv_var_timezone" >&6
38055
38056 if test "x$wx_cv_var_timezone" != x ; then
38057 cat >>confdefs.h <<_ACEOF
38058#define WX_TIMEZONE $wx_cv_var_timezone
38059_ACEOF
38060
38061 fi
38062
38063
38064for ac_func in localtime
38065do
38066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38067echo "$as_me:$LINENO: checking for $ac_func" >&5
38068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38069if eval "test \"\${$as_ac_var+set}\" = set"; then
38070 echo $ECHO_N "(cached) $ECHO_C" >&6
38071else
38072 cat >conftest.$ac_ext <<_ACEOF
38073/* confdefs.h. */
38074_ACEOF
38075cat confdefs.h >>conftest.$ac_ext
38076cat >>conftest.$ac_ext <<_ACEOF
38077/* end confdefs.h. */
ac1cb8d3
VS
38078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38080#define $ac_func innocuous_$ac_func
38081
a848cd7e
SC
38082/* System header to define __stub macros and hopefully few prototypes,
38083 which can conflict with char $ac_func (); below.
38084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38085 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38086
a848cd7e
SC
38087#ifdef __STDC__
38088# include <limits.h>
38089#else
38090# include <assert.h>
38091#endif
ac1cb8d3
VS
38092
38093#undef $ac_func
38094
a848cd7e
SC
38095/* Override any gcc2 internal prototype to avoid an error. */
38096#ifdef __cplusplus
38097extern "C"
38098{
38099#endif
38100/* We use char because int might match the return type of a gcc2
38101 builtin and then its argument prototype would still apply. */
38102char $ac_func ();
38103/* The GNU C library defines this for functions which it implements
38104 to always fail with ENOSYS. Some functions are actually named
38105 something starting with __ and the normal name is an alias. */
38106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38107choke me
38108#else
38109char (*f) () = $ac_func;
38110#endif
38111#ifdef __cplusplus
38112}
38113#endif
38114
38115int
38116main ()
38117{
38118return f != $ac_func;
38119 ;
38120 return 0;
38121}
38122_ACEOF
38123rm -f conftest.$ac_objext conftest$ac_exeext
38124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38125 (eval $ac_link) 2>conftest.er1
a848cd7e 38126 ac_status=$?
ac1cb8d3
VS
38127 grep -v '^ *+' conftest.er1 >conftest.err
38128 rm -f conftest.er1
38129 cat conftest.err >&5
a848cd7e
SC
38130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131 (exit $ac_status); } &&
ddd14b14
RR
38132 { ac_try='test -z "$ac_c_werror_flag"
38133 || test ! -s conftest.err'
ac1cb8d3
VS
38134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38135 (eval $ac_try) 2>&5
38136 ac_status=$?
38137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38138 (exit $ac_status); }; } &&
38139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38141 (eval $ac_try) 2>&5
38142 ac_status=$?
38143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144 (exit $ac_status); }; }; then
38145 eval "$as_ac_var=yes"
38146else
38147 echo "$as_me: failed program was:" >&5
38148sed 's/^/| /' conftest.$ac_ext >&5
38149
38150eval "$as_ac_var=no"
38151fi
ac1cb8d3
VS
38152rm -f conftest.err conftest.$ac_objext \
38153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38154fi
38155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38157if test `eval echo '${'$as_ac_var'}'` = yes; then
38158 cat >>confdefs.h <<_ACEOF
38159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38160_ACEOF
38161
38162fi
38163done
38164
38165
38166 if test "$ac_cv_func_localtime" = "yes"; then
38167 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38168echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38169if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38170 echo $ECHO_N "(cached) $ECHO_C" >&6
38171else
38172
38173 cat >conftest.$ac_ext <<_ACEOF
38174/* confdefs.h. */
38175_ACEOF
38176cat confdefs.h >>conftest.$ac_ext
38177cat >>conftest.$ac_ext <<_ACEOF
38178/* end confdefs.h. */
38179
38180 #include <time.h>
38181
38182int
38183main ()
38184{
38185
38186 struct tm tm;
38187 tm.tm_gmtoff++;
38188
38189 ;
38190 return 0;
38191}
38192_ACEOF
38193rm -f conftest.$ac_objext
38194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38195 (eval $ac_compile) 2>conftest.er1
a848cd7e 38196 ac_status=$?
ac1cb8d3
VS
38197 grep -v '^ *+' conftest.er1 >conftest.err
38198 rm -f conftest.er1
38199 cat conftest.err >&5
a848cd7e
SC
38200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201 (exit $ac_status); } &&
ddd14b14
RR
38202 { ac_try='test -z "$ac_c_werror_flag"
38203 || test ! -s conftest.err'
ac1cb8d3
VS
38204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38205 (eval $ac_try) 2>&5
38206 ac_status=$?
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); }; } &&
38209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38211 (eval $ac_try) 2>&5
38212 ac_status=$?
38213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); }; }; then
38215
38216 wx_cv_struct_tm_has_gmtoff=yes
38217
38218else
38219 echo "$as_me: failed program was:" >&5
38220sed 's/^/| /' conftest.$ac_ext >&5
38221
38222wx_cv_struct_tm_has_gmtoff=no
38223
38224fi
ac1cb8d3 38225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38226
38227fi
38228echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38229echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38230 fi
38231
38232 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38233 cat >>confdefs.h <<\_ACEOF
38234#define WX_GMTOFF_IN_TM 1
38235_ACEOF
38236
38237 fi
38238
38239
38240
38241for ac_func in gettimeofday ftime
38242do
38243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38244echo "$as_me:$LINENO: checking for $ac_func" >&5
38245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38246if eval "test \"\${$as_ac_var+set}\" = set"; then
38247 echo $ECHO_N "(cached) $ECHO_C" >&6
38248else
38249 cat >conftest.$ac_ext <<_ACEOF
38250/* confdefs.h. */
38251_ACEOF
38252cat confdefs.h >>conftest.$ac_ext
38253cat >>conftest.$ac_ext <<_ACEOF
38254/* end confdefs.h. */
ac1cb8d3
VS
38255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38257#define $ac_func innocuous_$ac_func
38258
a848cd7e
SC
38259/* System header to define __stub macros and hopefully few prototypes,
38260 which can conflict with char $ac_func (); below.
38261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38263
a848cd7e
SC
38264#ifdef __STDC__
38265# include <limits.h>
38266#else
38267# include <assert.h>
38268#endif
ac1cb8d3
VS
38269
38270#undef $ac_func
38271
a848cd7e
SC
38272/* Override any gcc2 internal prototype to avoid an error. */
38273#ifdef __cplusplus
38274extern "C"
38275{
38276#endif
38277/* We use char because int might match the return type of a gcc2
38278 builtin and then its argument prototype would still apply. */
38279char $ac_func ();
38280/* The GNU C library defines this for functions which it implements
38281 to always fail with ENOSYS. Some functions are actually named
38282 something starting with __ and the normal name is an alias. */
38283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38284choke me
38285#else
38286char (*f) () = $ac_func;
38287#endif
38288#ifdef __cplusplus
38289}
38290#endif
38291
38292int
38293main ()
38294{
38295return f != $ac_func;
38296 ;
38297 return 0;
38298}
38299_ACEOF
38300rm -f conftest.$ac_objext conftest$ac_exeext
38301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38302 (eval $ac_link) 2>conftest.er1
a848cd7e 38303 ac_status=$?
ac1cb8d3
VS
38304 grep -v '^ *+' conftest.er1 >conftest.err
38305 rm -f conftest.er1
38306 cat conftest.err >&5
a848cd7e
SC
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); } &&
ddd14b14
RR
38309 { ac_try='test -z "$ac_c_werror_flag"
38310 || test ! -s conftest.err'
ac1cb8d3
VS
38311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38312 (eval $ac_try) 2>&5
38313 ac_status=$?
38314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315 (exit $ac_status); }; } &&
38316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38319 ac_status=$?
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; }; then
38322 eval "$as_ac_var=yes"
38323else
38324 echo "$as_me: failed program was:" >&5
38325sed 's/^/| /' conftest.$ac_ext >&5
38326
38327eval "$as_ac_var=no"
38328fi
ac1cb8d3
VS
38329rm -f conftest.err conftest.$ac_objext \
38330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38331fi
38332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38334if test `eval echo '${'$as_ac_var'}'` = yes; then
38335 cat >>confdefs.h <<_ACEOF
38336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38337_ACEOF
38338 break
38339fi
38340done
38341
38342
38343 if test "$ac_cv_func_gettimeofday" = "yes"; then
38344 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38345echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38346if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38347 echo $ECHO_N "(cached) $ECHO_C" >&6
38348else
38349
38350
38351
38352 ac_ext=cc
38353ac_cpp='$CXXCPP $CPPFLAGS'
38354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38357
38358
38359 cat >conftest.$ac_ext <<_ACEOF
38360/* confdefs.h. */
38361_ACEOF
38362cat confdefs.h >>conftest.$ac_ext
38363cat >>conftest.$ac_ext <<_ACEOF
38364/* end confdefs.h. */
38365
38366 #include <sys/time.h>
38367 #include <unistd.h>
38368
38369int
38370main ()
38371{
38372
38373 struct timeval tv;
38374 gettimeofday(&tv, NULL);
38375
38376 ;
38377 return 0;
38378}
38379_ACEOF
38380rm -f conftest.$ac_objext
38381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38382 (eval $ac_compile) 2>conftest.er1
a848cd7e 38383 ac_status=$?
ac1cb8d3
VS
38384 grep -v '^ *+' conftest.er1 >conftest.err
38385 rm -f conftest.er1
38386 cat conftest.err >&5
a848cd7e
SC
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } &&
ddd14b14
RR
38389 { ac_try='test -z "$ac_cxx_werror_flag"
38390 || test ! -s conftest.err'
ac1cb8d3
VS
38391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38392 (eval $ac_try) 2>&5
38393 ac_status=$?
38394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395 (exit $ac_status); }; } &&
38396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38398 (eval $ac_try) 2>&5
38399 ac_status=$?
38400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401 (exit $ac_status); }; }; then
38402 wx_cv_func_gettimeofday_has_2_args=yes
38403else
38404 echo "$as_me: failed program was:" >&5
38405sed 's/^/| /' conftest.$ac_ext >&5
38406
38407cat >conftest.$ac_ext <<_ACEOF
38408/* confdefs.h. */
38409_ACEOF
38410cat confdefs.h >>conftest.$ac_ext
38411cat >>conftest.$ac_ext <<_ACEOF
38412/* end confdefs.h. */
38413
38414 #include <sys/time.h>
38415 #include <unistd.h>
38416
38417int
38418main ()
38419{
38420
38421 struct timeval tv;
38422 gettimeofday(&tv);
38423
38424 ;
38425 return 0;
38426}
38427_ACEOF
38428rm -f conftest.$ac_objext
38429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38430 (eval $ac_compile) 2>conftest.er1
a848cd7e 38431 ac_status=$?
ac1cb8d3
VS
38432 grep -v '^ *+' conftest.er1 >conftest.err
38433 rm -f conftest.er1
38434 cat conftest.err >&5
a848cd7e
SC
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); } &&
ddd14b14
RR
38437 { ac_try='test -z "$ac_cxx_werror_flag"
38438 || test ! -s conftest.err'
ac1cb8d3
VS
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38441 ac_status=$?
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; } &&
38444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; }; then
38450 wx_cv_func_gettimeofday_has_2_args=no
38451else
38452 echo "$as_me: failed program was:" >&5
38453sed 's/^/| /' conftest.$ac_ext >&5
38454
38455
38456 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38457echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38458 wx_cv_func_gettimeofday_has_2_args=unknown
38459
38460
38461fi
ac1cb8d3 38462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38463
38464fi
ac1cb8d3 38465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38466 ac_ext=c
38467ac_cpp='$CPP $CPPFLAGS'
38468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38470ac_compiler_gnu=$ac_cv_c_compiler_gnu
38471
38472
38473fi
38474echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38475echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38476
38477 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38478 cat >>confdefs.h <<\_ACEOF
38479#define WX_GETTIMEOFDAY_NO_TZ 1
38480_ACEOF
38481
38482 fi
38483 fi
38484
38485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38486fi
38487
38488
38489if test "$wxUSE_SOCKETS" = "yes"; then
38490 if test "$wxUSE_MGL" = "1"; then
38491 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38492echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38493 wxUSE_SOCKETS="no"
38494 fi
38495fi
38496
38497if test "$wxUSE_SOCKETS" = "yes"; then
38498 if test "$TOOLKIT" != "MSW"; then
38499 echo "$as_me:$LINENO: checking for socket" >&5
38500echo $ECHO_N "checking for socket... $ECHO_C" >&6
38501if test "${ac_cv_func_socket+set}" = set; then
38502 echo $ECHO_N "(cached) $ECHO_C" >&6
38503else
38504 cat >conftest.$ac_ext <<_ACEOF
38505/* confdefs.h. */
38506_ACEOF
38507cat confdefs.h >>conftest.$ac_ext
38508cat >>conftest.$ac_ext <<_ACEOF
38509/* end confdefs.h. */
ac1cb8d3
VS
38510/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38512#define socket innocuous_socket
38513
a848cd7e
SC
38514/* System header to define __stub macros and hopefully few prototypes,
38515 which can conflict with char socket (); below.
38516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38518
a848cd7e
SC
38519#ifdef __STDC__
38520# include <limits.h>
38521#else
38522# include <assert.h>
38523#endif
ac1cb8d3
VS
38524
38525#undef socket
38526
a848cd7e
SC
38527/* Override any gcc2 internal prototype to avoid an error. */
38528#ifdef __cplusplus
38529extern "C"
38530{
38531#endif
38532/* We use char because int might match the return type of a gcc2
38533 builtin and then its argument prototype would still apply. */
38534char socket ();
38535/* The GNU C library defines this for functions which it implements
38536 to always fail with ENOSYS. Some functions are actually named
38537 something starting with __ and the normal name is an alias. */
38538#if defined (__stub_socket) || defined (__stub___socket)
38539choke me
38540#else
38541char (*f) () = socket;
38542#endif
38543#ifdef __cplusplus
38544}
38545#endif
38546
38547int
38548main ()
38549{
38550return f != socket;
38551 ;
38552 return 0;
38553}
38554_ACEOF
38555rm -f conftest.$ac_objext conftest$ac_exeext
38556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38557 (eval $ac_link) 2>conftest.er1
a848cd7e 38558 ac_status=$?
ac1cb8d3
VS
38559 grep -v '^ *+' conftest.er1 >conftest.err
38560 rm -f conftest.er1
38561 cat conftest.err >&5
a848cd7e
SC
38562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563 (exit $ac_status); } &&
ddd14b14
RR
38564 { ac_try='test -z "$ac_c_werror_flag"
38565 || test ! -s conftest.err'
ac1cb8d3
VS
38566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567 (eval $ac_try) 2>&5
38568 ac_status=$?
38569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); }; } &&
38571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38573 (eval $ac_try) 2>&5
38574 ac_status=$?
38575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576 (exit $ac_status); }; }; then
38577 ac_cv_func_socket=yes
38578else
38579 echo "$as_me: failed program was:" >&5
38580sed 's/^/| /' conftest.$ac_ext >&5
38581
38582ac_cv_func_socket=no
38583fi
ac1cb8d3
VS
38584rm -f conftest.err conftest.$ac_objext \
38585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38586fi
38587echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38588echo "${ECHO_T}$ac_cv_func_socket" >&6
38589if test $ac_cv_func_socket = yes; then
38590 :
38591else
38592
38593 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38594echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38595if test "${ac_cv_lib_socket_socket+set}" = set; then
38596 echo $ECHO_N "(cached) $ECHO_C" >&6
38597else
38598 ac_check_lib_save_LIBS=$LIBS
38599LIBS="-lsocket $LIBS"
38600cat >conftest.$ac_ext <<_ACEOF
38601/* confdefs.h. */
38602_ACEOF
38603cat confdefs.h >>conftest.$ac_ext
38604cat >>conftest.$ac_ext <<_ACEOF
38605/* end confdefs.h. */
38606
38607/* Override any gcc2 internal prototype to avoid an error. */
38608#ifdef __cplusplus
38609extern "C"
38610#endif
38611/* We use char because int might match the return type of a gcc2
38612 builtin and then its argument prototype would still apply. */
38613char socket ();
38614int
38615main ()
38616{
38617socket ();
38618 ;
38619 return 0;
38620}
38621_ACEOF
38622rm -f conftest.$ac_objext conftest$ac_exeext
38623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38624 (eval $ac_link) 2>conftest.er1
a848cd7e 38625 ac_status=$?
ac1cb8d3
VS
38626 grep -v '^ *+' conftest.er1 >conftest.err
38627 rm -f conftest.er1
38628 cat conftest.err >&5
a848cd7e
SC
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } &&
ddd14b14
RR
38631 { ac_try='test -z "$ac_c_werror_flag"
38632 || test ! -s conftest.err'
ac1cb8d3
VS
38633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38634 (eval $ac_try) 2>&5
38635 ac_status=$?
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); }; } &&
38638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640 (eval $ac_try) 2>&5
38641 ac_status=$?
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); }; }; then
38644 ac_cv_lib_socket_socket=yes
38645else
38646 echo "$as_me: failed program was:" >&5
38647sed 's/^/| /' conftest.$ac_ext >&5
38648
38649ac_cv_lib_socket_socket=no
38650fi
ac1cb8d3
VS
38651rm -f conftest.err conftest.$ac_objext \
38652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38653LIBS=$ac_check_lib_save_LIBS
38654fi
38655echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38656echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38657if test $ac_cv_lib_socket_socket = yes; then
38658 if test "$INET_LINK" != " -lsocket"; then
38659 INET_LINK="$INET_LINK -lsocket"
38660 fi
38661else
38662
38663 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38664echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38665 wxUSE_SOCKETS=no
38666
38667
38668fi
38669
38670
38671
38672fi
38673
38674 fi
38675fi
38676
38677if test "$wxUSE_SOCKETS" = "yes" ; then
38678 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38679 ac_ext=cc
38680ac_cpp='$CXXCPP $CPPFLAGS'
38681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38684
38685 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38686echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38687if test "${wx_cv_type_getsockname3+set}" = set; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689else
38690
38691 cat >conftest.$ac_ext <<_ACEOF
38692/* confdefs.h. */
38693_ACEOF
38694cat confdefs.h >>conftest.$ac_ext
38695cat >>conftest.$ac_ext <<_ACEOF
38696/* end confdefs.h. */
38697
38698 #include <sys/types.h>
38699 #include <sys/socket.h>
38700
38701int
38702main ()
38703{
38704
38705 socklen_t len;
38706 getsockname(0, 0, &len);
38707
38708 ;
38709 return 0;
38710}
38711_ACEOF
38712rm -f conftest.$ac_objext
38713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38714 (eval $ac_compile) 2>conftest.er1
a848cd7e 38715 ac_status=$?
ac1cb8d3
VS
38716 grep -v '^ *+' conftest.er1 >conftest.err
38717 rm -f conftest.er1
38718 cat conftest.err >&5
a848cd7e
SC
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
ddd14b14
RR
38721 { ac_try='test -z "$ac_cxx_werror_flag"
38722 || test ! -s conftest.err'
ac1cb8d3
VS
38723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724 (eval $ac_try) 2>&5
38725 ac_status=$?
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); }; } &&
38728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730 (eval $ac_try) 2>&5
38731 ac_status=$?
38732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733 (exit $ac_status); }; }; then
38734 wx_cv_type_getsockname3=socklen_t
38735else
38736 echo "$as_me: failed program was:" >&5
38737sed 's/^/| /' conftest.$ac_ext >&5
38738
38739
38740 CFLAGS_OLD="$CFLAGS"
38741 if test "$GCC" = yes ; then
38742 CFLAGS="$CFLAGS -Werror"
38743 fi
38744
38745 cat >conftest.$ac_ext <<_ACEOF
38746/* confdefs.h. */
38747_ACEOF
38748cat confdefs.h >>conftest.$ac_ext
38749cat >>conftest.$ac_ext <<_ACEOF
38750/* end confdefs.h. */
38751
38752 #include <sys/types.h>
38753 #include <sys/socket.h>
38754
38755int
38756main ()
38757{
38758
38759 size_t len;
38760 getsockname(0, 0, &len);
38761
38762 ;
38763 return 0;
38764}
38765_ACEOF
38766rm -f conftest.$ac_objext
38767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38768 (eval $ac_compile) 2>conftest.er1
a848cd7e 38769 ac_status=$?
ac1cb8d3
VS
38770 grep -v '^ *+' conftest.er1 >conftest.err
38771 rm -f conftest.er1
38772 cat conftest.err >&5
a848cd7e
SC
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); } &&
ddd14b14
RR
38775 { ac_try='test -z "$ac_cxx_werror_flag"
38776 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
38782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38785 ac_status=$?
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; }; then
38788 wx_cv_type_getsockname3=size_t
38789else
38790 echo "$as_me: failed program was:" >&5
38791sed 's/^/| /' conftest.$ac_ext >&5
38792
38793cat >conftest.$ac_ext <<_ACEOF
38794/* confdefs.h. */
38795_ACEOF
38796cat confdefs.h >>conftest.$ac_ext
38797cat >>conftest.$ac_ext <<_ACEOF
38798/* end confdefs.h. */
38799
38800 #include <sys/types.h>
38801 #include <sys/socket.h>
38802
38803int
38804main ()
38805{
38806
38807 int len;
38808 getsockname(0, 0, &len);
38809
38810 ;
38811 return 0;
38812}
38813_ACEOF
38814rm -f conftest.$ac_objext
38815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38816 (eval $ac_compile) 2>conftest.er1
a848cd7e 38817 ac_status=$?
ac1cb8d3
VS
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
a848cd7e
SC
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
ddd14b14
RR
38823 { ac_try='test -z "$ac_cxx_werror_flag"
38824 || test ! -s conftest.err'
ac1cb8d3
VS
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } &&
38830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832 (eval $ac_try) 2>&5
38833 ac_status=$?
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); }; }; then
38836 wx_cv_type_getsockname3=int
38837else
38838 echo "$as_me: failed program was:" >&5
38839sed 's/^/| /' conftest.$ac_ext >&5
38840
38841wx_cv_type_getsockname3=unknown
38842
38843fi
ac1cb8d3 38844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38845
38846fi
ac1cb8d3 38847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38848
38849 CFLAGS="$CFLAGS_OLD"
38850
38851
38852fi
ac1cb8d3 38853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38854
38855fi
38856echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38857echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38858
38859 if test "$wx_cv_type_getsockname3" = "unknown"; then
38860 wxUSE_SOCKETS=no
38861 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38862echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38863 else
38864 cat >>confdefs.h <<_ACEOF
38865#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38866_ACEOF
38867
38868 fi
38869 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38870echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38871if test "${wx_cv_type_getsockopt5+set}" = set; then
38872 echo $ECHO_N "(cached) $ECHO_C" >&6
38873else
38874
38875 cat >conftest.$ac_ext <<_ACEOF
38876/* confdefs.h. */
38877_ACEOF
38878cat confdefs.h >>conftest.$ac_ext
38879cat >>conftest.$ac_ext <<_ACEOF
38880/* end confdefs.h. */
38881
38882 #include <sys/types.h>
38883 #include <sys/socket.h>
38884
38885int
38886main ()
38887{
38888
38889 socklen_t len;
38890 getsockopt(0, 0, 0, 0, &len);
38891
38892 ;
38893 return 0;
38894}
38895_ACEOF
38896rm -f conftest.$ac_objext
38897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38898 (eval $ac_compile) 2>conftest.er1
38899 ac_status=$?
38900 grep -v '^ *+' conftest.er1 >conftest.err
38901 rm -f conftest.er1
38902 cat conftest.err >&5
38903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904 (exit $ac_status); } &&
ddd14b14
RR
38905 { ac_try='test -z "$ac_cxx_werror_flag"
38906 || test ! -s conftest.err'
5b674b9d
DE
38907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38908 (eval $ac_try) 2>&5
38909 ac_status=$?
38910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38911 (exit $ac_status); }; } &&
38912 { ac_try='test -s conftest.$ac_objext'
38913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38914 (eval $ac_try) 2>&5
38915 ac_status=$?
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); }; }; then
38918 wx_cv_type_getsockopt5=socklen_t
38919else
38920 echo "$as_me: failed program was:" >&5
38921sed 's/^/| /' conftest.$ac_ext >&5
38922
38923
38924 CFLAGS_OLD="$CFLAGS"
38925 if test "$GCC" = yes ; then
38926 CFLAGS="$CFLAGS -Werror"
38927 fi
38928
38929 cat >conftest.$ac_ext <<_ACEOF
38930/* confdefs.h. */
38931_ACEOF
38932cat confdefs.h >>conftest.$ac_ext
38933cat >>conftest.$ac_ext <<_ACEOF
38934/* end confdefs.h. */
38935
38936 #include <sys/types.h>
38937 #include <sys/socket.h>
38938
38939int
38940main ()
38941{
38942
38943 size_t len;
38944 getsockopt(0, 0, 0, 0, &len);
38945
38946 ;
38947 return 0;
38948}
38949_ACEOF
38950rm -f conftest.$ac_objext
38951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38952 (eval $ac_compile) 2>conftest.er1
38953 ac_status=$?
38954 grep -v '^ *+' conftest.er1 >conftest.err
38955 rm -f conftest.er1
38956 cat conftest.err >&5
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); } &&
ddd14b14
RR
38959 { ac_try='test -z "$ac_cxx_werror_flag"
38960 || test ! -s conftest.err'
5b674b9d
DE
38961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962 (eval $ac_try) 2>&5
38963 ac_status=$?
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); }; } &&
38966 { ac_try='test -s conftest.$ac_objext'
38967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38968 (eval $ac_try) 2>&5
38969 ac_status=$?
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); }; }; then
38972 wx_cv_type_getsockopt5=size_t
38973else
38974 echo "$as_me: failed program was:" >&5
38975sed 's/^/| /' conftest.$ac_ext >&5
38976
38977cat >conftest.$ac_ext <<_ACEOF
38978/* confdefs.h. */
38979_ACEOF
38980cat confdefs.h >>conftest.$ac_ext
38981cat >>conftest.$ac_ext <<_ACEOF
38982/* end confdefs.h. */
38983
38984 #include <sys/types.h>
38985 #include <sys/socket.h>
38986
38987int
38988main ()
38989{
38990
38991 int len;
38992 getsockopt(0, 0, 0, 0, &len);
38993
38994 ;
38995 return 0;
38996}
38997_ACEOF
38998rm -f conftest.$ac_objext
38999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39000 (eval $ac_compile) 2>conftest.er1
39001 ac_status=$?
39002 grep -v '^ *+' conftest.er1 >conftest.err
39003 rm -f conftest.er1
39004 cat conftest.err >&5
39005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39006 (exit $ac_status); } &&
ddd14b14
RR
39007 { ac_try='test -z "$ac_cxx_werror_flag"
39008 || test ! -s conftest.err'
5b674b9d
DE
39009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010 (eval $ac_try) 2>&5
39011 ac_status=$?
39012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013 (exit $ac_status); }; } &&
39014 { ac_try='test -s conftest.$ac_objext'
39015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016 (eval $ac_try) 2>&5
39017 ac_status=$?
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); }; }; then
39020 wx_cv_type_getsockopt5=int
39021else
39022 echo "$as_me: failed program was:" >&5
39023sed 's/^/| /' conftest.$ac_ext >&5
39024
39025wx_cv_type_getsockopt5=unknown
39026
39027fi
39028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39029
39030fi
39031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39032
39033 CFLAGS="$CFLAGS_OLD"
39034
39035
39036fi
39037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39038
39039fi
39040echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39041echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39042
39043 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39044 wxUSE_SOCKETS=no
39045 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39046echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39047 else
39048 cat >>confdefs.h <<_ACEOF
39049#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39050_ACEOF
39051
39052 fi
4d4ff94c
VZ
39053 ac_ext=c
39054ac_cpp='$CPP $CPPFLAGS'
39055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39057ac_compiler_gnu=$ac_cv_c_compiler_gnu
39058
a848cd7e
SC
39059 fi
39060fi
39061
39062if test "$wxUSE_SOCKETS" = "yes" ; then
39063 cat >>confdefs.h <<\_ACEOF
39064#define wxUSE_SOCKETS 1
39065_ACEOF
39066
39067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39068fi
39069
39070if test "$wxUSE_PROTOCOL" = "yes"; then
39071 if test "$wxUSE_SOCKETS" != "yes"; then
39072 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39073echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39074 wxUSE_PROTOCOL=no
39075 fi
39076fi
39077
39078if test "$wxUSE_PROTOCOL" = "yes"; then
39079 cat >>confdefs.h <<\_ACEOF
39080#define wxUSE_PROTOCOL 1
39081_ACEOF
39082
39083
39084 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_PROTOCOL_HTTP 1
39087_ACEOF
39088
39089 fi
39090 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39091 cat >>confdefs.h <<\_ACEOF
39092#define wxUSE_PROTOCOL_FTP 1
39093_ACEOF
39094
39095 fi
39096 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39097 cat >>confdefs.h <<\_ACEOF
39098#define wxUSE_PROTOCOL_FILE 1
39099_ACEOF
39100
39101 fi
39102else
39103 if test "$wxUSE_FS_INET" = "yes"; then
39104 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39105echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39106 wxUSE_FS_INET="no"
39107 fi
39108fi
39109
39110if test "$wxUSE_URL" = "yes"; then
39111 if test "$wxUSE_PROTOCOL" != "yes"; then
39112 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39113echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39114 wxUSE_URL=no
39115 fi
39116 if test "$wxUSE_URL" = "yes"; then
39117 cat >>confdefs.h <<\_ACEOF
39118#define wxUSE_URL 1
39119_ACEOF
39120
39121 fi
39122fi
39123
39124if test "$wxUSE_FS_INET" = "yes"; then
39125 cat >>confdefs.h <<\_ACEOF
39126#define wxUSE_FS_INET 1
39127_ACEOF
39128
39129fi
39130
39131
ee45c548
MW
39132if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39133 wxUSE_JOYSTICK=no
39134
39135 if test "$TOOLKIT" = "MSW"; then
39136 wxUSE_JOYSTICK=yes
39137
39138 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39139 if test "$USE_DARWIN" = 1; then
39140 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39141echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39142 ac_ext=cc
39143ac_cpp='$CXXCPP $CPPFLAGS'
39144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39147
39148 cat >conftest.$ac_ext <<_ACEOF
39149/* confdefs.h. */
39150_ACEOF
39151cat confdefs.h >>conftest.$ac_ext
39152cat >>conftest.$ac_ext <<_ACEOF
39153/* end confdefs.h. */
39154 #include <IOKit/hid/IOHIDLib.h>
39155int
39156main ()
39157{
39158 IOHIDQueueInterface *qi = NULL;
39159 IOHIDCallbackFunction cb = NULL;
39160 qi->setEventCallout(NULL, cb, NULL, NULL);
39161 ;
39162 return 0;
39163}
39164_ACEOF
39165rm -f conftest.$ac_objext
39166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39167 (eval $ac_compile) 2>conftest.er1
39168 ac_status=$?
39169 grep -v '^ *+' conftest.er1 >conftest.err
39170 rm -f conftest.er1
39171 cat conftest.err >&5
39172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173 (exit $ac_status); } &&
ddd14b14
RR
39174 { ac_try='test -z "$ac_cxx_werror_flag"
39175 || test ! -s conftest.err'
ee45c548
MW
39176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39177 (eval $ac_try) 2>&5
39178 ac_status=$?
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); }; } &&
39181 { ac_try='test -s conftest.$ac_objext'
39182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183 (eval $ac_try) 2>&5
39184 ac_status=$?
39185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); }; }; then
39187 wxUSE_JOYSTICK=yes
a848cd7e 39188
ee45c548
MW
39189else
39190 echo "$as_me: failed program was:" >&5
39191sed 's/^/| /' conftest.$ac_ext >&5
39192
39193fi
39194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39195 ac_ext=c
39196ac_cpp='$CPP $CPPFLAGS'
39197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39199ac_compiler_gnu=$ac_cv_c_compiler_gnu
39200
39201 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39202echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39203 fi
39204
39205 else
a848cd7e
SC
39206
39207for ac_header in linux/joystick.h
39208do
39209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39210if eval "test \"\${$as_ac_Header+set}\" = set"; then
39211 echo "$as_me:$LINENO: checking for $ac_header" >&5
39212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39213if eval "test \"\${$as_ac_Header+set}\" = set"; then
39214 echo $ECHO_N "(cached) $ECHO_C" >&6
39215fi
39216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39218else
39219 # Is the header compilable?
39220echo "$as_me:$LINENO: checking $ac_header usability" >&5
39221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39222cat >conftest.$ac_ext <<_ACEOF
39223/* confdefs.h. */
39224_ACEOF
39225cat confdefs.h >>conftest.$ac_ext
39226cat >>conftest.$ac_ext <<_ACEOF
39227/* end confdefs.h. */
39228$ac_includes_default
39229#include <$ac_header>
39230_ACEOF
39231rm -f conftest.$ac_objext
39232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39233 (eval $ac_compile) 2>conftest.er1
a848cd7e 39234 ac_status=$?
ac1cb8d3
VS
39235 grep -v '^ *+' conftest.er1 >conftest.err
39236 rm -f conftest.er1
39237 cat conftest.err >&5
a848cd7e
SC
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); } &&
ddd14b14
RR
39240 { ac_try='test -z "$ac_c_werror_flag"
39241 || test ! -s conftest.err'
ac1cb8d3
VS
39242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243 (eval $ac_try) 2>&5
39244 ac_status=$?
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); }; } &&
39247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249 (eval $ac_try) 2>&5
39250 ac_status=$?
39251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252 (exit $ac_status); }; }; then
39253 ac_header_compiler=yes
39254else
39255 echo "$as_me: failed program was:" >&5
39256sed 's/^/| /' conftest.$ac_ext >&5
39257
39258ac_header_compiler=no
39259fi
ac1cb8d3 39260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39262echo "${ECHO_T}$ac_header_compiler" >&6
39263
39264# Is the header present?
39265echo "$as_me:$LINENO: checking $ac_header presence" >&5
39266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39267cat >conftest.$ac_ext <<_ACEOF
39268/* confdefs.h. */
39269_ACEOF
39270cat confdefs.h >>conftest.$ac_ext
39271cat >>conftest.$ac_ext <<_ACEOF
39272/* end confdefs.h. */
39273#include <$ac_header>
39274_ACEOF
39275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39277 ac_status=$?
39278 grep -v '^ *+' conftest.er1 >conftest.err
39279 rm -f conftest.er1
39280 cat conftest.err >&5
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); } >/dev/null; then
39283 if test -s conftest.err; then
39284 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39286 else
39287 ac_cpp_err=
39288 fi
39289else
39290 ac_cpp_err=yes
39291fi
39292if test -z "$ac_cpp_err"; then
39293 ac_header_preproc=yes
39294else
39295 echo "$as_me: failed program was:" >&5
39296sed 's/^/| /' conftest.$ac_ext >&5
39297
39298 ac_header_preproc=no
39299fi
39300rm -f conftest.err conftest.$ac_ext
39301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39302echo "${ECHO_T}$ac_header_preproc" >&6
39303
39304# So? What about this header?
ac1cb8d3
VS
39305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39306 yes:no: )
a848cd7e
SC
39307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39311 ac_header_preproc=yes
a848cd7e 39312 ;;
ac1cb8d3 39313 no:yes:* )
a848cd7e
SC
39314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39326 (
39327 cat <<\_ASBOX
ac1cb8d3
VS
39328## ----------------------------------------- ##
39329## Report this to wx-dev@lists.wxwidgets.org ##
39330## ----------------------------------------- ##
a848cd7e
SC
39331_ASBOX
39332 ) |
39333 sed "s/^/$as_me: WARNING: /" >&2
39334 ;;
39335esac
39336echo "$as_me:$LINENO: checking for $ac_header" >&5
39337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39338if eval "test \"\${$as_ac_Header+set}\" = set"; then
39339 echo $ECHO_N "(cached) $ECHO_C" >&6
39340else
ac1cb8d3 39341 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39342fi
39343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39345
39346fi
39347if test `eval echo '${'$as_ac_Header'}'` = yes; then
39348 cat >>confdefs.h <<_ACEOF
39349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39350_ACEOF
ee45c548 39351 wxUSE_JOYSTICK=yes
a848cd7e
SC
39352fi
39353
39354done
39355
ee45c548 39356 fi
4cb1d3da 39357
ee45c548
MW
39358 if test "$wxUSE_JOYSTICK" = "yes"; then
39359 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39360#define wxUSE_JOYSTICK 1
39361_ACEOF
39362
ee45c548
MW
39363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39364 else
39365 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39366echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39367 fi
39368fi
39369
39370
39371
39372if test "$wxUSE_FONTMAP" = "yes" ; then
39373 cat >>confdefs.h <<\_ACEOF
39374#define wxUSE_FONTMAP 1
39375_ACEOF
39376
39377fi
39378
39379if test "$wxUSE_UNICODE" = "yes" ; then
39380 cat >>confdefs.h <<\_ACEOF
39381#define wxUSE_UNICODE 1
39382_ACEOF
39383
39384
39385 if test "$USE_WIN32" != 1; then
39386 wxUSE_UNICODE_MSLU=no
39387 fi
39388
39389 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39390 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39391echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39392if test "${ac_cv_lib_unicows_main+set}" = set; then
39393 echo $ECHO_N "(cached) $ECHO_C" >&6
39394else
39395 ac_check_lib_save_LIBS=$LIBS
39396LIBS="-lunicows $LIBS"
39397cat >conftest.$ac_ext <<_ACEOF
39398/* confdefs.h. */
39399_ACEOF
39400cat confdefs.h >>conftest.$ac_ext
39401cat >>conftest.$ac_ext <<_ACEOF
39402/* end confdefs.h. */
39403
39404
39405int
39406main ()
39407{
39408main ();
39409 ;
39410 return 0;
39411}
39412_ACEOF
39413rm -f conftest.$ac_objext conftest$ac_exeext
39414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39415 (eval $ac_link) 2>conftest.er1
a848cd7e 39416 ac_status=$?
ac1cb8d3
VS
39417 grep -v '^ *+' conftest.er1 >conftest.err
39418 rm -f conftest.er1
39419 cat conftest.err >&5
a848cd7e
SC
39420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421 (exit $ac_status); } &&
ddd14b14
RR
39422 { ac_try='test -z "$ac_c_werror_flag"
39423 || test ! -s conftest.err'
ac1cb8d3
VS
39424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39425 (eval $ac_try) 2>&5
39426 ac_status=$?
39427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428 (exit $ac_status); }; } &&
39429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431 (eval $ac_try) 2>&5
39432 ac_status=$?
39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434 (exit $ac_status); }; }; then
39435 ac_cv_lib_unicows_main=yes
39436else
39437 echo "$as_me: failed program was:" >&5
39438sed 's/^/| /' conftest.$ac_ext >&5
39439
39440ac_cv_lib_unicows_main=no
39441fi
ac1cb8d3
VS
39442rm -f conftest.err conftest.$ac_objext \
39443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39444LIBS=$ac_check_lib_save_LIBS
39445fi
39446echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39447echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39448if test $ac_cv_lib_unicows_main = yes; then
39449
39450 cat >>confdefs.h <<\_ACEOF
39451#define wxUSE_UNICODE_MSLU 1
39452_ACEOF
39453
39454
39455else
39456
39457 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39458 Applications will only run on Windows NT/2000/XP!" >&5
39459echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39460 Applications will only run on Windows NT/2000/XP!" >&2;}
39461 wxUSE_UNICODE_MSLU=no
39462
39463fi
39464
39465 fi
39466fi
39467
39468if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39469 cat >>confdefs.h <<\_ACEOF
39470#define wxUSE_EXPERIMENTAL_PRINTF 1
39471_ACEOF
39472
39473fi
39474
39475
39476if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39477 cat >>confdefs.h <<\_ACEOF
39478#define wxUSE_POSTSCRIPT 1
39479_ACEOF
39480
39481fi
39482
39483cat >>confdefs.h <<\_ACEOF
39484#define wxUSE_AFM_FOR_POSTSCRIPT 1
39485_ACEOF
39486
39487
39488cat >>confdefs.h <<\_ACEOF
39489#define wxUSE_NORMALIZED_PS_FONTS 1
39490_ACEOF
39491
39492
39493
39494if test "$wxUSE_CONSTRAINTS" = "yes"; then
39495 cat >>confdefs.h <<\_ACEOF
39496#define wxUSE_CONSTRAINTS 1
39497_ACEOF
39498
39499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39500fi
39501
8a7b1113
VZ
39502if test "$wxUSE_MDI" = "yes"; then
39503 cat >>confdefs.h <<\_ACEOF
39504#define wxUSE_MDI 1
39505_ACEOF
39506
39507
39508 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39509 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39510#define wxUSE_MDI_ARCHITECTURE 1
39511_ACEOF
39512
8a7b1113
VZ
39513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39514 fi
a848cd7e
SC
39515fi
39516
39517if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39518 cat >>confdefs.h <<\_ACEOF
39519#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39520_ACEOF
39521
39522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39523 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39525 fi
39526fi
39527
39528if test "$wxUSE_HELP" = "yes"; then
39529 cat >>confdefs.h <<\_ACEOF
39530#define wxUSE_HELP 1
39531_ACEOF
39532
39533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39534
39535 if test "$wxUSE_MSW" = 1; then
39536 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39537 cat >>confdefs.h <<\_ACEOF
39538#define wxUSE_MS_HTML_HELP 1
39539_ACEOF
39540
39541 fi
39542 fi
39543
39544 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39545 if test "$wxUSE_HTML" = "yes"; then
39546 cat >>confdefs.h <<\_ACEOF
39547#define wxUSE_WXHTML_HELP 1
39548_ACEOF
39549
39550 else
39551 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39552echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39553 wxUSE_WXHTML_HELP=no
39554 fi
39555 fi
39556fi
39557
39558if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39559 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39560 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39561echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39562 else
39563 cat >>confdefs.h <<\_ACEOF
39564#define wxUSE_PRINTING_ARCHITECTURE 1
39565_ACEOF
39566
39567 fi
39568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39569fi
39570
39571if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39572 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39573echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39574 { (exit 1); exit 1; }; }
39575fi
39576
39577
39578if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39579 -o "$wxUSE_CLIPBOARD" = "yes" \
39580 -o "$wxUSE_OLE" = "yes" \
39581 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39582
39583for ac_header in ole2.h
39584do
39585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39586if eval "test \"\${$as_ac_Header+set}\" = set"; then
39587 echo "$as_me:$LINENO: checking for $ac_header" >&5
39588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39589if eval "test \"\${$as_ac_Header+set}\" = set"; then
39590 echo $ECHO_N "(cached) $ECHO_C" >&6
39591fi
39592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39594else
39595 # Is the header compilable?
39596echo "$as_me:$LINENO: checking $ac_header usability" >&5
39597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39598cat >conftest.$ac_ext <<_ACEOF
39599/* confdefs.h. */
39600_ACEOF
39601cat confdefs.h >>conftest.$ac_ext
39602cat >>conftest.$ac_ext <<_ACEOF
39603/* end confdefs.h. */
39604$ac_includes_default
39605#include <$ac_header>
39606_ACEOF
39607rm -f conftest.$ac_objext
39608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39609 (eval $ac_compile) 2>conftest.er1
a848cd7e 39610 ac_status=$?
ac1cb8d3
VS
39611 grep -v '^ *+' conftest.er1 >conftest.err
39612 rm -f conftest.er1
39613 cat conftest.err >&5
a848cd7e
SC
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
ddd14b14
RR
39616 { ac_try='test -z "$ac_c_werror_flag"
39617 || test ! -s conftest.err'
ac1cb8d3
VS
39618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39619 (eval $ac_try) 2>&5
39620 ac_status=$?
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); }; } &&
39623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625 (eval $ac_try) 2>&5
39626 ac_status=$?
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); }; }; then
39629 ac_header_compiler=yes
39630else
39631 echo "$as_me: failed program was:" >&5
39632sed 's/^/| /' conftest.$ac_ext >&5
39633
39634ac_header_compiler=no
39635fi
ac1cb8d3 39636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39638echo "${ECHO_T}$ac_header_compiler" >&6
39639
39640# Is the header present?
39641echo "$as_me:$LINENO: checking $ac_header presence" >&5
39642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39643cat >conftest.$ac_ext <<_ACEOF
39644/* confdefs.h. */
39645_ACEOF
39646cat confdefs.h >>conftest.$ac_ext
39647cat >>conftest.$ac_ext <<_ACEOF
39648/* end confdefs.h. */
39649#include <$ac_header>
39650_ACEOF
39651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39653 ac_status=$?
39654 grep -v '^ *+' conftest.er1 >conftest.err
39655 rm -f conftest.er1
39656 cat conftest.err >&5
39657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658 (exit $ac_status); } >/dev/null; then
39659 if test -s conftest.err; then
39660 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39662 else
39663 ac_cpp_err=
39664 fi
39665else
39666 ac_cpp_err=yes
39667fi
39668if test -z "$ac_cpp_err"; then
39669 ac_header_preproc=yes
39670else
39671 echo "$as_me: failed program was:" >&5
39672sed 's/^/| /' conftest.$ac_ext >&5
39673
39674 ac_header_preproc=no
39675fi
39676rm -f conftest.err conftest.$ac_ext
39677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39678echo "${ECHO_T}$ac_header_preproc" >&6
39679
39680# So? What about this header?
ac1cb8d3
VS
39681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39682 yes:no: )
a848cd7e
SC
39683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39687 ac_header_preproc=yes
a848cd7e 39688 ;;
ac1cb8d3 39689 no:yes:* )
a848cd7e
SC
39690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39702 (
39703 cat <<\_ASBOX
ac1cb8d3
VS
39704## ----------------------------------------- ##
39705## Report this to wx-dev@lists.wxwidgets.org ##
39706## ----------------------------------------- ##
a848cd7e
SC
39707_ASBOX
39708 ) |
39709 sed "s/^/$as_me: WARNING: /" >&2
39710 ;;
39711esac
39712echo "$as_me:$LINENO: checking for $ac_header" >&5
39713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39714if eval "test \"\${$as_ac_Header+set}\" = set"; then
39715 echo $ECHO_N "(cached) $ECHO_C" >&6
39716else
ac1cb8d3 39717 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39718fi
39719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39721
39722fi
39723if test `eval echo '${'$as_ac_Header'}'` = yes; then
39724 cat >>confdefs.h <<_ACEOF
39725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39726_ACEOF
39727
39728fi
39729
39730done
39731
39732
39733 if test "$ac_cv_header_ole2_h" = "yes" ; then
39734 if test "$GCC" = yes ; then
39735
39736
39737 ac_ext=cc
39738ac_cpp='$CXXCPP $CPPFLAGS'
39739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39742
39743
39744 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39745echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39746 cat >conftest.$ac_ext <<_ACEOF
39747/* confdefs.h. */
39748_ACEOF
39749cat confdefs.h >>conftest.$ac_ext
39750cat >>conftest.$ac_ext <<_ACEOF
39751/* end confdefs.h. */
39752#include <windows.h>
39753 #include <ole2.h>
39754int
39755main ()
39756{
39757
39758 ;
39759 return 0;
39760}
39761_ACEOF
39762rm -f conftest.$ac_objext
39763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39764 (eval $ac_compile) 2>conftest.er1
a848cd7e 39765 ac_status=$?
ac1cb8d3
VS
39766 grep -v '^ *+' conftest.er1 >conftest.err
39767 rm -f conftest.er1
39768 cat conftest.err >&5
a848cd7e
SC
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); } &&
ddd14b14
RR
39771 { ac_try='test -z "$ac_cxx_werror_flag"
39772 || test ! -s conftest.err'
ac1cb8d3
VS
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; } &&
39778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39781 ac_status=$?
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; }; then
39784 echo "$as_me:$LINENO: result: no" >&5
39785echo "${ECHO_T}no" >&6
39786else
39787 echo "$as_me: failed program was:" >&5
39788sed 's/^/| /' conftest.$ac_ext >&5
39789
39790echo "$as_me:$LINENO: result: yes" >&5
39791echo "${ECHO_T}yes" >&6
39792 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39793fi
ac1cb8d3 39794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39795 ac_ext=c
39796ac_cpp='$CPP $CPPFLAGS'
39797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39799ac_compiler_gnu=$ac_cv_c_compiler_gnu
39800
a848cd7e
SC
39801 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39802 if test "$wxUSE_OLE" = "yes" ; then
39803 cat >>confdefs.h <<\_ACEOF
39804#define wxUSE_OLE 1
39805_ACEOF
39806
0b78747f 39807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39808 fi
39809 fi
39810
39811 if test "$wxUSE_DATAOBJ" = "yes" ; then
39812 cat >>confdefs.h <<\_ACEOF
39813#define wxUSE_DATAOBJ 1
39814_ACEOF
39815
39816 fi
39817 else
39818 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39819echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39820
39821 wxUSE_CLIPBOARD=no
39822 wxUSE_DRAG_AND_DROP=no
39823 wxUSE_DATAOBJ=no
39824 wxUSE_OLE=no
39825 fi
39826
39827 if test "$wxUSE_METAFILE" = "yes"; then
39828 cat >>confdefs.h <<\_ACEOF
39829#define wxUSE_METAFILE 1
39830_ACEOF
39831
39832
39833 cat >>confdefs.h <<\_ACEOF
39834#define wxUSE_ENH_METAFILE 1
39835_ACEOF
39836
39837 fi
39838fi
39839
39840if test "$wxUSE_IPC" = "yes"; then
0b78747f 39841 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39842 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39843echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39844 wxUSE_IPC=no
a848cd7e
SC
39845 fi
39846
0b78747f
MW
39847 if test "$wxUSE_IPC" = "yes"; then
39848 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39849#define wxUSE_IPC 1
39850_ACEOF
39851
0b78747f
MW
39852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39853 fi
a848cd7e
SC
39854fi
39855
eb730a0c 39856if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39857 if test "$wxUSE_MGL" = 1; then
39858 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39859echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39860 wxUSE_DATAOBJ=no
39861 else
39862 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39863#define wxUSE_DATAOBJ 1
39864_ACEOF
39865
2113bc77 39866 fi
eb730a0c
JS
39867else
39868 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39869echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39870 wxUSE_CLIPBOARD=no
39871 wxUSE_DRAG_AND_DROP=no
39872fi
39873
a848cd7e
SC
39874if test "$wxUSE_CLIPBOARD" = "yes"; then
39875 if test "$wxUSE_MGL" = 1; then
39876 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39877echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39878 wxUSE_CLIPBOARD=no
39879 fi
39880
39881 if test "$wxUSE_CLIPBOARD" = "yes"; then
39882 cat >>confdefs.h <<\_ACEOF
39883#define wxUSE_CLIPBOARD 1
39884_ACEOF
39885
a848cd7e
SC
39886 fi
39887fi
39888
39889if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39890 if test "$wxUSE_GTK" = 1; then
39891 if test "$WXGTK12" != 1; then
39892 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39893echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39894 wxUSE_DRAG_AND_DROP=no
39895 fi
39896 fi
39897
39898 if test "$wxUSE_MOTIF" = 1; then
39899 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39900echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39901 wxUSE_DRAG_AND_DROP=no
39902 fi
39903
39904 if test "$wxUSE_X11" = 1; then
39905 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39906echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39907 wxUSE_DRAG_AND_DROP=no
39908 fi
39909
39910 if test "$wxUSE_MGL" = 1; then
39911 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39912echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39913 wxUSE_DRAG_AND_DROP=no
39914 fi
39915
39916 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39917 cat >>confdefs.h <<\_ACEOF
39918#define wxUSE_DRAG_AND_DROP 1
39919_ACEOF
39920
39921 fi
39922
39923fi
39924
39925if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39927fi
39928
39929if test "$wxUSE_SPLINES" = "yes" ; then
39930 cat >>confdefs.h <<\_ACEOF
39931#define wxUSE_SPLINES 1
39932_ACEOF
39933
39934fi
39935
fbe2ca43
SN
39936if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39937 cat >>confdefs.h <<\_ACEOF
39938#define wxUSE_MOUSEWHEEL 1
39939_ACEOF
39940
39941fi
39942
a848cd7e
SC
39943
39944USES_CONTROLS=0
39945if test "$wxUSE_CONTROLS" = "yes"; then
39946 USES_CONTROLS=1
39947fi
39948
39949if test "$wxUSE_ACCEL" = "yes"; then
39950 cat >>confdefs.h <<\_ACEOF
39951#define wxUSE_ACCEL 1
39952_ACEOF
39953
39954 USES_CONTROLS=1
39955fi
39956
39957if test "$wxUSE_BUTTON" = "yes"; then
39958 cat >>confdefs.h <<\_ACEOF
39959#define wxUSE_BUTTON 1
39960_ACEOF
39961
39962 USES_CONTROLS=1
39963fi
39964
39965if test "$wxUSE_BMPBUTTON" = "yes"; then
39966 cat >>confdefs.h <<\_ACEOF
39967#define wxUSE_BMPBUTTON 1
39968_ACEOF
39969
39970 USES_CONTROLS=1
39971fi
39972
39973if test "$wxUSE_CALCTRL" = "yes"; then
39974 cat >>confdefs.h <<\_ACEOF
39975#define wxUSE_CALENDARCTRL 1
39976_ACEOF
39977
39978 USES_CONTROLS=1
39979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39980fi
39981
39982if test "$wxUSE_CARET" = "yes"; then
39983 cat >>confdefs.h <<\_ACEOF
39984#define wxUSE_CARET 1
39985_ACEOF
39986
39987 USES_CONTROLS=1
39988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39989fi
39990
39991if test "$wxUSE_COMBOBOX" = "yes"; then
39992 cat >>confdefs.h <<\_ACEOF
39993#define wxUSE_COMBOBOX 1
39994_ACEOF
39995
39996 USES_CONTROLS=1
39997fi
39998
39999if test "$wxUSE_CHOICE" = "yes"; then
40000 cat >>confdefs.h <<\_ACEOF
40001#define wxUSE_CHOICE 1
40002_ACEOF
40003
40004 USES_CONTROLS=1
40005fi
40006
92bbdbcd
WS
40007if test "$wxUSE_CHOICEBOOK" = "yes"; then
40008 cat >>confdefs.h <<\_ACEOF
40009#define wxUSE_CHOICEBOOK 1
40010_ACEOF
40011
40012 USES_CONTROLS=1
40013fi
40014
a848cd7e
SC
40015if test "$wxUSE_CHECKBOX" = "yes"; then
40016 cat >>confdefs.h <<\_ACEOF
40017#define wxUSE_CHECKBOX 1
40018_ACEOF
40019
40020 USES_CONTROLS=1
40021fi
40022
40023if test "$wxUSE_CHECKLST" = "yes"; then
40024 cat >>confdefs.h <<\_ACEOF
40025#define wxUSE_CHECKLISTBOX 1
40026_ACEOF
40027
40028 USES_CONTROLS=1
40029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40030fi
40031
da98e9be
VZ
40032if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40033 cat >>confdefs.h <<\_ACEOF
40034#define wxUSE_DATEPICKCTRL 1
40035_ACEOF
40036
40037 USES_CONTROLS=1
40038fi
40039
a848cd7e
SC
40040if test "$wxUSE_DISPLAY" = "yes"; then
40041 cat >>confdefs.h <<\_ACEOF
40042#define wxUSE_DISPLAY 1
40043_ACEOF
40044
0b78747f 40045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40046fi
40047
40048if test "$wxUSE_GAUGE" = "yes"; then
40049 cat >>confdefs.h <<\_ACEOF
40050#define wxUSE_GAUGE 1
40051_ACEOF
40052
40053 USES_CONTROLS=1
40054fi
40055
40056if test "$wxUSE_GRID" = "yes"; then
40057 cat >>confdefs.h <<\_ACEOF
40058#define wxUSE_GRID 1
40059_ACEOF
40060
40061 USES_CONTROLS=1
40062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40063fi
40064
40065if test "$wxUSE_IMAGLIST" = "yes"; then
40066 cat >>confdefs.h <<\_ACEOF
40067#define wxUSE_IMAGLIST 1
40068_ACEOF
40069
40070fi
40071
40072if test "$wxUSE_LISTBOOK" = "yes"; then
40073 cat >>confdefs.h <<\_ACEOF
40074#define wxUSE_LISTBOOK 1
40075_ACEOF
40076
40077 USES_CONTROLS=1
40078fi
40079
40080if test "$wxUSE_LISTBOX" = "yes"; then
40081 cat >>confdefs.h <<\_ACEOF
40082#define wxUSE_LISTBOX 1
40083_ACEOF
40084
40085 USES_CONTROLS=1
0b78747f 40086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40087fi
40088
40089if test "$wxUSE_LISTCTRL" = "yes"; then
40090 if test "$wxUSE_IMAGLIST" = "yes"; then
40091 cat >>confdefs.h <<\_ACEOF
40092#define wxUSE_LISTCTRL 1
40093_ACEOF
40094
40095 USES_CONTROLS=1
40096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40097 else
40098 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40099echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40100 fi
40101fi
40102
40103if test "$wxUSE_NOTEBOOK" = "yes"; then
40104 cat >>confdefs.h <<\_ACEOF
40105#define wxUSE_NOTEBOOK 1
40106_ACEOF
40107
40108 USES_CONTROLS=1
40109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40110fi
40111
40112
40113if test "$wxUSE_RADIOBOX" = "yes"; then
40114 cat >>confdefs.h <<\_ACEOF
40115#define wxUSE_RADIOBOX 1
40116_ACEOF
40117
40118 USES_CONTROLS=1
40119fi
40120
40121if test "$wxUSE_RADIOBTN" = "yes"; then
40122 cat >>confdefs.h <<\_ACEOF
40123#define wxUSE_RADIOBTN 1
40124_ACEOF
40125
40126 USES_CONTROLS=1
40127fi
40128
40129if test "$wxUSE_SASH" = "yes"; then
40130 cat >>confdefs.h <<\_ACEOF
40131#define wxUSE_SASH 1
40132_ACEOF
40133
40134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40135fi
40136
40137if test "$wxUSE_SCROLLBAR" = "yes"; then
40138 cat >>confdefs.h <<\_ACEOF
40139#define wxUSE_SCROLLBAR 1
40140_ACEOF
40141
40142 USES_CONTROLS=1
40143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40144fi
40145
40146if test "$wxUSE_SLIDER" = "yes"; then
40147 cat >>confdefs.h <<\_ACEOF
40148#define wxUSE_SLIDER 1
40149_ACEOF
40150
40151 USES_CONTROLS=1
40152fi
40153
40154if test "$wxUSE_SPINBTN" = "yes"; then
40155 cat >>confdefs.h <<\_ACEOF
40156#define wxUSE_SPINBTN 1
40157_ACEOF
40158
40159 USES_CONTROLS=1
40160fi
40161
40162if test "$wxUSE_SPINCTRL" = "yes"; then
40163 cat >>confdefs.h <<\_ACEOF
40164#define wxUSE_SPINCTRL 1
40165_ACEOF
40166
40167 USES_CONTROLS=1
40168fi
40169
40170if test "$wxUSE_SPLITTER" = "yes"; then
40171 cat >>confdefs.h <<\_ACEOF
40172#define wxUSE_SPLITTER 1
40173_ACEOF
40174
40175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40176fi
40177
40178if test "$wxUSE_STATBMP" = "yes"; then
40179 cat >>confdefs.h <<\_ACEOF
40180#define wxUSE_STATBMP 1
40181_ACEOF
40182
40183 USES_CONTROLS=1
40184fi
40185
40186if test "$wxUSE_STATBOX" = "yes"; then
40187 cat >>confdefs.h <<\_ACEOF
40188#define wxUSE_STATBOX 1
40189_ACEOF
40190
40191 USES_CONTROLS=1
40192fi
40193
40194if test "$wxUSE_STATTEXT" = "yes"; then
40195 cat >>confdefs.h <<\_ACEOF
40196#define wxUSE_STATTEXT 1
40197_ACEOF
40198
40199 USES_CONTROLS=1
40200fi
40201
40202if test "$wxUSE_STATLINE" = "yes"; then
40203 cat >>confdefs.h <<\_ACEOF
40204#define wxUSE_STATLINE 1
40205_ACEOF
40206
40207 USES_CONTROLS=1
40208fi
40209
40210if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40211 cat >>confdefs.h <<\_ACEOF
40212#define wxUSE_NATIVE_STATUSBAR 1
40213_ACEOF
40214
a848cd7e
SC
40215 cat >>confdefs.h <<\_ACEOF
40216#define wxUSE_STATUSBAR 1
40217_ACEOF
40218
40219 USES_CONTROLS=1
40220
40221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40222fi
40223
40224if test "$wxUSE_TABDIALOG" = "yes"; then
40225 cat >>confdefs.h <<\_ACEOF
40226#define wxUSE_TAB_DIALOG 1
40227_ACEOF
40228
a848cd7e
SC
40229fi
40230
40231if test "$wxUSE_TEXTCTRL" = "yes"; then
40232 cat >>confdefs.h <<\_ACEOF
40233#define wxUSE_TEXTCTRL 1
40234_ACEOF
40235
40236 USES_CONTROLS=1
40237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40238fi
40239
40240if test "$wxUSE_TOGGLEBTN" = "yes"; then
40241 if test "$wxUSE_COCOA" = 1 ; then
40242 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40243echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40244 wxUSE_TOGGLEBTN=no
40245 fi
40246 if test "$wxUSE_UNIVERSAL" = "yes"; then
40247 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40248echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40249 wxUSE_TOGGLEBTN=no
40250 fi
40251
40252 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40253 cat >>confdefs.h <<\_ACEOF
40254#define wxUSE_TOGGLEBTN 1
40255_ACEOF
40256
40257 USES_CONTROLS=1
40258 fi
40259fi
40260
40261if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40262 cat >>confdefs.h <<\_ACEOF
40263#define wxUSE_TOOLBAR_SIMPLE 1
40264_ACEOF
40265
40266 wxUSE_TOOLBAR="yes"
40267 USES_CONTROLS=1
40268fi
40269
40270if test "$wxUSE_TOOLBAR" = "yes"; then
40271 cat >>confdefs.h <<\_ACEOF
40272#define wxUSE_TOOLBAR 1
40273_ACEOF
40274
40275 USES_CONTROLS=1
40276
40277 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40278 wxUSE_TOOLBAR_NATIVE="yes"
40279 fi
40280
40281 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40282 cat >>confdefs.h <<\_ACEOF
40283#define wxUSE_TOOLBAR_NATIVE 1
40284_ACEOF
40285
40286 USES_CONTROLS=1
40287 fi
40288
40289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40290fi
40291
40292if test "$wxUSE_TOOLTIPS" = "yes"; then
40293 if test "$wxUSE_MOTIF" = 1; then
40294 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40295echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40296 else
40297 if test "$wxUSE_UNIVERSAL" = "yes"; then
40298 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40299echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40300 else
40301 cat >>confdefs.h <<\_ACEOF
40302#define wxUSE_TOOLTIPS 1
40303_ACEOF
40304
40305 fi
40306 fi
40307fi
40308
40309if test "$wxUSE_TREECTRL" = "yes"; then
40310 if test "$wxUSE_IMAGLIST" = "yes"; then
40311 cat >>confdefs.h <<\_ACEOF
40312#define wxUSE_TREECTRL 1
40313_ACEOF
40314
40315 USES_CONTROLS=1
40316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40317 else
40318 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40319echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40320 fi
40321fi
40322
40323if test "$wxUSE_POPUPWIN" = "yes"; then
40324 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40325 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40326echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40327 else
40328 if test "$wxUSE_PM" = 1; then
40329 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40330echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40331 else
40332 cat >>confdefs.h <<\_ACEOF
40333#define wxUSE_POPUPWIN 1
40334_ACEOF
40335
0b78747f 40336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40337
40338 USES_CONTROLS=1
40339 fi
40340 fi
40341fi
40342
0dcd06dd 40343if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40344 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40345 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40346echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40347 else
40348 cat >>confdefs.h <<\_ACEOF
40349#define wxUSE_DIALUP_MANAGER 1
40350_ACEOF
40351
40352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40353 fi
40354fi
40355
a848cd7e
SC
40356if test "$wxUSE_TIPWINDOW" = "yes"; then
40357 if test "$wxUSE_PM" = 1; then
40358 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40359echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40360 else
40361 cat >>confdefs.h <<\_ACEOF
40362#define wxUSE_TIPWINDOW 1
40363_ACEOF
40364
40365 fi
40366fi
40367
40368if test "$USES_CONTROLS" = 1; then
40369 cat >>confdefs.h <<\_ACEOF
40370#define wxUSE_CONTROLS 1
40371_ACEOF
40372
40373fi
40374
40375
40376if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40377 cat >>confdefs.h <<\_ACEOF
40378#define wxUSE_ACCESSIBILITY 1
40379_ACEOF
40380
40381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40382fi
40383
40384if test "$wxUSE_DRAGIMAGE" = "yes"; then
40385 cat >>confdefs.h <<\_ACEOF
40386#define wxUSE_DRAGIMAGE 1
40387_ACEOF
40388
40389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40390fi
40391
40392if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40393 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40394 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40395echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40396 else
40397 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40398#define wxUSE_EXCEPTIONS 1
40399_ACEOF
40400
07bea8f0
VS
40401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40402 fi
a848cd7e
SC
40403fi
40404
40405USE_HTML=0
40406if test "$wxUSE_HTML" = "yes"; then
40407 cat >>confdefs.h <<\_ACEOF
40408#define wxUSE_HTML 1
40409_ACEOF
40410
40411 USE_HTML=1
40412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40413 if test "$wxUSE_MAC" = 1; then
40414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40415 fi
a848cd7e 40416fi
646b6ec1 40417if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40418 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40419 old_CPPFLAGS="$CPPFLAGS"
40420 CPPFLAGS="$CPPFLAGS -x objective-c++"
40421 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40422echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40423if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40424 echo $ECHO_N "(cached) $ECHO_C" >&6
40425else
40426 cat >conftest.$ac_ext <<_ACEOF
40427/* confdefs.h. */
40428_ACEOF
40429cat confdefs.h >>conftest.$ac_ext
40430cat >>conftest.$ac_ext <<_ACEOF
40431/* end confdefs.h. */
40432#include <Carbon/Carbon.h>
40433
40434#include <WebKit/HIWebView.h>
40435_ACEOF
40436rm -f conftest.$ac_objext
40437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40438 (eval $ac_compile) 2>conftest.er1
40439 ac_status=$?
40440 grep -v '^ *+' conftest.er1 >conftest.err
40441 rm -f conftest.er1
40442 cat conftest.err >&5
40443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444 (exit $ac_status); } &&
ddd14b14
RR
40445 { ac_try='test -z "$ac_c_werror_flag"
40446 || test ! -s conftest.err'
07bea8f0
VS
40447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40448 (eval $ac_try) 2>&5
40449 ac_status=$?
40450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 (exit $ac_status); }; } &&
40452 { ac_try='test -s conftest.$ac_objext'
40453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40454 (eval $ac_try) 2>&5
40455 ac_status=$?
40456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457 (exit $ac_status); }; }; then
40458 ac_cv_header_WebKit_HIWebView_h=yes
40459else
40460 echo "$as_me: failed program was:" >&5
40461sed 's/^/| /' conftest.$ac_ext >&5
40462
40463ac_cv_header_WebKit_HIWebView_h=no
40464fi
40465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40466fi
40467echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40468echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40469if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40470
40471 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40472#define wxUSE_WEBKIT 1
40473_ACEOF
40474
07bea8f0
VS
40475 WEBKIT_LINK="-framework WebKit"
40476
40477else
40478
40479 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40480echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40481 wxUSE_WEBKIT=no
40482
646b6ec1
VS
40483fi
40484
07bea8f0
VS
40485
40486 CPPFLAGS="$old_CPPFLAGS"
40487 elif test "$wxUSE_COCOA" = 1; then
40488 cat >>confdefs.h <<\_ACEOF
40489#define wxUSE_WEBKIT 1
40490_ACEOF
40491
40492 else
40493 wxUSE_WEBKIT=no
40494 fi
40495fi
40496
9a8f0513
VS
40497USE_XRC=0
40498if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40499 if test "$wxUSE_XML" != "yes"; then
40500 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40501echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40502 wxUSE_XRC=no
40503 else
40504 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40505#define wxUSE_XRC 1
40506_ACEOF
40507
d2ebf0b7
VS
40508 USE_XRC=1
40509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40510 fi
9a8f0513 40511fi
07bea8f0 40512
a848cd7e
SC
40513if test "$wxUSE_MENUS" = "yes"; then
40514 cat >>confdefs.h <<\_ACEOF
40515#define wxUSE_MENUS 1
40516_ACEOF
40517
40518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40519fi
40520
40521if test "$wxUSE_METAFILE" = "yes"; then
40522 cat >>confdefs.h <<\_ACEOF
40523#define wxUSE_METAFILE 1
40524_ACEOF
40525
40526fi
40527
40528if test "$wxUSE_MIMETYPE" = "yes"; then
40529 cat >>confdefs.h <<\_ACEOF
40530#define wxUSE_MIMETYPE 1
40531_ACEOF
40532
40533fi
40534
40535if test "$wxUSE_MINIFRAME" = "yes"; then
40536 cat >>confdefs.h <<\_ACEOF
40537#define wxUSE_MINIFRAME 1
40538_ACEOF
40539
40540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40541fi
40542
40543if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40544 cat >>confdefs.h <<\_ACEOF
40545#define wxUSE_SYSTEM_OPTIONS 1
40546_ACEOF
40547
40548 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40549 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40551 fi
40552fi
40553
40554
40555if test "$wxUSE_VALIDATORS" = "yes"; then
40556 cat >>confdefs.h <<\_ACEOF
40557#define wxUSE_VALIDATORS 1
40558_ACEOF
40559
40560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40561fi
40562
40563if test "$wxUSE_PALETTE" = "yes" ; then
40564 cat >>confdefs.h <<\_ACEOF
40565#define wxUSE_PALETTE 1
40566_ACEOF
40567
40568fi
40569
40570if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40571 LIBS=" -lunicows $LIBS"
40572fi
40573
40574
40575if test "$wxUSE_IMAGE" = "yes" ; then
40576 cat >>confdefs.h <<\_ACEOF
40577#define wxUSE_IMAGE 1
40578_ACEOF
40579
40580
40581 if test "$wxUSE_GIF" = "yes" ; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_GIF 1
40584_ACEOF
40585
40586 fi
40587
40588 if test "$wxUSE_PCX" = "yes" ; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_PCX 1
40591_ACEOF
40592
40593 fi
40594
40595 if test "$wxUSE_IFF" = "yes" ; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define wxUSE_IFF 1
40598_ACEOF
40599
40600 fi
40601
40602 if test "$wxUSE_PNM" = "yes" ; then
40603 cat >>confdefs.h <<\_ACEOF
40604#define wxUSE_PNM 1
40605_ACEOF
40606
40607 fi
40608
40609 if test "$wxUSE_XPM" = "yes" ; then
40610 cat >>confdefs.h <<\_ACEOF
40611#define wxUSE_XPM 1
40612_ACEOF
40613
40614 fi
40615
40616 if test "$wxUSE_ICO_CUR" = "yes" ; then
40617 cat >>confdefs.h <<\_ACEOF
40618#define wxUSE_ICO_CUR 1
40619_ACEOF
40620
40621 fi
40622fi
40623
40624
40625if test "$wxUSE_CHOICEDLG" = "yes"; then
40626 cat >>confdefs.h <<\_ACEOF
40627#define wxUSE_CHOICEDLG 1
40628_ACEOF
40629
40630fi
40631
40632if test "$wxUSE_COLOURDLG" = "yes"; then
40633 cat >>confdefs.h <<\_ACEOF
40634#define wxUSE_COLOURDLG 1
40635_ACEOF
40636
40637fi
40638
40639if test "$wxUSE_FILEDLG" = "yes"; then
40640 cat >>confdefs.h <<\_ACEOF
40641#define wxUSE_FILEDLG 1
40642_ACEOF
40643
40644fi
40645
40646if test "$wxUSE_FINDREPLDLG" = "yes"; then
40647 cat >>confdefs.h <<\_ACEOF
40648#define wxUSE_FINDREPLDLG 1
40649_ACEOF
40650
40651fi
40652
40653if test "$wxUSE_FONTDLG" = "yes"; then
40654 cat >>confdefs.h <<\_ACEOF
40655#define wxUSE_FONTDLG 1
40656_ACEOF
40657
40658fi
40659
40660if test "$wxUSE_DIRDLG" = "yes"; then
40661 if test "$wxUSE_TREECTRL" != "yes"; then
40662 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40663echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40664 else
40665 cat >>confdefs.h <<\_ACEOF
40666#define wxUSE_DIRDLG 1
40667_ACEOF
40668
40669 fi
40670fi
40671
40672if test "$wxUSE_MSGDLG" = "yes"; then
40673 cat >>confdefs.h <<\_ACEOF
40674#define wxUSE_MSGDLG 1
40675_ACEOF
40676
40677fi
40678
40679if test "$wxUSE_NUMBERDLG" = "yes"; then
40680 cat >>confdefs.h <<\_ACEOF
40681#define wxUSE_NUMBERDLG 1
40682_ACEOF
40683
40684fi
40685
40686if test "$wxUSE_PROGRESSDLG" = "yes"; then
40687 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40688 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40689echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40690 else
40691 cat >>confdefs.h <<\_ACEOF
40692#define wxUSE_PROGRESSDLG 1
40693_ACEOF
40694
40695 fi
40696fi
40697
40698if test "$wxUSE_SPLASH" = "yes"; then
40699 cat >>confdefs.h <<\_ACEOF
40700#define wxUSE_SPLASH 1
40701_ACEOF
40702
2057db16 40703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40704fi
40705
40706if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40707 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40708 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40709echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40710 else
40711 cat >>confdefs.h <<\_ACEOF
40712#define wxUSE_STARTUP_TIPS 1
40713_ACEOF
40714
40715 fi
40716fi
40717
40718if test "$wxUSE_TEXTDLG" = "yes"; then
40719 cat >>confdefs.h <<\_ACEOF
40720#define wxUSE_TEXTDLG 1
40721_ACEOF
40722
40723fi
40724
40725if test "$wxUSE_WIZARDDLG" = "yes"; then
40726 cat >>confdefs.h <<\_ACEOF
40727#define wxUSE_WIZARDDLG 1
40728_ACEOF
40729
40730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40731fi
40732
40733
ce756cb0 40734if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40735 if test "$wxUSE_GTK" = 1; then
40736 wxUSE_GSTREAMER="yes"
40737
ce756cb0 40738
dae87f93 40739 succeeded=no
ce756cb0 40740
dae87f93
RN
40741 if test -z "$PKG_CONFIG"; then
40742 # Extract the first word of "pkg-config", so it can be a program name with args.
40743set dummy pkg-config; ac_word=$2
40744echo "$as_me:$LINENO: checking for $ac_word" >&5
40745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40746if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40747 echo $ECHO_N "(cached) $ECHO_C" >&6
40748else
40749 case $PKG_CONFIG in
40750 [\\/]* | ?:[\\/]*)
40751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40752 ;;
40753 *)
40754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40755for as_dir in $PATH
40756do
40757 IFS=$as_save_IFS
40758 test -z "$as_dir" && as_dir=.
40759 for ac_exec_ext in '' $ac_executable_extensions; do
40760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40763 break 2
40764 fi
40765done
40766done
40767
40768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40769 ;;
40770esac
40771fi
40772PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40773
40774if test -n "$PKG_CONFIG"; then
40775 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40776echo "${ECHO_T}$PKG_CONFIG" >&6
40777else
40778 echo "$as_me:$LINENO: result: no" >&5
40779echo "${ECHO_T}no" >&6
40780fi
40781
40782 fi
40783
40784 if test "$PKG_CONFIG" = "no" ; then
40785 echo "*** The pkg-config script could not be found. Make sure it is"
40786 echo "*** in your path, or set the PKG_CONFIG environment variable"
40787 echo "*** to the full path to pkg-config."
40788 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40789 else
40790 PKG_CONFIG_MIN_VERSION=0.9.0
40791 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40792 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40793echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40794
40795 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40796 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40797echo "${ECHO_T}yes" >&6
dae87f93 40798 succeeded=yes
ce756cb0 40799
dae87f93
RN
40800 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40801echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40802 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40803 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40804echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40805
40806 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40807echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40808 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40809 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40810echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40811 else
40812 GSTREAMER_CFLAGS=""
40813 GSTREAMER_LIBS=""
40814 ## If we have a custom action on failure, don't print errors, but
40815 ## do set a variable so people can do so.
40816 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40817
dae87f93
RN
40818 fi
40819
40820
40821
40822 else
40823 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40824 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40825 fi
40826 fi
40827
40828 if test $succeeded = yes; then
40829
40830 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40831 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40832
ce756cb0 40833 else
dae87f93
RN
40834
40835 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40836echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40837 wxUSE_GSTREAMER="no"
40838
40839 fi
40840
40841
40842
40843
40844
40845 if test "x$GST_INSPECT" == "x"; then
40846 # Extract the first word of "gst-inspect", so it can be a program name with args.
40847set dummy gst-inspect; ac_word=$2
40848echo "$as_me:$LINENO: checking for $ac_word" >&5
40849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40850if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40851 echo $ECHO_N "(cached) $ECHO_C" >&6
40852else
40853 if test -n "$GST_INSPECT"; then
40854 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40855else
40856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40857for as_dir in $PATH
40858do
40859 IFS=$as_save_IFS
40860 test -z "$as_dir" && as_dir=.
40861 for ac_exec_ext in '' $ac_executable_extensions; do
40862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40863 ac_cv_prog_GST_INSPECT="gst-inspect"
40864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40865 break 2
ce756cb0 40866 fi
dae87f93
RN
40867done
40868done
40869
40870fi
40871fi
40872GST_INSPECT=$ac_cv_prog_GST_INSPECT
40873if test -n "$GST_INSPECT"; then
40874 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40875echo "${ECHO_T}$GST_INSPECT" >&6
40876else
40877 echo "$as_me:$LINENO: result: no" >&5
40878echo "${ECHO_T}no" >&6
40879fi
40880
40881 fi
40882
40883 if test "x$GST_INSPECT" != "x"; then
40884 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40885echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40886 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40887 echo "$as_me:$LINENO: result: found." >&5
40888echo "${ECHO_T}found." >&6
ce756cb0 40889
ce756cb0 40890 else
dae87f93
RN
40891 echo "$as_me:$LINENO: result: not found." >&5
40892echo "${ECHO_T}not found." >&6
40893
40894 wxUSE_GSTREAMER="no"
40895 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40896echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40897
40898 fi
40899 fi
40900
40901
40902 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40903echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40904if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40905 echo $ECHO_N "(cached) $ECHO_C" >&6
40906else
40907 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40908/* confdefs.h. */
40909_ACEOF
40910cat confdefs.h >>conftest.$ac_ext
40911cat >>conftest.$ac_ext <<_ACEOF
40912/* end confdefs.h. */
dae87f93 40913#include <gst/gst.h>
ce756cb0 40914
dae87f93 40915#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40916_ACEOF
40917rm -f conftest.$ac_objext
40918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40919 (eval $ac_compile) 2>conftest.er1
40920 ac_status=$?
40921 grep -v '^ *+' conftest.er1 >conftest.err
40922 rm -f conftest.er1
40923 cat conftest.err >&5
40924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40925 (exit $ac_status); } &&
ddd14b14
RR
40926 { ac_try='test -z "$ac_c_werror_flag"
40927 || test ! -s conftest.err'
ce756cb0
RN
40928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929 (eval $ac_try) 2>&5
40930 ac_status=$?
40931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); }; } &&
40933 { ac_try='test -s conftest.$ac_objext'
40934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40935 (eval $ac_try) 2>&5
40936 ac_status=$?
40937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); }; }; then
dae87f93 40939 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40940else
40941 echo "$as_me: failed program was:" >&5
40942sed 's/^/| /' conftest.$ac_ext >&5
40943
dae87f93 40944ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40945fi
40946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40947fi
40948echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40949echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40950if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40951 :
40952else
ce756cb0 40953
dae87f93
RN
40954 wxUSE_GSTREAMER="no"
40955 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40956echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40957
dae87f93 40958fi
ce756cb0 40959
dae87f93
RN
40960
40961
40962 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40963echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40964
40965ac_find_libraries=
40966for ac_dir in $SEARCH_LIB /usr/lib;
40967 do
3eca31dc 40968 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
40969 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40970 ac_find_libraries=$ac_dir
40971 break 2
40972 fi
40973 done
40974 done
40975
ce756cb0 40976
dae87f93
RN
40977 if test "$ac_find_libraries" = "" ; then
40978 echo "$as_me:$LINENO: result: no" >&5
40979echo "${ECHO_T}no" >&6
40980 wxUSE_GSTREAMER="no"
40981 else
40982 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40983echo "${ECHO_T}yes" >&6
dae87f93 40984 fi
ce756cb0 40985
dae87f93
RN
40986 if test "$wxUSE_GSTREAMER" = "yes"; then
40987 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40988#define wxUSE_GSTREAMER 1
40989_ACEOF
40990
dae87f93
RN
40991 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40992echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40993 fi
40994 fi
40995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40996 cat >>confdefs.h <<\_ACEOF
40997#define wxUSE_MEDIACTRL 1
40998_ACEOF
40999
41000fi
41001
41002
a848cd7e
SC
41003if test "$cross_compiling" = "yes"; then
41004 OSINFO="\"$host\""
41005else
41006 OSINFO=`uname -s -r -m`
41007 OSINFO="\"$OSINFO\""
41008fi
41009
41010cat >>confdefs.h <<_ACEOF
41011#define WXWIN_OS_DESCRIPTION $OSINFO
41012_ACEOF
41013
41014
41015
41016if test "x$prefix" != "xNONE"; then
41017 wxPREFIX=$prefix
41018else
41019 wxPREFIX=$ac_default_prefix
41020fi
41021
41022cat >>confdefs.h <<_ACEOF
41023#define wxINSTALL_PREFIX "$wxPREFIX"
41024_ACEOF
41025
41026
a848cd7e
SC
41027
41028
41029CORE_BASE_LIBS="net base"
41030CORE_GUI_LIBS="adv core"
41031
41032if test "$wxUSE_XML" = "yes" ; then
41033 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41034fi
41035if test "$wxUSE_ODBC" != "no" ; then
41036 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41037 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41038fi
41039if test "$wxUSE_HTML" = "yes" ; then
41040 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41041fi
61639efb
VZ
41042if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41043 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41044fi
9a8f0513
VS
41045if test "$wxUSE_XRC" = "yes" ; then
41046 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41047fi
a848cd7e
SC
41048
41049if test "$wxUSE_GUI" != "yes"; then
41050 CORE_GUI_LIBS=""
41051fi
41052
41053
41054
41055
41056
41057
41058
41059
41060if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41061 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41062 if test "$USE_DARWIN" = 1; then
41063 LDFLAGS="$LDFLAGS -framework QuickTime"
41064 else
41065 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41066 fi
07bea8f0 41067 fi
5dcf30a0 41068 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41069 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41070 else
41071 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41072 fi
a848cd7e
SC
41073fi
41074if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41075 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41076 if test "$wxUSE_MEDIACTRL" = "yes"; then
41077 LDFLAGS="$LDFLAGS -framework QuickTime"
41078 fi
a848cd7e 41079fi
19b27e78
MW
41080if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41081 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41082fi
a848cd7e
SC
41083
41084
41085LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41086
41087have_cos=0
41088have_floor=0
41089
41090for ac_func in cos
41091do
41092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41093echo "$as_me:$LINENO: checking for $ac_func" >&5
41094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41095if eval "test \"\${$as_ac_var+set}\" = set"; then
41096 echo $ECHO_N "(cached) $ECHO_C" >&6
41097else
41098 cat >conftest.$ac_ext <<_ACEOF
41099/* confdefs.h. */
41100_ACEOF
41101cat confdefs.h >>conftest.$ac_ext
41102cat >>conftest.$ac_ext <<_ACEOF
41103/* end confdefs.h. */
ac1cb8d3
VS
41104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41106#define $ac_func innocuous_$ac_func
41107
a848cd7e
SC
41108/* System header to define __stub macros and hopefully few prototypes,
41109 which can conflict with char $ac_func (); below.
41110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41111 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41112
a848cd7e
SC
41113#ifdef __STDC__
41114# include <limits.h>
41115#else
41116# include <assert.h>
41117#endif
ac1cb8d3
VS
41118
41119#undef $ac_func
41120
a848cd7e
SC
41121/* Override any gcc2 internal prototype to avoid an error. */
41122#ifdef __cplusplus
41123extern "C"
41124{
41125#endif
41126/* We use char because int might match the return type of a gcc2
41127 builtin and then its argument prototype would still apply. */
41128char $ac_func ();
41129/* The GNU C library defines this for functions which it implements
41130 to always fail with ENOSYS. Some functions are actually named
41131 something starting with __ and the normal name is an alias. */
41132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41133choke me
41134#else
41135char (*f) () = $ac_func;
41136#endif
41137#ifdef __cplusplus
41138}
41139#endif
41140
41141int
41142main ()
41143{
41144return f != $ac_func;
41145 ;
41146 return 0;
41147}
41148_ACEOF
41149rm -f conftest.$ac_objext conftest$ac_exeext
41150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41151 (eval $ac_link) 2>conftest.er1
a848cd7e 41152 ac_status=$?
ac1cb8d3
VS
41153 grep -v '^ *+' conftest.er1 >conftest.err
41154 rm -f conftest.er1
41155 cat conftest.err >&5
a848cd7e
SC
41156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41157 (exit $ac_status); } &&
ddd14b14
RR
41158 { ac_try='test -z "$ac_c_werror_flag"
41159 || test ! -s conftest.err'
ac1cb8d3
VS
41160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161 (eval $ac_try) 2>&5
41162 ac_status=$?
41163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164 (exit $ac_status); }; } &&
41165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41167 (eval $ac_try) 2>&5
41168 ac_status=$?
41169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170 (exit $ac_status); }; }; then
41171 eval "$as_ac_var=yes"
41172else
41173 echo "$as_me: failed program was:" >&5
41174sed 's/^/| /' conftest.$ac_ext >&5
41175
41176eval "$as_ac_var=no"
41177fi
ac1cb8d3
VS
41178rm -f conftest.err conftest.$ac_objext \
41179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41180fi
41181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41183if test `eval echo '${'$as_ac_var'}'` = yes; then
41184 cat >>confdefs.h <<_ACEOF
41185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41186_ACEOF
41187 have_cos=1
41188fi
41189done
41190
41191
41192for ac_func in floor
41193do
41194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41195echo "$as_me:$LINENO: checking for $ac_func" >&5
41196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41197if eval "test \"\${$as_ac_var+set}\" = set"; then
41198 echo $ECHO_N "(cached) $ECHO_C" >&6
41199else
41200 cat >conftest.$ac_ext <<_ACEOF
41201/* confdefs.h. */
41202_ACEOF
41203cat confdefs.h >>conftest.$ac_ext
41204cat >>conftest.$ac_ext <<_ACEOF
41205/* end confdefs.h. */
ac1cb8d3
VS
41206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41208#define $ac_func innocuous_$ac_func
41209
a848cd7e
SC
41210/* System header to define __stub macros and hopefully few prototypes,
41211 which can conflict with char $ac_func (); below.
41212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41213 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41214
a848cd7e
SC
41215#ifdef __STDC__
41216# include <limits.h>
41217#else
41218# include <assert.h>
41219#endif
ac1cb8d3
VS
41220
41221#undef $ac_func
41222
a848cd7e
SC
41223/* Override any gcc2 internal prototype to avoid an error. */
41224#ifdef __cplusplus
41225extern "C"
41226{
41227#endif
41228/* We use char because int might match the return type of a gcc2
41229 builtin and then its argument prototype would still apply. */
41230char $ac_func ();
41231/* The GNU C library defines this for functions which it implements
41232 to always fail with ENOSYS. Some functions are actually named
41233 something starting with __ and the normal name is an alias. */
41234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41235choke me
41236#else
41237char (*f) () = $ac_func;
41238#endif
41239#ifdef __cplusplus
41240}
41241#endif
41242
41243int
41244main ()
41245{
41246return f != $ac_func;
41247 ;
41248 return 0;
41249}
41250_ACEOF
41251rm -f conftest.$ac_objext conftest$ac_exeext
41252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41253 (eval $ac_link) 2>conftest.er1
a848cd7e 41254 ac_status=$?
ac1cb8d3
VS
41255 grep -v '^ *+' conftest.er1 >conftest.err
41256 rm -f conftest.er1
41257 cat conftest.err >&5
a848cd7e
SC
41258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259 (exit $ac_status); } &&
ddd14b14
RR
41260 { ac_try='test -z "$ac_c_werror_flag"
41261 || test ! -s conftest.err'
ac1cb8d3
VS
41262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41263 (eval $ac_try) 2>&5
41264 ac_status=$?
41265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); }; } &&
41267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41269 (eval $ac_try) 2>&5
41270 ac_status=$?
41271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272 (exit $ac_status); }; }; then
41273 eval "$as_ac_var=yes"
41274else
41275 echo "$as_me: failed program was:" >&5
41276sed 's/^/| /' conftest.$ac_ext >&5
41277
41278eval "$as_ac_var=no"
41279fi
ac1cb8d3
VS
41280rm -f conftest.err conftest.$ac_objext \
41281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41282fi
41283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41285if test `eval echo '${'$as_ac_var'}'` = yes; then
41286 cat >>confdefs.h <<_ACEOF
41287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41288_ACEOF
41289 have_floor=1
41290fi
41291done
41292
41293echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41294echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41295if test "$have_cos" = 1 -a "$have_floor" = 1; then
41296 echo "$as_me:$LINENO: result: yes" >&5
41297echo "${ECHO_T}yes" >&6
41298else
41299 echo "$as_me:$LINENO: result: no" >&5
41300echo "${ECHO_T}no" >&6
41301 LIBS="$LIBS -lm"
41302 # use different functions to avoid configure caching
41303 have_sin=0
41304 have_ceil=0
41305
41306for ac_func in sin
41307do
41308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41309echo "$as_me:$LINENO: checking for $ac_func" >&5
41310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41311if eval "test \"\${$as_ac_var+set}\" = set"; then
41312 echo $ECHO_N "(cached) $ECHO_C" >&6
41313else
41314 cat >conftest.$ac_ext <<_ACEOF
41315/* confdefs.h. */
41316_ACEOF
41317cat confdefs.h >>conftest.$ac_ext
41318cat >>conftest.$ac_ext <<_ACEOF
41319/* end confdefs.h. */
ac1cb8d3
VS
41320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41322#define $ac_func innocuous_$ac_func
41323
a848cd7e
SC
41324/* System header to define __stub macros and hopefully few prototypes,
41325 which can conflict with char $ac_func (); below.
41326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41327 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41328
a848cd7e
SC
41329#ifdef __STDC__
41330# include <limits.h>
41331#else
41332# include <assert.h>
41333#endif
ac1cb8d3
VS
41334
41335#undef $ac_func
41336
a848cd7e
SC
41337/* Override any gcc2 internal prototype to avoid an error. */
41338#ifdef __cplusplus
41339extern "C"
41340{
41341#endif
41342/* We use char because int might match the return type of a gcc2
41343 builtin and then its argument prototype would still apply. */
41344char $ac_func ();
41345/* The GNU C library defines this for functions which it implements
41346 to always fail with ENOSYS. Some functions are actually named
41347 something starting with __ and the normal name is an alias. */
41348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41349choke me
41350#else
41351char (*f) () = $ac_func;
41352#endif
41353#ifdef __cplusplus
41354}
41355#endif
41356
41357int
41358main ()
41359{
41360return f != $ac_func;
41361 ;
41362 return 0;
41363}
41364_ACEOF
41365rm -f conftest.$ac_objext conftest$ac_exeext
41366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41367 (eval $ac_link) 2>conftest.er1
a848cd7e 41368 ac_status=$?
ac1cb8d3
VS
41369 grep -v '^ *+' conftest.er1 >conftest.err
41370 rm -f conftest.er1
41371 cat conftest.err >&5
a848cd7e
SC
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); } &&
ddd14b14
RR
41374 { ac_try='test -z "$ac_c_werror_flag"
41375 || test ! -s conftest.err'
ac1cb8d3
VS
41376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41377 (eval $ac_try) 2>&5
41378 ac_status=$?
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); }; } &&
41381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41383 (eval $ac_try) 2>&5
41384 ac_status=$?
41385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); }; }; then
41387 eval "$as_ac_var=yes"
41388else
41389 echo "$as_me: failed program was:" >&5
41390sed 's/^/| /' conftest.$ac_ext >&5
41391
41392eval "$as_ac_var=no"
41393fi
ac1cb8d3
VS
41394rm -f conftest.err conftest.$ac_objext \
41395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41396fi
41397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41398echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41399if test `eval echo '${'$as_ac_var'}'` = yes; then
41400 cat >>confdefs.h <<_ACEOF
41401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41402_ACEOF
41403 have_sin=1
41404fi
41405done
41406
41407
41408for ac_func in ceil
41409do
41410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41411echo "$as_me:$LINENO: checking for $ac_func" >&5
41412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41413if eval "test \"\${$as_ac_var+set}\" = set"; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41415else
41416 cat >conftest.$ac_ext <<_ACEOF
41417/* confdefs.h. */
41418_ACEOF
41419cat confdefs.h >>conftest.$ac_ext
41420cat >>conftest.$ac_ext <<_ACEOF
41421/* end confdefs.h. */
ac1cb8d3
VS
41422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41424#define $ac_func innocuous_$ac_func
41425
a848cd7e
SC
41426/* System header to define __stub macros and hopefully few prototypes,
41427 which can conflict with char $ac_func (); below.
41428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41429 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41430
a848cd7e
SC
41431#ifdef __STDC__
41432# include <limits.h>
41433#else
41434# include <assert.h>
41435#endif
ac1cb8d3
VS
41436
41437#undef $ac_func
41438
a848cd7e
SC
41439/* Override any gcc2 internal prototype to avoid an error. */
41440#ifdef __cplusplus
41441extern "C"
41442{
41443#endif
41444/* We use char because int might match the return type of a gcc2
41445 builtin and then its argument prototype would still apply. */
41446char $ac_func ();
41447/* The GNU C library defines this for functions which it implements
41448 to always fail with ENOSYS. Some functions are actually named
41449 something starting with __ and the normal name is an alias. */
41450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41451choke me
41452#else
41453char (*f) () = $ac_func;
41454#endif
41455#ifdef __cplusplus
41456}
41457#endif
41458
41459int
41460main ()
41461{
41462return f != $ac_func;
41463 ;
41464 return 0;
41465}
41466_ACEOF
41467rm -f conftest.$ac_objext conftest$ac_exeext
41468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41469 (eval $ac_link) 2>conftest.er1
a848cd7e 41470 ac_status=$?
ac1cb8d3
VS
41471 grep -v '^ *+' conftest.er1 >conftest.err
41472 rm -f conftest.er1
41473 cat conftest.err >&5
a848cd7e
SC
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); } &&
ddd14b14
RR
41476 { ac_try='test -z "$ac_c_werror_flag"
41477 || test ! -s conftest.err'
ac1cb8d3
VS
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41480 ac_status=$?
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } &&
41483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485 (eval $ac_try) 2>&5
41486 ac_status=$?
41487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488 (exit $ac_status); }; }; then
41489 eval "$as_ac_var=yes"
41490else
41491 echo "$as_me: failed program was:" >&5
41492sed 's/^/| /' conftest.$ac_ext >&5
41493
41494eval "$as_ac_var=no"
41495fi
ac1cb8d3
VS
41496rm -f conftest.err conftest.$ac_objext \
41497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41498fi
41499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41501if test `eval echo '${'$as_ac_var'}'` = yes; then
41502 cat >>confdefs.h <<_ACEOF
41503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41504_ACEOF
41505 have_ceil=1
41506fi
41507done
41508
41509 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41510echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41511 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41512 echo "$as_me:$LINENO: result: yes" >&5
41513echo "${ECHO_T}yes" >&6
41514 else
41515 echo "$as_me:$LINENO: result: no" >&5
41516echo "${ECHO_T}no" >&6
41517 # not sure we should warn the user, crash, etc.
41518 fi
41519fi
41520
41521if test "$wxUSE_GUI" = "yes"; then
41522
41523
8bce5cda
MW
41524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41525 dynamic erase event exec font image minimal mobile \
41526 mobile/wxedit mobile/styles propsize render \
41527 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41528
41529 if test "$wxUSE_MONOLITHIC" != "yes"; then
41530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41531 fi
0b78747f 41532 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41534 if test "$wxUSE_UNIVERSAL" != "yes"; then
41535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41536 fi
41537 fi
41538 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41540 fi
a848cd7e
SC
41541else
41542 SAMPLES_SUBDIRS="console"
41543fi
41544
41545
ceec2216 41546INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41547-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41548
41549if test "$GXX" = yes ; then
5294a27e
VZ
41550 CWARNINGS="-Wall"
41551 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41552 fi
41553
41554EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41555
0c3c69fc 41556CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41557CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41558CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41559
95986553
DE
41560if test "x$MWCC" = "xyes"; then
41561
41562 CC="$CC -cwd source -I-"
41563 CXX="$CXX -cwd source -I-"
41564fi
41565
a848cd7e 41566
0c3c69fc 41567LIBS=`echo $LIBS`
a848cd7e
SC
41568EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41569EXTRALIBS_XML="$EXPAT_LINK"
41570EXTRALIBS_HTML="$MSPACK_LINK"
41571EXTRALIBS_ODBC="$ODBC_LINK"
41572if test "$wxUSE_GUI" = "yes"; then
2e350179 41573 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41574fi
41575if test "$wxUSE_OPENGL" = "yes"; then
41576 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41577fi
41578
41579LDFLAGS="$LDFLAGS $PROFILE"
41580
41581if test "$wxUSE_GTK" = 1; then
41582 WXCONFIG_INCLUDE=
41583else
41584 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41585fi
41586
41587WXCONFIG_EXTRALIBS="$LIBS"
41588
41589if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41590 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41591fi
41592if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41593 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41594fi
41595if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41596 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41597fi
41598if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41599 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41600fi
41601if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41602 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41603fi
41604if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41605 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41606fi
41607if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41608 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41609fi
41610
41611for i in $wxconfig_3rdparty ; do
74802184 41612 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41613done
41614
41615
41616if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41617 WXUNIV=1
41618else
41619 WXUNIV=0
41620fi
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630if test $wxUSE_MONOLITHIC = "yes" ; then
41631 MONOLITHIC=1
41632else
41633 MONOLITHIC=0
41634fi
41635
41636if test $wxUSE_PLUGINS = "yes" ; then
41637 USE_PLUGINS=1
41638else
41639 USE_PLUGINS=0
41640fi
41641
41642if test $wxUSE_ODBC != "no" ; then
41643 USE_ODBC=1
41644else
41645 USE_ODBC=0
41646fi
41647
16358932
VZ
41648if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41649 USE_QA=1
41650else
41651 USE_QA=0
41652fi
41653
a848cd7e
SC
41654if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41655 OFFICIAL_BUILD=1
41656else
41657 OFFICIAL_BUILD=0
41658fi
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
ceec2216 41678
d1c38808 41679
a848cd7e
SC
41680
41681
41682TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41683
41684
41685
41686
41687
41688
41689
41690
4d4ff94c
VZ
41691case "$TOOLKIT" in
41692 GTK)
41693 TOOLKIT_USER="GTK+"
41694 if test "$WXGTK20" = 1; then
41695 TOOLKIT_USER="$TOOLKIT_USER 2"
41696 fi
9a8f0513 41697 ;;
4d4ff94c
VZ
41698
41699 *)
41700 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41701 ;;
4d4ff94c 41702esac
a848cd7e 41703
fb00f58d
JS
41704if test "$wxUSE_WINE" = "yes"; then
41705 BAKEFILE_FORCE_PLATFORM=win32
41706fi
41707
9a8f0513 41708
1e9e8aba
DE
41709
41710
a848cd7e
SC
41711 if test "x$BAKEFILE_HOST" = "x"; then
41712 BAKEFILE_HOST="${host}"
41713 fi
41714
41715 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41716
41717 if test -n "$ac_tool_prefix"; then
41718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41719set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41720echo "$as_me:$LINENO: checking for $ac_word" >&5
41721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41722if test "${ac_cv_prog_RANLIB+set}" = set; then
41723 echo $ECHO_N "(cached) $ECHO_C" >&6
41724else
41725 if test -n "$RANLIB"; then
41726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41727else
41728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41729for as_dir in $PATH
41730do
41731 IFS=$as_save_IFS
41732 test -z "$as_dir" && as_dir=.
41733 for ac_exec_ext in '' $ac_executable_extensions; do
41734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41737 break 2
41738 fi
41739done
41740done
41741
41742fi
41743fi
41744RANLIB=$ac_cv_prog_RANLIB
41745if test -n "$RANLIB"; then
41746 echo "$as_me:$LINENO: result: $RANLIB" >&5
41747echo "${ECHO_T}$RANLIB" >&6
41748else
41749 echo "$as_me:$LINENO: result: no" >&5
41750echo "${ECHO_T}no" >&6
41751fi
41752
41753fi
41754if test -z "$ac_cv_prog_RANLIB"; then
41755 ac_ct_RANLIB=$RANLIB
41756 # Extract the first word of "ranlib", so it can be a program name with args.
41757set dummy ranlib; ac_word=$2
41758echo "$as_me:$LINENO: checking for $ac_word" >&5
41759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41760if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41761 echo $ECHO_N "(cached) $ECHO_C" >&6
41762else
41763 if test -n "$ac_ct_RANLIB"; then
41764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41765else
41766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41767for as_dir in $PATH
41768do
41769 IFS=$as_save_IFS
41770 test -z "$as_dir" && as_dir=.
41771 for ac_exec_ext in '' $ac_executable_extensions; do
41772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41773 ac_cv_prog_ac_ct_RANLIB="ranlib"
41774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41775 break 2
41776 fi
41777done
41778done
41779
41780 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41781fi
41782fi
41783ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41784if test -n "$ac_ct_RANLIB"; then
41785 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41786echo "${ECHO_T}$ac_ct_RANLIB" >&6
41787else
41788 echo "$as_me:$LINENO: result: no" >&5
41789echo "${ECHO_T}no" >&6
41790fi
41791
41792 RANLIB=$ac_ct_RANLIB
41793else
41794 RANLIB="$ac_cv_prog_RANLIB"
41795fi
41796
41797 # Find a good install program. We prefer a C program (faster),
41798# so one script is as good as another. But avoid the broken or
41799# incompatible versions:
41800# SysV /etc/install, /usr/sbin/install
41801# SunOS /usr/etc/install
41802# IRIX /sbin/install
41803# AIX /bin/install
41804# AmigaOS /C/install, which installs bootblocks on floppy discs
41805# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41806# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41807# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41808# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41809# ./install, which can be erroneously created by make from ./install.sh.
41810echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41811echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41812if test -z "$INSTALL"; then
41813if test "${ac_cv_path_install+set}" = set; then
41814 echo $ECHO_N "(cached) $ECHO_C" >&6
41815else
41816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41817for as_dir in $PATH
41818do
41819 IFS=$as_save_IFS
41820 test -z "$as_dir" && as_dir=.
41821 # Account for people who put trailing slashes in PATH elements.
41822case $as_dir/ in
41823 ./ | .// | /cC/* | \
41824 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41825 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41826 /usr/ucb/* ) ;;
41827 *)
41828 # OSF1 and SCO ODT 3.0 have their own names for install.
41829 # Don't use installbsd from OSF since it installs stuff as root
41830 # by default.
41831 for ac_prog in ginstall scoinst install; do
41832 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41833 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41834 if test $ac_prog = install &&
41835 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41836 # AIX install. It has an incompatible calling convention.
41837 :
41838 elif test $ac_prog = install &&
41839 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41840 # program-specific install script used by HP pwplus--don't use.
41841 :
41842 else
41843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41844 break 3
41845 fi
41846 fi
a848cd7e
SC
41847 done
41848 done
41849 ;;
41850esac
41851done
41852
41853
41854fi
41855 if test "${ac_cv_path_install+set}" = set; then
41856 INSTALL=$ac_cv_path_install
41857 else
41858 # As a last resort, use the slow shell script. We don't cache a
41859 # path for INSTALL within a source directory, because that will
41860 # break other packages using the cache if that directory is
41861 # removed, or if the path is relative.
41862 INSTALL=$ac_install_sh
41863 fi
41864fi
41865echo "$as_me:$LINENO: result: $INSTALL" >&5
41866echo "${ECHO_T}$INSTALL" >&6
41867
41868# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41869# It thinks the first close brace ends the variable substitution.
41870test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41871
41872test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41873
41874test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41875
41876 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41877echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41878LN_S=$as_ln_s
41879if test "$LN_S" = "ln -s"; then
41880 echo "$as_me:$LINENO: result: yes" >&5
41881echo "${ECHO_T}yes" >&6
41882else
41883 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41884echo "${ECHO_T}no, using $LN_S" >&6
41885fi
41886
41887
41888 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41889echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41890set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41891if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41892 echo $ECHO_N "(cached) $ECHO_C" >&6
41893else
41894 cat >conftest.make <<\_ACEOF
41895all:
41896 @echo 'ac_maketemp="$(MAKE)"'
41897_ACEOF
41898# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41899eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41900if test -n "$ac_maketemp"; then
41901 eval ac_cv_prog_make_${ac_make}_set=yes
41902else
41903 eval ac_cv_prog_make_${ac_make}_set=no
41904fi
41905rm -f conftest.make
41906fi
41907if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41908 echo "$as_me:$LINENO: result: yes" >&5
41909echo "${ECHO_T}yes" >&6
41910 SET_MAKE=
41911else
41912 echo "$as_me:$LINENO: result: no" >&5
41913echo "${ECHO_T}no" >&6
41914 SET_MAKE="MAKE=${MAKE-make}"
41915fi
41916
41917
41918
41919 if test -n "$ac_tool_prefix"; then
41920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41921set dummy ${ac_tool_prefix}ar; ac_word=$2
41922echo "$as_me:$LINENO: checking for $ac_word" >&5
41923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41924if test "${ac_cv_prog_AR+set}" = set; then
41925 echo $ECHO_N "(cached) $ECHO_C" >&6
41926else
41927 if test -n "$AR"; then
41928 ac_cv_prog_AR="$AR" # Let the user override the test.
41929else
41930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41931for as_dir in $PATH
41932do
41933 IFS=$as_save_IFS
41934 test -z "$as_dir" && as_dir=.
41935 for ac_exec_ext in '' $ac_executable_extensions; do
41936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41937 ac_cv_prog_AR="${ac_tool_prefix}ar"
41938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41939 break 2
41940 fi
41941done
41942done
41943
41944fi
41945fi
41946AR=$ac_cv_prog_AR
41947if test -n "$AR"; then
41948 echo "$as_me:$LINENO: result: $AR" >&5
41949echo "${ECHO_T}$AR" >&6
41950else
41951 echo "$as_me:$LINENO: result: no" >&5
41952echo "${ECHO_T}no" >&6
41953fi
41954
41955fi
41956if test -z "$ac_cv_prog_AR"; then
41957 ac_ct_AR=$AR
41958 # Extract the first word of "ar", so it can be a program name with args.
41959set dummy ar; ac_word=$2
41960echo "$as_me:$LINENO: checking for $ac_word" >&5
41961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41962if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41963 echo $ECHO_N "(cached) $ECHO_C" >&6
41964else
41965 if test -n "$ac_ct_AR"; then
41966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41967else
41968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41969for as_dir in $PATH
41970do
41971 IFS=$as_save_IFS
41972 test -z "$as_dir" && as_dir=.
41973 for ac_exec_ext in '' $ac_executable_extensions; do
41974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41975 ac_cv_prog_ac_ct_AR="ar"
41976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41977 break 2
41978 fi
41979done
41980done
41981
41982 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41983fi
41984fi
41985ac_ct_AR=$ac_cv_prog_ac_ct_AR
41986if test -n "$ac_ct_AR"; then
41987 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41988echo "${ECHO_T}$ac_ct_AR" >&6
41989else
41990 echo "$as_me:$LINENO: result: no" >&5
41991echo "${ECHO_T}no" >&6
41992fi
41993
41994 AR=$ac_ct_AR
41995else
41996 AR="$ac_cv_prog_AR"
41997fi
41998
41999 if test -n "$ac_tool_prefix"; then
42000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42001set dummy ${ac_tool_prefix}strip; ac_word=$2
42002echo "$as_me:$LINENO: checking for $ac_word" >&5
42003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42004if test "${ac_cv_prog_STRIP+set}" = set; then
42005 echo $ECHO_N "(cached) $ECHO_C" >&6
42006else
42007 if test -n "$STRIP"; then
42008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42009else
42010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42011for as_dir in $PATH
42012do
42013 IFS=$as_save_IFS
42014 test -z "$as_dir" && as_dir=.
42015 for ac_exec_ext in '' $ac_executable_extensions; do
42016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42019 break 2
42020 fi
42021done
42022done
42023
42024fi
42025fi
42026STRIP=$ac_cv_prog_STRIP
42027if test -n "$STRIP"; then
42028 echo "$as_me:$LINENO: result: $STRIP" >&5
42029echo "${ECHO_T}$STRIP" >&6
42030else
42031 echo "$as_me:$LINENO: result: no" >&5
42032echo "${ECHO_T}no" >&6
42033fi
42034
42035fi
42036if test -z "$ac_cv_prog_STRIP"; then
42037 ac_ct_STRIP=$STRIP
42038 # Extract the first word of "strip", so it can be a program name with args.
42039set dummy strip; ac_word=$2
42040echo "$as_me:$LINENO: checking for $ac_word" >&5
42041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42042if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42043 echo $ECHO_N "(cached) $ECHO_C" >&6
42044else
42045 if test -n "$ac_ct_STRIP"; then
42046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42047else
42048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42049for as_dir in $PATH
42050do
42051 IFS=$as_save_IFS
42052 test -z "$as_dir" && as_dir=.
42053 for ac_exec_ext in '' $ac_executable_extensions; do
42054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42055 ac_cv_prog_ac_ct_STRIP="strip"
42056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42057 break 2
42058 fi
42059done
42060done
42061
42062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42063fi
42064fi
42065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42066if test -n "$ac_ct_STRIP"; then
42067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42068echo "${ECHO_T}$ac_ct_STRIP" >&6
42069else
42070 echo "$as_me:$LINENO: result: no" >&5
42071echo "${ECHO_T}no" >&6
42072fi
42073
42074 STRIP=$ac_ct_STRIP
42075else
42076 STRIP="$ac_cv_prog_STRIP"
42077fi
42078
42079 if test -n "$ac_tool_prefix"; then
42080 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42081set dummy ${ac_tool_prefix}nm; ac_word=$2
42082echo "$as_me:$LINENO: checking for $ac_word" >&5
42083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42084if test "${ac_cv_prog_NM+set}" = set; then
42085 echo $ECHO_N "(cached) $ECHO_C" >&6
42086else
42087 if test -n "$NM"; then
42088 ac_cv_prog_NM="$NM" # Let the user override the test.
42089else
42090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42091for as_dir in $PATH
42092do
42093 IFS=$as_save_IFS
42094 test -z "$as_dir" && as_dir=.
42095 for ac_exec_ext in '' $ac_executable_extensions; do
42096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42097 ac_cv_prog_NM="${ac_tool_prefix}nm"
42098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42099 break 2
42100 fi
42101done
42102done
42103
42104fi
42105fi
42106NM=$ac_cv_prog_NM
42107if test -n "$NM"; then
42108 echo "$as_me:$LINENO: result: $NM" >&5
42109echo "${ECHO_T}$NM" >&6
42110else
42111 echo "$as_me:$LINENO: result: no" >&5
42112echo "${ECHO_T}no" >&6
42113fi
42114
42115fi
42116if test -z "$ac_cv_prog_NM"; then
42117 ac_ct_NM=$NM
42118 # Extract the first word of "nm", so it can be a program name with args.
42119set dummy nm; ac_word=$2
42120echo "$as_me:$LINENO: checking for $ac_word" >&5
42121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42122if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42123 echo $ECHO_N "(cached) $ECHO_C" >&6
42124else
42125 if test -n "$ac_ct_NM"; then
42126 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42127else
42128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42129for as_dir in $PATH
42130do
42131 IFS=$as_save_IFS
42132 test -z "$as_dir" && as_dir=.
42133 for ac_exec_ext in '' $ac_executable_extensions; do
42134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42135 ac_cv_prog_ac_ct_NM="nm"
42136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42137 break 2
42138 fi
42139done
42140done
42141
42142 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42143fi
42144fi
42145ac_ct_NM=$ac_cv_prog_ac_ct_NM
42146if test -n "$ac_ct_NM"; then
42147 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42148echo "${ECHO_T}$ac_ct_NM" >&6
42149else
42150 echo "$as_me:$LINENO: result: no" >&5
42151echo "${ECHO_T}no" >&6
42152fi
42153
42154 NM=$ac_ct_NM
42155else
42156 NM="$ac_cv_prog_NM"
42157fi
42158
42159
42160 case ${BAKEFILE_HOST} in
42161 *-hp-hpux* )
1e9e8aba 42162 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42163 ;;
42164 *) INSTALL_DIR="$INSTALL -d"
42165 ;;
42166 esac
42167
42168
42169 LDFLAGS_GUI=
42170 case ${BAKEFILE_HOST} in
42171 *-*-cygwin* | *-*-mingw32* )
42172 LDFLAGS_GUI="-mwindows"
42173 esac
42174
42175
42176 fi
42177
42178 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42179echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42180if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42181 echo $ECHO_N "(cached) $ECHO_C" >&6
42182else
42183
42184 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42185 egrep -s GNU > /dev/null); then
42186 bakefile_cv_prog_makeisgnu="yes"
42187 else
42188 bakefile_cv_prog_makeisgnu="no"
42189 fi
42190
42191fi
42192echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42193echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42194
42195 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42196 IF_GNU_MAKE=""
42197 else
42198 IF_GNU_MAKE="#"
42199 fi
42200
42201
42202
42203 PLATFORM_UNIX=0
42204 PLATFORM_WIN32=0
42205 PLATFORM_MSDOS=0
42206 PLATFORM_MAC=0
1e9e8aba 42207 PLATFORM_MACOS=0
a848cd7e
SC
42208 PLATFORM_MACOSX=0
42209 PLATFORM_OS2=0
1e9e8aba 42210 PLATFORM_BEOS=0
a848cd7e
SC
42211
42212 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42213 case "${BAKEFILE_HOST}" in
810b94f0 42214 *-*-mingw32* )
a848cd7e
SC
42215 PLATFORM_WIN32=1
42216 ;;
42217 *-pc-msdosdjgpp )
42218 PLATFORM_MSDOS=1
42219 ;;
42220 *-pc-os2_emx | *-pc-os2-emx )
42221 PLATFORM_OS2=1
42222 ;;
42223 powerpc-*-darwin* )
42224 PLATFORM_MAC=1
42225 PLATFORM_MACOSX=1
42226 ;;
1e9e8aba
DE
42227 *-*-beos* )
42228 PLATFORM_BEOS=1
42229 ;;
42230 powerpc-apple-macos* )
42231 PLATFORM_MAC=1
42232 PLATFORM_MACOS=1
42233 ;;
a848cd7e
SC
42234 * )
42235 PLATFORM_UNIX=1
42236 ;;
42237 esac
42238 else
42239 case "$BAKEFILE_FORCE_PLATFORM" in
42240 win32 )
42241 PLATFORM_WIN32=1
42242 ;;
42243 msdos )
42244 PLATFORM_MSDOS=1
42245 ;;
42246 os2 )
42247 PLATFORM_OS2=1
42248 ;;
42249 darwin )
42250 PLATFORM_MAC=1
42251 PLATFORM_MACOSX=1
42252 ;;
42253 unix )
42254 PLATFORM_UNIX=1
42255 ;;
1e9e8aba
DE
42256 beos )
42257 PLATFORM_BEOS=1
42258 ;;
a848cd7e
SC
42259 * )
42260 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42261echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42262 { (exit 1); exit 1; }; }
42263 ;;
42264 esac
42265 fi
42266
42267
42268
42269
42270
42271
42272
42273
42274
1e9e8aba
DE
42275
42276
a848cd7e
SC
42277 # Check whether --enable-omf or --disable-omf was given.
42278if test "${enable_omf+set}" = set; then
42279 enableval="$enable_omf"
42280 bk_os2_use_omf="$enableval"
42281fi;
42282
42283 case "${BAKEFILE_HOST}" in
42284 *-*-darwin* )
42285 CFLAGS="$CFLAGS -fno-common"
42286 CXXFLAGS="$CXXFLAGS -fno-common"
42287 ;;
42288
42289 *-pc-os2_emx | *-pc-os2-emx )
42290 if test "x$bk_os2_use_omf" = "xyes" ; then
42291 AR=emxomfar
42292 RANLIB=:
42293 LDFLAGS="-Zomf $LDFLAGS"
42294 CFLAGS="-Zomf $CFLAGS"
42295 CXXFLAGS="-Zomf $CXXFLAGS"
42296 OS2_LIBEXT="lib"
42297 else
42298 OS2_LIBEXT="a"
42299 fi
42300 ;;
1e9e8aba
DE
42301
42302 i*86-*-beos* )
42303 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42304 ;;
a848cd7e
SC
42305 esac
42306
42307
42308 SO_SUFFIX="so"
42309 SO_SUFFIX_MODULE="so"
42310 EXEEXT=""
42311 LIBPREFIX="lib"
42312 LIBEXT=".a"
42313 DLLPREFIX="lib"
42314 DLLPREFIX_MODULE=""
42315 DLLIMP_SUFFIX=""
810b94f0 42316 dlldir="$libdir"
a848cd7e
SC
42317
42318 case "${BAKEFILE_HOST}" in
42319 *-hp-hpux* )
42320 SO_SUFFIX="sl"
42321 SO_SUFFIX_MODULE="sl"
42322 ;;
42323 *-*-aix* )
42324 SO_SUFFIX="a"
42325 SO_SUFFIX_MODULE="a"
42326 ;;
810b94f0
MW
42327 *-*-cygwin* )
42328 SO_SUFFIX="dll"
42329 SO_SUFFIX_MODULE="dll"
42330 DLLIMP_SUFFIX="dll.a"
42331 EXEEXT=".exe"
42332 DLLPREFIX="cyg"
42333 dlldir="$bindir"
42334 ;;
42335 *-*-mingw32* )
a848cd7e
SC
42336 SO_SUFFIX="dll"
42337 SO_SUFFIX_MODULE="dll"
42338 DLLIMP_SUFFIX="dll.a"
42339 EXEEXT=".exe"
42340 DLLPREFIX=""
810b94f0 42341 dlldir="$bindir"
a848cd7e
SC
42342 ;;
42343 *-pc-msdosdjgpp )
42344 EXEEXT=".exe"
42345 DLLPREFIX=""
810b94f0 42346 dlldir="$bindir"
a848cd7e
SC
42347 ;;
42348 *-pc-os2_emx | *-pc-os2-emx )
42349 SO_SUFFIX="dll"
42350 SO_SUFFIX_MODULE="dll"
42351 DLLIMP_SUFFIX=$OS2_LIBEXT
42352 EXEEXT=".exe"
42353 DLLPREFIX=""
42354 LIBPREFIX=""
42355 LIBEXT=".$OS2_LIBEXT"
810b94f0 42356 dlldir="$bindir"
a848cd7e
SC
42357 ;;
42358 powerpc-*-darwin* )
42359 SO_SUFFIX="dylib"
42360 SO_SUFFIX_MODULE="bundle"
42361 ;;
42362 esac
42363
42364 if test "x$DLLIMP_SUFFIX" = "x" ; then
42365 DLLIMP_SUFFIX="$SO_SUFFIX"
42366 fi
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
810b94f0 42378
1e9e8aba
DE
42379 PIC_FLAG=""
42380 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42381 PIC_FLAG="-fPIC"
42382 fi
42383
1e9e8aba
DE
42384 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42385 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42386 WINDOWS_IMPLIB=0
1e9e8aba 42387
a848cd7e
SC
42388 case "${BAKEFILE_HOST}" in
42389 *-hp-hpux* )
1e9e8aba 42390 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42391 LDFLAGS="$LDFLAGS -L/usr/lib"
42392
42393 SHARED_LD_CC="${CC} -b -o"
42394 SHARED_LD_CXX="${CXX} -b -o"
42395 PIC_FLAG="+Z"
42396 fi
42397 ;;
42398
42399 *-*-linux* )
42400 if test "x$GCC" != "xyes"; then
42401 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42402echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42403if test "${bakefile_cv_prog_icc+set}" = set; then
42404 echo $ECHO_N "(cached) $ECHO_C" >&6
42405else
42406
42407 cat >conftest.$ac_ext <<_ACEOF
42408/* confdefs.h. */
42409_ACEOF
42410cat confdefs.h >>conftest.$ac_ext
42411cat >>conftest.$ac_ext <<_ACEOF
42412/* end confdefs.h. */
42413
42414int
42415main ()
42416{
42417
42418 #ifndef __INTEL_COMPILER
42419 #error Not icc
42420 #endif
42421
42422 ;
42423 return 0;
42424}
42425_ACEOF
42426rm -f conftest.$ac_objext
42427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42428 (eval $ac_compile) 2>conftest.er1
a848cd7e 42429 ac_status=$?
ac1cb8d3
VS
42430 grep -v '^ *+' conftest.er1 >conftest.err
42431 rm -f conftest.er1
42432 cat conftest.err >&5
a848cd7e
SC
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); } &&
ddd14b14
RR
42435 { ac_try='test -z "$ac_c_werror_flag"
42436 || test ! -s conftest.err'
ac1cb8d3
VS
42437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42438 (eval $ac_try) 2>&5
42439 ac_status=$?
42440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42441 (exit $ac_status); }; } &&
42442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444 (eval $ac_try) 2>&5
42445 ac_status=$?
42446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447 (exit $ac_status); }; }; then
42448 bakefile_cv_prog_icc=yes
42449else
42450 echo "$as_me: failed program was:" >&5
42451sed 's/^/| /' conftest.$ac_ext >&5
42452
42453bakefile_cv_prog_icc=no
42454
42455fi
ac1cb8d3 42456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42457
42458fi
42459echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42460echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42461 if test "$bakefile_cv_prog_icc" = "yes"; then
42462 PIC_FLAG="-KPIC"
42463 fi
42464 fi
42465 ;;
42466
42467 *-*-solaris2* )
42468 if test "x$GCC" != xyes ; then
42469 SHARED_LD_CC="${CC} -G -o"
42470 SHARED_LD_CXX="${CXX} -G -o"
42471 PIC_FLAG="-KPIC"
42472 fi
42473 ;;
42474
42475 *-*-darwin* )
42476
42477 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42478echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42479if test "${wx_cv_gcc31+set}" = set; then
42480 echo $ECHO_N "(cached) $ECHO_C" >&6
42481else
42482
42483 cat >conftest.$ac_ext <<_ACEOF
42484/* confdefs.h. */
42485_ACEOF
42486cat confdefs.h >>conftest.$ac_ext
42487cat >>conftest.$ac_ext <<_ACEOF
42488/* end confdefs.h. */
42489
42490int
42491main ()
42492{
42493
42494 #if (__GNUC__ < 3) || \
42495 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42496 #error old gcc
42497 #endif
42498
42499 ;
42500 return 0;
42501}
42502_ACEOF
42503rm -f conftest.$ac_objext
42504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42505 (eval $ac_compile) 2>conftest.er1
a848cd7e 42506 ac_status=$?
ac1cb8d3
VS
42507 grep -v '^ *+' conftest.er1 >conftest.err
42508 rm -f conftest.er1
42509 cat conftest.err >&5
a848cd7e
SC
42510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511 (exit $ac_status); } &&
ddd14b14
RR
42512 { ac_try='test -z "$ac_c_werror_flag"
42513 || test ! -s conftest.err'
ac1cb8d3
VS
42514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 (eval $ac_try) 2>&5
42516 ac_status=$?
42517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 (exit $ac_status); }; } &&
42519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 (eval $ac_try) 2>&5
42522 ac_status=$?
42523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); }; }; then
42525
42526 wx_cv_gcc31=yes
42527
42528else
42529 echo "$as_me: failed program was:" >&5
42530sed 's/^/| /' conftest.$ac_ext >&5
42531
42532
42533 wx_cv_gcc31=no
42534
42535
42536fi
ac1cb8d3 42537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42538
42539fi
42540echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42541echo "${ECHO_T}$wx_cv_gcc31" >&6
42542 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42543
42544D='$'
42545cat <<EOF >shared-ld-sh
a848cd7e
SC
42546#!/bin/sh
42547#-----------------------------------------------------------------------------
42548#-- Name: distrib/mac/shared-ld-sh
42549#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42550#-- Author: Gilles Depeyrot
42551#-- Copyright: (c) 2002 Gilles Depeyrot
42552#-- Licence: any use permitted
42553#-----------------------------------------------------------------------------
42554
42555verbose=0
42556args=""
42557objects=""
42558linking_flag="-dynamiclib"
810b94f0 42559ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42560
473276a9
VS
42561while test ${D}# -gt 0; do
42562 case ${D}1 in
a848cd7e
SC
42563
42564 -v)
42565 verbose=1
42566 ;;
42567
42568 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42569 # collect these options and values
473276a9 42570 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42571 shift
42572 ;;
42573
810b94f0
MW
42574 -s|-Wl,*)
42575 # collect these load args
42576 ldargs="${D}{ldargs} ${D}1"
2113bc77 42577 ;;
810b94f0
MW
42578
42579 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42580 # collect these options
473276a9 42581 args="${D}{args} ${D}1"
a848cd7e
SC
42582 ;;
42583
42584 -dynamiclib|-bundle)
473276a9 42585 linking_flag="${D}1"
a848cd7e
SC
42586 ;;
42587
42588 -*)
473276a9 42589 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42590 exit 1
42591 ;;
42592
42593 *.o | *.a | *.dylib)
42594 # collect object files
473276a9 42595 objects="${D}{objects} ${D}1"
a848cd7e
SC
42596 ;;
42597
42598 *)
473276a9 42599 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42600 exit 1
42601 ;;
42602
42603 esac
42604 shift
42605done
42606
810b94f0
MW
42607status=0
42608
a848cd7e
SC
42609#
42610# Link one module containing all the others
42611#
473276a9 42612if test ${D}{verbose} = 1; then
810b94f0 42613 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42614fi
810b94f0 42615c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42616status=${D}?
a848cd7e
SC
42617
42618#
810b94f0
MW
42619# Link the shared library from the single module created, but only if the
42620# previous command didn't fail:
a848cd7e 42621#
810b94f0
MW
42622if test ${D}{status} = 0; then
42623 if test ${D}{verbose} = 1; then
42624 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42625 fi
42626 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42627 status=${D}?
a848cd7e
SC
42628fi
42629
42630#
42631# Remove intermediate module
42632#
473276a9 42633rm -f master.${D}${D}.o
a848cd7e 42634
810b94f0 42635exit ${D}status
a848cd7e 42636EOF
473276a9 42637
a848cd7e
SC
42638 chmod +x shared-ld-sh
42639
42640 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42641 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42642 SHARED_LD_CXX="$SHARED_LD_CC"
42643 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42644 else
42645 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42646 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42647 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42648 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42649 fi
42650
42651 PIC_FLAG="-dynamic -fPIC"
42652 ;;
42653
42654 *-*-aix* )
42655 if test "x$GCC" != "xyes"; then
42656 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42657set dummy makeC++SharedLib; ac_word=$2
42658echo "$as_me:$LINENO: checking for $ac_word" >&5
42659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42660if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42661 echo $ECHO_N "(cached) $ECHO_C" >&6
42662else
42663 if test -n "$AIX_CXX_LD"; then
42664 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42665else
42666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42667for as_dir in $PATH
42668do
42669 IFS=$as_save_IFS
42670 test -z "$as_dir" && as_dir=.
42671 for ac_exec_ext in '' $ac_executable_extensions; do
42672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42673 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42675 break 2
42676 fi
42677done
42678done
42679
42680 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42681fi
42682fi
42683AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42684if test -n "$AIX_CXX_LD"; then
42685 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42686echo "${ECHO_T}$AIX_CXX_LD" >&6
42687else
42688 echo "$as_me:$LINENO: result: no" >&5
42689echo "${ECHO_T}no" >&6
42690fi
42691
42692 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42693 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42694 fi
42695 ;;
42696
42697 *-*-beos* )
1e9e8aba
DE
42698 SHARED_LD_CC="${LD} -nostart -o"
42699 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42700 ;;
42701
42702 *-*-irix* )
42703 if test "x$GCC" != "xyes"; then
42704 PIC_FLAG="-KPIC"
42705 fi
42706 ;;
42707
42708 *-*-cygwin* | *-*-mingw32* )
42709 PIC_FLAG=""
1e9e8aba
DE
42710 SHARED_LD_CC="\$(CC) -shared -o"
42711 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42712 WINDOWS_IMPLIB=1
a848cd7e
SC
42713 ;;
42714
42715 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42716 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42717 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42718 PIC_FLAG=""
473276a9
VS
42719
42720D='$'
42721cat <<EOF >dllar.sh
42722#!/bin/sh
42723#
42724# dllar - a tool to build both a .dll and an .a file
42725# from a set of object (.o) files for EMX/OS2.
42726#
42727# Written by Andrew Zabolotny, bit@freya.etu.ru
42728# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42729#
42730# This script will accept a set of files on the command line.
42731# All the public symbols from the .o files will be exported into
42732# a .DEF file, then linker will be run (through gcc) against them to
42733# build a shared library consisting of all given .o files. All libraries
42734# (.a) will be first decompressed into component .o files then act as
42735# described above. You can optionally give a description (-d "description")
42736# which will be put into .DLL. To see the list of accepted options (as well
42737# as command-line format) simply run this program without options. The .DLL
42738# is built to be imported by name (there is no guarantee that new versions
42739# of the library you build will have same ordinals for same symbols).
42740#
42741# dllar is free software; you can redistribute it and/or modify
42742# it under the terms of the GNU General Public License as published by
42743# the Free Software Foundation; either version 2, or (at your option)
42744# any later version.
42745#
42746# dllar is distributed in the hope that it will be useful,
42747# but WITHOUT ANY WARRANTY; without even the implied warranty of
42748# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42749# GNU General Public License for more details.
42750#
42751# You should have received a copy of the GNU General Public License
42752# along with dllar; see the file COPYING. If not, write to the Free
42753# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42754# 02111-1307, USA.
42755
42756# To successfuly run this program you will need:
42757# - Current drive should have LFN support (HPFS, ext2, network, etc)
42758# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42759# - gcc
42760# (used to build the .dll)
42761# - emxexp
42762# (used to create .def file from .o files)
42763# - emximp
42764# (used to create .a file from .def file)
42765# - GNU text utilites (cat, sort, uniq)
42766# used to process emxexp output
42767# - GNU file utilities (mv, rm)
42768# - GNU sed
42769# - lxlite (optional, see flag below)
42770# (used for general .dll cleanup)
42771#
42772
42773flag_USE_LXLITE=1;
42774
42775#
42776# helper functions
42777# basnam, variant of basename, which does _not_ remove the path, _iff_
42778# second argument (suffix to remove) is given
42779basnam(){
42780 case ${D}# in
42781 1)
1e9e8aba 42782 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42783 ;;
42784 2)
42785 echo ${D}1 | sed 's/'${D}2'${D}//'
42786 ;;
42787 *)
42788 echo "error in basnam ${D}*"
42789 exit 8
42790 ;;
42791 esac
42792}
42793
42794# Cleanup temporary files and output
42795CleanUp() {
42796 cd ${D}curDir
42797 for i in ${D}inputFiles ; do
42798 case ${D}i in
42799 *!)
42800 rm -rf \`basnam ${D}i !\`
42801 ;;
42802 *)
42803 ;;
42804 esac
42805 done
42806
42807 # Kill result in case of failure as there is just to many stupid make/nmake
42808 # things out there which doesn't do this.
1e9e8aba 42809 if [ ${D}# -eq 0 ]; then
473276a9
VS
42810 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42811 fi
42812}
42813
42814# Print usage and exit script with rc=1.
42815PrintHelp() {
b1d22ded
DE
42816 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42817 echo ' [-name-mangler-script script.sh]'
42818 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42819 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42820 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42821 echo ' [*.o] [*.a]'
473276a9
VS
42822 echo '*> "output_file" should have no extension.'
42823 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42824 echo ' The import library name is derived from this and is set to "name".a,'
42825 echo ' unless overridden by -import'
42826 echo '*> "importlib_name" should have no extension.'
42827 echo ' If it has the .o, or .a extension, it is automatically removed.'
42828 echo ' This name is used as the import library name and may be longer and'
42829 echo ' more descriptive than the DLL name which has to follow the old '
42830 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42831 echo '*> "script.sh may be given to override the output_file name by a'
42832 echo ' different name. It is mainly useful if the regular make process'
42833 echo ' of some package does not take into account OS/2 restriction of'
42834 echo ' DLL name lengths. It takes the importlib name as input and is'
42835 echo ' supposed to procude a shorter name as output. The script should'
42836 echo ' expect to get importlib_name without extension and should produce'
42837 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42838 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42839 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42840 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42841 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42842 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42843 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42844 echo ' If the last character of a symbol is "*", all symbols beginning'
42845 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42846 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42847 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42848 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42849 echo ' C runtime DLLs.'
b1d22ded 42850 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42851 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42852 echo ' unchanged to GCC at the end of command line.'
42853 echo '*> If you create a DLL from a library and you do not specify -o,'
42854 echo ' the basename for DLL and import library will be set to library name,'
42855 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42856 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42857 echo ' library will be renamed into gcc_s.a.'
42858 echo '--------'
42859 echo 'Example:'
42860 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42861 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42862 CleanUp
42863 exit 1
42864}
42865
42866# Execute a command.
42867# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42868# @Uses Whatever CleanUp() uses.
42869doCommand() {
42870 echo "${D}*"
42871 eval ${D}*
42872 rcCmd=${D}?
42873
1e9e8aba 42874 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42875 echo "command failed, exit code="${D}rcCmd
42876 CleanUp
42877 exit ${D}rcCmd
42878 fi
42879}
42880
42881# main routine
42882# setup globals
42883cmdLine=${D}*
42884outFile=""
42885outimpFile=""
42886inputFiles=""
b1d22ded 42887renameScript=""
473276a9
VS
42888description=""
42889CC=gcc.exe
42890CFLAGS="-s -Zcrtdll"
42891EXTRA_CFLAGS=""
42892EXPORT_BY_ORDINALS=0
42893exclude_symbols=""
42894library_flags=""
42895curDir=\`pwd\`
42896curDirS=curDir
42897case ${D}curDirS in
42898*/)
42899 ;;
42900*)
42901 curDirS=${D}{curDirS}"/"
42902 ;;
42903esac
42904# Parse commandline
42905libsToLink=0
b1d22ded 42906omfLinking=0
1e9e8aba 42907while [ ${D}1 ]; do
473276a9
VS
42908 case ${D}1 in
42909 -ord*)
42910 EXPORT_BY_ORDINALS=1;
42911 ;;
42912 -o*)
42913 shift
42914 outFile=${D}1
42915 ;;
42916 -i*)
42917 shift
42918 outimpFile=${D}1
42919 ;;
b1d22ded
DE
42920 -name-mangler-script)
42921 shift
42922 renameScript=${D}1
42923 ;;
473276a9
VS
42924 -d*)
42925 shift
42926 description=${D}1
42927 ;;
42928 -f*)
42929 shift
42930 CFLAGS=${D}1
42931 ;;
42932 -c*)
42933 shift
42934 CC=${D}1
42935 ;;
42936 -h*)
42937 PrintHelp
42938 ;;
42939 -ex*)
42940 shift
42941 exclude_symbols=${D}{exclude_symbols}${D}1" "
42942 ;;
42943 -libf*)
42944 shift
42945 library_flags=${D}{library_flags}${D}1" "
42946 ;;
42947 -nocrt*)
42948 CFLAGS="-s"
42949 ;;
42950 -nolxl*)
42951 flag_USE_LXLITE=0
42952 ;;
42953 -* | /*)
42954 case ${D}1 in
42955 -L* | -l*)
42956 libsToLink=1
42957 ;;
b1d22ded
DE
42958 -Zomf)
42959 omfLinking=1
42960 ;;
473276a9
VS
42961 *)
42962 ;;
42963 esac
42964 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42965 ;;
b1d22ded
DE
42966 *.dll)
42967 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42968 if [ ${D}omfLinking -eq 1 ]; then
42969 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42970 else
42971 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42972 fi
42973 ;;
473276a9
VS
42974 *)
42975 found=0;
1e9e8aba 42976 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42977 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42978 else
42979 for file in ${D}1 ; do
1e9e8aba 42980 if [ -f ${D}file ]; then
473276a9
VS
42981 inputFiles="${D}{inputFiles} ${D}file"
42982 found=1
42983 fi
42984 done
1e9e8aba 42985 if [ ${D}found -eq 0 ]; then
473276a9
VS
42986 echo "ERROR: No file(s) found: "${D}1
42987 exit 8
42988 fi
42989 fi
42990 ;;
42991 esac
42992 shift
42993done # iterate cmdline words
42994
42995#
1e9e8aba 42996if [ -z "${D}inputFiles" ]; then
473276a9
VS
42997 echo "dllar: no input files"
42998 PrintHelp
42999fi
43000
43001# Now extract all .o files from .a files
43002newInputFiles=""
43003for file in ${D}inputFiles ; do
43004 case ${D}file in
43005 *.a | *.lib)
43006 case ${D}file in
43007 *.a)
43008 suffix=".a"
43009 AR="ar"
43010 ;;
43011 *.lib)
43012 suffix=".lib"
43013 AR="emxomfar"
43014 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43015 ;;
43016 *)
43017 ;;
43018 esac
43019 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43020 mkdir ${D}dirname
1e9e8aba 43021 if [ ${D}? -ne 0 ]; then
473276a9
VS
43022 echo "Failed to create subdirectory ./${D}dirname"
43023 CleanUp
43024 exit 8;
43025 fi
43026 # Append '!' to indicate archive
43027 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43028 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43029 cd ${D}curDir
43030 found=0;
43031 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43032 if [ -f ${D}subfile ]; then
473276a9 43033 found=1
1e9e8aba 43034 if [ -s ${D}subfile ]; then
473276a9
VS
43035 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43036 newInputFiles="${D}newInputFiles ${D}subfile"
43037 fi
43038 fi
43039 done
1e9e8aba
DE
43040 if [ ${D}found -eq 0 ]; then
43041 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43042 fi
43043 ;;
43044 *)
43045 newInputFiles="${D}{newInputFiles} ${D}file"
43046 ;;
43047 esac
43048done
43049inputFiles="${D}newInputFiles"
43050
43051# Output filename(s).
43052do_backup=0;
1e9e8aba 43053if [ -z ${D}outFile ]; then
473276a9
VS
43054 do_backup=1;
43055 set outFile ${D}inputFiles; outFile=${D}2
43056fi
43057
43058# If it is an archive, remove the '!' and the '_%' suffixes
43059case ${D}outFile in
43060*_%!)
43061 outFile=\`basnam ${D}outFile _%!\`
43062 ;;
43063*)
43064 ;;
43065esac
43066case ${D}outFile in
43067*.dll)
43068 outFile=\`basnam ${D}outFile .dll\`
43069 ;;
43070*.DLL)
43071 outFile=\`basnam ${D}outFile .DLL\`
43072 ;;
43073*.o)
43074 outFile=\`basnam ${D}outFile .o\`
43075 ;;
43076*.obj)
43077 outFile=\`basnam ${D}outFile .obj\`
43078 ;;
43079*.a)
43080 outFile=\`basnam ${D}outFile .a\`
43081 ;;
43082*.lib)
43083 outFile=\`basnam ${D}outFile .lib\`
43084 ;;
43085*)
43086 ;;
43087esac
43088case ${D}outimpFile in
43089*.a)
43090 outimpFile=\`basnam ${D}outimpFile .a\`
43091 ;;
43092*.lib)
43093 outimpFile=\`basnam ${D}outimpFile .lib\`
43094 ;;
43095*)
43096 ;;
43097esac
1e9e8aba 43098if [ -z ${D}outimpFile ]; then
473276a9
VS
43099 outimpFile=${D}outFile
43100fi
43101defFile="${D}{outFile}.def"
43102arcFile="${D}{outimpFile}.a"
43103arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43104
43105#create ${D}dllFile as something matching 8.3 restrictions,
43106if [ -z ${D}renameScript ] ; then
43107 dllFile="${D}outFile"
43108else
43109 dllFile=\`${D}renameScript ${D}outimpFile\`
43110fi
473276a9 43111
1e9e8aba
DE
43112if [ ${D}do_backup -ne 0 ] ; then
43113 if [ -f ${D}arcFile ] ; then
473276a9
VS
43114 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43115 fi
1e9e8aba 43116 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43117 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43118 fi
43119fi
43120
43121# Extract public symbols from all the object files.
43122tmpdefFile=${D}{defFile}_%
43123rm -f ${D}tmpdefFile
43124for file in ${D}inputFiles ; do
43125 case ${D}file in
43126 *!)
43127 ;;
43128 *)
43129 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43130 ;;
43131 esac
43132done
43133
43134# Create the def file.
43135rm -f ${D}defFile
43136echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43137dllFile="${D}{dllFile}.dll"
43138if [ ! -z ${D}description ]; then
1e9e8aba 43139 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43140fi
43141echo "EXPORTS" >> ${D}defFile
43142
43143doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43144grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43145
43146# Checks if the export is ok or not.
43147for word in ${D}exclude_symbols; do
43148 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43149 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43150done
43151
43152
1e9e8aba
DE
43153if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43154 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43155 sed '
43156 N
43157 : loop
1e9e8aba 43158 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43159 t loop
43160 ' > ${D}{tmpdefFile}%
43161 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43162else
43163 rm -f ${D}{tmpdefFile}%
43164fi
43165cat ${D}tmpdefFile >> ${D}defFile
43166rm -f ${D}tmpdefFile
43167
43168# Do linking, create implib, and apply lxlite.
43169gccCmdl="";
43170for file in ${D}inputFiles ; do
43171 case ${D}file in
43172 *!)
43173 ;;
43174 *)
43175 gccCmdl="${D}gccCmdl ${D}file"
43176 ;;
43177 esac
43178done
43179doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43180touch "${D}{outFile}.dll"
43181
43182doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43183if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43184 add_flags="";
1e9e8aba 43185 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43186 add_flags="-ynd"
43187 fi
43188 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43189fi
43190doCommand "emxomf -s -l ${D}arcFile"
43191
43192# Successful exit.
43193CleanUp 1
43194exit 0
43195EOF
43196
43197 chmod +x dllar.sh
a848cd7e
SC
43198 ;;
43199
1e9e8aba 43200 powerpc-apple-macos* | \
a848cd7e
SC
43201 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43202 *-*-sunos4* | \
43203 *-*-osf* | \
43204 *-*-dgux5* | \
47a7e797
MW
43205 *-*-sysv5* | \
43206 *-pc-msdosdjgpp )
a848cd7e
SC
43207 ;;
43208
43209 *)
43210 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43211echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43212 { (exit 1); exit 1; }; }
43213 esac
43214
2057db16
VS
43215 if test "x$PIC_FLAG" != "x" ; then
43216 PIC_FLAG="$PIC_FLAG -DPIC"
43217 fi
43218
a848cd7e
SC
43219 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43220 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43221 fi
43222 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43223 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43224 fi
43225
43226
43227
43228
43229
43230
43231
43232
810b94f0 43233
a848cd7e
SC
43234 USE_SOVERSION=0
43235 USE_SOVERLINUX=0
43236 USE_SOVERSOLARIS=0
810b94f0 43237 USE_SOVERCYGWIN=0
a848cd7e
SC
43238 USE_SOSYMLINKS=0
43239 USE_MACVERSION=0
43240 SONAME_FLAG=
43241
43242 case "${BAKEFILE_HOST}" in
b1d22ded 43243 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43244 SONAME_FLAG="-Wl,-soname,"
43245 USE_SOVERSION=1
43246 USE_SOVERLINUX=1
43247 USE_SOSYMLINKS=1
43248 ;;
43249
a848cd7e
SC
43250 *-*-solaris2* )
43251 SONAME_FLAG="-h "
43252 USE_SOVERSION=1
43253 USE_SOVERSOLARIS=1
43254 USE_SOSYMLINKS=1
43255 ;;
43256
43257 *-*-darwin* )
43258 USE_MACVERSION=1
43259 USE_SOVERSION=1
43260 USE_SOSYMLINKS=1
43261 ;;
810b94f0
MW
43262
43263 *-*-cygwin* )
43264 USE_SOVERSION=1
43265 USE_SOVERCYGWIN=1
43266 ;;
a848cd7e
SC
43267 esac
43268
43269
43270
43271
43272
43273
43274
43275
43276
810b94f0 43277
a848cd7e
SC
43278 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43279echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43280 DEPS_TRACKING=0
43281
43282 if test "x$GCC" = "xyes"; then
43283 DEPSMODE=gcc
43284 DEPS_TRACKING=1
43285 case "${BAKEFILE_HOST}" in
43286 powerpc-*-darwin* )
43287 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43288 ;;
43289 * )
43290 DEPSFLAG_GCC="-MMD"
43291 ;;
43292 esac
43293 echo "$as_me:$LINENO: result: gcc" >&5
43294echo "${ECHO_T}gcc" >&6
b1d22ded 43295 elif test "x$MWCC" = "xyes"; then
81f90336 43296 DEPSMODE=mwcc
b1d22ded 43297 DEPS_TRACKING=1
81f90336 43298 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43299 echo "$as_me:$LINENO: result: mwcc" >&5
43300echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43301 elif test "x$SUNCC" = "xyes"; then
43302 DEPSMODE=suncc
43303 DEPS_TRACKING=1
43304 DEPSFLAG_SUNCC="-xM1"
43305 echo "$as_me:$LINENO: result: suncc" >&5
43306echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43307 else
43308 echo "$as_me:$LINENO: result: none" >&5
43309echo "${ECHO_T}none" >&6
43310 fi
43311
43312 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43313
43314D='$'
43315cat <<EOF >bk-deps
a848cd7e
SC
43316#!/bin/sh
43317
43318# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43319# script. It is used to track C/C++ files dependencies in portable way.
43320#
43321# Permission is given to use this file in any way.
43322
473276a9 43323DEPSMODE=${DEPSMODE}
a848cd7e 43324DEPSDIR=.deps
473276a9 43325DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43326DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43327DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43328
473276a9 43329mkdir -p ${D}DEPSDIR
a848cd7e 43330
473276a9
VS
43331if test ${D}DEPSMODE = gcc ; then
43332 ${D}* ${D}{DEPSFLAG_GCC}
43333 status=${D}?
43334 if test ${D}{status} != 0 ; then
43335 exit ${D}{status}
a848cd7e
SC
43336 fi
43337 # move created file to the location we want it in:
473276a9
VS
43338 while test ${D}# -gt 0; do
43339 case "${D}1" in
a848cd7e
SC
43340 -o )
43341 shift
473276a9 43342 objfile=${D}1
a848cd7e
SC
43343 ;;
43344 -* )
43345 ;;
43346 * )
473276a9 43347 srcfile=${D}1
a848cd7e
SC
43348 ;;
43349 esac
43350 shift
43351 done
1e9e8aba
DE
43352 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43353 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43354 if test -f ${D}depfile ; then
43355 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43356 rm -f ${D}depfile
a848cd7e 43357 else
1e9e8aba 43358 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43359 if test -f ${D}depfile ; then
43360 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43361 rm -f ${D}depfile
a848cd7e
SC
43362 fi
43363 fi
43364 exit 0
81f90336
MW
43365elif test ${D}DEPSMODE = mwcc ; then
43366 ${D}*
43367 status=${D}?
43368 if test ${D}{status} != 0 ; then
43369 exit ${D}{status}
43370 fi
43371 # Run mwcc again with -MM and redirect into the dep file we want
43372 # NOTE: We can't use shift here because we need ${D}* to be valid
43373 prevarg=
43374 for arg in ${D}* ; do
43375 if test "${D}prevarg" = "-o"; then
43376 objfile=${D}arg
43377 else
43378 case "${D}arg" in
43379 -* )
43380 ;;
43381 * )
43382 srcfile=${D}arg
43383 ;;
43384 esac
43385 fi
43386 prevarg="${D}arg"
43387 done
43388 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43389 exit 0
a9e5b1f0
MW
43390elif test ${D}DEPSMODE = suncc; then
43391 ${D}* || exit
43392 # Run compiler again with deps flag and redirect into the dep file.
43393 # It doesn't work if the '-o FILE' option is used, but without it the
43394 # dependency file will contain the wrong name for the object. So it is
43395 # removed from the command line, and the dep file is fixed with sed.
43396 cmd=""
43397 while test ${D}# -gt 0; do
43398 case "${D}1" in
43399 -o )
43400 shift
43401 objfile=${D}1
43402 ;;
43403 * )
43404 eval arg${D}#=\\${D}1
43405 cmd="${D}cmd \\${D}arg${D}#"
43406 ;;
43407 esac
43408 shift
43409 done
43410 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43411 exit 0
a848cd7e 43412else
473276a9
VS
43413 ${D}*
43414 exit ${D}?
a848cd7e
SC
43415fi
43416EOF
473276a9 43417
a848cd7e
SC
43418 chmod +x bk-deps
43419 fi
43420
43421
43422
43423
43424 RESCOMP=
43425 SETFILE=
43426
43427 case ${BAKEFILE_HOST} in
43428 *-*-cygwin* | *-*-mingw32* )
43429 if test "$build" != "$host" ; then
43430 RESCOMP=$host_alias-windres
43431 else
43432 # Extract the first word of "windres", so it can be a program name with args.
43433set dummy windres; ac_word=$2
43434echo "$as_me:$LINENO: checking for $ac_word" >&5
43435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43436if test "${ac_cv_prog_RESCOMP+set}" = set; then
43437 echo $ECHO_N "(cached) $ECHO_C" >&6
43438else
43439 if test -n "$RESCOMP"; then
43440 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43441else
43442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43443for as_dir in $PATH
43444do
43445 IFS=$as_save_IFS
43446 test -z "$as_dir" && as_dir=.
43447 for ac_exec_ext in '' $ac_executable_extensions; do
43448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43449 ac_cv_prog_RESCOMP="windres"
43450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43451 break 2
43452 fi
43453done
43454done
43455
43456 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43457fi
43458fi
43459RESCOMP=$ac_cv_prog_RESCOMP
43460if test -n "$RESCOMP"; then
43461 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43462echo "${ECHO_T}$RESCOMP" >&6
43463else
43464 echo "$as_me:$LINENO: result: no" >&5
43465echo "${ECHO_T}no" >&6
43466fi
43467
43468 fi
43469 ;;
43470
1e9e8aba 43471 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43472 # Extract the first word of "Rez", so it can be a program name with args.
43473set dummy Rez; ac_word=$2
43474echo "$as_me:$LINENO: checking for $ac_word" >&5
43475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43476if test "${ac_cv_prog_RESCOMP+set}" = set; then
43477 echo $ECHO_N "(cached) $ECHO_C" >&6
43478else
43479 if test -n "$RESCOMP"; then
43480 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43481else
43482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43483for as_dir in $PATH
43484do
43485 IFS=$as_save_IFS
43486 test -z "$as_dir" && as_dir=.
43487 for ac_exec_ext in '' $ac_executable_extensions; do
43488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43489 ac_cv_prog_RESCOMP="Rez"
43490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43491 break 2
43492 fi
43493done
43494done
43495
43496 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43497fi
43498fi
43499RESCOMP=$ac_cv_prog_RESCOMP
43500if test -n "$RESCOMP"; then
43501 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43502echo "${ECHO_T}$RESCOMP" >&6
43503else
43504 echo "$as_me:$LINENO: result: no" >&5
43505echo "${ECHO_T}no" >&6
43506fi
43507
43508 # Extract the first word of "SetFile", so it can be a program name with args.
43509set dummy SetFile; ac_word=$2
43510echo "$as_me:$LINENO: checking for $ac_word" >&5
43511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43512if test "${ac_cv_prog_SETFILE+set}" = set; then
43513 echo $ECHO_N "(cached) $ECHO_C" >&6
43514else
43515 if test -n "$SETFILE"; then
43516 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43517else
43518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43519for as_dir in $PATH
43520do
43521 IFS=$as_save_IFS
43522 test -z "$as_dir" && as_dir=.
43523 for ac_exec_ext in '' $ac_executable_extensions; do
43524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43525 ac_cv_prog_SETFILE="SetFile"
43526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43527 break 2
43528 fi
43529done
43530done
43531
43532 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43533fi
43534fi
43535SETFILE=$ac_cv_prog_SETFILE
43536if test -n "$SETFILE"; then
43537 echo "$as_me:$LINENO: result: $SETFILE" >&5
43538echo "${ECHO_T}$SETFILE" >&6
43539else
43540 echo "$as_me:$LINENO: result: no" >&5
43541echo "${ECHO_T}no" >&6
43542fi
43543
43544 ;;
43545 esac
43546
43547
43548
43549
43550
c9469659 43551 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43552
dcc1b6ad 43553
c9469659 43554BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43555
646b6ec1 43556
74b84332 43557
a848cd7e
SC
43558 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43559if test "${enable_precomp_headers+set}" = set; then
43560 enableval="$enable_precomp_headers"
43561 bk_use_pch="$enableval"
43562fi;
43563
43564 GCC_PCH=0
43565
43566 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43567 if test "x$GCC" = "xyes"; then
43568 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43569echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43570 cat >conftest.$ac_ext <<_ACEOF
43571/* confdefs.h. */
43572_ACEOF
43573cat confdefs.h >>conftest.$ac_ext
43574cat >>conftest.$ac_ext <<_ACEOF
43575/* end confdefs.h. */
43576
43577int
43578main ()
43579{
43580
43581 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43582 #error "no pch support"
43583 #endif
43584 #if (__GNUC__ < 3)
43585 #error "no pch support"
43586 #endif
43587 #if (__GNUC__ == 3) && \
43588 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43589 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43590 #error "no pch support"
43591 #endif
43592
43593 ;
43594 return 0;
43595}
43596_ACEOF
43597rm -f conftest.$ac_objext
43598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43599 (eval $ac_compile) 2>conftest.er1
a848cd7e 43600 ac_status=$?
ac1cb8d3
VS
43601 grep -v '^ *+' conftest.er1 >conftest.err
43602 rm -f conftest.er1
43603 cat conftest.err >&5
a848cd7e
SC
43604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605 (exit $ac_status); } &&
ddd14b14
RR
43606 { ac_try='test -z "$ac_c_werror_flag"
43607 || test ! -s conftest.err'
ac1cb8d3
VS
43608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609 (eval $ac_try) 2>&5
43610 ac_status=$?
43611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612 (exit $ac_status); }; } &&
43613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43616 ac_status=$?
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; }; then
43619
43620 echo "$as_me:$LINENO: result: yes" >&5
43621echo "${ECHO_T}yes" >&6
a848cd7e
SC
43622 GCC_PCH=1
43623
43624else
43625 echo "$as_me: failed program was:" >&5
43626sed 's/^/| /' conftest.$ac_ext >&5
43627
43628
43629 echo "$as_me:$LINENO: result: no" >&5
43630echo "${ECHO_T}no" >&6
43631
43632fi
ac1cb8d3 43633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43634 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43635
43636D='$'
43637cat <<EOF >bk-make-pch
a848cd7e
SC
43638#!/bin/sh
43639
43640# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43641# script. It is used to generated precompiled headers.
43642#
43643# Permission is given to use this file in any way.
43644
1e9e8aba
DE
43645outfile="${D}{1}"
43646header="${D}{2}"
a848cd7e
SC
43647shift
43648shift
43649
43650compiler=
43651headerfile=
1e9e8aba
DE
43652while test ${D}{#} -gt 0; do
43653 case "${D}{1}" in
a848cd7e 43654 -I* )
1e9e8aba
DE
43655 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43656 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43657 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43658 fi
43659 ;;
43660 esac
1e9e8aba 43661 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43662 shift
43663done
43664
1e9e8aba
DE
43665if test "x${D}{headerfile}" = "x" ; then
43666 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43667else
1e9e8aba
DE
43668 if test -f ${D}{outfile} ; then
43669 rm -f ${D}{outfile}
a848cd7e 43670 else
1e9e8aba 43671 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43672 fi
1e9e8aba 43673 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43674 mkdir -p .deps
43675 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43676 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43677 exit ${D}{?}
a848cd7e
SC
43678fi
43679EOF
1e9e8aba 43680
a848cd7e
SC
43681 chmod +x bk-make-pch
43682 fi
43683 fi
43684 fi
43685
43686
43687
a848cd7e
SC
43688 COND_BUILD_DEBUG="#"
43689 if test "x$BUILD" = "xdebug" ; then
43690 COND_BUILD_DEBUG=""
43691 fi
43692
43693 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43694 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43695 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43696 fi
43697
43698 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43699 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43700 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43701 fi
43702
43703 COND_BUILD_DEBUG_UNICODE_0="#"
43704 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43705 COND_BUILD_DEBUG_UNICODE_0=""
43706 fi
43707
43708 COND_BUILD_DEBUG_UNICODE_1="#"
43709 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43710 COND_BUILD_DEBUG_UNICODE_1=""
43711 fi
43712
43713 COND_BUILD_RELEASE="#"
43714 if test "x$BUILD" = "xrelease" ; then
43715 COND_BUILD_RELEASE=""
43716 fi
43717
43718 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43719 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43720 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43721 fi
43722
43723 COND_BUILD_RELEASE_UNICODE_0="#"
43724 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43725 COND_BUILD_RELEASE_UNICODE_0=""
43726 fi
43727
43728 COND_BUILD_RELEASE_UNICODE_1="#"
43729 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43730 COND_BUILD_RELEASE_UNICODE_1=""
43731 fi
43732
43733 COND_DEBUG_FLAG_1="#"
43734 if test "x$DEBUG_FLAG" = "x1" ; then
43735 COND_DEBUG_FLAG_1=""
43736 fi
43737
43738 COND_DEBUG_INFO_0="#"
43739 if test "x$DEBUG_INFO" = "x0" ; then
43740 COND_DEBUG_INFO_0=""
43741 fi
43742
43743 COND_DEBUG_INFO_1="#"
43744 if test "x$DEBUG_INFO" = "x1" ; then
43745 COND_DEBUG_INFO_1=""
43746 fi
43747
43748 COND_DEPS_TRACKING_0="#"
43749 if test "x$DEPS_TRACKING" = "x0" ; then
43750 COND_DEPS_TRACKING_0=""
43751 fi
43752
43753 COND_DEPS_TRACKING_1="#"
43754 if test "x$DEPS_TRACKING" = "x1" ; then
43755 COND_DEPS_TRACKING_1=""
43756 fi
43757
43758 COND_GCC_PCH_1="#"
43759 if test "x$GCC_PCH" = "x1" ; then
43760 COND_GCC_PCH_1=""
43761 fi
43762
43763 COND_MONOLITHIC_0="#"
43764 if test "x$MONOLITHIC" = "x0" ; then
43765 COND_MONOLITHIC_0=""
43766 fi
43767
43768 COND_MONOLITHIC_0_SHARED_0="#"
43769 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43770 COND_MONOLITHIC_0_SHARED_0=""
43771 fi
43772
43773 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43774 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43775 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43776 fi
43777
90970d69
DE
43778 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43779 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43780 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43781 fi
43782
a848cd7e
SC
43783 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43784 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43785 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43786 fi
43787
6671c68b
VZ
43788 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43789 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43790 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43791 fi
43792
a848cd7e
SC
43793 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43794 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43795 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43796 fi
43797
ceec2216
RL
43798 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43799 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43800 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43801 fi
43802
a848cd7e
SC
43803 COND_MONOLITHIC_0_SHARED_1="#"
43804 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43805 COND_MONOLITHIC_0_SHARED_1=""
43806 fi
43807
43808 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43809 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43810 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43811 fi
43812
90970d69
DE
43813 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43814 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43815 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43816 fi
43817
a848cd7e
SC
43818 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43819 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43820 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43821 fi
43822
6671c68b
VZ
43823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43824 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43826 fi
43827
a848cd7e
SC
43828 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43829 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43830 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43831 fi
43832
ceec2216
RL
43833 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43834 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43835 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43836 fi
43837
a848cd7e
SC
43838 COND_MONOLITHIC_0_USE_ODBC_1="#"
43839 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43840 COND_MONOLITHIC_0_USE_ODBC_1=""
43841 fi
43842
43843 COND_MONOLITHIC_1="#"
43844 if test "x$MONOLITHIC" = "x1" ; then
43845 COND_MONOLITHIC_1=""
43846 fi
43847
43848 COND_MONOLITHIC_1_SHARED_0="#"
43849 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43850 COND_MONOLITHIC_1_SHARED_0=""
43851 fi
43852
43853 COND_MONOLITHIC_1_SHARED_1="#"
43854 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43855 COND_MONOLITHIC_1_SHARED_1=""
43856 fi
43857
43858 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43859 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43860 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43861 fi
43862
43863 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43864 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43866 fi
43867
eb730a0c
JS
43868 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43869 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43870 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43871 fi
43872
a848cd7e
SC
43873 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43874 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43875 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43876 fi
43877
43878 COND_PLATFORM_MACOSX_1="#"
43879 if test "x$PLATFORM_MACOSX" = "x1" ; then
43880 COND_PLATFORM_MACOSX_1=""
43881 fi
43882
a30f955f
VS
43883 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43884 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43885 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43886 fi
43887
a848cd7e
SC
43888 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43889 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43890 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43891 fi
43892
43893 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43894 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43895 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43896 fi
43897
43898 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43899 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43900 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43901 fi
43902
fc480dc1
DE
43903 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43904 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43905 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43906 fi
43907
1e9e8aba
DE
43908 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43909 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43910 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43911 fi
43912
ebee3cd0
VS
43913 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43914 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43915 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43916 fi
43917
43918 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43919 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43920 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43921 fi
43922
a848cd7e
SC
43923 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43924 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43925 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43926 fi
43927
43928 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43929 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43930 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43931 fi
43932
b48a2016
DE
43933 COND_PLATFORM_MACOS_1="#"
43934 if test "x$PLATFORM_MACOS" = "x1" ; then
43935 COND_PLATFORM_MACOS_1=""
43936 fi
43937
083508af
MW
43938 COND_PLATFORM_MAC_1="#"
43939 if test "x$PLATFORM_MAC" = "x1" ; then
43940 COND_PLATFORM_MAC_1=""
43941 fi
43942
83d8eb47
MW
43943 COND_PLATFORM_MSDOS_1="#"
43944 if test "x$PLATFORM_MSDOS" = "x1" ; then
43945 COND_PLATFORM_MSDOS_1=""
43946 fi
43947
a848cd7e
SC
43948 COND_PLATFORM_OS2_1="#"
43949 if test "x$PLATFORM_OS2" = "x1" ; then
43950 COND_PLATFORM_OS2_1=""
43951 fi
43952
43953 COND_PLATFORM_UNIX_0="#"
43954 if test "x$PLATFORM_UNIX" = "x0" ; then
43955 COND_PLATFORM_UNIX_0=""
43956 fi
43957
43958 COND_PLATFORM_UNIX_1="#"
43959 if test "x$PLATFORM_UNIX" = "x1" ; then
43960 COND_PLATFORM_UNIX_1=""
43961 fi
43962
43963 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43964 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43965 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43966 fi
43967
43968 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43969 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43970 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43971 fi
43972
43973 COND_PLATFORM_WIN32_0="#"
43974 if test "x$PLATFORM_WIN32" = "x0" ; then
43975 COND_PLATFORM_WIN32_0=""
43976 fi
43977
43978 COND_PLATFORM_WIN32_1="#"
43979 if test "x$PLATFORM_WIN32" = "x1" ; then
43980 COND_PLATFORM_WIN32_1=""
43981 fi
43982
43983 COND_SHARED_0="#"
43984 if test "x$SHARED" = "x0" ; then
43985 COND_SHARED_0=""
43986 fi
43987
083508af
MW
43988 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43989 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43990 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43991 fi
43992
43993 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43994 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43995 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43996 fi
43997
43998 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43999 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44000 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44001 fi
44002
a848cd7e
SC
44003 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44004 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44005 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44006 fi
44007
44008 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44009 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44010 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44011 fi
44012
44013 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44014 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44015 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44016 fi
44017
44018 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44019 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44020 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44021 fi
44022
083508af
MW
44023 COND_SHARED_0_USE_XRC_1="#"
44024 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44025 COND_SHARED_0_USE_XRC_1=""
44026 fi
44027
a848cd7e
SC
44028 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44029 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44030 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44031 fi
44032
44033 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44034 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44035 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44036 fi
44037
44038 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44039 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44040 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44041 fi
44042
44043 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44044 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44045 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44046 fi
44047
44048 COND_SHARED_1="#"
44049 if test "x$SHARED" = "x1" ; then
44050 COND_SHARED_1=""
44051 fi
44052
44053 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44054 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44055 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44056 fi
44057
083508af
MW
44058 COND_SHARED_1_USE_XRC_1="#"
44059 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44060 COND_SHARED_1_USE_XRC_1=""
44061 fi
44062
a30f955f
VS
44063 COND_TOOLKIT_="#"
44064 if test "x$TOOLKIT" = "x" ; then
44065 COND_TOOLKIT_=""
44066 fi
44067
a848cd7e
SC
44068 COND_TOOLKIT_COCOA="#"
44069 if test "x$TOOLKIT" = "xCOCOA" ; then
44070 COND_TOOLKIT_COCOA=""
44071 fi
44072
a49baeab
DE
44073 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44074 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44075 COND_TOOLKIT_COCOA_USE_GUI_1=""
44076 fi
44077
a848cd7e
SC
44078 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44079 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44080 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44081 fi
44082
44083 COND_TOOLKIT_GTK="#"
44084 if test "x$TOOLKIT" = "xGTK" ; then
44085 COND_TOOLKIT_GTK=""
44086 fi
44087
44088 COND_TOOLKIT_GTK_USE_GUI_1="#"
44089 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44090 COND_TOOLKIT_GTK_USE_GUI_1=""
44091 fi
44092
44093 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44094 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44095 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44096 fi
44097
44098 COND_TOOLKIT_MAC="#"
44099 if test "x$TOOLKIT" = "xMAC" ; then
44100 COND_TOOLKIT_MAC=""
44101 fi
44102
44103 COND_TOOLKIT_MAC_USE_GUI_1="#"
44104 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44105 COND_TOOLKIT_MAC_USE_GUI_1=""
44106 fi
44107
44108 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44109 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44110 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44111 fi
44112
44113 COND_TOOLKIT_MGL="#"
44114 if test "x$TOOLKIT" = "xMGL" ; then
44115 COND_TOOLKIT_MGL=""
44116 fi
44117
44118 COND_TOOLKIT_MGL_USE_GUI_1="#"
44119 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44120 COND_TOOLKIT_MGL_USE_GUI_1=""
44121 fi
44122
44123 COND_TOOLKIT_MOTIF="#"
44124 if test "x$TOOLKIT" = "xMOTIF" ; then
44125 COND_TOOLKIT_MOTIF=""
44126 fi
44127
44128 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44129 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44130 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44131 fi
44132
44133 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44134 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44135 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44136 fi
44137
44138 COND_TOOLKIT_MSW="#"
44139 if test "x$TOOLKIT" = "xMSW" ; then
44140 COND_TOOLKIT_MSW=""
44141 fi
44142
44143 COND_TOOLKIT_MSW_USE_GUI_1="#"
44144 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44145 COND_TOOLKIT_MSW_USE_GUI_1=""
44146 fi
44147
44148 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44149 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44150 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44151 fi
44152
44153 COND_TOOLKIT_PM="#"
44154 if test "x$TOOLKIT" = "xPM" ; then
44155 COND_TOOLKIT_PM=""
44156 fi
44157
44158 COND_TOOLKIT_PM_USE_GUI_1="#"
44159 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44160 COND_TOOLKIT_PM_USE_GUI_1=""
44161 fi
44162
44163 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44164 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44165 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44166 fi
44167
3fd9c298
DE
44168 COND_TOOLKIT_WINCE="#"
44169 if test "x$TOOLKIT" = "xWINCE" ; then
44170 COND_TOOLKIT_WINCE=""
44171 fi
44172
44173 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44174 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44175 COND_TOOLKIT_WINCE_USE_GUI_1=""
44176 fi
44177
44178 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44179 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44180 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44181 fi
44182
a848cd7e
SC
44183 COND_TOOLKIT_X11="#"
44184 if test "x$TOOLKIT" = "xX11" ; then
44185 COND_TOOLKIT_X11=""
44186 fi
44187
44188 COND_TOOLKIT_X11_USE_GUI_1="#"
44189 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44190 COND_TOOLKIT_X11_USE_GUI_1=""
44191 fi
44192
44193 COND_UNICODE_1="#"
44194 if test "x$UNICODE" = "x1" ; then
44195 COND_UNICODE_1=""
44196 fi
44197
44198 COND_USE_EXCEPTIONS_0="#"
44199 if test "x$USE_EXCEPTIONS" = "x0" ; then
44200 COND_USE_EXCEPTIONS_0=""
44201 fi
44202
44203 COND_USE_EXCEPTIONS_1="#"
44204 if test "x$USE_EXCEPTIONS" = "x1" ; then
44205 COND_USE_EXCEPTIONS_1=""
44206 fi
44207
44208 COND_USE_GUI_0="#"
44209 if test "x$USE_GUI" = "x0" ; then
44210 COND_USE_GUI_0=""
44211 fi
44212
44213 COND_USE_GUI_1="#"
44214 if test "x$USE_GUI" = "x1" ; then
44215 COND_USE_GUI_1=""
44216 fi
44217
44218 COND_USE_GUI_1_WXUNIV_0="#"
44219 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44220 COND_USE_GUI_1_WXUNIV_0=""
44221 fi
44222
44223 COND_USE_GUI_1_WXUNIV_1="#"
44224 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44225 COND_USE_GUI_1_WXUNIV_1=""
44226 fi
44227
44228 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44229 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44230 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44231 fi
44232
44233 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44234 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44235 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44236 fi
44237
44238 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44239 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44240 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44241 fi
44242
083508af
MW
44243 COND_USE_ODBC_1="#"
44244 if test "x$USE_ODBC" = "x1" ; then
44245 COND_USE_ODBC_1=""
44246 fi
44247
44248 COND_USE_OPENGL_1="#"
44249 if test "x$USE_OPENGL" = "x1" ; then
44250 COND_USE_OPENGL_1=""
44251 fi
44252
a848cd7e
SC
44253 COND_USE_PLUGINS_0="#"
44254 if test "x$USE_PLUGINS" = "x0" ; then
44255 COND_USE_PLUGINS_0=""
44256 fi
44257
0b78747f
MW
44258 COND_USE_RTTI_0="#"
44259 if test "x$USE_RTTI" = "x0" ; then
44260 COND_USE_RTTI_0=""
44261 fi
44262
44263 COND_USE_RTTI_1="#"
44264 if test "x$USE_RTTI" = "x1" ; then
44265 COND_USE_RTTI_1=""
44266 fi
44267
a848cd7e
SC
44268 COND_USE_SOSYMLINKS_1="#"
44269 if test "x$USE_SOSYMLINKS" = "x1" ; then
44270 COND_USE_SOSYMLINKS_1=""
44271 fi
44272
eb730a0c
JS
44273 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44274 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44275 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44276 fi
44277
a848cd7e
SC
44278 COND_USE_SOVERLINUX_1="#"
44279 if test "x$USE_SOVERLINUX" = "x1" ; then
44280 COND_USE_SOVERLINUX_1=""
44281 fi
44282
44283 COND_USE_SOVERSION_0="#"
44284 if test "x$USE_SOVERSION" = "x0" ; then
44285 COND_USE_SOVERSION_0=""
44286 fi
44287
44288 COND_USE_SOVERSOLARIS_1="#"
44289 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44290 COND_USE_SOVERSOLARIS_1=""
44291 fi
44292
0b78747f
MW
44293 COND_USE_THREADS_0="#"
44294 if test "x$USE_THREADS" = "x0" ; then
44295 COND_USE_THREADS_0=""
44296 fi
44297
44298 COND_USE_THREADS_1="#"
44299 if test "x$USE_THREADS" = "x1" ; then
44300 COND_USE_THREADS_1=""
44301 fi
44302
a13a7f89
RL
44303 COND_USE_XRC_1="#"
44304 if test "x$USE_XRC" = "x1" ; then
44305 COND_USE_XRC_1=""
44306 fi
44307
eb730a0c
JS
44308 COND_WINDOWS_IMPLIB_1="#"
44309 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44310 COND_WINDOWS_IMPLIB_1=""
44311 fi
44312
a848cd7e
SC
44313 COND_WITH_PLUGIN_SDL_1="#"
44314 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44315 COND_WITH_PLUGIN_SDL_1=""
44316 fi
44317
1e6eb025
VZ
44318 COND_WXUNIV_0="#"
44319 if test "x$WXUNIV" = "x0" ; then
44320 COND_WXUNIV_0=""
44321 fi
44322
a848cd7e
SC
44323 COND_WXUNIV_1="#"
44324 if test "x$WXUNIV" = "x1" ; then
44325 COND_WXUNIV_1=""
44326 fi
44327
44328 COND_WXUSE_EXPAT_BUILTIN="#"
44329 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44330 COND_WXUSE_EXPAT_BUILTIN=""
44331 fi
44332
44333 COND_WXUSE_LIBJPEG_BUILTIN="#"
44334 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44335 COND_WXUSE_LIBJPEG_BUILTIN=""
44336 fi
44337
44338 COND_WXUSE_LIBPNG_BUILTIN="#"
44339 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44340 COND_WXUSE_LIBPNG_BUILTIN=""
44341 fi
44342
44343 COND_WXUSE_LIBTIFF_BUILTIN="#"
44344 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44345 COND_WXUSE_LIBTIFF_BUILTIN=""
44346 fi
44347
44348 COND_WXUSE_ODBC_BUILTIN="#"
44349 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44350 COND_WXUSE_ODBC_BUILTIN=""
44351 fi
44352
44353 COND_WXUSE_REGEX_BUILTIN="#"
44354 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44355 COND_WXUSE_REGEX_BUILTIN=""
44356 fi
44357
44358 COND_WXUSE_ZLIB_BUILTIN="#"
44359 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44360 COND_WXUSE_ZLIB_BUILTIN=""
44361 fi
44362
44363
44364
810b94f0
MW
44365 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44366 { { 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
44367echo "$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;}
44368 { (exit 1); exit 1; }; }
44369 fi
44370
2057db16
VS
44371 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44372 { { 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
44373echo "$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;}
44374 { (exit 1); exit 1; }; }
44375 fi
44376
a848cd7e 44377
fb00f58d
JS
44378if test "$wxUSE_WINE" = "yes"; then
44379 RESCOMP=wrc
44380fi
44381
ceec2216
RL
44382if test "$wxUSE_SHARED" = "yes"; then
44383
44384 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44385 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44386
5b674b9d
DE
44387 case "${host}" in
44388 *-pc-os2_emx | *-pc-os2-emx )
44389 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44390 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44391 cp -p ${srcdir}/src/os2/dllnames.sh .
44392 cp -p ${srcdir}/src/os2/dllar.sh .
44393 ;;
44394 esac
ceec2216
RL
44395else
44396
44397 EXE_LINKER="$CXX -o"
44398
44399fi
69120ee4
VZ
44400if test "$wxUSE_OMF" = "yes"; then
44401 case "${host}" in
44402 *-pc-os2_emx | *-pc-os2-emx )
44403 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44404 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44405 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44406 ;;
44407 esac
44408fi
a848cd7e 44409
ddd14b14
RR
44410GCC_PRAGMA_FLAGS=""
44411PCH_FLAGS=""
87dd70d3 44412
c08ebc62 44413if test $GCC_PCH = 1 ; then
ddd14b14 44414 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44415 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44416else
44417 if test "$GCC" = yes; then
44418 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44419echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44420 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44421/* confdefs.h. */
44422_ACEOF
44423cat confdefs.h >>conftest.$ac_ext
44424cat >>conftest.$ac_ext <<_ACEOF
44425/* end confdefs.h. */
44426
44427int
44428main ()
44429{
44430#if (__GNUC__ < 4)
87ae5038
RR
44431 #error "Not GCC 4.0 or greater"
44432 #endif
87dd70d3
RR
44433
44434 ;
44435 return 0;
44436}
44437_ACEOF
44438rm -f conftest.$ac_objext
44439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44440 (eval $ac_compile) 2>conftest.er1
44441 ac_status=$?
44442 grep -v '^ *+' conftest.er1 >conftest.err
44443 rm -f conftest.er1
44444 cat conftest.err >&5
44445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44446 (exit $ac_status); } &&
44447 { ac_try='test -z "$ac_c_werror_flag"
44448 || test ! -s conftest.err'
44449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44450 (eval $ac_try) 2>&5
44451 ac_status=$?
44452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44453 (exit $ac_status); }; } &&
44454 { ac_try='test -s conftest.$ac_objext'
44455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44456 (eval $ac_try) 2>&5
44457 ac_status=$?
44458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44459 (exit $ac_status); }; }; then
44460 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44461 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44462echo "${ECHO_T}yes" >&6
44463else
44464 echo "$as_me: failed program was:" >&5
44465sed 's/^/| /' conftest.$ac_ext >&5
44466
44467echo "$as_me:$LINENO: result: no" >&5
44468echo "${ECHO_T}no" >&6
87ae5038
RR
44469 case "${host}" in
44470 powerpc-*-darwin* )
44471 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44472 ;;
44473 *-*-mingw32* )
44474 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44475 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44476 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44477 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44478echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44479 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44480/* confdefs.h. */
44481_ACEOF
44482cat confdefs.h >>conftest.$ac_ext
44483cat >>conftest.$ac_ext <<_ACEOF
44484/* end confdefs.h. */
44485
44486int
44487main ()
44488{
44489#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44490 #error "Not GCC 3.2 or greater"
44491 #endif
ddd14b14
RR
44492
44493 ;
44494 return 0;
44495}
44496_ACEOF
44497rm -f conftest.$ac_objext
44498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44499 (eval $ac_compile) 2>conftest.er1
44500 ac_status=$?
44501 grep -v '^ *+' conftest.er1 >conftest.err
44502 rm -f conftest.er1
44503 cat conftest.err >&5
44504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44505 (exit $ac_status); } &&
44506 { ac_try='test -z "$ac_c_werror_flag"
44507 || test ! -s conftest.err'
44508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44509 (eval $ac_try) 2>&5
44510 ac_status=$?
44511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44512 (exit $ac_status); }; } &&
44513 { ac_try='test -s conftest.$ac_objext'
44514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515 (eval $ac_try) 2>&5
44516 ac_status=$?
44517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518 (exit $ac_status); }; }; then
44519 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44520 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44521echo "${ECHO_T}yes" >&6
44522else
44523 echo "$as_me: failed program was:" >&5
44524sed 's/^/| /' conftest.$ac_ext >&5
44525
44526echo "$as_me:$LINENO: result: no" >&5
44527echo "${ECHO_T}no" >&6
3314e67b 44528fi
ddd14b14 44529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44530 fi
44531 ;;
44532 *-pc-os2_emx | *-pc-os2-emx )
44533 if test "$wxUSE_STL" = "yes"; then
44534 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44535echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44536 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44537/* confdefs.h. */
44538_ACEOF
44539cat confdefs.h >>conftest.$ac_ext
44540cat >>conftest.$ac_ext <<_ACEOF
44541/* end confdefs.h. */
44542
44543int
44544main ()
44545{
44546#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44547 #error "Not GCC 3.2 or greater"
44548 #endif
ddd14b14
RR
44549
44550 ;
44551 return 0;
44552}
44553_ACEOF
44554rm -f conftest.$ac_objext
44555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44556 (eval $ac_compile) 2>conftest.er1
44557 ac_status=$?
44558 grep -v '^ *+' conftest.er1 >conftest.err
44559 rm -f conftest.er1
44560 cat conftest.err >&5
44561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); } &&
44563 { ac_try='test -z "$ac_c_werror_flag"
44564 || test ! -s conftest.err'
44565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44566 (eval $ac_try) 2>&5
44567 ac_status=$?
44568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44569 (exit $ac_status); }; } &&
44570 { ac_try='test -s conftest.$ac_objext'
44571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44572 (eval $ac_try) 2>&5
44573 ac_status=$?
44574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44575 (exit $ac_status); }; }; then
44576 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44577 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44578echo "${ECHO_T}yes" >&6
44579else
44580 echo "$as_me: failed program was:" >&5
44581sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44582
ddd14b14
RR
44583echo "$as_me:$LINENO: result: no" >&5
44584echo "${ECHO_T}no" >&6
44585fi
44586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44587 fi
44588 ;;
44589 esac
44590
44591fi
44592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44593 fi
ddd14b14
RR
44594fi
44595CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44596
44597
44598SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
a848cd7e
SC
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
ddd14b14 44659
a848cd7e
SC
44660
44661
44662echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44663echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44664set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44665if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44666 echo $ECHO_N "(cached) $ECHO_C" >&6
44667else
44668 cat >conftest.make <<\_ACEOF
44669all:
44670 @echo 'ac_maketemp="$(MAKE)"'
44671_ACEOF
44672# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44673eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44674if test -n "$ac_maketemp"; then
44675 eval ac_cv_prog_make_${ac_make}_set=yes
44676else
44677 eval ac_cv_prog_make_${ac_make}_set=no
44678fi
44679rm -f conftest.make
44680fi
44681if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44682 echo "$as_me:$LINENO: result: yes" >&5
44683echo "${ECHO_T}yes" >&6
44684 SET_MAKE=
44685else
44686 echo "$as_me:$LINENO: result: no" >&5
44687echo "${ECHO_T}no" >&6
44688 SET_MAKE="MAKE=${MAKE-make}"
44689fi
44690
44691
a848cd7e 44692
ceec2216
RL
44693 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44694
a848cd7e 44695
ceec2216 44696 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44697
a848cd7e 44698
ceec2216 44699 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44700
ceec2216
RL
44701
44702 ac_config_files="$ac_config_files version-script Makefile"
44703
44704
44705 ac_config_commands="$ac_config_commands wx-config
44706 "
a848cd7e
SC
44707
44708
9103d280
RL
44709
44710
a848cd7e
SC
44711if test "$wxUSE_GUI" = "yes"; then
44712 SUBDIRS="samples demos utils contrib"
44713else SUBDIRS="samples utils"
44714fi
44715
44716
44717
44718# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44719if test "${with_cppunit_prefix+set}" = set; then
44720 withval="$with_cppunit_prefix"
44721 cppunit_config_prefix="$withval"
44722else
44723 cppunit_config_prefix=""
44724fi;
44725
44726# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44727if test "${with_cppunit_exec_prefix+set}" = set; then
44728 withval="$with_cppunit_exec_prefix"
44729 cppunit_config_exec_prefix="$withval"
44730else
44731 cppunit_config_exec_prefix=""
44732fi;
44733
44734 if test x$cppunit_config_exec_prefix != x ; then
44735 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44736 if test x${CPPUNIT_CONFIG+set} != xset ; then
44737 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44738 fi
44739 fi
44740 if test x$cppunit_config_prefix != x ; then
44741 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44742 if test x${CPPUNIT_CONFIG+set} != xset ; then
44743 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44744 fi
44745 fi
44746
44747 # Extract the first word of "cppunit-config", so it can be a program name with args.
44748set dummy cppunit-config; ac_word=$2
44749echo "$as_me:$LINENO: checking for $ac_word" >&5
44750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44751if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44752 echo $ECHO_N "(cached) $ECHO_C" >&6
44753else
44754 case $CPPUNIT_CONFIG in
44755 [\\/]* | ?:[\\/]*)
44756 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44757 ;;
44758 *)
44759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44760for as_dir in $PATH
44761do
44762 IFS=$as_save_IFS
44763 test -z "$as_dir" && as_dir=.
44764 for ac_exec_ext in '' $ac_executable_extensions; do
44765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44766 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44768 break 2
44769 fi
44770done
44771done
44772
44773 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44774 ;;
44775esac
44776fi
44777CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44778
44779if test -n "$CPPUNIT_CONFIG"; then
44780 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44781echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44782else
44783 echo "$as_me:$LINENO: result: no" >&5
44784echo "${ECHO_T}no" >&6
44785fi
44786
44787 cppunit_version_min=1.8.0
44788
44789 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44790echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44791 no_cppunit=""
44792 if test "$CPPUNIT_CONFIG" = "no" ; then
44793 no_cppunit=yes
44794 else
44795 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44796 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44797 cppunit_version=`$CPPUNIT_CONFIG --version`
44798
44799 cppunit_major_version=`echo $cppunit_version | \
44800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44801 cppunit_minor_version=`echo $cppunit_version | \
44802 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44803 cppunit_micro_version=`echo $cppunit_version | \
44804 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44805
44806 cppunit_major_min=`echo $cppunit_version_min | \
44807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44808 cppunit_minor_min=`echo $cppunit_version_min | \
44809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44810 cppunit_micro_min=`echo $cppunit_version_min | \
44811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44812
44813 cppunit_version_proper=`expr \
44814 $cppunit_major_version \> $cppunit_major_min \| \
44815 $cppunit_major_version \= $cppunit_major_min \& \
44816 $cppunit_minor_version \> $cppunit_minor_min \| \
44817 $cppunit_major_version \= $cppunit_major_min \& \
44818 $cppunit_minor_version \= $cppunit_minor_min \& \
44819 $cppunit_micro_version \>= $cppunit_micro_min `
44820
44821 if test "$cppunit_version_proper" = "1" ; then
44822 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44823echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44824 else
44825 echo "$as_me:$LINENO: result: no" >&5
44826echo "${ECHO_T}no" >&6
44827 no_cppunit=yes
44828 fi
44829 fi
44830
44831 if test "x$no_cppunit" = x ; then
c2218763 44832 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44833 else
44834 CPPUNIT_CFLAGS=""
44835 CPPUNIT_LIBS=""
c2218763 44836 :
a848cd7e
SC
44837 fi
44838
44839
44840
44841
44842
44843for subdir in `echo $SUBDIRS`; do
44844 if test -d ${srcdir}/${subdir} ; then
44845 if test "$wxUSE_GUI" = "yes"; then
44846 if test ${subdir} = "samples"; then
44847 makefiles="samples/Makefile.in $makefiles"
44848 for sample in `echo $SAMPLES_SUBDIRS`; do
44849 if test -d $srcdir/samples/$sample; then
44850 makefiles="samples/$sample/Makefile.in $makefiles"
44851 fi
44852 done
9c112555
MW
44853 else
44854 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44855 eval "disabled=\$$disabled_var"
44856 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44857 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44858 fi
44859 else if test ${subdir} = "samples"; then
44860 makefiles="samples/Makefile.in samples/console/Makefile.in"
44861 elif test ${subdir} = "utils"; then
6537ccf8
VS
44862 makefiles=""
44863 for util in HelpGen tex2rtf ; do
44864 if test -d $srcdir/utils/$util ; then
44865 makefiles="utils/$util/Makefile.in \
44866 utils/$util/src/Makefile.in \
44867 $makefiles"
44868 fi
44869 done
a848cd7e
SC
44870 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44871 fi
44872 fi
44873
44874 for mkin in $makefiles ; do
44875 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44876 ac_config_files="$ac_config_files $mk"
44877
44878 done
44879 fi
44880done
44881
44882
44883cat >confcache <<\_ACEOF
44884# This file is a shell script that caches the results of configure
44885# tests run on this system so they can be shared between configure
44886# scripts and configure runs, see configure's option --config-cache.
44887# It is not useful on other systems. If it contains results you don't
44888# want to keep, you may remove or edit it.
44889#
44890# config.status only pays attention to the cache file if you give it
44891# the --recheck option to rerun configure.
44892#
44893# `ac_cv_env_foo' variables (set or unset) will be overridden when
44894# loading this file, other *unset* `ac_cv_foo' will be assigned the
44895# following values.
44896
44897_ACEOF
44898
44899# The following way of writing the cache mishandles newlines in values,
44900# but we know of no workaround that is simple, portable, and efficient.
44901# So, don't put newlines in cache variables' values.
44902# Ultrix sh set writes to stderr and can't be redirected directly,
44903# and sets the high bit in the cache file unless we assign to the vars.
44904{
44905 (set) 2>&1 |
44906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44907 *ac_space=\ *)
44908 # `set' does not quote correctly, so add quotes (double-quote
44909 # substitution turns \\\\ into \\, and sed turns \\ into \).
44910 sed -n \
ac1cb8d3
VS
44911 "s/'/'\\\\''/g;
44912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44913 ;;
44914 *)
44915 # `set' quotes correctly as required by POSIX, so do not add quotes.
44916 sed -n \
ac1cb8d3 44917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44918 ;;
44919 esac;
44920} |
44921 sed '
44922 t clear
44923 : clear
44924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44925 t end
44926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44927 : end' >>confcache
44928if diff $cache_file confcache >/dev/null 2>&1; then :; else
44929 if test -w $cache_file; then
44930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44931 cat confcache >$cache_file
44932 else
44933 echo "not updating unwritable cache $cache_file"
44934 fi
44935fi
44936rm -f confcache
44937
44938test "x$prefix" = xNONE && prefix=$ac_default_prefix
44939# Let make expand exec_prefix.
44940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44941
44942# VPATH may cause trouble with some makes, so we remove $(srcdir),
44943# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44944# trailing colons and then remove the whole line if VPATH becomes empty
44945# (actually we leave an empty line to preserve line numbers).
44946if test "x$srcdir" = x.; then
ac1cb8d3 44947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44948s/:*\$(srcdir):*/:/;
44949s/:*\${srcdir}:*/:/;
44950s/:*@srcdir@:*/:/;
ac1cb8d3 44951s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44952s/:*$//;
ac1cb8d3 44953s/^[^=]*=[ ]*$//;
a848cd7e
SC
44954}'
44955fi
44956
44957DEFS=-DHAVE_CONFIG_H
44958
44959ac_libobjs=
44960ac_ltlibobjs=
44961for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44962 # 1. Remove the extension, and $U if already installed.
44963 ac_i=`echo "$ac_i" |
ac1cb8d3 44964 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44965 # 2. Add them.
44966 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44967 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44968done
44969LIBOBJS=$ac_libobjs
44970
44971LTLIBOBJS=$ac_ltlibobjs
44972
44973
44974
44975: ${CONFIG_STATUS=./config.status}
44976ac_clean_files_save=$ac_clean_files
44977ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44978{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44979echo "$as_me: creating $CONFIG_STATUS" >&6;}
44980cat >$CONFIG_STATUS <<_ACEOF
44981#! $SHELL
44982# Generated by $as_me.
44983# Run this file to recreate the current configuration.
44984# Compiler output produced by configure, useful for debugging
44985# configure, is in config.log if it exists.
44986
44987debug=false
44988ac_cs_recheck=false
44989ac_cs_silent=false
44990SHELL=\${CONFIG_SHELL-$SHELL}
44991_ACEOF
44992
44993cat >>$CONFIG_STATUS <<\_ACEOF
44994## --------------------- ##
44995## M4sh Initialization. ##
44996## --------------------- ##
44997
44998# Be Bourne compatible
44999if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45000 emulate sh
45001 NULLCMD=:
45002 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45003 # is contrary to our usage. Disable this feature.
45004 alias -g '${1+"$@"}'='"$@"'
45005elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45006 set -o posix
45007fi
ac1cb8d3 45008DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45009
45010# Support unset when possible.
ac1cb8d3 45011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45012 as_unset=unset
45013else
45014 as_unset=false
45015fi
45016
45017
45018# Work around bugs in pre-3.0 UWIN ksh.
45019$as_unset ENV MAIL MAILPATH
45020PS1='$ '
45021PS2='> '
45022PS4='+ '
45023
45024# NLS nuisances.
45025for as_var in \
45026 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45027 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45028 LC_TELEPHONE LC_TIME
45029do
ac1cb8d3 45030 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45031 eval $as_var=C; export $as_var
45032 else
45033 $as_unset $as_var
45034 fi
45035done
45036
45037# Required to use basename.
45038if expr a : '\(a\)' >/dev/null 2>&1; then
45039 as_expr=expr
45040else
45041 as_expr=false
45042fi
45043
45044if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45045 as_basename=basename
45046else
45047 as_basename=false
45048fi
45049
45050
45051# Name of the executable.
45052as_me=`$as_basename "$0" ||
45053$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45054 X"$0" : 'X\(//\)$' \| \
45055 X"$0" : 'X\(/\)$' \| \
45056 . : '\(.\)' 2>/dev/null ||
45057echo X/"$0" |
45058 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45059 /^X\/\(\/\/\)$/{ s//\1/; q; }
45060 /^X\/\(\/\).*/{ s//\1/; q; }
45061 s/.*/./; q'`
45062
45063
45064# PATH needs CR, and LINENO needs CR and PATH.
45065# Avoid depending upon Character Ranges.
45066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45069as_cr_digits='0123456789'
45070as_cr_alnum=$as_cr_Letters$as_cr_digits
45071
45072# The user is always right.
45073if test "${PATH_SEPARATOR+set}" != set; then
45074 echo "#! /bin/sh" >conf$$.sh
45075 echo "exit 0" >>conf$$.sh
45076 chmod +x conf$$.sh
45077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45078 PATH_SEPARATOR=';'
45079 else
45080 PATH_SEPARATOR=:
45081 fi
45082 rm -f conf$$.sh
45083fi
45084
45085
45086 as_lineno_1=$LINENO
45087 as_lineno_2=$LINENO
45088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45089 test "x$as_lineno_1" != "x$as_lineno_2" &&
45090 test "x$as_lineno_3" = "x$as_lineno_2" || {
45091 # Find who we are. Look in the path if we contain no path at all
45092 # relative or not.
45093 case $0 in
45094 *[\\/]* ) as_myself=$0 ;;
45095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45096for as_dir in $PATH
45097do
45098 IFS=$as_save_IFS
45099 test -z "$as_dir" && as_dir=.
45100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45101done
45102
45103 ;;
45104 esac
45105 # We did not find ourselves, most probably we were run as `sh COMMAND'
45106 # in which case we are not to be found in the path.
45107 if test "x$as_myself" = x; then
45108 as_myself=$0
45109 fi
45110 if test ! -f "$as_myself"; then
45111 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45112echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45113 { (exit 1); exit 1; }; }
45114 fi
45115 case $CONFIG_SHELL in
45116 '')
45117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45118for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45119do
45120 IFS=$as_save_IFS
45121 test -z "$as_dir" && as_dir=.
45122 for as_base in sh bash ksh sh5; do
45123 case $as_dir in
45124 /*)
45125 if ("$as_dir/$as_base" -c '
45126 as_lineno_1=$LINENO
45127 as_lineno_2=$LINENO
45128 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45129 test "x$as_lineno_1" != "x$as_lineno_2" &&
45130 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45131 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45132 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45133 CONFIG_SHELL=$as_dir/$as_base
45134 export CONFIG_SHELL
45135 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45136 fi;;
45137 esac
45138 done
45139done
45140;;
45141 esac
45142
45143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45144 # uniformly replaced by the line number. The first 'sed' inserts a
45145 # line-number line before each line; the second 'sed' does the real
45146 # work. The second script uses 'N' to pair each line-number line
45147 # with the numbered line, and appends trailing '-' during
45148 # substitution so that $LINENO is not a special case at line end.
45149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45150 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45151 sed '=' <$as_myself |
45152 sed '
45153 N
45154 s,$,-,
45155 : loop
45156 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45157 t loop
45158 s,-$,,
45159 s,^['$as_cr_digits']*\n,,
45160 ' >$as_me.lineno &&
45161 chmod +x $as_me.lineno ||
45162 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45163echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45164 { (exit 1); exit 1; }; }
45165
45166 # Don't try to exec as it changes $[0], causing all sort of problems
45167 # (the dirname of $[0] is not the place where we might find the
45168 # original and so on. Autoconf is especially sensible to this).
45169 . ./$as_me.lineno
45170 # Exit status is that of the last command.
45171 exit
45172}
45173
45174
45175case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45176 *c*,-n*) ECHO_N= ECHO_C='
45177' ECHO_T=' ' ;;
45178 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45179 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45180esac
45181
45182if expr a : '\(a\)' >/dev/null 2>&1; then
45183 as_expr=expr
45184else
45185 as_expr=false
45186fi
45187
45188rm -f conf$$ conf$$.exe conf$$.file
45189echo >conf$$.file
45190if ln -s conf$$.file conf$$ 2>/dev/null; then
45191 # We could just check for DJGPP; but this test a) works b) is more generic
45192 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45193 if test -f conf$$.exe; then
45194 # Don't use ln at all; we don't have any links
45195 as_ln_s='cp -p'
45196 else
45197 as_ln_s='ln -s'
45198 fi
45199elif ln conf$$.file conf$$ 2>/dev/null; then
45200 as_ln_s=ln
45201else
45202 as_ln_s='cp -p'
45203fi
45204rm -f conf$$ conf$$.exe conf$$.file
45205
45206if mkdir -p . 2>/dev/null; then
45207 as_mkdir_p=:
45208else
ac1cb8d3 45209 test -d ./-p && rmdir ./-p
a848cd7e
SC
45210 as_mkdir_p=false
45211fi
45212
45213as_executable_p="test -f"
45214
45215# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45217
45218# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45220
45221
45222# IFS
45223# We need space, tab and new line, in precisely that order.
45224as_nl='
45225'
45226IFS=" $as_nl"
45227
45228# CDPATH.
45229$as_unset CDPATH
45230
45231exec 6>&1
45232
45233# Open the log real soon, to keep \$[0] and so on meaningful, and to
45234# report actual input values of CONFIG_FILES etc. instead of their
45235# values after options handling. Logging --version etc. is OK.
45236exec 5>>config.log
45237{
45238 echo
45239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45240## Running $as_me. ##
45241_ASBOX
45242} >&5
45243cat >&5 <<_CSEOF
45244
eb730a0c 45245This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45246generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45247
45248 CONFIG_FILES = $CONFIG_FILES
45249 CONFIG_HEADERS = $CONFIG_HEADERS
45250 CONFIG_LINKS = $CONFIG_LINKS
45251 CONFIG_COMMANDS = $CONFIG_COMMANDS
45252 $ $0 $@
45253
45254_CSEOF
45255echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45256echo >&5
45257_ACEOF
45258
45259# Files that config.status was made for.
45260if test -n "$ac_config_files"; then
45261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45262fi
45263
45264if test -n "$ac_config_headers"; then
45265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45266fi
45267
45268if test -n "$ac_config_links"; then
45269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45270fi
45271
45272if test -n "$ac_config_commands"; then
45273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45274fi
45275
45276cat >>$CONFIG_STATUS <<\_ACEOF
45277
45278ac_cs_usage="\
45279\`$as_me' instantiates files from templates according to the
45280current configuration.
45281
45282Usage: $0 [OPTIONS] [FILE]...
45283
45284 -h, --help print this help, then exit
45285 -V, --version print version number, then exit
45286 -q, --quiet do not print progress messages
45287 -d, --debug don't remove temporary files
45288 --recheck update $as_me by reconfiguring in the same conditions
45289 --file=FILE[:TEMPLATE]
ac1cb8d3 45290 instantiate the configuration file FILE
a848cd7e 45291 --header=FILE[:TEMPLATE]
ac1cb8d3 45292 instantiate the configuration header FILE
a848cd7e
SC
45293
45294Configuration files:
45295$config_files
45296
45297Configuration headers:
45298$config_headers
45299
45300Configuration commands:
45301$config_commands
45302
45303Report bugs to <bug-autoconf@gnu.org>."
45304_ACEOF
45305
45306cat >>$CONFIG_STATUS <<_ACEOF
45307ac_cs_version="\\
eb730a0c 45308wxWidgets config.status 2.6.2
ac1cb8d3 45309configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45311
ac1cb8d3 45312Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45313This config.status script is free software; the Free Software Foundation
45314gives unlimited permission to copy, distribute and modify it."
45315srcdir=$srcdir
45316INSTALL="$INSTALL"
45317_ACEOF
45318
45319cat >>$CONFIG_STATUS <<\_ACEOF
45320# If no file are specified by the user, then we need to provide default
45321# value. By we need to know if files were specified by the user.
45322ac_need_defaults=:
45323while test $# != 0
45324do
45325 case $1 in
45326 --*=*)
45327 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45329 ac_shift=:
45330 ;;
45331 -*)
45332 ac_option=$1
45333 ac_optarg=$2
45334 ac_shift=shift
45335 ;;
45336 *) # This is not an option, so the user has probably given explicit
45337 # arguments.
45338 ac_option=$1
45339 ac_need_defaults=false;;
45340 esac
45341
45342 case $ac_option in
45343 # Handling of the options.
45344_ACEOF
45345cat >>$CONFIG_STATUS <<\_ACEOF
45346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45347 ac_cs_recheck=: ;;
45348 --version | --vers* | -V )
45349 echo "$ac_cs_version"; exit 0 ;;
45350 --he | --h)
45351 # Conflict between --help and --header
45352 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45353Try \`$0 --help' for more information." >&5
45354echo "$as_me: error: ambiguous option: $1
45355Try \`$0 --help' for more information." >&2;}
45356 { (exit 1); exit 1; }; };;
45357 --help | --hel | -h )
45358 echo "$ac_cs_usage"; exit 0 ;;
45359 --debug | --d* | -d )
45360 debug=: ;;
45361 --file | --fil | --fi | --f )
45362 $ac_shift
45363 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45364 ac_need_defaults=false;;
45365 --header | --heade | --head | --hea )
45366 $ac_shift
45367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45368 ac_need_defaults=false;;
45369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45371 ac_cs_silent=: ;;
45372
45373 # This is an error.
45374 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45375Try \`$0 --help' for more information." >&5
45376echo "$as_me: error: unrecognized option: $1
45377Try \`$0 --help' for more information." >&2;}
45378 { (exit 1); exit 1; }; } ;;
45379
45380 *) ac_config_targets="$ac_config_targets $1" ;;
45381
45382 esac
45383 shift
45384done
45385
45386ac_configure_extra_args=
45387
45388if $ac_cs_silent; then
45389 exec 6>/dev/null
45390 ac_configure_extra_args="$ac_configure_extra_args --silent"
45391fi
45392
45393_ACEOF
45394cat >>$CONFIG_STATUS <<_ACEOF
45395if \$ac_cs_recheck; then
45396 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45397 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45398fi
45399
45400_ACEOF
45401
45402cat >>$CONFIG_STATUS <<_ACEOF
45403#
45404# INIT-COMMANDS section.
45405#
45406
ceec2216
RL
45407 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45408 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45409 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45410 LN_S="${LN_S}"
a848cd7e
SC
45411
45412
45413_ACEOF
45414
45415
45416
45417cat >>$CONFIG_STATUS <<\_ACEOF
45418for ac_config_target in $ac_config_targets
45419do
45420 case "$ac_config_target" in
45421 # Handling of arguments.
ceec2216
RL
45422 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45423 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45424 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45425 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45426 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45427 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45428 "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
45429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45430echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45431 { (exit 1); exit 1; }; };;
45432 esac
45433done
45434
45435# If the user did not use the arguments to specify the items to instantiate,
45436# then the envvar interface is used. Set only those that are not.
45437# We use the long form for the default assignment because of an extremely
45438# bizarre bug on SunOS 4.1.3.
45439if $ac_need_defaults; then
45440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45443fi
45444
45445# Have a temporary directory for convenience. Make it in the build tree
45446# simply because there is no reason to put it here, and in addition,
45447# creating and moving files from /tmp can sometimes cause problems.
45448# Create a temporary directory, and hook for its removal unless debugging.
45449$debug ||
45450{
45451 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45452 trap '{ (exit 1); exit 1; }' 1 2 13 15
45453}
45454
45455# Create a (secure) tmp directory for tmp files.
45456
45457{
45458 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45459 test -n "$tmp" && test -d "$tmp"
45460} ||
45461{
45462 tmp=./confstat$$-$RANDOM
45463 (umask 077 && mkdir $tmp)
45464} ||
45465{
45466 echo "$me: cannot create a temporary directory in ." >&2
45467 { (exit 1); exit 1; }
45468}
45469
45470_ACEOF
45471
45472cat >>$CONFIG_STATUS <<_ACEOF
45473
45474#
45475# CONFIG_FILES section.
45476#
45477
45478# No need to generate the scripts if there are no CONFIG_FILES.
45479# This happens for instance when ./config.status config.h
45480if test -n "\$CONFIG_FILES"; then
45481 # Protect against being on the right side of a sed subst in config.status.
45482 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45483 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45484s,@SHELL@,$SHELL,;t t
45485s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45486s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45487s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45488s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45489s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45490s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45491s,@exec_prefix@,$exec_prefix,;t t
45492s,@prefix@,$prefix,;t t
45493s,@program_transform_name@,$program_transform_name,;t t
45494s,@bindir@,$bindir,;t t
45495s,@sbindir@,$sbindir,;t t
45496s,@libexecdir@,$libexecdir,;t t
45497s,@datadir@,$datadir,;t t
45498s,@sysconfdir@,$sysconfdir,;t t
45499s,@sharedstatedir@,$sharedstatedir,;t t
45500s,@localstatedir@,$localstatedir,;t t
45501s,@libdir@,$libdir,;t t
45502s,@includedir@,$includedir,;t t
45503s,@oldincludedir@,$oldincludedir,;t t
45504s,@infodir@,$infodir,;t t
45505s,@mandir@,$mandir,;t t
45506s,@build_alias@,$build_alias,;t t
45507s,@host_alias@,$host_alias,;t t
45508s,@target_alias@,$target_alias,;t t
45509s,@DEFS@,$DEFS,;t t
45510s,@ECHO_C@,$ECHO_C,;t t
45511s,@ECHO_N@,$ECHO_N,;t t
45512s,@ECHO_T@,$ECHO_T,;t t
45513s,@LIBS@,$LIBS,;t t
45514s,@build@,$build,;t t
45515s,@build_cpu@,$build_cpu,;t t
45516s,@build_vendor@,$build_vendor,;t t
45517s,@build_os@,$build_os,;t t
45518s,@host@,$host,;t t
45519s,@host_cpu@,$host_cpu,;t t
45520s,@host_vendor@,$host_vendor,;t t
45521s,@host_os@,$host_os,;t t
45522s,@target@,$target,;t t
45523s,@target_cpu@,$target_cpu,;t t
45524s,@target_vendor@,$target_vendor,;t t
45525s,@target_os@,$target_os,;t t
45526s,@CC@,$CC,;t t
45527s,@CFLAGS@,$CFLAGS,;t t
45528s,@LDFLAGS@,$LDFLAGS,;t t
45529s,@CPPFLAGS@,$CPPFLAGS,;t t
45530s,@ac_ct_CC@,$ac_ct_CC,;t t
45531s,@EXEEXT@,$EXEEXT,;t t
45532s,@OBJEXT@,$OBJEXT,;t t
45533s,@CPP@,$CPP,;t t
45534s,@EGREP@,$EGREP,;t t
45535s,@CXX@,$CXX,;t t
45536s,@CXXFLAGS@,$CXXFLAGS,;t t
45537s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45538s,@RANLIB@,$RANLIB,;t t
45539s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45540s,@AR@,$AR,;t t
45541s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45542s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45543s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45544s,@STRIP@,$STRIP,;t t
45545s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45546s,@LN_S@,$LN_S,;t t
45547s,@CXXCPP@,$CXXCPP,;t t
45548s,@subdirs@,$subdirs,;t t
45549s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45550s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45551s,@GTK_LIBS@,$GTK_LIBS,;t t
45552s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45553s,@X_CFLAGS@,$X_CFLAGS,;t t
45554s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45555s,@X_LIBS@,$X_LIBS,;t t
45556s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45557s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45558s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45559s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45560s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45561s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45562s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45563s,@RESCOMP@,$RESCOMP,;t t
45564s,@DEREZ@,$DEREZ,;t t
45565s,@SETFILE@,$SETFILE,;t t
45566s,@LIBICONV@,$LIBICONV,;t t
45567s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45568s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45569s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45570s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45571s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45572s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45573s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45574s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45575s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45576s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45577s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45578s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45579s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45580s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45581s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45582s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45583s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45584s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45585s,@VENDOR@,$VENDOR,;t t
45586s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45587s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45588s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45589s,@WXUNIV@,$WXUNIV,;t t
45590s,@MONOLITHIC@,$MONOLITHIC,;t t
45591s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45592s,@EXTRALIBS@,$EXTRALIBS,;t t
45593s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45594s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45595s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45596s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45597s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45598s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45599s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45600s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45601s,@UNICODE@,$UNICODE,;t t
45602s,@BUILD@,$BUILD,;t t
45603s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45604s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45605s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45606s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45607s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45608s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45609s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45610s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45611s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45612s,@SET_MAKE@,$SET_MAKE,;t t
45613s,@MAKE_SET@,$MAKE_SET,;t t
45614s,@ac_ct_AR@,$ac_ct_AR,;t t
45615s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45616s,@NM@,$NM,;t t
45617s,@ac_ct_NM@,$ac_ct_NM,;t t
45618s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45619s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45620s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45621s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45622s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45623s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45624s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45625s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45626s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45627s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45628s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45629s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45630s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45631s,@LIBPREFIX@,$LIBPREFIX,;t t
45632s,@LIBEXT@,$LIBEXT,;t t
45633s,@DLLPREFIX@,$DLLPREFIX,;t t
45634s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45635s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45636s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45637s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45638s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45639s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45640s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45641s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45642s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45643s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45644s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45645s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45646s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45647s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45648s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45649s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45650s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45651s,@GCC_PCH@,$GCC_PCH,;t t
45652s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45653s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45654s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45655s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45656s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45657s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45658s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45659s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45660s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45661s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45662s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45663s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45664s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45665s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45666s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45667s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45668s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45669s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45670s,@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 45671s,@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 45672s,@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 45673s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45674s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45675s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45676s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45677s,@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 45678s,@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 45679s,@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 45680s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45681s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45682s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45683s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45684s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45685s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45686s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45687s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45688s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45689s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45690s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45691s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45692s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45693s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45694s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45695s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45696s,@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
45697s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45698s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45699s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45700s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45701s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45702s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45703s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45704s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45705s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45706s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45707s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45708s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45709s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45710s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45711s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45712s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45713s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45714s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45715s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45716s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45717s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45718s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45719s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45720s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45721s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45722s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45723s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45724s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45725s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45726s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45727s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45728s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45729s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45730s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45731s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45732s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45733s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45734s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45735s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45736s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45737s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45738s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45739s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45740s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45741s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45742s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45743s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45744s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45745s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45746s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45747s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45748s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45749s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45750s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45751s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45752s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45753s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45754s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45755s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45756s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45757s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45758s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45759s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45760s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45761s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45762s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45763s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45764s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45765s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45766s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45767s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45768s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45769s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45770s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45771s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45772s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45773s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45774s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45775s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45776s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45777s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45778s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45779s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45780s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45781s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45782s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45783s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45784s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45785s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45786s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45787s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45788s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45789s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45790s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45791s,@USE_GUI@,$USE_GUI,;t t
45792s,@AFMINSTALL@,$AFMINSTALL,;t t
45793s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45794s,@TOOLKIT@,$TOOLKIT,;t t
45795s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45796s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45797s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45798s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45799s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45800s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45801s,@WIDGET_SET@,$WIDGET_SET,;t t
45802s,@WX_RELEASE@,$WX_RELEASE,;t t
45803s,@WX_VERSION@,$WX_VERSION,;t t
45804s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45805s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45806s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45807s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45808s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45809s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45810s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45811s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45812s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45813s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45814s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45815s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45816s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45817s,@DISTDIR@,$DISTDIR,;t t
45818s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45819s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45820s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45821s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45822s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45823s,@RESFLAGS@,$RESFLAGS,;t t
45824s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45825s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45826s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45827s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45828s,@MACRESCOMP@,$MACRESCOMP,;t t
45829s,@MACSETFILE@,$MACSETFILE,;t t
45830s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45831s,@GCC@,$GCC,;t t
a848cd7e 45832s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45833s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45834s,@LIBOBJS@,$LIBOBJS,;t t
45835s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45836CEOF
45837
45838_ACEOF
45839
45840 cat >>$CONFIG_STATUS <<\_ACEOF
45841 # Split the substitutions into bite-sized pieces for seds with
45842 # small command number limits, like on Digital OSF/1 and HP-UX.
45843 ac_max_sed_lines=48
45844 ac_sed_frag=1 # Number of current file.
45845 ac_beg=1 # First line for current file.
45846 ac_end=$ac_max_sed_lines # Line after last line for current file.
45847 ac_more_lines=:
45848 ac_sed_cmds=
45849 while $ac_more_lines; do
45850 if test $ac_beg -gt 1; then
45851 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45852 else
45853 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45854 fi
45855 if test ! -s $tmp/subs.frag; then
45856 ac_more_lines=false
45857 else
45858 # The purpose of the label and of the branching condition is to
45859 # speed up the sed processing (if there are no `@' at all, there
45860 # is no need to browse any of the substitutions).
45861 # These are the two extra sed commands mentioned above.
45862 (echo ':t
45863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45864 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45865 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45866 else
ac1cb8d3 45867 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45868 fi
45869 ac_sed_frag=`expr $ac_sed_frag + 1`
45870 ac_beg=$ac_end
45871 ac_end=`expr $ac_end + $ac_max_sed_lines`
45872 fi
45873 done
45874 if test -z "$ac_sed_cmds"; then
45875 ac_sed_cmds=cat
45876 fi
45877fi # test -n "$CONFIG_FILES"
45878
45879_ACEOF
45880cat >>$CONFIG_STATUS <<\_ACEOF
45881for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45883 case $ac_file in
45884 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45885 cat >$tmp/stdin
45886 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45888 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45889 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45890 * ) ac_file_in=$ac_file.in ;;
45891 esac
45892
45893 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45894 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45895$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45896 X"$ac_file" : 'X\(//\)[^/]' \| \
45897 X"$ac_file" : 'X\(//\)$' \| \
45898 X"$ac_file" : 'X\(/\)' \| \
45899 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45900echo X"$ac_file" |
45901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45903 /^X\(\/\/\)$/{ s//\1/; q; }
45904 /^X\(\/\).*/{ s//\1/; q; }
45905 s/.*/./; q'`
45906 { if $as_mkdir_p; then
45907 mkdir -p "$ac_dir"
45908 else
45909 as_dir="$ac_dir"
45910 as_dirs=
45911 while test ! -d "$as_dir"; do
45912 as_dirs="$as_dir $as_dirs"
45913 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45915 X"$as_dir" : 'X\(//\)[^/]' \| \
45916 X"$as_dir" : 'X\(//\)$' \| \
45917 X"$as_dir" : 'X\(/\)' \| \
45918 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45919echo X"$as_dir" |
45920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45922 /^X\(\/\/\)$/{ s//\1/; q; }
45923 /^X\(\/\).*/{ s//\1/; q; }
45924 s/.*/./; q'`
45925 done
45926 test ! -n "$as_dirs" || mkdir $as_dirs
45927 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45928echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45929 { (exit 1); exit 1; }; }; }
45930
45931 ac_builddir=.
45932
45933if test "$ac_dir" != .; then
45934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45935 # A "../" for each directory in $ac_dir_suffix.
45936 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45937else
45938 ac_dir_suffix= ac_top_builddir=
45939fi
45940
45941case $srcdir in
45942 .) # No --srcdir option. We are building in place.
45943 ac_srcdir=.
45944 if test -z "$ac_top_builddir"; then
45945 ac_top_srcdir=.
45946 else
45947 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45948 fi ;;
45949 [\\/]* | ?:[\\/]* ) # Absolute path.
45950 ac_srcdir=$srcdir$ac_dir_suffix;
45951 ac_top_srcdir=$srcdir ;;
45952 *) # Relative path.
45953 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45954 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45955esac
ac1cb8d3
VS
45956
45957# Do not use `cd foo && pwd` to compute absolute paths, because
45958# the directories may not exist.
45959case `pwd` in
45960.) ac_abs_builddir="$ac_dir";;
45961*)
45962 case "$ac_dir" in
45963 .) ac_abs_builddir=`pwd`;;
45964 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45965 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45966 esac;;
45967esac
45968case $ac_abs_builddir in
45969.) ac_abs_top_builddir=${ac_top_builddir}.;;
45970*)
45971 case ${ac_top_builddir}. in
45972 .) ac_abs_top_builddir=$ac_abs_builddir;;
45973 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45974 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45975 esac;;
45976esac
45977case $ac_abs_builddir in
45978.) ac_abs_srcdir=$ac_srcdir;;
45979*)
45980 case $ac_srcdir in
45981 .) ac_abs_srcdir=$ac_abs_builddir;;
45982 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45983 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45984 esac;;
45985esac
45986case $ac_abs_builddir in
45987.) ac_abs_top_srcdir=$ac_top_srcdir;;
45988*)
45989 case $ac_top_srcdir in
45990 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45991 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45992 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45993 esac;;
45994esac
a848cd7e
SC
45995
45996
45997 case $INSTALL in
45998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45999 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46000 esac
46001
ddd14b14
RR
46002 if test x"$ac_file" != x-; then
46003 { echo "$as_me:$LINENO: creating $ac_file" >&5
46004echo "$as_me: creating $ac_file" >&6;}
46005 rm -f "$ac_file"
46006 fi
a848cd7e
SC
46007 # Let's still pretend it is `configure' which instantiates (i.e., don't
46008 # use $as_me), people would be surprised to read:
46009 # /* config.h. Generated by config.status. */
46010 if test x"$ac_file" = x-; then
46011 configure_input=
46012 else
46013 configure_input="$ac_file. "
46014 fi
46015 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46016 sed 's,.*/,,'` by configure."
a848cd7e
SC
46017
46018 # First look for the input files in the build tree, otherwise in the
46019 # src tree.
46020 ac_file_inputs=`IFS=:
46021 for f in $ac_file_in; do
46022 case $f in
46023 -) echo $tmp/stdin ;;
46024 [\\/$]*)
ac1cb8d3
VS
46025 # Absolute (can't be DOS-style, as IFS=:)
46026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46027echo "$as_me: error: cannot find input file: $f" >&2;}
46028 { (exit 1); exit 1; }; }
ac1cb8d3 46029 echo "$f";;
a848cd7e 46030 *) # Relative
ac1cb8d3
VS
46031 if test -f "$f"; then
46032 # Build tree
46033 echo "$f"
46034 elif test -f "$srcdir/$f"; then
46035 # Source tree
46036 echo "$srcdir/$f"
46037 else
46038 # /dev/null tree
46039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46040echo "$as_me: error: cannot find input file: $f" >&2;}
46041 { (exit 1); exit 1; }; }
ac1cb8d3 46042 fi;;
a848cd7e
SC
46043 esac
46044 done` || { (exit 1); exit 1; }
46045_ACEOF
46046cat >>$CONFIG_STATUS <<_ACEOF
46047 sed "$ac_vpsub
46048$extrasub
46049_ACEOF
46050cat >>$CONFIG_STATUS <<\_ACEOF
46051:t
46052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46053s,@configure_input@,$configure_input,;t t
46054s,@srcdir@,$ac_srcdir,;t t
46055s,@abs_srcdir@,$ac_abs_srcdir,;t t
46056s,@top_srcdir@,$ac_top_srcdir,;t t
46057s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46058s,@builddir@,$ac_builddir,;t t
46059s,@abs_builddir@,$ac_abs_builddir,;t t
46060s,@top_builddir@,$ac_top_builddir,;t t
46061s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46062s,@INSTALL@,$ac_INSTALL,;t t
46063" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46064 rm -f $tmp/stdin
46065 if test x"$ac_file" != x-; then
46066 mv $tmp/out $ac_file
46067 else
46068 cat $tmp/out
46069 rm -f $tmp/out
46070 fi
46071
ceec2216
RL
46072 # Run the commands associated with the file.
46073 case $ac_file in
46074 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46075 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46076 esac
a848cd7e
SC
46077done
46078_ACEOF
46079cat >>$CONFIG_STATUS <<\_ACEOF
46080
46081#
46082# CONFIG_HEADER section.
46083#
46084
46085# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46086# NAME is the cpp macro being defined and VALUE is the value it is being given.
46087#
46088# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46089ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46090ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46091ac_dC=' '
46092ac_dD=',;t'
46093# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46094ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46095ac_uB='$,\1#\2define\3'
46096ac_uC=' '
46097ac_uD=',;t'
46098
46099for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46101 case $ac_file in
46102 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46103 cat >$tmp/stdin
46104 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46106 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46108 * ) ac_file_in=$ac_file.in ;;
46109 esac
46110
46111 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46112echo "$as_me: creating $ac_file" >&6;}
46113
46114 # First look for the input files in the build tree, otherwise in the
46115 # src tree.
46116 ac_file_inputs=`IFS=:
46117 for f in $ac_file_in; do
46118 case $f in
46119 -) echo $tmp/stdin ;;
46120 [\\/$]*)
ac1cb8d3
VS
46121 # Absolute (can't be DOS-style, as IFS=:)
46122 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46123echo "$as_me: error: cannot find input file: $f" >&2;}
46124 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46125 # Do quote $f, to prevent DOS paths from being IFS'd.
46126 echo "$f";;
a848cd7e 46127 *) # Relative
ac1cb8d3
VS
46128 if test -f "$f"; then
46129 # Build tree
46130 echo "$f"
46131 elif test -f "$srcdir/$f"; then
46132 # Source tree
46133 echo "$srcdir/$f"
46134 else
46135 # /dev/null tree
46136 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46137echo "$as_me: error: cannot find input file: $f" >&2;}
46138 { (exit 1); exit 1; }; }
ac1cb8d3 46139 fi;;
a848cd7e
SC
46140 esac
46141 done` || { (exit 1); exit 1; }
46142 # Remove the trailing spaces.
ac1cb8d3 46143 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46144
46145_ACEOF
46146
46147# Transform confdefs.h into two sed scripts, `conftest.defines' and
46148# `conftest.undefs', that substitutes the proper values into
46149# config.h.in to produce config.h. The first handles `#define'
46150# templates, and the second `#undef' templates.
46151# And first: Protect against being on the right side of a sed subst in
46152# config.status. Protect against being in an unquoted here document
46153# in config.status.
46154rm -f conftest.defines conftest.undefs
46155# Using a here document instead of a string reduces the quoting nightmare.
46156# Putting comments in sed scripts is not portable.
46157#
46158# `end' is used to avoid that the second main sed command (meant for
46159# 0-ary CPP macros) applies to n-ary macro definitions.
46160# See the Autoconf documentation for `clear'.
46161cat >confdef2sed.sed <<\_ACEOF
46162s/[\\&,]/\\&/g
46163s,[\\$`],\\&,g
46164t clear
46165: clear
ac1cb8d3 46166s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46167t end
ac1cb8d3 46168s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46169: end
46170_ACEOF
46171# If some macros were called several times there might be several times
46172# the same #defines, which is useless. Nevertheless, we may not want to
46173# sort them, since we want the *last* AC-DEFINE to be honored.
46174uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46175sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46176rm -f confdef2sed.sed
46177
46178# This sed command replaces #undef with comments. This is necessary, for
46179# example, in the case of _POSIX_SOURCE, which is predefined and required
46180# on some systems where configure will not decide to define it.
46181cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46182s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46183_ACEOF
46184
46185# Break up conftest.defines because some shells have a limit on the size
46186# of here documents, and old seds have small limits too (100 cmds).
46187echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46188echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46189echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46190echo ' :' >>$CONFIG_STATUS
46191rm -f conftest.tail
46192while grep . conftest.defines >/dev/null
46193do
46194 # Write a limited-size here document to $tmp/defines.sed.
46195 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46196 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46197 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46198 # Work around the forget-to-reset-the-flag bug.
46199 echo 't clr' >>$CONFIG_STATUS
46200 echo ': clr' >>$CONFIG_STATUS
46201 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46202 echo 'CEOF
46203 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46204 rm -f $tmp/in
46205 mv $tmp/out $tmp/in
46206' >>$CONFIG_STATUS
46207 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46208 rm -f conftest.defines
46209 mv conftest.tail conftest.defines
46210done
46211rm -f conftest.defines
46212echo ' fi # grep' >>$CONFIG_STATUS
46213echo >>$CONFIG_STATUS
46214
46215# Break up conftest.undefs because some shells have a limit on the size
46216# of here documents, and old seds have small limits too (100 cmds).
46217echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46218rm -f conftest.tail
46219while grep . conftest.undefs >/dev/null
46220do
46221 # Write a limited-size here document to $tmp/undefs.sed.
46222 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46223 # Speed up: don't consider the non `#undef'
ac1cb8d3 46224 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46225 # Work around the forget-to-reset-the-flag bug.
46226 echo 't clr' >>$CONFIG_STATUS
46227 echo ': clr' >>$CONFIG_STATUS
46228 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46229 echo 'CEOF
46230 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46231 rm -f $tmp/in
46232 mv $tmp/out $tmp/in
46233' >>$CONFIG_STATUS
46234 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46235 rm -f conftest.undefs
46236 mv conftest.tail conftest.undefs
46237done
46238rm -f conftest.undefs
46239
46240cat >>$CONFIG_STATUS <<\_ACEOF
46241 # Let's still pretend it is `configure' which instantiates (i.e., don't
46242 # use $as_me), people would be surprised to read:
46243 # /* config.h. Generated by config.status. */
46244 if test x"$ac_file" = x-; then
46245 echo "/* Generated by configure. */" >$tmp/config.h
46246 else
46247 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46248 fi
46249 cat $tmp/in >>$tmp/config.h
46250 rm -f $tmp/in
46251 if test x"$ac_file" != x-; then
46252 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46253 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46254echo "$as_me: $ac_file is unchanged" >&6;}
46255 else
46256 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46257$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46258 X"$ac_file" : 'X\(//\)[^/]' \| \
46259 X"$ac_file" : 'X\(//\)$' \| \
46260 X"$ac_file" : 'X\(/\)' \| \
46261 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46262echo X"$ac_file" |
46263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46265 /^X\(\/\/\)$/{ s//\1/; q; }
46266 /^X\(\/\).*/{ s//\1/; q; }
46267 s/.*/./; q'`
46268 { if $as_mkdir_p; then
46269 mkdir -p "$ac_dir"
46270 else
46271 as_dir="$ac_dir"
46272 as_dirs=
46273 while test ! -d "$as_dir"; do
46274 as_dirs="$as_dir $as_dirs"
46275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46277 X"$as_dir" : 'X\(//\)[^/]' \| \
46278 X"$as_dir" : 'X\(//\)$' \| \
46279 X"$as_dir" : 'X\(/\)' \| \
46280 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46281echo X"$as_dir" |
46282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46284 /^X\(\/\/\)$/{ s//\1/; q; }
46285 /^X\(\/\).*/{ s//\1/; q; }
46286 s/.*/./; q'`
46287 done
46288 test ! -n "$as_dirs" || mkdir $as_dirs
46289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46290echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46291 { (exit 1); exit 1; }; }; }
46292
46293 rm -f $ac_file
46294 mv $tmp/config.h $ac_file
46295 fi
46296 else
46297 cat $tmp/config.h
46298 rm -f $tmp/config.h
46299 fi
46300done
46301_ACEOF
46302cat >>$CONFIG_STATUS <<\_ACEOF
46303
46304#
46305# CONFIG_COMMANDS section.
46306#
46307for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46308 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46309 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46310 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46311$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46312 X"$ac_dest" : 'X\(//\)[^/]' \| \
46313 X"$ac_dest" : 'X\(//\)$' \| \
46314 X"$ac_dest" : 'X\(/\)' \| \
46315 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46316echo X"$ac_dest" |
46317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46319 /^X\(\/\/\)$/{ s//\1/; q; }
46320 /^X\(\/\).*/{ s//\1/; q; }
46321 s/.*/./; q'`
ac1cb8d3
VS
46322 { if $as_mkdir_p; then
46323 mkdir -p "$ac_dir"
46324 else
46325 as_dir="$ac_dir"
46326 as_dirs=
46327 while test ! -d "$as_dir"; do
46328 as_dirs="$as_dir $as_dirs"
46329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46331 X"$as_dir" : 'X\(//\)[^/]' \| \
46332 X"$as_dir" : 'X\(//\)$' \| \
46333 X"$as_dir" : 'X\(/\)' \| \
46334 . : '\(.\)' 2>/dev/null ||
46335echo X"$as_dir" |
46336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46338 /^X\(\/\/\)$/{ s//\1/; q; }
46339 /^X\(\/\).*/{ s//\1/; q; }
46340 s/.*/./; q'`
46341 done
46342 test ! -n "$as_dirs" || mkdir $as_dirs
46343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46345 { (exit 1); exit 1; }; }; }
46346
a848cd7e
SC
46347 ac_builddir=.
46348
46349if test "$ac_dir" != .; then
46350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46351 # A "../" for each directory in $ac_dir_suffix.
46352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46353else
46354 ac_dir_suffix= ac_top_builddir=
46355fi
46356
46357case $srcdir in
46358 .) # No --srcdir option. We are building in place.
46359 ac_srcdir=.
46360 if test -z "$ac_top_builddir"; then
46361 ac_top_srcdir=.
46362 else
46363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46364 fi ;;
46365 [\\/]* | ?:[\\/]* ) # Absolute path.
46366 ac_srcdir=$srcdir$ac_dir_suffix;
46367 ac_top_srcdir=$srcdir ;;
46368 *) # Relative path.
46369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46371esac
ac1cb8d3
VS
46372
46373# Do not use `cd foo && pwd` to compute absolute paths, because
46374# the directories may not exist.
46375case `pwd` in
46376.) ac_abs_builddir="$ac_dir";;
46377*)
46378 case "$ac_dir" in
46379 .) ac_abs_builddir=`pwd`;;
46380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46382 esac;;
46383esac
46384case $ac_abs_builddir in
46385.) ac_abs_top_builddir=${ac_top_builddir}.;;
46386*)
46387 case ${ac_top_builddir}. in
46388 .) ac_abs_top_builddir=$ac_abs_builddir;;
46389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46391 esac;;
46392esac
46393case $ac_abs_builddir in
46394.) ac_abs_srcdir=$ac_srcdir;;
46395*)
46396 case $ac_srcdir in
46397 .) ac_abs_srcdir=$ac_abs_builddir;;
46398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46400 esac;;
46401esac
46402case $ac_abs_builddir in
46403.) ac_abs_top_srcdir=$ac_top_srcdir;;
46404*)
46405 case $ac_top_srcdir in
46406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46409 esac;;
46410esac
a848cd7e
SC
46411
46412
46413 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46414echo "$as_me: executing $ac_dest commands" >&6;}
46415 case $ac_dest in
ceec2216
RL
46416 wx-config ) rm -f wx-config
46417 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46418 ;;
a848cd7e
SC
46419 esac
46420done
46421_ACEOF
46422
46423cat >>$CONFIG_STATUS <<\_ACEOF
46424
46425{ (exit 0); exit 0; }
46426_ACEOF
46427chmod +x $CONFIG_STATUS
46428ac_clean_files=$ac_clean_files_save
46429
46430
46431# configure is writing to config.log, and then calls config.status.
46432# config.status does its own redirection, appending to config.log.
46433# Unfortunately, on DOS this fails, as config.log is still kept open
46434# by configure, so config.status won't be able to write to it; its
46435# output is simply discarded. So we exec the FD to /dev/null,
46436# effectively closing config.log, so it can be properly (re)opened and
46437# appended to by config.status. When coming back to configure, we
46438# need to make the FD available again.
46439if test "$no_create" != yes; then
46440 ac_cs_success=:
46441 ac_config_status_args=
46442 test "$silent" = yes &&
46443 ac_config_status_args="$ac_config_status_args --quiet"
46444 exec 5>/dev/null
46445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46446 exec 5>>config.log
46447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46448 # would make configure fail if this is the last instruction.
46449 $ac_cs_success || { (exit 1); exit 1; }
46450fi
46451
46452#
46453# CONFIG_SUBDIRS section.
46454#
46455if test "$no_recursion" != yes; then
46456
46457 # Remove --cache-file and --srcdir arguments so they do not pile up.
46458 ac_sub_configure_args=
46459 ac_prev=
46460 for ac_arg in $ac_configure_args; do
46461 if test -n "$ac_prev"; then
46462 ac_prev=
46463 continue
46464 fi
46465 case $ac_arg in
46466 -cache-file | --cache-file | --cache-fil | --cache-fi \
46467 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46468 ac_prev=cache_file ;;
46469 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46470 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46471 | --c=*)
46472 ;;
46473 --config-cache | -C)
46474 ;;
46475 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46476 ac_prev=srcdir ;;
46477 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46478 ;;
46479 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46480 ac_prev=prefix ;;
46481 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46482 ;;
46483 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46484 esac
46485 done
46486
46487 # Always prepend --prefix to ensure using the same prefix
46488 # in subdir configurations.
46489 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46490
46491 ac_popdir=`pwd`
46492 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46493
46494 # Do not complain, so a configure script can configure whichever
46495 # parts of a large source tree are present.
46496 test -d $srcdir/$ac_dir || continue
46497
46498 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46499echo "$as_me: configuring in $ac_dir" >&6;}
46500 { if $as_mkdir_p; then
46501 mkdir -p "$ac_dir"
46502 else
46503 as_dir="$ac_dir"
46504 as_dirs=
46505 while test ! -d "$as_dir"; do
46506 as_dirs="$as_dir $as_dirs"
46507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46509 X"$as_dir" : 'X\(//\)[^/]' \| \
46510 X"$as_dir" : 'X\(//\)$' \| \
46511 X"$as_dir" : 'X\(/\)' \| \
46512 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46513echo X"$as_dir" |
46514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46516 /^X\(\/\/\)$/{ s//\1/; q; }
46517 /^X\(\/\).*/{ s//\1/; q; }
46518 s/.*/./; q'`
46519 done
46520 test ! -n "$as_dirs" || mkdir $as_dirs
46521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46523 { (exit 1); exit 1; }; }; }
46524
46525 ac_builddir=.
46526
46527if test "$ac_dir" != .; then
46528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46529 # A "../" for each directory in $ac_dir_suffix.
46530 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46531else
46532 ac_dir_suffix= ac_top_builddir=
46533fi
46534
46535case $srcdir in
46536 .) # No --srcdir option. We are building in place.
46537 ac_srcdir=.
46538 if test -z "$ac_top_builddir"; then
46539 ac_top_srcdir=.
46540 else
46541 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46542 fi ;;
46543 [\\/]* | ?:[\\/]* ) # Absolute path.
46544 ac_srcdir=$srcdir$ac_dir_suffix;
46545 ac_top_srcdir=$srcdir ;;
46546 *) # Relative path.
46547 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46548 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46549esac
ac1cb8d3
VS
46550
46551# Do not use `cd foo && pwd` to compute absolute paths, because
46552# the directories may not exist.
46553case `pwd` in
46554.) ac_abs_builddir="$ac_dir";;
46555*)
46556 case "$ac_dir" in
46557 .) ac_abs_builddir=`pwd`;;
46558 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46559 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46560 esac;;
46561esac
46562case $ac_abs_builddir in
46563.) ac_abs_top_builddir=${ac_top_builddir}.;;
46564*)
46565 case ${ac_top_builddir}. in
46566 .) ac_abs_top_builddir=$ac_abs_builddir;;
46567 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46568 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46569 esac;;
46570esac
46571case $ac_abs_builddir in
46572.) ac_abs_srcdir=$ac_srcdir;;
46573*)
46574 case $ac_srcdir in
46575 .) ac_abs_srcdir=$ac_abs_builddir;;
46576 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46577 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46578 esac;;
46579esac
46580case $ac_abs_builddir in
46581.) ac_abs_top_srcdir=$ac_top_srcdir;;
46582*)
46583 case $ac_top_srcdir in
46584 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46585 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46586 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46587 esac;;
46588esac
a848cd7e
SC
46589
46590
46591 cd $ac_dir
46592
46593 # Check for guested configure; otherwise get Cygnus style configure.
46594 if test -f $ac_srcdir/configure.gnu; then
46595 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46596 elif test -f $ac_srcdir/configure; then
46597 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46598 elif test -f $ac_srcdir/configure.in; then
46599 ac_sub_configure=$ac_configure
46600 else
46601 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46602echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46603 ac_sub_configure=
46604 fi
46605
46606 # The recursion is here.
46607 if test -n "$ac_sub_configure"; then
46608 # Make the cache file name correct relative to the subdirectory.
46609 case $cache_file in
46610 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46611 *) # Relative path.
ac1cb8d3 46612 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46613 esac
46614
46615 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46616echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46617 # The eval makes quoting arguments work.
46618 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46619 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46620 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46621echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46622 { (exit 1); exit 1; }; }
46623 fi
46624
ddd14b14 46625 cd $ac_popdir
a848cd7e
SC
46626 done
46627fi
46628
46629
46630echo
77ffb593 46631echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46632echo ""
4d4ff94c 46633echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46634echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46635
77ffb593
JS
46636echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46637echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46638echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46639
77ffb593
JS
46640echo " What level of wxWidgets compatibility should be enabled?"
46641echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46642echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46643
77ffb593 46644echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46645echo " jpeg ${wxUSE_LIBJPEG-none}"
46646echo " png ${wxUSE_LIBPNG-none}"
46647echo " regex ${wxUSE_REGEX}"
46648echo " tiff ${wxUSE_LIBTIFF-none}"
46649if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46650echo " xpm ${wxUSE_LIBXPM-none}"
46651fi
46652echo " zlib ${wxUSE_ZLIB}"
46653echo " odbc ${wxUSE_ODBC}"
46654echo " expat ${wxUSE_EXPAT}"
46655echo " libmspack ${wxUSE_LIBMSPACK}"
46656echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46657echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46658
46659echo ""
46660