]> git.saurik.com Git - wxWidgets.git/blame - configure
Don't process char event if wxTranslateKeyEvent returned false.
[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.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
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'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
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"
64b75e64 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS 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 EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_0 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_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_MSW_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_WINCE_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_PCH_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
26e422a9 997 --enable-fs_archive use virtual archive filesystems
a848cd7e 998 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 999 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1000 --enable-geometry use geometry class
1001 --enable-log use logging system
1002 --enable-longlong use wxLongLong class
1003 --enable-mimetype use wxMimeTypesManager
1004 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1005 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1006 --enable-std_iostreams use standard C++ stream classes
59746b65 1007 --enable-std_string use standard C++ string classes
07158944 1008 --enable-stdpaths use wxStandardPaths class
a848cd7e 1009 --enable-stopwatch use wxStopWatch class
07158944 1010 --enable-streams use wxStream etc classes
a848cd7e 1011 --enable-sysoptions use wxSystemOptions
26e422a9 1012 --enable-tarstream use wxTar streams
a848cd7e
SC
1013 --enable-textbuf use wxTextBuffer class
1014 --enable-textfile use wxTextFile class
1015 --enable-timer use wxTimer class
1016 --enable-unicode compile wxString with Unicode support
1017 --enable-sound use wxSound class
3b57de8b 1018 --enable-mediactrl use wxMediaCtrl class
15291213 1019 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1020 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1021 --enable-zipstream use wxZip streams
a848cd7e 1022 --enable-url use wxURL class
ca5c6ac3 1023 --enable-variant use wxVariant class
a848cd7e
SC
1024 --enable-protocol use wxProtocol class
1025 --enable-protocol-http HTTP support in wxProtocol
1026 --enable-protocol-ftp FTP support in wxProtocol
1027 --enable-protocol-file FILE support in wxProtocol
1028 --enable-threads use threads
1029 --enable-docview use document view architecture
1030 --enable-help use help subsystem
1031 --enable-mshtmlhelp use MS HTML Help (win32)
1032 --enable-html use wxHTML sub-library
1033 --enable-htmlhelp use wxHTML-based help
9a8f0513 1034 --enable-xrc use XRC resources sub-library
3f60522a 1035 --enable-aui use AUI docking library
a848cd7e
SC
1036 --enable-constraints use layout-constraints system
1037 --enable-printarch use printing architecture
1038 --enable-mdi use multiple document interface architecture
8a7b1113 1039 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1040 --enable-loggui use standard GUI logger
1041 --enable-logwin use wxLogWindow
1042 --enable-logdialog use wxLogDialog
646b6ec1 1043 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1044 --enable-richtext use wxRichTextCtrl
f43426c1 1045 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1046 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1047 --enable-prologio not available; see contrib
1048 --enable-resources not available; see contrib
1049 --enable-clipboard use wxClipboard class
1050 --enable-dnd use Drag'n'Drop classes
1051 --enable-metafile use win32 metafiles
1052 --enable-controls use all usual controls
1053 --enable-accel use accelerators
3ea50042 1054 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1055 --enable-button use wxButton class
1056 --enable-bmpbutton use wxBitmapButton class
95a46303 1057 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1058 --enable-calendar use wxCalendarCtrl class
1059 --enable-caret use wxCaret class
1060 --enable-checkbox use wxCheckBox class
1061 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1062 --enable-choice use wxChoice class
92bbdbcd 1063 --enable-choicebook use wxChoicebook class
bd915ace 1064 --enable-collpane use wxCollapsiblePane class
e9263684 1065 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1066 --enable-combobox use wxComboBox class
a57d600f 1067 --enable-comboctrl use wxComboCtrl class
da98e9be 1068 --enable-datepick use wxDatePickerCtrl class
e9263684 1069 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1070 --enable-display use wxDisplay class
88bbc332 1071 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1072 --enable-filepicker use wxFilePickerCtrl class
1073 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1074 --enable-gauge use wxGauge class
1075 --enable-grid use wxGrid class
20e34ecc 1076 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1077 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1078 --enable-imaglist use wxImageList class
1079 --enable-listbook use wxListbook class
1080 --enable-listbox use wxListBox class
1081 --enable-listctrl use wxListCtrl class
1082 --enable-notebook use wxNotebook class
a57d600f 1083 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1084 --enable-radiobox use wxRadioBox class
1085 --enable-radiobtn use wxRadioButton class
1086 --enable-sash use wxSashWindow class
1087 --enable-scrollbar use wxScrollBar class and scrollable windows
1088 --enable-slider use wxSlider class
1089 --enable-spinbtn use wxSpinButton class
1090 --enable-spinctrl use wxSpinCtrl class
1091 --enable-splitter use wxSplitterWindow class
1092 --enable-statbmp use wxStaticBitmap class
1093 --enable-statbox use wxStaticBox class
1094 --enable-statline use wxStaticLine class
1095 --enable-stattext use wxStaticText class
1096 --enable-statusbar use wxStatusBar class
1097 --enable-tabdialog use wxTabControl class
1098 --enable-textctrl use wxTextCtrl class
1099 --enable-togglebtn use wxToggleButton class
1100 --enable-toolbar use wxToolBar class
1101 --enable-tbarnative use native wxToolBar class
0093c2fc 1102 --enable-treebook use wxTreebook class
5ec3bc43 1103 --enable-toolbook use wxToolbook class
a848cd7e
SC
1104 --enable-treectrl use wxTreeCtrl class
1105 --enable-tipwindow use wxTipWindow class
1106 --enable-popupwin use wxPopUpWindow class
1107 --enable-commondlg use all common dialogs
319c5ed4 1108 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1109 --enable-choicedlg use wxChoiceDialog
1110 --enable-coldlg use wxColourDialog
1111 --enable-filedlg use wxFileDialog
1112 --enable-finddlg use wxFindReplaceDialog
1113 --enable-fontdlg use wxFontDialog
1114 --enable-dirdlg use wxDirDialog
1115 --enable-msgdlg use wxMessageDialog
1116 --enable-numberdlg use wxNumberEntryDialog
1117 --enable-splash use wxSplashScreen
1118 --enable-textdlg use wxTextDialog
1119 --enable-tipdlg use startup tips
1120 --enable-progressdlg use wxProgressDialog
1121 --enable-wizarddlg use wxWizard
1122 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1123 --enable-miniframe use wxMiniFrame class
1124 --enable-tooltips use wxToolTip class
1125 --enable-splines use spline drawing code
fbe2ca43 1126 --enable-mousewheel use mousewheel
a848cd7e
SC
1127 --enable-validators use wxValidator and derived classes
1128 --enable-busyinfo use wxBusyInfo
4cb1d3da 1129 --enable-joystick use wxJoystick
38b4a946 1130 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1131 --enable-dragimage use wxDragImage
1132 --enable-accessibility enable accessibility support
38b4a946 1133 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1134 --enable-palette use wxPalette class
1135 --enable-image use wxImage class
1136 --enable-gif use gif images (GIF file format)
1137 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1138 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1139 --enable-iff use iff images (IFF file format)
1140 --enable-pnm use pnm images (PNM file format)
1141 --enable-xpm use xpm images (XPM file format)
1142 --enable-icocur use Windows ICO and CUR formats
77ffb593 1143 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1144 --enable-vendor=VENDOR vendor name (win32 DLL only)
1145 --disable-largefile omit support for large files
1146 --disable-gtktest do not try to compile and run a test GTK+ program
1147 --disable-gtktest Do not try to compile and run a test GTK program
1148 --disable-sdltest Do not try to compile and run a test SDL program
1149 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1150 --disable-dependency-tracking
1151 don't use dependency tracking even if the compiler
1152 can
ebee3cd0
VS
1153 --disable-precomp-headers
1154 don't use precompiled headers even if compiler can
a848cd7e
SC
1155
1156Optional Packages:
1157 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1158 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1159 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1160 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1161 --with-motif use Motif/Lesstif
1162 --with-mac use Mac OS X
1163 --with-cocoa use Cocoa
1164 --with-wine use Wine
1165 --with-msw use MS-Windows
1166 --with-pm use OS/2 Presentation Manager
1167 --with-mgl use SciTech MGL
b3c86150 1168 --with-directfb use DirectFB
a848cd7e
SC
1169 --with-microwin use MicroWindows
1170 --with-x11 use X11
1171 --with-libpng use libpng (PNG image format)
1172 --with-libjpeg use libjpeg (JPEG file format)
1173 --with-libtiff use libtiff (TIFF file format)
1174 --with-libxpm use libxpm (XPM file format)
1175 --with-libmspack use libmspack (CHM help files loading)
1176 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1177 --with-gnomeprint use GNOME print for printing under GNOME
1178 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1179 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1180 --with-opengl use OpenGL (or Mesa)
4353a8df 1181 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1182 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1183 --with-regex enable support for wxRegEx class
1184 --with-zlib use zlib for LZW compression
1185 --with-odbc use the IODBC and wxODBC classes
1186 --with-expat enable XML support using expat parser
ceec2216 1187 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1188 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1189 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1190 --with-x use the X Window System
1191 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1192 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1193 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1194 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1195 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1196
1197Some influential environment variables:
dcc1b6ad
VS
1198 CC C compiler command
1199 CFLAGS C compiler flags
1200 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1201 nonstandard directory <lib dir>
1202 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1203 headers in a nonstandard directory <include dir>
1204 CPP C preprocessor
1205 CXX C++ compiler command
1206 CXXFLAGS C++ compiler flags
1207 CXXCPP C++ preprocessor
3ecd9f92 1208 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1209 DIRECTFB_CFLAGS
1210 C compiler flags for DIRECTFB, overriding pkg-config
1211 DIRECTFB_LIBS
1212 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1213 PANGOX_CFLAGS
1214 C compiler flags for PANGOX, overriding pkg-config
1215 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1216 PANGOFT2_CFLAGS
1217 C compiler flags for PANGOFT2, overriding pkg-config
1218 PANGOFT2_LIBS
1219 linker flags for PANGOFT2, overriding pkg-config
1220 PANGOXFT_CFLAGS
1221 C compiler flags for PANGOXFT, overriding pkg-config
1222 PANGOXFT_LIBS
1223 linker flags for PANGOXFT, overriding pkg-config
1224 LIBGNOMEPRINTUI_CFLAGS
1225 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1226 LIBGNOMEPRINTUI_LIBS
1227 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1228 GNOMEVFS_CFLAGS
1229 C compiler flags for GNOMEVFS, overriding pkg-config
1230 GNOMEVFS_LIBS
1231 linker flags for GNOMEVFS, overriding pkg-config
1232 HILDON_CFLAGS
1233 C compiler flags for HILDON, overriding pkg-config
1234 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1235 CAIRO_CFLAGS
1236 C compiler flags for CAIRO, overriding pkg-config
1237 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1238 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1239 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1240
1241Use these variables to override the choices made by `configure' or to help
1242it to find libraries and programs with nonstandard names/locations.
1243
77ffb593 1244Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1245_ACEOF
1246fi
1247
1248if test "$ac_init_help" = "recursive"; then
1249 # If there are subdirs, report their specific --help.
1250 ac_popdir=`pwd`
1251 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1252 test -d $ac_dir || continue
1253 ac_builddir=.
1254
1255if test "$ac_dir" != .; then
1256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1257 # A "../" for each directory in $ac_dir_suffix.
1258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1259else
1260 ac_dir_suffix= ac_top_builddir=
1261fi
1262
1263case $srcdir in
1264 .) # No --srcdir option. We are building in place.
1265 ac_srcdir=.
1266 if test -z "$ac_top_builddir"; then
1267 ac_top_srcdir=.
1268 else
1269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1270 fi ;;
1271 [\\/]* | ?:[\\/]* ) # Absolute path.
1272 ac_srcdir=$srcdir$ac_dir_suffix;
1273 ac_top_srcdir=$srcdir ;;
1274 *) # Relative path.
1275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1277esac
ac1cb8d3
VS
1278
1279# Do not use `cd foo && pwd` to compute absolute paths, because
1280# the directories may not exist.
1281case `pwd` in
1282.) ac_abs_builddir="$ac_dir";;
1283*)
1284 case "$ac_dir" in
1285 .) ac_abs_builddir=`pwd`;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1288 esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_top_builddir=${ac_top_builddir}.;;
1292*)
1293 case ${ac_top_builddir}. in
1294 .) ac_abs_top_builddir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1297 esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_srcdir=$ac_srcdir;;
1301*)
1302 case $ac_srcdir in
1303 .) ac_abs_srcdir=$ac_abs_builddir;;
1304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1306 esac;;
1307esac
1308case $ac_abs_builddir in
1309.) ac_abs_top_srcdir=$ac_top_srcdir;;
1310*)
1311 case $ac_top_srcdir in
1312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1315 esac;;
1316esac
a848cd7e
SC
1317
1318 cd $ac_dir
1319 # Check for guested configure; otherwise get Cygnus style configure.
1320 if test -f $ac_srcdir/configure.gnu; then
1321 echo
1322 $SHELL $ac_srcdir/configure.gnu --help=recursive
1323 elif test -f $ac_srcdir/configure; then
1324 echo
1325 $SHELL $ac_srcdir/configure --help=recursive
1326 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1327 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1328 echo
1329 $ac_configure --help
1330 else
1331 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi
bb9e79c0 1333 cd "$ac_popdir"
a848cd7e
SC
1334 done
1335fi
1336
1337test -n "$ac_init_help" && exit 0
1338if $ac_init_version; then
1339 cat <<\_ACEOF
f1e3914f 1340wxWidgets configure 2.7.1
ac1cb8d3 1341generated by GNU Autoconf 2.59
a848cd7e 1342
ac1cb8d3 1343Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1344This configure script is free software; the Free Software Foundation
1345gives unlimited permission to copy, distribute and modify it.
1346_ACEOF
1347 exit 0
1348fi
1349exec 5>config.log
1350cat >&5 <<_ACEOF
1351This file contains any messages produced by compilers while
1352running configure, to aid debugging if configure makes a mistake.
1353
f1e3914f 1354It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1355generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1356
1357 $ $0 $@
1358
1359_ACEOF
1360{
1361cat <<_ASUNAME
1362## --------- ##
1363## Platform. ##
1364## --------- ##
1365
1366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1367uname -m = `(uname -m) 2>/dev/null || echo unknown`
1368uname -r = `(uname -r) 2>/dev/null || echo unknown`
1369uname -s = `(uname -s) 2>/dev/null || echo unknown`
1370uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371
1372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1374
1375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1378hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1382
1383_ASUNAME
1384
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 echo "PATH: $as_dir"
1391done
1392
1393} >&5
1394
1395cat >&5 <<_ACEOF
1396
1397
1398## ----------- ##
1399## Core tests. ##
1400## ----------- ##
1401
1402_ACEOF
1403
1404
1405# Keep a trace of the command line.
1406# Strip out --no-create and --no-recursion so they do not pile up.
1407# Strip out --silent because we don't want to record it for future runs.
1408# Also quote any args containing shell meta-characters.
1409# Make two passes to allow for proper duplicate-argument suppression.
1410ac_configure_args=
1411ac_configure_args0=
1412ac_configure_args1=
1413ac_sep=
1414ac_must_keep_next=false
1415for ac_pass in 1 2
1416do
1417 for ac_arg
1418 do
1419 case $ac_arg in
1420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1423 continue ;;
1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 esac
1427 case $ac_pass in
1428 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429 2)
1430 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1431 if test $ac_must_keep_next = true; then
ac1cb8d3 1432 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1433 else
ac1cb8d3
VS
1434 case $ac_arg in
1435 *=* | --config-cache | -C | -disable-* | --disable-* \
1436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1438 | -with-* | --with-* | -without-* | --without-* | --x)
1439 case "$ac_configure_args0 " in
1440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441 esac
1442 ;;
1443 -* ) ac_must_keep_next=true ;;
1444 esac
a848cd7e
SC
1445 fi
1446 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1447 # Get rid of the leading space.
1448 ac_sep=" "
1449 ;;
1450 esac
1451 done
1452done
1453$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1454$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1455
1456# When interrupted or exit'd, cleanup temporary files, and complete
1457# config.log. We remove comments because anyway the quotes in there
1458# would cause problems or look ugly.
1459# WARNING: Be sure not to use single quotes in there, as some shells,
1460# such as our DU 5.0 friend, will then `close' the trap.
1461trap 'exit_status=$?
1462 # Save into config.log some information that might help in debugging.
1463 {
1464 echo
1465
1466 cat <<\_ASBOX
1467## ---------------- ##
1468## Cache variables. ##
1469## ---------------- ##
1470_ASBOX
1471 echo
1472 # The following way of writing the cache mishandles newlines in values,
1473{
1474 (set) 2>&1 |
1475 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1476 *ac_space=\ *)
1477 sed -n \
ac1cb8d3
VS
1478 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1480 ;;
1481 *)
1482 sed -n \
ac1cb8d3 1483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1484 ;;
1485 esac;
1486}
1487 echo
1488
1489 cat <<\_ASBOX
1490## ----------------- ##
1491## Output variables. ##
1492## ----------------- ##
1493_ASBOX
1494 echo
1495 for ac_var in $ac_subst_vars
1496 do
1497 eval ac_val=$`echo $ac_var`
1498 echo "$ac_var='"'"'$ac_val'"'"'"
1499 done | sort
1500 echo
1501
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504## ------------- ##
1505## Output files. ##
1506## ------------- ##
1507_ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1510 do
1511 eval ac_val=$`echo $ac_var`
ac1cb8d3 1512 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1513 done | sort
1514 echo
1515 fi
1516
1517 if test -s confdefs.h; then
1518 cat <<\_ASBOX
1519## ----------- ##
1520## confdefs.h. ##
1521## ----------- ##
1522_ASBOX
1523 echo
1524 sed "/^$/d" confdefs.h | sort
1525 echo
1526 fi
1527 test "$ac_signal" != 0 &&
1528 echo "$as_me: caught signal $ac_signal"
1529 echo "$as_me: exit $exit_status"
1530 } >&5
ac1cb8d3 1531 rm -f core *.core &&
a848cd7e
SC
1532 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1533 exit $exit_status
1534 ' 0
1535for ac_signal in 1 2 13 15; do
1536 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1537done
1538ac_signal=0
1539
1540# confdefs.h avoids OS command line length limits that DEFS can exceed.
1541rm -rf conftest* confdefs.h
1542# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1543echo >confdefs.h
1544
1545# Predefined preprocessor variables.
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_NAME "$PACKAGE_NAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_VERSION "$PACKAGE_VERSION"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_STRING "$PACKAGE_STRING"
1564_ACEOF
1565
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1569_ACEOF
1570
1571
1572# Let the site file select an alternate cache file if it wants to.
1573# Prefer explicitly selected file to automatically selected ones.
1574if test -z "$CONFIG_SITE"; then
1575 if test "x$prefix" != xNONE; then
1576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1577 else
1578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1579 fi
1580fi
1581for ac_site_file in $CONFIG_SITE; do
1582 if test -r "$ac_site_file"; then
1583 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1584echo "$as_me: loading site script $ac_site_file" >&6;}
1585 sed 's/^/| /' "$ac_site_file" >&5
1586 . "$ac_site_file"
1587 fi
1588done
1589
1590if test -r "$cache_file"; then
1591 # Some versions of bash will fail to source /dev/null (special
1592 # files actually), so we avoid doing that.
1593 if test -f "$cache_file"; then
1594 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1595echo "$as_me: loading cache $cache_file" >&6;}
1596 case $cache_file in
1597 [\\/]* | ?:[\\/]* ) . $cache_file;;
1598 *) . ./$cache_file;;
1599 esac
1600 fi
1601else
1602 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1603echo "$as_me: creating cache $cache_file" >&6;}
1604 >$cache_file
1605fi
1606
1607# Check that the precious variables saved in the cache have kept the same
1608# value.
1609ac_cache_corrupted=false
1610for ac_var in `(set) 2>&1 |
ac1cb8d3 1611 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1613 eval ac_new_set=\$ac_env_${ac_var}_set
1614 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1615 eval ac_new_val="\$ac_env_${ac_var}_value"
1616 case $ac_old_set,$ac_new_set in
1617 set,)
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1619echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1621 ,set)
1622 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1623echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1624 ac_cache_corrupted=: ;;
1625 ,);;
1626 *)
1627 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1628 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1629echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1630 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1631echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1632 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1633echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1634 ac_cache_corrupted=:
a848cd7e
SC
1635 fi;;
1636 esac
1637 # Pass precious variables to config.status.
1638 if test "$ac_new_set" = set; then
1639 case $ac_new_val in
1640 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1641 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 *) ac_arg=$ac_var=$ac_new_val ;;
1643 esac
1644 case " $ac_configure_args " in
1645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1646 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1647 esac
1648 fi
1649done
1650if $ac_cache_corrupted; then
1651 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1652echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1653 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1654echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1655 { (exit 1); exit 1; }; }
1656fi
1657
1658ac_ext=c
1659ac_cpp='$CPP $CPPFLAGS'
1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693ac_aux_dir=
1694for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1695 if test -f $ac_dir/install-sh; then
1696 ac_aux_dir=$ac_dir
1697 ac_install_sh="$ac_aux_dir/install-sh -c"
1698 break
1699 elif test -f $ac_dir/install.sh; then
1700 ac_aux_dir=$ac_dir
1701 ac_install_sh="$ac_aux_dir/install.sh -c"
1702 break
1703 elif test -f $ac_dir/shtool; then
1704 ac_aux_dir=$ac_dir
1705 ac_install_sh="$ac_aux_dir/shtool install -c"
1706 break
1707 fi
1708done
1709if test -z "$ac_aux_dir"; then
1710 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1711echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1715ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1716ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1717
1718# Make sure we can run config.sub.
1719$ac_config_sub sun4 >/dev/null 2>&1 ||
1720 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1721echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1722 { (exit 1); exit 1; }; }
1723
1724echo "$as_me:$LINENO: checking build system type" >&5
1725echo $ECHO_N "checking build system type... $ECHO_C" >&6
1726if test "${ac_cv_build+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_build_alias=$build_alias
1730test -z "$ac_cv_build_alias" &&
1731 ac_cv_build_alias=`$ac_config_guess`
1732test -z "$ac_cv_build_alias" &&
1733 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1734echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1735 { (exit 1); exit 1; }; }
1736ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1743echo "${ECHO_T}$ac_cv_build" >&6
1744build=$ac_cv_build
1745build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking host system type" >&5
1751echo $ECHO_N "checking host system type... $ECHO_C" >&6
1752if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_host_alias=$host_alias
1756test -z "$ac_cv_host_alias" &&
1757 ac_cv_host_alias=$ac_cv_build_alias
1758ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1765echo "${ECHO_T}$ac_cv_host" >&6
1766host=$ac_cv_host
1767host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772echo "$as_me:$LINENO: checking target system type" >&5
1773echo $ECHO_N "checking target system type... $ECHO_C" >&6
1774if test "${ac_cv_target+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 ac_cv_target_alias=$target_alias
1778test "x$ac_cv_target_alias" = "x" &&
1779 ac_cv_target_alias=$ac_cv_host_alias
1780ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1782echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785fi
1786echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1787echo "${ECHO_T}$ac_cv_target" >&6
1788target=$ac_cv_target
1789target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1790target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1791target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792
1793
1794# The aliases save the names the user supplied, while $host etc.
1795# will get canonicalized.
1796test -n "$target_alias" &&
1797 test "$program_prefix$program_suffix$program_transform_name" = \
1798 NONENONEs,x,x, &&
1799 program_prefix=${target_alias}-
1800
1801
1802
ceec2216 1803wx_major_version_number=2
dd8df4fc 1804wx_minor_version_number=7
2add9e3c
RD
1805wx_release_number=2
1806wx_subrelease_number=0
a848cd7e 1807
ceec2216
RL
1808WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1809WX_VERSION=$WX_RELEASE.$wx_release_number
1810WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1811
ceec2216 1812WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1813
a848cd7e
SC
1814
1815
1816
1817USE_UNIX=1
1818USE_OS2=0
1819USE_WIN32=0
1820USE_DOS=0
1821USE_BEOS=0
1822USE_MAC=0
1823
1824USE_AIX=
1825USE_BSD= USE_DARWIN= USE_FREEBSD=
1826USE_GNU= USE_HPUX=
1827USE_LINUX=
1828USE_NETBSD=
1829USE_OPENBSD=
1830USE_OSF= USE_SGI=
1831USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1832USE_ULTRIX=
1833USE_UNIXWARE=
1834
1835USE_ALPHA=
1836
1837NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1838
b3c86150 1839ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1840
1841DEFAULT_wxUSE_COCOA=0
1842DEFAULT_wxUSE_GTK=0
1843DEFAULT_wxUSE_MAC=0
1844DEFAULT_wxUSE_MGL=0
1845DEFAULT_wxUSE_MICROWIN=0
1846DEFAULT_wxUSE_MOTIF=0
1847DEFAULT_wxUSE_MSW=0
1848DEFAULT_wxUSE_PM=0
1849DEFAULT_wxUSE_X11=0
b3c86150 1850DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1851
1852DEFAULT_DEFAULT_wxUSE_COCOA=0
1853DEFAULT_DEFAULT_wxUSE_GTK=0
1854DEFAULT_DEFAULT_wxUSE_MAC=0
1855DEFAULT_DEFAULT_wxUSE_MGL=0
1856DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1857DEFAULT_DEFAULT_wxUSE_MOTIF=0
1858DEFAULT_DEFAULT_wxUSE_MSW=0
1859DEFAULT_DEFAULT_wxUSE_PM=0
1860DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1861DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1862
1863PROGRAM_EXT=
1864SO_SUFFIX=so
1865SAMPLES_RPATH_FLAG=
1866SAMPLES_RPATH_POSTLINK=
1867
a03b8b04
RD
1868DEFAULT_STD_FLAG=yes
1869
a848cd7e
SC
1870case "${host}" in
1871 *-hp-hpux* )
1872 USE_HPUX=1
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1875 SO_SUFFIX=sl
1876 cat >>confdefs.h <<\_ACEOF
1877#define __HPUX__ 1
1878_ACEOF
1879
2eef8513 1880
c92ad099 1881 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1882 ;;
1883 *-*-linux* )
1884 USE_LINUX=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __LINUX__ 1
1887_ACEOF
1888
1889 TMP=`uname -m`
1890 if test "x$TMP" = "xalpha"; then
1891 USE_ALPHA=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __ALPHA__ 1
1894_ACEOF
1895
1896 fi
1897 DEFAULT_DEFAULT_wxUSE_GTK=1
1898 ;;
1899 *-*-gnu* | *-*-k*bsd*-gnu )
1900 USE_GNU=1
1901 TMP=`uname -m`
1902 if test "x$TMP" = "xalpha"; then
1903 USE_ALPHA=1
1904 cat >>confdefs.h <<\_ACEOF
1905#define __ALPHA__ 1
1906_ACEOF
1907
1908 fi
1909 DEFAULT_DEFAULT_wxUSE_GTK=1
1910 ;;
1911 *-*-irix5* | *-*-irix6* )
1912 USE_SGI=1
1913 USE_SVR4=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SGI__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SVR4__ 1
1920_ACEOF
1921
1922 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923 ;;
1924 *-*-solaris2* )
1925 USE_SUN=1
1926 USE_SOLARIS=1
1927 USE_SVR4=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __SUN__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __SOLARIS__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __SVR4__ 1
1938_ACEOF
1939
1940 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1941 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1942 ;;
1943 *-*-sunos4* )
1944 USE_SUN=1
1945 USE_SUNOS=1
1946 USE_BSD=1
1947 cat >>confdefs.h <<\_ACEOF
1948#define __SUN__ 1
1949_ACEOF
1950
1951 cat >>confdefs.h <<\_ACEOF
1952#define __SUNOS__ 1
1953_ACEOF
1954
1955 cat >>confdefs.h <<\_ACEOF
1956#define __BSD__ 1
1957_ACEOF
1958
1959 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1960 ;;
1961 *-*-freebsd*)
1962 USE_BSD=1
1963 USE_FREEBSD=1
1964 cat >>confdefs.h <<\_ACEOF
1965#define __FREEBSD__ 1
1966_ACEOF
1967
1968 cat >>confdefs.h <<\_ACEOF
1969#define __BSD__ 1
1970_ACEOF
1971
1972 DEFAULT_DEFAULT_wxUSE_GTK=1
1973 ;;
c9a66001 1974 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1975 USE_BSD=1
1976 USE_OPENBSD=1
1977 cat >>confdefs.h <<\_ACEOF
1978#define __OPENBSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 DEFAULT_DEFAULT_wxUSE_GTK=1
1986 ;;
1987 *-*-netbsd*)
1988 USE_BSD=1
1989 USE_NETBSD=1
1990 cat >>confdefs.h <<\_ACEOF
1991#define __NETBSD__ 1
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define __BSD__ 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1999 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2000
def7c04a 2001 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2002 ;;
2003 *-*-osf* )
2004 USE_ALPHA=1
2005 USE_OSF=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __ALPHA__ 1
2008_ACEOF
2009
2010 cat >>confdefs.h <<\_ACEOF
2011#define __OSF__ 1
2012_ACEOF
2013
2014 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2015 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2016 ;;
2017 *-*-dgux5* )
2018 USE_ALPHA=1
2019 USE_SVR4=1
2020 cat >>confdefs.h <<\_ACEOF
2021#define __ALPHA__ 1
2022_ACEOF
2023
2024 cat >>confdefs.h <<\_ACEOF
2025#define __SVR4__ 1
2026_ACEOF
2027
2028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2029 ;;
2030 *-*-sysv5* )
2031 USE_SYSV=1
2032 USE_SVR4=1
2033 cat >>confdefs.h <<\_ACEOF
2034#define __SYSV__ 1
2035_ACEOF
2036
2037 cat >>confdefs.h <<\_ACEOF
2038#define __SVR4__ 1
2039_ACEOF
2040
2041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2042 ;;
2043 *-*-aix* )
2044 USE_AIX=1
2045 USE_SYSV=1
2046 USE_SVR4=1
2047 SO_SUFFIX=a
2048 cat >>confdefs.h <<\_ACEOF
2049#define __AIX__ 1
2050_ACEOF
2051
2052 cat >>confdefs.h <<\_ACEOF
2053#define __SYSV__ 1
2054_ACEOF
2055
2056 cat >>confdefs.h <<\_ACEOF
2057#define __SVR4__ 1
2058_ACEOF
2059
2060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2061 ;;
2062
2063 *-*-*UnixWare*)
2064 USE_SYSV=1
2065 USE_SVR4=1
2066 USE_UNIXWARE=1
2067 cat >>confdefs.h <<\_ACEOF
2068#define __UNIXWARE__ 1
2069_ACEOF
2070
2071 ;;
2072
2073 *-*-cygwin* | *-*-mingw32* )
2074 SO_SUFFIX=dll
2075 PROGRAM_EXT=".exe"
a848cd7e
SC
2076 DEFAULT_DEFAULT_wxUSE_MSW=1
2077 ;;
2078
2079 *-pc-msdosdjgpp )
2080 USE_UNIX=0
2081 USE_DOS=1
2082 cat >>confdefs.h <<\_ACEOF
2083#define __DOS__ 1
2084_ACEOF
2085
2086 PROGRAM_EXT=".exe"
2087 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2088 ;;
2089
2090 *-pc-os2_emx | *-pc-os2-emx )
2091 cat >>confdefs.h <<\_ACEOF
2092#define __EMX__ 1
2093_ACEOF
2094
2095 USE_OS2=1
2096 cat >>confdefs.h <<\_ACEOF
2097#define __OS2__ 1
2098_ACEOF
2099
2100 PROGRAM_EXT=".exe"
2101 DEFAULT_DEFAULT_wxUSE_PM=1
2102 CXX=gcc
2103 LDFLAGS="$LDFLAGS -Zcrtdll"
2104 ac_executable_extensions=".exe"
2105 export ac_executable_extensions
2106 ac_save_IFS="$IFS"
2107 IFS='\\'
2108 ac_TEMP_PATH=
2109 for ac_dir in $PATH; do
2110 IFS=$ac_save_IFS
2111 if test -z "$ac_TEMP_PATH"; then
2112 ac_TEMP_PATH="$ac_dir"
2113 else
2114 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2115 fi
2116 done
2117 export PATH="$ac_TEMP_PATH"
2118 unset ac_TEMP_PATH
a03b8b04 2119 DEFAULT_STD_FLAG=no
a848cd7e
SC
2120 ;;
2121
cfda0ea8 2122 *-*-darwin* )
a848cd7e
SC
2123 USE_BSD=1
2124 USE_DARWIN=1
2125 SO_SUFFIX=dylib
2126 cat >>confdefs.h <<\_ACEOF
2127#define __BSD__ 1
2128_ACEOF
2129
2130 cat >>confdefs.h <<\_ACEOF
2131#define __DARWIN__ 1
a848cd7e
SC
2132_ACEOF
2133
2134 cat >>confdefs.h <<\_ACEOF
2135#define TARGET_CARBON 1
2136_ACEOF
2137
2138 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2139 DEFAULT_STD_FLAG=no
a848cd7e 2140 ;;
1e9e8aba
DE
2141 powerpc-apple-macos* )
2142 USE_UNIX=0
2143 ac_cv_c_bigendian=yes
2144 SO_SUFFIX=shlib
2145 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2146 DEFAULT_STD_FLAG=no
1e9e8aba 2147 ;;
a848cd7e
SC
2148
2149 *-*-beos* )
2150 USE_BEOS=1
2151 cat >>confdefs.h <<\_ACEOF
2152#define __BEOS__ 1
2153_ACEOF
2154
2155 ;;
2156
2157 *)
c9a66001
VZ
2158 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2159echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2160 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2161echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2162
2163 DEFAULT_DEFAULT_wxUSE_X11=1
2164 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2165esac
2166
2167
2168
2169
2170 wx_arg_cache_file="configarg.cache"
2171 echo "loading argument cache $wx_arg_cache_file"
2172 rm -f ${wx_arg_cache_file}.tmp
2173 touch ${wx_arg_cache_file}.tmp
2174 touch ${wx_arg_cache_file}
2175
2176
2177DEBUG_CONFIGURE=0
2178if test $DEBUG_CONFIGURE = 1; then
2179 DEFAULT_wxUSE_UNIVERSAL=no
2180 DEFAULT_wxUSE_STL=no
2181
2182 DEFAULT_wxUSE_NANOX=no
2183
2184 DEFAULT_wxUSE_THREADS=yes
2185
5acfd58d 2186 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2187 DEFAULT_wxUSE_OPTIMISE=no
2188 DEFAULT_wxUSE_PROFILE=no
2189 DEFAULT_wxUSE_NO_DEPS=no
2190 DEFAULT_wxUSE_NO_RTTI=no
2191 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2192 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2193 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2194 DEFAULT_wxUSE_PERMISSIVE=no
2195 DEFAULT_wxUSE_DEBUG_FLAG=yes
2196 DEFAULT_wxUSE_DEBUG_INFO=yes
2197 DEFAULT_wxUSE_DEBUG_GDB=yes
2198 DEFAULT_wxUSE_MEM_TRACING=no
2199 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2200 DEFAULT_wxUSE_DMALLOC=no
2201 DEFAULT_wxUSE_APPLE_IEEE=no
2202
2203 DEFAULT_wxUSE_EXCEPTIONS=no
2204 DEFAULT_wxUSE_LOG=yes
2205 DEFAULT_wxUSE_LOGWINDOW=no
2206 DEFAULT_wxUSE_LOGGUI=no
2207 DEFAULT_wxUSE_LOGDIALOG=no
2208
2209 DEFAULT_wxUSE_GUI=yes
2210 DEFAULT_wxUSE_CONTROLS=no
2211
2212 DEFAULT_wxUSE_REGEX=no
2213 DEFAULT_wxUSE_XML=no
2214 DEFAULT_wxUSE_EXPAT=no
2215 DEFAULT_wxUSE_ZLIB=no
2216 DEFAULT_wxUSE_LIBPNG=no
2217 DEFAULT_wxUSE_LIBJPEG=no
2218 DEFAULT_wxUSE_LIBTIFF=no
2219 DEFAULT_wxUSE_LIBXPM=no
2220 DEFAULT_wxUSE_LIBMSPACK=no
2221 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2222 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2223 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2224 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2225 DEFAULT_wxUSE_ODBC=no
2226 DEFAULT_wxUSE_OPENGL=no
2227
2228 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2229 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2230 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2231 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2232 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2233 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2234 DEFAULT_wxUSE_CMDLINE_PARSER=no
2235 DEFAULT_wxUSE_DATETIME=no
2236 DEFAULT_wxUSE_TIMER=no
2237 DEFAULT_wxUSE_STOPWATCH=no
2238 DEFAULT_wxUSE_FILE=no
2239 DEFAULT_wxUSE_FFILE=no
07158944 2240 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2241 DEFAULT_wxUSE_TEXTBUFFER=no
2242 DEFAULT_wxUSE_TEXTFILE=no
2243 DEFAULT_wxUSE_SOUND=no
3b57de8b 2244 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2245 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2246 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2247 DEFAULT_wxUSE_INTL=no
2248 DEFAULT_wxUSE_CONFIG=no
2249 DEFAULT_wxUSE_FONTMAP=no
2250 DEFAULT_wxUSE_STREAMS=no
2251 DEFAULT_wxUSE_SOCKETS=no
2252 DEFAULT_wxUSE_OLE=no
2253 DEFAULT_wxUSE_DATAOBJ=no
2254 DEFAULT_wxUSE_DIALUP_MANAGER=no
2255 DEFAULT_wxUSE_JOYSTICK=no
2256 DEFAULT_wxUSE_DYNLIB_CLASS=no
2257 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2258 DEFAULT_wxUSE_LONGLONG=no
2259 DEFAULT_wxUSE_GEOMETRY=no
2260
2261 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2262 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2263 DEFAULT_wxUSE_POSTSCRIPT=no
2264
2265 DEFAULT_wxUSE_CLIPBOARD=no
2266 DEFAULT_wxUSE_TOOLTIPS=no
2267 DEFAULT_wxUSE_DRAG_AND_DROP=no
2268 DEFAULT_wxUSE_DRAGIMAGE=no
2269 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2270 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2271
8a7b1113 2272 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2273 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2276
2277 DEFAULT_wxUSE_RESOURCES=no
2278 DEFAULT_wxUSE_CONSTRAINTS=no
2279 DEFAULT_wxUSE_IPC=no
2280 DEFAULT_wxUSE_HELP=no
2281 DEFAULT_wxUSE_MS_HTML_HELP=no
2282 DEFAULT_wxUSE_WXHTML_HELP=no
2283 DEFAULT_wxUSE_TREELAYOUT=no
2284 DEFAULT_wxUSE_METAFILE=no
2285 DEFAULT_wxUSE_MIMETYPE=no
2286 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2287 DEFAULT_wxUSE_PROTOCOL=no
2288 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2289 DEFAULT_wxUSE_PROTOCOL_FTP=no
2290 DEFAULT_wxUSE_PROTOCOL_FILE=no
2291 DEFAULT_wxUSE_URL=no
ca5c6ac3 2292 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2293
319c5ed4 2294 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2295 DEFAULT_wxUSE_COMMONDLGS=no
2296 DEFAULT_wxUSE_CHOICEDLG=no
2297 DEFAULT_wxUSE_COLOURDLG=no
2298 DEFAULT_wxUSE_DIRDLG=no
2299 DEFAULT_wxUSE_FILEDLG=no
2300 DEFAULT_wxUSE_FINDREPLDLG=no
2301 DEFAULT_wxUSE_FONTDLG=no
2302 DEFAULT_wxUSE_MSGDLG=no
2303 DEFAULT_wxUSE_NUMBERDLG=no
2304 DEFAULT_wxUSE_TEXTDLG=no
2305 DEFAULT_wxUSE_SPLASH=no
2306 DEFAULT_wxUSE_STARTUP_TIPS=no
2307 DEFAULT_wxUSE_PROGRESSDLG=no
2308 DEFAULT_wxUSE_WIZARDDLG=no
2309
2310 DEFAULT_wxUSE_MENUS=no
2311 DEFAULT_wxUSE_MINIFRAME=no
2312 DEFAULT_wxUSE_HTML=no
91dea314 2313 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2314 DEFAULT_wxUSE_XRC=no
3f60522a 2315 DEFAULT_wxUSE_AUI=no
646b6ec1 2316 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2317 DEFAULT_wxUSE_FILESYSTEM=no
2318 DEFAULT_wxUSE_FS_INET=no
2319 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2320 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2321 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2322 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2323 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2324 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2325 DEFAULT_wxUSE_VALIDATORS=no
2326
2327 DEFAULT_wxUSE_ACCEL=no
3ea50042 2328 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2329 DEFAULT_wxUSE_BUTTON=no
2330 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2331 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2332 DEFAULT_wxUSE_CALCTRL=no
2333 DEFAULT_wxUSE_CARET=no
2334 DEFAULT_wxUSE_CHECKBOX=no
2335 DEFAULT_wxUSE_CHECKLST=no
2336 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2337 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2338 DEFAULT_wxUSE_COLLPANE=no
e9263684 2339 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2340 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2341 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2342 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2343 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2344 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2345 DEFAULT_wxUSE_DIRPICKERCTRL=no
2346 DEFAULT_wxUSE_FILEPICKERCTRL=no
2347 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2348 DEFAULT_wxUSE_GAUGE=no
f43426c1 2349 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2350 DEFAULT_wxUSE_GRID=no
6954625c 2351 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2352 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2353 DEFAULT_wxUSE_IMAGLIST=no
2354 DEFAULT_wxUSE_LISTBOOK=no
2355 DEFAULT_wxUSE_LISTBOX=no
2356 DEFAULT_wxUSE_LISTCTRL=no
2357 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2358 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2359 DEFAULT_wxUSE_RADIOBOX=no
2360 DEFAULT_wxUSE_RADIOBTN=no
2361 DEFAULT_wxUSE_SASH=no
2362 DEFAULT_wxUSE_SCROLLBAR=no
2363 DEFAULT_wxUSE_SLIDER=no
2364 DEFAULT_wxUSE_SPINBTN=no
2365 DEFAULT_wxUSE_SPINCTRL=no
2366 DEFAULT_wxUSE_SPLITTER=no
2367 DEFAULT_wxUSE_STATBMP=no
2368 DEFAULT_wxUSE_STATBOX=no
2369 DEFAULT_wxUSE_STATLINE=no
2370 DEFAULT_wxUSE_STATTEXT=no
2371 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2372 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2373 DEFAULT_wxUSE_TEXTCTRL=no
2374 DEFAULT_wxUSE_TOGGLEBTN=no
2375 DEFAULT_wxUSE_TOOLBAR=no
2376 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2377 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2378 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2379 DEFAULT_wxUSE_TREECTRL=no
2380 DEFAULT_wxUSE_POPUPWIN=no
2381 DEFAULT_wxUSE_TIPWINDOW=no
2382
2383 DEFAULT_wxUSE_UNICODE=no
2384 DEFAULT_wxUSE_UNICODE_MSLU=no
2385 DEFAULT_wxUSE_WCSRTOMBS=no
2386
2387 DEFAULT_wxUSE_PALETTE=no
2388 DEFAULT_wxUSE_IMAGE=no
2389 DEFAULT_wxUSE_GIF=no
2390 DEFAULT_wxUSE_PCX=no
bb9e79c0 2391 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2392 DEFAULT_wxUSE_PNM=no
2393 DEFAULT_wxUSE_IFF=no
2394 DEFAULT_wxUSE_XPM=no
2395 DEFAULT_wxUSE_ICO_CUR=no
2396 DEFAULT_wxUSE_ACCESSIBILITY=no
2397
2398 DEFAULT_wxUSE_MONOLITHIC=no
2399 DEFAULT_wxUSE_PLUGINS=no
2400 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2401else
2402 DEFAULT_wxUSE_UNIVERSAL=no
2403 DEFAULT_wxUSE_STL=no
2404
2405 DEFAULT_wxUSE_NANOX=no
2406
2407 DEFAULT_wxUSE_THREADS=yes
2408
5acfd58d 2409 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2410 DEFAULT_wxUSE_OPTIMISE=yes
2411 DEFAULT_wxUSE_PROFILE=no
2412 DEFAULT_wxUSE_NO_DEPS=no
2413 DEFAULT_wxUSE_NO_RTTI=no
2414 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2415 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2416 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2417 DEFAULT_wxUSE_PERMISSIVE=no
2418 DEFAULT_wxUSE_DEBUG_FLAG=no
2419 DEFAULT_wxUSE_DEBUG_INFO=no
2420 DEFAULT_wxUSE_DEBUG_GDB=no
2421 DEFAULT_wxUSE_MEM_TRACING=no
2422 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2423 DEFAULT_wxUSE_DMALLOC=no
2424 DEFAULT_wxUSE_APPLE_IEEE=yes
2425
2426 DEFAULT_wxUSE_EXCEPTIONS=yes
2427 DEFAULT_wxUSE_LOG=yes
2428 DEFAULT_wxUSE_LOGWINDOW=yes
2429 DEFAULT_wxUSE_LOGGUI=yes
2430 DEFAULT_wxUSE_LOGDIALOG=yes
2431
2432 DEFAULT_wxUSE_GUI=yes
2433
2434 DEFAULT_wxUSE_REGEX=yes
2435 DEFAULT_wxUSE_XML=yes
2436 DEFAULT_wxUSE_EXPAT=yes
2437 DEFAULT_wxUSE_ZLIB=yes
2438 DEFAULT_wxUSE_LIBPNG=yes
2439 DEFAULT_wxUSE_LIBJPEG=yes
2440 DEFAULT_wxUSE_LIBTIFF=yes
2441 DEFAULT_wxUSE_LIBXPM=yes
2442 DEFAULT_wxUSE_LIBMSPACK=yes
2443 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2444 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2445 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2446 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2447 DEFAULT_wxUSE_ODBC=no
52cb607e 2448 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2449
2450 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2451 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2452 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2453 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2454 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2455 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2456 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2457 DEFAULT_wxUSE_DATETIME=yes
2458 DEFAULT_wxUSE_TIMER=yes
2459 DEFAULT_wxUSE_STOPWATCH=yes
2460 DEFAULT_wxUSE_FILE=yes
2461 DEFAULT_wxUSE_FFILE=yes
07158944 2462 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2463 DEFAULT_wxUSE_TEXTBUFFER=yes
2464 DEFAULT_wxUSE_TEXTFILE=yes
2465 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2466 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2467 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2468 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2469 DEFAULT_wxUSE_INTL=yes
2470 DEFAULT_wxUSE_CONFIG=yes
2471 DEFAULT_wxUSE_FONTMAP=yes
2472 DEFAULT_wxUSE_STREAMS=yes
2473 DEFAULT_wxUSE_SOCKETS=yes
2474 DEFAULT_wxUSE_OLE=yes
2475 DEFAULT_wxUSE_DATAOBJ=yes
2476 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2477 DEFAULT_wxUSE_JOYSTICK=yes
2478 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2479 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2480 DEFAULT_wxUSE_LONGLONG=yes
2481 DEFAULT_wxUSE_GEOMETRY=yes
2482
2483 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2484 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2485 DEFAULT_wxUSE_POSTSCRIPT=yes
2486
2487 DEFAULT_wxUSE_CLIPBOARD=yes
2488 DEFAULT_wxUSE_TOOLTIPS=yes
2489 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2490 DEFAULT_wxUSE_DRAGIMAGE=yes
2491 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2492 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2493
8a7b1113 2494 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2495 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2496 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2497 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2498
2499 DEFAULT_wxUSE_RESOURCES=no
2500 DEFAULT_wxUSE_CONSTRAINTS=yes
2501 DEFAULT_wxUSE_IPC=yes
2502 DEFAULT_wxUSE_HELP=yes
2503 DEFAULT_wxUSE_MS_HTML_HELP=yes
2504 DEFAULT_wxUSE_WXHTML_HELP=yes
2505 DEFAULT_wxUSE_TREELAYOUT=yes
2506 DEFAULT_wxUSE_METAFILE=yes
2507 DEFAULT_wxUSE_MIMETYPE=yes
2508 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2509 DEFAULT_wxUSE_PROTOCOL=yes
2510 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2511 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2512 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2513 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2514 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2515
319c5ed4 2516 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2517 DEFAULT_wxUSE_COMMONDLGS=yes
2518 DEFAULT_wxUSE_CHOICEDLG=yes
2519 DEFAULT_wxUSE_COLOURDLG=yes
2520 DEFAULT_wxUSE_DIRDLG=yes
2521 DEFAULT_wxUSE_FILEDLG=yes
2522 DEFAULT_wxUSE_FINDREPLDLG=yes
2523 DEFAULT_wxUSE_FONTDLG=yes
2524 DEFAULT_wxUSE_MSGDLG=yes
2525 DEFAULT_wxUSE_NUMBERDLG=yes
2526 DEFAULT_wxUSE_TEXTDLG=yes
2527 DEFAULT_wxUSE_SPLASH=yes
2528 DEFAULT_wxUSE_STARTUP_TIPS=yes
2529 DEFAULT_wxUSE_PROGRESSDLG=yes
2530 DEFAULT_wxUSE_WIZARDDLG=yes
2531
2532 DEFAULT_wxUSE_MENUS=yes
2533 DEFAULT_wxUSE_MINIFRAME=yes
2534 DEFAULT_wxUSE_HTML=yes
91dea314 2535 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2536 DEFAULT_wxUSE_XRC=yes
3f60522a 2537 DEFAULT_wxUSE_AUI=yes
646b6ec1 2538 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2539 DEFAULT_wxUSE_FILESYSTEM=yes
2540 DEFAULT_wxUSE_FS_INET=yes
2541 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2542 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2543 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2544 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2545 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2546 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2547 DEFAULT_wxUSE_VALIDATORS=yes
2548
2549 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2550 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2551 DEFAULT_wxUSE_BUTTON=yes
2552 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2553 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2554 DEFAULT_wxUSE_CALCTRL=yes
2555 DEFAULT_wxUSE_CARET=yes
2556 DEFAULT_wxUSE_CHECKBOX=yes
2557 DEFAULT_wxUSE_CHECKLST=yes
2558 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2559 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2560 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2561 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2562 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2563 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2564 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2565 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2566 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2567 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2568 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2569 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2570 DEFAULT_wxUSE_GAUGE=yes
2571 DEFAULT_wxUSE_GRID=yes
f43426c1 2572 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2573 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2574 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2575 DEFAULT_wxUSE_IMAGLIST=yes
2576 DEFAULT_wxUSE_LISTBOOK=yes
2577 DEFAULT_wxUSE_LISTBOX=yes
2578 DEFAULT_wxUSE_LISTCTRL=yes
2579 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2580 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2581 DEFAULT_wxUSE_RADIOBOX=yes
2582 DEFAULT_wxUSE_RADIOBTN=yes
2583 DEFAULT_wxUSE_SASH=yes
2584 DEFAULT_wxUSE_SCROLLBAR=yes
2585 DEFAULT_wxUSE_SLIDER=yes
2586 DEFAULT_wxUSE_SPINBTN=yes
2587 DEFAULT_wxUSE_SPINCTRL=yes
2588 DEFAULT_wxUSE_SPLITTER=yes
2589 DEFAULT_wxUSE_STATBMP=yes
2590 DEFAULT_wxUSE_STATBOX=yes
2591 DEFAULT_wxUSE_STATLINE=yes
2592 DEFAULT_wxUSE_STATTEXT=yes
2593 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2594 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2595 DEFAULT_wxUSE_TEXTCTRL=yes
2596 DEFAULT_wxUSE_TOGGLEBTN=yes
2597 DEFAULT_wxUSE_TOOLBAR=yes
2598 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2599 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2600 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2601 DEFAULT_wxUSE_TREECTRL=yes
2602 DEFAULT_wxUSE_POPUPWIN=yes
2603 DEFAULT_wxUSE_TIPWINDOW=yes
2604
78de529b 2605 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2606 DEFAULT_wxUSE_UNICODE_MSLU=yes
2607 DEFAULT_wxUSE_WCSRTOMBS=no
2608
2609 DEFAULT_wxUSE_PALETTE=yes
2610 DEFAULT_wxUSE_IMAGE=yes
2611 DEFAULT_wxUSE_GIF=yes
2612 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2613 DEFAULT_wxUSE_TGA=yes
2614 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2615 DEFAULT_wxUSE_XPM=yes
2616 DEFAULT_wxUSE_ICO_CUR=yes
2617 DEFAULT_wxUSE_ACCESSIBILITY=no
2618
2619 DEFAULT_wxUSE_MONOLITHIC=no
2620 DEFAULT_wxUSE_PLUGINS=no
2621 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2622
f34ca037 2623 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2624fi
2625
2626
2627
f34ca037 2628
a848cd7e
SC
2629for toolkit in `echo $ALL_TOOLKITS`; do
2630 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2631 if test "x$LINE" != "x" ; then
2632 has_toolkit_in_cache=1
2633 eval "DEFAULT_$LINE"
2634 eval "CACHE_$toolkit=1"
f34ca037
MW
2635
2636 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2637 if test "x$LINE" != "x" ; then
2638 eval "DEFAULT_$LINE"
2639 fi
a848cd7e
SC
2640 fi
2641done
2642
2643
2644
2645 enablestring=
2646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2647echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2648 no_cache=0
2649 # Check whether --enable-gui or --disable-gui was given.
2650if test "${enable_gui+set}" = set; then
2651 enableval="$enable_gui"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_gui='wxUSE_GUI=yes'
2655 else
2656 ac_cv_use_gui='wxUSE_GUI=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2669
2670fi;
2671
2672 eval "$ac_cv_use_gui"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_GUI" = yes; then
2678 echo "$as_me:$LINENO: result: yes" >&5
2679echo "${ECHO_T}yes" >&6
2680 else
2681 echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6
2683 fi
2684
2685
2686 enablestring=
2687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2688echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2689 no_cache=0
2690 # Check whether --enable-monolithic or --disable-monolithic was given.
2691if test "${enable_monolithic+set}" = set; then
2692 enableval="$enable_monolithic"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2696 else
2697 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2698 fi
2699
2700else
2701
2702 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2710
2711fi;
2712
2713 eval "$ac_cv_use_monolithic"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_MONOLITHIC" = yes; then
2719 echo "$as_me:$LINENO: result: yes" >&5
2720echo "${ECHO_T}yes" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723echo "${ECHO_T}no" >&6
2724 fi
2725
2726
2727 enablestring=
2728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2729echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2730 no_cache=0
2731 # Check whether --enable-plugins or --disable-plugins was given.
2732if test "${enable_plugins+set}" = set; then
2733 enableval="$enable_plugins"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2737 else
2738 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2739 fi
2740
2741else
2742
2743 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2751
2752fi;
2753
2754 eval "$ac_cv_use_plugins"
2755 if test "$no_cache" != 1; then
2756 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2757 fi
2758
2759 if test "$wxUSE_PLUGINS" = yes; then
2760 echo "$as_me:$LINENO: result: yes" >&5
2761echo "${ECHO_T}yes" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6
2765 fi
2766
2767
1c14217d
VZ
2768 withstring=without
2769 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2770echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2771 no_cache=0
2772
2773# Check whether --with-subdirs or --without-subdirs was given.
2774if test "${with_subdirs+set}" = set; then
2775 withval="$with_subdirs"
2776
2777 if test "$withval" = yes; then
2778 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2779 else
2780 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxWITH_SUBDIRS" ${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_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2793
2794fi;
2795
2796 eval "$ac_cv_use_subdirs"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxWITH_SUBDIRS" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 fi
2808
2809
a848cd7e
SC
2810if test "$wxUSE_GUI" = "yes"; then
2811
2812
2813 enablestring=
2814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2815echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2816 no_cache=0
2817 # Check whether --enable-universal or --disable-universal was given.
2818if test "${enable_universal+set}" = set; then
2819 enableval="$enable_universal"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2823 else
2824 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2825 fi
2826
2827else
2828
2829 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2837
2838fi;
2839
2840 eval "$ac_cv_use_universal"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_UNIVERSAL" = yes; then
2846 echo "$as_me:$LINENO: result: yes" >&5
2847echo "${ECHO_T}yes" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851 fi
2852
2853
2854# Check whether --with-gtk or --without-gtk was given.
2855if test "${with_gtk+set}" = set; then
2856 withval="$with_gtk"
2857 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2858fi;
2859
2860# Check whether --with-motif or --without-motif was given.
2861if test "${with_motif+set}" = set; then
2862 withval="$with_motif"
2863 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-mac or --without-mac was given.
2867if test "${with_mac+set}" = set; then
2868 withval="$with_mac"
c228d3a4 2869 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2870fi;
2871
2872# Check whether --with-cocoa or --without-cocoa was given.
2873if test "${with_cocoa+set}" = set; then
2874 withval="$with_cocoa"
c228d3a4 2875 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2876fi;
2877
2878# Check whether --with-wine or --without-wine was given.
2879if test "${with_wine+set}" = set; then
2880 withval="$with_wine"
2881 wxUSE_WINE="$withval" CACHE_WINE=1
2882fi;
2883
2884# Check whether --with-msw or --without-msw was given.
2885if test "${with_msw+set}" = set; then
2886 withval="$with_msw"
2887 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2888fi;
2889
2890# Check whether --with-pm or --without-pm was given.
2891if test "${with_pm+set}" = set; then
2892 withval="$with_pm"
2893 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2894fi;
2895
2896# Check whether --with-mgl or --without-mgl was given.
2897if test "${with_mgl+set}" = set; then
2898 withval="$with_mgl"
2899 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2900fi;
2901
b3c86150
VS
2902# Check whether --with-directfb or --without-directfb was given.
2903if test "${with_directfb+set}" = set; then
2904 withval="$with_directfb"
2905 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2906fi;
2907
a848cd7e
SC
2908# Check whether --with-microwin or --without-microwin was given.
2909if test "${with_microwin+set}" = set; then
2910 withval="$with_microwin"
2911 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2912fi;
2913
2914# Check whether --with-x11 or --without-x11 was given.
2915if test "${with_x11+set}" = set; then
2916 withval="$with_x11"
2917 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2918fi;
2919
2920 enablestring=
2921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2922echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2923 no_cache=0
2924 # Check whether --enable-nanox or --disable-nanox was given.
2925if test "${enable_nanox+set}" = set; then
2926 enableval="$enable_nanox"
2927
2928 if test "$enableval" = yes; then
2929 ac_cv_use_nanox='wxUSE_NANOX=yes'
2930 else
2931 ac_cv_use_nanox='wxUSE_NANOX=no'
2932 fi
2933
2934else
2935
2936 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2944
2945fi;
2946
2947 eval "$ac_cv_use_nanox"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_NANOX" = yes; then
2953 echo "$as_me:$LINENO: result: yes" >&5
2954echo "${ECHO_T}yes" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6
2958 fi
2959
2960
f34ca037
MW
2961# Check whether --enable-gtk2 or --disable-gtk2 was given.
2962if test "${enable_gtk2+set}" = set; then
2963 enableval="$enable_gtk2"
2964 wxUSE_GTK2="$enableval"
2965fi;
a848cd7e 2966
a848cd7e
SC
2967 enablestring=
2968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2969echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2970 no_cache=0
2971 # Check whether --enable-gpe or --disable-gpe was given.
2972if test "${enable_gpe+set}" = set; then
2973 enableval="$enable_gpe"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_gpe='wxUSE_GPE=yes'
2977 else
2978 ac_cv_use_gpe='wxUSE_GPE=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2991
2992fi;
2993
2994 eval "$ac_cv_use_gpe"
2995 if test "$no_cache" != 1; then
2996 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2997 fi
2998
2999 if test "$wxUSE_GPE" = yes; then
3000 echo "$as_me:$LINENO: result: yes" >&5
3001echo "${ECHO_T}yes" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
3005 fi
3006
3007
3008
3009 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3010echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3011 no_cache=0
3012
3013# Check whether --with-libpng or --without-libpng was given.
3014if test "${with_libpng+set}" = set; then
3015 withval="$with_libpng"
3016
3017 if test "$withval" = yes; then
3018 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3019 elif test "$withval" = no; then
3020 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3021 elif test "$withval" = sys; then
3022 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3023 elif test "$withval" = builtin; then
3024 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3025 else
3026 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3027echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3028 { (exit 1); exit 1; }; }
3029 fi
3030
3031else
3032
3033 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3034 if test "x$LINE" != x ; then
3035 eval "DEFAULT_$LINE"
3036 else
3037 no_cache=1
3038 fi
3039
3040 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3041
3042fi;
3043
3044 eval "$ac_cv_use_libpng"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_LIBPNG" = yes; then
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3052 elif test "$wxUSE_LIBPNG" = no; then
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055 elif test "$wxUSE_LIBPNG" = sys; then
3056 echo "$as_me:$LINENO: result: system version" >&5
3057echo "${ECHO_T}system version" >&6
3058 elif test "$wxUSE_LIBPNG" = builtin; then
3059 echo "$as_me:$LINENO: result: builtin version" >&5
3060echo "${ECHO_T}builtin version" >&6
3061 else
3062 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3063echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067
3068 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3069echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3070 no_cache=0
3071
3072# Check whether --with-libjpeg or --without-libjpeg was given.
3073if test "${with_libjpeg+set}" = set; then
3074 withval="$with_libjpeg"
3075
3076 if test "$withval" = yes; then
3077 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3078 elif test "$withval" = no; then
3079 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3080 elif test "$withval" = sys; then
3081 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3082 elif test "$withval" = builtin; then
3083 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3084 else
3085 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3086echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3087 { (exit 1); exit 1; }; }
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3100
3101fi;
3102
3103 eval "$ac_cv_use_libjpeg"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_LIBJPEG" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 elif test "$wxUSE_LIBJPEG" = no; then
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 elif test "$wxUSE_LIBJPEG" = sys; then
3115 echo "$as_me:$LINENO: result: system version" >&5
3116echo "${ECHO_T}system version" >&6
3117 elif test "$wxUSE_LIBJPEG" = builtin; then
3118 echo "$as_me:$LINENO: result: builtin version" >&5
3119echo "${ECHO_T}builtin version" >&6
3120 else
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
3124 fi
3125
3126
3127 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3128echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3129 no_cache=0
3130
3131# Check whether --with-libtiff or --without-libtiff was given.
3132if test "${with_libtiff+set}" = set; then
3133 withval="$with_libtiff"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3137 elif test "$withval" = no; then
3138 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3139 elif test "$withval" = sys; then
3140 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3141 elif test "$withval" = builtin; then
3142 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3143 else
3144 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3145echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3146 { (exit 1); exit 1; }; }
3147 fi
3148
3149else
3150
3151 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3159
3160fi;
3161
3162 eval "$ac_cv_use_libtiff"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_LIBTIFF" = yes; then
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
3170 elif test "$wxUSE_LIBTIFF" = no; then
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
3173 elif test "$wxUSE_LIBTIFF" = sys; then
3174 echo "$as_me:$LINENO: result: system version" >&5
3175echo "${ECHO_T}system version" >&6
3176 elif test "$wxUSE_LIBTIFF" = builtin; then
3177 echo "$as_me:$LINENO: result: builtin version" >&5
3178echo "${ECHO_T}builtin version" >&6
3179 else
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
3183 fi
3184
3185
3186 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3187echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-libxpm or --without-libxpm was given.
3191if test "${with_libxpm+set}" = set; then
3192 withval="$with_libxpm"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3196 elif test "$withval" = no; then
3197 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3198 elif test "$withval" = sys; then
3199 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3200 elif test "$withval" = builtin; then
3201 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3202 else
3203 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3204echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3218
3219fi;
3220
3221 eval "$ac_cv_use_libxpm"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_LIBXPM" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 elif test "$wxUSE_LIBXPM" = no; then
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 elif test "$wxUSE_LIBXPM" = sys; then
3233 echo "$as_me:$LINENO: result: system version" >&5
3234echo "${ECHO_T}system version" >&6
3235 elif test "$wxUSE_LIBXPM" = builtin; then
3236 echo "$as_me:$LINENO: result: builtin version" >&5
3237echo "${ECHO_T}builtin version" >&6
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244
1c14217d
VZ
3245 withstring=
3246 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3247echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3248 no_cache=0
3249
3250# Check whether --with-libmspack or --without-libmspack was given.
3251if test "${with_libmspack+set}" = set; then
3252 withval="$with_libmspack"
3253
3254 if test "$withval" = yes; then
3255 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3256 else
3257 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3258 fi
3259
3260else
3261
3262 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3270
3271fi;
3272
3273 eval "$ac_cv_use_libmspack"
3274 if test "$no_cache" != 1; then
3275 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3276 fi
3277
3278 if test "$wxUSE_LIBMSPACK" = yes; then
3279 echo "$as_me:$LINENO: result: yes" >&5
3280echo "${ECHO_T}yes" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
3284 fi
3285
3286
1c14217d
VZ
3287 withstring=
3288 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3289echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3290 no_cache=0
3291
3292# Check whether --with-sdl or --without-sdl was given.
3293if test "${with_sdl+set}" = set; then
3294 withval="$with_sdl"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3298 else
3299 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3312
3313fi;
3314
3315 eval "$ac_cv_use_sdl"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_LIBSDL" = yes; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
3323 else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326 fi
3327
3328
1c14217d
VZ
3329 withstring=
3330 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3331echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3332 no_cache=0
3333
3334# Check whether --with-gnomeprint or --without-gnomeprint was given.
3335if test "${with_gnomeprint+set}" = set; then
3336 withval="$with_gnomeprint"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3340 else
3341 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3342 fi
3343
3344else
3345
3346 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3354
3355fi;
3356
3357 eval "$ac_cv_use_gnomeprint"
3358 if test "$no_cache" != 1; then
3359 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3360 fi
3361
3362 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3363 echo "$as_me:$LINENO: result: yes" >&5
3364echo "${ECHO_T}yes" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
3368 fi
3369
3370
2b850ae1
RR
3371 withstring=
3372 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3373echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3374 no_cache=0
3375
3376# Check whether --with-gnomevfs or --without-gnomevfs was given.
3377if test "${with_gnomevfs+set}" = set; then
3378 withval="$with_gnomevfs"
3379
3380 if test "$withval" = yes; then
3381 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3382 else
3383 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3384 fi
3385
3386else
3387
3388 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3389 if test "x$LINE" != x ; then
3390 eval "DEFAULT_$LINE"
3391 else
3392 no_cache=1
3393 fi
3394
3395 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3396
3397fi;
3398
3399 eval "$ac_cv_use_gnomevfs"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3405 echo "$as_me:$LINENO: result: yes" >&5
3406echo "${ECHO_T}yes" >&6
3407 else
3408 echo "$as_me:$LINENO: result: no" >&5
3409echo "${ECHO_T}no" >&6
3410 fi
3411
3412
3565d135
RR
3413 withstring=
3414 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3415echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3416 no_cache=0
3417
3418# Check whether --with-hildon or --without-hildon was given.
3419if test "${with_hildon+set}" = set; then
3420 withval="$with_hildon"
3421
3422 if test "$withval" = yes; then
3423 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3424 else
3425 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3438
3439fi;
3440
3441 eval "$ac_cv_use_hildon"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_LIBHILDON" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 else
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 fi
3453
3454
1c14217d
VZ
3455 withstring=
3456 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3457echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3458 no_cache=0
3459
3460# Check whether --with-opengl or --without-opengl was given.
3461if test "${with_opengl+set}" = set; then
3462 withval="$with_opengl"
3463
3464 if test "$withval" = yes; then
3465 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3466 else
3467 ac_cv_use_opengl='wxUSE_OPENGL=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3480
3481fi;
3482
3483 eval "$ac_cv_use_opengl"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_OPENGL" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
4353a8df
VZ
3497if test "$wxUSE_UNIVERSAL" = "yes"; then
3498
3499# Check whether --with-themes or --without-themes was given.
3500if test "${with_themes+set}" = set; then
3501 withval="$with_themes"
3502 wxUNIV_THEMES="$withval"
3503fi;
3504fi
3505
a848cd7e
SC
3506fi
3507
3508
1c14217d
VZ
3509 withstring=
3510 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3511echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3512 no_cache=0
3513
3514# Check whether --with-dmalloc or --without-dmalloc was given.
3515if test "${with_dmalloc+set}" = set; then
3516 withval="$with_dmalloc"
3517
3518 if test "$withval" = yes; then
3519 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3520 else
3521 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3534
3535fi;
3536
3537 eval "$ac_cv_use_dmalloc"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_DMALLOC" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 fi
3549
3550
3551 echo "$as_me:$LINENO: checking for --with-regex" >&5
3552echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3553 no_cache=0
3554
3555# Check whether --with-regex or --without-regex was given.
3556if test "${with_regex+set}" = set; then
3557 withval="$with_regex"
3558
3559 if test "$withval" = yes; then
3560 ac_cv_use_regex='wxUSE_REGEX=yes'
3561 elif test "$withval" = no; then
3562 ac_cv_use_regex='wxUSE_REGEX=no'
3563 elif test "$withval" = sys; then
3564 ac_cv_use_regex='wxUSE_REGEX=sys'
3565 elif test "$withval" = builtin; then
3566 ac_cv_use_regex='wxUSE_REGEX=builtin'
3567 else
3568 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3569echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3570 { (exit 1); exit 1; }; }
3571 fi
3572
3573else
3574
3575 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3583
3584fi;
3585
3586 eval "$ac_cv_use_regex"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_REGEX" = yes; then
3592 echo "$as_me:$LINENO: result: yes" >&5
3593echo "${ECHO_T}yes" >&6
3594 elif test "$wxUSE_REGEX" = no; then
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597 elif test "$wxUSE_REGEX" = sys; then
3598 echo "$as_me:$LINENO: result: system version" >&5
3599echo "${ECHO_T}system version" >&6
3600 elif test "$wxUSE_REGEX" = builtin; then
3601 echo "$as_me:$LINENO: result: builtin version" >&5
3602echo "${ECHO_T}builtin version" >&6
3603 else
3604 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3605echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3606 { (exit 1); exit 1; }; }
3607 fi
3608
3609
3610 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3611echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3612 no_cache=0
3613
3614# Check whether --with-zlib or --without-zlib was given.
3615if test "${with_zlib+set}" = set; then
3616 withval="$with_zlib"
3617
3618 if test "$withval" = yes; then
3619 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3620 elif test "$withval" = no; then
3621 ac_cv_use_zlib='wxUSE_ZLIB=no'
3622 elif test "$withval" = sys; then
3623 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3624 elif test "$withval" = builtin; then
3625 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3626 else
3627 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3628echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3629 { (exit 1); exit 1; }; }
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3642
3643fi;
3644
3645 eval "$ac_cv_use_zlib"
3646 if test "$no_cache" != 1; then
3647 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3648 fi
3649
3650 if test "$wxUSE_ZLIB" = yes; then
3651 echo "$as_me:$LINENO: result: yes" >&5
3652echo "${ECHO_T}yes" >&6
3653 elif test "$wxUSE_ZLIB" = no; then
3654 echo "$as_me:$LINENO: result: no" >&5
3655echo "${ECHO_T}no" >&6
3656 elif test "$wxUSE_ZLIB" = sys; then
3657 echo "$as_me:$LINENO: result: system version" >&5
3658echo "${ECHO_T}system version" >&6
3659 elif test "$wxUSE_ZLIB" = builtin; then
3660 echo "$as_me:$LINENO: result: builtin version" >&5
3661echo "${ECHO_T}builtin version" >&6
3662 else
3663 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3664echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3665 { (exit 1); exit 1; }; }
3666 fi
3667
3668
3669 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3670echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3671 no_cache=0
3672
3673# Check whether --with-odbc or --without-odbc was given.
3674if test "${with_odbc+set}" = set; then
3675 withval="$with_odbc"
3676
3677 if test "$withval" = yes; then
3678 ac_cv_use_odbc='wxUSE_ODBC=yes'
3679 elif test "$withval" = no; then
3680 ac_cv_use_odbc='wxUSE_ODBC=no'
3681 elif test "$withval" = sys; then
3682 ac_cv_use_odbc='wxUSE_ODBC=sys'
3683 elif test "$withval" = builtin; then
3684 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3685 else
3686 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3687echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3688 { (exit 1); exit 1; }; }
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3701
3702fi;
3703
3704 eval "$ac_cv_use_odbc"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$wxUSE_ODBC" = yes; then
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712 elif test "$wxUSE_ODBC" = no; then
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715 elif test "$wxUSE_ODBC" = sys; then
3716 echo "$as_me:$LINENO: result: system version" >&5
3717echo "${ECHO_T}system version" >&6
3718 elif test "$wxUSE_ODBC" = builtin; then
3719 echo "$as_me:$LINENO: result: builtin version" >&5
3720echo "${ECHO_T}builtin version" >&6
3721 else
3722 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3723echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3724 { (exit 1); exit 1; }; }
3725 fi
3726
3727
3728 echo "$as_me:$LINENO: checking for --with-expat" >&5
3729echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3730 no_cache=0
3731
3732# Check whether --with-expat or --without-expat was given.
3733if test "${with_expat+set}" = set; then
3734 withval="$with_expat"
3735
3736 if test "$withval" = yes; then
3737 ac_cv_use_expat='wxUSE_EXPAT=yes'
3738 elif test "$withval" = no; then
3739 ac_cv_use_expat='wxUSE_EXPAT=no'
3740 elif test "$withval" = sys; then
3741 ac_cv_use_expat='wxUSE_EXPAT=sys'
3742 elif test "$withval" = builtin; then
3743 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3744 else
3745 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3746echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3747 { (exit 1); exit 1; }; }
3748 fi
3749
3750else
3751
3752 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3760
3761fi;
3762
3763 eval "$ac_cv_use_expat"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_EXPAT" = yes; then
3769 echo "$as_me:$LINENO: result: yes" >&5
3770echo "${ECHO_T}yes" >&6
3771 elif test "$wxUSE_EXPAT" = no; then
3772 echo "$as_me:$LINENO: result: no" >&5
3773echo "${ECHO_T}no" >&6
3774 elif test "$wxUSE_EXPAT" = sys; then
3775 echo "$as_me:$LINENO: result: system version" >&5
3776echo "${ECHO_T}system version" >&6
3777 elif test "$wxUSE_EXPAT" = builtin; then
3778 echo "$as_me:$LINENO: result: builtin version" >&5
3779echo "${ECHO_T}builtin version" >&6
3780 else
3781 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3782echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3783 { (exit 1); exit 1; }; }
3784 fi
3785
3786
3787
3788
3789 enablestring=
3790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3791echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3792 no_cache=0
3793 # Check whether --enable-shared or --disable-shared was given.
3794if test "${enable_shared+set}" = set; then
3795 enableval="$enable_shared"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_shared='wxUSE_SHARED=yes'
3799 else
3800 ac_cv_use_shared='wxUSE_SHARED=no'
3801 fi
3802
3803else
3804
3805 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3813
3814fi;
3815
3816 eval "$ac_cv_use_shared"
3817 if test "$no_cache" != 1; then
3818 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3819 fi
3820
3821 if test "$wxUSE_SHARED" = yes; then
3822 echo "$as_me:$LINENO: result: yes" >&5
3823echo "${ECHO_T}yes" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827 fi
3828
3829
3830 enablestring=
3831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3832echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3833 no_cache=0
3834 # Check whether --enable-optimise or --disable-optimise was given.
3835if test "${enable_optimise+set}" = set; then
3836 enableval="$enable_optimise"
3837
3838 if test "$enableval" = yes; then
3839 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3840 else
3841 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3842 fi
3843
3844else
3845
3846 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3854
3855fi;
3856
3857 eval "$ac_cv_use_optimise"
3858 if test "$no_cache" != 1; then
3859 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3860 fi
3861
3862 if test "$wxUSE_OPTIMISE" = yes; then
3863 echo "$as_me:$LINENO: result: yes" >&5
3864echo "${ECHO_T}yes" >&6
3865 else
3866 echo "$as_me:$LINENO: result: no" >&5
3867echo "${ECHO_T}no" >&6
3868 fi
3869
3870
3871 enablestring=
3872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3873echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3874 no_cache=0
3875 # Check whether --enable-debug or --disable-debug was given.
3876if test "${enable_debug+set}" = set; then
3877 enableval="$enable_debug"
3878
3879 if test "$enableval" = yes; then
3880 ac_cv_use_debug='wxUSE_DEBUG=yes'
3881 else
3882 ac_cv_use_debug='wxUSE_DEBUG=no'
3883 fi
3884
3885else
3886
3887 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3895
3896fi;
3897
3898 eval "$ac_cv_use_debug"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DEBUG" = yes; then
3904 echo "$as_me:$LINENO: result: yes" >&5
3905echo "${ECHO_T}yes" >&6
3906 else
3907 echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6
3909 fi
3910
3911
3912 enablestring=
3913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3914echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3915 no_cache=0
3916 # Check whether --enable-stl or --disable-stl was given.
3917if test "${enable_stl+set}" = set; then
3918 enableval="$enable_stl"
3919
3920 if test "$enableval" = yes; then
3921 ac_cv_use_stl='wxUSE_STL=yes'
3922 else
3923 ac_cv_use_stl='wxUSE_STL=no'
3924 fi
3925
3926else
3927
3928 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3936
3937fi;
3938
3939 eval "$ac_cv_use_stl"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_STL" = yes; then
3945 echo "$as_me:$LINENO: result: yes" >&5
3946echo "${ECHO_T}yes" >&6
3947 else
3948 echo "$as_me:$LINENO: result: no" >&5
3949echo "${ECHO_T}no" >&6
3950 fi
3951
3952if test "$USE_OS2" = "1"; then
69120ee4 3953 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-omf or --disable-omf was given.
3960if test "${enable_omf+set}" = set; then
3961 enableval="$enable_omf"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_omf='wxUSE_OMF=yes'
3965 else
3966 ac_cv_use_omf='wxUSE_OMF=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3979
3980fi;
3981
3982 eval "$ac_cv_use_omf"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_OMF" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995fi
3996
3997if test "$wxUSE_DEBUG" = "yes"; then
3998 DEFAULT_wxUSE_DEBUG_FLAG=yes
3999 DEFAULT_wxUSE_DEBUG_INFO=yes
4000 BUILD=debug
4001elif test "$wxUSE_DEBUG" = "no"; then
4002 DEFAULT_wxUSE_DEBUG_FLAG=no
4003 DEFAULT_wxUSE_DEBUG_INFO=no
4004 BUILD=release
4005fi
4006
4007
4008 enablestring=
4009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4010echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4011 no_cache=0
4012 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4013if test "${enable_debug_flag+set}" = set; then
4014 enableval="$enable_debug_flag"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4018 else
4019 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4020 fi
4021
4022else
4023
4024 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4032
4033fi;
4034
4035 eval "$ac_cv_use_debug_flag"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_DEBUG_FLAG" = yes; then
4041 echo "$as_me:$LINENO: result: yes" >&5
4042echo "${ECHO_T}yes" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046 fi
4047
4048
4049 enablestring=
4050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4051echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4052 no_cache=0
4053 # Check whether --enable-debug_info or --disable-debug_info was given.
4054if test "${enable_debug_info+set}" = set; then
4055 enableval="$enable_debug_info"
4056
4057 if test "$enableval" = yes; then
4058 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4059 else
4060 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4061 fi
4062
4063else
4064
4065 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4066 if test "x$LINE" != x ; then
4067 eval "DEFAULT_$LINE"
4068 else
4069 no_cache=1
4070 fi
4071
4072 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4073
4074fi;
4075
4076 eval "$ac_cv_use_debug_info"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_DEBUG_INFO" = yes; then
4082 echo "$as_me:$LINENO: result: yes" >&5
4083echo "${ECHO_T}yes" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087 fi
4088
4089
4090 enablestring=
4091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4092echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4093 no_cache=0
4094 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4095if test "${enable_debug_gdb+set}" = set; then
4096 enableval="$enable_debug_gdb"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4100 else
4101 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4114
4115fi;
4116
4117 eval "$ac_cv_use_debug_gdb"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_DEBUG_GDB" = yes; then
4123 echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128 fi
4129
4130
4131 enablestring=
4132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4133echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4134 no_cache=0
4135 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4136if test "${enable_debug_cntxt+set}" = set; then
4137 enableval="$enable_debug_cntxt"
4138
4139 if test "$enableval" = yes; then
4140 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4141 else
4142 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4143 fi
4144
4145else
4146
4147 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4148 if test "x$LINE" != x ; then
4149 eval "DEFAULT_$LINE"
4150 else
4151 no_cache=1
4152 fi
4153
4154 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4155
4156fi;
4157
4158 eval "$ac_cv_use_debug_cntxt"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169 fi
4170
4171
4172 enablestring=
4173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4174echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4175 no_cache=0
4176 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4177if test "${enable_mem_tracing+set}" = set; then
4178 enableval="$enable_mem_tracing"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4182 else
4183 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4184 fi
4185
4186else
4187
4188 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4196
4197fi;
4198
4199 eval "$ac_cv_use_mem_tracing"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_MEM_TRACING" = yes; then
4205 echo "$as_me:$LINENO: result: yes" >&5
4206echo "${ECHO_T}yes" >&6
4207 else
4208 echo "$as_me:$LINENO: result: no" >&5
4209echo "${ECHO_T}no" >&6
4210 fi
4211
4212
4213 enablestring=
4214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4215echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4216 no_cache=0
4217 # Check whether --enable-profile or --disable-profile was given.
4218if test "${enable_profile+set}" = set; then
4219 enableval="$enable_profile"
4220
4221 if test "$enableval" = yes; then
4222 ac_cv_use_profile='wxUSE_PROFILE=yes'
4223 else
4224 ac_cv_use_profile='wxUSE_PROFILE=no'
4225 fi
4226
4227else
4228
4229 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4237
4238fi;
4239
4240 eval "$ac_cv_use_profile"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_PROFILE" = yes; then
4246 echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
4248 else
4249 echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251 fi
4252
4253
4254 enablestring=
4255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4256echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4257 no_cache=0
4258 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4259if test "${enable_no_rtti+set}" = set; then
4260 enableval="$enable_no_rtti"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4264 else
4265 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4266 fi
4267
4268else
4269
4270 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4278
4279fi;
4280
4281 eval "$ac_cv_use_no_rtti"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_NO_RTTI" = yes; then
4287 echo "$as_me:$LINENO: result: yes" >&5
4288echo "${ECHO_T}yes" >&6
4289 else
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
4292 fi
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4300if test "${enable_no_exceptions+set}" = set; then
4301 enableval="$enable_no_exceptions"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4305 else
4306 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4319
4320fi;
4321
4322 eval "$ac_cv_use_no_exceptions"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-permissive or --disable-permissive was given.
4341if test "${enable_permissive+set}" = set; then
4342 enableval="$enable_permissive"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4346 else
4347 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4360
4361fi;
4362
4363 eval "$ac_cv_use_permissive"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PERMISSIVE" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-no_deps or --disable-no_deps was given.
4382if test "${enable_no_deps+set}" = set; then
4383 enableval="$enable_no_deps"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4387 else
4388 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4401
4402fi;
4403
4404 eval "$ac_cv_use_no_deps"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_NO_DEPS" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
95768535 4418 enablestring=
7afc46ab
KO
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4423if test "${enable_universal_binary+set}" = set; then
4424 enableval="$enable_universal_binary"
4425
95768535 4426 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4427
4428else
4429
4430 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
95768535 4433 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4434 else
4435 no_cache=1
95768535 4436 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4437 fi
4438
7afc46ab
KO
4439fi;
4440
95768535 4441 eval "$wx_cv_use_universal_binary"
7afc46ab 4442 if test "$no_cache" != 1; then
95768535 4443 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4444 fi
4445
95768535
MW
4446 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4447echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4448
4449
a848cd7e 4450
dee1a63f
MB
4451 enablestring=enable
4452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4453echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4454 no_cache=0
dee1a63f
MB
4455 # Check whether --enable-compat24 or --disable-compat24 was given.
4456if test "${enable_compat24+set}" = set; then
4457 enableval="$enable_compat24"
a848cd7e
SC
4458
4459 if test "$enableval" = yes; then
dee1a63f 4460 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4461 else
dee1a63f 4462 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4463 fi
4464
4465else
4466
dee1a63f 4467 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4468 if test "x$LINE" != x ; then
4469 eval "DEFAULT_$LINE"
4470 else
4471 no_cache=1
4472 fi
4473
dee1a63f 4474 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4475
4476fi;
4477
dee1a63f 4478 eval "$ac_cv_use_compat24"
a848cd7e 4479 if test "$no_cache" != 1; then
dee1a63f 4480 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4481 fi
4482
dee1a63f 4483 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4484 echo "$as_me:$LINENO: result: yes" >&5
4485echo "${ECHO_T}yes" >&6
4486 else
4487 echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489 fi
4490
4491
4492 enablestring=disable
dee1a63f
MB
4493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4494echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4495 no_cache=0
dee1a63f
MB
4496 # Check whether --enable-compat26 or --disable-compat26 was given.
4497if test "${enable_compat26+set}" = set; then
4498 enableval="$enable_compat26"
a848cd7e
SC
4499
4500 if test "$enableval" = yes; then
dee1a63f 4501 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4502 else
dee1a63f 4503 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4504 fi
4505
4506else
4507
dee1a63f 4508 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
dee1a63f 4515 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4516
4517fi;
4518
dee1a63f 4519 eval "$ac_cv_use_compat26"
a848cd7e 4520 if test "$no_cache" != 1; then
dee1a63f 4521 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4522 fi
4523
dee1a63f 4524 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527 else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530 fi
4531
4532
ffa0583f
RL
4533
4534 enablestring=
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4537 no_cache=0
4538 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4539if test "${enable_rpath+set}" = set; then
4540 enableval="$enable_rpath"
ffa0583f
RL
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_rpath='wxUSE_RPATH=yes'
4544 else
4545 ac_cv_use_rpath='wxUSE_RPATH=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4558
a848cd7e
SC
4559fi;
4560
ffa0583f
RL
4561 eval "$ac_cv_use_rpath"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_RPATH" = yes; then
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572 fi
4573
a848cd7e
SC
4574
4575
4576
4577
4578 enablestring=
4579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4580echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4581 no_cache=0
4582 # Check whether --enable-intl or --disable-intl was given.
4583if test "${enable_intl+set}" = set; then
4584 enableval="$enable_intl"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_intl='wxUSE_INTL=yes'
4588 else
4589 ac_cv_use_intl='wxUSE_INTL=no'
4590 fi
4591
4592else
4593
4594 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4602
4603fi;
4604
4605 eval "$ac_cv_use_intl"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_INTL" = yes; then
4611 echo "$as_me:$LINENO: result: yes" >&5
4612echo "${ECHO_T}yes" >&6
4613 else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616 fi
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-config or --disable-config was given.
4624if test "${enable_config+set}" = set; then
4625 enableval="$enable_config"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_config='wxUSE_CONFIG=yes'
4629 else
4630 ac_cv_use_config='wxUSE_CONFIG=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4643
4644fi;
4645
4646 eval "$ac_cv_use_config"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_CONFIG" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4663echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-protocols or --disable-protocols was given.
4666if test "${enable_protocols+set}" = set; then
4667 enableval="$enable_protocols"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4671 else
4672 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4685
4686fi;
4687
4688 eval "$ac_cv_use_protocols"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_PROTOCOL" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699 fi
4700
4701
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4704echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-ftp or --disable-ftp was given.
4707if test "${enable_ftp+set}" = set; then
4708 enableval="$enable_ftp"
4709
4710 if test "$enableval" = yes; then
4711 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4712 else
4713 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4714 fi
4715
4716else
4717
4718 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
4725 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4726
4727fi;
4728
4729 eval "$ac_cv_use_ftp"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740 fi
4741
4742
4743 enablestring=
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4745echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4746 no_cache=0
4747 # Check whether --enable-http or --disable-http was given.
4748if test "${enable_http+set}" = set; then
4749 enableval="$enable_http"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4753 else
4754 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4755 fi
4756
4757else
4758
4759 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4767
4768fi;
4769
4770 eval "$ac_cv_use_http"
4771 if test "$no_cache" != 1; then
4772 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4773 fi
4774
4775 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4776 echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781 fi
4782
4783
4784 enablestring=
4785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4786echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4787 no_cache=0
4788 # Check whether --enable-fileproto or --disable-fileproto was given.
4789if test "${enable_fileproto+set}" = set; then
4790 enableval="$enable_fileproto"
4791
4792 if test "$enableval" = yes; then
4793 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4794 else
4795 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4796 fi
4797
4798else
4799
4800 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
4807 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4808
4809fi;
4810
4811 eval "$ac_cv_use_fileproto"
4812 if test "$no_cache" != 1; then
4813 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4814 fi
4815
4816 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4817 echo "$as_me:$LINENO: result: yes" >&5
4818echo "${ECHO_T}yes" >&6
4819 else
4820 echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6
4822 fi
4823
4824
4825 enablestring=
4826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4827echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4828 no_cache=0
4829 # Check whether --enable-sockets or --disable-sockets was given.
4830if test "${enable_sockets+set}" = set; then
4831 enableval="$enable_sockets"
4832
4833 if test "$enableval" = yes; then
4834 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4835 else
4836 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4837 fi
4838
4839else
4840
4841 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4842 if test "x$LINE" != x ; then
4843 eval "DEFAULT_$LINE"
4844 else
4845 no_cache=1
4846 fi
4847
4848 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4849
4850fi;
4851
4852 eval "$ac_cv_use_sockets"
4853 if test "$no_cache" != 1; then
4854 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4855 fi
4856
4857 if test "$wxUSE_SOCKETS" = yes; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859echo "${ECHO_T}yes" >&6
4860 else
4861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863 fi
4864
4865
4866 enablestring=
4867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4868echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4869 no_cache=0
4870 # Check whether --enable-ole or --disable-ole was given.
4871if test "${enable_ole+set}" = set; then
4872 enableval="$enable_ole"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_ole='wxUSE_OLE=yes'
4876 else
4877 ac_cv_use_ole='wxUSE_OLE=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4890
4891fi;
4892
4893 eval "$ac_cv_use_ole"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_OLE" = yes; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900echo "${ECHO_T}yes" >&6
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904 fi
4905
4906
4907 enablestring=
4908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4909echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4910 no_cache=0
4911 # Check whether --enable-dataobj or --disable-dataobj was given.
4912if test "${enable_dataobj+set}" = set; then
4913 enableval="$enable_dataobj"
4914
4915 if test "$enableval" = yes; then
4916 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4917 else
4918 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4919 fi
4920
4921else
4922
4923 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4924 if test "x$LINE" != x ; then
4925 eval "DEFAULT_$LINE"
4926 else
4927 no_cache=1
4928 fi
4929
4930 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4931
4932fi;
4933
4934 eval "$ac_cv_use_dataobj"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_DATAOBJ" = yes; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942 else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945 fi
4946
4947
4948
4949 enablestring=
4950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4951echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4952 no_cache=0
4953 # Check whether --enable-ipc or --disable-ipc was given.
4954if test "${enable_ipc+set}" = set; then
4955 enableval="$enable_ipc"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_ipc='wxUSE_IPC=yes'
4959 else
4960 ac_cv_use_ipc='wxUSE_IPC=no'
4961 fi
4962
4963else
4964
4965 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4973
4974fi;
4975
4976 eval "$ac_cv_use_ipc"
4977 if test "$no_cache" != 1; then
4978 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4979 fi
4980
4981 if test "$wxUSE_IPC" = yes; then
4982 echo "$as_me:$LINENO: result: yes" >&5
4983echo "${ECHO_T}yes" >&6
4984 else
4985 echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987 fi
4988
4989
4990
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4993echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4996if test "${enable_apple_ieee+set}" = set; then
4997 enableval="$enable_apple_ieee"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5001 else
5002 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5015
5016fi;
5017
5018 eval "$ac_cv_use_apple_ieee"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_APPLE_IEEE" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029 fi
5030
5031
81f90336
MW
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5034echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-arcstream or --disable-arcstream was given.
5037if test "${enable_arcstream+set}" = set; then
5038 enableval="$enable_arcstream"
5039
5040 if test "$enableval" = yes; then
9e8e867f 5041 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5042 else
9e8e867f 5043 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5044 fi
5045
5046else
5047
9e8e867f 5048 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
9e8e867f 5055 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5056
5057fi;
5058
5059 eval "$ac_cv_use_arcstream"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5062 fi
5063
9e8e867f 5064 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5065 echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070 fi
5071
5072
a848cd7e 5073 enablestring=
36b6448c
VZ
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5075echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5076 no_cache=0
36b6448c
VZ
5077 # Check whether --enable-backtrace or --disable-backtrace was given.
5078if test "${enable_backtrace+set}" = set; then
5079 enableval="$enable_backtrace"
a848cd7e
SC
5080
5081 if test "$enableval" = yes; then
36b6448c 5082 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5083 else
36b6448c 5084 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5085 fi
5086
5087else
5088
36b6448c 5089 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
36b6448c 5096 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5097
5098fi;
5099
36b6448c 5100 eval "$ac_cv_use_backtrace"
a848cd7e 5101 if test "$no_cache" != 1; then
36b6448c 5102 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5103 fi
5104
36b6448c 5105 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5106 echo "$as_me:$LINENO: result: yes" >&5
5107echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111 fi
5112
5113
eaff0f0d 5114 enablestring=
36b6448c
VZ
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5116echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5117 no_cache=0
36b6448c
VZ
5118 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5119if test "${enable_catch_segvs+set}" = set; then
5120 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5121
5122 if test "$enableval" = yes; then
36b6448c 5123 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5124 else
36b6448c 5125 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5126 fi
5127
5128else
5129
36b6448c 5130 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
36b6448c 5137 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5138
5139fi;
5140
36b6448c 5141 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5142 if test "$no_cache" != 1; then
36b6448c 5143 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5144 fi
5145
36b6448c 5146 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5147 echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152 fi
5153
5154
a848cd7e
SC
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5157echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-cmdline or --disable-cmdline was given.
5160if test "${enable_cmdline+set}" = set; then
5161 enableval="$enable_cmdline"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5165 else
5166 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5179
5180fi;
5181
5182 eval "$ac_cv_use_cmdline"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5198echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-datetime or --disable-datetime was given.
5201if test "${enable_datetime+set}" = set; then
5202 enableval="$enable_datetime"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5206 else
5207 ac_cv_use_datetime='wxUSE_DATETIME=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5220
5221fi;
5222
5223 eval "$ac_cv_use_datetime"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_DATETIME" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234 fi
5235
5236
36b6448c
VZ
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5239echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-debugreport or --disable-debugreport was given.
5242if test "${enable_debugreport+set}" = set; then
5243 enableval="$enable_debugreport"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5247 else
5248 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5261
5262fi;
5263
5264 eval "$ac_cv_use_debugreport"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_DEBUGREPORT" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275 fi
5276
5277
a848cd7e
SC
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5280echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-dialupman or --disable-dialupman was given.
5283if test "${enable_dialupman+set}" = set; then
5284 enableval="$enable_dialupman"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5288 else
5289 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5290 fi
5291
5292else
5293
5294 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5302
5303fi;
5304
5305 eval "$ac_cv_use_dialupman"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5321echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-dynlib or --disable-dynlib was given.
5324if test "${enable_dynlib+set}" = set; then
5325 enableval="$enable_dynlib"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5329 else
5330 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5343
5344fi;
5345
5346 eval "$ac_cv_use_dynlib"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5362echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5365if test "${enable_dynamicloader+set}" = set; then
5366 enableval="$enable_dynamicloader"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5370 else
5371 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5372 fi
5373
5374else
5375
5376 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5384
5385fi;
5386
5387 eval "$ac_cv_use_dynamicloader"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5403echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-exceptions or --disable-exceptions was given.
5406if test "${enable_exceptions+set}" = set; then
5407 enableval="$enable_exceptions"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5411 else
5412 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5425
5426fi;
5427
5428 eval "$ac_cv_use_exceptions"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_EXCEPTIONS" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5444echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-ffile or --disable-ffile was given.
5447if test "${enable_ffile+set}" = set; then
5448 enableval="$enable_ffile"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_ffile='wxUSE_FFILE=yes'
5452 else
5453 ac_cv_use_ffile='wxUSE_FFILE=no'
5454 fi
5455
5456else
5457
5458 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5466
5467fi;
5468
5469 eval "$ac_cv_use_ffile"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_FFILE" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-file or --disable-file was given.
5488if test "${enable_file+set}" = set; then
5489 enableval="$enable_file"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_file='wxUSE_FILE=yes'
5493 else
5494 ac_cv_use_file='wxUSE_FILE=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5507
5508fi;
5509
5510 eval "$ac_cv_use_file"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_FILE" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-filesystem or --disable-filesystem was given.
5529if test "${enable_filesystem+set}" = set; then
5530 enableval="$enable_filesystem"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5534 else
5535 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5536 fi
5537
5538else
5539
5540 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5548
5549fi;
5550
5551 eval "$ac_cv_use_filesystem"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_FILESYSTEM" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-fontmap or --disable-fontmap was given.
5570if test "${enable_fontmap+set}" = set; then
5571 enableval="$enable_fontmap"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5575 else
5576 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5589
5590fi;
5591
5592 eval "$ac_cv_use_fontmap"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_FONTMAP" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603 fi
5604
5605
26e422a9
MW
5606 enablestring=
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5609 no_cache=0
5610 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5611if test "${enable_fs_archive+set}" = set; then
5612 enableval="$enable_fs_archive"
5613
5614 if test "$enableval" = yes; then
5615 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5616 else
5617 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5618 fi
5619
5620else
5621
5622 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5630
5631fi;
5632
5633 eval "$ac_cv_use_fs_archive"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_FS_ARCHIVE" = yes; then
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644 fi
5645
5646
a848cd7e
SC
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5652if test "${enable_fs_inet+set}" = set; then
5653 enableval="$enable_fs_inet"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5657 else
5658 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5671
5672fi;
5673
5674 eval "$ac_cv_use_fs_inet"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_FS_INET" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685 fi
5686
5687
5688 enablestring=
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5690echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5691 no_cache=0
5692 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5693if test "${enable_fs_zip+set}" = set; then
5694 enableval="$enable_fs_zip"
5695
5696 if test "$enableval" = yes; then
5697 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5698 else
5699 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5700 fi
5701
5702else
5703
5704 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5712
5713fi;
5714
5715 eval "$ac_cv_use_fs_zip"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_FS_ZIP" = yes; then
5721 echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5731echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-geometry or --disable-geometry was given.
5734if test "${enable_geometry+set}" = set; then
5735 enableval="$enable_geometry"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5739 else
5740 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5741 fi
5742
5743else
5744
5745 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5753
5754fi;
5755
5756 eval "$ac_cv_use_geometry"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_GEOMETRY" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767 fi
5768
5769
5770 enablestring=
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5773 no_cache=0
5774 # Check whether --enable-log or --disable-log was given.
5775if test "${enable_log+set}" = set; then
5776 enableval="$enable_log"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_log='wxUSE_LOG=yes'
5780 else
5781 ac_cv_use_log='wxUSE_LOG=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5794
5795fi;
5796
5797 eval "$ac_cv_use_log"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_LOG" = yes; then
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809
5810
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-longlong or --disable-longlong was given.
5816if test "${enable_longlong+set}" = set; then
5817 enableval="$enable_longlong"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5821 else
5822 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5835
5836fi;
5837
5838 eval "$ac_cv_use_longlong"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_LONGLONG" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849 fi
5850
5851
5852 enablestring=
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5854echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5855 no_cache=0
5856 # Check whether --enable-mimetype or --disable-mimetype was given.
5857if test "${enable_mimetype+set}" = set; then
5858 enableval="$enable_mimetype"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5862 else
5863 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5876
5877fi;
5878
5879 eval "$ac_cv_use_mimetype"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_MIMETYPE" = yes; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5895echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-mslu or --disable-mslu was given.
5898if test "${enable_mslu+set}" = set; then
5899 enableval="$enable_mslu"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5903 else
5904 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5917
5918fi;
5919
5920 eval "$ac_cv_use_mslu"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_UNICODE_MSLU" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931 fi
5932
5933
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5936echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-snglinst or --disable-snglinst was given.
5939if test "${enable_snglinst+set}" = set; then
5940 enableval="$enable_snglinst"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5944 else
5945 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5958
5959fi;
5960
5961 eval "$ac_cv_use_snglinst"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972 fi
5973
5974
5975 enablestring=
07158944
VZ
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5977echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5978 no_cache=0
07158944
VZ
5979 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5980if test "${enable_std_iostreams+set}" = set; then
5981 enableval="$enable_std_iostreams"
a848cd7e
SC
5982
5983 if test "$enableval" = yes; then
07158944 5984 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5985 else
07158944 5986 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5987 fi
5988
5989else
5990
07158944 5991 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
07158944 5998 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5999
6000fi;
6001
07158944 6002 eval "$ac_cv_use_std_iostreams"
a848cd7e 6003 if test "$no_cache" != 1; then
07158944 6004 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6005 fi
6006
07158944 6007 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6008 echo "$as_me:$LINENO: result: yes" >&5
6009echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013 fi
6014
6015
59746b65
MW
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-std_string or --disable-std_string was given.
6021if test "${enable_std_string+set}" = set; then
6022 enableval="$enable_std_string"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6026 else
6027 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6040
6041fi;
6042
6043 eval "$ac_cv_use_std_string"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_STD_STRING" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
a848cd7e 6057 enablestring=
07158944
VZ
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6059echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6060 no_cache=0
07158944
VZ
6061 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6062if test "${enable_stdpaths+set}" = set; then
6063 enableval="$enable_stdpaths"
a848cd7e
SC
6064
6065 if test "$enableval" = yes; then
07158944 6066 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6067 else
07158944 6068 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6069 fi
6070
6071else
6072
07158944 6073 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
07158944 6080 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6081
6082fi;
6083
07158944 6084 eval "$ac_cv_use_stdpaths"
a848cd7e 6085 if test "$no_cache" != 1; then
07158944 6086 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6087 fi
6088
07158944 6089 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6090 echo "$as_me:$LINENO: result: yes" >&5
6091echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095 fi
6096
6097
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6100echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6103if test "${enable_stopwatch+set}" = set; then
6104 enableval="$enable_stopwatch"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6108 else
6109 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6122
6123fi;
6124
6125 eval "$ac_cv_use_stopwatch"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_STOPWATCH" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136 fi
6137
6138
07158944
VZ
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-streams or --disable-streams was given.
6144if test "${enable_streams+set}" = set; then
6145 enableval="$enable_streams"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_streams='wxUSE_STREAMS=yes'
6149 else
6150 ac_cv_use_streams='wxUSE_STREAMS=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6163
6164fi;
6165
6166 eval "$ac_cv_use_streams"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_STREAMS" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
a848cd7e
SC
6180 enablestring=
6181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6182echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6183 no_cache=0
6184 # Check whether --enable-system_options or --disable-system_options was given.
6185if test "${enable_system_options+set}" = set; then
6186 enableval="$enable_system_options"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6190 else
6191 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6192 fi
6193
6194else
6195
6196 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6204
6205fi;
6206
6207 eval "$ac_cv_use_system_options"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214echo "${ECHO_T}yes" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218 fi
6219
6220
26e422a9
MW
6221 enablestring=
6222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6223echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6224 no_cache=0
6225 # Check whether --enable-tarstream or --disable-tarstream was given.
6226if test "${enable_tarstream+set}" = set; then
6227 enableval="$enable_tarstream"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6231 else
6232 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6233 fi
6234
6235else
6236
6237 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6245
6246fi;
6247
6248 eval "$ac_cv_use_tarstream"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_TARSTREAM" = yes; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255echo "${ECHO_T}yes" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259 fi
6260
6261
a848cd7e
SC
6262 enablestring=
6263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6264echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6265 no_cache=0
6266 # Check whether --enable-textbuf or --disable-textbuf was given.
6267if test "${enable_textbuf+set}" = set; then
6268 enableval="$enable_textbuf"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6272 else
6273 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6274 fi
6275
6276else
6277
6278 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6286
6287fi;
6288
6289 eval "$ac_cv_use_textbuf"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_TEXTBUFFER" = yes; then
6295 echo "$as_me:$LINENO: result: yes" >&5
6296echo "${ECHO_T}yes" >&6
6297 else
6298 echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300 fi
6301
6302
6303 enablestring=
6304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6305echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6306 no_cache=0
6307 # Check whether --enable-textfile or --disable-textfile was given.
6308if test "${enable_textfile+set}" = set; then
6309 enableval="$enable_textfile"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6313 else
6314 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6327
6328fi;
6329
6330 eval "$ac_cv_use_textfile"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_TEXTFILE" = yes; then
6336 echo "$as_me:$LINENO: result: yes" >&5
6337echo "${ECHO_T}yes" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341 fi
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-timer or --disable-timer was given.
6349if test "${enable_timer+set}" = set; then
6350 enableval="$enable_timer"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_timer='wxUSE_TIMER=yes'
6354 else
6355 ac_cv_use_timer='wxUSE_TIMER=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6368
6369fi;
6370
6371 eval "$ac_cv_use_timer"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_TIMER" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-unicode or --disable-unicode was given.
6390if test "${enable_unicode+set}" = set; then
6391 enableval="$enable_unicode"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6395 else
6396 ac_cv_use_unicode='wxUSE_UNICODE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6409
6410fi;
6411
6412 eval "$ac_cv_use_unicode"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_UNICODE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-sound or --disable-sound was given.
6431if test "${enable_sound+set}" = set; then
6432 enableval="$enable_sound"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_sound='wxUSE_SOUND=yes'
6436 else
6437 ac_cv_use_sound='wxUSE_SOUND=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6450
6451fi;
6452
6453 eval "$ac_cv_use_sound"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_SOUND" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
3b57de8b
RL
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6472if test "${enable_mediactrl+set}" = set; then
6473 enableval="$enable_mediactrl"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6477 else
6478 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6491
6492fi;
6493
6494 eval "$ac_cv_use_mediactrl"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MEDIACTRL" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
f10e38c4
VZ
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6513if test "${enable_gstreamer8+set}" = set; then
6514 enableval="$enable_gstreamer8"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6518 else
6519 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6532
6533fi;
6534
6535 eval "$ac_cv_use_gstreamer8"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_GSTREAMER8" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
a848cd7e 6549 enablestring=
8b6682b9
JS
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6552 no_cache=0
8b6682b9
JS
6553 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6554if test "${enable_printfposparam+set}" = set; then
6555 enableval="$enable_printfposparam"
a848cd7e
SC
6556
6557 if test "$enableval" = yes; then
8b6682b9 6558 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6559 else
8b6682b9 6560 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6561 fi
6562
6563else
6564
8b6682b9 6565 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
8b6682b9 6572 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6573
6574fi;
6575
8b6682b9 6576 eval "$ac_cv_use_printfposparam"
a848cd7e 6577 if test "$no_cache" != 1; then
8b6682b9 6578 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6579 fi
6580
8b6682b9 6581 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-zipstream or --disable-zipstream was given.
6595if test "${enable_zipstream+set}" = set; then
6596 enableval="$enable_zipstream"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6600 else
6601 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6614
6615fi;
6616
6617 eval "$ac_cv_use_zipstream"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_ZIPSTREAM" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631
6632 enablestring=
6633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6634echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6635 no_cache=0
6636 # Check whether --enable-url or --disable-url was given.
6637if test "${enable_url+set}" = set; then
6638 enableval="$enable_url"
6639
6640 if test "$enableval" = yes; then
6641 ac_cv_use_url='wxUSE_URL=yes'
6642 else
6643 ac_cv_use_url='wxUSE_URL=no'
6644 fi
6645
6646else
6647
6648 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6656
6657fi;
6658
6659 eval "$ac_cv_use_url"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_URL" = yes; then
6665 echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6
6667 else
6668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670 fi
6671
6672
ca5c6ac3
VZ
6673 enablestring=
6674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6675echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6676 no_cache=0
6677 # Check whether --enable-variant or --disable-variant was given.
6678if test "${enable_variant+set}" = set; then
6679 enableval="$enable_variant"
6680
6681 if test "$enableval" = yes; then
6682 ac_cv_use_variant='wxUSE_VARIANT=yes'
6683 else
6684 ac_cv_use_variant='wxUSE_VARIANT=no'
6685 fi
6686
6687else
6688
6689 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6697
6698fi;
6699
6700 eval "$ac_cv_use_variant"
6701 if test "$no_cache" != 1; then
6702 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6703 fi
6704
6705 if test "$wxUSE_VARIANT" = yes; then
6706 echo "$as_me:$LINENO: result: yes" >&5
6707echo "${ECHO_T}yes" >&6
6708 else
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
6711 fi
6712
6713
a848cd7e
SC
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-protocol or --disable-protocol was given.
6719if test "${enable_protocol+set}" = set; then
6720 enableval="$enable_protocol"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6724 else
6725 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6738
6739fi;
6740
6741 eval "$ac_cv_use_protocol"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_PROTOCOL" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6760if test "${enable_protocol_http+set}" = set; then
6761 enableval="$enable_protocol_http"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6765 else
6766 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6779
6780fi;
6781
6782 eval "$ac_cv_use_protocol_http"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6801if test "${enable_protocol_ftp+set}" = set; then
6802 enableval="$enable_protocol_ftp"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6806 else
6807 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6808 fi
6809
6810else
6811
6812 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6820
6821fi;
6822
6823 eval "$ac_cv_use_protocol_ftp"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837 enablestring=
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6840 no_cache=0
6841 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6842if test "${enable_protocol_file+set}" = set; then
6843 enableval="$enable_protocol_file"
6844
6845 if test "$enableval" = yes; then
6846 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6847 else
6848 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6849 fi
6850
6851else
6852
6853 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6861
6862fi;
6863
6864 eval "$ac_cv_use_protocol_file"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
6872 else
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
6875 fi
6876
6877
6878
6879
6880
6881 enablestring=
6882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6883echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6884 no_cache=0
6885 # Check whether --enable-threads or --disable-threads was given.
6886if test "${enable_threads+set}" = set; then
6887 enableval="$enable_threads"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_threads='wxUSE_THREADS=yes'
6891 else
6892 ac_cv_use_threads='wxUSE_THREADS=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6905
6906fi;
6907
6908 eval "$ac_cv_use_threads"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_THREADS" = yes; then
6914 echo "$as_me:$LINENO: result: yes" >&5
6915echo "${ECHO_T}yes" >&6
6916 else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919 fi
6920
6921
6922if test "$wxUSE_GUI" = "yes"; then
6923
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6928echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-docview or --disable-docview was given.
6931if test "${enable_docview+set}" = set; then
6932 enableval="$enable_docview"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6936 else
6937 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6950
6951fi;
6952
6953 eval "$ac_cv_use_docview"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964 fi
6965
6966
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-help or --disable-help was given.
6972if test "${enable_help+set}" = set; then
6973 enableval="$enable_help"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_help='wxUSE_HELP=yes'
6977 else
6978 ac_cv_use_help='wxUSE_HELP=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6991
6992fi;
6993
6994 eval "$ac_cv_use_help"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_HELP" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7013if test "${enable_mshtmlhelp+set}" = set; then
7014 enableval="$enable_mshtmlhelp"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7018 else
7019 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7032
7033fi;
7034
7035 eval "$ac_cv_use_mshtmlhelp"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_MS_HTML_HELP" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-html or --disable-html was given.
7054if test "${enable_html+set}" = set; then
7055 enableval="$enable_html"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_html='wxUSE_HTML=yes'
7059 else
7060 ac_cv_use_html='wxUSE_HTML=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7073
7074fi;
7075
7076 eval "$ac_cv_use_html"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_HTML" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7095if test "${enable_htmlhelp+set}" = set; then
7096 enableval="$enable_htmlhelp"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7100 else
7101 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7114
7115fi;
7116
7117 eval "$ac_cv_use_htmlhelp"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_WXHTML_HELP" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
9a8f0513
VS
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-xrc or --disable-xrc was given.
7136if test "${enable_xrc+set}" = set; then
7137 enableval="$enable_xrc"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_xrc='wxUSE_XRC=yes'
7141 else
7142 ac_cv_use_xrc='wxUSE_XRC=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7155
7156fi;
7157
7158 eval "$ac_cv_use_xrc"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_XRC" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
3f60522a
JS
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-aui or --disable-aui was given.
7177if test "${enable_aui+set}" = set; then
7178 enableval="$enable_aui"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_aui='wxUSE_AUI=yes'
7182 else
7183 ac_cv_use_aui='wxUSE_AUI=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7196
7197fi;
7198
7199 eval "$ac_cv_use_aui"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_AUI" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
a848cd7e
SC
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-constraints or --disable-constraints was given.
7218if test "${enable_constraints+set}" = set; then
7219 enableval="$enable_constraints"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7223 else
7224 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7237
7238fi;
7239
7240 eval "$ac_cv_use_constraints"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONSTRAINTS" = 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
7254 enablestring=
7255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7256echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7257 no_cache=0
7258 # Check whether --enable-printarch or --disable-printarch was given.
7259if test "${enable_printarch+set}" = set; then
7260 enableval="$enable_printarch"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7264 else
7265 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7266 fi
7267
7268else
7269
7270 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7278
7279fi;
7280
7281 eval "$ac_cv_use_printarch"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7287 echo "$as_me:$LINENO: result: yes" >&5
7288echo "${ECHO_T}yes" >&6
7289 else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292 fi
7293
7294
7295 enablestring=
7296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7297echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7298 no_cache=0
7299 # Check whether --enable-mdi or --disable-mdi was given.
7300if test "${enable_mdi+set}" = set; then
7301 enableval="$enable_mdi"
7302
7303 if test "$enableval" = yes; then
8a7b1113 7304 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7305 else
8a7b1113 7306 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7307 fi
7308
7309else
7310
8a7b1113 7311 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7312 if test "x$LINE" != x ; then
7313 eval "DEFAULT_$LINE"
7314 else
7315 no_cache=1
7316 fi
7317
8a7b1113 7318 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7319
7320fi;
7321
7322 eval "$ac_cv_use_mdi"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7325 fi
7326
8a7b1113
VZ
7327 if test "$wxUSE_MDI" = yes; then
7328 echo "$as_me:$LINENO: result: yes" >&5
7329echo "${ECHO_T}yes" >&6
7330 else
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333 fi
7334
7335
7336 enablestring=
7337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7338echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7339 no_cache=0
7340 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7341if test "${enable_mdidoc+set}" = set; then
7342 enableval="$enable_mdidoc"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7346 else
7347 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7360
7361fi;
7362
7363 eval "$ac_cv_use_mdidoc"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7366 fi
7367
a848cd7e
SC
7368 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7369 echo "$as_me:$LINENO: result: yes" >&5
7370echo "${ECHO_T}yes" >&6
7371 else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374 fi
7375
7376
7377 enablestring=
7378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7379echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7380 no_cache=0
7381 # Check whether --enable-loggui or --disable-loggui was given.
7382if test "${enable_loggui+set}" = set; then
7383 enableval="$enable_loggui"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7387 else
7388 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7401
7402fi;
7403
7404 eval "$ac_cv_use_loggui"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_LOGGUI" = yes; then
7410 echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415 fi
7416
7417
7418 enablestring=
7419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7420echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7421 no_cache=0
7422 # Check whether --enable-logwin or --disable-logwin was given.
7423if test "${enable_logwin+set}" = set; then
7424 enableval="$enable_logwin"
7425
7426 if test "$enableval" = yes; then
7427 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7428 else
7429 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7430 fi
7431
7432else
7433
7434 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7435 if test "x$LINE" != x ; then
7436 eval "DEFAULT_$LINE"
7437 else
7438 no_cache=1
7439 fi
7440
7441 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7442
7443fi;
7444
7445 eval "$ac_cv_use_logwin"
7446 if test "$no_cache" != 1; then
7447 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7448 fi
7449
7450 if test "$wxUSE_LOGWINDOW" = yes; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452echo "${ECHO_T}yes" >&6
7453 else
7454 echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6
7456 fi
7457
7458
7459 enablestring=
7460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7461echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7462 no_cache=0
7463 # Check whether --enable-logdialog or --disable-logdialog was given.
7464if test "${enable_logdialog+set}" = set; then
7465 enableval="$enable_logdialog"
7466
7467 if test "$enableval" = yes; then
7468 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7469 else
7470 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7471 fi
7472
7473else
7474
7475 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7476 if test "x$LINE" != x ; then
7477 eval "DEFAULT_$LINE"
7478 else
7479 no_cache=1
7480 fi
7481
7482 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7483
7484fi;
7485
7486 eval "$ac_cv_use_logdialog"
7487 if test "$no_cache" != 1; then
7488 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7489 fi
7490
7491 if test "$wxUSE_LOGDIALOG" = yes; then
7492 echo "$as_me:$LINENO: result: yes" >&5
7493echo "${ECHO_T}yes" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497 fi
7498
7499
646b6ec1
VS
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-webkit or --disable-webkit was given.
7505if test "${enable_webkit+set}" = set; then
7506 enableval="$enable_webkit"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7510 else
7511 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7524
7525fi;
7526
7527 eval "$ac_cv_use_webkit"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_WEBKIT" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
91dea314
MW
7541 enablestring=
7542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7543echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7544 no_cache=0
7545 # Check whether --enable-html or --disable-html was given.
7546if test "${enable_html+set}" = set; then
7547 enableval="$enable_html"
7548
7549 if test "$enableval" = yes; then
7550 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7551 else
7552 ac_cv_use_html='wxUSE_RICHTEXT=no'
7553 fi
7554
7555else
7556
7557 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7558 if test "x$LINE" != x ; then
7559 eval "DEFAULT_$LINE"
7560 else
7561 no_cache=1
7562 fi
7563
7564 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7565
7566fi;
7567
7568 eval "$ac_cv_use_html"
7569 if test "$no_cache" != 1; then
7570 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7571 fi
7572
7573 if test "$wxUSE_RICHTEXT" = yes; then
7574 echo "$as_me:$LINENO: result: yes" >&5
7575echo "${ECHO_T}yes" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
7579 fi
7580
7581
f43426c1
RD
7582 enablestring=
7583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7584echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7585 no_cache=0
7586 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7587if test "${enable_graphics_ctx+set}" = set; then
7588 enableval="$enable_graphics_ctx"
7589
7590 if test "$enableval" = yes; then
7591 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7592 else
7593 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7594 fi
7595
7596else
7597
7598 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7599 if test "x$LINE" != x ; then
7600 eval "DEFAULT_$LINE"
7601 else
7602 no_cache=1
7603 fi
7604
7605 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7606
7607fi;
7608
7609 eval "$ac_cv_use_graphics_ctx"
7610 if test "$no_cache" != 1; then
7611 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7612 fi
7613
7614 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7615 echo "$as_me:$LINENO: result: yes" >&5
7616echo "${ECHO_T}yes" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620 fi
7621
7622
a848cd7e
SC
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-postscript or --disable-postscript was given.
7629if test "${enable_postscript+set}" = set; then
7630 enableval="$enable_postscript"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7634 else
7635 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7648
7649fi;
7650
7651 eval "$ac_cv_use_postscript"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_POSTSCRIPT" = 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
7665
7666
7667
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-prologio or --disable-prologio was given.
7673if test "${enable_prologio+set}" = set; then
7674 enableval="$enable_prologio"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7678 else
7679 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7692
7693fi;
7694
7695 eval "$ac_cv_use_prologio"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_PROLOGIO" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-resources or --disable-resources was given.
7714if test "${enable_resources+set}" = set; then
7715 enableval="$enable_resources"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7719 else
7720 ac_cv_use_resources='wxUSE_RESOURCES=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7733
7734fi;
7735
7736 eval "$ac_cv_use_resources"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_RESOURCES" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-clipboard or --disable-clipboard was given.
7757if test "${enable_clipboard+set}" = set; then
7758 enableval="$enable_clipboard"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7762 else
7763 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7776
7777fi;
7778
7779 eval "$ac_cv_use_clipboard"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_CLIPBOARD" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-dnd or --disable-dnd was given.
7798if test "${enable_dnd+set}" = set; then
7799 enableval="$enable_dnd"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7803 else
7804 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7817
7818fi;
7819
7820 eval "$ac_cv_use_dnd"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-metafile or --disable-metafile was given.
7839if test "${enable_metafile+set}" = set; then
7840 enableval="$enable_metafile"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7844 else
7845 ac_cv_use_metafile='wxUSE_METAFILE=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7858
7859fi;
7860
7861 eval "$ac_cv_use_metafile"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_METAFILE" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875
7876
7877
7878 enablestring=
7879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7880echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7881 no_cache=0
7882 # Check whether --enable-controls or --disable-controls was given.
7883if test "${enable_controls+set}" = set; then
7884 enableval="$enable_controls"
7885
7886 if test "$enableval" = yes; then
7887 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7888 else
7889 ac_cv_use_controls='wxUSE_CONTROLS=no'
7890 fi
7891
7892else
7893
7894 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7895 if test "x$LINE" != x ; then
7896 eval "DEFAULT_$LINE"
7897 else
7898 no_cache=1
7899 fi
7900
7901 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7902
7903fi;
7904
7905 eval "$ac_cv_use_controls"
7906 if test "$no_cache" != 1; then
7907 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7908 fi
7909
7910 if test "$wxUSE_CONTROLS" = yes; then
7911 echo "$as_me:$LINENO: result: yes" >&5
7912echo "${ECHO_T}yes" >&6
7913 else
7914 echo "$as_me:$LINENO: result: no" >&5
7915echo "${ECHO_T}no" >&6
7916 fi
7917
7918
7919if test "$wxUSE_CONTROLS" = "yes"; then
7920 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7921 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7922 DEFAULT_wxUSE_BMPBUTTON=yes
7923 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7924 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7925 DEFAULT_wxUSE_CARET=yes
7926 DEFAULT_wxUSE_COMBOBOX=yes
7927 DEFAULT_wxUSE_CHECKBOX=yes
7928 DEFAULT_wxUSE_CHECKLISTBOX=yes
7929 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7930 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7931 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7932 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7933 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7934 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7935 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7936 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7937 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7938 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7939 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7940 DEFAULT_wxUSE_GAUGE=yes
7941 DEFAULT_wxUSE_GRID=yes
6954625c 7942 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7943 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7944 DEFAULT_wxUSE_IMAGLIST=yes
7945 DEFAULT_wxUSE_LISTBOOK=yes
7946 DEFAULT_wxUSE_LISTBOX=yes
7947 DEFAULT_wxUSE_LISTCTRL=yes
7948 DEFAULT_wxUSE_NOTEBOOK=yes
7949 DEFAULT_wxUSE_RADIOBOX=yes
7950 DEFAULT_wxUSE_RADIOBTN=yes
7951 DEFAULT_wxUSE_SASH=yes
7952 DEFAULT_wxUSE_SCROLLBAR=yes
7953 DEFAULT_wxUSE_SLIDER=yes
7954 DEFAULT_wxUSE_SPINBTN=yes
7955 DEFAULT_wxUSE_SPINCTRL=yes
7956 DEFAULT_wxUSE_SPLITTER=yes
7957 DEFAULT_wxUSE_STATBMP=yes
7958 DEFAULT_wxUSE_STATBOX=yes
7959 DEFAULT_wxUSE_STATLINE=yes
7960 DEFAULT_wxUSE_STATUSBAR=yes
7961 DEFAULT_wxUSE_TAB_DIALOG=yes
7962 DEFAULT_wxUSE_TOGGLEBTN=yes
7963 DEFAULT_wxUSE_TOOLBAR=yes
7964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7965 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7966 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7967 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7968 DEFAULT_wxUSE_TREECTRL=yes
7969 DEFAULT_wxUSE_POPUPWIN=yes
7970 DEFAULT_wxUSE_TIPWINDOW=yes
7971elif test "$wxUSE_CONTROLS" = "no"; then
7972 DEFAULT_wxUSE_ACCEL=no
3ea50042 7973 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7974 DEFAULT_wxUSE_BMPBUTTON=no
7975 DEFAULT_wxUSE_BUTTON=no
7976 DEFAULT_wxUSE_CALCTRL=no
7977 DEFAULT_wxUSE_CARET=no
bd915ace 7978 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
7979 DEFAULT_wxUSE_COMBOBOX=no
7980 DEFAULT_wxUSE_CHECKBOX=no
7981 DEFAULT_wxUSE_CHECKLISTBOX=no
7982 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7983 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7984 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7985 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7986 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7987 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7988 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7989 DEFAULT_wxUSE_DIRPICKERCTRL=no
7990 DEFAULT_wxUSE_FILEPICKERCTRL=no
7991 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7992 DEFAULT_wxUSE_GAUGE=no
7993 DEFAULT_wxUSE_GRID=no
6954625c 7994 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7995 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7996 DEFAULT_wxUSE_IMAGLIST=no
7997 DEFAULT_wxUSE_LISTBOOK=no
7998 DEFAULT_wxUSE_LISTBOX=no
7999 DEFAULT_wxUSE_LISTCTRL=no
8000 DEFAULT_wxUSE_NOTEBOOK=no
8001 DEFAULT_wxUSE_RADIOBOX=no
8002 DEFAULT_wxUSE_RADIOBTN=no
8003 DEFAULT_wxUSE_SASH=no
8004 DEFAULT_wxUSE_SCROLLBAR=no
8005 DEFAULT_wxUSE_SLIDER=no
8006 DEFAULT_wxUSE_SPINBTN=no
8007 DEFAULT_wxUSE_SPINCTRL=no
8008 DEFAULT_wxUSE_SPLITTER=no
8009 DEFAULT_wxUSE_STATBMP=no
8010 DEFAULT_wxUSE_STATBOX=no
8011 DEFAULT_wxUSE_STATLINE=no
8012 DEFAULT_wxUSE_STATUSBAR=no
8013 DEFAULT_wxUSE_TAB_DIALOG=no
8014 DEFAULT_wxUSE_TOGGLEBTN=no
8015 DEFAULT_wxUSE_TOOLBAR=no
8016 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8017 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8018 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8019 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8020 DEFAULT_wxUSE_TREECTRL=no
8021 DEFAULT_wxUSE_POPUPWIN=no
8022 DEFAULT_wxUSE_TIPWINDOW=no
8023fi
8024
a848cd7e
SC
8025
8026 enablestring=
8027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8028echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8029 no_cache=0
8030 # Check whether --enable-accel or --disable-accel was given.
8031if test "${enable_accel+set}" = set; then
8032 enableval="$enable_accel"
8033
8034 if test "$enableval" = yes; then
8035 ac_cv_use_accel='wxUSE_ACCEL=yes'
8036 else
8037 ac_cv_use_accel='wxUSE_ACCEL=no'
8038 fi
8039
8040else
8041
8042 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8043 if test "x$LINE" != x ; then
8044 eval "DEFAULT_$LINE"
8045 else
8046 no_cache=1
8047 fi
8048
8049 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8050
8051fi;
8052
8053 eval "$ac_cv_use_accel"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_ACCEL" = yes; then
8059 echo "$as_me:$LINENO: result: yes" >&5
8060echo "${ECHO_T}yes" >&6
8061 else
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
8064 fi
8065
8066
3ea50042
VZ
8067 enablestring=
8068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8069echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8070 no_cache=0
8071 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8072if test "${enable_animatectrl+set}" = set; then
8073 enableval="$enable_animatectrl"
8074
8075 if test "$enableval" = yes; then
8076 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8077 else
8078 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8079 fi
8080
8081else
8082
8083 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8091
8092fi;
8093
8094 eval "$ac_cv_use_animatectrl"
8095 if test "$no_cache" != 1; then
8096 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8097 fi
8098
8099 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8100 echo "$as_me:$LINENO: result: yes" >&5
8101echo "${ECHO_T}yes" >&6
8102 else
8103 echo "$as_me:$LINENO: result: no" >&5
8104echo "${ECHO_T}no" >&6
8105 fi
8106
8107
a848cd7e
SC
8108 enablestring=
8109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8110echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8111 no_cache=0
8112 # Check whether --enable-button or --disable-button was given.
8113if test "${enable_button+set}" = set; then
8114 enableval="$enable_button"
8115
8116 if test "$enableval" = yes; then
8117 ac_cv_use_button='wxUSE_BUTTON=yes'
8118 else
8119 ac_cv_use_button='wxUSE_BUTTON=no'
8120 fi
8121
8122else
8123
8124 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8125 if test "x$LINE" != x ; then
8126 eval "DEFAULT_$LINE"
8127 else
8128 no_cache=1
8129 fi
8130
8131 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8132
8133fi;
8134
8135 eval "$ac_cv_use_button"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_BUTTON" = yes; then
8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
8143 else
8144 echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146 fi
8147
8148
8149 enablestring=
8150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8151echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8152 no_cache=0
8153 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8154if test "${enable_bmpbutton+set}" = set; then
8155 enableval="$enable_bmpbutton"
8156
8157 if test "$enableval" = yes; then
8158 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8159 else
8160 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8161 fi
8162
8163else
8164
8165 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8166 if test "x$LINE" != x ; then
8167 eval "DEFAULT_$LINE"
8168 else
8169 no_cache=1
8170 fi
8171
8172 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8173
8174fi;
8175
8176 eval "$ac_cv_use_bmpbutton"
8177 if test "$no_cache" != 1; then
8178 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8179 fi
8180
8181 if test "$wxUSE_BMPBUTTON" = yes; then
8182 echo "$as_me:$LINENO: result: yes" >&5
8183echo "${ECHO_T}yes" >&6
8184 else
8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
8187 fi
8188
8189
95a46303
RR
8190 enablestring=
8191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8192echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8193 no_cache=0
8194 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8195if test "${enable_bmpcombobox+set}" = set; then
8196 enableval="$enable_bmpcombobox"
8197
8198 if test "$enableval" = yes; then
8199 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8200 else
8201 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8202 fi
8203
8204else
8205
8206 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8207 if test "x$LINE" != x ; then
8208 eval "DEFAULT_$LINE"
8209 else
8210 no_cache=1
8211 fi
8212
8213 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8214
8215fi;
8216
8217 eval "$ac_cv_use_bmpcombobox"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8223 echo "$as_me:$LINENO: result: yes" >&5
8224echo "${ECHO_T}yes" >&6
8225 else
8226 echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6
8228 fi
8229
8230
a848cd7e
SC
8231 enablestring=
8232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8233echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8234 no_cache=0
8235 # Check whether --enable-calendar or --disable-calendar was given.
8236if test "${enable_calendar+set}" = set; then
8237 enableval="$enable_calendar"
8238
8239 if test "$enableval" = yes; then
8240 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8241 else
8242 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8243 fi
8244
8245else
8246
8247 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8248 if test "x$LINE" != x ; then
8249 eval "DEFAULT_$LINE"
8250 else
8251 no_cache=1
8252 fi
8253
8254 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8255
8256fi;
8257
8258 eval "$ac_cv_use_calendar"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_CALCTRL" = yes; then
8264 echo "$as_me:$LINENO: result: yes" >&5
8265echo "${ECHO_T}yes" >&6
8266 else
8267 echo "$as_me:$LINENO: result: no" >&5
8268echo "${ECHO_T}no" >&6
8269 fi
8270
8271
8272 enablestring=
8273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8274echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8275 no_cache=0
8276 # Check whether --enable-caret or --disable-caret was given.
8277if test "${enable_caret+set}" = set; then
8278 enableval="$enable_caret"
8279
8280 if test "$enableval" = yes; then
8281 ac_cv_use_caret='wxUSE_CARET=yes'
8282 else
8283 ac_cv_use_caret='wxUSE_CARET=no'
8284 fi
8285
8286else
8287
8288 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8289 if test "x$LINE" != x ; then
8290 eval "DEFAULT_$LINE"
8291 else
8292 no_cache=1
8293 fi
8294
8295 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8296
8297fi;
8298
8299 eval "$ac_cv_use_caret"
8300 if test "$no_cache" != 1; then
8301 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8302 fi
8303
8304 if test "$wxUSE_CARET" = yes; then
8305 echo "$as_me:$LINENO: result: yes" >&5
8306echo "${ECHO_T}yes" >&6
8307 else
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
8310 fi
8311
8312
8313 enablestring=
8314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8315echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8316 no_cache=0
8317 # Check whether --enable-checkbox or --disable-checkbox was given.
8318if test "${enable_checkbox+set}" = set; then
8319 enableval="$enable_checkbox"
8320
8321 if test "$enableval" = yes; then
8322 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8323 else
8324 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8325 fi
8326
8327else
8328
8329 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8330 if test "x$LINE" != x ; then
8331 eval "DEFAULT_$LINE"
8332 else
8333 no_cache=1
8334 fi
8335
8336 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8337
8338fi;
8339
8340 eval "$ac_cv_use_checkbox"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_CHECKBOX" = yes; then
8346 echo "$as_me:$LINENO: result: yes" >&5
8347echo "${ECHO_T}yes" >&6
8348 else
8349 echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6
8351 fi
8352
8353
8354 enablestring=
8355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8356echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8357 no_cache=0
8358 # Check whether --enable-checklst or --disable-checklst was given.
8359if test "${enable_checklst+set}" = set; then
8360 enableval="$enable_checklst"
8361
8362 if test "$enableval" = yes; then
8363 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8364 else
8365 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8366 fi
8367
8368else
8369
8370 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8371 if test "x$LINE" != x ; then
8372 eval "DEFAULT_$LINE"
8373 else
8374 no_cache=1
8375 fi
8376
8377 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8378
8379fi;
8380
8381 eval "$ac_cv_use_checklst"
8382 if test "$no_cache" != 1; then
8383 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8384 fi
8385
8386 if test "$wxUSE_CHECKLST" = yes; then
8387 echo "$as_me:$LINENO: result: yes" >&5
8388echo "${ECHO_T}yes" >&6
8389 else
8390 echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6
8392 fi
8393
8394
8395 enablestring=
8396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8397echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8398 no_cache=0
8399 # Check whether --enable-choice or --disable-choice was given.
8400if test "${enable_choice+set}" = set; then
8401 enableval="$enable_choice"
8402
8403 if test "$enableval" = yes; then
8404 ac_cv_use_choice='wxUSE_CHOICE=yes'
8405 else
8406 ac_cv_use_choice='wxUSE_CHOICE=no'
8407 fi
8408
8409else
8410
8411 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8412 if test "x$LINE" != x ; then
8413 eval "DEFAULT_$LINE"
8414 else
8415 no_cache=1
8416 fi
8417
8418 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8419
8420fi;
8421
8422 eval "$ac_cv_use_choice"
8423 if test "$no_cache" != 1; then
8424 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8425 fi
8426
8427 if test "$wxUSE_CHOICE" = yes; then
8428 echo "$as_me:$LINENO: result: yes" >&5
8429echo "${ECHO_T}yes" >&6
8430 else
8431 echo "$as_me:$LINENO: result: no" >&5
8432echo "${ECHO_T}no" >&6
8433 fi
8434
8435
92bbdbcd
WS
8436 enablestring=
8437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8438echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8439 no_cache=0
8440 # Check whether --enable-choicebook or --disable-choicebook was given.
8441if test "${enable_choicebook+set}" = set; then
8442 enableval="$enable_choicebook"
8443
8444 if test "$enableval" = yes; then
8445 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8446 else
8447 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8448 fi
8449
8450else
8451
8452 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8453 if test "x$LINE" != x ; then
8454 eval "DEFAULT_$LINE"
8455 else
8456 no_cache=1
8457 fi
8458
8459 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8460
8461fi;
8462
8463 eval "$ac_cv_use_choicebook"
8464 if test "$no_cache" != 1; then
8465 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8466 fi
8467
8468 if test "$wxUSE_CHOICEBOOK" = yes; then
8469 echo "$as_me:$LINENO: result: yes" >&5
8470echo "${ECHO_T}yes" >&6
8471 else
8472 echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6
8474 fi
8475
8476
bd915ace
RR
8477 enablestring=
8478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8479echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8480 no_cache=0
8481 # Check whether --enable-collpane or --disable-collpane was given.
8482if test "${enable_collpane+set}" = set; then
8483 enableval="$enable_collpane"
8484
8485 if test "$enableval" = yes; then
8486 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8487 else
8488 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8489 fi
8490
8491else
8492
8493 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8494 if test "x$LINE" != x ; then
8495 eval "DEFAULT_$LINE"
8496 else
8497 no_cache=1
8498 fi
8499
8500 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8501
8502fi;
8503
8504 eval "$ac_cv_use_collpane"
8505 if test "$no_cache" != 1; then
8506 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8507 fi
8508
8509 if test "$wxUSE_COLLPANE" = yes; then
8510 echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
8512 else
8513 echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6
8515 fi
8516
8517
e9263684
VZ
8518 enablestring=
8519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8520echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8521 no_cache=0
8522 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8523if test "${enable_colourpicker+set}" = set; then
8524 enableval="$enable_colourpicker"
8525
8526 if test "$enableval" = yes; then
8527 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8528 else
8529 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8530 fi
8531
8532else
8533
8534 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8535 if test "x$LINE" != x ; then
8536 eval "DEFAULT_$LINE"
8537 else
8538 no_cache=1
8539 fi
8540
8541 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8542
8543fi;
8544
8545 eval "$ac_cv_use_colourpicker"
8546 if test "$no_cache" != 1; then
8547 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8548 fi
8549
8550 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8551 echo "$as_me:$LINENO: result: yes" >&5
8552echo "${ECHO_T}yes" >&6
8553 else
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
8556 fi
8557
8558
a848cd7e
SC
8559 enablestring=
8560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8561echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8562 no_cache=0
8563 # Check whether --enable-combobox or --disable-combobox was given.
8564if test "${enable_combobox+set}" = set; then
8565 enableval="$enable_combobox"
8566
8567 if test "$enableval" = yes; then
8568 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8569 else
8570 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8571 fi
8572
8573else
8574
8575 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8576 if test "x$LINE" != x ; then
8577 eval "DEFAULT_$LINE"
8578 else
8579 no_cache=1
8580 fi
8581
8582 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8583
8584fi;
8585
8586 eval "$ac_cv_use_combobox"
8587 if test "$no_cache" != 1; then
8588 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8589 fi
8590
8591 if test "$wxUSE_COMBOBOX" = yes; then
8592 echo "$as_me:$LINENO: result: yes" >&5
8593echo "${ECHO_T}yes" >&6
8594 else
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
8597 fi
8598
8599
642bcba9 8600 enablestring=
a57d600f
VZ
8601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8602echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8603 no_cache=0
a57d600f
VZ
8604 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8605if test "${enable_comboctrl+set}" = set; then
8606 enableval="$enable_comboctrl"
642bcba9
VZ
8607
8608 if test "$enableval" = yes; then
a57d600f 8609 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8610 else
a57d600f 8611 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8612 fi
8613
8614else
8615
a57d600f 8616 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8617 if test "x$LINE" != x ; then
8618 eval "DEFAULT_$LINE"
8619 else
8620 no_cache=1
8621 fi
8622
a57d600f 8623 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8624
8625fi;
8626
a57d600f 8627 eval "$ac_cv_use_comboctrl"
642bcba9 8628 if test "$no_cache" != 1; then
a57d600f 8629 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8630 fi
8631
a57d600f 8632 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8633 echo "$as_me:$LINENO: result: yes" >&5
8634echo "${ECHO_T}yes" >&6
8635 else
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
8638 fi
8639
8640
da98e9be
VZ
8641 enablestring=
8642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8643echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8644 no_cache=0
8645 # Check whether --enable-datepick or --disable-datepick was given.
8646if test "${enable_datepick+set}" = set; then
8647 enableval="$enable_datepick"
8648
8649 if test "$enableval" = yes; then
8650 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8651 else
8652 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8653 fi
8654
8655else
8656
8657 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8658 if test "x$LINE" != x ; then
8659 eval "DEFAULT_$LINE"
8660 else
8661 no_cache=1
8662 fi
8663
8664 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8665
8666fi;
8667
8668 eval "$ac_cv_use_datepick"
8669 if test "$no_cache" != 1; then
8670 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8671 fi
8672
8673 if test "$wxUSE_DATEPICKCTRL" = yes; then
8674 echo "$as_me:$LINENO: result: yes" >&5
8675echo "${ECHO_T}yes" >&6
8676 else
8677 echo "$as_me:$LINENO: result: no" >&5
8678echo "${ECHO_T}no" >&6
8679 fi
8680
8681
e9263684
VZ
8682 enablestring=
8683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8684echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8685 no_cache=0
8686 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8687if test "${enable_dirpicker+set}" = set; then
8688 enableval="$enable_dirpicker"
8689
8690 if test "$enableval" = yes; then
8691 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8692 else
8693 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8694 fi
8695
8696else
8697
8698 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8699 if test "x$LINE" != x ; then
8700 eval "DEFAULT_$LINE"
8701 else
8702 no_cache=1
8703 fi
8704
8705 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8706
8707fi;
8708
8709 eval "$ac_cv_use_dirpicker"
8710 if test "$no_cache" != 1; then
8711 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8712 fi
8713
8714 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8715 echo "$as_me:$LINENO: result: yes" >&5
8716echo "${ECHO_T}yes" >&6
8717 else
8718 echo "$as_me:$LINENO: result: no" >&5
8719echo "${ECHO_T}no" >&6
8720 fi
8721
8722
a848cd7e
SC
8723 enablestring=
8724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8725echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8726 no_cache=0
8727 # Check whether --enable-display or --disable-display was given.
8728if test "${enable_display+set}" = set; then
8729 enableval="$enable_display"
8730
8731 if test "$enableval" = yes; then
8732 ac_cv_use_display='wxUSE_DISPLAY=yes'
8733 else
8734 ac_cv_use_display='wxUSE_DISPLAY=no'
8735 fi
8736
8737else
8738
8739 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8740 if test "x$LINE" != x ; then
8741 eval "DEFAULT_$LINE"
8742 else
8743 no_cache=1
8744 fi
8745
8746 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8747
8748fi;
8749
8750 eval "$ac_cv_use_display"
8751 if test "$no_cache" != 1; then
8752 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8753 fi
8754
8755 if test "$wxUSE_DISPLAY" = yes; then
8756 echo "$as_me:$LINENO: result: yes" >&5
8757echo "${ECHO_T}yes" >&6
8758 else
8759 echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
8761 fi
8762
8763
88bbc332
RR
8764 enablestring=
8765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8766echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8767 no_cache=0
8768 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8769if test "${enable_detect_sm+set}" = set; then
8770 enableval="$enable_detect_sm"
8771
8772 if test "$enableval" = yes; then
8773 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8774 else
8775 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8776 fi
8777
8778else
8779
8780 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8781 if test "x$LINE" != x ; then
8782 eval "DEFAULT_$LINE"
8783 else
8784 no_cache=1
8785 fi
8786
8787 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8788
8789fi;
8790
8791 eval "$ac_cv_use_detect_sm"
8792 if test "$no_cache" != 1; then
8793 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8794 fi
8795
8796 if test "$wxUSE_DETECT_SM" = yes; then
8797 echo "$as_me:$LINENO: result: yes" >&5
8798echo "${ECHO_T}yes" >&6
8799 else
8800 echo "$as_me:$LINENO: result: no" >&5
8801echo "${ECHO_T}no" >&6
8802 fi
8803
8804
e9263684
VZ
8805 enablestring=
8806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8807echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8808 no_cache=0
8809 # Check whether --enable-filepicker or --disable-filepicker was given.
8810if test "${enable_filepicker+set}" = set; then
8811 enableval="$enable_filepicker"
8812
8813 if test "$enableval" = yes; then
8814 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8815 else
8816 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8817 fi
8818
8819else
8820
8821 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8822 if test "x$LINE" != x ; then
8823 eval "DEFAULT_$LINE"
8824 else
8825 no_cache=1
8826 fi
8827
8828 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8829
8830fi;
8831
8832 eval "$ac_cv_use_filepicker"
8833 if test "$no_cache" != 1; then
8834 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8835 fi
8836
8837 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8838 echo "$as_me:$LINENO: result: yes" >&5
8839echo "${ECHO_T}yes" >&6
8840 else
8841 echo "$as_me:$LINENO: result: no" >&5
8842echo "${ECHO_T}no" >&6
8843 fi
8844
8845
8846 enablestring=
8847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8848echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8849 no_cache=0
8850 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8851if test "${enable_fontpicker+set}" = set; then
8852 enableval="$enable_fontpicker"
8853
8854 if test "$enableval" = yes; then
8855 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8856 else
8857 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8858 fi
8859
8860else
8861
8862 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8863 if test "x$LINE" != x ; then
8864 eval "DEFAULT_$LINE"
8865 else
8866 no_cache=1
8867 fi
8868
8869 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8870
8871fi;
8872
8873 eval "$ac_cv_use_fontpicker"
8874 if test "$no_cache" != 1; then
8875 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8876 fi
8877
8878 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8879 echo "$as_me:$LINENO: result: yes" >&5
8880echo "${ECHO_T}yes" >&6
8881 else
8882 echo "$as_me:$LINENO: result: no" >&5
8883echo "${ECHO_T}no" >&6
8884 fi
8885
8886
a848cd7e
SC
8887 enablestring=
8888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8889echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8890 no_cache=0
8891 # Check whether --enable-gauge or --disable-gauge was given.
8892if test "${enable_gauge+set}" = set; then
8893 enableval="$enable_gauge"
8894
8895 if test "$enableval" = yes; then
8896 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8897 else
8898 ac_cv_use_gauge='wxUSE_GAUGE=no'
8899 fi
8900
8901else
8902
8903 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8904 if test "x$LINE" != x ; then
8905 eval "DEFAULT_$LINE"
8906 else
8907 no_cache=1
8908 fi
8909
8910 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8911
8912fi;
8913
8914 eval "$ac_cv_use_gauge"
8915 if test "$no_cache" != 1; then
8916 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8917 fi
8918
8919 if test "$wxUSE_GAUGE" = yes; then
8920 echo "$as_me:$LINENO: result: yes" >&5
8921echo "${ECHO_T}yes" >&6
8922 else
8923 echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
8925 fi
8926
8927
8928 enablestring=
8929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8930echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8931 no_cache=0
8932 # Check whether --enable-grid or --disable-grid was given.
8933if test "${enable_grid+set}" = set; then
8934 enableval="$enable_grid"
8935
8936 if test "$enableval" = yes; then
8937 ac_cv_use_grid='wxUSE_GRID=yes'
8938 else
8939 ac_cv_use_grid='wxUSE_GRID=no'
8940 fi
8941
8942else
8943
8944 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8945 if test "x$LINE" != x ; then
8946 eval "DEFAULT_$LINE"
8947 else
8948 no_cache=1
8949 fi
8950
8951 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8952
8953fi;
8954
8955 eval "$ac_cv_use_grid"
8956 if test "$no_cache" != 1; then
8957 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8958 fi
8959
8960 if test "$wxUSE_GRID" = yes; then
8961 echo "$as_me:$LINENO: result: yes" >&5
8962echo "${ECHO_T}yes" >&6
8963 else
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
8966 fi
8967
8968
20e34ecc
RR
8969 enablestring=
8970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8971echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8972 no_cache=0
8973 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8974if test "${enable_dataviewctrl+set}" = set; then
8975 enableval="$enable_dataviewctrl"
8976
8977 if test "$enableval" = yes; then
8978 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8979 else
8980 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8981 fi
8982
8983else
8984
8985 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8986 if test "x$LINE" != x ; then
8987 eval "DEFAULT_$LINE"
8988 else
8989 no_cache=1
8990 fi
8991
8992 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8993
8994fi;
8995
8996 eval "$ac_cv_use_dataviewctrl"
8997 if test "$no_cache" != 1; then
8998 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8999 fi
9000
9001 if test "$wxUSE_DATAVIEWCTRL" = yes; then
9002 echo "$as_me:$LINENO: result: yes" >&5
9003echo "${ECHO_T}yes" >&6
9004 else
9005 echo "$as_me:$LINENO: result: no" >&5
9006echo "${ECHO_T}no" >&6
9007 fi
9008
9009
6954625c
VZ
9010 enablestring=
9011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9012echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9013 no_cache=0
9014 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9015if test "${enable_hyperlink+set}" = set; then
9016 enableval="$enable_hyperlink"
9017
9018 if test "$enableval" = yes; then
9019 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9020 else
9021 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9022 fi
9023
9024else
9025
9026 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9027 if test "x$LINE" != x ; then
9028 eval "DEFAULT_$LINE"
9029 else
9030 no_cache=1
9031 fi
9032
9033 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9034
9035fi;
9036
9037 eval "$ac_cv_use_hyperlink"
9038 if test "$no_cache" != 1; then
9039 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9040 fi
9041
9042 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9043 echo "$as_me:$LINENO: result: yes" >&5
9044echo "${ECHO_T}yes" >&6
9045 else
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
9048 fi
9049
9050
a848cd7e
SC
9051 enablestring=
9052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9053echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9054 no_cache=0
9055 # Check whether --enable-imaglist or --disable-imaglist was given.
9056if test "${enable_imaglist+set}" = set; then
9057 enableval="$enable_imaglist"
9058
9059 if test "$enableval" = yes; then
9060 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9061 else
9062 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9063 fi
9064
9065else
9066
9067 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9068 if test "x$LINE" != x ; then
9069 eval "DEFAULT_$LINE"
9070 else
9071 no_cache=1
9072 fi
9073
9074 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9075
9076fi;
9077
9078 eval "$ac_cv_use_imaglist"
9079 if test "$no_cache" != 1; then
9080 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9081 fi
9082
9083 if test "$wxUSE_IMAGLIST" = yes; then
9084 echo "$as_me:$LINENO: result: yes" >&5
9085echo "${ECHO_T}yes" >&6
9086 else
9087 echo "$as_me:$LINENO: result: no" >&5
9088echo "${ECHO_T}no" >&6
9089 fi
9090
9091
9092 enablestring=
9093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9094echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9095 no_cache=0
9096 # Check whether --enable-listbook or --disable-listbook was given.
9097if test "${enable_listbook+set}" = set; then
9098 enableval="$enable_listbook"
9099
9100 if test "$enableval" = yes; then
9101 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9102 else
9103 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9104 fi
9105
9106else
9107
9108 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9109 if test "x$LINE" != x ; then
9110 eval "DEFAULT_$LINE"
9111 else
9112 no_cache=1
9113 fi
9114
9115 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9116
9117fi;
9118
9119 eval "$ac_cv_use_listbook"
9120 if test "$no_cache" != 1; then
9121 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9122 fi
9123
9124 if test "$wxUSE_LISTBOOK" = yes; then
9125 echo "$as_me:$LINENO: result: yes" >&5
9126echo "${ECHO_T}yes" >&6
9127 else
9128 echo "$as_me:$LINENO: result: no" >&5
9129echo "${ECHO_T}no" >&6
9130 fi
9131
9132
9133 enablestring=
9134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9135echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9136 no_cache=0
9137 # Check whether --enable-listbox or --disable-listbox was given.
9138if test "${enable_listbox+set}" = set; then
9139 enableval="$enable_listbox"
9140
9141 if test "$enableval" = yes; then
9142 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9143 else
9144 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9145 fi
9146
9147else
9148
9149 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9150 if test "x$LINE" != x ; then
9151 eval "DEFAULT_$LINE"
9152 else
9153 no_cache=1
9154 fi
9155
9156 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9157
9158fi;
9159
9160 eval "$ac_cv_use_listbox"
9161 if test "$no_cache" != 1; then
9162 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9163 fi
9164
9165 if test "$wxUSE_LISTBOX" = yes; then
9166 echo "$as_me:$LINENO: result: yes" >&5
9167echo "${ECHO_T}yes" >&6
9168 else
9169 echo "$as_me:$LINENO: result: no" >&5
9170echo "${ECHO_T}no" >&6
9171 fi
9172
9173
9174 enablestring=
9175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9176echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9177 no_cache=0
9178 # Check whether --enable-listctrl or --disable-listctrl was given.
9179if test "${enable_listctrl+set}" = set; then
9180 enableval="$enable_listctrl"
9181
9182 if test "$enableval" = yes; then
9183 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9184 else
9185 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9186 fi
9187
9188else
9189
9190 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9191 if test "x$LINE" != x ; then
9192 eval "DEFAULT_$LINE"
9193 else
9194 no_cache=1
9195 fi
9196
9197 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9198
9199fi;
9200
9201 eval "$ac_cv_use_listctrl"
9202 if test "$no_cache" != 1; then
9203 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9204 fi
9205
9206 if test "$wxUSE_LISTCTRL" = yes; then
9207 echo "$as_me:$LINENO: result: yes" >&5
9208echo "${ECHO_T}yes" >&6
9209 else
9210 echo "$as_me:$LINENO: result: no" >&5
9211echo "${ECHO_T}no" >&6
9212 fi
9213
9214
9215 enablestring=
9216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9217echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9218 no_cache=0
9219 # Check whether --enable-notebook or --disable-notebook was given.
9220if test "${enable_notebook+set}" = set; then
9221 enableval="$enable_notebook"
9222
9223 if test "$enableval" = yes; then
9224 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9225 else
9226 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9227 fi
9228
9229else
9230
9231 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9232 if test "x$LINE" != x ; then
9233 eval "DEFAULT_$LINE"
9234 else
9235 no_cache=1
9236 fi
9237
9238 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9239
9240fi;
9241
9242 eval "$ac_cv_use_notebook"
9243 if test "$no_cache" != 1; then
9244 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9245 fi
9246
9247 if test "$wxUSE_NOTEBOOK" = yes; then
9248 echo "$as_me:$LINENO: result: yes" >&5
9249echo "${ECHO_T}yes" >&6
9250 else
9251 echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6
9253 fi
9254
9255
642bcba9 9256 enablestring=
a57d600f
VZ
9257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9258echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9259 no_cache=0
a57d600f
VZ
9260 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9261if test "${enable_odcombobox+set}" = set; then
9262 enableval="$enable_odcombobox"
642bcba9
VZ
9263
9264 if test "$enableval" = yes; then
a57d600f 9265 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9266 else
a57d600f 9267 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9268 fi
9269
9270else
9271
a57d600f 9272 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9273 if test "x$LINE" != x ; then
9274 eval "DEFAULT_$LINE"
9275 else
9276 no_cache=1
9277 fi
9278
a57d600f 9279 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9280
9281fi;
9282
a57d600f 9283 eval "$ac_cv_use_odcombobox"
642bcba9 9284 if test "$no_cache" != 1; then
a57d600f 9285 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9286 fi
9287
a57d600f 9288 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9289 echo "$as_me:$LINENO: result: yes" >&5
9290echo "${ECHO_T}yes" >&6
9291 else
9292 echo "$as_me:$LINENO: result: no" >&5
9293echo "${ECHO_T}no" >&6
9294 fi
9295
9296
a848cd7e
SC
9297 enablestring=
9298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9299echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9300 no_cache=0
9301 # Check whether --enable-radiobox or --disable-radiobox was given.
9302if test "${enable_radiobox+set}" = set; then
9303 enableval="$enable_radiobox"
9304
9305 if test "$enableval" = yes; then
9306 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9307 else
9308 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9309 fi
9310
9311else
9312
9313 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9314 if test "x$LINE" != x ; then
9315 eval "DEFAULT_$LINE"
9316 else
9317 no_cache=1
9318 fi
9319
9320 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9321
9322fi;
9323
9324 eval "$ac_cv_use_radiobox"
9325 if test "$no_cache" != 1; then
9326 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9327 fi
9328
9329 if test "$wxUSE_RADIOBOX" = yes; then
9330 echo "$as_me:$LINENO: result: yes" >&5
9331echo "${ECHO_T}yes" >&6
9332 else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335 fi
9336
9337
9338 enablestring=
9339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9340echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9341 no_cache=0
9342 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9343if test "${enable_radiobtn+set}" = set; then
9344 enableval="$enable_radiobtn"
9345
9346 if test "$enableval" = yes; then
9347 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9348 else
9349 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9350 fi
9351
9352else
9353
9354 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9355 if test "x$LINE" != x ; then
9356 eval "DEFAULT_$LINE"
9357 else
9358 no_cache=1
9359 fi
9360
9361 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9362
9363fi;
9364
9365 eval "$ac_cv_use_radiobtn"
9366 if test "$no_cache" != 1; then
9367 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9368 fi
9369
9370 if test "$wxUSE_RADIOBTN" = yes; then
9371 echo "$as_me:$LINENO: result: yes" >&5
9372echo "${ECHO_T}yes" >&6
9373 else
9374 echo "$as_me:$LINENO: result: no" >&5
9375echo "${ECHO_T}no" >&6
9376 fi
9377
9378
9379 enablestring=
9380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9381echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9382 no_cache=0
9383 # Check whether --enable-sash or --disable-sash was given.
9384if test "${enable_sash+set}" = set; then
9385 enableval="$enable_sash"
9386
9387 if test "$enableval" = yes; then
9388 ac_cv_use_sash='wxUSE_SASH=yes'
9389 else
9390 ac_cv_use_sash='wxUSE_SASH=no'
9391 fi
9392
9393else
9394
9395 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9396 if test "x$LINE" != x ; then
9397 eval "DEFAULT_$LINE"
9398 else
9399 no_cache=1
9400 fi
9401
9402 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9403
9404fi;
9405
9406 eval "$ac_cv_use_sash"
9407 if test "$no_cache" != 1; then
9408 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9409 fi
9410
9411 if test "$wxUSE_SASH" = yes; then
9412 echo "$as_me:$LINENO: result: yes" >&5
9413echo "${ECHO_T}yes" >&6
9414 else
9415 echo "$as_me:$LINENO: result: no" >&5
9416echo "${ECHO_T}no" >&6
9417 fi
9418
9419
9420 enablestring=
9421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9422echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9423 no_cache=0
9424 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9425if test "${enable_scrollbar+set}" = set; then
9426 enableval="$enable_scrollbar"
9427
9428 if test "$enableval" = yes; then
9429 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9430 else
9431 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9432 fi
9433
9434else
9435
9436 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9437 if test "x$LINE" != x ; then
9438 eval "DEFAULT_$LINE"
9439 else
9440 no_cache=1
9441 fi
9442
9443 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9444
9445fi;
9446
9447 eval "$ac_cv_use_scrollbar"
9448 if test "$no_cache" != 1; then
9449 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9450 fi
9451
9452 if test "$wxUSE_SCROLLBAR" = yes; then
9453 echo "$as_me:$LINENO: result: yes" >&5
9454echo "${ECHO_T}yes" >&6
9455 else
9456 echo "$as_me:$LINENO: result: no" >&5
9457echo "${ECHO_T}no" >&6
9458 fi
9459
9460
9461 enablestring=
9462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9463echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9464 no_cache=0
9465 # Check whether --enable-slider or --disable-slider was given.
9466if test "${enable_slider+set}" = set; then
9467 enableval="$enable_slider"
9468
9469 if test "$enableval" = yes; then
9470 ac_cv_use_slider='wxUSE_SLIDER=yes'
9471 else
9472 ac_cv_use_slider='wxUSE_SLIDER=no'
9473 fi
9474
9475else
9476
9477 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9478 if test "x$LINE" != x ; then
9479 eval "DEFAULT_$LINE"
9480 else
9481 no_cache=1
9482 fi
9483
9484 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9485
9486fi;
9487
9488 eval "$ac_cv_use_slider"
9489 if test "$no_cache" != 1; then
9490 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9491 fi
9492
9493 if test "$wxUSE_SLIDER" = yes; then
9494 echo "$as_me:$LINENO: result: yes" >&5
9495echo "${ECHO_T}yes" >&6
9496 else
9497 echo "$as_me:$LINENO: result: no" >&5
9498echo "${ECHO_T}no" >&6
9499 fi
9500
9501
9502 enablestring=
9503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9504echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9505 no_cache=0
9506 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9507if test "${enable_spinbtn+set}" = set; then
9508 enableval="$enable_spinbtn"
9509
9510 if test "$enableval" = yes; then
9511 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9512 else
9513 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9514 fi
9515
9516else
9517
9518 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9519 if test "x$LINE" != x ; then
9520 eval "DEFAULT_$LINE"
9521 else
9522 no_cache=1
9523 fi
9524
9525 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9526
9527fi;
9528
9529 eval "$ac_cv_use_spinbtn"
9530 if test "$no_cache" != 1; then
9531 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9532 fi
9533
9534 if test "$wxUSE_SPINBTN" = yes; then
9535 echo "$as_me:$LINENO: result: yes" >&5
9536echo "${ECHO_T}yes" >&6
9537 else
9538 echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
9540 fi
9541
9542
9543 enablestring=
9544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9545echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9546 no_cache=0
9547 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9548if test "${enable_spinctrl+set}" = set; then
9549 enableval="$enable_spinctrl"
9550
9551 if test "$enableval" = yes; then
9552 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9553 else
9554 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9555 fi
9556
9557else
9558
9559 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9560 if test "x$LINE" != x ; then
9561 eval "DEFAULT_$LINE"
9562 else
9563 no_cache=1
9564 fi
9565
9566 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9567
9568fi;
9569
9570 eval "$ac_cv_use_spinctrl"
9571 if test "$no_cache" != 1; then
9572 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9573 fi
9574
9575 if test "$wxUSE_SPINCTRL" = yes; then
9576 echo "$as_me:$LINENO: result: yes" >&5
9577echo "${ECHO_T}yes" >&6
9578 else
9579 echo "$as_me:$LINENO: result: no" >&5
9580echo "${ECHO_T}no" >&6
9581 fi
9582
9583
9584 enablestring=
9585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9586echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9587 no_cache=0
9588 # Check whether --enable-splitter or --disable-splitter was given.
9589if test "${enable_splitter+set}" = set; then
9590 enableval="$enable_splitter"
9591
9592 if test "$enableval" = yes; then
9593 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9594 else
9595 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9596 fi
9597
9598else
9599
9600 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9601 if test "x$LINE" != x ; then
9602 eval "DEFAULT_$LINE"
9603 else
9604 no_cache=1
9605 fi
9606
9607 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9608
9609fi;
9610
9611 eval "$ac_cv_use_splitter"
9612 if test "$no_cache" != 1; then
9613 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9614 fi
9615
9616 if test "$wxUSE_SPLITTER" = yes; then
9617 echo "$as_me:$LINENO: result: yes" >&5
9618echo "${ECHO_T}yes" >&6
9619 else
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
9622 fi
9623
9624
9625 enablestring=
9626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9627echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9628 no_cache=0
9629 # Check whether --enable-statbmp or --disable-statbmp was given.
9630if test "${enable_statbmp+set}" = set; then
9631 enableval="$enable_statbmp"
9632
9633 if test "$enableval" = yes; then
9634 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9635 else
9636 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9637 fi
9638
9639else
9640
9641 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9642 if test "x$LINE" != x ; then
9643 eval "DEFAULT_$LINE"
9644 else
9645 no_cache=1
9646 fi
9647
9648 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9649
9650fi;
9651
9652 eval "$ac_cv_use_statbmp"
9653 if test "$no_cache" != 1; then
9654 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9655 fi
9656
9657 if test "$wxUSE_STATBMP" = yes; then
9658 echo "$as_me:$LINENO: result: yes" >&5
9659echo "${ECHO_T}yes" >&6
9660 else
9661 echo "$as_me:$LINENO: result: no" >&5
9662echo "${ECHO_T}no" >&6
9663 fi
9664
9665
9666 enablestring=
9667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9668echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9669 no_cache=0
9670 # Check whether --enable-statbox or --disable-statbox was given.
9671if test "${enable_statbox+set}" = set; then
9672 enableval="$enable_statbox"
9673
9674 if test "$enableval" = yes; then
9675 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9676 else
9677 ac_cv_use_statbox='wxUSE_STATBOX=no'
9678 fi
9679
9680else
9681
9682 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9683 if test "x$LINE" != x ; then
9684 eval "DEFAULT_$LINE"
9685 else
9686 no_cache=1
9687 fi
9688
9689 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9690
9691fi;
9692
9693 eval "$ac_cv_use_statbox"
9694 if test "$no_cache" != 1; then
9695 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9696 fi
9697
9698 if test "$wxUSE_STATBOX" = yes; then
9699 echo "$as_me:$LINENO: result: yes" >&5
9700echo "${ECHO_T}yes" >&6
9701 else
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
9704 fi
9705
9706
9707 enablestring=
9708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9709echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9710 no_cache=0
9711 # Check whether --enable-statline or --disable-statline was given.
9712if test "${enable_statline+set}" = set; then
9713 enableval="$enable_statline"
9714
9715 if test "$enableval" = yes; then
9716 ac_cv_use_statline='wxUSE_STATLINE=yes'
9717 else
9718 ac_cv_use_statline='wxUSE_STATLINE=no'
9719 fi
9720
9721else
9722
9723 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9724 if test "x$LINE" != x ; then
9725 eval "DEFAULT_$LINE"
9726 else
9727 no_cache=1
9728 fi
9729
9730 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9731
9732fi;
9733
9734 eval "$ac_cv_use_statline"
9735 if test "$no_cache" != 1; then
9736 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9737 fi
9738
9739 if test "$wxUSE_STATLINE" = yes; then
9740 echo "$as_me:$LINENO: result: yes" >&5
9741echo "${ECHO_T}yes" >&6
9742 else
9743 echo "$as_me:$LINENO: result: no" >&5
9744echo "${ECHO_T}no" >&6
9745 fi
9746
9747
9748 enablestring=
9749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9750echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9751 no_cache=0
9752 # Check whether --enable-stattext or --disable-stattext was given.
9753if test "${enable_stattext+set}" = set; then
9754 enableval="$enable_stattext"
9755
9756 if test "$enableval" = yes; then
9757 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9758 else
9759 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9760 fi
9761
9762else
9763
9764 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9765 if test "x$LINE" != x ; then
9766 eval "DEFAULT_$LINE"
9767 else
9768 no_cache=1
9769 fi
9770
9771 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9772
9773fi;
9774
9775 eval "$ac_cv_use_stattext"
9776 if test "$no_cache" != 1; then
9777 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9778 fi
9779
9780 if test "$wxUSE_STATTEXT" = yes; then
9781 echo "$as_me:$LINENO: result: yes" >&5
9782echo "${ECHO_T}yes" >&6
9783 else
9784 echo "$as_me:$LINENO: result: no" >&5
9785echo "${ECHO_T}no" >&6
9786 fi
9787
9788
9789 enablestring=
9790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9791echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9792 no_cache=0
9793 # Check whether --enable-statusbar or --disable-statusbar was given.
9794if test "${enable_statusbar+set}" = set; then
9795 enableval="$enable_statusbar"
9796
9797 if test "$enableval" = yes; then
9798 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9799 else
9800 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9801 fi
9802
9803else
9804
9805 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9806 if test "x$LINE" != x ; then
9807 eval "DEFAULT_$LINE"
9808 else
9809 no_cache=1
9810 fi
9811
9812 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9813
9814fi;
9815
9816 eval "$ac_cv_use_statusbar"
9817 if test "$no_cache" != 1; then
9818 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9819 fi
9820
9821 if test "$wxUSE_STATUSBAR" = yes; then
9822 echo "$as_me:$LINENO: result: yes" >&5
9823echo "${ECHO_T}yes" >&6
9824 else
9825 echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
9827 fi
9828
9829
9830 enablestring=
9831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9832echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9833 no_cache=0
9834 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9835if test "${enable_tabdialog+set}" = set; then
9836 enableval="$enable_tabdialog"
9837
9838 if test "$enableval" = yes; then
f10e38c4 9839 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9840 else
f10e38c4 9841 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9842 fi
9843
9844else
9845
f10e38c4 9846 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9847 if test "x$LINE" != x ; then
9848 eval "DEFAULT_$LINE"
9849 else
9850 no_cache=1
9851 fi
9852
f10e38c4 9853 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9854
9855fi;
9856
9857 eval "$ac_cv_use_tabdialog"
9858 if test "$no_cache" != 1; then
9859 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9860 fi
9861
f10e38c4 9862 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9863 echo "$as_me:$LINENO: result: yes" >&5
9864echo "${ECHO_T}yes" >&6
9865 else
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868 fi
9869
9870
9871 enablestring=
9872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9873echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9874 no_cache=0
9875 # Check whether --enable-textctrl or --disable-textctrl was given.
9876if test "${enable_textctrl+set}" = set; then
9877 enableval="$enable_textctrl"
9878
9879 if test "$enableval" = yes; then
9880 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9881 else
9882 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9883 fi
9884
9885else
9886
9887 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9888 if test "x$LINE" != x ; then
9889 eval "DEFAULT_$LINE"
9890 else
9891 no_cache=1
9892 fi
9893
9894 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9895
9896fi;
9897
9898 eval "$ac_cv_use_textctrl"
9899 if test "$no_cache" != 1; then
9900 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9901 fi
9902
9903 if test "$wxUSE_TEXTCTRL" = yes; then
9904 echo "$as_me:$LINENO: result: yes" >&5
9905echo "${ECHO_T}yes" >&6
9906 else
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909 fi
9910
9911
9912 enablestring=
9913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9914echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9915 no_cache=0
9916 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9917if test "${enable_togglebtn+set}" = set; then
9918 enableval="$enable_togglebtn"
9919
9920 if test "$enableval" = yes; then
9921 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9922 else
9923 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9924 fi
9925
9926else
9927
9928 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9929 if test "x$LINE" != x ; then
9930 eval "DEFAULT_$LINE"
9931 else
9932 no_cache=1
9933 fi
9934
9935 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9936
9937fi;
9938
9939 eval "$ac_cv_use_togglebtn"
9940 if test "$no_cache" != 1; then
9941 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9942 fi
9943
9944 if test "$wxUSE_TOGGLEBTN" = yes; then
9945 echo "$as_me:$LINENO: result: yes" >&5
9946echo "${ECHO_T}yes" >&6
9947 else
9948 echo "$as_me:$LINENO: result: no" >&5
9949echo "${ECHO_T}no" >&6
9950 fi
9951
9952
9953 enablestring=
9954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9955echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9956 no_cache=0
9957 # Check whether --enable-toolbar or --disable-toolbar was given.
9958if test "${enable_toolbar+set}" = set; then
9959 enableval="$enable_toolbar"
9960
9961 if test "$enableval" = yes; then
9962 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9963 else
9964 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9965 fi
9966
9967else
9968
9969 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9970 if test "x$LINE" != x ; then
9971 eval "DEFAULT_$LINE"
9972 else
9973 no_cache=1
9974 fi
9975
9976 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9977
9978fi;
9979
9980 eval "$ac_cv_use_toolbar"
9981 if test "$no_cache" != 1; then
9982 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9983 fi
9984
9985 if test "$wxUSE_TOOLBAR" = yes; then
9986 echo "$as_me:$LINENO: result: yes" >&5
9987echo "${ECHO_T}yes" >&6
9988 else
9989 echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6
9991 fi
9992
9993
9994 enablestring=
9995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9996echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9997 no_cache=0
9998 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9999if test "${enable_tbarnative+set}" = set; then
10000 enableval="$enable_tbarnative"
10001
10002 if test "$enableval" = yes; then
10003 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10004 else
10005 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10006 fi
10007
10008else
10009
10010 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10011 if test "x$LINE" != x ; then
10012 eval "DEFAULT_$LINE"
10013 else
10014 no_cache=1
10015 fi
10016
10017 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10018
10019fi;
10020
10021 eval "$ac_cv_use_tbarnative"
10022 if test "$no_cache" != 1; then
10023 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10024 fi
10025
10026 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10027 echo "$as_me:$LINENO: result: yes" >&5
10028echo "${ECHO_T}yes" >&6
10029 else
10030 echo "$as_me:$LINENO: result: no" >&5
10031echo "${ECHO_T}no" >&6
10032 fi
10033
10034
0093c2fc
VZ
10035 enablestring=
10036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10037echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10038 no_cache=0
10039 # Check whether --enable-treebook or --disable-treebook was given.
10040if test "${enable_treebook+set}" = set; then
10041 enableval="$enable_treebook"
10042
10043 if test "$enableval" = yes; then
10044 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10045 else
10046 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10047 fi
10048
10049else
10050
10051 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10052 if test "x$LINE" != x ; then
10053 eval "DEFAULT_$LINE"
10054 else
10055 no_cache=1
10056 fi
10057
10058 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10059
10060fi;
10061
10062 eval "$ac_cv_use_treebook"
10063 if test "$no_cache" != 1; then
10064 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10065 fi
10066
10067 if test "$wxUSE_TREEBOOK" = yes; then
10068 echo "$as_me:$LINENO: result: yes" >&5
10069echo "${ECHO_T}yes" >&6
10070 else
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
10073 fi
10074
10075
5ec3bc43
JS
10076 enablestring=
10077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10078echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10079 no_cache=0
10080 # Check whether --enable-toolbook or --disable-toolbook was given.
10081if test "${enable_toolbook+set}" = set; then
10082 enableval="$enable_toolbook"
10083
10084 if test "$enableval" = yes; then
10085 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10086 else
10087 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10088 fi
10089
10090else
10091
10092 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10093 if test "x$LINE" != x ; then
10094 eval "DEFAULT_$LINE"
10095 else
10096 no_cache=1
10097 fi
10098
10099 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10100
10101fi;
10102
10103 eval "$ac_cv_use_toolbook"
10104 if test "$no_cache" != 1; then
10105 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10106 fi
10107
10108 if test "$wxUSE_TOOLBOOK" = yes; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me:$LINENO: result: no" >&5
10113echo "${ECHO_T}no" >&6
10114 fi
10115
10116
a848cd7e
SC
10117 enablestring=
10118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10119echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10120 no_cache=0
10121 # Check whether --enable-treectrl or --disable-treectrl was given.
10122if test "${enable_treectrl+set}" = set; then
10123 enableval="$enable_treectrl"
10124
10125 if test "$enableval" = yes; then
10126 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10127 else
10128 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10129 fi
10130
10131else
10132
10133 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10134 if test "x$LINE" != x ; then
10135 eval "DEFAULT_$LINE"
10136 else
10137 no_cache=1
10138 fi
10139
10140 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10141
10142fi;
10143
10144 eval "$ac_cv_use_treectrl"
10145 if test "$no_cache" != 1; then
10146 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10147 fi
10148
10149 if test "$wxUSE_TREECTRL" = yes; then
10150 echo "$as_me:$LINENO: result: yes" >&5
10151echo "${ECHO_T}yes" >&6
10152 else
10153 echo "$as_me:$LINENO: result: no" >&5
10154echo "${ECHO_T}no" >&6
10155 fi
10156
10157
10158 enablestring=
10159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10160echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10161 no_cache=0
10162 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10163if test "${enable_tipwindow+set}" = set; then
10164 enableval="$enable_tipwindow"
10165
10166 if test "$enableval" = yes; then
10167 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10168 else
10169 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10170 fi
10171
10172else
10173
10174 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10175 if test "x$LINE" != x ; then
10176 eval "DEFAULT_$LINE"
10177 else
10178 no_cache=1
10179 fi
10180
10181 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10182
10183fi;
10184
10185 eval "$ac_cv_use_tipwindow"
10186 if test "$no_cache" != 1; then
10187 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10188 fi
10189
10190 if test "$wxUSE_TIPWINDOW" = yes; then
10191 echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6
10193 else
10194 echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
10196 fi
10197
10198
10199 enablestring=
10200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10201echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10202 no_cache=0
10203 # Check whether --enable-popupwin or --disable-popupwin was given.
10204if test "${enable_popupwin+set}" = set; then
10205 enableval="$enable_popupwin"
10206
10207 if test "$enableval" = yes; then
10208 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10209 else
10210 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10211 fi
10212
10213else
10214
10215 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10216 if test "x$LINE" != x ; then
10217 eval "DEFAULT_$LINE"
10218 else
10219 no_cache=1
10220 fi
10221
10222 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10223
10224fi;
10225
10226 eval "$ac_cv_use_popupwin"
10227 if test "$no_cache" != 1; then
10228 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10229 fi
10230
10231 if test "$wxUSE_POPUPWIN" = yes; then
10232 echo "$as_me:$LINENO: result: yes" >&5
10233echo "${ECHO_T}yes" >&6
10234 else
10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
10237 fi
10238
10239
10240
10241
10242 enablestring=
10243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10244echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10245 no_cache=0
10246 # Check whether --enable-commondlg or --disable-commondlg was given.
10247if test "${enable_commondlg+set}" = set; then
10248 enableval="$enable_commondlg"
10249
10250 if test "$enableval" = yes; then
10251 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10252 else
10253 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10254 fi
10255
10256else
10257
10258 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10259 if test "x$LINE" != x ; then
10260 eval "DEFAULT_$LINE"
10261 else
10262 no_cache=1
10263 fi
10264
10265 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10266
10267fi;
10268
10269 eval "$ac_cv_use_commondlg"
10270 if test "$no_cache" != 1; then
10271 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10272 fi
10273
10274 if test "$wxUSE_COMMONDLGS" = yes; then
10275 echo "$as_me:$LINENO: result: yes" >&5
10276echo "${ECHO_T}yes" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
10280 fi
10281
10282
319c5ed4
VZ
10283 enablestring=
10284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10285echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10286 no_cache=0
10287 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10288if test "${enable_aboutdlg+set}" = set; then
10289 enableval="$enable_aboutdlg"
10290
10291 if test "$enableval" = yes; then
10292 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10293 else
10294 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10295 fi
10296
10297else
10298
10299 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10300 if test "x$LINE" != x ; then
10301 eval "DEFAULT_$LINE"
10302 else
10303 no_cache=1
10304 fi
10305
10306 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10307
10308fi;
10309
10310 eval "$ac_cv_use_aboutdlg"
10311 if test "$no_cache" != 1; then
10312 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10313 fi
10314
10315 if test "$wxUSE_ABOUTDLG" = yes; then
10316 echo "$as_me:$LINENO: result: yes" >&5
10317echo "${ECHO_T}yes" >&6
10318 else
10319 echo "$as_me:$LINENO: result: no" >&5
10320echo "${ECHO_T}no" >&6
10321 fi
10322
10323
a848cd7e
SC
10324 enablestring=
10325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10326echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10327 no_cache=0
10328 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10329if test "${enable_choicedlg+set}" = set; then
10330 enableval="$enable_choicedlg"
10331
10332 if test "$enableval" = yes; then
10333 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10334 else
10335 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10336 fi
10337
10338else
10339
10340 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10341 if test "x$LINE" != x ; then
10342 eval "DEFAULT_$LINE"
10343 else
10344 no_cache=1
10345 fi
10346
10347 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10348
10349fi;
10350
10351 eval "$ac_cv_use_choicedlg"
10352 if test "$no_cache" != 1; then
10353 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10354 fi
10355
10356 if test "$wxUSE_CHOICEDLG" = yes; then
10357 echo "$as_me:$LINENO: result: yes" >&5
10358echo "${ECHO_T}yes" >&6
10359 else
10360 echo "$as_me:$LINENO: result: no" >&5
10361echo "${ECHO_T}no" >&6
10362 fi
10363
10364
10365 enablestring=
10366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10367echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10368 no_cache=0
10369 # Check whether --enable-coldlg or --disable-coldlg was given.
10370if test "${enable_coldlg+set}" = set; then
10371 enableval="$enable_coldlg"
10372
10373 if test "$enableval" = yes; then
10374 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10375 else
10376 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10377 fi
10378
10379else
10380
10381 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10382 if test "x$LINE" != x ; then
10383 eval "DEFAULT_$LINE"
10384 else
10385 no_cache=1
10386 fi
10387
10388 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10389
10390fi;
10391
10392 eval "$ac_cv_use_coldlg"
10393 if test "$no_cache" != 1; then
10394 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10395 fi
10396
10397 if test "$wxUSE_COLOURDLG" = yes; then
10398 echo "$as_me:$LINENO: result: yes" >&5
10399echo "${ECHO_T}yes" >&6
10400 else
10401 echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
10403 fi
10404
10405
10406 enablestring=
10407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10408echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10409 no_cache=0
10410 # Check whether --enable-filedlg or --disable-filedlg was given.
10411if test "${enable_filedlg+set}" = set; then
10412 enableval="$enable_filedlg"
10413
10414 if test "$enableval" = yes; then
10415 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10416 else
10417 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10418 fi
10419
10420else
10421
10422 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10423 if test "x$LINE" != x ; then
10424 eval "DEFAULT_$LINE"
10425 else
10426 no_cache=1
10427 fi
10428
10429 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10430
10431fi;
10432
10433 eval "$ac_cv_use_filedlg"
10434 if test "$no_cache" != 1; then
10435 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10436 fi
10437
10438 if test "$wxUSE_FILEDLG" = yes; then
10439 echo "$as_me:$LINENO: result: yes" >&5
10440echo "${ECHO_T}yes" >&6
10441 else
10442 echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6
10444 fi
10445
10446
10447 enablestring=
10448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10449echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10450 no_cache=0
10451 # Check whether --enable-finddlg or --disable-finddlg was given.
10452if test "${enable_finddlg+set}" = set; then
10453 enableval="$enable_finddlg"
10454
10455 if test "$enableval" = yes; then
10456 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10457 else
10458 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10459 fi
10460
10461else
10462
10463 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10464 if test "x$LINE" != x ; then
10465 eval "DEFAULT_$LINE"
10466 else
10467 no_cache=1
10468 fi
10469
10470 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10471
10472fi;
10473
10474 eval "$ac_cv_use_finddlg"
10475 if test "$no_cache" != 1; then
10476 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10477 fi
10478
10479 if test "$wxUSE_FINDREPLDLG" = yes; then
10480 echo "$as_me:$LINENO: result: yes" >&5
10481echo "${ECHO_T}yes" >&6
10482 else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485 fi
10486
10487
10488 enablestring=
10489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10490echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10491 no_cache=0
10492 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10493if test "${enable_fontdlg+set}" = set; then
10494 enableval="$enable_fontdlg"
10495
10496 if test "$enableval" = yes; then
10497 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10498 else
10499 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10500 fi
10501
10502else
10503
10504 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10505 if test "x$LINE" != x ; then
10506 eval "DEFAULT_$LINE"
10507 else
10508 no_cache=1
10509 fi
10510
10511 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10512
10513fi;
10514
10515 eval "$ac_cv_use_fontdlg"
10516 if test "$no_cache" != 1; then
10517 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10518 fi
10519
10520 if test "$wxUSE_FONTDLG" = yes; then
10521 echo "$as_me:$LINENO: result: yes" >&5
10522echo "${ECHO_T}yes" >&6
10523 else
10524 echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
10526 fi
10527
10528
10529 enablestring=
10530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10531echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10532 no_cache=0
10533 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10534if test "${enable_dirdlg+set}" = set; then
10535 enableval="$enable_dirdlg"
10536
10537 if test "$enableval" = yes; then
10538 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10539 else
10540 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10541 fi
10542
10543else
10544
10545 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10546 if test "x$LINE" != x ; then
10547 eval "DEFAULT_$LINE"
10548 else
10549 no_cache=1
10550 fi
10551
10552 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10553
10554fi;
10555
10556 eval "$ac_cv_use_dirdlg"
10557 if test "$no_cache" != 1; then
10558 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10559 fi
10560
10561 if test "$wxUSE_DIRDLG" = yes; then
10562 echo "$as_me:$LINENO: result: yes" >&5
10563echo "${ECHO_T}yes" >&6
10564 else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567 fi
10568
10569
10570 enablestring=
10571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10572echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10573 no_cache=0
10574 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10575if test "${enable_msgdlg+set}" = set; then
10576 enableval="$enable_msgdlg"
10577
10578 if test "$enableval" = yes; then
10579 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10580 else
10581 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10582 fi
10583
10584else
10585
10586 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10587 if test "x$LINE" != x ; then
10588 eval "DEFAULT_$LINE"
10589 else
10590 no_cache=1
10591 fi
10592
10593 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10594
10595fi;
10596
10597 eval "$ac_cv_use_msgdlg"
10598 if test "$no_cache" != 1; then
10599 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10600 fi
10601
10602 if test "$wxUSE_MSGDLG" = yes; then
10603 echo "$as_me:$LINENO: result: yes" >&5
10604echo "${ECHO_T}yes" >&6
10605 else
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
10608 fi
10609
10610
10611 enablestring=
10612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10613echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10614 no_cache=0
10615 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10616if test "${enable_numberdlg+set}" = set; then
10617 enableval="$enable_numberdlg"
10618
10619 if test "$enableval" = yes; then
10620 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10621 else
10622 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10623 fi
10624
10625else
10626
10627 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10628 if test "x$LINE" != x ; then
10629 eval "DEFAULT_$LINE"
10630 else
10631 no_cache=1
10632 fi
10633
10634 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10635
10636fi;
10637
10638 eval "$ac_cv_use_numberdlg"
10639 if test "$no_cache" != 1; then
10640 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10641 fi
10642
10643 if test "$wxUSE_NUMBERDLG" = yes; then
10644 echo "$as_me:$LINENO: result: yes" >&5
10645echo "${ECHO_T}yes" >&6
10646 else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649 fi
10650
10651
10652 enablestring=
10653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10654echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10655 no_cache=0
10656 # Check whether --enable-splash or --disable-splash was given.
10657if test "${enable_splash+set}" = set; then
10658 enableval="$enable_splash"
10659
10660 if test "$enableval" = yes; then
10661 ac_cv_use_splash='wxUSE_SPLASH=yes'
10662 else
10663 ac_cv_use_splash='wxUSE_SPLASH=no'
10664 fi
10665
10666else
10667
10668 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10669 if test "x$LINE" != x ; then
10670 eval "DEFAULT_$LINE"
10671 else
10672 no_cache=1
10673 fi
10674
10675 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10676
10677fi;
10678
10679 eval "$ac_cv_use_splash"
10680 if test "$no_cache" != 1; then
10681 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10682 fi
10683
10684 if test "$wxUSE_SPLASH" = yes; then
10685 echo "$as_me:$LINENO: result: yes" >&5
10686echo "${ECHO_T}yes" >&6
10687 else
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690 fi
10691
10692
10693 enablestring=
10694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10695echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10696 no_cache=0
10697 # Check whether --enable-textdlg or --disable-textdlg was given.
10698if test "${enable_textdlg+set}" = set; then
10699 enableval="$enable_textdlg"
10700
10701 if test "$enableval" = yes; then
10702 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10703 else
10704 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10705 fi
10706
10707else
10708
10709 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10710 if test "x$LINE" != x ; then
10711 eval "DEFAULT_$LINE"
10712 else
10713 no_cache=1
10714 fi
10715
10716 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10717
10718fi;
10719
10720 eval "$ac_cv_use_textdlg"
10721 if test "$no_cache" != 1; then
10722 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10723 fi
10724
10725 if test "$wxUSE_TEXTDLG" = yes; then
10726 echo "$as_me:$LINENO: result: yes" >&5
10727echo "${ECHO_T}yes" >&6
10728 else
10729 echo "$as_me:$LINENO: result: no" >&5
10730echo "${ECHO_T}no" >&6
10731 fi
10732
10733
10734 enablestring=
10735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10736echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10737 no_cache=0
10738 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10739if test "${enable_tipdlg+set}" = set; then
10740 enableval="$enable_tipdlg"
10741
10742 if test "$enableval" = yes; then
10743 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10744 else
10745 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10746 fi
10747
10748else
10749
10750 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10751 if test "x$LINE" != x ; then
10752 eval "DEFAULT_$LINE"
10753 else
10754 no_cache=1
10755 fi
10756
10757 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10758
10759fi;
10760
10761 eval "$ac_cv_use_tipdlg"
10762 if test "$no_cache" != 1; then
10763 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10764 fi
10765
10766 if test "$wxUSE_STARTUP_TIPS" = yes; then
10767 echo "$as_me:$LINENO: result: yes" >&5
10768echo "${ECHO_T}yes" >&6
10769 else
10770 echo "$as_me:$LINENO: result: no" >&5
10771echo "${ECHO_T}no" >&6
10772 fi
10773
10774
10775 enablestring=
10776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10777echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10778 no_cache=0
10779 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10780if test "${enable_progressdlg+set}" = set; then
10781 enableval="$enable_progressdlg"
10782
10783 if test "$enableval" = yes; then
10784 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10785 else
10786 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10787 fi
10788
10789else
10790
10791 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10792 if test "x$LINE" != x ; then
10793 eval "DEFAULT_$LINE"
10794 else
10795 no_cache=1
10796 fi
10797
10798 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10799
10800fi;
10801
10802 eval "$ac_cv_use_progressdlg"
10803 if test "$no_cache" != 1; then
10804 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10805 fi
10806
10807 if test "$wxUSE_PROGRESSDLG" = yes; then
10808 echo "$as_me:$LINENO: result: yes" >&5
10809echo "${ECHO_T}yes" >&6
10810 else
10811 echo "$as_me:$LINENO: result: no" >&5
10812echo "${ECHO_T}no" >&6
10813 fi
10814
10815
10816 enablestring=
10817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10818echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10819 no_cache=0
10820 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10821if test "${enable_wizarddlg+set}" = set; then
10822 enableval="$enable_wizarddlg"
10823
10824 if test "$enableval" = yes; then
10825 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10826 else
10827 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10828 fi
10829
10830else
10831
10832 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10833 if test "x$LINE" != x ; then
10834 eval "DEFAULT_$LINE"
10835 else
10836 no_cache=1
10837 fi
10838
10839 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10840
10841fi;
10842
10843 eval "$ac_cv_use_wizarddlg"
10844 if test "$no_cache" != 1; then
10845 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10846 fi
10847
10848 if test "$wxUSE_WIZARDDLG" = yes; then
10849 echo "$as_me:$LINENO: result: yes" >&5
10850echo "${ECHO_T}yes" >&6
10851 else
10852 echo "$as_me:$LINENO: result: no" >&5
10853echo "${ECHO_T}no" >&6
10854 fi
10855
10856
10857
10858
10859 enablestring=
10860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10861echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10862 no_cache=0
10863 # Check whether --enable-menus or --disable-menus was given.
10864if test "${enable_menus+set}" = set; then
10865 enableval="$enable_menus"
10866
10867 if test "$enableval" = yes; then
10868 ac_cv_use_menus='wxUSE_MENUS=yes'
10869 else
10870 ac_cv_use_menus='wxUSE_MENUS=no'
10871 fi
10872
10873else
10874
10875 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10876 if test "x$LINE" != x ; then
10877 eval "DEFAULT_$LINE"
10878 else
10879 no_cache=1
10880 fi
10881
10882 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10883
10884fi;
10885
10886 eval "$ac_cv_use_menus"
10887 if test "$no_cache" != 1; then
10888 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10889 fi
10890
10891 if test "$wxUSE_MENUS" = yes; then
10892 echo "$as_me:$LINENO: result: yes" >&5
10893echo "${ECHO_T}yes" >&6
10894 else
10895 echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
10897 fi
10898
10899
10900 enablestring=
10901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10902echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10903 no_cache=0
10904 # Check whether --enable-miniframe or --disable-miniframe was given.
10905if test "${enable_miniframe+set}" = set; then
10906 enableval="$enable_miniframe"
10907
10908 if test "$enableval" = yes; then
10909 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10910 else
10911 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10912 fi
10913
10914else
10915
10916 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10917 if test "x$LINE" != x ; then
10918 eval "DEFAULT_$LINE"
10919 else
10920 no_cache=1
10921 fi
10922
10923 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10924
10925fi;
10926
10927 eval "$ac_cv_use_miniframe"
10928 if test "$no_cache" != 1; then
10929 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10930 fi
10931
10932 if test "$wxUSE_MINIFRAME" = yes; then
10933 echo "$as_me:$LINENO: result: yes" >&5
10934echo "${ECHO_T}yes" >&6
10935 else
10936 echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6
10938 fi
10939
10940
10941 enablestring=
10942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10943echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10944 no_cache=0
10945 # Check whether --enable-tooltips or --disable-tooltips was given.
10946if test "${enable_tooltips+set}" = set; then
10947 enableval="$enable_tooltips"
10948
10949 if test "$enableval" = yes; then
10950 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10951 else
10952 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10953 fi
10954
10955else
10956
10957 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10958 if test "x$LINE" != x ; then
10959 eval "DEFAULT_$LINE"
10960 else
10961 no_cache=1
10962 fi
10963
10964 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10965
10966fi;
10967
10968 eval "$ac_cv_use_tooltips"
10969 if test "$no_cache" != 1; then
10970 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10971 fi
10972
10973 if test "$wxUSE_TOOLTIPS" = yes; then
10974 echo "$as_me:$LINENO: result: yes" >&5
10975echo "${ECHO_T}yes" >&6
10976 else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979 fi
10980
10981
10982 enablestring=
10983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10984echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10985 no_cache=0
10986 # Check whether --enable-splines or --disable-splines was given.
10987if test "${enable_splines+set}" = set; then
10988 enableval="$enable_splines"
10989
10990 if test "$enableval" = yes; then
10991 ac_cv_use_splines='wxUSE_SPLINES=yes'
10992 else
10993 ac_cv_use_splines='wxUSE_SPLINES=no'
10994 fi
10995
10996else
10997
10998 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10999 if test "x$LINE" != x ; then
11000 eval "DEFAULT_$LINE"
11001 else
11002 no_cache=1
11003 fi
11004
11005 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11006
11007fi;
11008
11009 eval "$ac_cv_use_splines"
11010 if test "$no_cache" != 1; then
11011 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11012 fi
11013
11014 if test "$wxUSE_SPLINES" = yes; then
11015 echo "$as_me:$LINENO: result: yes" >&5
11016echo "${ECHO_T}yes" >&6
11017 else
11018 echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6
11020 fi
11021
11022
fbe2ca43
SN
11023 enablestring=
11024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11025echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11026 no_cache=0
11027 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11028if test "${enable_mousewheel+set}" = set; then
11029 enableval="$enable_mousewheel"
11030
11031 if test "$enableval" = yes; then
11032 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11033 else
11034 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11035 fi
11036
11037else
11038
11039 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11040 if test "x$LINE" != x ; then
11041 eval "DEFAULT_$LINE"
11042 else
11043 no_cache=1
11044 fi
11045
11046 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11047
11048fi;
11049
11050 eval "$ac_cv_use_mousewheel"
11051 if test "$no_cache" != 1; then
11052 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11053 fi
11054
11055 if test "$wxUSE_MOUSEWHEEL" = yes; then
11056 echo "$as_me:$LINENO: result: yes" >&5
11057echo "${ECHO_T}yes" >&6
11058 else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061 fi
11062
11063
a848cd7e
SC
11064 enablestring=
11065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11066echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11067 no_cache=0
11068 # Check whether --enable-validators or --disable-validators was given.
11069if test "${enable_validators+set}" = set; then
11070 enableval="$enable_validators"
11071
11072 if test "$enableval" = yes; then
11073 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11074 else
11075 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11076 fi
11077
11078else
11079
11080 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11081 if test "x$LINE" != x ; then
11082 eval "DEFAULT_$LINE"
11083 else
11084 no_cache=1
11085 fi
11086
11087 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11088
11089fi;
11090
11091 eval "$ac_cv_use_validators"
11092 if test "$no_cache" != 1; then
11093 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11094 fi
11095
11096 if test "$wxUSE_VALIDATORS" = yes; then
11097 echo "$as_me:$LINENO: result: yes" >&5
11098echo "${ECHO_T}yes" >&6
11099 else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102 fi
11103
11104
11105 enablestring=
11106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11107echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11108 no_cache=0
11109 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11110if test "${enable_busyinfo+set}" = set; then
11111 enableval="$enable_busyinfo"
11112
11113 if test "$enableval" = yes; then
11114 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11115 else
11116 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11117 fi
11118
11119else
11120
11121 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11122 if test "x$LINE" != x ; then
11123 eval "DEFAULT_$LINE"
11124 else
11125 no_cache=1
11126 fi
11127
11128 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11129
11130fi;
11131
11132 eval "$ac_cv_use_busyinfo"
11133 if test "$no_cache" != 1; then
11134 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11135 fi
11136
11137 if test "$wxUSE_BUSYINFO" = yes; then
11138 echo "$as_me:$LINENO: result: yes" >&5
11139echo "${ECHO_T}yes" >&6
11140 else
11141 echo "$as_me:$LINENO: result: no" >&5
11142echo "${ECHO_T}no" >&6
11143 fi
11144
11145
11146 enablestring=
11147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11148echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11149 no_cache=0
11150 # Check whether --enable-joystick or --disable-joystick was given.
11151if test "${enable_joystick+set}" = set; then
11152 enableval="$enable_joystick"
11153
11154 if test "$enableval" = yes; then
11155 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11156 else
11157 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11158 fi
11159
11160else
11161
11162 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11163 if test "x$LINE" != x ; then
11164 eval "DEFAULT_$LINE"
11165 else
11166 no_cache=1
11167 fi
11168
11169 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11170
11171fi;
11172
11173 eval "$ac_cv_use_joystick"
11174 if test "$no_cache" != 1; then
11175 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11176 fi
11177
11178 if test "$wxUSE_JOYSTICK" = yes; then
11179 echo "$as_me:$LINENO: result: yes" >&5
11180echo "${ECHO_T}yes" >&6
11181 else
11182 echo "$as_me:$LINENO: result: no" >&5
11183echo "${ECHO_T}no" >&6
11184 fi
11185
11186
11187 enablestring=
11188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11189echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11190 no_cache=0
11191 # Check whether --enable-metafile or --disable-metafile was given.
11192if test "${enable_metafile+set}" = set; then
11193 enableval="$enable_metafile"
11194
11195 if test "$enableval" = yes; then
11196 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11197 else
11198 ac_cv_use_metafile='wxUSE_METAFILE=no'
11199 fi
11200
11201else
11202
11203 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11204 if test "x$LINE" != x ; then
11205 eval "DEFAULT_$LINE"
11206 else
11207 no_cache=1
11208 fi
11209
11210 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11211
11212fi;
11213
11214 eval "$ac_cv_use_metafile"
11215 if test "$no_cache" != 1; then
11216 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11217 fi
11218
11219 if test "$wxUSE_METAFILE" = yes; then
11220 echo "$as_me:$LINENO: result: yes" >&5
11221echo "${ECHO_T}yes" >&6
11222 else
11223 echo "$as_me:$LINENO: result: no" >&5
11224echo "${ECHO_T}no" >&6
11225 fi
11226
11227
11228 enablestring=
11229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11230echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11231 no_cache=0
11232 # Check whether --enable-dragimage or --disable-dragimage was given.
11233if test "${enable_dragimage+set}" = set; then
11234 enableval="$enable_dragimage"
11235
11236 if test "$enableval" = yes; then
11237 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11238 else
11239 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11240 fi
11241
11242else
11243
11244 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11245 if test "x$LINE" != x ; then
11246 eval "DEFAULT_$LINE"
11247 else
11248 no_cache=1
11249 fi
11250
11251 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11252
11253fi;
11254
11255 eval "$ac_cv_use_dragimage"
11256 if test "$no_cache" != 1; then
11257 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11258 fi
11259
11260 if test "$wxUSE_DRAGIMAGE" = yes; then
11261 echo "$as_me:$LINENO: result: yes" >&5
11262echo "${ECHO_T}yes" >&6
11263 else
11264 echo "$as_me:$LINENO: result: no" >&5
11265echo "${ECHO_T}no" >&6
11266 fi
11267
11268
11269 enablestring=
11270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11271echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11272 no_cache=0
11273 # Check whether --enable-accessibility or --disable-accessibility was given.
11274if test "${enable_accessibility+set}" = set; then
11275 enableval="$enable_accessibility"
11276
11277 if test "$enableval" = yes; then
11278 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11279 else
11280 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11281 fi
11282
11283else
11284
11285 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11286 if test "x$LINE" != x ; then
11287 eval "DEFAULT_$LINE"
11288 else
11289 no_cache=1
11290 fi
11291
11292 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11293
11294fi;
11295
11296 eval "$ac_cv_use_accessibility"
11297 if test "$no_cache" != 1; then
11298 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11299 fi
11300
11301 if test "$wxUSE_ACCESSIBILITY" = yes; then
11302 echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304 else
11305 echo "$as_me:$LINENO: result: no" >&5
11306echo "${ECHO_T}no" >&6
11307 fi
11308
11309
38b4a946
VZ
11310if test "$wxUSE_MSW" = "1"; then
11311
11312 enablestring=
11313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11314echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11315 no_cache=0
11316 # Check whether --enable-dccache or --disable-dccache was given.
11317if test "${enable_dccache+set}" = set; then
11318 enableval="$enable_dccache"
11319
11320 if test "$enableval" = yes; then
11321 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11322 else
11323 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11324 fi
11325
11326else
11327
11328 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11329 if test "x$LINE" != x ; then
11330 eval "DEFAULT_$LINE"
11331 else
11332 no_cache=1
11333 fi
11334
11335 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11336
11337fi;
11338
11339 eval "$ac_cv_use_dccache"
11340 if test "$no_cache" != 1; then
11341 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11342 fi
11343
11344 if test "$wxUSE_DC_CACHEING" = yes; then
11345 echo "$as_me:$LINENO: result: yes" >&5
11346echo "${ECHO_T}yes" >&6
11347 else
11348 echo "$as_me:$LINENO: result: no" >&5
11349echo "${ECHO_T}no" >&6
11350 fi
11351
11352fi
11353
a848cd7e
SC
11354
11355
11356 enablestring=
11357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11358echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11359 no_cache=0
11360 # Check whether --enable-palette or --disable-palette was given.
11361if test "${enable_palette+set}" = set; then
11362 enableval="$enable_palette"
11363
11364 if test "$enableval" = yes; then
11365 ac_cv_use_palette='wxUSE_PALETTE=yes'
11366 else
11367 ac_cv_use_palette='wxUSE_PALETTE=no'
11368 fi
11369
11370else
11371
11372 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11373 if test "x$LINE" != x ; then
11374 eval "DEFAULT_$LINE"
11375 else
11376 no_cache=1
11377 fi
11378
11379 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11380
11381fi;
11382
11383 eval "$ac_cv_use_palette"
11384 if test "$no_cache" != 1; then
11385 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11386 fi
11387
11388 if test "$wxUSE_PALETTE" = yes; then
11389 echo "$as_me:$LINENO: result: yes" >&5
11390echo "${ECHO_T}yes" >&6
11391 else
11392 echo "$as_me:$LINENO: result: no" >&5
11393echo "${ECHO_T}no" >&6
11394 fi
11395
11396
11397 enablestring=
11398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11399echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11400 no_cache=0
11401 # Check whether --enable-image or --disable-image was given.
11402if test "${enable_image+set}" = set; then
11403 enableval="$enable_image"
11404
11405 if test "$enableval" = yes; then
11406 ac_cv_use_image='wxUSE_IMAGE=yes'
11407 else
11408 ac_cv_use_image='wxUSE_IMAGE=no'
11409 fi
11410
11411else
11412
11413 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11414 if test "x$LINE" != x ; then
11415 eval "DEFAULT_$LINE"
11416 else
11417 no_cache=1
11418 fi
11419
11420 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11421
11422fi;
11423
11424 eval "$ac_cv_use_image"
11425 if test "$no_cache" != 1; then
11426 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11427 fi
11428
11429 if test "$wxUSE_IMAGE" = yes; then
11430 echo "$as_me:$LINENO: result: yes" >&5
11431echo "${ECHO_T}yes" >&6
11432 else
11433 echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435 fi
11436
11437
11438 enablestring=
11439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11440echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11441 no_cache=0
11442 # Check whether --enable-gif or --disable-gif was given.
11443if test "${enable_gif+set}" = set; then
11444 enableval="$enable_gif"
11445
11446 if test "$enableval" = yes; then
11447 ac_cv_use_gif='wxUSE_GIF=yes'
11448 else
11449 ac_cv_use_gif='wxUSE_GIF=no'
11450 fi
11451
11452else
11453
11454 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11455 if test "x$LINE" != x ; then
11456 eval "DEFAULT_$LINE"
11457 else
11458 no_cache=1
11459 fi
11460
11461 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11462
11463fi;
11464
11465 eval "$ac_cv_use_gif"
11466 if test "$no_cache" != 1; then
11467 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11468 fi
11469
11470 if test "$wxUSE_GIF" = yes; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472echo "${ECHO_T}yes" >&6
11473 else
11474 echo "$as_me:$LINENO: result: no" >&5
11475echo "${ECHO_T}no" >&6
11476 fi
11477
11478
11479 enablestring=
11480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11481echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11482 no_cache=0
11483 # Check whether --enable-pcx or --disable-pcx was given.
11484if test "${enable_pcx+set}" = set; then
11485 enableval="$enable_pcx"
11486
11487 if test "$enableval" = yes; then
11488 ac_cv_use_pcx='wxUSE_PCX=yes'
11489 else
11490 ac_cv_use_pcx='wxUSE_PCX=no'
11491 fi
11492
11493else
11494
11495 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11496 if test "x$LINE" != x ; then
11497 eval "DEFAULT_$LINE"
11498 else
11499 no_cache=1
11500 fi
11501
11502 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11503
11504fi;
11505
11506 eval "$ac_cv_use_pcx"
11507 if test "$no_cache" != 1; then
11508 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11509 fi
11510
11511 if test "$wxUSE_PCX" = yes; then
11512 echo "$as_me:$LINENO: result: yes" >&5
11513echo "${ECHO_T}yes" >&6
11514 else
11515 echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6
11517 fi
11518
11519
bb9e79c0
VZ
11520 enablestring=
11521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11522echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11523 no_cache=0
11524 # Check whether --enable-tga or --disable-tga was given.
11525if test "${enable_tga+set}" = set; then
11526 enableval="$enable_tga"
11527
11528 if test "$enableval" = yes; then
11529 ac_cv_use_tga='wxUSE_TGA=yes'
11530 else
11531 ac_cv_use_tga='wxUSE_TGA=no'
11532 fi
11533
11534else
11535
11536 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11537 if test "x$LINE" != x ; then
11538 eval "DEFAULT_$LINE"
11539 else
11540 no_cache=1
11541 fi
11542
11543 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11544
11545fi;
11546
11547 eval "$ac_cv_use_tga"
11548 if test "$no_cache" != 1; then
11549 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11550 fi
11551
11552 if test "$wxUSE_TGA" = yes; then
11553 echo "$as_me:$LINENO: result: yes" >&5
11554echo "${ECHO_T}yes" >&6
11555 else
11556 echo "$as_me:$LINENO: result: no" >&5
11557echo "${ECHO_T}no" >&6
11558 fi
11559
11560
a848cd7e
SC
11561 enablestring=
11562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11563echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11564 no_cache=0
11565 # Check whether --enable-iff or --disable-iff was given.
11566if test "${enable_iff+set}" = set; then
11567 enableval="$enable_iff"
11568
11569 if test "$enableval" = yes; then
11570 ac_cv_use_iff='wxUSE_IFF=yes'
11571 else
11572 ac_cv_use_iff='wxUSE_IFF=no'
11573 fi
11574
11575else
11576
11577 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11578 if test "x$LINE" != x ; then
11579 eval "DEFAULT_$LINE"
11580 else
11581 no_cache=1
11582 fi
11583
11584 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11585
11586fi;
11587
11588 eval "$ac_cv_use_iff"
11589 if test "$no_cache" != 1; then
11590 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11591 fi
11592
11593 if test "$wxUSE_IFF" = yes; then
11594 echo "$as_me:$LINENO: result: yes" >&5
11595echo "${ECHO_T}yes" >&6
11596 else
11597 echo "$as_me:$LINENO: result: no" >&5
11598echo "${ECHO_T}no" >&6
11599 fi
11600
11601
11602 enablestring=
11603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11604echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11605 no_cache=0
11606 # Check whether --enable-pnm or --disable-pnm was given.
11607if test "${enable_pnm+set}" = set; then
11608 enableval="$enable_pnm"
11609
11610 if test "$enableval" = yes; then
11611 ac_cv_use_pnm='wxUSE_PNM=yes'
11612 else
11613 ac_cv_use_pnm='wxUSE_PNM=no'
11614 fi
11615
11616else
11617
11618 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11619 if test "x$LINE" != x ; then
11620 eval "DEFAULT_$LINE"
11621 else
11622 no_cache=1
11623 fi
11624
11625 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11626
11627fi;
11628
11629 eval "$ac_cv_use_pnm"
11630 if test "$no_cache" != 1; then
11631 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11632 fi
11633
11634 if test "$wxUSE_PNM" = yes; then
11635 echo "$as_me:$LINENO: result: yes" >&5
11636echo "${ECHO_T}yes" >&6
11637 else
11638 echo "$as_me:$LINENO: result: no" >&5
11639echo "${ECHO_T}no" >&6
11640 fi
11641
11642
11643 enablestring=
11644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11645echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11646 no_cache=0
11647 # Check whether --enable-xpm or --disable-xpm was given.
11648if test "${enable_xpm+set}" = set; then
11649 enableval="$enable_xpm"
11650
11651 if test "$enableval" = yes; then
11652 ac_cv_use_xpm='wxUSE_XPM=yes'
11653 else
11654 ac_cv_use_xpm='wxUSE_XPM=no'
11655 fi
11656
11657else
11658
11659 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11660 if test "x$LINE" != x ; then
11661 eval "DEFAULT_$LINE"
11662 else
11663 no_cache=1
11664 fi
11665
11666 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11667
11668fi;
11669
11670 eval "$ac_cv_use_xpm"
11671 if test "$no_cache" != 1; then
11672 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11673 fi
11674
11675 if test "$wxUSE_XPM" = yes; then
11676 echo "$as_me:$LINENO: result: yes" >&5
11677echo "${ECHO_T}yes" >&6
11678 else
11679 echo "$as_me:$LINENO: result: no" >&5
11680echo "${ECHO_T}no" >&6
11681 fi
11682
11683
11684 enablestring=
11685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11686echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11687 no_cache=0
11688 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11689if test "${enable_ico_cur+set}" = set; then
11690 enableval="$enable_ico_cur"
11691
11692 if test "$enableval" = yes; then
11693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11694 else
11695 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11696 fi
11697
11698else
11699
11700 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11701 if test "x$LINE" != x ; then
11702 eval "DEFAULT_$LINE"
11703 else
11704 no_cache=1
11705 fi
11706
11707 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11708
11709fi;
11710
11711 eval "$ac_cv_use_ico_cur"
11712 if test "$no_cache" != 1; then
11713 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11714 fi
11715
11716 if test "$wxUSE_ICO_CUR" = yes; then
11717 echo "$as_me:$LINENO: result: yes" >&5
11718echo "${ECHO_T}yes" >&6
11719 else
11720 echo "$as_me:$LINENO: result: no" >&5
11721echo "${ECHO_T}no" >&6
11722 fi
11723
11724
11725fi
11726
11727
11728
ceec2216
RL
11729# Check whether --with-flavour or --without-flavour was given.
11730if test "${with_flavour+set}" = set; then
11731 withval="$with_flavour"
11732 WX_FLAVOUR="$withval"
11733fi;
11734
11735
11736
a848cd7e
SC
11737 enablestring=
11738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11739echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11740 no_cache=0
11741 # Check whether --enable-official_build or --disable-official_build was given.
11742if test "${enable_official_build+set}" = set; then
11743 enableval="$enable_official_build"
11744
11745 if test "$enableval" = yes; then
11746 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11747 else
11748 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11749 fi
11750
11751else
11752
11753 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11754 if test "x$LINE" != x ; then
11755 eval "DEFAULT_$LINE"
11756 else
11757 no_cache=1
11758 fi
11759
11760 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11761
11762fi;
11763
11764 eval "$ac_cv_use_official_build"
11765 if test "$no_cache" != 1; then
11766 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11767 fi
11768
11769 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11770 echo "$as_me:$LINENO: result: yes" >&5
11771echo "${ECHO_T}yes" >&6
11772 else
11773 echo "$as_me:$LINENO: result: no" >&5
11774echo "${ECHO_T}no" >&6
11775 fi
11776
11777# Check whether --enable-vendor or --disable-vendor was given.
11778if test "${enable_vendor+set}" = set; then
11779 enableval="$enable_vendor"
11780 VENDOR="$enableval"
11781fi;
11782if test "x$VENDOR" = "x"; then
11783 VENDOR="custom"
11784fi
11785
a848cd7e
SC
11786
11787
11788
11789 echo "saving argument cache $wx_arg_cache_file"
11790 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11791
11792
11793
11794echo "$as_me:$LINENO: checking for toolkit" >&5
11795echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11796
11797# In Wine, we need to default to MSW, not GTK or MOTIF
11798if test "$wxUSE_WINE" = "yes"; then
11799 DEFAULT_DEFAULT_wxUSE_GTK=0
11800 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11801 DEFAULT_DEFAULT_wxUSE_MSW=1
11802 wxUSE_SHARED=no
11803fi
11804
f597b41c 11805
a848cd7e
SC
11806if test "$wxUSE_GUI" = "yes"; then
11807
11808 if test "$USE_BEOS" = 1; then
11809 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11810echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11811 { (exit 1); exit 1; }; }
11812 fi
11813
11814 if test "$TOOLKIT_GIVEN" = 1; then
11815 for toolkit in `echo $ALL_TOOLKITS`; do
11816 var=wxUSE_$toolkit
11817 eval "value=\$${var}"
f34ca037
MW
11818 if test "x$value" = "xno"; then
11819 eval "$var=0"
11820 elif test "x$value" != "x"; then
11821 eval "$var=1"
11822 fi
11823
11824 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11825 eval "wx${toolkit}_VERSION=$value"
11826 fi
a848cd7e
SC
11827 done
11828 else
11829 for toolkit in `echo $ALL_TOOLKITS`; do
11830 if test "$has_toolkit_in_cache" != 1; then
11831 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11832 else
11833 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11834
11835 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11836 if test "x$version" != "x"; then
11837 eval "wx${toolkit}_VERSION=$version"
11838 fi
a848cd7e
SC
11839 fi
11840 eval "wxUSE_$toolkit=\$${var}"
11841 done
11842 fi
11843
11844 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11845 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11846 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11847
11848 case "${host}" in
11849 *-pc-os2_emx | *-pc-os2-emx )
11850 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11851 esac
11852
11853 case "$NUM_TOOLKITS" in
11854 1)
11855 ;;
11856 0)
11857 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11858echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11859 { (exit 1); exit 1; }; }
11860 ;;
11861 *)
11862 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11863echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11864 { (exit 1); exit 1; }; }
11865 esac
11866
f34ca037
MW
11867 # to be removed when --disable-gtk2 isn't needed
11868 if test "x$wxUSE_GTK2" = "xyes"; then
11869 wxGTK_VERSION=2
11870 elif test "x$wxUSE_GTK2" = "xno"; then
11871 wxGTK_VERSION=1
11872 fi
11873
a848cd7e
SC
11874 for toolkit in `echo $ALL_TOOLKITS`; do
11875 var=wxUSE_$toolkit
11876 eval "value=\$${var}"
11877 if test "x$value" != x; then
11878 cache_var=CACHE_$toolkit
11879 eval "cache=\$${cache_var}"
11880 if test "$cache" = 1; then
11881 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11882 eval "version=\$wx${toolkit}_VERSION"
11883 if test "x$version" != "x"; then
11884 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11885 fi
a848cd7e
SC
11886 fi
11887 if test "$value" = 1; then
11888 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11889 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11890echo "${ECHO_T}$toolkit_echo" >&6
11891 fi
11892 fi
11893 done
11894else
11895 if test "x$host_alias" != "x"; then
11896 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11897echo "${ECHO_T}base ($host_alias hosted) only" >&6
11898 else
11899 echo "$as_me:$LINENO: result: base only" >&5
11900echo "${ECHO_T}base only" >&6
11901 fi
11902fi
11903
11904wants_win32=0
11905doesnt_want_win32=0
11906case "${host}" in
11907 *-*-cygwin*)
11908 if test "$wxUSE_MSW" = 1 ; then
11909 wants_win32=1
7275146d 11910 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11911 else
11912 doesnt_want_win32=1
11913 fi
11914 ;;
11915 *-*-mingw*)
11916 wants_win32=1
11917 ;;
11918esac
11919
11920if test "$wxUSE_WINE" = "yes"; then
11921 wants_win32=1
11922 CC=winegcc
11923 CXX=wineg++
a848cd7e
SC
11924 LDFLAGS_GUI="-mwindows"
11925fi
11926
11927if test "$wants_win32" = 1 ; then
11928 USE_UNIX=0
11929 USE_WIN32=1
11930 cat >>confdefs.h <<\_ACEOF
11931#define __WIN32__ 1
11932_ACEOF
11933
11934 cat >>confdefs.h <<\_ACEOF
11935#define __WIN95__ 1
11936_ACEOF
11937
11938 cat >>confdefs.h <<\_ACEOF
11939#define __WINDOWS__ 1
11940_ACEOF
11941
11942 cat >>confdefs.h <<\_ACEOF
11943#define __GNUWIN32__ 1
11944_ACEOF
11945
11946 cat >>confdefs.h <<\_ACEOF
11947#define STRICT 1
11948_ACEOF
11949
11950 cat >>confdefs.h <<\_ACEOF
11951#define WINVER 0x0400
11952_ACEOF
11953
11954fi
11955if test "$doesnt_want_win32" = 1 ; then
11956 USE_UNIX=1
11957 USE_WIN32=0
11958fi
11959
11960if test "$USE_UNIX" = 1 ; then
11961 wxUSE_UNIX=yes
11962 cat >>confdefs.h <<\_ACEOF
11963#define __UNIX__ 1
11964_ACEOF
11965
11966fi
11967
11968
11969cat >confcache <<\_ACEOF
11970# This file is a shell script that caches the results of configure
11971# tests run on this system so they can be shared between configure
11972# scripts and configure runs, see configure's option --config-cache.
11973# It is not useful on other systems. If it contains results you don't
11974# want to keep, you may remove or edit it.
11975#
11976# config.status only pays attention to the cache file if you give it
11977# the --recheck option to rerun configure.
11978#
11979# `ac_cv_env_foo' variables (set or unset) will be overridden when
11980# loading this file, other *unset* `ac_cv_foo' will be assigned the
11981# following values.
11982
11983_ACEOF
11984
11985# The following way of writing the cache mishandles newlines in values,
11986# but we know of no workaround that is simple, portable, and efficient.
11987# So, don't put newlines in cache variables' values.
11988# Ultrix sh set writes to stderr and can't be redirected directly,
11989# and sets the high bit in the cache file unless we assign to the vars.
11990{
11991 (set) 2>&1 |
11992 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11993 *ac_space=\ *)
11994 # `set' does not quote correctly, so add quotes (double-quote
11995 # substitution turns \\\\ into \\, and sed turns \\ into \).
11996 sed -n \
ac1cb8d3
VS
11997 "s/'/'\\\\''/g;
11998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11999 ;;
12000 *)
12001 # `set' quotes correctly as required by POSIX, so do not add quotes.
12002 sed -n \
ac1cb8d3 12003 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
12004 ;;
12005 esac;
12006} |
12007 sed '
12008 t clear
12009 : clear
12010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12011 t end
12012 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12013 : end' >>confcache
12014if diff $cache_file confcache >/dev/null 2>&1; then :; else
12015 if test -w $cache_file; then
12016 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12017 cat confcache >$cache_file
12018 else
12019 echo "not updating unwritable cache $cache_file"
12020 fi
12021fi
12022rm -f confcache
12023
a848cd7e 12024CFLAGS=${CFLAGS:=}
6dcfc289
DE
12025
12026
3006edc0 12027
6dcfc289 12028 ac_ext=c
a848cd7e
SC
12029ac_cpp='$CPP $CPPFLAGS'
12030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033if test -n "$ac_tool_prefix"; then
12034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12035set dummy ${ac_tool_prefix}gcc; ac_word=$2
12036echo "$as_me:$LINENO: checking for $ac_word" >&5
12037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12038if test "${ac_cv_prog_CC+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040else
12041 if test -n "$CC"; then
12042 ac_cv_prog_CC="$CC" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055done
12056done
12057
12058fi
12059fi
12060CC=$ac_cv_prog_CC
12061if test -n "$CC"; then
12062 echo "$as_me:$LINENO: result: $CC" >&5
12063echo "${ECHO_T}$CC" >&6
12064else
12065 echo "$as_me:$LINENO: result: no" >&5
12066echo "${ECHO_T}no" >&6
12067fi
12068
12069fi
12070if test -z "$ac_cv_prog_CC"; then
12071 ac_ct_CC=$CC
12072 # Extract the first word of "gcc", so it can be a program name with args.
12073set dummy gcc; ac_word=$2
12074echo "$as_me:$LINENO: checking for $ac_word" >&5
12075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 if test -n "$ac_ct_CC"; then
12080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12081else
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_prog_ac_ct_CC="gcc"
12090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12092 fi
12093done
12094done
12095
12096fi
12097fi
12098ac_ct_CC=$ac_cv_prog_ac_ct_CC
12099if test -n "$ac_ct_CC"; then
12100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12101echo "${ECHO_T}$ac_ct_CC" >&6
12102else
12103 echo "$as_me:$LINENO: result: no" >&5
12104echo "${ECHO_T}no" >&6
12105fi
12106
12107 CC=$ac_ct_CC
12108else
12109 CC="$ac_cv_prog_CC"
12110fi
12111
12112if test -z "$CC"; then
12113 if test -n "$ac_tool_prefix"; then
12114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12115set dummy ${ac_tool_prefix}cc; ac_word=$2
12116echo "$as_me:$LINENO: checking for $ac_word" >&5
12117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12118if test "${ac_cv_prog_CC+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120else
12121 if test -n "$CC"; then
12122 ac_cv_prog_CC="$CC" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_CC="${ac_tool_prefix}cc"
12132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136done
12137
12138fi
12139fi
12140CC=$ac_cv_prog_CC
12141if test -n "$CC"; then
12142 echo "$as_me:$LINENO: result: $CC" >&5
12143echo "${ECHO_T}$CC" >&6
12144else
12145 echo "$as_me:$LINENO: result: no" >&5
12146echo "${ECHO_T}no" >&6
12147fi
12148
12149fi
12150if test -z "$ac_cv_prog_CC"; then
12151 ac_ct_CC=$CC
12152 # Extract the first word of "cc", so it can be a program name with args.
12153set dummy cc; ac_word=$2
12154echo "$as_me:$LINENO: checking for $ac_word" >&5
12155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159 if test -n "$ac_ct_CC"; then
12160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12161else
12162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163for as_dir in $PATH
12164do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_ac_ct_CC="cc"
12170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173done
12174done
12175
12176fi
12177fi
12178ac_ct_CC=$ac_cv_prog_ac_ct_CC
12179if test -n "$ac_ct_CC"; then
12180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12181echo "${ECHO_T}$ac_ct_CC" >&6
12182else
12183 echo "$as_me:$LINENO: result: no" >&5
12184echo "${ECHO_T}no" >&6
12185fi
12186
12187 CC=$ac_ct_CC
12188else
12189 CC="$ac_cv_prog_CC"
12190fi
12191
12192fi
12193if test -z "$CC"; then
12194 # Extract the first word of "cc", so it can be a program name with args.
12195set dummy cc; ac_word=$2
12196echo "$as_me:$LINENO: checking for $ac_word" >&5
12197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12198if test "${ac_cv_prog_CC+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201 if test -n "$CC"; then
12202 ac_cv_prog_CC="$CC" # Let the user override the test.
12203else
12204 ac_prog_rejected=no
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12213 ac_prog_rejected=yes
12214 continue
12215 fi
12216 ac_cv_prog_CC="cc"
12217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12219 fi
12220done
12221done
12222
12223if test $ac_prog_rejected = yes; then
12224 # We found a bogon in the path, so make sure we never use it.
12225 set dummy $ac_cv_prog_CC
12226 shift
12227 if test $# != 0; then
12228 # We chose a different compiler from the bogus one.
12229 # However, it has the same basename, so the bogon will be chosen
12230 # first if we set CC to just the basename; use the full file name.
12231 shift
12232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12233 fi
12234fi
12235fi
12236fi
12237CC=$ac_cv_prog_CC
12238if test -n "$CC"; then
12239 echo "$as_me:$LINENO: result: $CC" >&5
12240echo "${ECHO_T}$CC" >&6
12241else
12242 echo "$as_me:$LINENO: result: no" >&5
12243echo "${ECHO_T}no" >&6
12244fi
12245
12246fi
12247if test -z "$CC"; then
12248 if test -n "$ac_tool_prefix"; then
12249 for ac_prog in cl
12250 do
12251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12253echo "$as_me:$LINENO: checking for $ac_word" >&5
12254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12255if test "${ac_cv_prog_CC+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258 if test -n "$CC"; then
12259 ac_cv_prog_CC="$CC" # Let the user override the test.
12260else
12261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12271 fi
12272done
12273done
12274
12275fi
12276fi
12277CC=$ac_cv_prog_CC
12278if test -n "$CC"; then
12279 echo "$as_me:$LINENO: result: $CC" >&5
12280echo "${ECHO_T}$CC" >&6
12281else
12282 echo "$as_me:$LINENO: result: no" >&5
12283echo "${ECHO_T}no" >&6
12284fi
12285
12286 test -n "$CC" && break
12287 done
12288fi
12289if test -z "$CC"; then
12290 ac_ct_CC=$CC
12291 for ac_prog in cl
12292do
12293 # Extract the first word of "$ac_prog", so it can be a program name with args.
12294set dummy $ac_prog; ac_word=$2
12295echo "$as_me:$LINENO: checking for $ac_word" >&5
12296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300 if test -n "$ac_ct_CC"; then
12301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12302else
12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_ac_ct_CC="$ac_prog"
12311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314done
12315done
12316
12317fi
12318fi
12319ac_ct_CC=$ac_cv_prog_ac_ct_CC
12320if test -n "$ac_ct_CC"; then
12321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12322echo "${ECHO_T}$ac_ct_CC" >&6
12323else
12324 echo "$as_me:$LINENO: result: no" >&5
12325echo "${ECHO_T}no" >&6
12326fi
12327
12328 test -n "$ac_ct_CC" && break
12329done
12330
12331 CC=$ac_ct_CC
12332fi
12333
12334fi
12335
12336
12337test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12338See \`config.log' for more details." >&5
12339echo "$as_me: error: no acceptable C compiler found in \$PATH
12340See \`config.log' for more details." >&2;}
12341 { (exit 1); exit 1; }; }
12342
12343# Provide some information about the compiler.
12344echo "$as_me:$LINENO:" \
12345 "checking for C compiler version" >&5
12346ac_compiler=`set X $ac_compile; echo $2`
12347{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12348 (eval $ac_compiler --version </dev/null >&5) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }
12352{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12353 (eval $ac_compiler -v </dev/null >&5) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }
12357{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12358 (eval $ac_compiler -V </dev/null >&5) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }
12362
12363cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369
12370int
12371main ()
12372{
12373
12374 ;
12375 return 0;
12376}
12377_ACEOF
12378ac_clean_files_save=$ac_clean_files
12379ac_clean_files="$ac_clean_files a.out a.exe b.out"
12380# Try to create an executable without -o first, disregard a.out.
12381# It will help us diagnose broken compilers, and finding out an intuition
12382# of exeext.
ac1cb8d3
VS
12383echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12384echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12385ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12386if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12387 (eval $ac_link_default) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; then
12391 # Find the output, starting from the most likely. This scheme is
12392# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12393# resort.
12394
12395# Be careful to initialize this variable, since it used to be cached.
12396# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12397ac_cv_exeext=
12398# b.out is created by i960 compilers.
12399for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12400do
12401 test -f "$ac_file" || continue
12402 case $ac_file in
12403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12404 ;;
a848cd7e 12405 conftest.$ac_ext )
ac1cb8d3
VS
12406 # This is the source file.
12407 ;;
a848cd7e 12408 [ab].out )
ac1cb8d3
VS
12409 # We found the default executable, but exeext='' is most
12410 # certainly right.
12411 break;;
a848cd7e 12412 *.* )
ac1cb8d3
VS
12413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12414 # FIXME: I believe we export ac_cv_exeext for Libtool,
12415 # but it would be cool to find out if it's true. Does anybody
12416 # maintain Libtool? --akim.
12417 export ac_cv_exeext
12418 break;;
a848cd7e 12419 * )
ac1cb8d3 12420 break;;
a848cd7e
SC
12421 esac
12422done
12423else
12424 echo "$as_me: failed program was:" >&5
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
12427{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12428See \`config.log' for more details." >&5
12429echo "$as_me: error: C compiler cannot create executables
12430See \`config.log' for more details." >&2;}
12431 { (exit 77); exit 77; }; }
12432fi
12433
12434ac_exeext=$ac_cv_exeext
12435echo "$as_me:$LINENO: result: $ac_file" >&5
12436echo "${ECHO_T}$ac_file" >&6
12437
12438# Check the compiler produces executables we can run. If not, either
12439# the compiler is broken, or we cross compile.
12440echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12441echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12442# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12443# If not cross compiling, check that we can run a simple program.
12444if test "$cross_compiling" != yes; then
12445 if { ac_try='./$ac_file'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 cross_compiling=no
12452 else
12453 if test "$cross_compiling" = maybe; then
12454 cross_compiling=yes
12455 else
12456 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12457If you meant to cross compile, use \`--host'.
12458See \`config.log' for more details." >&5
12459echo "$as_me: error: cannot run C compiled programs.
12460If you meant to cross compile, use \`--host'.
12461See \`config.log' for more details." >&2;}
12462 { (exit 1); exit 1; }; }
12463 fi
12464 fi
12465fi
12466echo "$as_me:$LINENO: result: yes" >&5
12467echo "${ECHO_T}yes" >&6
12468
12469rm -f a.out a.exe conftest$ac_cv_exeext b.out
12470ac_clean_files=$ac_clean_files_save
12471# Check the compiler produces executables we can run. If not, either
12472# the compiler is broken, or we cross compile.
12473echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12474echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12475echo "$as_me:$LINENO: result: $cross_compiling" >&5
12476echo "${ECHO_T}$cross_compiling" >&6
12477
12478echo "$as_me:$LINENO: checking for suffix of executables" >&5
12479echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; then
12485 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12487# work properly (i.e., refer to `conftest.exe'), while it won't with
12488# `rm'.
12489for ac_file in conftest.exe conftest conftest.*; do
12490 test -f "$ac_file" || continue
12491 case $ac_file in
12492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12494 export ac_cv_exeext
12495 break;;
a848cd7e
SC
12496 * ) break;;
12497 esac
12498done
12499else
12500 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12501See \`config.log' for more details." >&5
12502echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12503See \`config.log' for more details." >&2;}
12504 { (exit 1); exit 1; }; }
12505fi
12506
12507rm -f conftest$ac_cv_exeext
12508echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12509echo "${ECHO_T}$ac_cv_exeext" >&6
12510
12511rm -f conftest.$ac_ext
12512EXEEXT=$ac_cv_exeext
12513ac_exeext=$EXEEXT
12514echo "$as_me:$LINENO: checking for suffix of object files" >&5
12515echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12516if test "${ac_cv_objext+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519 cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525
12526int
12527main ()
12528{
12529
12530 ;
12531 return 0;
12532}
12533_ACEOF
12534rm -f conftest.o conftest.obj
12535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; then
12540 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12541 case $ac_file in
12542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12544 break;;
12545 esac
12546done
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12552See \`config.log' for more details." >&5
12553echo "$as_me: error: cannot compute suffix of object files: cannot compile
12554See \`config.log' for more details." >&2;}
12555 { (exit 1); exit 1; }; }
12556fi
12557
12558rm -f conftest.$ac_cv_objext conftest.$ac_ext
12559fi
12560echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12561echo "${ECHO_T}$ac_cv_objext" >&6
12562OBJEXT=$ac_cv_objext
12563ac_objext=$OBJEXT
12564echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12565echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12566if test "${ac_cv_c_compiler_gnu+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 cat >conftest.$ac_ext <<_ACEOF
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575
12576int
12577main ()
12578{
12579#ifndef __GNUC__
12580 choke me
12581#endif
12582
12583 ;
12584 return 0;
12585}
12586_ACEOF
12587rm -f conftest.$ac_objext
12588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12589 (eval $ac_compile) 2>conftest.er1
a848cd7e 12590 ac_status=$?
ac1cb8d3
VS
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
a848cd7e
SC
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
bb9e79c0 12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } &&
12602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_compiler_gnu=yes
12609else
12610 echo "$as_me: failed program was:" >&5
12611sed 's/^/| /' conftest.$ac_ext >&5
12612
12613ac_compiler_gnu=no
12614fi
ac1cb8d3 12615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12616ac_cv_c_compiler_gnu=$ac_compiler_gnu
12617
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12620echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12621GCC=`test $ac_compiler_gnu = yes && echo yes`
12622ac_test_CFLAGS=${CFLAGS+set}
12623ac_save_CFLAGS=$CFLAGS
15291213 12624CFLAGS="-g"
a848cd7e
SC
12625echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12626echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12627if test "${ac_cv_prog_cc_g+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629else
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636
12637int
12638main ()
12639{
12640
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext
12646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12647 (eval $ac_compile) 2>conftest.er1
a848cd7e 12648 ac_status=$?
ac1cb8d3
VS
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
a848cd7e
SC
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
bb9e79c0 12654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_prog_cc_g=yes
12667else
12668 echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
12671ac_cv_prog_cc_g=no
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674fi
12675echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12676echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12677if test "$ac_test_CFLAGS" = set; then
12678 CFLAGS=$ac_save_CFLAGS
12679elif test $ac_cv_prog_cc_g = yes; then
12680 if test "$GCC" = yes; then
12681 CFLAGS="-g -O2"
12682 else
12683 CFLAGS="-g"
12684 fi
12685else
12686 if test "$GCC" = yes; then
12687 CFLAGS="-O2"
12688 else
12689 CFLAGS=
12690 fi
12691fi
12692echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12693echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12694if test "${ac_cv_prog_cc_stdc+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697 ac_cv_prog_cc_stdc=no
12698ac_save_CC=$CC
12699cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705#include <stdarg.h>
12706#include <stdio.h>
12707#include <sys/types.h>
12708#include <sys/stat.h>
12709/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12710struct buf { int x; };
12711FILE * (*rcsopen) (struct buf *, struct stat *, int);
12712static char *e (p, i)
12713 char **p;
12714 int i;
12715{
12716 return p[i];
12717}
12718static char *f (char * (*g) (char **, int), char **p, ...)
12719{
12720 char *s;
12721 va_list v;
12722 va_start (v,p);
12723 s = g (p, va_arg (v,int));
12724 va_end (v);
12725 return s;
12726}
ac1cb8d3
VS
12727
12728/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12729 function prototypes and stuff, but not '\xHH' hex character constants.
12730 These don't provoke an error unfortunately, instead are silently treated
12731 as 'x'. The following induces an error, until -std1 is added to get
12732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12733 array size at least. It's necessary to write '\x00'==0 to get something
12734 that's true only with -std1. */
12735int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12736
a848cd7e
SC
12737int test (int i, double x);
12738struct s1 {int (*f) (int a);};
12739struct s2 {int (*f) (double a);};
12740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12741int argc;
12742char **argv;
12743int
12744main ()
12745{
12746return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751# Don't try gcc -ansi; that turns off useful extensions and
12752# breaks some systems' header files.
12753# AIX -qlanglvl=ansi
12754# Ultrix and OSF/1 -std1
12755# HP-UX 10.20 and later -Ae
12756# HP-UX older versions -Aa -D_HPUX_SOURCE
12757# SVR4 -Xc -D__EXTENSIONS__
12758for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12759do
12760 CC="$ac_save_CC $ac_arg"
12761 rm -f conftest.$ac_objext
12762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12763 (eval $ac_compile) 2>conftest.er1
a848cd7e 12764 ac_status=$?
ac1cb8d3
VS
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
a848cd7e
SC
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
bb9e79c0 12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 ac_cv_prog_cc_stdc=$ac_arg
12783break
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788fi
ac1cb8d3 12789rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12790done
12791rm -f conftest.$ac_ext conftest.$ac_objext
12792CC=$ac_save_CC
12793
12794fi
12795
12796case "x$ac_cv_prog_cc_stdc" in
12797 x|xno)
12798 echo "$as_me:$LINENO: result: none needed" >&5
12799echo "${ECHO_T}none needed" >&6 ;;
12800 *)
12801 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12802echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12803 CC="$CC $ac_cv_prog_cc_stdc" ;;
12804esac
12805
12806# Some people use a C++ compiler to compile C. Since we use `exit',
12807# in C++ we need to declare it. In case someone uses the same compiler
12808# for both compiling C and C++ we need to have the C++ compiler decide
12809# the declaration of exit, since it's the most demanding environment.
12810cat >conftest.$ac_ext <<_ACEOF
12811#ifndef __cplusplus
12812 choke me
12813#endif
12814_ACEOF
12815rm -f conftest.$ac_objext
12816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12817 (eval $ac_compile) 2>conftest.er1
a848cd7e 12818 ac_status=$?
ac1cb8d3
VS
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
a848cd7e
SC
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
bb9e79c0 12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 for ac_declaration in \
ac1cb8d3 12837 '' \
a848cd7e
SC
12838 'extern "C" void std::exit (int) throw (); using std::exit;' \
12839 'extern "C" void std::exit (int); using std::exit;' \
12840 'extern "C" void exit (int) throw ();' \
12841 'extern "C" void exit (int);' \
12842 'void exit (int);'
12843do
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
de59c161 12850$ac_declaration
ac1cb8d3 12851#include <stdlib.h>
a848cd7e
SC
12852int
12853main ()
12854{
12855exit (42);
12856 ;
12857 return 0;
12858}
12859_ACEOF
12860rm -f conftest.$ac_objext
12861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12862 (eval $ac_compile) 2>conftest.er1
a848cd7e 12863 ac_status=$?
ac1cb8d3
VS
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
a848cd7e
SC
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } &&
bb9e79c0 12869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 :
12882else
12883 echo "$as_me: failed program was:" >&5
12884sed 's/^/| /' conftest.$ac_ext >&5
12885
12886continue
12887fi
ac1cb8d3 12888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12889 cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895$ac_declaration
12896int
12897main ()
12898{
12899exit (42);
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12906 (eval $ac_compile) 2>conftest.er1
a848cd7e 12907 ac_status=$?
ac1cb8d3
VS
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
a848cd7e
SC
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
bb9e79c0 12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 break
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930fi
ac1cb8d3 12931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12932done
12933rm -f conftest*
12934if test -n "$ac_declaration"; then
12935 echo '#ifdef __cplusplus' >>confdefs.h
12936 echo $ac_declaration >>confdefs.h
12937 echo '#endif' >>confdefs.h
12938fi
12939
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944fi
ac1cb8d3 12945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12946ac_ext=c
12947ac_cpp='$CPP $CPPFLAGS'
12948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951
ab0ad5f1
VZ
12952
12953
12954 ac_ext=c
12955ac_cpp='$CPP $CPPFLAGS'
12956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12958ac_compiler_gnu=$ac_cv_c_compiler_gnu
12959
12960 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12961echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12962if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964else
12965 cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971
12972int
12973main ()
12974{
12975
12976 #ifndef __INTEL_COMPILER
12977 choke me
12978 #endif
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
bb9e79c0 12993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 bakefile_cv_c_compiler___INTEL_COMPILER=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010bakefile_cv_c_compiler___INTEL_COMPILER=no
13011
13012fi
13013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014
13015
13016fi
13017echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13018echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
13019 ac_ext=c
13020ac_cpp='$CPP $CPPFLAGS'
13021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13023ac_compiler_gnu=$ac_cv_c_compiler_gnu
13024
13025 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13026 :; INTELCC=yes
13027 else
13028 :;
13029 fi
13030
13031
13032 if test "x$GCC" != "xyes"; then
3006edc0
VZ
13033 if test "xCC" = "xC"; then
13034 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 13035echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13036if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
13039 cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045
13046int
13047main ()
13048{
13049
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext conftest.$ac_ext.o
13055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; then
13060 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13061 case $ac_file in
13062 conftest.$ac_ext.o)
0093c2fc 13063 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13064 ;;
13065 *)
13066 ;;
13067 esac
13068done
13069else
13070 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13071See \`config.log' for more details." >&5
13072echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13073See \`config.log' for more details." >&2;}
13074 { (exit 1); exit 1; }; }
13075
13076fi
13077
13078rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13079
13080fi
0093c2fc
VZ
13081echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13082echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13083if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13084 if test "c" = "c"; then
0093c2fc 13085 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13086 fi
13087 if test "c" = "cxx"; then
0093c2fc 13088 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13089 fi
13090fi
13091
0093c2fc 13092 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13093 unset ac_cv_prog_cc_g
13094 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13095ac_save_CFLAGS=$CFLAGS
15291213 13096CFLAGS="-g"
480ccd21
DE
13097echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13099if test "${ac_cv_prog_cc_g+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
13102 cat >conftest.$ac_ext <<_ACEOF
13103/* confdefs.h. */
13104_ACEOF
13105cat confdefs.h >>conftest.$ac_ext
13106cat >>conftest.$ac_ext <<_ACEOF
13107/* end confdefs.h. */
13108
13109int
13110main ()
13111{
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
bb9e79c0 13126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_prog_cc_g=yes
13139else
13140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143ac_cv_prog_cc_g=no
13144fi
13145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13146fi
13147echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13148echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13149if test "$ac_test_CFLAGS" = set; then
13150 CFLAGS=$ac_save_CFLAGS
13151elif test $ac_cv_prog_cc_g = yes; then
13152 if test "$GCC" = yes; then
13153 CFLAGS="-g -O2"
13154 else
13155 CFLAGS="-g"
13156 fi
13157else
13158 if test "$GCC" = yes; then
13159 CFLAGS="-O2"
13160 else
13161 CFLAGS=
13162 fi
13163fi
3006edc0 13164 fi
ab0ad5f1 13165 fi
3006edc0
VZ
13166
13167 case `uname -s` in
13168 AIX*)
13169 ac_ext=c
13170ac_cpp='$CPP $CPPFLAGS'
13171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173ac_compiler_gnu=$ac_cv_c_compiler_gnu
13174
13175echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13176echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13177if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180 cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186
13187int
13188main ()
13189{
13190#ifndef __xlC__
13191 choke me
13192#endif
13193
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext
13199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
bb9e79c0 13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
0093c2fc 13219 bakefile_compiler_xlc=yes
3006edc0
VZ
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
0093c2fc 13224bakefile_compiler_xlc=no
3006edc0
VZ
13225fi
13226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13227 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13228
13229fi
0093c2fc
VZ
13230echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13231echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13232
0093c2fc 13233XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13234ac_ext=c
13235ac_cpp='$CPP $CPPFLAGS'
13236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239
13240
13241 ;;
13242
13243 Darwin)
13244 ac_ext=c
95986553
DE
13245ac_cpp='$CPP $CPPFLAGS'
13246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248ac_compiler_gnu=$ac_cv_c_compiler_gnu
13249
13250echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13251echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13252if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254else
13255 cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261
13262int
13263main ()
13264{
13265#ifndef __MWERKS__
13266 choke me
13267#endif
13268
13269 ;
13270 return 0;
13271}
13272_ACEOF
13273rm -f conftest.$ac_objext
13274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
bb9e79c0 13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest.$ac_objext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294 bakefile_compiler_mwerks=yes
13295else
13296 echo "$as_me: failed program was:" >&5
13297sed 's/^/| /' conftest.$ac_ext >&5
13298
13299bakefile_compiler_mwerks=no
13300fi
13301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13302 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13303
13304fi
13305echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13306echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13307
0e6fa1d9 13308MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13309ac_ext=c
13310ac_cpp='$CPP $CPPFLAGS'
13311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13313ac_compiler_gnu=$ac_cv_c_compiler_gnu
13314
13315
3006edc0 13316 ac_ext=c
9273ffba
DE
13317ac_cpp='$CPP $CPPFLAGS'
13318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320ac_compiler_gnu=$ac_cv_c_compiler_gnu
13321
13322echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13323echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13324if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
13333
13334int
13335main ()
13336{
13337#ifndef __xlC__
13338 choke me
13339#endif
13340
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345rm -f conftest.$ac_objext
13346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347 (eval $ac_compile) 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
bb9e79c0 13354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
0093c2fc 13366 bakefile_compiler_xlc=yes
9273ffba
DE
13367else
13368 echo "$as_me: failed program was:" >&5
13369sed 's/^/| /' conftest.$ac_ext >&5
13370
0093c2fc 13371bakefile_compiler_xlc=no
9273ffba
DE
13372fi
13373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13374 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13375
13376fi
0093c2fc
VZ
13377echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13378echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13379
0093c2fc 13380XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13381ac_ext=c
13382ac_cpp='$CPP $CPPFLAGS'
13383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385ac_compiler_gnu=$ac_cv_c_compiler_gnu
13386
13387
3006edc0
VZ
13388 ;;
13389
13390 IRIX*)
a848cd7e 13391
6dcfc289 13392
0ad5d837
VZ
13393 ac_ext=c
13394ac_cpp='$CPP $CPPFLAGS'
13395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13397ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398
13399 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13400echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13401if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403else
13404 cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
13410
13411int
13412main ()
13413{
13414
13415 #ifndef _SGI_COMPILER_VERSION
13416 choke me
13417 #endif
13418
13419 ;
13420 return 0;
13421}
13422_ACEOF
13423rm -f conftest.$ac_objext
13424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
bb9e79c0 13432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13450
13451fi
13452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453
13454
13455fi
13456echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13457echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13458 ac_ext=c
13459ac_cpp='$CPP $CPPFLAGS'
13460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462ac_compiler_gnu=$ac_cv_c_compiler_gnu
13463
13464 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13465 :; SGICC=yes
13466 else
13467 :;
13468 fi
13469
13470
3006edc0
VZ
13471 ;;
13472
0093c2fc 13473 HP-UX*)
3006edc0
VZ
13474
13475
13476 ac_ext=c
13477ac_cpp='$CPP $CPPFLAGS'
13478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13480ac_compiler_gnu=$ac_cv_c_compiler_gnu
13481
0093c2fc
VZ
13482 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13483echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13484if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 cat >conftest.$ac_ext <<_ACEOF
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
13493
13494int
13495main ()
13496{
13497
0093c2fc 13498 #ifndef __HP_cc
3006edc0
VZ
13499 choke me
13500 #endif
13501
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
bb9e79c0 13515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
0093c2fc 13527 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
0093c2fc 13532bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13533
13534fi
13535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13536
13537
13538fi
0093c2fc
VZ
13539echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13540echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13541 ac_ext=c
13542ac_cpp='$CPP $CPPFLAGS'
13543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545ac_compiler_gnu=$ac_cv_c_compiler_gnu
13546
0093c2fc
VZ
13547 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13548 :; HPCC=yes
a1aa0349
VZ
13549 else
13550 :;
13551 fi
13552
13553
13554 ;;
13555
0093c2fc 13556 OSF1)
a1aa0349
VZ
13557
13558
13559 ac_ext=c
13560ac_cpp='$CPP $CPPFLAGS'
13561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13563ac_compiler_gnu=$ac_cv_c_compiler_gnu
13564
0093c2fc
VZ
13565 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13566echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13567if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570 cat >conftest.$ac_ext <<_ACEOF
13571/* confdefs.h. */
13572_ACEOF
13573cat confdefs.h >>conftest.$ac_ext
13574cat >>conftest.$ac_ext <<_ACEOF
13575/* end confdefs.h. */
13576
13577int
13578main ()
13579{
13580
0093c2fc 13581 #ifndef __DECC
a1aa0349
VZ
13582 choke me
13583 #endif
13584
13585 ;
13586 return 0;
13587}
13588_ACEOF
13589rm -f conftest.$ac_objext
13590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
bb9e79c0 13598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; } &&
13604 { ac_try='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
0093c2fc 13610 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13611else
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
0093c2fc 13615bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13616
13617fi
13618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619
13620
13621fi
0093c2fc
VZ
13622echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13623echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13624 ac_ext=c
13625ac_cpp='$CPP $CPPFLAGS'
13626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628ac_compiler_gnu=$ac_cv_c_compiler_gnu
13629
0093c2fc
VZ
13630 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13631 :; COMPAQCC=yes
13632 else
13633 :;
13634 fi
13635
13636
13637 ;;
13638
13639 SunOS)
13640
13641
13642 ac_ext=c
13643ac_cpp='$CPP $CPPFLAGS'
13644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646ac_compiler_gnu=$ac_cv_c_compiler_gnu
13647
13648 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13649echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13650if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652else
13653 cat >conftest.$ac_ext <<_ACEOF
13654/* confdefs.h. */
13655_ACEOF
13656cat confdefs.h >>conftest.$ac_ext
13657cat >>conftest.$ac_ext <<_ACEOF
13658/* end confdefs.h. */
13659
13660int
13661main ()
13662{
13663
13664 #ifndef __SUNPRO_C
13665 choke me
13666 #endif
13667
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672rm -f conftest.$ac_objext
13673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
bb9e79c0 13681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest.$ac_objext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 bakefile_cv_c_compiler___SUNPRO_C=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698bakefile_cv_c_compiler___SUNPRO_C=no
13699
13700fi
13701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13702
13703
13704fi
13705echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13706echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13707 ac_ext=c
13708ac_cpp='$CPP $CPPFLAGS'
13709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712
13713 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13714 :; SUNCC=yes
3006edc0
VZ
13715 else
13716 :;
13717 fi
13718
13719
13720 ;;
13721 esac
ab0ad5f1 13722 fi
a9e5b1f0
MW
13723
13724
3006edc0 13725
a848cd7e
SC
13726ac_ext=c
13727ac_cpp='$CPP $CPPFLAGS'
13728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13730ac_compiler_gnu=$ac_cv_c_compiler_gnu
13731echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13732echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13733# On Suns, sometimes $CPP names a directory.
13734if test -n "$CPP" && test -d "$CPP"; then
13735 CPP=
13736fi
13737if test -z "$CPP"; then
13738 if test "${ac_cv_prog_CPP+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741 # Double quotes because CPP needs to be expanded
13742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13743 do
13744 ac_preproc_ok=false
13745for ac_c_preproc_warn_flag in '' yes
13746do
13747 # Use a header file that comes with gcc, so configuring glibc
13748 # with a fresh cross-compiler works.
13749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13750 # <limits.h> exists even on freestanding compilers.
13751 # On the NeXT, cc -E runs the code through the compiler's parser,
13752 # not just through cpp. "Syntax error" is here to catch this case.
13753 cat >conftest.$ac_ext <<_ACEOF
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
13759#ifdef __STDC__
13760# include <limits.h>
13761#else
13762# include <assert.h>
13763#endif
ac1cb8d3 13764 Syntax error
a848cd7e
SC
13765_ACEOF
13766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } >/dev/null; then
13774 if test -s conftest.err; then
13775 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13777 else
13778 ac_cpp_err=
13779 fi
13780else
13781 ac_cpp_err=yes
13782fi
13783if test -z "$ac_cpp_err"; then
13784 :
13785else
13786 echo "$as_me: failed program was:" >&5
13787sed 's/^/| /' conftest.$ac_ext >&5
13788
13789 # Broken: fails on valid input.
13790continue
13791fi
13792rm -f conftest.err conftest.$ac_ext
13793
13794 # OK, works on sane cases. Now check whether non-existent headers
13795 # can be detected and how.
13796 cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802#include <ac_nonexistent.h>
13803_ACEOF
13804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null; then
13812 if test -s conftest.err; then
13813 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13815 else
13816 ac_cpp_err=
13817 fi
13818else
13819 ac_cpp_err=yes
13820fi
13821if test -z "$ac_cpp_err"; then
13822 # Broken: success on invalid input.
13823continue
13824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 # Passes both tests.
13829ac_preproc_ok=:
13830break
13831fi
13832rm -f conftest.err conftest.$ac_ext
13833
13834done
13835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13836rm -f conftest.err conftest.$ac_ext
13837if $ac_preproc_ok; then
13838 break
13839fi
13840
13841 done
13842 ac_cv_prog_CPP=$CPP
13843
13844fi
13845 CPP=$ac_cv_prog_CPP
13846else
13847 ac_cv_prog_CPP=$CPP
13848fi
13849echo "$as_me:$LINENO: result: $CPP" >&5
13850echo "${ECHO_T}$CPP" >&6
13851ac_preproc_ok=false
13852for ac_c_preproc_warn_flag in '' yes
13853do
13854 # Use a header file that comes with gcc, so configuring glibc
13855 # with a fresh cross-compiler works.
13856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857 # <limits.h> exists even on freestanding compilers.
13858 # On the NeXT, cc -E runs the code through the compiler's parser,
13859 # not just through cpp. "Syntax error" is here to catch this case.
13860 cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866#ifdef __STDC__
13867# include <limits.h>
13868#else
13869# include <assert.h>
13870#endif
ac1cb8d3 13871 Syntax error
a848cd7e
SC
13872_ACEOF
13873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } >/dev/null; then
13881 if test -s conftest.err; then
13882 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13884 else
13885 ac_cpp_err=
13886 fi
13887else
13888 ac_cpp_err=yes
13889fi
13890if test -z "$ac_cpp_err"; then
13891 :
13892else
13893 echo "$as_me: failed program was:" >&5
13894sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 # Broken: fails on valid input.
13897continue
13898fi
13899rm -f conftest.err conftest.$ac_ext
13900
13901 # OK, works on sane cases. Now check whether non-existent headers
13902 # can be detected and how.
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <ac_nonexistent.h>
13910_ACEOF
13911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } >/dev/null; then
13919 if test -s conftest.err; then
13920 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13922 else
13923 ac_cpp_err=
13924 fi
13925else
13926 ac_cpp_err=yes
13927fi
13928if test -z "$ac_cpp_err"; then
13929 # Broken: success on invalid input.
13930continue
13931else
13932 echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 # Passes both tests.
13936ac_preproc_ok=:
13937break
13938fi
13939rm -f conftest.err conftest.$ac_ext
13940
13941done
13942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13943rm -f conftest.err conftest.$ac_ext
13944if $ac_preproc_ok; then
13945 :
13946else
13947 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13948See \`config.log' for more details." >&5
13949echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13950See \`config.log' for more details." >&2;}
13951 { (exit 1); exit 1; }; }
13952fi
13953
13954ac_ext=c
13955ac_cpp='$CPP $CPPFLAGS'
13956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958ac_compiler_gnu=$ac_cv_c_compiler_gnu
13959
13960
13961echo "$as_me:$LINENO: checking for egrep" >&5
13962echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13963if test "${ac_cv_prog_egrep+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965else
13966 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13967 then ac_cv_prog_egrep='grep -E'
13968 else ac_cv_prog_egrep='egrep'
13969 fi
13970fi
13971echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13972echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13973 EGREP=$ac_cv_prog_egrep
13974
13975
13976if test $ac_cv_c_compiler_gnu = yes; then
13977 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13978echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13979if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
13982 ac_pattern="Autoconf.*'x'"
13983 cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989#include <sgtty.h>
13990Autoconf TIOCGETP
13991_ACEOF
13992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13993 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13994 ac_cv_prog_gcc_traditional=yes
13995else
13996 ac_cv_prog_gcc_traditional=no
13997fi
13998rm -f conftest*
13999
14000
14001 if test $ac_cv_prog_gcc_traditional = no; then
14002 cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008#include <termio.h>
14009Autoconf TCGETA
14010_ACEOF
14011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14012 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14013 ac_cv_prog_gcc_traditional=yes
14014fi
14015rm -f conftest*
14016
14017 fi
14018fi
14019echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14020echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14021 if test $ac_cv_prog_gcc_traditional = yes; then
14022 CC="$CC -traditional"
14023 fi
14024fi
14025
14026
a848cd7e
SC
14027ac_ext=cc
14028ac_cpp='$CXXCPP $CPPFLAGS'
14029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14032
14033
14034CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
14035
14036
3006edc0 14037
6dcfc289 14038 ac_ext=cc
a848cd7e
SC
14039ac_cpp='$CXXCPP $CPPFLAGS'
14040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14043if test -n "$ac_tool_prefix"; then
14044 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14045 do
14046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14048echo "$as_me:$LINENO: checking for $ac_word" >&5
14049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14050if test "${ac_cv_prog_CXX+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 if test -n "$CXX"; then
14054 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14055else
14056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057for as_dir in $PATH
14058do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067done
14068done
14069
14070fi
14071fi
14072CXX=$ac_cv_prog_CXX
14073if test -n "$CXX"; then
14074 echo "$as_me:$LINENO: result: $CXX" >&5
14075echo "${ECHO_T}$CXX" >&6
14076else
14077 echo "$as_me:$LINENO: result: no" >&5
14078echo "${ECHO_T}no" >&6
14079fi
14080
14081 test -n "$CXX" && break
14082 done
14083fi
14084if test -z "$CXX"; then
14085 ac_ct_CXX=$CXX
14086 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14087do
14088 # Extract the first word of "$ac_prog", so it can be a program name with args.
14089set dummy $ac_prog; ac_word=$2
14090echo "$as_me:$LINENO: checking for $ac_word" >&5
14091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094else
14095 if test -n "$ac_ct_CXX"; then
14096 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14097else
14098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099for as_dir in $PATH
14100do
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_ac_ct_CXX="$ac_prog"
14106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14108 fi
14109done
14110done
14111
14112fi
14113fi
14114ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14115if test -n "$ac_ct_CXX"; then
14116 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14117echo "${ECHO_T}$ac_ct_CXX" >&6
14118else
14119 echo "$as_me:$LINENO: result: no" >&5
14120echo "${ECHO_T}no" >&6
14121fi
14122
14123 test -n "$ac_ct_CXX" && break
14124done
14125test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14126
14127 CXX=$ac_ct_CXX
14128fi
14129
14130
14131# Provide some information about the compiler.
14132echo "$as_me:$LINENO:" \
14133 "checking for C++ compiler version" >&5
14134ac_compiler=`set X $ac_compile; echo $2`
14135{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14136 (eval $ac_compiler --version </dev/null >&5) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }
14140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14141 (eval $ac_compiler -v </dev/null >&5) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }
14145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14146 (eval $ac_compiler -V </dev/null >&5) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }
14150
14151echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14152echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14153if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155else
14156 cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162
14163int
14164main ()
14165{
14166#ifndef __GNUC__
14167 choke me
14168#endif
14169
14170 ;
14171 return 0;
14172}
14173_ACEOF
14174rm -f conftest.$ac_objext
14175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14176 (eval $ac_compile) 2>conftest.er1
a848cd7e 14177 ac_status=$?
ac1cb8d3
VS
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
a848cd7e
SC
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
bb9e79c0 14183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_compiler_gnu=yes
14196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200ac_compiler_gnu=no
14201fi
ac1cb8d3 14202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14203ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14204
14205fi
14206echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14207echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14208GXX=`test $ac_compiler_gnu = yes && echo yes`
14209ac_test_CXXFLAGS=${CXXFLAGS+set}
14210ac_save_CXXFLAGS=$CXXFLAGS
14211CXXFLAGS="-g"
14212echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14213echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14214if test "${ac_cv_prog_cxx_g+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216else
14217 cat >conftest.$ac_ext <<_ACEOF
14218/* confdefs.h. */
14219_ACEOF
14220cat confdefs.h >>conftest.$ac_ext
14221cat >>conftest.$ac_ext <<_ACEOF
14222/* end confdefs.h. */
14223
14224int
14225main ()
14226{
14227
14228 ;
14229 return 0;
14230}
14231_ACEOF
14232rm -f conftest.$ac_objext
14233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14234 (eval $ac_compile) 2>conftest.er1
a848cd7e 14235 ac_status=$?
ac1cb8d3
VS
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
a848cd7e
SC
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
bb9e79c0 14241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_cv_prog_cxx_g=yes
14254else
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
14258ac_cv_prog_cxx_g=no
14259fi
ac1cb8d3 14260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14261fi
14262echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14263echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14264if test "$ac_test_CXXFLAGS" = set; then
14265 CXXFLAGS=$ac_save_CXXFLAGS
14266elif test $ac_cv_prog_cxx_g = yes; then
14267 if test "$GXX" = yes; then
15291213 14268 CXXFLAGS="-g -O2"
a848cd7e 14269 else
15291213 14270 CXXFLAGS="-g"
a848cd7e
SC
14271 fi
14272else
14273 if test "$GXX" = yes; then
14274 CXXFLAGS="-O2"
14275 else
14276 CXXFLAGS=
14277 fi
14278fi
14279for ac_declaration in \
ac1cb8d3 14280 '' \
a848cd7e
SC
14281 'extern "C" void std::exit (int) throw (); using std::exit;' \
14282 'extern "C" void std::exit (int); using std::exit;' \
14283 'extern "C" void exit (int) throw ();' \
14284 'extern "C" void exit (int);' \
14285 'void exit (int);'
14286do
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
de59c161 14293$ac_declaration
ac1cb8d3 14294#include <stdlib.h>
a848cd7e
SC
14295int
14296main ()
14297{
14298exit (42);
14299 ;
14300 return 0;
14301}
14302_ACEOF
14303rm -f conftest.$ac_objext
14304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14305 (eval $ac_compile) 2>conftest.er1
a848cd7e 14306 ac_status=$?
ac1cb8d3
VS
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
a848cd7e
SC
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
bb9e79c0 14312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 :
14325else
14326 echo "$as_me: failed program was:" >&5
14327sed 's/^/| /' conftest.$ac_ext >&5
14328
14329continue
14330fi
ac1cb8d3 14331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14332 cat >conftest.$ac_ext <<_ACEOF
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
14338$ac_declaration
14339int
14340main ()
14341{
14342exit (42);
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext
14348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14349 (eval $ac_compile) 2>conftest.er1
a848cd7e 14350 ac_status=$?
ac1cb8d3
VS
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
a848cd7e
SC
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
bb9e79c0 14356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 break
14369else
14370 echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373fi
ac1cb8d3 14374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14375done
14376rm -f conftest*
14377if test -n "$ac_declaration"; then
14378 echo '#ifdef __cplusplus' >>confdefs.h
14379 echo $ac_declaration >>confdefs.h
14380 echo '#endif' >>confdefs.h
14381fi
14382
14383ac_ext=cc
14384ac_cpp='$CXXCPP $CPPFLAGS'
14385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14388
ab0ad5f1
VZ
14389
14390
14391 ac_ext=cc
14392ac_cpp='$CXXCPP $CPPFLAGS'
14393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14396
14397 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14398echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14399if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408
14409int
14410main ()
14411{
14412
14413 #ifndef __INTEL_COMPILER
14414 choke me
14415 #endif
14416
14417 ;
14418 return 0;
14419}
14420_ACEOF
14421rm -f conftest.$ac_objext
14422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
bb9e79c0 14430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14443else
14444 echo "$as_me: failed program was:" >&5
14445sed 's/^/| /' conftest.$ac_ext >&5
14446
14447bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14448
14449fi
14450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451
14452
14453fi
14454echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14455echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14456 ac_ext=cc
14457ac_cpp='$CXXCPP $CPPFLAGS'
14458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14461
14462 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14463 :; INTELCXX=yes
14464 else
14465 :;
14466 fi
14467
14468
3006edc0
VZ
14469 if test "x$GCXX" != "xyes"; then
14470 if test "xCXX" = "xC"; then
14471 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14472echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14473if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475else
14476 cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h. */
14482
14483int
14484main ()
14485{
14486
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext conftest.$ac_ext.o
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; then
14497 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14498 case $ac_file in
14499 conftest.$ac_ext.o)
0093c2fc 14500 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14501 ;;
14502 *)
14503 ;;
14504 esac
14505done
14506else
14507 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14508See \`config.log' for more details." >&5
14509echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14510See \`config.log' for more details." >&2;}
14511 { (exit 1); exit 1; }; }
14512
14513fi
14514
14515rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14516
14517fi
0093c2fc
VZ
14518echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14519echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14520if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14521 if test "cxx" = "c"; then
0093c2fc 14522 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14523 fi
14524 if test "cxx" = "cxx"; then
0093c2fc 14525 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14526 fi
14527fi
14528
0093c2fc 14529 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14530 unset ac_cv_prog_cc_g
14531 ac_test_CFLAGS=${CFLAGS+set}
14532ac_save_CFLAGS=$CFLAGS
15291213 14533CFLAGS="-g"
3006edc0
VZ
14534echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14535echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14536if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545
14546int
14547main ()
14548{
14549
14550 ;
14551 return 0;
14552}
14553_ACEOF
14554rm -f conftest.$ac_objext
14555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
bb9e79c0 14563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
3006edc0 14575 ac_cv_prog_cc_g=yes
480ccd21
DE
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
3006edc0 14580ac_cv_prog_cc_g=no
480ccd21
DE
14581fi
14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14583fi
3006edc0
VZ
14584echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14585echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14586if test "$ac_test_CFLAGS" = set; then
14587 CFLAGS=$ac_save_CFLAGS
14588elif test $ac_cv_prog_cc_g = yes; then
14589 if test "$GCC" = yes; then
14590 CFLAGS="-g -O2"
480ccd21 14591 else
3006edc0 14592 CFLAGS="-g"
480ccd21
DE
14593 fi
14594else
3006edc0
VZ
14595 if test "$GCC" = yes; then
14596 CFLAGS="-O2"
480ccd21 14597 else
3006edc0 14598 CFLAGS=
480ccd21
DE
14599 fi
14600fi
3006edc0 14601 fi
ab0ad5f1 14602 fi
3006edc0
VZ
14603
14604 case `uname -s` in
14605 AIX*)
14606 ac_ext=cc
14607ac_cpp='$CXXCPP $CPPFLAGS'
14608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14611
14612echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14613echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14614if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616else
14617 cat >conftest.$ac_ext <<_ACEOF
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623
14624int
14625main ()
14626{
14627#ifndef __xlC__
14628 choke me
14629#endif
14630
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635rm -f conftest.$ac_objext
14636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
bb9e79c0 14644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
0093c2fc 14656 bakefile_compiler_xlc=yes
3006edc0
VZ
14657else
14658 echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
0093c2fc 14661bakefile_compiler_xlc=no
3006edc0
VZ
14662fi
14663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14664 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14665
14666fi
0093c2fc
VZ
14667echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14668echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14669
0093c2fc 14670XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14671ac_ext=cc
14672ac_cpp='$CXXCPP $CPPFLAGS'
14673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14676
14677
14678 ;;
14679
14680 Darwin)
14681 ac_ext=cc
95986553
DE
14682ac_cpp='$CXXCPP $CPPFLAGS'
14683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14686
14687echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14688echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14689if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698
14699int
14700main ()
14701{
14702#ifndef __MWERKS__
14703 choke me
14704#endif
14705
14706 ;
14707 return 0;
14708}
14709_ACEOF
14710rm -f conftest.$ac_objext
14711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>conftest.er1
14713 ac_status=$?
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
bb9e79c0 14719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 bakefile_compiler_mwerks=yes
14732else
14733 echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
14736bakefile_compiler_mwerks=no
14737fi
14738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14739 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14740
14741fi
14742echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14743echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14744
0e6fa1d9 14745MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14746ac_ext=cc
14747ac_cpp='$CXXCPP $CPPFLAGS'
14748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14751
14752
3006edc0 14753 ac_ext=cc
9273ffba
DE
14754ac_cpp='$CXXCPP $CPPFLAGS'
14755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14758
14759echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14760echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14761if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763else
14764 cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
14770
14771int
14772main ()
14773{
14774#ifndef __xlC__
14775 choke me
14776#endif
14777
14778 ;
14779 return 0;
14780}
14781_ACEOF
14782rm -f conftest.$ac_objext
14783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
bb9e79c0 14791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
0093c2fc 14803 bakefile_compiler_xlc=yes
9273ffba
DE
14804else
14805 echo "$as_me: failed program was:" >&5
14806sed 's/^/| /' conftest.$ac_ext >&5
14807
0093c2fc 14808bakefile_compiler_xlc=no
9273ffba
DE
14809fi
14810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14811 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14812
14813fi
0093c2fc
VZ
14814echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14815echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14816
0093c2fc 14817XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14818ac_ext=cc
14819ac_cpp='$CXXCPP $CPPFLAGS'
14820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14823
14824
3006edc0
VZ
14825 ;;
14826
14827 IRIX*)
95986553 14828
6dcfc289 14829
0ad5d837
VZ
14830 ac_ext=cc
14831ac_cpp='$CXXCPP $CPPFLAGS'
14832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14835
14836 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14837echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14838if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840else
14841 cat >conftest.$ac_ext <<_ACEOF
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847
14848int
14849main ()
14850{
14851
14852 #ifndef _SGI_COMPILER_VERSION
14853 choke me
14854 #endif
14855
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
bb9e79c0 14869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest.$ac_objext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14882else
14883 echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14887
14888fi
14889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14890
14891
14892fi
14893echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14894echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14895 ac_ext=cc
14896ac_cpp='$CXXCPP $CPPFLAGS'
14897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14900
14901 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14902 :; SGICXX=yes
14903 else
14904 :;
14905 fi
14906
14907
3006edc0
VZ
14908 ;;
14909
0093c2fc 14910 HP-UX*)
3006edc0
VZ
14911
14912
14913 ac_ext=cc
14914ac_cpp='$CXXCPP $CPPFLAGS'
14915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14918
0093c2fc
VZ
14919 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14920echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14921if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923else
14924 cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
14929/* end confdefs.h. */
14930
14931int
14932main ()
14933{
14934
0093c2fc 14935 #ifndef __HP_aCC
3006edc0
VZ
14936 choke me
14937 #endif
14938
14939 ;
14940 return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>conftest.er1
14946 ac_status=$?
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
bb9e79c0 14952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
0093c2fc 14964 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
0093c2fc 14969bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14970
14971fi
14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14973
14974
14975fi
0093c2fc
VZ
14976echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14977echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14978 ac_ext=cc
14979ac_cpp='$CXXCPP $CPPFLAGS'
14980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14983
0093c2fc
VZ
14984 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14985 :; HPCXX=yes
a1aa0349
VZ
14986 else
14987 :;
14988 fi
14989
14990
14991 ;;
14992
0093c2fc 14993 OSF1)
a1aa0349
VZ
14994
14995
14996 ac_ext=cc
14997ac_cpp='$CXXCPP $CPPFLAGS'
14998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15001
0093c2fc
VZ
15002 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
15003echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
15004if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006else
15007 cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013
15014int
15015main ()
15016{
15017
0093c2fc 15018 #ifndef __DECCXX
a1aa0349
VZ
15019 choke me
15020 #endif
15021
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
bb9e79c0 15035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest.$ac_objext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
0093c2fc 15047 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
15048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
0093c2fc 15052bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
15053
15054fi
15055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15056
15057
15058fi
0093c2fc
VZ
15059echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15060echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
15061 ac_ext=cc
15062ac_cpp='$CXXCPP $CPPFLAGS'
15063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15066
0093c2fc
VZ
15067 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15068 :; COMPAQCXX=yes
15069 else
15070 :;
15071 fi
15072
15073
15074 ;;
15075
15076 SunOS)
15077
15078
15079 ac_ext=cc
15080ac_cpp='$CXXCPP $CPPFLAGS'
15081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15084
15085 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15086echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15087if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15089else
15090 cat >conftest.$ac_ext <<_ACEOF
15091/* confdefs.h. */
15092_ACEOF
15093cat confdefs.h >>conftest.$ac_ext
15094cat >>conftest.$ac_ext <<_ACEOF
15095/* end confdefs.h. */
15096
15097int
15098main ()
15099{
15100
15101 #ifndef __SUNPRO_CC
15102 choke me
15103 #endif
15104
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109rm -f conftest.$ac_objext
15110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
bb9e79c0 15118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15131else
15132 echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135bakefile_cv_cxx_compiler___SUNPRO_CC=no
15136
15137fi
15138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15139
15140
15141fi
15142echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15143echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15144 ac_ext=cc
15145ac_cpp='$CXXCPP $CPPFLAGS'
15146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15149
15150 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15151 :; SUNCXX=yes
3006edc0
VZ
15152 else
15153 :;
ab0ad5f1 15154 fi
a9e5b1f0
MW
15155
15156
3006edc0
VZ
15157 ;;
15158 esac
15159 fi
15160
15161
15162
a848cd7e
SC
15163if test -n "$ac_tool_prefix"; then
15164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15165set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15166echo "$as_me:$LINENO: checking for $ac_word" >&5
15167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15168if test "${ac_cv_prog_RANLIB+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170else
15171 if test -n "$RANLIB"; then
15172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15173else
15174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175for as_dir in $PATH
15176do
15177 IFS=$as_save_IFS
15178 test -z "$as_dir" && as_dir=.
15179 for ac_exec_ext in '' $ac_executable_extensions; do
15180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15183 break 2
15184 fi
15185done
15186done
15187
15188fi
15189fi
15190RANLIB=$ac_cv_prog_RANLIB
15191if test -n "$RANLIB"; then
15192 echo "$as_me:$LINENO: result: $RANLIB" >&5
15193echo "${ECHO_T}$RANLIB" >&6
15194else
15195 echo "$as_me:$LINENO: result: no" >&5
15196echo "${ECHO_T}no" >&6
15197fi
15198
15199fi
15200if test -z "$ac_cv_prog_RANLIB"; then
15201 ac_ct_RANLIB=$RANLIB
15202 # Extract the first word of "ranlib", so it can be a program name with args.
15203set dummy ranlib; ac_word=$2
15204echo "$as_me:$LINENO: checking for $ac_word" >&5
15205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15206if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209 if test -n "$ac_ct_RANLIB"; then
15210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15211else
15212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213for as_dir in $PATH
15214do
15215 IFS=$as_save_IFS
15216 test -z "$as_dir" && as_dir=.
15217 for ac_exec_ext in '' $ac_executable_extensions; do
15218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15219 ac_cv_prog_ac_ct_RANLIB="ranlib"
15220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15221 break 2
15222 fi
15223done
15224done
15225
15226 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15227fi
15228fi
15229ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15230if test -n "$ac_ct_RANLIB"; then
15231 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15232echo "${ECHO_T}$ac_ct_RANLIB" >&6
15233else
15234 echo "$as_me:$LINENO: result: no" >&5
15235echo "${ECHO_T}no" >&6
15236fi
15237
15238 RANLIB=$ac_ct_RANLIB
15239else
15240 RANLIB="$ac_cv_prog_RANLIB"
15241fi
15242
15243
8c80d384
DE
15244if test -n "$ac_tool_prefix"; then
15245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15246set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15247echo "$as_me:$LINENO: checking for $ac_word" >&5
15248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15249if test "${ac_cv_prog_AR+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 if test -n "$AR"; then
15253 ac_cv_prog_AR="$AR" # Let the user override the test.
15254else
15255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256for as_dir in $PATH
15257do
15258 IFS=$as_save_IFS
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15262 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15264 break 2
15265 fi
15266done
15267done
15268
15269fi
15270fi
15271AR=$ac_cv_prog_AR
15272if test -n "$AR"; then
15273 echo "$as_me:$LINENO: result: $AR" >&5
15274echo "${ECHO_T}$AR" >&6
15275else
15276 echo "$as_me:$LINENO: result: no" >&5
15277echo "${ECHO_T}no" >&6
15278fi
15279
8c80d384
DE
15280fi
15281if test -z "$ac_cv_prog_AR"; then
15282 ac_ct_AR=$AR
15283 # Extract the first word of "ar", so it can be a program name with args.
15284set dummy ar; ac_word=$2
15285echo "$as_me:$LINENO: checking for $ac_word" >&5
15286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15287if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289else
15290 if test -n "$ac_ct_AR"; then
15291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15292else
15293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294for as_dir in $PATH
15295do
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_prog_ac_ct_AR="ar"
15301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302 break 2
15303 fi
15304done
15305done
15306
15307fi
15308fi
15309ac_ct_AR=$ac_cv_prog_ac_ct_AR
15310if test -n "$ac_ct_AR"; then
15311 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15312echo "${ECHO_T}$ac_ct_AR" >&6
15313else
15314 echo "$as_me:$LINENO: result: no" >&5
15315echo "${ECHO_T}no" >&6
15316fi
15317
15318 AR=$ac_ct_AR
15319else
15320 AR="$ac_cv_prog_AR"
15321fi
15322
a848cd7e 15323if test "x$AR" = "x" ; then
77ffb593
JS
15324 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15325echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15326 { (exit 1); exit 1; }; }
15327fi
15328
15329# Find a good install program. We prefer a C program (faster),
15330# so one script is as good as another. But avoid the broken or
15331# incompatible versions:
15332# SysV /etc/install, /usr/sbin/install
15333# SunOS /usr/etc/install
15334# IRIX /sbin/install
15335# AIX /bin/install
15336# AmigaOS /C/install, which installs bootblocks on floppy discs
15337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15340# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15341# ./install, which can be erroneously created by make from ./install.sh.
15342echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15343echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15344if test -z "$INSTALL"; then
15345if test "${ac_cv_path_install+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349for as_dir in $PATH
15350do
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
15353 # Account for people who put trailing slashes in PATH elements.
15354case $as_dir/ in
15355 ./ | .// | /cC/* | \
15356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15357 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15358 /usr/ucb/* ) ;;
15359 *)
15360 # OSF1 and SCO ODT 3.0 have their own names for install.
15361 # Don't use installbsd from OSF since it installs stuff as root
15362 # by default.
15363 for ac_prog in ginstall scoinst install; do
15364 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15366 if test $ac_prog = install &&
15367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15368 # AIX install. It has an incompatible calling convention.
15369 :
15370 elif test $ac_prog = install &&
15371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15372 # program-specific install script used by HP pwplus--don't use.
15373 :
15374 else
15375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15376 break 3
15377 fi
15378 fi
a848cd7e
SC
15379 done
15380 done
15381 ;;
15382esac
15383done
15384
15385
15386fi
15387 if test "${ac_cv_path_install+set}" = set; then
15388 INSTALL=$ac_cv_path_install
15389 else
15390 # As a last resort, use the slow shell script. We don't cache a
15391 # path for INSTALL within a source directory, because that will
15392 # break other packages using the cache if that directory is
15393 # removed, or if the path is relative.
15394 INSTALL=$ac_install_sh
15395 fi
15396fi
15397echo "$as_me:$LINENO: result: $INSTALL" >&5
15398echo "${ECHO_T}$INSTALL" >&6
15399
15400# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15401# It thinks the first close brace ends the variable substitution.
15402test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15403
15404test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15405
15406test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15407
15408
15409case ${INSTALL} in
15410 /* ) # Absolute
15411 ;;
15412 ?:* ) # Drive letter, considered as absolute.
15413 ;;
15414 *)
15415 INSTALL=`pwd`/${INSTALL} ;;
15416esac
15417
a848cd7e
SC
15418
15419case "${host}" in
15420
cfda0ea8 15421 *-*-darwin* )
a848cd7e
SC
15422 INSTALL_PROGRAM="cp -fp"
15423 INSTALL_DATA="cp -fp"
15424 ;;
15425 *)
15426 ;;
15427esac
15428
8c80d384
DE
15429if test -n "$ac_tool_prefix"; then
15430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15431set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15432echo "$as_me:$LINENO: checking for $ac_word" >&5
15433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15434if test "${ac_cv_prog_STRIP+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436else
15437 if test -n "$STRIP"; then
15438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15439else
15440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441for as_dir in $PATH
15442do
15443 IFS=$as_save_IFS
15444 test -z "$as_dir" && as_dir=.
15445 for ac_exec_ext in '' $ac_executable_extensions; do
15446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15449 break 2
15450 fi
15451done
15452done
15453
a848cd7e
SC
15454fi
15455fi
15456STRIP=$ac_cv_prog_STRIP
15457if test -n "$STRIP"; then
15458 echo "$as_me:$LINENO: result: $STRIP" >&5
15459echo "${ECHO_T}$STRIP" >&6
15460else
15461 echo "$as_me:$LINENO: result: no" >&5
15462echo "${ECHO_T}no" >&6
15463fi
15464
8c80d384
DE
15465fi
15466if test -z "$ac_cv_prog_STRIP"; then
15467 ac_ct_STRIP=$STRIP
15468 # Extract the first word of "strip", so it can be a program name with args.
15469set dummy strip; ac_word=$2
15470echo "$as_me:$LINENO: checking for $ac_word" >&5
15471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474else
15475 if test -n "$ac_ct_STRIP"; then
15476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15477else
15478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479for as_dir in $PATH
15480do
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_ac_ct_STRIP="strip"
15486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15488 fi
15489done
15490done
15491
15492 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15493fi
15494fi
15495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15496if test -n "$ac_ct_STRIP"; then
15497 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15498echo "${ECHO_T}$ac_ct_STRIP" >&6
15499else
15500 echo "$as_me:$LINENO: result: no" >&5
15501echo "${ECHO_T}no" >&6
15502fi
15503
15504 STRIP=$ac_ct_STRIP
15505else
15506 STRIP="$ac_cv_prog_STRIP"
15507fi
15508
15509
15510if test "$wxUSE_WINE" = "yes"; then
15511 if test -n "$ac_tool_prefix"; then
15512 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15513set dummy ${ac_tool_prefix}wrc; ac_word=$2
15514echo "$as_me:$LINENO: checking for $ac_word" >&5
15515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15516if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518else
8ced02f6
DE
15519 if test -n "$WINDRES"; then
15520 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15521else
15522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523for as_dir in $PATH
15524do
15525 IFS=$as_save_IFS
15526 test -z "$as_dir" && as_dir=.
15527 for ac_exec_ext in '' $ac_executable_extensions; do
15528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15529 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15531 break 2
15532 fi
15533done
15534done
15535
15536fi
15537fi
8ced02f6
DE
15538WINDRES=$ac_cv_prog_WINDRES
15539if test -n "$WINDRES"; then
15540 echo "$as_me:$LINENO: result: $WINDRES" >&5
15541echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15542else
15543 echo "$as_me:$LINENO: result: no" >&5
15544echo "${ECHO_T}no" >&6
15545fi
15546
15547fi
8ced02f6
DE
15548if test -z "$ac_cv_prog_WINDRES"; then
15549 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15550 # Extract the first word of "wrc", so it can be a program name with args.
15551set dummy wrc; ac_word=$2
15552echo "$as_me:$LINENO: checking for $ac_word" >&5
15553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15554if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556else
8ced02f6
DE
15557 if test -n "$ac_ct_WINDRES"; then
15558 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15559else
15560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561for as_dir in $PATH
15562do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15567 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571done
15572done
15573
15574fi
15575fi
8ced02f6
DE
15576ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15577if test -n "$ac_ct_WINDRES"; then
15578 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15579echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15580else
15581 echo "$as_me:$LINENO: result: no" >&5
15582echo "${ECHO_T}no" >&6
15583fi
15584
8ced02f6 15585 WINDRES=$ac_ct_WINDRES
8c80d384 15586else
8ced02f6 15587 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15588fi
15589
004ee6da 15590 RESCOMP="$WINDRES"
8c80d384
DE
15591else
15592 case "${host}" in
15593 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15594 if test -n "$ac_tool_prefix"; then
15595 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15596set dummy ${ac_tool_prefix}windres; ac_word=$2
15597echo "$as_me:$LINENO: checking for $ac_word" >&5
15598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15599if test "${ac_cv_prog_WINDRES+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601else
15602 if test -n "$WINDRES"; then
15603 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15604else
15605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606for as_dir in $PATH
15607do
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15614 break 2
15615 fi
15616done
15617done
15618
15619fi
15620fi
15621WINDRES=$ac_cv_prog_WINDRES
15622if test -n "$WINDRES"; then
15623 echo "$as_me:$LINENO: result: $WINDRES" >&5
15624echo "${ECHO_T}$WINDRES" >&6
15625else
15626 echo "$as_me:$LINENO: result: no" >&5
15627echo "${ECHO_T}no" >&6
15628fi
15629
15630fi
15631if test -z "$ac_cv_prog_WINDRES"; then
15632 ac_ct_WINDRES=$WINDRES
15633 # Extract the first word of "windres", so it can be a program name with args.
15634set dummy windres; ac_word=$2
15635echo "$as_me:$LINENO: checking for $ac_word" >&5
15636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15637if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
15640 if test -n "$ac_ct_WINDRES"; then
15641 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15642else
15643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15644for as_dir in $PATH
15645do
15646 IFS=$as_save_IFS
15647 test -z "$as_dir" && as_dir=.
15648 for ac_exec_ext in '' $ac_executable_extensions; do
15649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15650 ac_cv_prog_ac_ct_WINDRES="windres"
15651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 break 2
15653 fi
15654done
15655done
15656
15657fi
15658fi
15659ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15660if test -n "$ac_ct_WINDRES"; then
15661 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15662echo "${ECHO_T}$ac_ct_WINDRES" >&6
15663else
15664 echo "$as_me:$LINENO: result: no" >&5
15665echo "${ECHO_T}no" >&6
15666fi
15667
15668 WINDRES=$ac_ct_WINDRES
15669else
15670 WINDRES="$ac_cv_prog_WINDRES"
15671fi
15672
15673 RESCOMP="$WINDRES"
15674 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15676set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15677echo "$as_me:$LINENO: checking for $ac_word" >&5
15678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15679if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681else
15682 if test -n "$DLLTOOL"; then
15683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15684else
15685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686for as_dir in $PATH
15687do
15688 IFS=$as_save_IFS
15689 test -z "$as_dir" && as_dir=.
15690 for ac_exec_ext in '' $ac_executable_extensions; do
15691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15694 break 2
15695 fi
15696done
15697done
15698
15699fi
15700fi
15701DLLTOOL=$ac_cv_prog_DLLTOOL
15702if test -n "$DLLTOOL"; then
15703 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15704echo "${ECHO_T}$DLLTOOL" >&6
15705else
15706 echo "$as_me:$LINENO: result: no" >&5
15707echo "${ECHO_T}no" >&6
15708fi
15709
15710fi
15711if test -z "$ac_cv_prog_DLLTOOL"; then
15712 ac_ct_DLLTOOL=$DLLTOOL
15713 # Extract the first word of "dlltool", so it can be a program name with args.
15714set dummy dlltool; ac_word=$2
15715echo "$as_me:$LINENO: checking for $ac_word" >&5
15716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15717if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719else
15720 if test -n "$ac_ct_DLLTOOL"; then
15721 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15722else
15723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15724for as_dir in $PATH
15725do
15726 IFS=$as_save_IFS
15727 test -z "$as_dir" && as_dir=.
15728 for ac_exec_ext in '' $ac_executable_extensions; do
15729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15730 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15732 break 2
15733 fi
15734done
15735done
15736
15737fi
15738fi
15739ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15740if test -n "$ac_ct_DLLTOOL"; then
15741 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15742echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15743else
15744 echo "$as_me:$LINENO: result: no" >&5
15745echo "${ECHO_T}no" >&6
15746fi
15747
15748 DLLTOOL=$ac_ct_DLLTOOL
15749else
15750 DLLTOOL="$ac_cv_prog_DLLTOOL"
15751fi
15752
15753 ;;
15754 esac
15755fi
a848cd7e
SC
15756
15757echo "$as_me:$LINENO: checking if make is GNU make" >&5
15758echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15759if test "${wx_cv_prog_makeisgnu+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761else
15762
15763 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15764 egrep -s GNU > /dev/null); then
15765 wx_cv_prog_makeisgnu="yes"
15766 else
15767 wx_cv_prog_makeisgnu="no"
15768 fi
15769
15770fi
15771echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15772echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15773
15774if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15775 IF_GNU_MAKE=""
15776else
15777 IF_GNU_MAKE="#"
15778fi
15779
15780
15781
15782if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15783echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15784echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15785if test "${wx_cv_prog_makevpath+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
15788
15789cat - << EOF > confMake
15790check : file
15791 cp \$? \$@
15792 cp \$? final_file
15793EOF
15794
15795if test ! -d sub ; then
15796 mkdir sub
15797fi
15798echo dummy > sub/file
15799${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15800RESULT=$?
15801rm -f sub/file check final_file confMake
15802rmdir sub
15803if test "$RESULT" = 0; then
15804 wx_cv_prog_makevpath="yes"
15805else
15806 wx_cv_prog_makevpath="no"
15807fi
15808
15809fi
15810echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15811echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15812
15813if test "x$wx_cv_prog_makevpath" != "xyes"; then
15814{ { echo "$as_me:$LINENO: error:
15815You need a make-utility that is able to use the variable
15816VPATH correctly.
15817If your version of make does not support VPATH correctly,
15818please install GNU-make (possibly as gmake), and start
15819configure with the following command:
15820export MAKE=gmake; ./configure for sh-type shells
15821setenv MAKE gmake; ./configure for csh-type shells
15822Also please do remember to use gmake in this case every time
15823you are trying to compile.
15824" >&5
15825echo "$as_me: error:
15826You need a make-utility that is able to use the variable
15827VPATH correctly.
15828If your version of make does not support VPATH correctly,
15829please install GNU-make (possibly as gmake), and start
15830configure with the following command:
15831export MAKE=gmake; ./configure for sh-type shells
15832setenv MAKE gmake; ./configure for csh-type shells
15833Also please do remember to use gmake in this case every time
15834you are trying to compile.
15835" >&2;}
15836 { (exit 1); exit 1; }; }
15837fi fi
15838echo "$as_me:$LINENO: checking whether ln -s works" >&5
15839echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15840LN_S=$as_ln_s
15841if test "$LN_S" = "ln -s"; then
15842 echo "$as_me:$LINENO: result: yes" >&5
15843echo "${ECHO_T}yes" >&6
15844else
15845 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15846echo "${ECHO_T}no, using $LN_S" >&6
15847fi
15848
15849
bcaab0f9 15850
a848cd7e 15851
2113bc77 15852if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15853 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15854fi
15855
4d7ec9f1
DE
15856case "${host}" in
15857 powerpc-*-darwin* )
15858 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15859echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866
15867int
15868main ()
15869{
15870#ifndef __POWERPC__
15871 choke me for lack of PowerPC
15872#endif
15873
15874 ;
15875 return 0;
15876}
15877_ACEOF
15878rm -f conftest.$ac_objext
15879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15880 (eval $ac_compile) 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
bb9e79c0 15887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 echo "$as_me:$LINENO: result: yes" >&5
15900echo "${ECHO_T}yes" >&6
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905echo "$as_me:$LINENO: result: no" >&5
15906echo "${ECHO_T}no" >&6
15907 cat >>confdefs.h <<\_ACEOF
15908#define __POWERPC__ 1
15909_ACEOF
15910
15911
15912fi
15913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15914 ;;
15915esac
15916
15917case "${host}" in
15918 *-*-darwin* )
4d7ec9f1
DE
15919 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15920echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927#include <CoreFoundation/CFBase.h>
15928
15929int
15930main ()
15931{
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
bb9e79c0 15946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 echo "$as_me:$LINENO: result: yes" >&5
15959echo "${ECHO_T}yes" >&6
15960else
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964echo "$as_me:$LINENO: result: no" >&5
15965echo "${ECHO_T}no" >&6
15966 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15967echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15968 cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974#define __CF_USE_FRAMEWORK_INCLUDES__
15975#include <CoreFoundation/CFBase.h>
15976
15977int
15978main ()
15979{
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
bb9e79c0 15994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 echo "$as_me:$LINENO: result: yes" >&5
16007echo "${ECHO_T}yes" >&6
c92ad099 16008 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
16009else
16010 echo "$as_me: failed program was:" >&5
16011sed 's/^/| /' conftest.$ac_ext >&5
16012
16013{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
16014See \`config.log' for more details." >&5
16015echo "$as_me: error: no. CoreFoundation not available.
16016See \`config.log' for more details." >&2;}
16017 { (exit 1); exit 1; }; }
16018
16019fi
16020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021
16022
16023fi
16024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16025 ;;
16026esac
16027
a848cd7e
SC
16028case "${host}" in
16029 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
16030 ac_ext=c
16031ac_cpp='$CPP $CPPFLAGS'
16032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035
16036 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
16037 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16038echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16039if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042 ac_check_lib_save_LIBS=$LIBS
16043LIBS="-lcExt $LIBS"
16044cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
16050
16051/* Override any gcc2 internal prototype to avoid an error. */
16052#ifdef __cplusplus
16053extern "C"
16054#endif
16055/* We use char because int might match the return type of a gcc2
16056 builtin and then its argument prototype would still apply. */
16057char drand48 ();
16058int
16059main ()
16060{
16061drand48 ();
16062 ;
16063 return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext conftest$ac_exeext
16067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16068 (eval $ac_link) 2>conftest.er1
a848cd7e 16069 ac_status=$?
ac1cb8d3
VS
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
a848cd7e
SC
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
bb9e79c0 16075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_cv_lib_cExt_drand48=yes
16088else
16089 echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092ac_cv_lib_cExt_drand48=no
16093fi
ac1cb8d3
VS
16094rm -f conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16096LIBS=$ac_check_lib_save_LIBS
16097fi
16098echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16099echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16100if test $ac_cv_lib_cExt_drand48 = yes; then
16101 LIBS="$LIBS -lcExt"
16102fi
16103
16104 else
16105 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16106 fi
69120ee4
VZ
16107 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16108echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16109if test "${wx_cv_gccversion+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16111else
16112
391a765e
VS
16113 if test "$cross_compiling" = yes; then
16114 wx_cv_gccversion="EMX2"
16115
16116else
16117 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123
391a765e 16124 #include <stdio.h>
a848cd7e 16125
391a765e
VS
16126 int main()
16127 {
16128 FILE *f=fopen("conftestval", "w");
16129 if (!f) exit(1);
16130 fprintf(f,
a848cd7e 16131 #if (__GNUC__ < 3)
391a765e
VS
16132 "EMX2"
16133 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16134 "EMX3"
16135 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16136 "Innotek5"
16137 #else
16138 "Innotek6"
a848cd7e 16139 #endif
5039a2df 16140 );
391a765e
VS
16141 exit(0);
16142 }
a848cd7e 16143
a848cd7e 16144_ACEOF
391a765e
VS
16145rm -f conftest$ac_exeext
16146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
ac1cb8d3
VS
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
391a765e 16156 wx_cv_gccversion=`cat conftestval`
a848cd7e 16157else
391a765e
VS
16158 echo "$as_me: program exited with status $ac_status" >&5
16159echo "$as_me: failed program was:" >&5
a848cd7e
SC
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
391a765e
VS
16162( exit $ac_status )
16163wx_cv_gccversion="EMX2"
a848cd7e 16164fi
391a765e 16165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16166fi
a848cd7e
SC
16167
16168fi
16169echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16170echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
16171 ac_ext=cc
16172ac_cpp='$CXXCPP $CPPFLAGS'
16173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16176
391a765e 16177 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16178 LIBS="$LIBS -lstdcpp"
16179 LDFLAGS="$LDFLAGS -Zsysv-signals"
16180 else
391a765e 16181 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16182 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16183 LDFLAGS="$LDFLAGS -Zsysv-signals"
16184 else
16185 LIBS="$LIBS -lstdc++"
16186 fi
16187 fi
94acd38e
DE
16188 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16189 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16190echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16191 wxUSE_OMF=yes
ec3edcc9 16192 enable_omf=yes
a848cd7e
SC
16193 fi
16194 ;;
16195 *)
16196
95986553 16197 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16198echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16199if test "${ac_cv_string_strcasecmp+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201else
16202
16203 cat >conftest.$ac_ext <<_ACEOF
16204/* confdefs.h. */
16205_ACEOF
16206cat confdefs.h >>conftest.$ac_ext
16207cat >>conftest.$ac_ext <<_ACEOF
16208/* end confdefs.h. */
16209
16210 #include <string.h>
16211
16212int
16213main ()
16214{
16215
16216 strcasecmp("foo", "bar");
16217
16218 ;
16219 return 0;
16220}
16221_ACEOF
16222rm -f conftest.$ac_objext conftest$ac_exeext
16223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16224 (eval $ac_link) 2>conftest.er1
a848cd7e 16225 ac_status=$?
ac1cb8d3
VS
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
a848cd7e
SC
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
bb9e79c0 16231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_string_strcasecmp=yes
16244else
16245 echo "$as_me: failed program was:" >&5
16246sed 's/^/| /' conftest.$ac_ext >&5
16247
16248ac_cv_string_strcasecmp=no
16249
16250fi
ac1cb8d3
VS
16251rm -f conftest.err conftest.$ac_objext \
16252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16253
16254fi
16255echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16256echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16257
16258 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16259 cat >>confdefs.h <<\_ACEOF
16260#define HAVE_STRCASECMP_IN_STRING_H 1
16261_ACEOF
16262
16263 else
16264 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16265echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16266if test "${ac_cv_strings_strcasecmp+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268else
16269
16270 cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276
16277 #include <strings.h>
16278
16279int
16280main ()
16281{
16282
16283 strcasecmp("foo", "bar");
16284
16285 ;
16286 return 0;
16287}
16288_ACEOF
16289rm -f conftest.$ac_objext conftest$ac_exeext
16290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16291 (eval $ac_link) 2>conftest.er1
a848cd7e 16292 ac_status=$?
ac1cb8d3
VS
16293 grep -v '^ *+' conftest.er1 >conftest.err
16294 rm -f conftest.er1
16295 cat conftest.err >&5
a848cd7e
SC
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
bb9e79c0 16298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 ac_cv_strings_strcasecmp=yes
16311else
16312 echo "$as_me: failed program was:" >&5
16313sed 's/^/| /' conftest.$ac_ext >&5
16314
16315ac_cv_strings_strcasecmp=no
16316
16317fi
ac1cb8d3
VS
16318rm -f conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16320
16321fi
16322echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16323echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16324
0c3c69fc 16325 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16326 cat >>confdefs.h <<\_ACEOF
16327#define HAVE_STRCASECMP_IN_STRINGS_H 1
16328_ACEOF
16329
16330 else
16331 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16332echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16333 { (exit 1); exit 1; }; }
16334 fi
16335 fi
16336
a848cd7e
SC
16337 ;;
16338esac
16339
16340
5d7b7554
VZ
16341ac_ext=cc
16342ac_cpp='$CXXCPP $CPPFLAGS'
16343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16346echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16348if test -z "$CXXCPP"; then
16349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351else
16352 # Double quotes because CXXCPP needs to be expanded
16353 for CXXCPP in "$CXX -E" "/lib/cpp"
16354 do
16355 ac_preproc_ok=false
16356for ac_cxx_preproc_warn_flag in '' yes
16357do
16358 # Use a header file that comes with gcc, so configuring glibc
16359 # with a fresh cross-compiler works.
16360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 # <limits.h> exists even on freestanding compilers.
16362 # On the NeXT, cc -E runs the code through the compiler's parser,
16363 # not just through cpp. "Syntax error" is here to catch this case.
16364 cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370#ifdef __STDC__
16371# include <limits.h>
16372#else
16373# include <assert.h>
16374#endif
16375 Syntax error
16376_ACEOF
16377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } >/dev/null; then
16385 if test -s conftest.err; then
16386 ac_cpp_err=$ac_cxx_preproc_warn_flag
16387 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16388 else
16389 ac_cpp_err=
16390 fi
16391else
16392 ac_cpp_err=yes
16393fi
16394if test -z "$ac_cpp_err"; then
16395 :
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 # Broken: fails on valid input.
16401continue
16402fi
16403rm -f conftest.err conftest.$ac_ext
16404
16405 # OK, works on sane cases. Now check whether non-existent headers
16406 # can be detected and how.
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413#include <ac_nonexistent.h>
16414_ACEOF
16415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } >/dev/null; then
16423 if test -s conftest.err; then
16424 ac_cpp_err=$ac_cxx_preproc_warn_flag
16425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16426 else
16427 ac_cpp_err=
16428 fi
16429else
16430 ac_cpp_err=yes
16431fi
16432if test -z "$ac_cpp_err"; then
16433 # Broken: success on invalid input.
16434continue
16435else
16436 echo "$as_me: failed program was:" >&5
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 # Passes both tests.
16440ac_preproc_ok=:
16441break
16442fi
16443rm -f conftest.err conftest.$ac_ext
16444
16445done
16446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16447rm -f conftest.err conftest.$ac_ext
16448if $ac_preproc_ok; then
16449 break
16450fi
16451
16452 done
16453 ac_cv_prog_CXXCPP=$CXXCPP
16454
16455fi
16456 CXXCPP=$ac_cv_prog_CXXCPP
16457else
16458 ac_cv_prog_CXXCPP=$CXXCPP
16459fi
16460echo "$as_me:$LINENO: result: $CXXCPP" >&5
16461echo "${ECHO_T}$CXXCPP" >&6
16462ac_preproc_ok=false
16463for ac_cxx_preproc_warn_flag in '' yes
16464do
16465 # Use a header file that comes with gcc, so configuring glibc
16466 # with a fresh cross-compiler works.
16467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16468 # <limits.h> exists even on freestanding compilers.
16469 # On the NeXT, cc -E runs the code through the compiler's parser,
16470 # not just through cpp. "Syntax error" is here to catch this case.
16471 cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477#ifdef __STDC__
16478# include <limits.h>
16479#else
16480# include <assert.h>
16481#endif
16482 Syntax error
16483_ACEOF
16484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } >/dev/null; then
16492 if test -s conftest.err; then
16493 ac_cpp_err=$ac_cxx_preproc_warn_flag
16494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16495 else
16496 ac_cpp_err=
16497 fi
16498else
16499 ac_cpp_err=yes
16500fi
16501if test -z "$ac_cpp_err"; then
16502 :
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 # Broken: fails on valid input.
16508continue
16509fi
16510rm -f conftest.err conftest.$ac_ext
16511
16512 # OK, works on sane cases. Now check whether non-existent headers
16513 # can be detected and how.
16514 cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520#include <ac_nonexistent.h>
16521_ACEOF
16522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } >/dev/null; then
16530 if test -s conftest.err; then
16531 ac_cpp_err=$ac_cxx_preproc_warn_flag
16532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16533 else
16534 ac_cpp_err=
16535 fi
16536else
16537 ac_cpp_err=yes
16538fi
16539if test -z "$ac_cpp_err"; then
16540 # Broken: success on invalid input.
16541continue
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 # Passes both tests.
16547ac_preproc_ok=:
16548break
16549fi
16550rm -f conftest.err conftest.$ac_ext
16551
16552done
16553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16554rm -f conftest.err conftest.$ac_ext
16555if $ac_preproc_ok; then
16556 :
16557else
16558 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16559See \`config.log' for more details." >&5
16560echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16561See \`config.log' for more details." >&2;}
16562 { (exit 1); exit 1; }; }
16563fi
16564
16565ac_ext=cc
16566ac_cpp='$CXXCPP $CPPFLAGS'
16567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16570
16571
a848cd7e
SC
16572echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16573echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16574if test "${ac_cv_header_stdc+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 cat >conftest.$ac_ext <<_ACEOF
16578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
16583#include <stdlib.h>
16584#include <stdarg.h>
16585#include <string.h>
16586#include <float.h>
16587
16588int
16589main ()
16590{
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); } &&
bb9e79c0 16605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_header_stdc=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622ac_cv_header_stdc=no
16623fi
ac1cb8d3 16624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16625
16626if test $ac_cv_header_stdc = yes; then
16627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16628 cat >conftest.$ac_ext <<_ACEOF
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634#include <string.h>
16635
16636_ACEOF
16637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16638 $EGREP "memchr" >/dev/null 2>&1; then
16639 :
16640else
16641 ac_cv_header_stdc=no
16642fi
16643rm -f conftest*
16644
16645fi
16646
16647if test $ac_cv_header_stdc = yes; then
16648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16649 cat >conftest.$ac_ext <<_ACEOF
16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
16654/* end confdefs.h. */
16655#include <stdlib.h>
16656
16657_ACEOF
16658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16659 $EGREP "free" >/dev/null 2>&1; then
16660 :
16661else
16662 ac_cv_header_stdc=no
16663fi
16664rm -f conftest*
16665
16666fi
16667
16668if test $ac_cv_header_stdc = yes; then
16669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16670 if test "$cross_compiling" = yes; then
16671 :
16672else
16673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679#include <ctype.h>
16680#if ((' ' & 0x0FF) == 0x020)
16681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16683#else
16684# define ISLOWER(c) \
ac1cb8d3
VS
16685 (('a' <= (c) && (c) <= 'i') \
16686 || ('j' <= (c) && (c) <= 'r') \
16687 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16689#endif
16690
16691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16692int
16693main ()
16694{
16695 int i;
16696 for (i = 0; i < 256; i++)
16697 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16698 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16699 exit(2);
16700 exit (0);
16701}
16702_ACEOF
16703rm -f conftest$ac_exeext
16704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16705 (eval $ac_link) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 :
16715else
16716 echo "$as_me: program exited with status $ac_status" >&5
16717echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720( exit $ac_status )
16721ac_cv_header_stdc=no
16722fi
ac1cb8d3 16723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16724fi
16725fi
16726fi
16727echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16728echo "${ECHO_T}$ac_cv_header_stdc" >&6
16729if test $ac_cv_header_stdc = yes; then
16730
16731cat >>confdefs.h <<\_ACEOF
16732#define STDC_HEADERS 1
16733_ACEOF
16734
16735fi
16736
16737# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16748 inttypes.h stdint.h unistd.h
a848cd7e
SC
16749do
16750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751echo "$as_me:$LINENO: checking for $ac_header" >&5
16752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
16762$ac_includes_default
16763
16764#include <$ac_header>
16765_ACEOF
16766rm -f conftest.$ac_objext
16767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16768 (eval $ac_compile) 2>conftest.er1
a848cd7e 16769 ac_status=$?
ac1cb8d3
VS
16770 grep -v '^ *+' conftest.er1 >conftest.err
16771 rm -f conftest.er1
16772 cat conftest.err >&5
a848cd7e
SC
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
bb9e79c0 16775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 eval "$as_ac_Header=yes"
16788else
16789 echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792eval "$as_ac_Header=no"
16793fi
ac1cb8d3 16794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16795fi
16796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16798if test `eval echo '${'$as_ac_Header'}'` = yes; then
16799 cat >>confdefs.h <<_ACEOF
16800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801_ACEOF
16802
16803fi
16804
16805done
16806
16807
16808
16809for ac_header in stdlib.h
16810do
16811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16812if eval "test \"\${$as_ac_Header+set}\" = set"; then
16813 echo "$as_me:$LINENO: checking for $ac_header" >&5
16814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16815if eval "test \"\${$as_ac_Header+set}\" = set"; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817fi
16818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16820else
16821 # Is the header compilable?
16822echo "$as_me:$LINENO: checking $ac_header usability" >&5
16823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16824cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831#include <$ac_header>
16832_ACEOF
16833rm -f conftest.$ac_objext
16834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16835 (eval $ac_compile) 2>conftest.er1
a848cd7e 16836 ac_status=$?
ac1cb8d3
VS
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
a848cd7e
SC
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
bb9e79c0 16842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_header_compiler=yes
16855else
16856 echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859ac_header_compiler=no
16860fi
ac1cb8d3 16861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16863echo "${ECHO_T}$ac_header_compiler" >&6
16864
16865# Is the header present?
16866echo "$as_me:$LINENO: checking $ac_header presence" >&5
16867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16868cat >conftest.$ac_ext <<_ACEOF
16869/* confdefs.h. */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h. */
16874#include <$ac_header>
16875_ACEOF
16876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16878 ac_status=$?
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } >/dev/null; then
16884 if test -s conftest.err; then
5d7b7554
VZ
16885 ac_cpp_err=$ac_cxx_preproc_warn_flag
16886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16887 else
16888 ac_cpp_err=
16889 fi
16890else
16891 ac_cpp_err=yes
16892fi
16893if test -z "$ac_cpp_err"; then
16894 ac_header_preproc=yes
16895else
16896 echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 ac_header_preproc=no
16900fi
16901rm -f conftest.err conftest.$ac_ext
16902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16903echo "${ECHO_T}$ac_header_preproc" >&6
16904
16905# So? What about this header?
5d7b7554 16906case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16907 yes:no: )
a848cd7e
SC
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16912 ac_header_preproc=yes
a848cd7e 16913 ;;
ac1cb8d3 16914 no:yes:* )
a848cd7e
SC
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16927 (
16928 cat <<\_ASBOX
ac1cb8d3
VS
16929## ----------------------------------------- ##
16930## Report this to wx-dev@lists.wxwidgets.org ##
16931## ----------------------------------------- ##
a848cd7e
SC
16932_ASBOX
16933 ) |
16934 sed "s/^/$as_me: WARNING: /" >&2
16935 ;;
16936esac
16937echo "$as_me:$LINENO: checking for $ac_header" >&5
16938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16939if eval "test \"\${$as_ac_Header+set}\" = set"; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941else
ac1cb8d3 16942 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16943fi
16944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16946
16947fi
16948if test `eval echo '${'$as_ac_Header'}'` = yes; then
16949 cat >>confdefs.h <<_ACEOF
16950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16951_ACEOF
16952
16953fi
16954
16955done
16956
16957
16958for ac_header in malloc.h
16959do
16960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16961if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo "$as_me:$LINENO: checking for $ac_header" >&5
16963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16964if eval "test \"\${$as_ac_Header+set}\" = set"; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966fi
16967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969else
16970 # Is the header compilable?
16971echo "$as_me:$LINENO: checking $ac_header usability" >&5
16972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16973cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979$ac_includes_default
16980#include <$ac_header>
16981_ACEOF
16982rm -f conftest.$ac_objext
16983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16984 (eval $ac_compile) 2>conftest.er1
a848cd7e 16985 ac_status=$?
ac1cb8d3
VS
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
a848cd7e
SC
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
bb9e79c0 16991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008ac_header_compiler=no
17009fi
ac1cb8d3 17010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17012echo "${ECHO_T}$ac_header_compiler" >&6
17013
17014# Is the header present?
17015echo "$as_me:$LINENO: checking $ac_header presence" >&5
17016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17017cat >conftest.$ac_ext <<_ACEOF
17018/* confdefs.h. */
17019_ACEOF
17020cat confdefs.h >>conftest.$ac_ext
17021cat >>conftest.$ac_ext <<_ACEOF
17022/* end confdefs.h. */
17023#include <$ac_header>
17024_ACEOF
17025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } >/dev/null; then
17033 if test -s conftest.err; then
5d7b7554
VZ
17034 ac_cpp_err=$ac_cxx_preproc_warn_flag
17035 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17036 else
17037 ac_cpp_err=
17038 fi
17039else
17040 ac_cpp_err=yes
17041fi
17042if test -z "$ac_cpp_err"; then
17043 ac_header_preproc=yes
17044else
17045 echo "$as_me: failed program was:" >&5
17046sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 ac_header_preproc=no
17049fi
17050rm -f conftest.err conftest.$ac_ext
17051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17052echo "${ECHO_T}$ac_header_preproc" >&6
17053
17054# So? What about this header?
5d7b7554 17055case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17056 yes:no: )
a848cd7e
SC
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17061 ac_header_preproc=yes
a848cd7e 17062 ;;
ac1cb8d3 17063 no:yes:* )
a848cd7e
SC
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17076 (
17077 cat <<\_ASBOX
ac1cb8d3
VS
17078## ----------------------------------------- ##
17079## Report this to wx-dev@lists.wxwidgets.org ##
17080## ----------------------------------------- ##
a848cd7e
SC
17081_ASBOX
17082 ) |
17083 sed "s/^/$as_me: WARNING: /" >&2
17084 ;;
17085esac
17086echo "$as_me:$LINENO: checking for $ac_header" >&5
17087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17088if eval "test \"\${$as_ac_Header+set}\" = set"; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
ac1cb8d3 17091 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17092fi
17093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17095
17096fi
17097if test `eval echo '${'$as_ac_Header'}'` = yes; then
17098 cat >>confdefs.h <<_ACEOF
17099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100_ACEOF
17101
17102fi
17103
17104done
17105
17106
17107for ac_header in unistd.h
17108do
17109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17110if eval "test \"\${$as_ac_Header+set}\" = set"; then
17111 echo "$as_me:$LINENO: checking for $ac_header" >&5
17112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17113if eval "test \"\${$as_ac_Header+set}\" = set"; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115fi
17116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17118else
17119 # Is the header compilable?
17120echo "$as_me:$LINENO: checking $ac_header usability" >&5
17121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17122cat >conftest.$ac_ext <<_ACEOF
17123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
17128$ac_includes_default
17129#include <$ac_header>
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17133 (eval $ac_compile) 2>conftest.er1
a848cd7e 17134 ac_status=$?
ac1cb8d3
VS
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
a848cd7e
SC
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
bb9e79c0 17140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_header_compiler=yes
17153else
17154 echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157ac_header_compiler=no
17158fi
ac1cb8d3 17159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17161echo "${ECHO_T}$ac_header_compiler" >&6
17162
17163# Is the header present?
17164echo "$as_me:$LINENO: checking $ac_header presence" >&5
17165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17166cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172#include <$ac_header>
17173_ACEOF
17174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } >/dev/null; then
17182 if test -s conftest.err; then
5d7b7554
VZ
17183 ac_cpp_err=$ac_cxx_preproc_warn_flag
17184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17185 else
17186 ac_cpp_err=
17187 fi
17188else
17189 ac_cpp_err=yes
17190fi
17191if test -z "$ac_cpp_err"; then
17192 ac_header_preproc=yes
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_header_preproc=no
17198fi
17199rm -f conftest.err conftest.$ac_ext
17200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201echo "${ECHO_T}$ac_header_preproc" >&6
17202
17203# So? What about this header?
5d7b7554 17204case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17205 yes:no: )
a848cd7e
SC
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
a848cd7e 17211 ;;
ac1cb8d3 17212 no:yes:* )
a848cd7e
SC
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17225 (
17226 cat <<\_ASBOX
ac1cb8d3
VS
17227## ----------------------------------------- ##
17228## Report this to wx-dev@lists.wxwidgets.org ##
17229## ----------------------------------------- ##
a848cd7e
SC
17230_ASBOX
17231 ) |
17232 sed "s/^/$as_me: WARNING: /" >&2
17233 ;;
17234esac
17235echo "$as_me:$LINENO: checking for $ac_header" >&5
17236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17237if eval "test \"\${$as_ac_Header+set}\" = set"; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239else
ac1cb8d3 17240 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17241fi
17242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17244
17245fi
17246if test `eval echo '${'$as_ac_Header'}'` = yes; then
17247 cat >>confdefs.h <<_ACEOF
17248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17249_ACEOF
17250
17251fi
17252
17253done
17254
17255
17256for ac_header in wchar.h
17257do
17258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17259if eval "test \"\${$as_ac_Header+set}\" = set"; then
17260 echo "$as_me:$LINENO: checking for $ac_header" >&5
17261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17262if eval "test \"\${$as_ac_Header+set}\" = set"; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264fi
17265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17267else
17268 # Is the header compilable?
17269echo "$as_me:$LINENO: checking $ac_header usability" >&5
17270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17271cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277$ac_includes_default
17278#include <$ac_header>
17279_ACEOF
17280rm -f conftest.$ac_objext
17281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17282 (eval $ac_compile) 2>conftest.er1
a848cd7e 17283 ac_status=$?
ac1cb8d3
VS
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
a848cd7e
SC
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
bb9e79c0 17289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_header_compiler=yes
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306ac_header_compiler=no
17307fi
ac1cb8d3 17308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17310echo "${ECHO_T}$ac_header_compiler" >&6
17311
17312# Is the header present?
17313echo "$as_me:$LINENO: checking $ac_header presence" >&5
17314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17315cat >conftest.$ac_ext <<_ACEOF
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321#include <$ac_header>
17322_ACEOF
17323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } >/dev/null; then
17331 if test -s conftest.err; then
5d7b7554
VZ
17332 ac_cpp_err=$ac_cxx_preproc_warn_flag
17333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17334 else
17335 ac_cpp_err=
17336 fi
17337else
17338 ac_cpp_err=yes
17339fi
17340if test -z "$ac_cpp_err"; then
17341 ac_header_preproc=yes
17342else
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 ac_header_preproc=no
17347fi
17348rm -f conftest.err conftest.$ac_ext
17349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17350echo "${ECHO_T}$ac_header_preproc" >&6
17351
17352# So? What about this header?
5d7b7554 17353case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17354 yes:no: )
a848cd7e
SC
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17359 ac_header_preproc=yes
a848cd7e 17360 ;;
ac1cb8d3 17361 no:yes:* )
a848cd7e
SC
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17374 (
17375 cat <<\_ASBOX
ac1cb8d3
VS
17376## ----------------------------------------- ##
17377## Report this to wx-dev@lists.wxwidgets.org ##
17378## ----------------------------------------- ##
a848cd7e
SC
17379_ASBOX
17380 ) |
17381 sed "s/^/$as_me: WARNING: /" >&2
17382 ;;
17383esac
17384echo "$as_me:$LINENO: checking for $ac_header" >&5
17385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17386if eval "test \"\${$as_ac_Header+set}\" = set"; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
ac1cb8d3 17389 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17390fi
17391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17393
17394fi
17395if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398_ACEOF
17399
17400fi
17401
17402done
17403
17404
17405if test "$ac_cv_header_wchar_h" != "yes"; then
17406
17407for ac_header in wcstr.h
17408do
17409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17410if eval "test \"\${$as_ac_Header+set}\" = set"; then
17411 echo "$as_me:$LINENO: checking for $ac_header" >&5
17412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17413if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415fi
17416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17418else
17419 # Is the header compilable?
17420echo "$as_me:$LINENO: checking $ac_header usability" >&5
17421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17422cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
17428$ac_includes_default
17429#include <$ac_header>
17430_ACEOF
17431rm -f conftest.$ac_objext
17432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17433 (eval $ac_compile) 2>conftest.er1
a848cd7e 17434 ac_status=$?
ac1cb8d3
VS
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
a848cd7e
SC
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
bb9e79c0 17440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_header_compiler=yes
17453else
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457ac_header_compiler=no
17458fi
ac1cb8d3 17459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17461echo "${ECHO_T}$ac_header_compiler" >&6
17462
17463# Is the header present?
17464echo "$as_me:$LINENO: checking $ac_header presence" >&5
17465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17466cat >conftest.$ac_ext <<_ACEOF
17467/* confdefs.h. */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h. */
17472#include <$ac_header>
17473_ACEOF
17474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } >/dev/null; then
17482 if test -s conftest.err; then
5d7b7554
VZ
17483 ac_cpp_err=$ac_cxx_preproc_warn_flag
17484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17485 else
17486 ac_cpp_err=
17487 fi
17488else
17489 ac_cpp_err=yes
17490fi
17491if test -z "$ac_cpp_err"; then
17492 ac_header_preproc=yes
17493else
17494 echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497 ac_header_preproc=no
17498fi
17499rm -f conftest.err conftest.$ac_ext
17500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17501echo "${ECHO_T}$ac_header_preproc" >&6
17502
17503# So? What about this header?
5d7b7554 17504case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17505 yes:no: )
a848cd7e
SC
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17510 ac_header_preproc=yes
a848cd7e 17511 ;;
ac1cb8d3 17512 no:yes:* )
a848cd7e
SC
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17525 (
17526 cat <<\_ASBOX
ac1cb8d3
VS
17527## ----------------------------------------- ##
17528## Report this to wx-dev@lists.wxwidgets.org ##
17529## ----------------------------------------- ##
a848cd7e
SC
17530_ASBOX
17531 ) |
17532 sed "s/^/$as_me: WARNING: /" >&2
17533 ;;
17534esac
17535echo "$as_me:$LINENO: checking for $ac_header" >&5
17536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17537if eval "test \"\${$as_ac_Header+set}\" = set"; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
ac1cb8d3 17540 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17541fi
17542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17544
17545fi
17546if test `eval echo '${'$as_ac_Header'}'` = yes; then
17547 cat >>confdefs.h <<_ACEOF
17548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17549_ACEOF
17550
17551fi
17552
17553done
17554
17555fi
17556
17557
17558for ac_header in fnmatch.h
17559do
17560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17561if eval "test \"\${$as_ac_Header+set}\" = set"; then
17562 echo "$as_me:$LINENO: checking for $ac_header" >&5
17563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17564if eval "test \"\${$as_ac_Header+set}\" = set"; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566fi
17567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17569else
17570 # Is the header compilable?
17571echo "$as_me:$LINENO: checking $ac_header usability" >&5
17572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17573cat >conftest.$ac_ext <<_ACEOF
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579$ac_includes_default
17580#include <$ac_header>
17581_ACEOF
17582rm -f conftest.$ac_objext
17583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17584 (eval $ac_compile) 2>conftest.er1
a848cd7e 17585 ac_status=$?
ac1cb8d3
VS
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
a848cd7e
SC
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
bb9e79c0 17591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_header_compiler=yes
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608ac_header_compiler=no
17609fi
ac1cb8d3 17610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17612echo "${ECHO_T}$ac_header_compiler" >&6
17613
17614# Is the header present?
17615echo "$as_me:$LINENO: checking $ac_header presence" >&5
17616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17617cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623#include <$ac_header>
17624_ACEOF
17625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } >/dev/null; then
17633 if test -s conftest.err; then
5d7b7554
VZ
17634 ac_cpp_err=$ac_cxx_preproc_warn_flag
17635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17636 else
17637 ac_cpp_err=
17638 fi
17639else
17640 ac_cpp_err=yes
17641fi
17642if test -z "$ac_cpp_err"; then
17643 ac_header_preproc=yes
17644else
17645 echo "$as_me: failed program was:" >&5
17646sed 's/^/| /' conftest.$ac_ext >&5
17647
17648 ac_header_preproc=no
17649fi
17650rm -f conftest.err conftest.$ac_ext
17651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17652echo "${ECHO_T}$ac_header_preproc" >&6
17653
17654# So? What about this header?
5d7b7554 17655case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17656 yes:no: )
a848cd7e
SC
17657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17661 ac_header_preproc=yes
a848cd7e 17662 ;;
ac1cb8d3 17663 no:yes:* )
a848cd7e
SC
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17676 (
17677 cat <<\_ASBOX
ac1cb8d3
VS
17678## ----------------------------------------- ##
17679## Report this to wx-dev@lists.wxwidgets.org ##
17680## ----------------------------------------- ##
a848cd7e
SC
17681_ASBOX
17682 ) |
17683 sed "s/^/$as_me: WARNING: /" >&2
17684 ;;
17685esac
17686echo "$as_me:$LINENO: checking for $ac_header" >&5
17687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17688if eval "test \"\${$as_ac_Header+set}\" = set"; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
ac1cb8d3 17691 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17692fi
17693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17695
17696fi
17697if test `eval echo '${'$as_ac_Header'}'` = yes; then
17698 cat >>confdefs.h <<_ACEOF
17699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17700_ACEOF
17701
17702fi
17703
17704done
17705
17706
a848cd7e
SC
17707
17708for ac_header in langinfo.h
17709do
17710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17711if eval "test \"\${$as_ac_Header+set}\" = set"; then
17712 echo "$as_me:$LINENO: checking for $ac_header" >&5
17713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17714if eval "test \"\${$as_ac_Header+set}\" = set"; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716fi
17717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17719else
17720 # Is the header compilable?
17721echo "$as_me:$LINENO: checking $ac_header usability" >&5
17722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17723cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730#include <$ac_header>
17731_ACEOF
17732rm -f conftest.$ac_objext
17733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17734 (eval $ac_compile) 2>conftest.er1
a848cd7e 17735 ac_status=$?
ac1cb8d3
VS
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
a848cd7e
SC
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
bb9e79c0 17741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_header_compiler=yes
17754else
17755 echo "$as_me: failed program was:" >&5
17756sed 's/^/| /' conftest.$ac_ext >&5
17757
17758ac_header_compiler=no
17759fi
ac1cb8d3 17760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17762echo "${ECHO_T}$ac_header_compiler" >&6
17763
17764# Is the header present?
17765echo "$as_me:$LINENO: checking $ac_header presence" >&5
17766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17767cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h. */
17773#include <$ac_header>
17774_ACEOF
17775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } >/dev/null; then
17783 if test -s conftest.err; then
5d7b7554
VZ
17784 ac_cpp_err=$ac_cxx_preproc_warn_flag
17785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17786 else
17787 ac_cpp_err=
17788 fi
17789else
17790 ac_cpp_err=yes
17791fi
17792if test -z "$ac_cpp_err"; then
17793 ac_header_preproc=yes
17794else
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ac_header_preproc=no
17799fi
17800rm -f conftest.err conftest.$ac_ext
17801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17802echo "${ECHO_T}$ac_header_preproc" >&6
17803
17804# So? What about this header?
5d7b7554 17805case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17806 yes:no: )
a848cd7e
SC
17807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17811 ac_header_preproc=yes
a848cd7e 17812 ;;
ac1cb8d3 17813 no:yes:* )
a848cd7e
SC
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17826 (
17827 cat <<\_ASBOX
ac1cb8d3
VS
17828## ----------------------------------------- ##
17829## Report this to wx-dev@lists.wxwidgets.org ##
17830## ----------------------------------------- ##
a848cd7e
SC
17831_ASBOX
17832 ) |
17833 sed "s/^/$as_me: WARNING: /" >&2
17834 ;;
17835esac
17836echo "$as_me:$LINENO: checking for $ac_header" >&5
17837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17838if eval "test \"\${$as_ac_Header+set}\" = set"; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840else
ac1cb8d3 17841 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17842fi
17843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17845
17846fi
17847if test `eval echo '${'$as_ac_Header'}'` = yes; then
17848 cat >>confdefs.h <<_ACEOF
17849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17850_ACEOF
17851
17852fi
17853
17854done
17855
17856
17857case "${host}" in
17858 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17859 if test $ac_cv_header_langinfo_h = "yes" \
17860 -a \( "$wx_cv_gccversion" = "EMX2" \
17861 -o "$wx_cv_gccversion" = "EMX3" \
17862 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17863 LIBS="$LIBS -lintl"
17864 fi
17865 ;;
17866esac
17867
bc023abb
MW
17868if test "$USE_UNIX" = 1 ; then
17869
17870for ac_header in sys/select.h
17871do
17872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17873if eval "test \"\${$as_ac_Header+set}\" = set"; then
17874 echo "$as_me:$LINENO: checking for $ac_header" >&5
17875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17876if eval "test \"\${$as_ac_Header+set}\" = set"; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878fi
17879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17881else
17882 # Is the header compilable?
17883echo "$as_me:$LINENO: checking $ac_header usability" >&5
17884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17885cat >conftest.$ac_ext <<_ACEOF
17886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
17891$ac_includes_default
17892#include <$ac_header>
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17896 (eval $ac_compile) 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
bb9e79c0 17903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_header_compiler=yes
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920ac_header_compiler=no
17921fi
17922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17924echo "${ECHO_T}$ac_header_compiler" >&6
17925
17926# Is the header present?
17927echo "$as_me:$LINENO: checking $ac_header presence" >&5
17928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17929cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
17935#include <$ac_header>
17936_ACEOF
17937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } >/dev/null; then
17945 if test -s conftest.err; then
17946 ac_cpp_err=$ac_cxx_preproc_warn_flag
17947 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17948 else
17949 ac_cpp_err=
17950 fi
17951else
17952 ac_cpp_err=yes
17953fi
17954if test -z "$ac_cpp_err"; then
17955 ac_header_preproc=yes
17956else
17957 echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_header_preproc=no
17961fi
17962rm -f conftest.err conftest.$ac_ext
17963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964echo "${ECHO_T}$ac_header_preproc" >&6
17965
17966# So? What about this header?
17967case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17968 yes:no: )
17969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17973 ac_header_preproc=yes
17974 ;;
17975 no:yes:* )
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17988 (
17989 cat <<\_ASBOX
17990## ----------------------------------------- ##
17991## Report this to wx-dev@lists.wxwidgets.org ##
17992## ----------------------------------------- ##
17993_ASBOX
17994 ) |
17995 sed "s/^/$as_me: WARNING: /" >&2
17996 ;;
17997esac
17998echo "$as_me:$LINENO: checking for $ac_header" >&5
17999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18000if eval "test \"\${$as_ac_Header+set}\" = set"; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18002else
18003 eval "$as_ac_Header=\$ac_header_preproc"
18004fi
18005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18007
18008fi
18009if test `eval echo '${'$as_ac_Header'}'` = yes; then
18010 cat >>confdefs.h <<_ACEOF
18011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18012_ACEOF
18013
18014fi
18015
18016done
18017
18018fi
18019
a848cd7e
SC
18020
18021echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18022echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18023if test "${ac_cv_c_const+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025else
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032
18033int
18034main ()
18035{
18036/* FIXME: Include the comments suggested by Paul. */
18037#ifndef __cplusplus
18038 /* Ultrix mips cc rejects this. */
18039 typedef int charset[2];
18040 const charset x;
18041 /* SunOS 4.1.1 cc rejects this. */
18042 char const *const *ccp;
18043 char **p;
18044 /* NEC SVR4.0.2 mips cc rejects this. */
18045 struct point {int x, y;};
18046 static struct point const zero = {0,0};
18047 /* AIX XL C 1.02.0.0 rejects this.
18048 It does not let you subtract one const X* pointer from another in
18049 an arm of an if-expression whose if-part is not a constant
18050 expression */
18051 const char *g = "string";
18052 ccp = &g + (g ? g-g : 0);
18053 /* HPUX 7.0 cc rejects these. */
18054 ++ccp;
18055 p = (char**) ccp;
18056 ccp = (char const *const *) p;
18057 { /* SCO 3.2v4 cc rejects this. */
18058 char *t;
18059 char const *s = 0 ? (char *) 0 : (char const *) 0;
18060
18061 *t++ = 0;
18062 }
18063 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18064 int x[] = {25, 17};
18065 const int *foo = &x[0];
18066 ++foo;
18067 }
18068 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18069 typedef const int *iptr;
18070 iptr p = 0;
18071 ++p;
18072 }
18073 { /* AIX XL C 1.02.0.0 rejects this saying
18074 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18075 struct s { int j; const int *ap[3]; };
18076 struct s *b; b->j = 5;
18077 }
18078 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18079 const int foo = 10;
18080 }
18081#endif
18082
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext
18088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18089 (eval $ac_compile) 2>conftest.er1
a848cd7e 18090 ac_status=$?
ac1cb8d3
VS
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
a848cd7e
SC
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
bb9e79c0 18096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } &&
18102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_cv_c_const=yes
18109else
18110 echo "$as_me: failed program was:" >&5
18111sed 's/^/| /' conftest.$ac_ext >&5
18112
18113ac_cv_c_const=no
18114fi
ac1cb8d3 18115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18116fi
18117echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18118echo "${ECHO_T}$ac_cv_c_const" >&6
18119if test $ac_cv_c_const = no; then
18120
18121cat >>confdefs.h <<\_ACEOF
18122#define const
18123_ACEOF
18124
18125fi
18126
18127echo "$as_me:$LINENO: checking for inline" >&5
18128echo $ECHO_N "checking for inline... $ECHO_C" >&6
18129if test "${ac_cv_c_inline+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18131else
18132 ac_cv_c_inline=no
18133for ac_kw in inline __inline__ __inline; do
18134 cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140#ifndef __cplusplus
18141typedef int foo_t;
18142static $ac_kw foo_t static_foo () {return 0; }
18143$ac_kw foo_t foo () {return 0; }
18144#endif
18145
18146_ACEOF
18147rm -f conftest.$ac_objext
18148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18149 (eval $ac_compile) 2>conftest.er1
a848cd7e 18150 ac_status=$?
ac1cb8d3
VS
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
a848cd7e
SC
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
bb9e79c0 18156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_c_inline=$ac_kw; break
18169else
18170 echo "$as_me: failed program was:" >&5
18171sed 's/^/| /' conftest.$ac_ext >&5
18172
18173fi
ac1cb8d3 18174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18175done
18176
18177fi
18178echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18179echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18180
18181
a848cd7e
SC
18182case $ac_cv_c_inline in
18183 inline | yes) ;;
ac1cb8d3
VS
18184 *)
18185 case $ac_cv_c_inline in
18186 no) ac_val=;;
18187 *) ac_val=$ac_cv_c_inline;;
18188 esac
18189 cat >>confdefs.h <<_ACEOF
18190#ifndef __cplusplus
18191#define inline $ac_val
18192#endif
de59c161 18193_ACEOF
ac1cb8d3 18194 ;;
a848cd7e
SC
18195esac
18196
18197
18198echo "$as_me:$LINENO: checking for char" >&5
18199echo $ECHO_N "checking for char... $ECHO_C" >&6
18200if test "${ac_cv_type_char+set}" = set; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18202else
18203 cat >conftest.$ac_ext <<_ACEOF
18204/* confdefs.h. */
18205_ACEOF
18206cat confdefs.h >>conftest.$ac_ext
18207cat >>conftest.$ac_ext <<_ACEOF
18208/* end confdefs.h. */
18209$ac_includes_default
18210int
18211main ()
18212{
18213if ((char *) 0)
18214 return 0;
18215if (sizeof (char))
18216 return 0;
18217 ;
18218 return 0;
18219}
18220_ACEOF
18221rm -f conftest.$ac_objext
18222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18223 (eval $ac_compile) 2>conftest.er1
a848cd7e 18224 ac_status=$?
ac1cb8d3
VS
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
a848cd7e
SC
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
bb9e79c0 18230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 ac_cv_type_char=yes
18243else
18244 echo "$as_me: failed program was:" >&5
18245sed 's/^/| /' conftest.$ac_ext >&5
18246
18247ac_cv_type_char=no
18248fi
ac1cb8d3 18249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18250fi
18251echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18252echo "${ECHO_T}$ac_cv_type_char" >&6
18253
18254echo "$as_me:$LINENO: checking size of char" >&5
18255echo $ECHO_N "checking size of char... $ECHO_C" >&6
18256if test "${ac_cv_sizeof_char+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258else
18259 if test "$ac_cv_type_char" = yes; then
18260 # The cast to unsigned long works around a bug in the HP C Compiler
18261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18263 # This bug is HP SR number 8606223364.
18264 if test "$cross_compiling" = yes; then
18265 # Depending upon the size, compute the lo and hi bounds.
18266cat >conftest.$ac_ext <<_ACEOF
18267/* confdefs.h. */
18268_ACEOF
18269cat confdefs.h >>conftest.$ac_ext
18270cat >>conftest.$ac_ext <<_ACEOF
18271/* end confdefs.h. */
18272$ac_includes_default
18273int
18274main ()
18275{
18276static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18277test_array [0] = 0
18278
18279 ;
18280 return 0;
18281}
18282_ACEOF
18283rm -f conftest.$ac_objext
18284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18285 (eval $ac_compile) 2>conftest.er1
a848cd7e 18286 ac_status=$?
ac1cb8d3
VS
18287 grep -v '^ *+' conftest.er1 >conftest.err
18288 rm -f conftest.er1
18289 cat conftest.err >&5
a848cd7e
SC
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
bb9e79c0 18292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_lo=0 ac_mid=0
18305 while :; do
18306 cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312$ac_includes_default
18313int
18314main ()
18315{
18316static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18317test_array [0] = 0
18318
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext
18324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18325 (eval $ac_compile) 2>conftest.er1
a848cd7e 18326 ac_status=$?
ac1cb8d3
VS
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
a848cd7e
SC
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
bb9e79c0 18332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_hi=$ac_mid; break
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18350 if test $ac_lo -le $ac_mid; then
18351 ac_lo= ac_hi=
18352 break
18353 fi
18354 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18355fi
ac1cb8d3 18356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18357 done
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362cat >conftest.$ac_ext <<_ACEOF
18363/* confdefs.h. */
18364_ACEOF
18365cat confdefs.h >>conftest.$ac_ext
18366cat >>conftest.$ac_ext <<_ACEOF
18367/* end confdefs.h. */
18368$ac_includes_default
18369int
18370main ()
18371{
18372static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18373test_array [0] = 0
18374
18375 ;
18376 return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext
18380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18381 (eval $ac_compile) 2>conftest.er1
a848cd7e 18382 ac_status=$?
ac1cb8d3
VS
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
a848cd7e
SC
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
bb9e79c0 18388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_hi=-1 ac_mid=-1
18401 while :; do
18402 cat >conftest.$ac_ext <<_ACEOF
18403/* confdefs.h. */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h. */
18408$ac_includes_default
18409int
18410main ()
18411{
18412static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18413test_array [0] = 0
18414
18415 ;
18416 return 0;
18417}
18418_ACEOF
18419rm -f conftest.$ac_objext
18420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18421 (eval $ac_compile) 2>conftest.er1
a848cd7e 18422 ac_status=$?
ac1cb8d3
VS
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
a848cd7e
SC
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
bb9e79c0 18428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_lo=$ac_mid; break
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18446 if test $ac_mid -le $ac_hi; then
18447 ac_lo= ac_hi=
18448 break
18449 fi
18450 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18451fi
ac1cb8d3 18452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18453 done
18454else
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458ac_lo= ac_hi=
18459fi
ac1cb8d3 18460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18461fi
ac1cb8d3 18462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18463# Binary search between lo and hi bounds.
18464while test "x$ac_lo" != "x$ac_hi"; do
18465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18466 cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472$ac_includes_default
18473int
18474main ()
18475{
18476static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18477test_array [0] = 0
18478
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext
18484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18485 (eval $ac_compile) 2>conftest.er1
a848cd7e 18486 ac_status=$?
ac1cb8d3
VS
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
a848cd7e
SC
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
bb9e79c0 18492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_hi=$ac_mid
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509ac_lo=`expr '(' $ac_mid ')' + 1`
18510fi
ac1cb8d3 18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18512done
18513case $ac_lo in
18514?*) ac_cv_sizeof_char=$ac_lo;;
18515'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18516See \`config.log' for more details." >&5
18517echo "$as_me: error: cannot compute sizeof (char), 77
18518See \`config.log' for more details." >&2;}
18519 { (exit 1); exit 1; }; } ;;
18520esac
18521else
18522 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18523 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18524echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18525 { (exit 1); exit 1; }; }
18526else
18527 cat >conftest.$ac_ext <<_ACEOF
18528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
18533$ac_includes_default
18534long longval () { return (long) (sizeof (char)); }
18535unsigned long ulongval () { return (long) (sizeof (char)); }
18536#include <stdio.h>
18537#include <stdlib.h>
18538int
18539main ()
18540{
18541
18542 FILE *f = fopen ("conftest.val", "w");
18543 if (! f)
18544 exit (1);
18545 if (((long) (sizeof (char))) < 0)
18546 {
18547 long i = longval ();
18548 if (i != ((long) (sizeof (char))))
18549 exit (1);
18550 fprintf (f, "%ld\n", i);
18551 }
18552 else
18553 {
18554 unsigned long i = ulongval ();
18555 if (i != ((long) (sizeof (char))))
18556 exit (1);
18557 fprintf (f, "%lu\n", i);
18558 }
18559 exit (ferror (f) || fclose (f) != 0);
18560
18561 ;
18562 return 0;
18563}
18564_ACEOF
18565rm -f conftest$ac_exeext
18566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_cv_sizeof_char=`cat conftest.val`
18577else
18578 echo "$as_me: program exited with status $ac_status" >&5
18579echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582( exit $ac_status )
18583{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18584See \`config.log' for more details." >&5
18585echo "$as_me: error: cannot compute sizeof (char), 77
18586See \`config.log' for more details." >&2;}
18587 { (exit 1); exit 1; }; }
18588fi
ac1cb8d3 18589rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18590fi
18591fi
18592rm -f conftest.val
18593else
18594 ac_cv_sizeof_char=0
18595fi
18596fi
18597echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18598echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18599cat >>confdefs.h <<_ACEOF
18600#define SIZEOF_CHAR $ac_cv_sizeof_char
18601_ACEOF
18602
18603
18604echo "$as_me:$LINENO: checking for short" >&5
18605echo $ECHO_N "checking for short... $ECHO_C" >&6
18606if test "${ac_cv_type_short+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609 cat >conftest.$ac_ext <<_ACEOF
18610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
18615$ac_includes_default
18616int
18617main ()
18618{
18619if ((short *) 0)
18620 return 0;
18621if (sizeof (short))
18622 return 0;
18623 ;
18624 return 0;
18625}
18626_ACEOF
18627rm -f conftest.$ac_objext
18628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18629 (eval $ac_compile) 2>conftest.er1
a848cd7e 18630 ac_status=$?
ac1cb8d3
VS
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
a848cd7e
SC
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
bb9e79c0 18636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_type_short=yes
18649else
18650 echo "$as_me: failed program was:" >&5
18651sed 's/^/| /' conftest.$ac_ext >&5
18652
18653ac_cv_type_short=no
18654fi
ac1cb8d3 18655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18656fi
18657echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18658echo "${ECHO_T}$ac_cv_type_short" >&6
18659
18660echo "$as_me:$LINENO: checking size of short" >&5
18661echo $ECHO_N "checking size of short... $ECHO_C" >&6
18662if test "${ac_cv_sizeof_short+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664else
18665 if test "$ac_cv_type_short" = yes; then
18666 # The cast to unsigned long works around a bug in the HP C Compiler
18667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18669 # This bug is HP SR number 8606223364.
18670 if test "$cross_compiling" = yes; then
18671 # Depending upon the size, compute the lo and hi bounds.
18672cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678$ac_includes_default
18679int
18680main ()
18681{
18682static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18683test_array [0] = 0
18684
18685 ;
18686 return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext
18690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18691 (eval $ac_compile) 2>conftest.er1
a848cd7e 18692 ac_status=$?
ac1cb8d3
VS
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
a848cd7e
SC
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
bb9e79c0 18698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_lo=0 ac_mid=0
18711 while :; do
18712 cat >conftest.$ac_ext <<_ACEOF
18713/* confdefs.h. */
18714_ACEOF
18715cat confdefs.h >>conftest.$ac_ext
18716cat >>conftest.$ac_ext <<_ACEOF
18717/* end confdefs.h. */
18718$ac_includes_default
18719int
18720main ()
18721{
18722static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18723test_array [0] = 0
18724
18725 ;
18726 return 0;
18727}
18728_ACEOF
18729rm -f conftest.$ac_objext
18730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18731 (eval $ac_compile) 2>conftest.er1
a848cd7e 18732 ac_status=$?
ac1cb8d3
VS
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
a848cd7e
SC
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
bb9e79c0 18738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 ac_hi=$ac_mid; break
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18756 if test $ac_lo -le $ac_mid; then
18757 ac_lo= ac_hi=
18758 break
18759 fi
18760 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18761fi
ac1cb8d3 18762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18763 done
18764else
18765 echo "$as_me: failed program was:" >&5
18766sed 's/^/| /' conftest.$ac_ext >&5
18767
18768cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774$ac_includes_default
18775int
18776main ()
18777{
18778static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18779test_array [0] = 0
18780
18781 ;
18782 return 0;
18783}
18784_ACEOF
18785rm -f conftest.$ac_objext
18786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18787 (eval $ac_compile) 2>conftest.er1
a848cd7e 18788 ac_status=$?
ac1cb8d3
VS
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
a848cd7e
SC
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
bb9e79c0 18794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_hi=-1 ac_mid=-1
18807 while :; do
18808 cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814$ac_includes_default
18815int
18816main ()
18817{
18818static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18819test_array [0] = 0
18820
18821 ;
18822 return 0;
18823}
18824_ACEOF
18825rm -f conftest.$ac_objext
18826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18827 (eval $ac_compile) 2>conftest.er1
a848cd7e 18828 ac_status=$?
ac1cb8d3
VS
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
a848cd7e
SC
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
bb9e79c0 18834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; } &&
18840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18846 ac_lo=$ac_mid; break
18847else
18848 echo "$as_me: failed program was:" >&5
18849sed 's/^/| /' conftest.$ac_ext >&5
18850
18851ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18852 if test $ac_mid -le $ac_hi; then
18853 ac_lo= ac_hi=
18854 break
18855 fi
18856 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18857fi
ac1cb8d3 18858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18859 done
18860else
18861 echo "$as_me: failed program was:" >&5
18862sed 's/^/| /' conftest.$ac_ext >&5
18863
18864ac_lo= ac_hi=
18865fi
ac1cb8d3 18866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18867fi
ac1cb8d3 18868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18869# Binary search between lo and hi bounds.
18870while test "x$ac_lo" != "x$ac_hi"; do
18871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18872 cat >conftest.$ac_ext <<_ACEOF
18873/* confdefs.h. */
18874_ACEOF
18875cat confdefs.h >>conftest.$ac_ext
18876cat >>conftest.$ac_ext <<_ACEOF
18877/* end confdefs.h. */
18878$ac_includes_default
18879int
18880main ()
18881{
18882static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18883test_array [0] = 0
18884
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889rm -f conftest.$ac_objext
18890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18891 (eval $ac_compile) 2>conftest.er1
a848cd7e 18892 ac_status=$?
ac1cb8d3
VS
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
a848cd7e
SC
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } &&
bb9e79c0 18898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_hi=$ac_mid
18911else
18912 echo "$as_me: failed program was:" >&5
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
18915ac_lo=`expr '(' $ac_mid ')' + 1`
18916fi
ac1cb8d3 18917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18918done
18919case $ac_lo in
18920?*) ac_cv_sizeof_short=$ac_lo;;
18921'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18922See \`config.log' for more details." >&5
18923echo "$as_me: error: cannot compute sizeof (short), 77
18924See \`config.log' for more details." >&2;}
18925 { (exit 1); exit 1; }; } ;;
18926esac
18927else
18928 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18929 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18930echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18931 { (exit 1); exit 1; }; }
18932else
18933 cat >conftest.$ac_ext <<_ACEOF
18934/* confdefs.h. */
18935_ACEOF
18936cat confdefs.h >>conftest.$ac_ext
18937cat >>conftest.$ac_ext <<_ACEOF
18938/* end confdefs.h. */
18939$ac_includes_default
18940long longval () { return (long) (sizeof (short)); }
18941unsigned long ulongval () { return (long) (sizeof (short)); }
18942#include <stdio.h>
18943#include <stdlib.h>
18944int
18945main ()
18946{
18947
18948 FILE *f = fopen ("conftest.val", "w");
18949 if (! f)
18950 exit (1);
18951 if (((long) (sizeof (short))) < 0)
18952 {
18953 long i = longval ();
18954 if (i != ((long) (sizeof (short))))
18955 exit (1);
18956 fprintf (f, "%ld\n", i);
18957 }
18958 else
18959 {
18960 unsigned long i = ulongval ();
18961 if (i != ((long) (sizeof (short))))
18962 exit (1);
18963 fprintf (f, "%lu\n", i);
18964 }
18965 exit (ferror (f) || fclose (f) != 0);
18966
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971rm -f conftest$ac_exeext
18972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_sizeof_short=`cat conftest.val`
18983else
18984 echo "$as_me: program exited with status $ac_status" >&5
18985echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988( exit $ac_status )
18989{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18990See \`config.log' for more details." >&5
18991echo "$as_me: error: cannot compute sizeof (short), 77
18992See \`config.log' for more details." >&2;}
18993 { (exit 1); exit 1; }; }
18994fi
ac1cb8d3 18995rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18996fi
18997fi
18998rm -f conftest.val
18999else
19000 ac_cv_sizeof_short=0
19001fi
19002fi
19003echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19004echo "${ECHO_T}$ac_cv_sizeof_short" >&6
19005cat >>confdefs.h <<_ACEOF
19006#define SIZEOF_SHORT $ac_cv_sizeof_short
19007_ACEOF
19008
19009
19010echo "$as_me:$LINENO: checking for void *" >&5
19011echo $ECHO_N "checking for void *... $ECHO_C" >&6
19012if test "${ac_cv_type_void_p+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014else
19015 cat >conftest.$ac_ext <<_ACEOF
19016/* confdefs.h. */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h. */
19021$ac_includes_default
19022int
19023main ()
19024{
19025if ((void * *) 0)
19026 return 0;
19027if (sizeof (void *))
19028 return 0;
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext
19034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19035 (eval $ac_compile) 2>conftest.er1
a848cd7e 19036 ac_status=$?
ac1cb8d3
VS
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
a848cd7e
SC
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
bb9e79c0 19042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_type_void_p=yes
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
19058
19059ac_cv_type_void_p=no
19060fi
ac1cb8d3 19061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19062fi
19063echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19064echo "${ECHO_T}$ac_cv_type_void_p" >&6
19065
19066echo "$as_me:$LINENO: checking size of void *" >&5
19067echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19068if test "${ac_cv_sizeof_void_p+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071 if test "$ac_cv_type_void_p" = yes; then
19072 # The cast to unsigned long works around a bug in the HP C Compiler
19073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19075 # This bug is HP SR number 8606223364.
19076 if test "$cross_compiling" = yes; then
19077 # Depending upon the size, compute the lo and hi bounds.
19078cat >conftest.$ac_ext <<_ACEOF
19079/* confdefs.h. */
19080_ACEOF
19081cat confdefs.h >>conftest.$ac_ext
19082cat >>conftest.$ac_ext <<_ACEOF
19083/* end confdefs.h. */
19084$ac_includes_default
19085int
19086main ()
19087{
19088static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19089test_array [0] = 0
19090
19091 ;
19092 return 0;
19093}
19094_ACEOF
19095rm -f conftest.$ac_objext
19096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19097 (eval $ac_compile) 2>conftest.er1
a848cd7e 19098 ac_status=$?
ac1cb8d3
VS
19099 grep -v '^ *+' conftest.er1 >conftest.err
19100 rm -f conftest.er1
19101 cat conftest.err >&5
a848cd7e
SC
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } &&
bb9e79c0 19104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_lo=0 ac_mid=0
19117 while :; do
19118 cat >conftest.$ac_ext <<_ACEOF
19119/* confdefs.h. */
19120_ACEOF
19121cat confdefs.h >>conftest.$ac_ext
19122cat >>conftest.$ac_ext <<_ACEOF
19123/* end confdefs.h. */
19124$ac_includes_default
19125int
19126main ()
19127{
19128static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19129test_array [0] = 0
19130
19131 ;
19132 return 0;
19133}
19134_ACEOF
19135rm -f conftest.$ac_objext
19136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19137 (eval $ac_compile) 2>conftest.er1
a848cd7e 19138 ac_status=$?
ac1cb8d3
VS
19139 grep -v '^ *+' conftest.er1 >conftest.err
19140 rm -f conftest.er1
19141 cat conftest.err >&5
a848cd7e
SC
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
bb9e79c0 19144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_hi=$ac_mid; break
19157else
19158 echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19162 if test $ac_lo -le $ac_mid; then
19163 ac_lo= ac_hi=
19164 break
19165 fi
19166 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169 done
19170else
19171 echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
19174cat >conftest.$ac_ext <<_ACEOF
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
19180$ac_includes_default
19181int
19182main ()
19183{
19184static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19185test_array [0] = 0
19186
19187 ;
19188 return 0;
19189}
19190_ACEOF
19191rm -f conftest.$ac_objext
19192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19193 (eval $ac_compile) 2>conftest.er1
a848cd7e 19194 ac_status=$?
ac1cb8d3
VS
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
a848cd7e
SC
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
bb9e79c0 19200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_hi=-1 ac_mid=-1
19213 while :; do
19214 cat >conftest.$ac_ext <<_ACEOF
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220$ac_includes_default
19221int
19222main ()
19223{
19224static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19225test_array [0] = 0
19226
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19233 (eval $ac_compile) 2>conftest.er1
a848cd7e 19234 ac_status=$?
ac1cb8d3
VS
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
a848cd7e
SC
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
bb9e79c0 19240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 ac_lo=$ac_mid; break
19253else
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
19257ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19258 if test $ac_mid -le $ac_hi; then
19259 ac_lo= ac_hi=
19260 break
19261 fi
19262 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19263fi
ac1cb8d3 19264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19265 done
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270ac_lo= ac_hi=
19271fi
ac1cb8d3 19272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19273fi
ac1cb8d3 19274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19275# Binary search between lo and hi bounds.
19276while test "x$ac_lo" != "x$ac_hi"; do
19277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19278 cat >conftest.$ac_ext <<_ACEOF
19279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h. */
19284$ac_includes_default
19285int
19286main ()
19287{
19288static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19289test_array [0] = 0
19290
19291 ;
19292 return 0;
19293}
19294_ACEOF
19295rm -f conftest.$ac_objext
19296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19297 (eval $ac_compile) 2>conftest.er1
a848cd7e 19298 ac_status=$?
ac1cb8d3
VS
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
a848cd7e
SC
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
bb9e79c0 19304 { ac_try='test -z "$ac_cxx_werror_flag" || 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_void_p=$ac_lo;;
19327'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19328See \`config.log' for more details." >&5
19329echo "$as_me: error: cannot compute sizeof (void *), 77
19330See \`config.log' for more details." >&2;}
19331 { (exit 1); exit 1; }; } ;;
19332esac
19333else
19334 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19335 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19336echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19337 { (exit 1); exit 1; }; }
19338else
19339 cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
19345$ac_includes_default
19346long longval () { return (long) (sizeof (void *)); }
19347unsigned long ulongval () { return (long) (sizeof (void *)); }
19348#include <stdio.h>
19349#include <stdlib.h>
19350int
19351main ()
19352{
19353
19354 FILE *f = fopen ("conftest.val", "w");
19355 if (! f)
19356 exit (1);
19357 if (((long) (sizeof (void *))) < 0)
19358 {
19359 long i = longval ();
19360 if (i != ((long) (sizeof (void *))))
19361 exit (1);
19362 fprintf (f, "%ld\n", i);
19363 }
19364 else
19365 {
19366 unsigned long i = ulongval ();
19367 if (i != ((long) (sizeof (void *))))
19368 exit (1);
19369 fprintf (f, "%lu\n", i);
19370 }
19371 exit (ferror (f) || fclose (f) != 0);
19372
19373 ;
19374 return 0;
19375}
19376_ACEOF
19377rm -f conftest$ac_exeext
19378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_sizeof_void_p=`cat conftest.val`
19389else
19390 echo "$as_me: program exited with status $ac_status" >&5
19391echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394( exit $ac_status )
19395{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19396See \`config.log' for more details." >&5
19397echo "$as_me: error: cannot compute sizeof (void *), 77
19398See \`config.log' for more details." >&2;}
19399 { (exit 1); exit 1; }; }
19400fi
ac1cb8d3 19401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19402fi
19403fi
19404rm -f conftest.val
19405else
19406 ac_cv_sizeof_void_p=0
19407fi
19408fi
19409echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19410echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19411cat >>confdefs.h <<_ACEOF
19412#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19413_ACEOF
19414
19415
19416echo "$as_me:$LINENO: checking for int" >&5
19417echo $ECHO_N "checking for int... $ECHO_C" >&6
19418if test "${ac_cv_type_int+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19420else
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427$ac_includes_default
19428int
19429main ()
19430{
19431if ((int *) 0)
19432 return 0;
19433if (sizeof (int))
19434 return 0;
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19441 (eval $ac_compile) 2>conftest.er1
a848cd7e 19442 ac_status=$?
ac1cb8d3
VS
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
a848cd7e
SC
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
bb9e79c0 19448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_type_int=yes
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_cv_type_int=no
19466fi
ac1cb8d3 19467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19468fi
19469echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19470echo "${ECHO_T}$ac_cv_type_int" >&6
19471
19472echo "$as_me:$LINENO: checking size of int" >&5
19473echo $ECHO_N "checking size of int... $ECHO_C" >&6
19474if test "${ac_cv_sizeof_int+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19476else
19477 if test "$ac_cv_type_int" = yes; then
19478 # The cast to unsigned long works around a bug in the HP C Compiler
19479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19481 # This bug is HP SR number 8606223364.
19482 if test "$cross_compiling" = yes; then
19483 # Depending upon the size, compute the lo and hi bounds.
19484cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
19490$ac_includes_default
19491int
19492main ()
19493{
19494static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19495test_array [0] = 0
19496
19497 ;
19498 return 0;
19499}
19500_ACEOF
19501rm -f conftest.$ac_objext
19502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19503 (eval $ac_compile) 2>conftest.er1
a848cd7e 19504 ac_status=$?
ac1cb8d3
VS
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
a848cd7e
SC
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
bb9e79c0 19510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_lo=0 ac_mid=0
19523 while :; do
19524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
19530$ac_includes_default
19531int
19532main ()
19533{
19534static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19535test_array [0] = 0
19536
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19543 (eval $ac_compile) 2>conftest.er1
a848cd7e 19544 ac_status=$?
ac1cb8d3
VS
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
a848cd7e
SC
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
bb9e79c0 19550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_hi=$ac_mid; break
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19568 if test $ac_lo -le $ac_mid; then
19569 ac_lo= ac_hi=
19570 break
19571 fi
19572 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19573fi
ac1cb8d3 19574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19575 done
19576else
19577 echo "$as_me: failed program was:" >&5
19578sed 's/^/| /' conftest.$ac_ext >&5
19579
19580cat >conftest.$ac_ext <<_ACEOF
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
19586$ac_includes_default
19587int
19588main ()
19589{
19590static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19591test_array [0] = 0
19592
19593 ;
19594 return 0;
19595}
19596_ACEOF
19597rm -f conftest.$ac_objext
19598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19599 (eval $ac_compile) 2>conftest.er1
a848cd7e 19600 ac_status=$?
ac1cb8d3
VS
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
a848cd7e
SC
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
bb9e79c0 19606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_hi=-1 ac_mid=-1
19619 while :; do
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626$ac_includes_default
19627int
19628main ()
19629{
19630static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19631test_array [0] = 0
19632
19633 ;
19634 return 0;
19635}
19636_ACEOF
19637rm -f conftest.$ac_objext
19638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19639 (eval $ac_compile) 2>conftest.er1
a848cd7e 19640 ac_status=$?
ac1cb8d3
VS
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
a848cd7e
SC
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
bb9e79c0 19646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_lo=$ac_mid; break
19659else
19660 echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19664 if test $ac_mid -le $ac_hi; then
19665 ac_lo= ac_hi=
19666 break
19667 fi
19668 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19669fi
ac1cb8d3 19670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19671 done
19672else
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676ac_lo= ac_hi=
19677fi
ac1cb8d3 19678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19679fi
ac1cb8d3 19680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19681# Binary search between lo and hi bounds.
19682while test "x$ac_lo" != "x$ac_hi"; do
19683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19684 cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h. */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h. */
19690$ac_includes_default
19691int
19692main ()
19693{
19694static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19695test_array [0] = 0
19696
19697 ;
19698 return 0;
19699}
19700_ACEOF
19701rm -f conftest.$ac_objext
19702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19703 (eval $ac_compile) 2>conftest.er1
a848cd7e 19704 ac_status=$?
ac1cb8d3
VS
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
a848cd7e
SC
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
bb9e79c0 19710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; } &&
19716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_hi=$ac_mid
19723else
19724 echo "$as_me: failed program was:" >&5
19725sed 's/^/| /' conftest.$ac_ext >&5
19726
19727ac_lo=`expr '(' $ac_mid ')' + 1`
19728fi
ac1cb8d3 19729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19730done
19731case $ac_lo in
19732?*) ac_cv_sizeof_int=$ac_lo;;
19733'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19734See \`config.log' for more details." >&5
19735echo "$as_me: error: cannot compute sizeof (int), 77
19736See \`config.log' for more details." >&2;}
19737 { (exit 1); exit 1; }; } ;;
19738esac
19739else
19740 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19741 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19742echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19743 { (exit 1); exit 1; }; }
19744else
19745 cat >conftest.$ac_ext <<_ACEOF
19746/* confdefs.h. */
19747_ACEOF
19748cat confdefs.h >>conftest.$ac_ext
19749cat >>conftest.$ac_ext <<_ACEOF
19750/* end confdefs.h. */
19751$ac_includes_default
19752long longval () { return (long) (sizeof (int)); }
19753unsigned long ulongval () { return (long) (sizeof (int)); }
19754#include <stdio.h>
19755#include <stdlib.h>
19756int
19757main ()
19758{
19759
19760 FILE *f = fopen ("conftest.val", "w");
19761 if (! f)
19762 exit (1);
19763 if (((long) (sizeof (int))) < 0)
19764 {
19765 long i = longval ();
19766 if (i != ((long) (sizeof (int))))
19767 exit (1);
19768 fprintf (f, "%ld\n", i);
19769 }
19770 else
19771 {
19772 unsigned long i = ulongval ();
19773 if (i != ((long) (sizeof (int))))
19774 exit (1);
19775 fprintf (f, "%lu\n", i);
19776 }
19777 exit (ferror (f) || fclose (f) != 0);
19778
19779 ;
19780 return 0;
19781}
19782_ACEOF
19783rm -f conftest$ac_exeext
19784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19785 (eval $ac_link) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_sizeof_int=`cat conftest.val`
19795else
19796 echo "$as_me: program exited with status $ac_status" >&5
19797echo "$as_me: failed program was:" >&5
19798sed 's/^/| /' conftest.$ac_ext >&5
19799
19800( exit $ac_status )
19801{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19802See \`config.log' for more details." >&5
19803echo "$as_me: error: cannot compute sizeof (int), 77
19804See \`config.log' for more details." >&2;}
19805 { (exit 1); exit 1; }; }
19806fi
ac1cb8d3 19807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19808fi
19809fi
19810rm -f conftest.val
19811else
19812 ac_cv_sizeof_int=0
19813fi
19814fi
19815echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19816echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19817cat >>confdefs.h <<_ACEOF
19818#define SIZEOF_INT $ac_cv_sizeof_int
19819_ACEOF
19820
19821
19822echo "$as_me:$LINENO: checking for long" >&5
19823echo $ECHO_N "checking for long... $ECHO_C" >&6
19824if test "${ac_cv_type_long+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827 cat >conftest.$ac_ext <<_ACEOF
19828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
19833$ac_includes_default
19834int
19835main ()
19836{
19837if ((long *) 0)
19838 return 0;
19839if (sizeof (long))
19840 return 0;
19841 ;
19842 return 0;
19843}
19844_ACEOF
19845rm -f conftest.$ac_objext
19846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19847 (eval $ac_compile) 2>conftest.er1
a848cd7e 19848 ac_status=$?
ac1cb8d3
VS
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
a848cd7e
SC
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
bb9e79c0 19854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_cv_type_long=yes
19867else
19868 echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871ac_cv_type_long=no
19872fi
ac1cb8d3 19873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19874fi
19875echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19876echo "${ECHO_T}$ac_cv_type_long" >&6
19877
19878echo "$as_me:$LINENO: checking size of long" >&5
19879echo $ECHO_N "checking size of long... $ECHO_C" >&6
19880if test "${ac_cv_sizeof_long+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882else
19883 if test "$ac_cv_type_long" = yes; then
19884 # The cast to unsigned long works around a bug in the HP C Compiler
19885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19887 # This bug is HP SR number 8606223364.
19888 if test "$cross_compiling" = yes; then
19889 # Depending upon the size, compute the lo and hi bounds.
19890cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h. */
19896$ac_includes_default
19897int
19898main ()
19899{
19900static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19901test_array [0] = 0
19902
19903 ;
19904 return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext
19908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19909 (eval $ac_compile) 2>conftest.er1
a848cd7e 19910 ac_status=$?
ac1cb8d3
VS
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
a848cd7e
SC
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
bb9e79c0 19916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_lo=0 ac_mid=0
19929 while :; do
19930 cat >conftest.$ac_ext <<_ACEOF
19931/* confdefs.h. */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h. */
19936$ac_includes_default
19937int
19938main ()
19939{
19940static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19941test_array [0] = 0
19942
19943 ;
19944 return 0;
19945}
19946_ACEOF
19947rm -f conftest.$ac_objext
19948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19949 (eval $ac_compile) 2>conftest.er1
a848cd7e 19950 ac_status=$?
ac1cb8d3
VS
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
a848cd7e
SC
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } &&
bb9e79c0 19956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_hi=$ac_mid; break
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19974 if test $ac_lo -le $ac_mid; then
19975 ac_lo= ac_hi=
19976 break
19977 fi
19978 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19979fi
ac1cb8d3 19980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19981 done
19982else
19983 echo "$as_me: failed program was:" >&5
19984sed 's/^/| /' conftest.$ac_ext >&5
19985
19986cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992$ac_includes_default
19993int
19994main ()
19995{
19996static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19997test_array [0] = 0
19998
19999 ;
20000 return 0;
20001}
20002_ACEOF
20003rm -f conftest.$ac_objext
20004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20005 (eval $ac_compile) 2>conftest.er1
a848cd7e 20006 ac_status=$?
ac1cb8d3
VS
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
a848cd7e
SC
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
bb9e79c0 20012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } &&
20018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024 ac_hi=-1 ac_mid=-1
20025 while :; do
20026 cat >conftest.$ac_ext <<_ACEOF
20027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
20032$ac_includes_default
20033int
20034main ()
20035{
20036static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20037test_array [0] = 0
20038
20039 ;
20040 return 0;
20041}
20042_ACEOF
20043rm -f conftest.$ac_objext
20044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20045 (eval $ac_compile) 2>conftest.er1
a848cd7e 20046 ac_status=$?
ac1cb8d3
VS
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
a848cd7e
SC
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
bb9e79c0 20052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_lo=$ac_mid; break
20065else
20066 echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
20068
20069ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20070 if test $ac_mid -le $ac_hi; then
20071 ac_lo= ac_hi=
20072 break
20073 fi
20074 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20075fi
ac1cb8d3 20076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20077 done
20078else
20079 echo "$as_me: failed program was:" >&5
20080sed 's/^/| /' conftest.$ac_ext >&5
20081
20082ac_lo= ac_hi=
20083fi
ac1cb8d3 20084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20085fi
ac1cb8d3 20086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20087# Binary search between lo and hi bounds.
20088while test "x$ac_lo" != "x$ac_hi"; do
20089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20090 cat >conftest.$ac_ext <<_ACEOF
20091/* confdefs.h. */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h. */
20096$ac_includes_default
20097int
20098main ()
20099{
20100static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20101test_array [0] = 0
20102
20103 ;
20104 return 0;
20105}
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20109 (eval $ac_compile) 2>conftest.er1
a848cd7e 20110 ac_status=$?
ac1cb8d3
VS
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
a848cd7e
SC
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
bb9e79c0 20116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_hi=$ac_mid
20129else
20130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133ac_lo=`expr '(' $ac_mid ')' + 1`
20134fi
ac1cb8d3 20135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20136done
20137case $ac_lo in
20138?*) ac_cv_sizeof_long=$ac_lo;;
20139'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20140See \`config.log' for more details." >&5
20141echo "$as_me: error: cannot compute sizeof (long), 77
20142See \`config.log' for more details." >&2;}
20143 { (exit 1); exit 1; }; } ;;
20144esac
20145else
20146 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20147 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20148echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20149 { (exit 1); exit 1; }; }
20150else
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157$ac_includes_default
20158long longval () { return (long) (sizeof (long)); }
20159unsigned long ulongval () { return (long) (sizeof (long)); }
20160#include <stdio.h>
20161#include <stdlib.h>
20162int
20163main ()
20164{
20165
20166 FILE *f = fopen ("conftest.val", "w");
20167 if (! f)
20168 exit (1);
20169 if (((long) (sizeof (long))) < 0)
20170 {
20171 long i = longval ();
20172 if (i != ((long) (sizeof (long))))
20173 exit (1);
20174 fprintf (f, "%ld\n", i);
20175 }
20176 else
20177 {
20178 unsigned long i = ulongval ();
20179 if (i != ((long) (sizeof (long))))
20180 exit (1);
20181 fprintf (f, "%lu\n", i);
20182 }
20183 exit (ferror (f) || fclose (f) != 0);
20184
20185 ;
20186 return 0;
20187}
20188_ACEOF
20189rm -f conftest$ac_exeext
20190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191 (eval $ac_link) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 ac_cv_sizeof_long=`cat conftest.val`
20201else
20202 echo "$as_me: program exited with status $ac_status" >&5
20203echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
20206( exit $ac_status )
20207{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20208See \`config.log' for more details." >&5
20209echo "$as_me: error: cannot compute sizeof (long), 77
20210See \`config.log' for more details." >&2;}
20211 { (exit 1); exit 1; }; }
20212fi
ac1cb8d3 20213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20214fi
20215fi
20216rm -f conftest.val
20217else
20218 ac_cv_sizeof_long=0
20219fi
20220fi
20221echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20222echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20223cat >>confdefs.h <<_ACEOF
20224#define SIZEOF_LONG $ac_cv_sizeof_long
20225_ACEOF
20226
20227
20228echo "$as_me:$LINENO: checking for size_t" >&5
20229echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20230if test "${ac_cv_type_size_t+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232else
20233 cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
20239$ac_includes_default
20240int
20241main ()
20242{
20243if ((size_t *) 0)
20244 return 0;
20245if (sizeof (size_t))
20246 return 0;
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20253 (eval $ac_compile) 2>conftest.er1
a848cd7e 20254 ac_status=$?
ac1cb8d3
VS
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
a848cd7e
SC
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
bb9e79c0 20260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_type_size_t=yes
20273else
20274 echo "$as_me: failed program was:" >&5
20275sed 's/^/| /' conftest.$ac_ext >&5
20276
20277ac_cv_type_size_t=no
20278fi
ac1cb8d3 20279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20280fi
20281echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20282echo "${ECHO_T}$ac_cv_type_size_t" >&6
20283
20284echo "$as_me:$LINENO: checking size of size_t" >&5
20285echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20286if test "${ac_cv_sizeof_size_t+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20288else
20289 if test "$ac_cv_type_size_t" = yes; then
20290 # The cast to unsigned long works around a bug in the HP C Compiler
20291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20293 # This bug is HP SR number 8606223364.
20294 if test "$cross_compiling" = yes; then
20295 # Depending upon the size, compute the lo and hi bounds.
20296cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
20302$ac_includes_default
20303int
20304main ()
20305{
20306static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20307test_array [0] = 0
20308
20309 ;
20310 return 0;
20311}
20312_ACEOF
20313rm -f conftest.$ac_objext
20314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20315 (eval $ac_compile) 2>conftest.er1
a848cd7e 20316 ac_status=$?
ac1cb8d3
VS
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
a848cd7e
SC
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
bb9e79c0 20322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; } &&
20328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 ac_lo=0 ac_mid=0
20335 while :; do
20336 cat >conftest.$ac_ext <<_ACEOF
20337/* confdefs.h. */
20338_ACEOF
20339cat confdefs.h >>conftest.$ac_ext
20340cat >>conftest.$ac_ext <<_ACEOF
20341/* end confdefs.h. */
20342$ac_includes_default
20343int
20344main ()
20345{
20346static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20347test_array [0] = 0
20348
20349 ;
20350 return 0;
20351}
20352_ACEOF
20353rm -f conftest.$ac_objext
20354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20355 (eval $ac_compile) 2>conftest.er1
a848cd7e 20356 ac_status=$?
ac1cb8d3
VS
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
a848cd7e
SC
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
bb9e79c0 20362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_hi=$ac_mid; break
20375else
20376 echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20380 if test $ac_lo -le $ac_mid; then
20381 ac_lo= ac_hi=
20382 break
20383 fi
20384 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20385fi
ac1cb8d3 20386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20387 done
20388else
20389 echo "$as_me: failed program was:" >&5
20390sed 's/^/| /' conftest.$ac_ext >&5
20391
20392cat >conftest.$ac_ext <<_ACEOF
20393/* confdefs.h. */
20394_ACEOF
20395cat confdefs.h >>conftest.$ac_ext
20396cat >>conftest.$ac_ext <<_ACEOF
20397/* end confdefs.h. */
20398$ac_includes_default
20399int
20400main ()
20401{
20402static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20403test_array [0] = 0
20404
20405 ;
20406 return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20411 (eval $ac_compile) 2>conftest.er1
a848cd7e 20412 ac_status=$?
ac1cb8d3
VS
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
a848cd7e
SC
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
bb9e79c0 20418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_hi=-1 ac_mid=-1
20431 while :; do
20432 cat >conftest.$ac_ext <<_ACEOF
20433/* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h. */
20438$ac_includes_default
20439int
20440main ()
20441{
20442static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20443test_array [0] = 0
20444
20445 ;
20446 return 0;
20447}
20448_ACEOF
20449rm -f conftest.$ac_objext
20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20451 (eval $ac_compile) 2>conftest.er1
a848cd7e 20452 ac_status=$?
ac1cb8d3
VS
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
a848cd7e
SC
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
bb9e79c0 20458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_lo=$ac_mid; break
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20476 if test $ac_mid -le $ac_hi; then
20477 ac_lo= ac_hi=
20478 break
20479 fi
20480 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20481fi
ac1cb8d3 20482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20483 done
20484else
20485 echo "$as_me: failed program was:" >&5
20486sed 's/^/| /' conftest.$ac_ext >&5
20487
20488ac_lo= ac_hi=
20489fi
ac1cb8d3 20490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20491fi
ac1cb8d3 20492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20493# Binary search between lo and hi bounds.
20494while test "x$ac_lo" != "x$ac_hi"; do
20495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20496 cat >conftest.$ac_ext <<_ACEOF
20497/* confdefs.h. */
20498_ACEOF
20499cat confdefs.h >>conftest.$ac_ext
20500cat >>conftest.$ac_ext <<_ACEOF
20501/* end confdefs.h. */
20502$ac_includes_default
20503int
20504main ()
20505{
20506static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20507test_array [0] = 0
20508
20509 ;
20510 return 0;
20511}
20512_ACEOF
20513rm -f conftest.$ac_objext
20514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20515 (eval $ac_compile) 2>conftest.er1
a848cd7e 20516 ac_status=$?
ac1cb8d3
VS
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
a848cd7e
SC
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
bb9e79c0 20522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } &&
20528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_hi=$ac_mid
20535else
20536 echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
20539ac_lo=`expr '(' $ac_mid ')' + 1`
20540fi
ac1cb8d3 20541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20542done
20543case $ac_lo in
20544?*) ac_cv_sizeof_size_t=$ac_lo;;
20545'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20546See \`config.log' for more details." >&5
20547echo "$as_me: error: cannot compute sizeof (size_t), 77
20548See \`config.log' for more details." >&2;}
20549 { (exit 1); exit 1; }; } ;;
20550esac
20551else
20552 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20553 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20554echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20555 { (exit 1); exit 1; }; }
20556else
20557 cat >conftest.$ac_ext <<_ACEOF
20558/* confdefs.h. */
20559_ACEOF
20560cat confdefs.h >>conftest.$ac_ext
20561cat >>conftest.$ac_ext <<_ACEOF
20562/* end confdefs.h. */
20563$ac_includes_default
20564long longval () { return (long) (sizeof (size_t)); }
20565unsigned long ulongval () { return (long) (sizeof (size_t)); }
20566#include <stdio.h>
20567#include <stdlib.h>
20568int
20569main ()
20570{
20571
20572 FILE *f = fopen ("conftest.val", "w");
20573 if (! f)
20574 exit (1);
20575 if (((long) (sizeof (size_t))) < 0)
20576 {
20577 long i = longval ();
20578 if (i != ((long) (sizeof (size_t))))
20579 exit (1);
20580 fprintf (f, "%ld\n", i);
20581 }
20582 else
20583 {
20584 unsigned long i = ulongval ();
20585 if (i != ((long) (sizeof (size_t))))
20586 exit (1);
20587 fprintf (f, "%lu\n", i);
20588 }
20589 exit (ferror (f) || fclose (f) != 0);
20590
20591 ;
20592 return 0;
20593}
20594_ACEOF
20595rm -f conftest$ac_exeext
20596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597 (eval $ac_link) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_cv_sizeof_size_t=`cat conftest.val`
20607else
20608 echo "$as_me: program exited with status $ac_status" >&5
20609echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612( exit $ac_status )
20613{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20614See \`config.log' for more details." >&5
20615echo "$as_me: error: cannot compute sizeof (size_t), 77
20616See \`config.log' for more details." >&2;}
20617 { (exit 1); exit 1; }; }
20618fi
ac1cb8d3 20619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20620fi
20621fi
20622rm -f conftest.val
20623else
20624 ac_cv_sizeof_size_t=0
20625fi
20626fi
20627echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20628echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20629cat >>confdefs.h <<_ACEOF
20630#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20631_ACEOF
20632
20633
20634
20635case "${host}" in
20636 arm-*-linux* )
20637 echo "$as_me:$LINENO: checking for long long" >&5
20638echo $ECHO_N "checking for long long... $ECHO_C" >&6
20639if test "${ac_cv_type_long_long+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641else
20642 cat >conftest.$ac_ext <<_ACEOF
20643/* confdefs.h. */
20644_ACEOF
20645cat confdefs.h >>conftest.$ac_ext
20646cat >>conftest.$ac_ext <<_ACEOF
20647/* end confdefs.h. */
20648$ac_includes_default
20649int
20650main ()
20651{
20652if ((long long *) 0)
20653 return 0;
20654if (sizeof (long long))
20655 return 0;
20656 ;
20657 return 0;
20658}
20659_ACEOF
20660rm -f conftest.$ac_objext
20661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20662 (eval $ac_compile) 2>conftest.er1
a848cd7e 20663 ac_status=$?
ac1cb8d3
VS
20664 grep -v '^ *+' conftest.er1 >conftest.err
20665 rm -f conftest.er1
20666 cat conftest.err >&5
a848cd7e
SC
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
bb9e79c0 20669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ac_cv_type_long_long=yes
20682else
20683 echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686ac_cv_type_long_long=no
20687fi
ac1cb8d3 20688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20689fi
20690echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20691echo "${ECHO_T}$ac_cv_type_long_long" >&6
20692
20693echo "$as_me:$LINENO: checking size of long long" >&5
20694echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20695if test "${ac_cv_sizeof_long_long+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697else
20698 if test "$ac_cv_type_long_long" = yes; then
20699 # The cast to unsigned long works around a bug in the HP C Compiler
20700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20702 # This bug is HP SR number 8606223364.
20703 if test "$cross_compiling" = yes; then
20704 # Depending upon the size, compute the lo and hi bounds.
20705cat >conftest.$ac_ext <<_ACEOF
20706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
20711$ac_includes_default
20712int
20713main ()
20714{
20715static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20716test_array [0] = 0
20717
20718 ;
20719 return 0;
20720}
20721_ACEOF
20722rm -f conftest.$ac_objext
20723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20724 (eval $ac_compile) 2>conftest.er1
a848cd7e 20725 ac_status=$?
ac1cb8d3
VS
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
a848cd7e
SC
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
bb9e79c0 20731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
20743 ac_lo=0 ac_mid=0
20744 while :; do
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751$ac_includes_default
20752int
20753main ()
20754{
20755static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20756test_array [0] = 0
20757
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext
20763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20764 (eval $ac_compile) 2>conftest.er1
a848cd7e 20765 ac_status=$?
ac1cb8d3
VS
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
a848cd7e
SC
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
bb9e79c0 20771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_hi=$ac_mid; break
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20789 if test $ac_lo -le $ac_mid; then
20790 ac_lo= ac_hi=
20791 break
20792 fi
20793 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20794fi
ac1cb8d3 20795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20796 done
20797else
20798 echo "$as_me: failed program was:" >&5
20799sed 's/^/| /' conftest.$ac_ext >&5
20800
20801cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h. */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h. */
20807$ac_includes_default
20808int
20809main ()
20810{
20811static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20812test_array [0] = 0
20813
20814 ;
20815 return 0;
20816}
20817_ACEOF
20818rm -f conftest.$ac_objext
20819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20820 (eval $ac_compile) 2>conftest.er1
a848cd7e 20821 ac_status=$?
ac1cb8d3
VS
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
a848cd7e
SC
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } &&
bb9e79c0 20827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 ac_hi=-1 ac_mid=-1
20840 while :; do
20841 cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
20847$ac_includes_default
20848int
20849main ()
20850{
20851static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20852test_array [0] = 0
20853
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext
20859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20860 (eval $ac_compile) 2>conftest.er1
a848cd7e 20861 ac_status=$?
ac1cb8d3
VS
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
a848cd7e
SC
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
bb9e79c0 20867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_lo=$ac_mid; break
20880else
20881 echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
20884ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20885 if test $ac_mid -le $ac_hi; then
20886 ac_lo= ac_hi=
20887 break
20888 fi
20889 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20890fi
ac1cb8d3 20891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20892 done
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897ac_lo= ac_hi=
20898fi
ac1cb8d3 20899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20900fi
ac1cb8d3 20901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20902# Binary search between lo and hi bounds.
20903while test "x$ac_lo" != "x$ac_hi"; do
20904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20905 cat >conftest.$ac_ext <<_ACEOF
20906/* confdefs.h. */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
20910/* end confdefs.h. */
20911$ac_includes_default
20912int
20913main ()
20914{
20915static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20916test_array [0] = 0
20917
20918 ;
20919 return 0;
20920}
20921_ACEOF
20922rm -f conftest.$ac_objext
20923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20924 (eval $ac_compile) 2>conftest.er1
a848cd7e 20925 ac_status=$?
ac1cb8d3
VS
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
a848cd7e
SC
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
bb9e79c0 20931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_hi=$ac_mid
20944else
20945 echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
20948ac_lo=`expr '(' $ac_mid ')' + 1`
20949fi
ac1cb8d3 20950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20951done
20952case $ac_lo in
20953?*) ac_cv_sizeof_long_long=$ac_lo;;
20954'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20955See \`config.log' for more details." >&5
20956echo "$as_me: error: cannot compute sizeof (long long), 77
20957See \`config.log' for more details." >&2;}
20958 { (exit 1); exit 1; }; } ;;
20959esac
20960else
20961 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20962 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20963echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20964 { (exit 1); exit 1; }; }
20965else
20966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972$ac_includes_default
20973long longval () { return (long) (sizeof (long long)); }
20974unsigned long ulongval () { return (long) (sizeof (long long)); }
20975#include <stdio.h>
20976#include <stdlib.h>
20977int
20978main ()
20979{
20980
20981 FILE *f = fopen ("conftest.val", "w");
20982 if (! f)
20983 exit (1);
20984 if (((long) (sizeof (long long))) < 0)
20985 {
20986 long i = longval ();
20987 if (i != ((long) (sizeof (long long))))
20988 exit (1);
20989 fprintf (f, "%ld\n", i);
20990 }
20991 else
20992 {
20993 unsigned long i = ulongval ();
20994 if (i != ((long) (sizeof (long long))))
20995 exit (1);
20996 fprintf (f, "%lu\n", i);
20997 }
20998 exit (ferror (f) || fclose (f) != 0);
20999
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest$ac_exeext
21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_sizeof_long_long=`cat conftest.val`
21016else
21017 echo "$as_me: program exited with status $ac_status" >&5
21018echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021( exit $ac_status )
21022{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21023See \`config.log' for more details." >&5
21024echo "$as_me: error: cannot compute sizeof (long long), 77
21025See \`config.log' for more details." >&2;}
21026 { (exit 1); exit 1; }; }
21027fi
ac1cb8d3 21028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21029fi
21030fi
21031rm -f conftest.val
21032else
21033 ac_cv_sizeof_long_long=0
21034fi
21035fi
21036echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21037echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21038cat >>confdefs.h <<_ACEOF
21039#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21040_ACEOF
21041
21042
21043 ;;
21044 *-hp-hpux* )
21045 echo "$as_me:$LINENO: checking for long long" >&5
21046echo $ECHO_N "checking for long long... $ECHO_C" >&6
21047if test "${ac_cv_type_long_long+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049else
21050 cat >conftest.$ac_ext <<_ACEOF
21051/* confdefs.h. */
21052_ACEOF
21053cat confdefs.h >>conftest.$ac_ext
21054cat >>conftest.$ac_ext <<_ACEOF
21055/* end confdefs.h. */
21056$ac_includes_default
21057int
21058main ()
21059{
21060if ((long long *) 0)
21061 return 0;
21062if (sizeof (long long))
21063 return 0;
21064 ;
21065 return 0;
21066}
21067_ACEOF
21068rm -f conftest.$ac_objext
21069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21070 (eval $ac_compile) 2>conftest.er1
a848cd7e 21071 ac_status=$?
ac1cb8d3
VS
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
a848cd7e
SC
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
bb9e79c0 21077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_cv_type_long_long=yes
21090else
21091 echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094ac_cv_type_long_long=no
21095fi
ac1cb8d3 21096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21097fi
21098echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21099echo "${ECHO_T}$ac_cv_type_long_long" >&6
21100
21101echo "$as_me:$LINENO: checking size of long long" >&5
21102echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21103if test "${ac_cv_sizeof_long_long+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21105else
21106 if test "$ac_cv_type_long_long" = yes; then
21107 # The cast to unsigned long works around a bug in the HP C Compiler
21108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21110 # This bug is HP SR number 8606223364.
21111 if test "$cross_compiling" = yes; then
21112 # Depending upon the size, compute the lo and hi bounds.
21113cat >conftest.$ac_ext <<_ACEOF
21114/* confdefs.h. */
21115_ACEOF
21116cat confdefs.h >>conftest.$ac_ext
21117cat >>conftest.$ac_ext <<_ACEOF
21118/* end confdefs.h. */
21119$ac_includes_default
21120int
21121main ()
21122{
21123static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21124test_array [0] = 0
21125
21126 ;
21127 return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext
21131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21132 (eval $ac_compile) 2>conftest.er1
a848cd7e 21133 ac_status=$?
ac1cb8d3
VS
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
a848cd7e
SC
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
bb9e79c0 21139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 ac_lo=0 ac_mid=0
21152 while :; do
21153 cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159$ac_includes_default
21160int
21161main ()
21162{
21163static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21164test_array [0] = 0
21165
21166 ;
21167 return 0;
21168}
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21172 (eval $ac_compile) 2>conftest.er1
a848cd7e 21173 ac_status=$?
ac1cb8d3
VS
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
a848cd7e
SC
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
bb9e79c0 21179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_hi=$ac_mid; break
21192else
21193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21197 if test $ac_lo -le $ac_mid; then
21198 ac_lo= ac_hi=
21199 break
21200 fi
21201 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21202fi
ac1cb8d3 21203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21204 done
21205else
21206 echo "$as_me: failed program was:" >&5
21207sed 's/^/| /' conftest.$ac_ext >&5
21208
21209cat >conftest.$ac_ext <<_ACEOF
21210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
21215$ac_includes_default
21216int
21217main ()
21218{
21219static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21220test_array [0] = 0
21221
21222 ;
21223 return 0;
21224}
21225_ACEOF
21226rm -f conftest.$ac_objext
21227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21228 (eval $ac_compile) 2>conftest.er1
a848cd7e 21229 ac_status=$?
ac1cb8d3
VS
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
a848cd7e
SC
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
bb9e79c0 21235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_hi=-1 ac_mid=-1
21248 while :; do
21249 cat >conftest.$ac_ext <<_ACEOF
21250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
21255$ac_includes_default
21256int
21257main ()
21258{
21259static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21260test_array [0] = 0
21261
21262 ;
21263 return 0;
21264}
21265_ACEOF
21266rm -f conftest.$ac_objext
21267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21268 (eval $ac_compile) 2>conftest.er1
a848cd7e 21269 ac_status=$?
ac1cb8d3
VS
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
a848cd7e
SC
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
bb9e79c0 21275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } &&
21281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21287 ac_lo=$ac_mid; break
21288else
21289 echo "$as_me: failed program was:" >&5
21290sed 's/^/| /' conftest.$ac_ext >&5
21291
21292ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21293 if test $ac_mid -le $ac_hi; then
21294 ac_lo= ac_hi=
21295 break
21296 fi
21297 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21298fi
ac1cb8d3 21299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21300 done
21301else
21302 echo "$as_me: failed program was:" >&5
21303sed 's/^/| /' conftest.$ac_ext >&5
21304
21305ac_lo= ac_hi=
21306fi
ac1cb8d3 21307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21308fi
ac1cb8d3 21309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21310# Binary search between lo and hi bounds.
21311while test "x$ac_lo" != "x$ac_hi"; do
21312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21313 cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
21319$ac_includes_default
21320int
21321main ()
21322{
21323static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21324test_array [0] = 0
21325
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext
21331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21332 (eval $ac_compile) 2>conftest.er1
a848cd7e 21333 ac_status=$?
ac1cb8d3
VS
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
a848cd7e
SC
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
bb9e79c0 21339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_hi=$ac_mid
21352else
21353 echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356ac_lo=`expr '(' $ac_mid ')' + 1`
21357fi
ac1cb8d3 21358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21359done
21360case $ac_lo in
21361?*) ac_cv_sizeof_long_long=$ac_lo;;
21362'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21363See \`config.log' for more details." >&5
21364echo "$as_me: error: cannot compute sizeof (long long), 77
21365See \`config.log' for more details." >&2;}
21366 { (exit 1); exit 1; }; } ;;
21367esac
21368else
21369 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21370 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21371echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21372 { (exit 1); exit 1; }; }
21373else
21374 cat >conftest.$ac_ext <<_ACEOF
21375/* confdefs.h. */
21376_ACEOF
21377cat confdefs.h >>conftest.$ac_ext
21378cat >>conftest.$ac_ext <<_ACEOF
21379/* end confdefs.h. */
21380$ac_includes_default
21381long longval () { return (long) (sizeof (long long)); }
21382unsigned long ulongval () { return (long) (sizeof (long long)); }
21383#include <stdio.h>
21384#include <stdlib.h>
21385int
21386main ()
21387{
21388
21389 FILE *f = fopen ("conftest.val", "w");
21390 if (! f)
21391 exit (1);
21392 if (((long) (sizeof (long long))) < 0)
21393 {
21394 long i = longval ();
21395 if (i != ((long) (sizeof (long long))))
21396 exit (1);
21397 fprintf (f, "%ld\n", i);
21398 }
21399 else
21400 {
21401 unsigned long i = ulongval ();
21402 if (i != ((long) (sizeof (long long))))
21403 exit (1);
21404 fprintf (f, "%lu\n", i);
21405 }
21406 exit (ferror (f) || fclose (f) != 0);
21407
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest$ac_exeext
21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_sizeof_long_long=`cat conftest.val`
21424else
21425 echo "$as_me: program exited with status $ac_status" >&5
21426echo "$as_me: failed program was:" >&5
21427sed 's/^/| /' conftest.$ac_ext >&5
21428
21429( exit $ac_status )
21430{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21431See \`config.log' for more details." >&5
21432echo "$as_me: error: cannot compute sizeof (long long), 77
21433See \`config.log' for more details." >&2;}
21434 { (exit 1); exit 1; }; }
21435fi
ac1cb8d3 21436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21437fi
21438fi
21439rm -f conftest.val
21440else
21441 ac_cv_sizeof_long_long=0
21442fi
21443fi
21444echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21445echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21446cat >>confdefs.h <<_ACEOF
21447#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21448_ACEOF
21449
21450
21451 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21452 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21453 fi
21454 ;;
21455 * )
21456 echo "$as_me:$LINENO: checking for long long" >&5
21457echo $ECHO_N "checking for long long... $ECHO_C" >&6
21458if test "${ac_cv_type_long_long+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460else
21461 cat >conftest.$ac_ext <<_ACEOF
21462/* confdefs.h. */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h. */
21467$ac_includes_default
21468int
21469main ()
21470{
21471if ((long long *) 0)
21472 return 0;
21473if (sizeof (long long))
21474 return 0;
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21481 (eval $ac_compile) 2>conftest.er1
a848cd7e 21482 ac_status=$?
ac1cb8d3
VS
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
a848cd7e
SC
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
bb9e79c0 21488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_cv_type_long_long=yes
21501else
21502 echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505ac_cv_type_long_long=no
21506fi
ac1cb8d3 21507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21508fi
21509echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21510echo "${ECHO_T}$ac_cv_type_long_long" >&6
21511
21512echo "$as_me:$LINENO: checking size of long long" >&5
21513echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21514if test "${ac_cv_sizeof_long_long+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 if test "$ac_cv_type_long_long" = yes; then
21518 # The cast to unsigned long works around a bug in the HP C Compiler
21519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21521 # This bug is HP SR number 8606223364.
21522 if test "$cross_compiling" = yes; then
21523 # Depending upon the size, compute the lo and hi bounds.
21524cat >conftest.$ac_ext <<_ACEOF
21525/* confdefs.h. */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h. */
21530$ac_includes_default
21531int
21532main ()
21533{
21534static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21535test_array [0] = 0
21536
21537 ;
21538 return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext
21542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21543 (eval $ac_compile) 2>conftest.er1
a848cd7e 21544 ac_status=$?
ac1cb8d3
VS
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
a848cd7e
SC
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
bb9e79c0 21550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_lo=0 ac_mid=0
21563 while :; do
21564 cat >conftest.$ac_ext <<_ACEOF
21565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
21569/* end confdefs.h. */
21570$ac_includes_default
21571int
21572main ()
21573{
21574static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21575test_array [0] = 0
21576
21577 ;
21578 return 0;
21579}
21580_ACEOF
21581rm -f conftest.$ac_objext
21582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21583 (eval $ac_compile) 2>conftest.er1
a848cd7e 21584 ac_status=$?
ac1cb8d3
VS
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
a848cd7e
SC
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
bb9e79c0 21590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 ac_hi=$ac_mid; break
21603else
21604 echo "$as_me: failed program was:" >&5
21605sed 's/^/| /' conftest.$ac_ext >&5
21606
21607ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21608 if test $ac_lo -le $ac_mid; then
21609 ac_lo= ac_hi=
21610 break
21611 fi
21612 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21613fi
ac1cb8d3 21614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21615 done
21616else
21617 echo "$as_me: failed program was:" >&5
21618sed 's/^/| /' conftest.$ac_ext >&5
21619
21620cat >conftest.$ac_ext <<_ACEOF
21621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626$ac_includes_default
21627int
21628main ()
21629{
21630static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21631test_array [0] = 0
21632
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21639 (eval $ac_compile) 2>conftest.er1
a848cd7e 21640 ac_status=$?
ac1cb8d3
VS
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
a848cd7e
SC
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
bb9e79c0 21646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_hi=-1 ac_mid=-1
21659 while :; do
21660 cat >conftest.$ac_ext <<_ACEOF
21661/* confdefs.h. */
21662_ACEOF
21663cat confdefs.h >>conftest.$ac_ext
21664cat >>conftest.$ac_ext <<_ACEOF
21665/* end confdefs.h. */
21666$ac_includes_default
21667int
21668main ()
21669{
21670static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21671test_array [0] = 0
21672
21673 ;
21674 return 0;
21675}
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21679 (eval $ac_compile) 2>conftest.er1
a848cd7e 21680 ac_status=$?
ac1cb8d3
VS
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
a848cd7e
SC
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
bb9e79c0 21686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_lo=$ac_mid; break
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21704 if test $ac_mid -le $ac_hi; then
21705 ac_lo= ac_hi=
21706 break
21707 fi
21708 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21709fi
ac1cb8d3 21710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21711 done
21712else
21713 echo "$as_me: failed program was:" >&5
21714sed 's/^/| /' conftest.$ac_ext >&5
21715
21716ac_lo= ac_hi=
21717fi
ac1cb8d3 21718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21719fi
ac1cb8d3 21720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21721# Binary search between lo and hi bounds.
21722while test "x$ac_lo" != "x$ac_hi"; do
21723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21724 cat >conftest.$ac_ext <<_ACEOF
21725/* confdefs.h. */
21726_ACEOF
21727cat confdefs.h >>conftest.$ac_ext
21728cat >>conftest.$ac_ext <<_ACEOF
21729/* end confdefs.h. */
21730$ac_includes_default
21731int
21732main ()
21733{
21734static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21735test_array [0] = 0
21736
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext
21742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21743 (eval $ac_compile) 2>conftest.er1
a848cd7e 21744 ac_status=$?
ac1cb8d3
VS
21745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
a848cd7e
SC
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
bb9e79c0 21750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 ac_hi=$ac_mid
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767ac_lo=`expr '(' $ac_mid ')' + 1`
21768fi
ac1cb8d3 21769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21770done
21771case $ac_lo in
21772?*) ac_cv_sizeof_long_long=$ac_lo;;
21773'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21774See \`config.log' for more details." >&5
21775echo "$as_me: error: cannot compute sizeof (long long), 77
21776See \`config.log' for more details." >&2;}
21777 { (exit 1); exit 1; }; } ;;
21778esac
21779else
21780 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21781 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21782echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21783 { (exit 1); exit 1; }; }
21784else
21785 cat >conftest.$ac_ext <<_ACEOF
21786/* confdefs.h. */
21787_ACEOF
21788cat confdefs.h >>conftest.$ac_ext
21789cat >>conftest.$ac_ext <<_ACEOF
21790/* end confdefs.h. */
21791$ac_includes_default
21792long longval () { return (long) (sizeof (long long)); }
21793unsigned long ulongval () { return (long) (sizeof (long long)); }
21794#include <stdio.h>
21795#include <stdlib.h>
21796int
21797main ()
21798{
21799
21800 FILE *f = fopen ("conftest.val", "w");
21801 if (! f)
21802 exit (1);
21803 if (((long) (sizeof (long long))) < 0)
21804 {
21805 long i = longval ();
21806 if (i != ((long) (sizeof (long long))))
21807 exit (1);
21808 fprintf (f, "%ld\n", i);
21809 }
21810 else
21811 {
21812 unsigned long i = ulongval ();
21813 if (i != ((long) (sizeof (long long))))
21814 exit (1);
21815 fprintf (f, "%lu\n", i);
21816 }
21817 exit (ferror (f) || fclose (f) != 0);
21818
21819 ;
21820 return 0;
21821}
21822_ACEOF
21823rm -f conftest$ac_exeext
21824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_sizeof_long_long=`cat conftest.val`
21835else
21836 echo "$as_me: program exited with status $ac_status" >&5
21837echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840( exit $ac_status )
21841{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21842See \`config.log' for more details." >&5
21843echo "$as_me: error: cannot compute sizeof (long long), 77
21844See \`config.log' for more details." >&2;}
21845 { (exit 1); exit 1; }; }
21846fi
ac1cb8d3 21847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21848fi
21849fi
21850rm -f conftest.val
21851else
21852 ac_cv_sizeof_long_long=0
21853fi
21854fi
21855echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21856echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21857cat >>confdefs.h <<_ACEOF
21858#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21859_ACEOF
21860
21861
21862esac
21863
238ecede
MW
21864echo "$as_me:$LINENO: checking for wchar_t" >&5
21865echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21866if test "${ac_cv_type_wchar_t+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868else
21869 cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
21875
83d8eb47
MW
21876 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21877 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21878 # error "fake wchar_t"
21879 #endif
21880 #ifdef HAVE_WCHAR_H
21881 # ifdef __CYGWIN__
21882 # include <stddef.h>
21883 # endif
21884 # include <wchar.h>
21885 #endif
21886 #ifdef HAVE_STDLIB_H
21887 # include <stdlib.h>
21888 #endif
21889 #include <stdio.h>
21890
21891
21892
21893int
21894main ()
21895{
21896if ((wchar_t *) 0)
21897 return 0;
21898if (sizeof (wchar_t))
21899 return 0;
21900 ;
21901 return 0;
21902}
21903_ACEOF
21904rm -f conftest.$ac_objext
21905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21906 (eval $ac_compile) 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
bb9e79c0 21913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; } &&
21919 { ac_try='test -s conftest.$ac_objext'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 ac_cv_type_wchar_t=yes
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930ac_cv_type_wchar_t=no
21931fi
21932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21933fi
21934echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21935echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21936
a848cd7e
SC
21937echo "$as_me:$LINENO: checking size of wchar_t" >&5
21938echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21939if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941else
238ecede
MW
21942 if test "$ac_cv_type_wchar_t" = yes; then
21943 # The cast to unsigned long works around a bug in the HP C Compiler
21944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21946 # This bug is HP SR number 8606223364.
21947 if test "$cross_compiling" = yes; then
21948 # Depending upon the size, compute the lo and hi bounds.
21949cat >conftest.$ac_ext <<_ACEOF
21950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
21955
83d8eb47
MW
21956 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21957 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21958 # error "fake wchar_t"
21959 #endif
21960 #ifdef HAVE_WCHAR_H
21961 # ifdef __CYGWIN__
21962 # include <stddef.h>
21963 # endif
21964 # include <wchar.h>
21965 #endif
21966 #ifdef HAVE_STDLIB_H
21967 # include <stdlib.h>
21968 #endif
21969 #include <stdio.h>
21970
21971
21972
21973int
21974main ()
21975{
21976static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21977test_array [0] = 0
21978
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext
21984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21985 (eval $ac_compile) 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
bb9e79c0 21992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; } &&
21998 { ac_try='test -s conftest.$ac_objext'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22004 ac_lo=0 ac_mid=0
22005 while :; do
22006 cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012
83d8eb47
MW
22013 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22014 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22015 # error "fake wchar_t"
22016 #endif
22017 #ifdef HAVE_WCHAR_H
22018 # ifdef __CYGWIN__
22019 # include <stddef.h>
22020 # endif
22021 # include <wchar.h>
22022 #endif
22023 #ifdef HAVE_STDLIB_H
22024 # include <stdlib.h>
22025 #endif
22026 #include <stdio.h>
22027
22028
22029
22030int
22031main ()
22032{
22033static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22034test_array [0] = 0
22035
22036 ;
22037 return 0;
22038}
22039_ACEOF
22040rm -f conftest.$ac_objext
22041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22042 (eval $ac_compile) 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } &&
bb9e79c0 22049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest.$ac_objext'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22061 ac_hi=$ac_mid; break
22062else
22063 echo "$as_me: failed program was:" >&5
22064sed 's/^/| /' conftest.$ac_ext >&5
22065
22066ac_lo=`expr $ac_mid + 1`
22067 if test $ac_lo -le $ac_mid; then
22068 ac_lo= ac_hi=
22069 break
22070 fi
22071 ac_mid=`expr 2 '*' $ac_mid + 1`
22072fi
22073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22074 done
22075else
22076 echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079cat >conftest.$ac_ext <<_ACEOF
22080/* confdefs.h. */
22081_ACEOF
22082cat confdefs.h >>conftest.$ac_ext
22083cat >>conftest.$ac_ext <<_ACEOF
22084/* end confdefs.h. */
22085
83d8eb47
MW
22086 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22087 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22088 # error "fake wchar_t"
22089 #endif
22090 #ifdef HAVE_WCHAR_H
22091 # ifdef __CYGWIN__
22092 # include <stddef.h>
22093 # endif
22094 # include <wchar.h>
22095 #endif
22096 #ifdef HAVE_STDLIB_H
22097 # include <stdlib.h>
22098 #endif
22099 #include <stdio.h>
22100
22101
22102
22103int
22104main ()
22105{
22106static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
22107test_array [0] = 0
22108
22109 ;
22110 return 0;
22111}
22112_ACEOF
22113rm -f conftest.$ac_objext
22114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115 (eval $ac_compile) 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
bb9e79c0 22122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest.$ac_objext'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 ac_hi=-1 ac_mid=-1
22135 while :; do
22136 cat >conftest.$ac_ext <<_ACEOF
22137/* confdefs.h. */
22138_ACEOF
22139cat confdefs.h >>conftest.$ac_ext
22140cat >>conftest.$ac_ext <<_ACEOF
22141/* end confdefs.h. */
22142
83d8eb47
MW
22143 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22144 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22145 # error "fake wchar_t"
22146 #endif
22147 #ifdef HAVE_WCHAR_H
22148 # ifdef __CYGWIN__
22149 # include <stddef.h>
22150 # endif
22151 # include <wchar.h>
22152 #endif
22153 #ifdef HAVE_STDLIB_H
22154 # include <stdlib.h>
22155 #endif
22156 #include <stdio.h>
22157
22158
22159
22160int
22161main ()
22162{
22163static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22164test_array [0] = 0
22165
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170rm -f conftest.$ac_objext
22171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22172 (eval $ac_compile) 2>conftest.er1
22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
bb9e79c0 22179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; } &&
22185 { ac_try='test -s conftest.$ac_objext'
22186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }; then
22191 ac_lo=$ac_mid; break
22192else
22193 echo "$as_me: failed program was:" >&5
22194sed 's/^/| /' conftest.$ac_ext >&5
22195
22196ac_hi=`expr '(' $ac_mid ')' - 1`
22197 if test $ac_mid -le $ac_hi; then
22198 ac_lo= ac_hi=
22199 break
22200 fi
22201 ac_mid=`expr 2 '*' $ac_mid`
22202fi
22203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22204 done
22205else
22206 echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209ac_lo= ac_hi=
22210fi
22211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22212fi
22213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22214# Binary search between lo and hi bounds.
22215while test "x$ac_lo" != "x$ac_hi"; do
22216 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22217 cat >conftest.$ac_ext <<_ACEOF
22218/* confdefs.h. */
22219_ACEOF
22220cat confdefs.h >>conftest.$ac_ext
22221cat >>conftest.$ac_ext <<_ACEOF
22222/* end confdefs.h. */
22223
83d8eb47
MW
22224 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22225 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22226 # error "fake wchar_t"
22227 #endif
22228 #ifdef HAVE_WCHAR_H
22229 # ifdef __CYGWIN__
22230 # include <stddef.h>
22231 # endif
22232 # include <wchar.h>
22233 #endif
22234 #ifdef HAVE_STDLIB_H
22235 # include <stdlib.h>
22236 #endif
22237 #include <stdio.h>
a848cd7e 22238
a848cd7e 22239
a848cd7e 22240
238ecede
MW
22241int
22242main ()
22243{
22244static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22245test_array [0] = 0
a848cd7e 22246
238ecede
MW
22247 ;
22248 return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253 (eval $ac_compile) 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
bb9e79c0 22260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest.$ac_objext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_hi=$ac_mid
22273else
22274 echo "$as_me: failed program was:" >&5
22275sed 's/^/| /' conftest.$ac_ext >&5
22276
22277ac_lo=`expr '(' $ac_mid ')' + 1`
22278fi
22279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22280done
22281case $ac_lo in
22282?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22283'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22284See \`config.log' for more details." >&5
22285echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22286See \`config.log' for more details." >&2;}
22287 { (exit 1); exit 1; }; } ;;
22288esac
22289else
22290 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
22291 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22292echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22293 { (exit 1); exit 1; }; }
a848cd7e
SC
22294else
22295 cat >conftest.$ac_ext <<_ACEOF
22296/* confdefs.h. */
22297_ACEOF
22298cat confdefs.h >>conftest.$ac_ext
22299cat >>conftest.$ac_ext <<_ACEOF
22300/* end confdefs.h. */
22301
83d8eb47
MW
22302 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22303 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22304 # error "fake wchar_t"
22305 #endif
22306 #ifdef HAVE_WCHAR_H
22307 # ifdef __CYGWIN__
22308 # include <stddef.h>
22309 # endif
22310 # include <wchar.h>
22311 #endif
22312 #ifdef HAVE_STDLIB_H
22313 # include <stdlib.h>
22314 #endif
22315 #include <stdio.h>
22316
22317
22318
22319long longval () { return (long) (sizeof (wchar_t)); }
22320unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22321#include <stdio.h>
22322#include <stdlib.h>
22323int
22324main ()
22325{
a848cd7e 22326
238ecede
MW
22327 FILE *f = fopen ("conftest.val", "w");
22328 if (! f)
22329 exit (1);
22330 if (((long) (sizeof (wchar_t))) < 0)
22331 {
22332 long i = longval ();
22333 if (i != ((long) (sizeof (wchar_t))))
22334 exit (1);
22335 fprintf (f, "%ld\n", i);
22336 }
22337 else
22338 {
22339 unsigned long i = ulongval ();
22340 if (i != ((long) (sizeof (wchar_t))))
22341 exit (1);
22342 fprintf (f, "%lu\n", i);
22343 }
22344 exit (ferror (f) || fclose (f) != 0);
22345
22346 ;
22347 return 0;
22348}
a848cd7e
SC
22349_ACEOF
22350rm -f conftest$ac_exeext
22351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22352 (eval $ac_link) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
238ecede 22361 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22362else
22363 echo "$as_me: program exited with status $ac_status" >&5
22364echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
22367( exit $ac_status )
238ecede
MW
22368{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22369See \`config.log' for more details." >&5
22370echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22371See \`config.log' for more details." >&2;}
22372 { (exit 1); exit 1; }; }
a848cd7e 22373fi
ac1cb8d3 22374rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22375fi
a848cd7e 22376fi
238ecede
MW
22377rm -f conftest.val
22378else
22379 ac_cv_sizeof_wchar_t=0
22380fi
22381fi
22382echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22383echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22384cat >>confdefs.h <<_ACEOF
238ecede 22385#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22386_ACEOF
22387
22388
47a7e797
MW
22389if test "$ac_cv_sizeof_wchar_t" != "0"; then
22390 wxUSE_WCHAR_T=yes
22391else
22392 wxUSE_WCHAR_T=no
22393fi
238ecede 22394
ba3d13e1
VZ
22395echo "$as_me:$LINENO: checking for va_copy" >&5
22396echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22397if test "${wx_cv_func_va_copy+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399else
22400
22401 cat >conftest.$ac_ext <<_ACEOF
22402
22403 #include <stdarg.h>
22404 void foo(char *f, ...)
22405 {
22406 va_list ap1, ap2;
22407 va_start(ap1, f);
22408 va_copy(ap2, ap1);
22409 va_end(ap2);
22410 va_end(ap1);
22411 }
5886b072
VZ
22412 int main()
22413 {
b902e639
VZ
22414 foo("hi", 17);
22415 return 0;
5886b072 22416 }
ba3d13e1
VZ
22417_ACEOF
22418rm -f conftest.$ac_objext conftest$ac_exeext
22419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22420 (eval $ac_link) 2>conftest.er1
22421 ac_status=$?
22422 grep -v '^ *+' conftest.er1 >conftest.err
22423 rm -f conftest.er1
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
bb9e79c0 22427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest$ac_exeext'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22439 wx_cv_func_va_copy=yes
22440else
22441 echo "$as_me: failed program was:" >&5
22442sed 's/^/| /' conftest.$ac_ext >&5
22443
22444wx_cv_func_va_copy=no
22445
22446fi
22447rm -f conftest.err conftest.$ac_objext \
22448 conftest$ac_exeext conftest.$ac_ext
22449
22450
22451fi
22452echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22453echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22454
22455if test $wx_cv_func_va_copy = "yes"; then
22456 cat >>confdefs.h <<\_ACEOF
22457#define HAVE_VA_COPY 1
22458_ACEOF
22459
22460else
22461 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22462echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22463if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466
22467 if test "$cross_compiling" = yes; then
22468 wx_cv_type_va_list_lvalue=yes
22469
22470else
22471 cat >conftest.$ac_ext <<_ACEOF
22472
22473 #include <stdarg.h>
22474 int foo(char *f, ...)
22475 {
22476 va_list ap1, ap2;
22477 va_start(ap1, f);
22478 ap2 = ap1;
22479 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22480 return 1;
22481 va_end(ap2);
22482 va_end(ap1);
22483 return 0;
22484 }
22485 int main()
22486 {
22487 return foo("hi", 17);
22488 }
22489_ACEOF
22490rm -f conftest$ac_exeext
22491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 wx_cv_type_va_list_lvalue=yes
22502else
22503 echo "$as_me: program exited with status $ac_status" >&5
22504echo "$as_me: failed program was:" >&5
22505sed 's/^/| /' conftest.$ac_ext >&5
22506
22507( exit $ac_status )
22508wx_cv_type_va_list_lvalue=no
22509fi
22510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22511fi
22512
22513
22514fi
22515echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22516echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22517
22518 if test $wx_cv_type_va_list_lvalue != "yes"; then
22519 cat >>confdefs.h <<\_ACEOF
22520#define VA_LIST_IS_ARRAY 1
22521_ACEOF
22522
22523 fi
22524fi
22525
ca766534
VS
22526echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22527echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22528if test "${wx_cv_have_variadic_macros+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22530else
22531
22532 cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h. */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h. */
22538
22539 #include <stdio.h>
22540 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22541
22542int
22543main ()
22544{
22545
22546 test("%s %d %p", "test", 1, 0);
22547
22548
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553rm -f conftest.$ac_objext
22554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555 (eval $ac_compile) 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
bb9e79c0 22562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; } &&
22568 { ac_try='test -s conftest.$ac_objext'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 wx_cv_have_variadic_macros=yes
22575else
22576 echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579wx_cv_have_variadic_macros=no
22580
22581fi
22582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22583
22584
22585fi
22586echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22587echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22588
22589if test $wx_cv_have_variadic_macros = "yes"; then
22590 cat >>confdefs.h <<\_ACEOF
22591#define HAVE_VARIADIC_MACROS 1
22592_ACEOF
22593
22594fi
22595
a848cd7e
SC
22596# Check whether --enable-largefile or --disable-largefile was given.
22597if test "${enable_largefile+set}" = set; then
22598 enableval="$enable_largefile"
22599
22600fi;
22601if test "$enable_largefile" != no; then
22602 wx_largefile=no
22603
22604 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22605echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22606if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608else
22609
22610 cat >conftest.$ac_ext <<_ACEOF
22611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
22616#define _FILE_OFFSET_BITS 64
22617 #include <sys/types.h>
22618int
22619main ()
22620{
22621typedef struct {
22622 unsigned int field: sizeof(off_t) == 8;
22623} wxlf;
22624
22625 ;
22626 return 0;
22627}
22628_ACEOF
22629rm -f conftest.$ac_objext
22630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22631 (eval $ac_compile) 2>conftest.er1
a848cd7e 22632 ac_status=$?
ac1cb8d3
VS
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
a848cd7e
SC
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
bb9e79c0 22638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 ac_cv_sys_file_offset_bits=64
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655ac_cv_sys_file_offset_bits=no
22656fi
ac1cb8d3 22657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22658
22659
22660fi
22661echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22662echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22663
22664 if test "$ac_cv_sys_file_offset_bits" != no; then
22665 wx_largefile=yes
22666 cat >>confdefs.h <<_ACEOF
22667#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22668_ACEOF
22669
22670 fi
22671
22672 if test "x$wx_largefile" != "xyes"; then
22673
22674 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22675echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22676if test "${ac_cv_sys_large_files+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678else
22679
22680 cat >conftest.$ac_ext <<_ACEOF
22681/* confdefs.h. */
22682_ACEOF
22683cat confdefs.h >>conftest.$ac_ext
22684cat >>conftest.$ac_ext <<_ACEOF
22685/* end confdefs.h. */
22686#define _LARGE_FILES 1
22687 #include <sys/types.h>
22688int
22689main ()
22690{
22691typedef struct {
22692 unsigned int field: sizeof(off_t) == 8;
22693} wxlf;
22694
22695 ;
22696 return 0;
22697}
22698_ACEOF
22699rm -f conftest.$ac_objext
22700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22701 (eval $ac_compile) 2>conftest.er1
a848cd7e 22702 ac_status=$?
ac1cb8d3
VS
22703 grep -v '^ *+' conftest.er1 >conftest.err
22704 rm -f conftest.er1
22705 cat conftest.err >&5
a848cd7e
SC
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
bb9e79c0 22708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_sys_large_files=1
22721else
22722 echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725ac_cv_sys_large_files=no
22726fi
ac1cb8d3 22727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22728
22729
22730fi
22731echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22732echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22733
22734 if test "$ac_cv_sys_large_files" != no; then
22735 wx_largefile=yes
22736 cat >>confdefs.h <<_ACEOF
22737#define _LARGE_FILES $ac_cv_sys_large_files
22738_ACEOF
22739
22740 fi
22741
22742 fi
22743
22744 echo "$as_me:$LINENO: checking if large file support is available" >&5
22745echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22746 if test "x$wx_largefile" = "xyes"; then
22747 cat >>confdefs.h <<\_ACEOF
22748#define HAVE_LARGEFILE_SUPPORT 1
22749_ACEOF
22750
22751 fi
22752 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22753echo "${ECHO_T}$wx_largefile" >&6
22754fi
22755
5b674b9d
DE
22756
22757if test "x$wx_largefile" = "xyes"; then
22758 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22759 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22760
22761 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22762 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22763echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22764if test "${wx_cv_STDC_EXT_required+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22766else
22767
00421666
MW
22768 cat >conftest.$ac_ext <<_ACEOF
22769/* confdefs.h. */
22770_ACEOF
22771cat confdefs.h >>conftest.$ac_ext
22772cat >>conftest.$ac_ext <<_ACEOF
22773/* end confdefs.h. */
22774
22775int
22776main ()
22777{
22778
22779 #ifndef __STDC_EXT__
22780 choke me
22781 #endif
22782
22783 ;
22784 return 0;
22785}
22786_ACEOF
22787rm -f conftest.$ac_objext
22788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789 (eval $ac_compile) 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
bb9e79c0 22796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 wx_cv_STDC_EXT_required=no
22809else
22810 echo "$as_me: failed program was:" >&5
22811sed 's/^/| /' conftest.$ac_ext >&5
22812
22813wx_cv_STDC_EXT_required=yes
22814
22815fi
22816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22817
22818
22819fi
22820echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22821echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22822 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22823 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22824 fi
22825 fi
5b674b9d 22826 else
5ff751d6 22827 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22828 fi
22829 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22830echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22831if test "${ac_cv_sys_largefile_source+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833else
22834 while :; do
22835 ac_cv_sys_largefile_source=no
22836 cat >conftest.$ac_ext <<_ACEOF
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
22842#include <stdio.h>
22843int
22844main ()
22845{
22846return !fseeko;
22847 ;
22848 return 0;
22849}
22850_ACEOF
22851rm -f conftest.$ac_objext
22852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22853 (eval $ac_compile) 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
bb9e79c0 22860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest.$ac_objext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 break
22873else
22874 echo "$as_me: failed program was:" >&5
22875sed 's/^/| /' conftest.$ac_ext >&5
22876
22877fi
22878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22879 cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h. */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h. */
22885#define _LARGEFILE_SOURCE 1
22886#include <stdio.h>
22887int
22888main ()
22889{
22890return !fseeko;
22891 ;
22892 return 0;
22893}
22894_ACEOF
22895rm -f conftest.$ac_objext
22896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22897 (eval $ac_compile) 2>conftest.er1
22898 ac_status=$?
22899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } &&
bb9e79c0 22904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; } &&
22910 { ac_try='test -s conftest.$ac_objext'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 ac_cv_sys_largefile_source=1; break
22917else
22918 echo "$as_me: failed program was:" >&5
22919sed 's/^/| /' conftest.$ac_ext >&5
22920
22921fi
22922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22923 break
22924done
22925fi
22926echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22927echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22928if test "$ac_cv_sys_largefile_source" != no; then
22929
22930cat >>confdefs.h <<_ACEOF
22931#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22932_ACEOF
22933
22934fi
22935rm -f conftest*
22936
22937# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22938# in glibc 2.1.3, but that breaks too many other things.
22939# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22940echo "$as_me:$LINENO: checking for fseeko" >&5
22941echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22942if test "${ac_cv_func_fseeko+set}" = set; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22944else
22945 cat >conftest.$ac_ext <<_ACEOF
22946/* confdefs.h. */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h. */
22951#include <stdio.h>
22952int
22953main ()
22954{
22955return fseeko && fseeko (stdin, 0, 0);
22956 ;
22957 return 0;
22958}
22959_ACEOF
22960rm -f conftest.$ac_objext conftest$ac_exeext
22961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962 (eval $ac_link) 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } &&
bb9e79c0 22969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22972 ac_status=$?
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); }; } &&
22975 { ac_try='test -s conftest$ac_exeext'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22978 ac_status=$?
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; }; then
22981 ac_cv_func_fseeko=yes
22982else
22983 echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986ac_cv_func_fseeko=no
22987fi
22988rm -f conftest.err conftest.$ac_objext \
22989 conftest$ac_exeext conftest.$ac_ext
22990fi
22991echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22992echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22993if test $ac_cv_func_fseeko = yes; then
22994
22995cat >>confdefs.h <<\_ACEOF
22996#define HAVE_FSEEKO 1
22997_ACEOF
22998
22999fi
23000
5b674b9d 23001 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 23002 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 23003 fi
a848cd7e
SC
23004fi
23005
23006echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23007echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
23008if test "${ac_cv_c_bigendian+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011 ac_cv_c_bigendian=unknown
23012# See if sys/param.h defines the BYTE_ORDER macro.
23013cat >conftest.$ac_ext <<_ACEOF
23014/* confdefs.h. */
23015_ACEOF
23016cat confdefs.h >>conftest.$ac_ext
23017cat >>conftest.$ac_ext <<_ACEOF
23018/* end confdefs.h. */
23019#include <sys/types.h>
23020#include <sys/param.h>
23021int
23022main ()
23023{
23024
23025#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23026 bogus endian macros
23027#endif
23028 ;
23029 return 0;
23030}
23031_ACEOF
23032rm -f conftest.$ac_objext
23033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23034 (eval $ac_compile) 2>conftest.er1
a848cd7e 23035 ac_status=$?
ac1cb8d3
VS
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
a848cd7e
SC
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
bb9e79c0 23041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; } &&
23047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 # It does; now see whether it defined to BIG_ENDIAN or not.
23054cat >conftest.$ac_ext <<_ACEOF
23055/* confdefs.h. */
23056_ACEOF
23057cat confdefs.h >>conftest.$ac_ext
23058cat >>conftest.$ac_ext <<_ACEOF
23059/* end confdefs.h. */
23060#include <sys/types.h>
23061#include <sys/param.h>
23062int
23063main ()
23064{
23065
23066#if BYTE_ORDER != BIG_ENDIAN
23067 not big endian
23068#endif
23069 ;
23070 return 0;
23071}
23072_ACEOF
23073rm -f conftest.$ac_objext
23074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23075 (eval $ac_compile) 2>conftest.er1
a848cd7e 23076 ac_status=$?
ac1cb8d3
VS
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
a848cd7e
SC
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
bb9e79c0 23082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; } &&
23088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23090 (eval $ac_try) 2>&5
23091 ac_status=$?
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); }; }; then
23094 ac_cv_c_bigendian=yes
23095else
23096 echo "$as_me: failed program was:" >&5
23097sed 's/^/| /' conftest.$ac_ext >&5
23098
23099ac_cv_c_bigendian=no
23100fi
ac1cb8d3 23101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23102else
23103 echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
23106fi
ac1cb8d3 23107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23108if test $ac_cv_c_bigendian = unknown; then
23109if test "$cross_compiling" = yes; then
23110 ac_cv_c_bigendian=unknown
23111else
23112 cat >conftest.$ac_ext <<_ACEOF
23113/* confdefs.h. */
23114_ACEOF
23115cat confdefs.h >>conftest.$ac_ext
23116cat >>conftest.$ac_ext <<_ACEOF
23117/* end confdefs.h. */
23118main () {
23119 /* Are we little or big endian? From Harbison&Steele. */
23120 union
23121 {
23122 long l;
23123 char c[sizeof (long)];
23124 } u;
23125 u.l = 1;
23126 exit (u.c[sizeof (long) - 1] == 1);
23127}
23128_ACEOF
23129rm -f conftest$ac_exeext
23130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23131 (eval $ac_link) 2>&5
23132 ac_status=$?
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_c_bigendian=no
23141else
23142 echo "$as_me: program exited with status $ac_status" >&5
23143echo "$as_me: failed program was:" >&5
23144sed 's/^/| /' conftest.$ac_ext >&5
23145
23146( exit $ac_status )
23147ac_cv_c_bigendian=yes
23148fi
ac1cb8d3 23149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23150fi
23151fi
23152fi
23153echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23154echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23155if test $ac_cv_c_bigendian = unknown; then
23156 { 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
23157echo "$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;}
23158fi
23159if test $ac_cv_c_bigendian = yes; then
23160 cat >>confdefs.h <<\_ACEOF
23161#define WORDS_BIGENDIAN 1
23162_ACEOF
23163
23164fi
23165
23166
a848cd7e
SC
23167
23168
23169
23170 ac_ext=cc
23171ac_cpp='$CXXCPP $CPPFLAGS'
23172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23175
23176
23177
23178for ac_header in iostream
23179do
23180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23181if eval "test \"\${$as_ac_Header+set}\" = set"; then
23182 echo "$as_me:$LINENO: checking for $ac_header" >&5
23183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23184if eval "test \"\${$as_ac_Header+set}\" = set"; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23186fi
23187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23189else
23190 # Is the header compilable?
23191echo "$as_me:$LINENO: checking $ac_header usability" >&5
23192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23193cat >conftest.$ac_ext <<_ACEOF
23194/* confdefs.h. */
23195_ACEOF
23196cat confdefs.h >>conftest.$ac_ext
23197cat >>conftest.$ac_ext <<_ACEOF
23198/* end confdefs.h. */
23199$ac_includes_default
23200#include <$ac_header>
23201_ACEOF
23202rm -f conftest.$ac_objext
23203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23204 (eval $ac_compile) 2>conftest.er1
a848cd7e 23205 ac_status=$?
ac1cb8d3
VS
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
a848cd7e
SC
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
bb9e79c0 23211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; } &&
23217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); }; }; then
23223 ac_header_compiler=yes
23224else
23225 echo "$as_me: failed program was:" >&5
23226sed 's/^/| /' conftest.$ac_ext >&5
23227
23228ac_header_compiler=no
23229fi
ac1cb8d3 23230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23232echo "${ECHO_T}$ac_header_compiler" >&6
23233
23234# Is the header present?
23235echo "$as_me:$LINENO: checking $ac_header presence" >&5
23236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23237cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <$ac_header>
23244_ACEOF
23245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23247 ac_status=$?
23248 grep -v '^ *+' conftest.er1 >conftest.err
23249 rm -f conftest.er1
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } >/dev/null; then
23253 if test -s conftest.err; then
23254 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23255 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23256 else
23257 ac_cpp_err=
23258 fi
23259else
23260 ac_cpp_err=yes
23261fi
23262if test -z "$ac_cpp_err"; then
23263 ac_header_preproc=yes
23264else
23265 echo "$as_me: failed program was:" >&5
23266sed 's/^/| /' conftest.$ac_ext >&5
23267
23268 ac_header_preproc=no
23269fi
23270rm -f conftest.err conftest.$ac_ext
23271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23272echo "${ECHO_T}$ac_header_preproc" >&6
23273
23274# So? What about this header?
ac1cb8d3
VS
23275case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23276 yes:no: )
a848cd7e
SC
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23281 ac_header_preproc=yes
a848cd7e 23282 ;;
ac1cb8d3 23283 no:yes:* )
a848cd7e
SC
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23296 (
23297 cat <<\_ASBOX
ac1cb8d3
VS
23298## ----------------------------------------- ##
23299## Report this to wx-dev@lists.wxwidgets.org ##
23300## ----------------------------------------- ##
a848cd7e
SC
23301_ASBOX
23302 ) |
23303 sed "s/^/$as_me: WARNING: /" >&2
23304 ;;
23305esac
23306echo "$as_me:$LINENO: checking for $ac_header" >&5
23307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23308if eval "test \"\${$as_ac_Header+set}\" = set"; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23310else
ac1cb8d3 23311 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23312fi
23313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23315
23316fi
23317if test `eval echo '${'$as_ac_Header'}'` = yes; then
23318 cat >>confdefs.h <<_ACEOF
23319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23320_ACEOF
23321
23322fi
23323
23324done
23325
23326
23327 if test "$ac_cv_header_iostream" = "yes" ; then
23328 :
23329 else
23330 cat >>confdefs.h <<\_ACEOF
23331#define wxUSE_IOSTREAMH 1
23332_ACEOF
23333
23334 fi
23335
5d7b7554
VZ
23336 ac_ext=cc
23337ac_cpp='$CXXCPP $CPPFLAGS'
23338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23341
23342
23343
23344
23345 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23346echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23347if test "${wx_cv_cpp_bool+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23349else
23350
23351
23352
23353 ac_ext=cc
23354ac_cpp='$CXXCPP $CPPFLAGS'
23355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23358
23359
23360 cat >conftest.$ac_ext <<_ACEOF
23361/* confdefs.h. */
23362_ACEOF
23363cat confdefs.h >>conftest.$ac_ext
23364cat >>conftest.$ac_ext <<_ACEOF
23365/* end confdefs.h. */
23366
23367
23368int
23369main ()
23370{
23371
23372 bool b = true;
23373
23374 return 0;
23375
23376 ;
23377 return 0;
23378}
23379_ACEOF
23380rm -f conftest.$ac_objext
23381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23382 (eval $ac_compile) 2>conftest.er1
a848cd7e 23383 ac_status=$?
ac1cb8d3
VS
23384 grep -v '^ *+' conftest.er1 >conftest.err
23385 rm -f conftest.er1
23386 cat conftest.err >&5
a848cd7e
SC
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } &&
bb9e79c0 23389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; } &&
23395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401
23402 wx_cv_cpp_bool=yes
23403
23404else
23405 echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408
23409 wx_cv_cpp_bool=no
23410
23411
23412fi
ac1cb8d3 23413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23414
5d7b7554
VZ
23415 ac_ext=cc
23416ac_cpp='$CXXCPP $CPPFLAGS'
23417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23420
23421
23422fi
23423echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23424echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23425
23426 if test "$wx_cv_cpp_bool" = "yes"; then
23427 cat >>confdefs.h <<\_ACEOF
23428#define HAVE_BOOL 1
23429_ACEOF
23430
23431 fi
23432
23433
23434
23435 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23436echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23437if test "${wx_cv_explicit+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23439else
23440
23441
23442
23443 ac_ext=cc
23444ac_cpp='$CXXCPP $CPPFLAGS'
23445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23448
23449
23450 cat >conftest.$ac_ext <<_ACEOF
23451/* confdefs.h. */
23452_ACEOF
23453cat confdefs.h >>conftest.$ac_ext
23454cat >>conftest.$ac_ext <<_ACEOF
23455/* end confdefs.h. */
23456
23457 class Foo { public: explicit Foo(int) {} };
23458
23459int
23460main ()
23461{
23462
23463 return 0;
23464
23465 ;
23466 return 0;
23467}
23468_ACEOF
23469rm -f conftest.$ac_objext
23470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23471 (eval $ac_compile) 2>conftest.er1
a848cd7e 23472 ac_status=$?
ac1cb8d3
VS
23473 grep -v '^ *+' conftest.er1 >conftest.err
23474 rm -f conftest.er1
23475 cat conftest.err >&5
a848cd7e
SC
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } &&
bb9e79c0 23478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; } &&
23484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490
23491 cat >conftest.$ac_ext <<_ACEOF
23492/* confdefs.h. */
23493_ACEOF
23494cat confdefs.h >>conftest.$ac_ext
23495cat >>conftest.$ac_ext <<_ACEOF
23496/* end confdefs.h. */
23497
23498 class Foo { public: explicit Foo(int) {} };
23499 static void TakeFoo(const Foo& foo) { }
23500
23501int
23502main ()
23503{
23504
23505 TakeFoo(17);
23506 return 0;
23507
23508 ;
23509 return 0;
23510}
23511_ACEOF
23512rm -f conftest.$ac_objext
23513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23514 (eval $ac_compile) 2>conftest.er1
a848cd7e 23515 ac_status=$?
ac1cb8d3
VS
23516 grep -v '^ *+' conftest.er1 >conftest.err
23517 rm -f conftest.er1
23518 cat conftest.err >&5
a848cd7e
SC
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } &&
bb9e79c0 23521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; } &&
23527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; }; then
23533 wx_cv_explicit=no
23534else
23535 echo "$as_me: failed program was:" >&5
23536sed 's/^/| /' conftest.$ac_ext >&5
23537
23538wx_cv_explicit=yes
23539
23540fi
ac1cb8d3 23541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23542
23543else
23544 echo "$as_me: failed program was:" >&5
23545sed 's/^/| /' conftest.$ac_ext >&5
23546
23547wx_cv_explicit=no
23548
23549fi
ac1cb8d3 23550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23551
5d7b7554
VZ
23552 ac_ext=cc
23553ac_cpp='$CXXCPP $CPPFLAGS'
23554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23557
23558
23559fi
23560echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23561echo "${ECHO_T}$wx_cv_explicit" >&6
23562
23563 if test "$wx_cv_explicit" = "yes"; then
23564 cat >>confdefs.h <<\_ACEOF
23565#define HAVE_EXPLICIT 1
23566_ACEOF
23567
23568 fi
23569
23570
23571echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23572echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23573if test "${ac_cv_cxx_const_cast+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23575else
23576
23577
23578 ac_ext=cc
23579ac_cpp='$CXXCPP $CPPFLAGS'
23580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23583
23584 cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590
23591int
23592main ()
23593{
23594int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23595 ;
23596 return 0;
23597}
23598_ACEOF
23599rm -f conftest.$ac_objext
23600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23601 (eval $ac_compile) 2>conftest.er1
a848cd7e 23602 ac_status=$?
ac1cb8d3
VS
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
a848cd7e
SC
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
bb9e79c0 23608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; } &&
23614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; }; then
23620 ac_cv_cxx_const_cast=yes
23621else
23622 echo "$as_me: failed program was:" >&5
23623sed 's/^/| /' conftest.$ac_ext >&5
23624
23625ac_cv_cxx_const_cast=no
23626fi
ac1cb8d3 23627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23628 ac_ext=cc
23629ac_cpp='$CXXCPP $CPPFLAGS'
23630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23633
23634
23635fi
23636echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23637echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23638if test "$ac_cv_cxx_const_cast" = yes; then
23639
23640cat >>confdefs.h <<\_ACEOF
23641#define HAVE_CONST_CAST
23642_ACEOF
23643
23644fi
23645
7714864e
RL
23646echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23647echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23648if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23650else
23651
23652
23653 ac_ext=cc
23654ac_cpp='$CXXCPP $CPPFLAGS'
23655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23658
23659 cat >conftest.$ac_ext <<_ACEOF
23660/* confdefs.h. */
23661_ACEOF
23662cat confdefs.h >>conftest.$ac_ext
23663cat >>conftest.$ac_ext <<_ACEOF
23664/* end confdefs.h. */
23665#include <typeinfo>
23666class Base { public : Base () {} virtual void f () = 0;};
23667class Derived : public Base { public : Derived () {} virtual void f () {} };
23668class Unrelated { public : Unrelated () {} };
23669int g (Unrelated&) { return 0; }
23670int
23671main ()
23672{
23673
23674Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23675 ;
23676 return 0;
23677}
23678_ACEOF
23679rm -f conftest.$ac_objext
23680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23681 (eval $ac_compile) 2>conftest.er1
23682 ac_status=$?
23683 grep -v '^ *+' conftest.er1 >conftest.err
23684 rm -f conftest.er1
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } &&
bb9e79c0 23688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; } &&
23694 { ac_try='test -s conftest.$ac_objext'
23695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 ac_cv_cxx_reinterpret_cast=yes
23701else
23702 echo "$as_me: failed program was:" >&5
23703sed 's/^/| /' conftest.$ac_ext >&5
23704
23705ac_cv_cxx_reinterpret_cast=no
23706fi
23707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23708 ac_ext=cc
23709ac_cpp='$CXXCPP $CPPFLAGS'
23710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23713
23714
23715fi
23716echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23717echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23718if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23719
23720cat >>confdefs.h <<\_ACEOF
23721#define HAVE_REINTERPRET_CAST
23722_ACEOF
23723
23724fi
23725
a848cd7e
SC
23726echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23727echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23728if test "${ac_cv_cxx_static_cast+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730else
23731
23732
23733 ac_ext=cc
23734ac_cpp='$CXXCPP $CPPFLAGS'
23735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23738
23739 cat >conftest.$ac_ext <<_ACEOF
23740/* confdefs.h. */
23741_ACEOF
23742cat confdefs.h >>conftest.$ac_ext
23743cat >>conftest.$ac_ext <<_ACEOF
23744/* end confdefs.h. */
23745#include <typeinfo>
23746class Base { public : Base () {} virtual void f () = 0; };
23747class Derived : public Base { public : Derived () {} virtual void f () {} };
23748int g (Derived&) { return 0; }
23749int
23750main ()
23751{
23752
23753Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23754 ;
23755 return 0;
23756}
23757_ACEOF
23758rm -f conftest.$ac_objext
23759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23760 (eval $ac_compile) 2>conftest.er1
a848cd7e 23761 ac_status=$?
ac1cb8d3
VS
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
a848cd7e
SC
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
bb9e79c0 23767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; } &&
23773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 ac_cv_cxx_static_cast=yes
23780else
23781 echo "$as_me: failed program was:" >&5
23782sed 's/^/| /' conftest.$ac_ext >&5
23783
23784ac_cv_cxx_static_cast=no
23785fi
ac1cb8d3 23786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23787 ac_ext=cc
23788ac_cpp='$CXXCPP $CPPFLAGS'
23789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23792
23793
23794fi
23795echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23796echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23797if test "$ac_cv_cxx_static_cast" = yes; then
23798
23799cat >>confdefs.h <<\_ACEOF
23800#define HAVE_STATIC_CAST
23801_ACEOF
23802
23803fi
23804
23805
3c28b7cb 23806if test "x$SUNCXX" = xyes; then
c92ad099 23807 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23808fi
23809
9122d155 23810if test "x$SUNCC" = xyes; then
c92ad099 23811 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23812fi
23813
0ad5d837 23814if test "x$SGICC" = "xyes"; then
c92ad099 23815 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23816fi
23817if test "x$SGICXX" = "xyes"; then
c92ad099 23818 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23819fi
23820
2eef8513 23821if test "x$HPCC" = "xyes"; then
c92ad099 23822 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23823fi
23824if test "x$HPCXX" = "xyes"; then
c92ad099 23825 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23826fi
23827
23828if test "x$COMPAQCXX" = "xyes"; then
23829 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23830fi
23831
f56c22b4 23832if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23833 if test "$wxUSE_UNICODE" = "yes"; then
23834 std_string="std::wstring"
23835 char_type="wchar_t"
23836 else
23837 std_string="std::string"
23838 char_type="char"
23839 fi
23840
23841 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23842echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23843 cat >conftest.$ac_ext <<_ACEOF
23844/* confdefs.h. */
23845_ACEOF
23846cat confdefs.h >>conftest.$ac_ext
23847cat >>conftest.$ac_ext <<_ACEOF
23848/* end confdefs.h. */
23849#include <string>
a848cd7e
SC
23850int
23851main ()
23852{
f56c22b4 23853$std_string foo;
a848cd7e
SC
23854 ;
23855 return 0;
23856}
23857_ACEOF
23858rm -f conftest.$ac_objext
23859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23860 (eval $ac_compile) 2>conftest.er1
a848cd7e 23861 ac_status=$?
ac1cb8d3
VS
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
a848cd7e
SC
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
bb9e79c0 23867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; } &&
23873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 echo "$as_me:$LINENO: result: yes" >&5
23880echo "${ECHO_T}yes" >&6
0a08f02a
MB
23881 cat >>confdefs.h <<\_ACEOF
23882#define HAVE_STD_WSTRING 1
23883_ACEOF
23884
a848cd7e
SC
23885else
23886 echo "$as_me: failed program was:" >&5
23887sed 's/^/| /' conftest.$ac_ext >&5
23888
23889echo "$as_me:$LINENO: result: no" >&5
23890echo "${ECHO_T}no" >&6
f56c22b4
MW
23891 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23892echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23893 cat >conftest.$ac_ext <<_ACEOF
23894/* confdefs.h. */
23895_ACEOF
23896cat confdefs.h >>conftest.$ac_ext
23897cat >>conftest.$ac_ext <<_ACEOF
23898/* end confdefs.h. */
23899
23900 #ifdef HAVE_WCHAR_H
23901 # ifdef __CYGWIN__
23902 # include <stddef.h>
23903 # endif
23904 # include <wchar.h>
23905 #endif
23906 #ifdef HAVE_STDLIB_H
23907 # include <stdlib.h>
23908 #endif
23909 #include <stdio.h>
23910 #include <string>
23911
23912int
23913main ()
23914{
f56c22b4
MW
23915std::basic_string<$char_type> foo;
23916 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23917 ;
23918 return 0;
23919}
23920_ACEOF
23921rm -f conftest.$ac_objext
23922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23923 (eval $ac_compile) 2>conftest.er1
23924 ac_status=$?
23925 grep -v '^ *+' conftest.er1 >conftest.err
23926 rm -f conftest.er1
23927 cat conftest.err >&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } &&
bb9e79c0 23930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest.$ac_objext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 echo "$as_me:$LINENO: result: yes" >&5
23943echo "${ECHO_T}yes" >&6
23944else
23945 echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5
23947
23948echo "$as_me:$LINENO: result: no" >&5
23949echo "${ECHO_T}no" >&6
f56c22b4 23950 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23951 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23952echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23953 { (exit 1); exit 1; }; }
23954 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23955 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23956echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23957 { (exit 1); exit 1; }; }
f56c22b4
MW
23958 else
23959 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23960echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23961 wxUSE_STD_STRING=no
23962 fi
23963
0a08f02a 23964
a848cd7e 23965fi
ac1cb8d3 23966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23967
0a08f02a
MB
23968fi
23969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23970fi
23971
23972if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23973 echo "$as_me:$LINENO: checking for std::istream" >&5
23974echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23975if test "${ac_cv_type_std__istream+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23977else
23978 cat >conftest.$ac_ext <<_ACEOF
23979/* confdefs.h. */
23980_ACEOF
23981cat confdefs.h >>conftest.$ac_ext
23982cat >>conftest.$ac_ext <<_ACEOF
23983/* end confdefs.h. */
23984#include <iostream>
23985
23986int
23987main ()
23988{
23989if ((std::istream *) 0)
23990 return 0;
23991if (sizeof (std::istream))
23992 return 0;
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
bb9e79c0 24006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_cv_type_std__istream=yes
24019else
24020 echo "$as_me: failed program was:" >&5
24021sed 's/^/| /' conftest.$ac_ext >&5
24022
24023ac_cv_type_std__istream=no
24024fi
24025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24026fi
24027echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24028echo "${ECHO_T}$ac_cv_type_std__istream" >&6
24029if test $ac_cv_type_std__istream = yes; then
24030
24031cat >>confdefs.h <<_ACEOF
24032#define HAVE_STD__ISTREAM 1
24033_ACEOF
24034
24035
24036else
24037 wxUSE_STD_IOSTREAM=no
24038fi
24039echo "$as_me:$LINENO: checking for std::ostream" >&5
24040echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
24041if test "${ac_cv_type_std__ostream+set}" = set; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24043else
24044 cat >conftest.$ac_ext <<_ACEOF
24045/* confdefs.h. */
24046_ACEOF
24047cat confdefs.h >>conftest.$ac_ext
24048cat >>conftest.$ac_ext <<_ACEOF
24049/* end confdefs.h. */
24050#include <iostream>
24051
24052int
24053main ()
24054{
24055if ((std::ostream *) 0)
24056 return 0;
24057if (sizeof (std::ostream))
24058 return 0;
24059 ;
24060 return 0;
24061}
24062_ACEOF
24063rm -f conftest.$ac_objext
24064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24065 (eval $ac_compile) 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } &&
bb9e79c0 24072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest.$ac_objext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24081 ac_status=$?
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24084 ac_cv_type_std__ostream=yes
24085else
24086 echo "$as_me: failed program was:" >&5
24087sed 's/^/| /' conftest.$ac_ext >&5
24088
24089ac_cv_type_std__ostream=no
24090fi
24091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24092fi
24093echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24094echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24095if test $ac_cv_type_std__ostream = yes; then
24096
24097cat >>confdefs.h <<_ACEOF
24098#define HAVE_STD__OSTREAM 1
24099_ACEOF
24100
24101
24102else
24103 wxUSE_STD_IOSTREAM=no
24104fi
24105
24106
24107 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
24108 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24109 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24110echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24111 { (exit 1); exit 1; }; }
24112 else
24113 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 24114echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 24115 fi
f56c22b4 24116 fi
0a08f02a
MB
24117fi
24118
24119if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
24120 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24121echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
24122 cat >conftest.$ac_ext <<_ACEOF
24123/* confdefs.h. */
24124_ACEOF
24125cat confdefs.h >>conftest.$ac_ext
24126cat >>conftest.$ac_ext <<_ACEOF
24127/* end confdefs.h. */
24128#include <string>
0a08f02a
MB
24129 #include <functional>
24130 #include <algorithm>
24131 #include <vector>
24132 #include <list>
a848cd7e
SC
24133int
24134main ()
24135{
0a08f02a
MB
24136std::vector<int> moo;
24137 std::list<int> foo;
24138 std::vector<int>::iterator it =
24139 std::find_if(moo.begin(), moo.end(),
24140 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24141 ;
24142 return 0;
24143}
24144_ACEOF
24145rm -f conftest.$ac_objext
24146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24147 (eval $ac_compile) 2>conftest.er1
a848cd7e 24148 ac_status=$?
ac1cb8d3
VS
24149 grep -v '^ *+' conftest.er1 >conftest.err
24150 rm -f conftest.er1
24151 cat conftest.err >&5
a848cd7e
SC
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } &&
bb9e79c0 24154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; } &&
24160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 echo "$as_me:$LINENO: result: yes" >&5
24167echo "${ECHO_T}yes" >&6
a848cd7e
SC
24168else
24169 echo "$as_me: failed program was:" >&5
24170sed 's/^/| /' conftest.$ac_ext >&5
24171
24172echo "$as_me:$LINENO: result: no" >&5
24173echo "${ECHO_T}no" >&6
0a08f02a
MB
24174 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24175echo "$as_me: error: Basic STL functionality missing" >&2;}
24176 { (exit 1); exit 1; }; }
a848cd7e 24177fi
ac1cb8d3 24178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24179
24180 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24181echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24182 cat >conftest.$ac_ext <<_ACEOF
24183/* confdefs.h. */
24184_ACEOF
24185cat confdefs.h >>conftest.$ac_ext
24186cat >>conftest.$ac_ext <<_ACEOF
24187/* end confdefs.h. */
24188#include <string>
24189int
24190main ()
24191{
24192std::string foo, bar;
24193 foo.compare(bar);
24194 foo.compare(1, 1, bar);
24195 foo.compare(1, 1, bar, 1, 1);
24196 foo.compare("");
24197 foo.compare(1, 1, "");
24198 foo.compare(1, 1, "", 2);
24199 ;
24200 return 0;
24201}
24202_ACEOF
24203rm -f conftest.$ac_objext
24204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24205 (eval $ac_compile) 2>conftest.er1
a848cd7e 24206 ac_status=$?
ac1cb8d3
VS
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
a848cd7e
SC
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
bb9e79c0 24212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; } &&
24218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); }; }; then
24224 echo "$as_me:$LINENO: result: yes" >&5
24225echo "${ECHO_T}yes" >&6
24226 cat >>confdefs.h <<\_ACEOF
24227#define HAVE_STD_STRING_COMPARE 1
24228_ACEOF
24229
24230else
24231 echo "$as_me: failed program was:" >&5
24232sed 's/^/| /' conftest.$ac_ext >&5
24233
24234echo "$as_me:$LINENO: result: no" >&5
24235echo "${ECHO_T}no" >&6
24236fi
ac1cb8d3 24237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24238
24239 if test "${ac_cv_header_hash_map+set}" = set; then
24240 echo "$as_me:$LINENO: checking for hash_map" >&5
24241echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24242if test "${ac_cv_header_hash_map+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244fi
24245echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24246echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24247else
24248 # Is the header compilable?
24249echo "$as_me:$LINENO: checking hash_map usability" >&5
24250echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24251cat >conftest.$ac_ext <<_ACEOF
24252/* confdefs.h. */
24253_ACEOF
24254cat confdefs.h >>conftest.$ac_ext
24255cat >>conftest.$ac_ext <<_ACEOF
24256/* end confdefs.h. */
24257$ac_includes_default
24258#include <hash_map>
24259_ACEOF
24260rm -f conftest.$ac_objext
24261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24262 (eval $ac_compile) 2>conftest.er1
bdcade0a 24263 ac_status=$?
ac1cb8d3
VS
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
bdcade0a
MB
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
bb9e79c0 24269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } &&
24275 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_header_compiler=yes
24282else
24283 echo "$as_me: failed program was:" >&5
24284sed 's/^/| /' conftest.$ac_ext >&5
24285
24286ac_header_compiler=no
24287fi
ac1cb8d3 24288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24290echo "${ECHO_T}$ac_header_compiler" >&6
24291
24292# Is the header present?
24293echo "$as_me:$LINENO: checking hash_map presence" >&5
24294echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24295cat >conftest.$ac_ext <<_ACEOF
24296/* confdefs.h. */
24297_ACEOF
24298cat confdefs.h >>conftest.$ac_ext
24299cat >>conftest.$ac_ext <<_ACEOF
24300/* end confdefs.h. */
24301#include <hash_map>
24302_ACEOF
24303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24305 ac_status=$?
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } >/dev/null; then
24311 if test -s conftest.err; then
24312 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24314 else
24315 ac_cpp_err=
24316 fi
24317else
24318 ac_cpp_err=yes
24319fi
24320if test -z "$ac_cpp_err"; then
24321 ac_header_preproc=yes
24322else
24323 echo "$as_me: failed program was:" >&5
24324sed 's/^/| /' conftest.$ac_ext >&5
24325
24326 ac_header_preproc=no
24327fi
24328rm -f conftest.err conftest.$ac_ext
24329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24330echo "${ECHO_T}$ac_header_preproc" >&6
24331
24332# So? What about this header?
ac1cb8d3
VS
24333case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24334 yes:no: )
bdcade0a
MB
24335 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24336echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24337 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24338echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24339 ac_header_preproc=yes
bdcade0a 24340 ;;
ac1cb8d3 24341 no:yes:* )
bdcade0a
MB
24342 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24343echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24344 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24345echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24346 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24347echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24348 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24349echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24350 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24351echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24352 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24353echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24354 (
24355 cat <<\_ASBOX
ac1cb8d3
VS
24356## ----------------------------------------- ##
24357## Report this to wx-dev@lists.wxwidgets.org ##
24358## ----------------------------------------- ##
bdcade0a
MB
24359_ASBOX
24360 ) |
24361 sed "s/^/$as_me: WARNING: /" >&2
24362 ;;
24363esac
24364echo "$as_me:$LINENO: checking for hash_map" >&5
24365echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24366if test "${ac_cv_header_hash_map+set}" = set; then
24367 echo $ECHO_N "(cached) $ECHO_C" >&6
24368else
24369 ac_cv_header_hash_map=$ac_header_preproc
24370fi
24371echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24372echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24373
24374fi
24375if test $ac_cv_header_hash_map = yes; then
24376 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24377echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24378 cat >conftest.$ac_ext <<_ACEOF
24379/* confdefs.h. */
24380_ACEOF
24381cat confdefs.h >>conftest.$ac_ext
24382cat >>conftest.$ac_ext <<_ACEOF
24383/* end confdefs.h. */
24384#include <hash_map>
24385 #include <hash_set>
24386int
24387main ()
24388{
24389std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24390 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24391 ;
24392 return 0;
24393}
24394_ACEOF
24395rm -f conftest.$ac_objext
24396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24397 (eval $ac_compile) 2>conftest.er1
bdcade0a 24398 ac_status=$?
ac1cb8d3
VS
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
bdcade0a
MB
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } &&
bb9e79c0 24404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416 echo "$as_me:$LINENO: result: yes" >&5
24417echo "${ECHO_T}yes" >&6
24418 cat >>confdefs.h <<\_ACEOF
24419#define HAVE_HASH_MAP 1
24420_ACEOF
24421
24422 cat >>confdefs.h <<\_ACEOF
24423#define HAVE_STD_HASH_MAP 1
24424_ACEOF
24425
24426else
24427 echo "$as_me: failed program was:" >&5
24428sed 's/^/| /' conftest.$ac_ext >&5
24429
24430echo "$as_me:$LINENO: result: no" >&5
24431echo "${ECHO_T}no" >&6
24432fi
ac1cb8d3 24433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24434
24435fi
24436
24437
24438
24439 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24440 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24441echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24442if test "${ac_cv_header_ext_hash_map+set}" = set; then
24443 echo $ECHO_N "(cached) $ECHO_C" >&6
24444fi
24445echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24446echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24447else
24448 # Is the header compilable?
24449echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24450echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24451cat >conftest.$ac_ext <<_ACEOF
24452/* confdefs.h. */
24453_ACEOF
24454cat confdefs.h >>conftest.$ac_ext
24455cat >>conftest.$ac_ext <<_ACEOF
24456/* end confdefs.h. */
24457$ac_includes_default
24458#include <ext/hash_map>
24459_ACEOF
24460rm -f conftest.$ac_objext
24461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24462 (eval $ac_compile) 2>conftest.er1
bdcade0a 24463 ac_status=$?
ac1cb8d3
VS
24464 grep -v '^ *+' conftest.er1 >conftest.err
24465 rm -f conftest.er1
24466 cat conftest.err >&5
bdcade0a
MB
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } &&
bb9e79c0 24469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; } &&
24475 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; }; then
24481 ac_header_compiler=yes
24482else
24483 echo "$as_me: failed program was:" >&5
24484sed 's/^/| /' conftest.$ac_ext >&5
24485
24486ac_header_compiler=no
24487fi
ac1cb8d3 24488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24489echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24490echo "${ECHO_T}$ac_header_compiler" >&6
24491
24492# Is the header present?
24493echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24494echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24495cat >conftest.$ac_ext <<_ACEOF
24496/* confdefs.h. */
24497_ACEOF
24498cat confdefs.h >>conftest.$ac_ext
24499cat >>conftest.$ac_ext <<_ACEOF
24500/* end confdefs.h. */
24501#include <ext/hash_map>
24502_ACEOF
24503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24505 ac_status=$?
24506 grep -v '^ *+' conftest.er1 >conftest.err
24507 rm -f conftest.er1
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } >/dev/null; then
24511 if test -s conftest.err; then
24512 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24513 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24514 else
24515 ac_cpp_err=
24516 fi
24517else
24518 ac_cpp_err=yes
24519fi
24520if test -z "$ac_cpp_err"; then
24521 ac_header_preproc=yes
24522else
24523 echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526 ac_header_preproc=no
24527fi
24528rm -f conftest.err conftest.$ac_ext
24529echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24530echo "${ECHO_T}$ac_header_preproc" >&6
24531
24532# So? What about this header?
ac1cb8d3
VS
24533case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24534 yes:no: )
bdcade0a
MB
24535 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24536echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24537 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24538echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24539 ac_header_preproc=yes
bdcade0a 24540 ;;
ac1cb8d3 24541 no:yes:* )
bdcade0a
MB
24542 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24543echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24544 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24545echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24546 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24547echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24548 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24549echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24550 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24551echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24552 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24553echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24554 (
24555 cat <<\_ASBOX
ac1cb8d3
VS
24556## ----------------------------------------- ##
24557## Report this to wx-dev@lists.wxwidgets.org ##
24558## ----------------------------------------- ##
bdcade0a
MB
24559_ASBOX
24560 ) |
24561 sed "s/^/$as_me: WARNING: /" >&2
24562 ;;
24563esac
24564echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24565echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24566if test "${ac_cv_header_ext_hash_map+set}" = set; then
24567 echo $ECHO_N "(cached) $ECHO_C" >&6
24568else
24569 ac_cv_header_ext_hash_map=$ac_header_preproc
24570fi
24571echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24572echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24573
24574fi
24575if test $ac_cv_header_ext_hash_map = yes; then
24576 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24577echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24578 cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584#include <ext/hash_map>
24585 #include <ext/hash_set>
24586int
24587main ()
24588{
24589__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24590 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24591 ;
24592 return 0;
24593}
24594_ACEOF
24595rm -f conftest.$ac_objext
24596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24597 (eval $ac_compile) 2>conftest.er1
bdcade0a 24598 ac_status=$?
ac1cb8d3
VS
24599 grep -v '^ *+' conftest.er1 >conftest.err
24600 rm -f conftest.er1
24601 cat conftest.err >&5
bdcade0a
MB
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } &&
bb9e79c0 24604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612 (eval $ac_try) 2>&5
24613 ac_status=$?
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 echo "$as_me:$LINENO: result: yes" >&5
24617echo "${ECHO_T}yes" >&6
24618 cat >>confdefs.h <<\_ACEOF
24619#define HAVE_EXT_HASH_MAP 1
24620_ACEOF
24621
24622 cat >>confdefs.h <<\_ACEOF
24623#define HAVE_GNU_CXX_HASH_MAP 1
24624_ACEOF
24625
24626else
24627 echo "$as_me: failed program was:" >&5
24628sed 's/^/| /' conftest.$ac_ext >&5
24629
24630echo "$as_me:$LINENO: result: no" >&5
24631echo "${ECHO_T}no" >&6
24632fi
ac1cb8d3 24633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24634
24635fi
24636
24637
a848cd7e
SC
24638fi
24639
24640
24641SEARCH_INCLUDE="\
24642 /usr/local/include \
24643 \
24644 /usr/Motif-2.1/include \
24645 /usr/Motif-1.2/include \
24646 /usr/include/Motif1.2 \
a848cd7e
SC
24647 \
24648 /usr/dt/include \
24649 /usr/openwin/include \
24650 \
24651 /usr/include/Xm \
24652 \
24653 /usr/X11R6/include \
24654 /usr/X11R6.4/include \
24655 /usr/X11R5/include \
24656 /usr/X11R4/include \
24657 \
24658 /usr/include/X11R6 \
24659 /usr/include/X11R5 \
24660 /usr/include/X11R4 \
24661 \
24662 /usr/local/X11R6/include \
24663 /usr/local/X11R5/include \
24664 /usr/local/X11R4/include \
24665 \
24666 /usr/local/include/X11R6 \
24667 /usr/local/include/X11R5 \
24668 /usr/local/include/X11R4 \
24669 \
24670 /usr/X11/include \
24671 /usr/include/X11 \
24672 /usr/local/X11/include \
24673 /usr/local/include/X11 \
24674 \
a848cd7e 24675 /usr/XFree86/include/X11 \
e051b34e
MW
24676 /usr/pkg/include \
24677 \
a848cd7e
SC
24678 /usr/openwin/share/include"
24679
6f9cf1e6 24680echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24681echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24682
24683case "${host}" in
24684 *-*-irix6* )
24685 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24687else
24688
c687b303
VZ
24689 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24690 for e in a so sl dylib dll.a; do
24691 libc="$d/libc.$e"
24692 if test -f $libc; then
24693 save_LIBS="$LIBS"
24694 LIBS="$libc"
24695 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24696int main() { return 0; }
24697_ACEOF
24698rm -f conftest.$ac_objext conftest$ac_exeext
24699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24700 (eval $ac_link) 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
bb9e79c0 24707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24709 (eval $ac_try) 2>&5
24710 ac_status=$?
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); }; } &&
24713 { ac_try='test -s conftest$ac_exeext'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; }; then
24719 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24720else
24721 echo "$as_me: failed program was:" >&5
24722sed 's/^/| /' conftest.$ac_ext >&5
24723
24724fi
24725rm -f conftest.err conftest.$ac_objext \
24726 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24727 LIBS="$save_LIBS"
24728 if test "x$wx_cv_std_libpath" != "x"; then
24729 break 2
24730 fi
24731 fi
24732 done
24733 done
24734 if test "x$wx_cv_std_libpath" = "x"; then
24735 wx_cv_std_libpath="lib"
0ad5d837 24736 fi
0ad5d837
VZ
24737
24738
24739fi
6f9cf1e6
MW
24740
24741 ;;
24742
24743 *-*-solaris2* )
24744 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24745 wx_cv_std_libpath="lib/64"
24746 else
24747 wx_cv_std_libpath="lib"
24748 fi
24749 ;;
24750
24751 *-*-linux* )
24752 if test "$ac_cv_sizeof_void_p" = 8 -a \
24753 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24754 wx_cv_std_libpath="lib64"
24755 else
24756 wx_cv_std_libpath="lib"
24757 fi
c687b303
VZ
24758 ;;
24759
24760 *)
24761 wx_cv_std_libpath="lib";
24762 ;;
24763esac
0ad5d837 24764
6f9cf1e6
MW
24765echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24766echo "${ECHO_T}$wx_cv_std_libpath" >&6
24767
24768SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24769
3eca31dc
MW
24770if test "$build" != "$host" -a "$GCC" = yes; then
24771 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24772 cross_root=`dirname $cross_root`
24773 cross_root=`dirname $cross_root`
24774
24775 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24776 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24777 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24778
24779 if test -z "$PKG_CONFIG_PATH"; then
24780 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24781 export PKG_CONFIG_PATH
24782 fi
24783
24784 if test -z "$x_includes" -o "$x_includes" = NONE; then
24785
24786ac_find_includes=
24787for ac_dir in $SEARCH_INCLUDE /usr/include;
24788 do
24789 if test -f "$ac_dir/X11/Intrinsic.h"; then
24790 ac_find_includes=$ac_dir
24791 break
24792 fi
24793 done
24794
24795 x_includes=$ac_find_includes
24796 fi
24797 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24798
0ad5d837
VZ
24799 ac_find_libraries=
24800 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24801 do
24802 for ac_extension in a so sl dylib dll.a; do
24803 if test -f "$ac_dir/libXt.$ac_extension"; then
24804 ac_find_libraries=$ac_dir
24805 break 2
24806 fi
24807 done
24808 done
24809
24810 x_libraries=$ac_find_libraries
24811 fi
24812 fi
24813fi
24814
a848cd7e
SC
24815
24816cat >confcache <<\_ACEOF
24817# This file is a shell script that caches the results of configure
24818# tests run on this system so they can be shared between configure
24819# scripts and configure runs, see configure's option --config-cache.
24820# It is not useful on other systems. If it contains results you don't
24821# want to keep, you may remove or edit it.
24822#
24823# config.status only pays attention to the cache file if you give it
24824# the --recheck option to rerun configure.
24825#
24826# `ac_cv_env_foo' variables (set or unset) will be overridden when
24827# loading this file, other *unset* `ac_cv_foo' will be assigned the
24828# following values.
24829
24830_ACEOF
24831
24832# The following way of writing the cache mishandles newlines in values,
24833# but we know of no workaround that is simple, portable, and efficient.
24834# So, don't put newlines in cache variables' values.
24835# Ultrix sh set writes to stderr and can't be redirected directly,
24836# and sets the high bit in the cache file unless we assign to the vars.
24837{
24838 (set) 2>&1 |
24839 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24840 *ac_space=\ *)
24841 # `set' does not quote correctly, so add quotes (double-quote
24842 # substitution turns \\\\ into \\, and sed turns \\ into \).
24843 sed -n \
ac1cb8d3
VS
24844 "s/'/'\\\\''/g;
24845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24846 ;;
24847 *)
24848 # `set' quotes correctly as required by POSIX, so do not add quotes.
24849 sed -n \
ac1cb8d3 24850 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24851 ;;
24852 esac;
24853} |
24854 sed '
24855 t clear
24856 : clear
24857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24858 t end
24859 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24860 : end' >>confcache
24861if diff $cache_file confcache >/dev/null 2>&1; then :; else
24862 if test -w $cache_file; then
24863 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24864 cat confcache >$cache_file
24865 else
24866 echo "not updating unwritable cache $cache_file"
24867 fi
24868fi
24869rm -f confcache
24870
24871if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24872 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24873echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24874if test "${wx_cv_lib_glibc21+set}" = set; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24876else
24877
24878 cat >conftest.$ac_ext <<_ACEOF
24879/* confdefs.h. */
24880_ACEOF
24881cat confdefs.h >>conftest.$ac_ext
24882cat >>conftest.$ac_ext <<_ACEOF
24883/* end confdefs.h. */
24884#include <features.h>
24885int
24886main ()
24887{
24888
24889 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24890 not glibc 2.1
a848cd7e
SC
24891 #endif
24892
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext
24898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24899 (eval $ac_compile) 2>conftest.er1
a848cd7e 24900 ac_status=$?
ac1cb8d3
VS
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
a848cd7e
SC
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } &&
bb9e79c0 24906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24908 (eval $ac_try) 2>&5
24909 ac_status=$?
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); }; } &&
24912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; }; then
24918
24919 wx_cv_lib_glibc21=yes
24920
24921else
24922 echo "$as_me: failed program was:" >&5
24923sed 's/^/| /' conftest.$ac_ext >&5
24924
24925
24926 wx_cv_lib_glibc21=no
24927
24928
24929fi
ac1cb8d3 24930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24931
24932fi
24933echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24934echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24935 if test "$wx_cv_lib_glibc21" = "yes"; then
24936 cat >>confdefs.h <<\_ACEOF
24937#define wxHAVE_GLIBC2 1
24938_ACEOF
24939
24940 fi
24941fi
24942
24943if test "x$wx_cv_lib_glibc21" = "xyes"; then
24944 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24945 cat >>confdefs.h <<\_ACEOF
24946#define _GNU_SOURCE 1
24947_ACEOF
24948
24949 fi
24950fi
24951
5d7b7554
VZ
24952have_cos=0
24953have_floor=0
a848cd7e 24954
5d7b7554
VZ
24955for ac_func in cos
24956do
24957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24958echo "$as_me:$LINENO: checking for $ac_func" >&5
24959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24960if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24961 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24962else
5d7b7554 24963 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24964/* confdefs.h. */
24965_ACEOF
24966cat confdefs.h >>conftest.$ac_ext
24967cat >>conftest.$ac_ext <<_ACEOF
24968/* end confdefs.h. */
5d7b7554
VZ
24969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24971#define $ac_func innocuous_$ac_func
24972
24973/* System header to define __stub macros and hopefully few prototypes,
24974 which can conflict with char $ac_func (); below.
24975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24976 <limits.h> exists even on freestanding compilers. */
24977
24978#ifdef __STDC__
24979# include <limits.h>
24980#else
24981# include <assert.h>
24982#endif
24983
24984#undef $ac_func
24985
24986/* Override any gcc2 internal prototype to avoid an error. */
24987#ifdef __cplusplus
24988extern "C"
24989{
24990#endif
24991/* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
24993char $ac_func ();
24994/* The GNU C library defines this for functions which it implements
24995 to always fail with ENOSYS. Some functions are actually named
24996 something starting with __ and the normal name is an alias. */
24997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24998choke me
24999#else
25000char (*f) () = $ac_func;
25001#endif
25002#ifdef __cplusplus
25003}
25004#endif
25005
25006int
25007main ()
25008{
25009return f != $ac_func;
25010 ;
25011 return 0;
25012}
a848cd7e 25013_ACEOF
5d7b7554
VZ
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25016 (eval $ac_link) 2>conftest.er1
a848cd7e 25017 ac_status=$?
ac1cb8d3
VS
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
a848cd7e
SC
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
bb9e79c0 25023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
5d7b7554 25029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
5d7b7554 25035 eval "$as_ac_var=yes"
a848cd7e
SC
25036else
25037 echo "$as_me: failed program was:" >&5
25038sed 's/^/| /' conftest.$ac_ext >&5
25039
5d7b7554 25040eval "$as_ac_var=no"
a848cd7e 25041fi
5d7b7554
VZ
25042rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
a848cd7e 25044fi
5d7b7554
VZ
25045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25047if test `eval echo '${'$as_ac_var'}'` = yes; then
25048 cat >>confdefs.h <<_ACEOF
25049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25050_ACEOF
25051 have_cos=1
a848cd7e 25052fi
5d7b7554 25053done
a848cd7e 25054
ab0f0edd 25055
5d7b7554 25056for ac_func in floor
a848cd7e
SC
25057do
25058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25059echo "$as_me:$LINENO: checking for $ac_func" >&5
25060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25061if eval "test \"\${$as_ac_var+set}\" = set"; then
25062 echo $ECHO_N "(cached) $ECHO_C" >&6
25063else
25064 cat >conftest.$ac_ext <<_ACEOF
25065/* confdefs.h. */
25066_ACEOF
25067cat confdefs.h >>conftest.$ac_ext
25068cat >>conftest.$ac_ext <<_ACEOF
25069/* end confdefs.h. */
ac1cb8d3
VS
25070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25072#define $ac_func innocuous_$ac_func
25073
a848cd7e
SC
25074/* System header to define __stub macros and hopefully few prototypes,
25075 which can conflict with char $ac_func (); below.
25076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25077 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25078
a848cd7e
SC
25079#ifdef __STDC__
25080# include <limits.h>
25081#else
25082# include <assert.h>
25083#endif
ac1cb8d3
VS
25084
25085#undef $ac_func
25086
a848cd7e
SC
25087/* Override any gcc2 internal prototype to avoid an error. */
25088#ifdef __cplusplus
25089extern "C"
25090{
25091#endif
25092/* We use char because int might match the return type of a gcc2
25093 builtin and then its argument prototype would still apply. */
25094char $ac_func ();
25095/* The GNU C library defines this for functions which it implements
25096 to always fail with ENOSYS. Some functions are actually named
25097 something starting with __ and the normal name is an alias. */
25098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25099choke me
25100#else
25101char (*f) () = $ac_func;
25102#endif
25103#ifdef __cplusplus
25104}
25105#endif
25106
25107int
25108main ()
25109{
25110return f != $ac_func;
25111 ;
25112 return 0;
25113}
25114_ACEOF
25115rm -f conftest.$ac_objext conftest$ac_exeext
25116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25117 (eval $ac_link) 2>conftest.er1
a848cd7e 25118 ac_status=$?
ac1cb8d3
VS
25119 grep -v '^ *+' conftest.er1 >conftest.err
25120 rm -f conftest.er1
25121 cat conftest.err >&5
a848cd7e
SC
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); } &&
bb9e79c0 25124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; } &&
25130 { ac_try='test -s conftest$ac_exeext'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25133 ac_status=$?
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25136 eval "$as_ac_var=yes"
25137else
25138 echo "$as_me: failed program was:" >&5
25139sed 's/^/| /' conftest.$ac_ext >&5
25140
25141eval "$as_ac_var=no"
25142fi
25143rm -f conftest.err conftest.$ac_objext \
25144 conftest$ac_exeext conftest.$ac_ext
25145fi
25146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25148if test `eval echo '${'$as_ac_var'}'` = yes; then
25149 cat >>confdefs.h <<_ACEOF
25150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25151_ACEOF
25152 have_floor=1
25153fi
25154done
25155
25156echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25157echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25158if test "$have_cos" = 1 -a "$have_floor" = 1; then
25159 echo "$as_me:$LINENO: result: yes" >&5
25160echo "${ECHO_T}yes" >&6
25161else
25162 echo "$as_me:$LINENO: result: no" >&5
25163echo "${ECHO_T}no" >&6
25164 LIBS="$LIBS -lm"
25165 # use different functions to avoid configure caching
25166 have_sin=0
25167 have_ceil=0
25168
25169for ac_func in sin
25170do
25171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172echo "$as_me:$LINENO: checking for $ac_func" >&5
25173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25174if eval "test \"\${$as_ac_var+set}\" = set"; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176else
25177 cat >conftest.$ac_ext <<_ACEOF
25178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
25183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185#define $ac_func innocuous_$ac_func
25186
25187/* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char $ac_func (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25191
25192#ifdef __STDC__
25193# include <limits.h>
25194#else
25195# include <assert.h>
25196#endif
25197
25198#undef $ac_func
25199
25200/* Override any gcc2 internal prototype to avoid an error. */
25201#ifdef __cplusplus
25202extern "C"
25203{
25204#endif
25205/* We use char because int might match the return type of a gcc2
25206 builtin and then its argument prototype would still apply. */
25207char $ac_func ();
25208/* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25212choke me
25213#else
25214char (*f) () = $ac_func;
25215#endif
25216#ifdef __cplusplus
25217}
25218#endif
25219
25220int
25221main ()
25222{
25223return f != $ac_func;
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
bb9e79c0 25237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest$ac_exeext'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 eval "$as_ac_var=yes"
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254eval "$as_ac_var=no"
25255fi
25256rm -f conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
25258fi
25259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25261if test `eval echo '${'$as_ac_var'}'` = yes; then
25262 cat >>confdefs.h <<_ACEOF
25263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25264_ACEOF
25265 have_sin=1
25266fi
25267done
25268
25269
25270for ac_func in ceil
25271do
25272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25273echo "$as_me:$LINENO: checking for $ac_func" >&5
25274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25275if eval "test \"\${$as_ac_var+set}\" = set"; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25277else
25278 cat >conftest.$ac_ext <<_ACEOF
25279/* confdefs.h. */
25280_ACEOF
25281cat confdefs.h >>conftest.$ac_ext
25282cat >>conftest.$ac_ext <<_ACEOF
25283/* end confdefs.h. */
25284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25286#define $ac_func innocuous_$ac_func
25287
25288/* System header to define __stub macros and hopefully few prototypes,
25289 which can conflict with char $ac_func (); below.
25290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25291 <limits.h> exists even on freestanding compilers. */
25292
25293#ifdef __STDC__
25294# include <limits.h>
25295#else
25296# include <assert.h>
25297#endif
25298
25299#undef $ac_func
25300
25301/* Override any gcc2 internal prototype to avoid an error. */
25302#ifdef __cplusplus
25303extern "C"
25304{
25305#endif
25306/* We use char because int might match the return type of a gcc2
25307 builtin and then its argument prototype would still apply. */
25308char $ac_func ();
25309/* The GNU C library defines this for functions which it implements
25310 to always fail with ENOSYS. Some functions are actually named
25311 something starting with __ and the normal name is an alias. */
25312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25313choke me
25314#else
25315char (*f) () = $ac_func;
25316#endif
25317#ifdef __cplusplus
25318}
25319#endif
25320
25321int
25322main ()
25323{
25324return f != $ac_func;
25325 ;
25326 return 0;
25327}
25328_ACEOF
25329rm -f conftest.$ac_objext conftest$ac_exeext
25330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25331 (eval $ac_link) 2>conftest.er1
25332 ac_status=$?
25333 grep -v '^ *+' conftest.er1 >conftest.err
25334 rm -f conftest.er1
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
bb9e79c0 25338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest$ac_exeext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 eval "$as_ac_var=yes"
25351else
25352 echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
25355eval "$as_ac_var=no"
25356fi
25357rm -f conftest.err conftest.$ac_objext \
25358 conftest$ac_exeext conftest.$ac_ext
25359fi
25360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25362if test `eval echo '${'$as_ac_var'}'` = yes; then
25363 cat >>confdefs.h <<_ACEOF
25364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25365_ACEOF
25366 have_ceil=1
25367fi
25368done
25369
25370 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25371echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25372 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25373 echo "$as_me:$LINENO: result: yes" >&5
25374echo "${ECHO_T}yes" >&6
25375 else
25376 echo "$as_me:$LINENO: result: no" >&5
25377echo "${ECHO_T}no" >&6
25378 # not sure we should warn the user, crash, etc.
25379 fi
25380fi
25381
ec3edcc9
VZ
25382if test "wxUSE_UNICODE" = "yes"; then
25383
25384for ac_func in wcstoull
25385do
25386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25387echo "$as_me:$LINENO: checking for $ac_func" >&5
25388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25389if eval "test \"\${$as_ac_var+set}\" = set"; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25391else
25392 cat >conftest.$ac_ext <<_ACEOF
25393/* confdefs.h. */
25394_ACEOF
25395cat confdefs.h >>conftest.$ac_ext
25396cat >>conftest.$ac_ext <<_ACEOF
25397/* end confdefs.h. */
25398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25400#define $ac_func innocuous_$ac_func
25401
25402/* System header to define __stub macros and hopefully few prototypes,
25403 which can conflict with char $ac_func (); below.
25404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25405 <limits.h> exists even on freestanding compilers. */
25406
25407#ifdef __STDC__
25408# include <limits.h>
25409#else
25410# include <assert.h>
25411#endif
25412
25413#undef $ac_func
25414
25415/* Override any gcc2 internal prototype to avoid an error. */
25416#ifdef __cplusplus
25417extern "C"
25418{
25419#endif
25420/* We use char because int might match the return type of a gcc2
25421 builtin and then its argument prototype would still apply. */
25422char $ac_func ();
25423/* The GNU C library defines this for functions which it implements
25424 to always fail with ENOSYS. Some functions are actually named
25425 something starting with __ and the normal name is an alias. */
25426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25427choke me
25428#else
25429char (*f) () = $ac_func;
25430#endif
25431#ifdef __cplusplus
25432}
25433#endif
25434
25435int
25436main ()
25437{
25438return f != $ac_func;
25439 ;
25440 return 0;
25441}
25442_ACEOF
25443rm -f conftest.$ac_objext conftest$ac_exeext
25444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445 (eval $ac_link) 2>conftest.er1
25446 ac_status=$?
25447 grep -v '^ *+' conftest.er1 >conftest.err
25448 rm -f conftest.er1
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
bb9e79c0 25452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25455 ac_status=$?
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest$ac_exeext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 eval "$as_ac_var=yes"
25465else
25466 echo "$as_me: failed program was:" >&5
25467sed 's/^/| /' conftest.$ac_ext >&5
25468
25469eval "$as_ac_var=no"
25470fi
25471rm -f conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25473fi
25474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25476if test `eval echo '${'$as_ac_var'}'` = yes; then
25477 cat >>confdefs.h <<_ACEOF
25478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25479_ACEOF
25480
25481fi
25482done
25483
25484else
25485
25486for ac_func in strtoull
25487do
25488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25489echo "$as_me:$LINENO: checking for $ac_func" >&5
25490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25491if eval "test \"\${$as_ac_var+set}\" = set"; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25493else
25494 cat >conftest.$ac_ext <<_ACEOF
25495/* confdefs.h. */
25496_ACEOF
25497cat confdefs.h >>conftest.$ac_ext
25498cat >>conftest.$ac_ext <<_ACEOF
25499/* end confdefs.h. */
25500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25502#define $ac_func innocuous_$ac_func
25503
25504/* System header to define __stub macros and hopefully few prototypes,
25505 which can conflict with char $ac_func (); below.
25506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25507 <limits.h> exists even on freestanding compilers. */
25508
25509#ifdef __STDC__
25510# include <limits.h>
25511#else
25512# include <assert.h>
25513#endif
25514
25515#undef $ac_func
25516
25517/* Override any gcc2 internal prototype to avoid an error. */
25518#ifdef __cplusplus
25519extern "C"
25520{
25521#endif
25522/* We use char because int might match the return type of a gcc2
25523 builtin and then its argument prototype would still apply. */
25524char $ac_func ();
25525/* The GNU C library defines this for functions which it implements
25526 to always fail with ENOSYS. Some functions are actually named
25527 something starting with __ and the normal name is an alias. */
25528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25529choke me
25530#else
25531char (*f) () = $ac_func;
25532#endif
25533#ifdef __cplusplus
25534}
25535#endif
25536
25537int
25538main ()
25539{
25540return f != $ac_func;
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext conftest$ac_exeext
25546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25547 (eval $ac_link) 2>conftest.er1
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } &&
bb9e79c0 25554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); }; } &&
25560 { ac_try='test -s conftest$ac_exeext'
25561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25562 (eval $ac_try) 2>&5
25563 ac_status=$?
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); }; }; then
25566 eval "$as_ac_var=yes"
25567else
25568 echo "$as_me: failed program was:" >&5
25569sed 's/^/| /' conftest.$ac_ext >&5
25570
25571eval "$as_ac_var=no"
25572fi
25573rm -f conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext conftest.$ac_ext
25575fi
25576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25578if test `eval echo '${'$as_ac_var'}'` = yes; then
25579 cat >>confdefs.h <<_ACEOF
25580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25581_ACEOF
25582
25583fi
25584done
25585
25586fi
25587
5d7b7554
VZ
25588
25589
25590if test "$wxUSE_REGEX" != "no"; then
25591 cat >>confdefs.h <<\_ACEOF
25592#define wxUSE_REGEX 1
25593_ACEOF
25594
25595
25596 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25597 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25598echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25599 wxUSE_REGEX=builtin
25600 fi
25601
25602 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25603 if test "${ac_cv_header_regex_h+set}" = set; then
25604 echo "$as_me:$LINENO: checking for regex.h" >&5
25605echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25606if test "${ac_cv_header_regex_h+set}" = set; then
25607 echo $ECHO_N "(cached) $ECHO_C" >&6
25608fi
25609echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25610echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25611else
25612 # Is the header compilable?
25613echo "$as_me:$LINENO: checking regex.h usability" >&5
25614echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25615cat >conftest.$ac_ext <<_ACEOF
25616/* confdefs.h. */
25617_ACEOF
25618cat confdefs.h >>conftest.$ac_ext
25619cat >>conftest.$ac_ext <<_ACEOF
25620/* end confdefs.h. */
25621$ac_includes_default
25622#include <regex.h>
25623_ACEOF
25624rm -f conftest.$ac_objext
25625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25626 (eval $ac_compile) 2>conftest.er1
25627 ac_status=$?
25628 grep -v '^ *+' conftest.er1 >conftest.err
25629 rm -f conftest.er1
25630 cat conftest.err >&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } &&
bb9e79c0 25633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; } &&
25639 { ac_try='test -s conftest.$ac_objext'
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645 ac_header_compiler=yes
25646else
25647 echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650ac_header_compiler=no
25651fi
25652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25654echo "${ECHO_T}$ac_header_compiler" >&6
25655
25656# Is the header present?
25657echo "$as_me:$LINENO: checking regex.h presence" >&5
25658echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25659cat >conftest.$ac_ext <<_ACEOF
25660/* confdefs.h. */
25661_ACEOF
25662cat confdefs.h >>conftest.$ac_ext
25663cat >>conftest.$ac_ext <<_ACEOF
25664/* end confdefs.h. */
25665#include <regex.h>
25666_ACEOF
25667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25669 ac_status=$?
25670 grep -v '^ *+' conftest.er1 >conftest.err
25671 rm -f conftest.er1
25672 cat conftest.err >&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } >/dev/null; then
25675 if test -s conftest.err; then
25676 ac_cpp_err=$ac_cxx_preproc_warn_flag
25677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25678 else
25679 ac_cpp_err=
25680 fi
25681else
25682 ac_cpp_err=yes
25683fi
25684if test -z "$ac_cpp_err"; then
25685 ac_header_preproc=yes
25686else
25687 echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690 ac_header_preproc=no
25691fi
25692rm -f conftest.err conftest.$ac_ext
25693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25694echo "${ECHO_T}$ac_header_preproc" >&6
25695
25696# So? What about this header?
25697case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25698 yes:no: )
25699 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25700echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25702echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25703 ac_header_preproc=yes
25704 ;;
25705 no:yes:* )
25706 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25707echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25709echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25710 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25711echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25712 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25713echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25714 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25715echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25716 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25717echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25718 (
25719 cat <<\_ASBOX
25720## ----------------------------------------- ##
25721## Report this to wx-dev@lists.wxwidgets.org ##
25722## ----------------------------------------- ##
25723_ASBOX
25724 ) |
25725 sed "s/^/$as_me: WARNING: /" >&2
25726 ;;
25727esac
25728echo "$as_me:$LINENO: checking for regex.h" >&5
25729echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25730if test "${ac_cv_header_regex_h+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25732else
25733 ac_cv_header_regex_h=$ac_header_preproc
25734fi
25735echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25736echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25737
25738fi
25739if test $ac_cv_header_regex_h = yes; then
25740
25741
25742for ac_func in regcomp re_search
25743do
25744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25745echo "$as_me:$LINENO: checking for $ac_func" >&5
25746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25747if eval "test \"\${$as_ac_var+set}\" = set"; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25749else
25750 cat >conftest.$ac_ext <<_ACEOF
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25758#define $ac_func innocuous_$ac_func
25759
25760/* System header to define __stub macros and hopefully few prototypes,
25761 which can conflict with char $ac_func (); below.
25762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25763 <limits.h> exists even on freestanding compilers. */
25764
25765#ifdef __STDC__
25766# include <limits.h>
25767#else
25768# include <assert.h>
25769#endif
25770
25771#undef $ac_func
25772
25773/* Override any gcc2 internal prototype to avoid an error. */
25774#ifdef __cplusplus
25775extern "C"
25776{
25777#endif
25778/* We use char because int might match the return type of a gcc2
25779 builtin and then its argument prototype would still apply. */
25780char $ac_func ();
25781/* The GNU C library defines this for functions which it implements
25782 to always fail with ENOSYS. Some functions are actually named
25783 something starting with __ and the normal name is an alias. */
25784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25785choke me
25786#else
25787char (*f) () = $ac_func;
25788#endif
25789#ifdef __cplusplus
25790}
25791#endif
25792
25793int
25794main ()
25795{
25796return f != $ac_func;
25797 ;
25798 return 0;
25799}
25800_ACEOF
25801rm -f conftest.$ac_objext conftest$ac_exeext
25802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803 (eval $ac_link) 2>conftest.er1
25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } &&
bb9e79c0 25810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812 (eval $ac_try) 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; } &&
25816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; }; then
25822 eval "$as_ac_var=yes"
25823else
25824 echo "$as_me: failed program was:" >&5
25825sed 's/^/| /' conftest.$ac_ext >&5
25826
25827eval "$as_ac_var=no"
25828fi
ac1cb8d3
VS
25829rm -f conftest.err conftest.$ac_objext \
25830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25831fi
25832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25834if test `eval echo '${'$as_ac_var'}'` = yes; then
25835 cat >>confdefs.h <<_ACEOF
25836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25837_ACEOF
25838
25839fi
25840done
25841
25842fi
25843
25844
25845
25846 if test "x$ac_cv_func_regcomp" != "xyes"; then
25847 if test "$wxUSE_REGEX" = "sys" ; then
25848 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25849echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25850 { (exit 1); exit 1; }; }
25851 else
25852 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25853echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25854 wxUSE_REGEX=builtin
25855 fi
25856 else
25857 wxUSE_REGEX=sys
25858 cat >>confdefs.h <<\_ACEOF
25859#define WX_NO_REGEX_ADVANCED 1
25860_ACEOF
25861
25862 fi
25863 fi
25864fi
25865
25866
25867ZLIB_LINK=
25868if test "$wxUSE_ZLIB" != "no" ; then
25869 cat >>confdefs.h <<\_ACEOF
25870#define wxUSE_ZLIB 1
25871_ACEOF
25872
25873
25874 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25875 if test "$USE_DARWIN" = 1; then
25876 system_zlib_h_ok="yes"
25877 else
25878 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25879echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25880if test "${ac_cv_header_zlib_h+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25882else
25883 if test "$cross_compiling" = yes; then
25884 unset ac_cv_header_zlib_h
25885
25886else
25887 cat >conftest.$ac_ext <<_ACEOF
25888/* confdefs.h. */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h. */
25893
25894 #include <zlib.h>
25895 #include <stdio.h>
25896
25897 int main()
25898 {
25899 FILE *f=fopen("conftestval", "w");
25900 if (!f) exit(1);
25901 fprintf(f, "%s",
25902 ZLIB_VERSION[0] == '1' &&
25903 (ZLIB_VERSION[2] > '1' ||
25904 (ZLIB_VERSION[2] == '1' &&
25905 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25906 exit(0);
25907 }
25908
25909_ACEOF
25910rm -f conftest$ac_exeext
25911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25912 (eval $ac_link) 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; }; then
25921 ac_cv_header_zlib_h=`cat conftestval`
25922else
25923 echo "$as_me: program exited with status $ac_status" >&5
25924echo "$as_me: failed program was:" >&5
25925sed 's/^/| /' conftest.$ac_ext >&5
25926
25927( exit $ac_status )
25928ac_cv_header_zlib_h=no
25929fi
ac1cb8d3 25930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25931fi
25932
25933fi
25934echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25935echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25936 if test "${ac_cv_header_zlib_h+set}" = set; then
25937 echo "$as_me:$LINENO: checking for zlib.h" >&5
25938echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25939if test "${ac_cv_header_zlib_h+set}" = set; then
25940 echo $ECHO_N "(cached) $ECHO_C" >&6
25941fi
25942echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25943echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25944else
25945 # Is the header compilable?
25946echo "$as_me:$LINENO: checking zlib.h usability" >&5
25947echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25948cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
25954$ac_includes_default
25955#include <zlib.h>
25956_ACEOF
25957rm -f conftest.$ac_objext
25958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25959 (eval $ac_compile) 2>conftest.er1
a848cd7e 25960 ac_status=$?
ac1cb8d3
VS
25961 grep -v '^ *+' conftest.er1 >conftest.err
25962 rm -f conftest.er1
25963 cat conftest.err >&5
a848cd7e
SC
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } &&
bb9e79c0 25966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; } &&
25972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 ac_header_compiler=yes
25979else
25980 echo "$as_me: failed program was:" >&5
25981sed 's/^/| /' conftest.$ac_ext >&5
25982
25983ac_header_compiler=no
25984fi
ac1cb8d3 25985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25987echo "${ECHO_T}$ac_header_compiler" >&6
25988
25989# Is the header present?
25990echo "$as_me:$LINENO: checking zlib.h presence" >&5
25991echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25992cat >conftest.$ac_ext <<_ACEOF
25993/* confdefs.h. */
25994_ACEOF
25995cat confdefs.h >>conftest.$ac_ext
25996cat >>conftest.$ac_ext <<_ACEOF
25997/* end confdefs.h. */
25998#include <zlib.h>
25999_ACEOF
26000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26002 ac_status=$?
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } >/dev/null; then
26008 if test -s conftest.err; then
5d7b7554
VZ
26009 ac_cpp_err=$ac_cxx_preproc_warn_flag
26010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26011 else
26012 ac_cpp_err=
26013 fi
26014else
26015 ac_cpp_err=yes
26016fi
26017if test -z "$ac_cpp_err"; then
26018 ac_header_preproc=yes
26019else
26020 echo "$as_me: failed program was:" >&5
26021sed 's/^/| /' conftest.$ac_ext >&5
26022
26023 ac_header_preproc=no
26024fi
26025rm -f conftest.err conftest.$ac_ext
26026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26027echo "${ECHO_T}$ac_header_preproc" >&6
26028
26029# So? What about this header?
5d7b7554 26030case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26031 yes:no: )
a848cd7e
SC
26032 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26033echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26034 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26035echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26036 ac_header_preproc=yes
a848cd7e 26037 ;;
ac1cb8d3 26038 no:yes:* )
a848cd7e
SC
26039 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26040echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26041 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26042echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26044echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26046echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26047 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26048echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26049 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26050echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26051 (
26052 cat <<\_ASBOX
ac1cb8d3
VS
26053## ----------------------------------------- ##
26054## Report this to wx-dev@lists.wxwidgets.org ##
26055## ----------------------------------------- ##
a848cd7e
SC
26056_ASBOX
26057 ) |
26058 sed "s/^/$as_me: WARNING: /" >&2
26059 ;;
26060esac
26061echo "$as_me:$LINENO: checking for zlib.h" >&5
26062echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26063if test "${ac_cv_header_zlib_h+set}" = set; then
26064 echo $ECHO_N "(cached) $ECHO_C" >&6
26065else
26066 ac_cv_header_zlib_h=$ac_header_preproc
26067fi
26068echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26069echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26070
26071fi
26072
26073
26074
26075 system_zlib_h_ok=$ac_cv_header_zlib_h
26076 fi
26077
26078 if test "$system_zlib_h_ok" = "yes"; then
26079 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26080echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
26081if test "${ac_cv_lib_z_deflate+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26083else
26084 ac_check_lib_save_LIBS=$LIBS
26085LIBS="-lz $LIBS"
26086cat >conftest.$ac_ext <<_ACEOF
26087/* confdefs.h. */
26088_ACEOF
26089cat confdefs.h >>conftest.$ac_ext
26090cat >>conftest.$ac_ext <<_ACEOF
26091/* end confdefs.h. */
26092
26093/* Override any gcc2 internal prototype to avoid an error. */
26094#ifdef __cplusplus
26095extern "C"
26096#endif
26097/* We use char because int might match the return type of a gcc2
26098 builtin and then its argument prototype would still apply. */
26099char deflate ();
26100int
26101main ()
26102{
26103deflate ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
26108rm -f conftest.$ac_objext conftest$ac_exeext
26109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26110 (eval $ac_link) 2>conftest.er1
a848cd7e 26111 ac_status=$?
ac1cb8d3
VS
26112 grep -v '^ *+' conftest.er1 >conftest.err
26113 rm -f conftest.er1
26114 cat conftest.err >&5
a848cd7e
SC
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
bb9e79c0 26117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; } &&
26123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; }; then
26129 ac_cv_lib_z_deflate=yes
26130else
26131 echo "$as_me: failed program was:" >&5
26132sed 's/^/| /' conftest.$ac_ext >&5
26133
26134ac_cv_lib_z_deflate=no
26135fi
ac1cb8d3
VS
26136rm -f conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26138LIBS=$ac_check_lib_save_LIBS
26139fi
26140echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26141echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
26142if test $ac_cv_lib_z_deflate = yes; then
26143 ZLIB_LINK=" -lz"
26144fi
26145
26146 fi
26147
26148 if test "x$ZLIB_LINK" = "x" ; then
26149 if test "$wxUSE_ZLIB" = "sys" ; then
26150 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26151echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26152 { (exit 1); exit 1; }; }
26153 else
26154 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26155echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26156 wxUSE_ZLIB=builtin
26157 fi
26158 else
26159 wxUSE_ZLIB=sys
26160 fi
26161 fi
26162fi
26163
26164
26165PNG_LINK=
26166if test "$wxUSE_LIBPNG" != "no" ; then
26167 cat >>confdefs.h <<\_ACEOF
26168#define wxUSE_LIBPNG 1
26169_ACEOF
26170
26171
26172 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26173 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26174echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26175 wxUSE_LIBPNG=sys
26176 fi
26177
26178 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26179 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26180echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26181 wxUSE_LIBPNG=builtin
26182 fi
26183
26184 if test "$wxUSE_MGL" != 1 ; then
26185 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26186 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26187echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
26188if test "${ac_cv_header_png_h+set}" = set; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26190else
26191 if test "$cross_compiling" = yes; then
26192 unset ac_cv_header_png_h
26193
26194else
26195 cat >conftest.$ac_ext <<_ACEOF
26196/* confdefs.h. */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h. */
26201
26202 #include <png.h>
26203 #include <stdio.h>
26204
26205 int main()
26206 {
26207 FILE *f=fopen("conftestval", "w");
26208 if (!f) exit(1);
26209 fprintf(f, "%s",
26210 PNG_LIBPNG_VER > 90 ? "yes" : "no");
26211 exit(0);
26212 }
26213
26214_ACEOF
26215rm -f conftest$ac_exeext
26216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26217 (eval $ac_link) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
26226 ac_cv_header_png_h=`cat conftestval`
26227else
26228 echo "$as_me: program exited with status $ac_status" >&5
26229echo "$as_me: failed program was:" >&5
26230sed 's/^/| /' conftest.$ac_ext >&5
26231
26232( exit $ac_status )
26233ac_cv_header_png_h=no
26234fi
ac1cb8d3 26235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26236fi
26237
26238fi
26239echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26240echo "${ECHO_T}$ac_cv_header_png_h" >&6
26241 if test "${ac_cv_header_png_h+set}" = set; then
26242 echo "$as_me:$LINENO: checking for png.h" >&5
26243echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26244if test "${ac_cv_header_png_h+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26246fi
26247echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26248echo "${ECHO_T}$ac_cv_header_png_h" >&6
26249else
26250 # Is the header compilable?
26251echo "$as_me:$LINENO: checking png.h usability" >&5
26252echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
26253cat >conftest.$ac_ext <<_ACEOF
26254/* confdefs.h. */
26255_ACEOF
26256cat confdefs.h >>conftest.$ac_ext
26257cat >>conftest.$ac_ext <<_ACEOF
26258/* end confdefs.h. */
26259$ac_includes_default
26260#include <png.h>
26261_ACEOF
26262rm -f conftest.$ac_objext
26263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26264 (eval $ac_compile) 2>conftest.er1
a848cd7e 26265 ac_status=$?
ac1cb8d3
VS
26266 grep -v '^ *+' conftest.er1 >conftest.err
26267 rm -f conftest.er1
26268 cat conftest.err >&5
a848cd7e
SC
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } &&
bb9e79c0 26271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273 (eval $ac_try) 2>&5
26274 ac_status=$?
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); }; } &&
26277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279 (eval $ac_try) 2>&5
26280 ac_status=$?
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); }; }; then
26283 ac_header_compiler=yes
26284else
26285 echo "$as_me: failed program was:" >&5
26286sed 's/^/| /' conftest.$ac_ext >&5
26287
26288ac_header_compiler=no
26289fi
ac1cb8d3 26290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26292echo "${ECHO_T}$ac_header_compiler" >&6
26293
26294# Is the header present?
26295echo "$as_me:$LINENO: checking png.h presence" >&5
26296echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26297cat >conftest.$ac_ext <<_ACEOF
26298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
26303#include <png.h>
26304_ACEOF
26305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } >/dev/null; then
26313 if test -s conftest.err; then
5d7b7554
VZ
26314 ac_cpp_err=$ac_cxx_preproc_warn_flag
26315 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26316 else
26317 ac_cpp_err=
26318 fi
26319else
26320 ac_cpp_err=yes
26321fi
26322if test -z "$ac_cpp_err"; then
26323 ac_header_preproc=yes
26324else
26325 echo "$as_me: failed program was:" >&5
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ac_header_preproc=no
26329fi
26330rm -f conftest.err conftest.$ac_ext
26331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26332echo "${ECHO_T}$ac_header_preproc" >&6
26333
26334# So? What about this header?
5d7b7554 26335case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26336 yes:no: )
a848cd7e
SC
26337 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26338echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26339 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26340echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26341 ac_header_preproc=yes
a848cd7e 26342 ;;
ac1cb8d3 26343 no:yes:* )
a848cd7e
SC
26344 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26345echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26346 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26347echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26349echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26351echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26352 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26353echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26354 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26355echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26356 (
26357 cat <<\_ASBOX
ac1cb8d3
VS
26358## ----------------------------------------- ##
26359## Report this to wx-dev@lists.wxwidgets.org ##
26360## ----------------------------------------- ##
a848cd7e
SC
26361_ASBOX
26362 ) |
26363 sed "s/^/$as_me: WARNING: /" >&2
26364 ;;
26365esac
26366echo "$as_me:$LINENO: checking for png.h" >&5
26367echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26368if test "${ac_cv_header_png_h+set}" = set; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26370else
26371 ac_cv_header_png_h=$ac_header_preproc
26372fi
26373echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26374echo "${ECHO_T}$ac_cv_header_png_h" >&6
26375
26376fi
26377
26378
26379
26380 if test "$ac_cv_header_png_h" = "yes"; then
26381 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26382echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26383if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386 ac_check_lib_save_LIBS=$LIBS
26387LIBS="-lpng -lz -lm $LIBS"
26388cat >conftest.$ac_ext <<_ACEOF
26389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
26394
26395/* Override any gcc2 internal prototype to avoid an error. */
26396#ifdef __cplusplus
26397extern "C"
26398#endif
26399/* We use char because int might match the return type of a gcc2
26400 builtin and then its argument prototype would still apply. */
26401char png_check_sig ();
26402int
26403main ()
26404{
26405png_check_sig ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext conftest$ac_exeext
26411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26412 (eval $ac_link) 2>conftest.er1
a848cd7e 26413 ac_status=$?
ac1cb8d3
VS
26414 grep -v '^ *+' conftest.er1 >conftest.err
26415 rm -f conftest.er1
26416 cat conftest.err >&5
a848cd7e
SC
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
bb9e79c0 26419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26431 ac_cv_lib_png_png_check_sig=yes
26432else
26433 echo "$as_me: failed program was:" >&5
26434sed 's/^/| /' conftest.$ac_ext >&5
26435
26436ac_cv_lib_png_png_check_sig=no
26437fi
ac1cb8d3
VS
26438rm -f conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26440LIBS=$ac_check_lib_save_LIBS
26441fi
26442echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26443echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26444if test $ac_cv_lib_png_png_check_sig = yes; then
26445 PNG_LINK=" -lpng -lz"
26446fi
26447
26448 fi
26449
26450 if test "x$PNG_LINK" = "x" ; then
26451 if test "$wxUSE_LIBPNG" = "sys" ; then
26452 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26453echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26454 { (exit 1); exit 1; }; }
26455 else
26456 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26457echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26458 wxUSE_LIBPNG=builtin
26459 fi
26460 else
26461 wxUSE_LIBPNG=sys
26462 fi
26463 fi
26464 fi
26465
26466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26467fi
26468
26469
26470JPEG_LINK=
26471if test "$wxUSE_LIBJPEG" != "no" ; then
26472 cat >>confdefs.h <<\_ACEOF
26473#define wxUSE_LIBJPEG 1
26474_ACEOF
26475
26476
26477 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26478 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26479echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26480 wxUSE_LIBJPEG=sys
26481 fi
26482
26483 if test "$wxUSE_MGL" != 1 ; then
26484 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26485 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26486echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26487 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26488 echo $ECHO_N "(cached) $ECHO_C" >&6
26489else
26490 cat >conftest.$ac_ext <<_ACEOF
26491/* confdefs.h. */
26492_ACEOF
26493cat confdefs.h >>conftest.$ac_ext
26494cat >>conftest.$ac_ext <<_ACEOF
26495/* end confdefs.h. */
26496
26497 #undef HAVE_STDLIB_H
26498 #include <stdio.h>
26499 #include <jpeglib.h>
26500
26501int
26502main ()
26503{
26504
26505
26506 ;
26507 return 0;
26508}
26509_ACEOF
26510rm -f conftest.$ac_objext
26511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26512 (eval $ac_compile) 2>conftest.er1
a848cd7e 26513 ac_status=$?
ac1cb8d3
VS
26514 grep -v '^ *+' conftest.er1 >conftest.err
26515 rm -f conftest.er1
26516 cat conftest.err >&5
a848cd7e
SC
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } &&
bb9e79c0 26519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); }; } &&
26525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; }; then
26531 ac_cv_header_jpeglib_h=yes
26532else
26533 echo "$as_me: failed program was:" >&5
26534sed 's/^/| /' conftest.$ac_ext >&5
26535
26536ac_cv_header_jpeglib_h=no
26537
26538fi
ac1cb8d3 26539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26540
26541fi
26542
26543 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26544echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26545
26546 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26547 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26548echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26549if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26551else
26552 ac_check_lib_save_LIBS=$LIBS
26553LIBS="-ljpeg $LIBS"
26554cat >conftest.$ac_ext <<_ACEOF
26555/* confdefs.h. */
26556_ACEOF
26557cat confdefs.h >>conftest.$ac_ext
26558cat >>conftest.$ac_ext <<_ACEOF
26559/* end confdefs.h. */
26560
26561/* Override any gcc2 internal prototype to avoid an error. */
26562#ifdef __cplusplus
26563extern "C"
26564#endif
26565/* We use char because int might match the return type of a gcc2
26566 builtin and then its argument prototype would still apply. */
26567char jpeg_read_header ();
26568int
26569main ()
26570{
26571jpeg_read_header ();
26572 ;
26573 return 0;
26574}
26575_ACEOF
26576rm -f conftest.$ac_objext conftest$ac_exeext
26577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26578 (eval $ac_link) 2>conftest.er1
a848cd7e 26579 ac_status=$?
ac1cb8d3
VS
26580 grep -v '^ *+' conftest.er1 >conftest.err
26581 rm -f conftest.er1
26582 cat conftest.err >&5
a848cd7e
SC
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
bb9e79c0 26585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; } &&
26591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 ac_cv_lib_jpeg_jpeg_read_header=yes
26598else
26599 echo "$as_me: failed program was:" >&5
26600sed 's/^/| /' conftest.$ac_ext >&5
26601
26602ac_cv_lib_jpeg_jpeg_read_header=no
26603fi
ac1cb8d3
VS
26604rm -f conftest.err conftest.$ac_objext \
26605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26606LIBS=$ac_check_lib_save_LIBS
26607fi
26608echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26609echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26610if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26611 JPEG_LINK=" -ljpeg"
26612fi
26613
26614 fi
26615
26616 if test "x$JPEG_LINK" = "x" ; then
26617 if test "$wxUSE_LIBJPEG" = "sys" ; then
26618 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26619echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26620 { (exit 1); exit 1; }; }
26621 else
26622 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26623echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26624 wxUSE_LIBJPEG=builtin
26625 fi
26626 else
26627 wxUSE_LIBJPEG=sys
26628 fi
26629 fi
26630 fi
26631fi
26632
26633
26634TIFF_LINK=
26635TIFF_PREREQ_LINKS=-lm
26636if test "$wxUSE_LIBTIFF" != "no" ; then
26637 cat >>confdefs.h <<\_ACEOF
26638#define wxUSE_LIBTIFF 1
26639_ACEOF
26640
26641
26642 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26643 if test "$wxUSE_LIBJPEG" = "sys"; then
26644 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26645 fi
26646 if test "$wxUSE_ZLIB" = "sys"; then
26647 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26648 fi
26649 if test "${ac_cv_header_tiffio_h+set}" = set; then
26650 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26651echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26652if test "${ac_cv_header_tiffio_h+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654fi
26655echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26656echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26657else
26658 # Is the header compilable?
26659echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26660echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26661cat >conftest.$ac_ext <<_ACEOF
26662/* confdefs.h. */
26663_ACEOF
26664cat confdefs.h >>conftest.$ac_ext
26665cat >>conftest.$ac_ext <<_ACEOF
26666/* end confdefs.h. */
26667$ac_includes_default
26668#include <tiffio.h>
26669_ACEOF
26670rm -f conftest.$ac_objext
26671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26672 (eval $ac_compile) 2>conftest.er1
a848cd7e 26673 ac_status=$?
ac1cb8d3
VS
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
a848cd7e
SC
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } &&
bb9e79c0 26679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; } &&
26685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26691 ac_header_compiler=yes
26692else
26693 echo "$as_me: failed program was:" >&5
26694sed 's/^/| /' conftest.$ac_ext >&5
26695
26696ac_header_compiler=no
26697fi
ac1cb8d3 26698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26700echo "${ECHO_T}$ac_header_compiler" >&6
26701
26702# Is the header present?
26703echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26704echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26705cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
26711#include <tiffio.h>
26712_ACEOF
26713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26715 ac_status=$?
26716 grep -v '^ *+' conftest.er1 >conftest.err
26717 rm -f conftest.er1
26718 cat conftest.err >&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } >/dev/null; then
26721 if test -s conftest.err; then
5d7b7554
VZ
26722 ac_cpp_err=$ac_cxx_preproc_warn_flag
26723 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26724 else
26725 ac_cpp_err=
26726 fi
26727else
26728 ac_cpp_err=yes
26729fi
26730if test -z "$ac_cpp_err"; then
26731 ac_header_preproc=yes
26732else
26733 echo "$as_me: failed program was:" >&5
26734sed 's/^/| /' conftest.$ac_ext >&5
26735
26736 ac_header_preproc=no
26737fi
26738rm -f conftest.err conftest.$ac_ext
26739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26740echo "${ECHO_T}$ac_header_preproc" >&6
26741
26742# So? What about this header?
5d7b7554 26743case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26744 yes:no: )
a848cd7e
SC
26745 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26746echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26747 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26748echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26749 ac_header_preproc=yes
a848cd7e 26750 ;;
ac1cb8d3 26751 no:yes:* )
a848cd7e
SC
26752 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26753echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26754 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26755echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26756 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26757echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26759echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26760 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26761echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26762 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26763echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26764 (
26765 cat <<\_ASBOX
ac1cb8d3
VS
26766## ----------------------------------------- ##
26767## Report this to wx-dev@lists.wxwidgets.org ##
26768## ----------------------------------------- ##
a848cd7e
SC
26769_ASBOX
26770 ) |
26771 sed "s/^/$as_me: WARNING: /" >&2
26772 ;;
26773esac
26774echo "$as_me:$LINENO: checking for tiffio.h" >&5
26775echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26776if test "${ac_cv_header_tiffio_h+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26778else
26779 ac_cv_header_tiffio_h=$ac_header_preproc
26780fi
26781echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26782echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26783
26784fi
26785if test $ac_cv_header_tiffio_h = yes; then
26786
26787 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26788echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26789if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26791else
26792 ac_check_lib_save_LIBS=$LIBS
26793LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26794cat >conftest.$ac_ext <<_ACEOF
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
26800
26801/* Override any gcc2 internal prototype to avoid an error. */
26802#ifdef __cplusplus
26803extern "C"
26804#endif
26805/* We use char because int might match the return type of a gcc2
26806 builtin and then its argument prototype would still apply. */
26807char TIFFError ();
26808int
26809main ()
26810{
26811TIFFError ();
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext conftest$ac_exeext
26817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26818 (eval $ac_link) 2>conftest.er1
a848cd7e 26819 ac_status=$?
ac1cb8d3
VS
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
a848cd7e
SC
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } &&
bb9e79c0 26825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_lib_tiff_TIFFError=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842ac_cv_lib_tiff_TIFFError=no
26843fi
ac1cb8d3
VS
26844rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26846LIBS=$ac_check_lib_save_LIBS
26847fi
26848echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26849echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26850if test $ac_cv_lib_tiff_TIFFError = yes; then
26851 TIFF_LINK=" -ltiff"
26852fi
26853
26854
26855
26856fi
26857
26858
26859
26860 if test "x$TIFF_LINK" = "x" ; then
26861 if test "$wxUSE_LIBTIFF" = "sys" ; then
26862 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26863echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26864 { (exit 1); exit 1; }; }
26865 else
26866 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26867echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26868 wxUSE_LIBTIFF=builtin
26869 fi
26870 else
26871 wxUSE_LIBTIFF=sys
26872 fi
26873 fi
26874fi
26875
26876
47a7e797
MW
26877if test "$wxUSE_WCHAR_T" != "yes"; then
26878 if test "$wxUSE_EXPAT" != "no"; then
26879 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26880echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26881 wxUSE_EXPAT=no
26882 fi
26883 if test "$wxUSE_XML" != "no"; then
26884 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26885echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26886 wxUSE_XML=no
26887 fi
26888fi
26889
a848cd7e
SC
26890if test "$wxUSE_EXPAT" != "no"; then
26891 wxUSE_XML=yes
26892 cat >>confdefs.h <<\_ACEOF
26893#define wxUSE_EXPAT 1
26894_ACEOF
26895
26896 cat >>confdefs.h <<\_ACEOF
26897#define wxUSE_XML 1
26898_ACEOF
26899
26900
26901 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26902 if test "${ac_cv_header_expat_h+set}" = set; then
26903 echo "$as_me:$LINENO: checking for expat.h" >&5
26904echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26905if test "${ac_cv_header_expat_h+set}" = set; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26907fi
26908echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26909echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26910else
26911 # Is the header compilable?
26912echo "$as_me:$LINENO: checking expat.h usability" >&5
26913echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26914cat >conftest.$ac_ext <<_ACEOF
26915/* confdefs.h. */
26916_ACEOF
26917cat confdefs.h >>conftest.$ac_ext
26918cat >>conftest.$ac_ext <<_ACEOF
26919/* end confdefs.h. */
26920$ac_includes_default
26921#include <expat.h>
26922_ACEOF
26923rm -f conftest.$ac_objext
26924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26925 (eval $ac_compile) 2>conftest.er1
a848cd7e 26926 ac_status=$?
ac1cb8d3
VS
26927 grep -v '^ *+' conftest.er1 >conftest.err
26928 rm -f conftest.er1
26929 cat conftest.err >&5
a848cd7e
SC
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
bb9e79c0 26932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 ac_header_compiler=yes
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949ac_header_compiler=no
26950fi
ac1cb8d3 26951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953echo "${ECHO_T}$ac_header_compiler" >&6
26954
26955# Is the header present?
26956echo "$as_me:$LINENO: checking expat.h presence" >&5
26957echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26958cat >conftest.$ac_ext <<_ACEOF
26959/* confdefs.h. */
26960_ACEOF
26961cat confdefs.h >>conftest.$ac_ext
26962cat >>conftest.$ac_ext <<_ACEOF
26963/* end confdefs.h. */
26964#include <expat.h>
26965_ACEOF
26966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } >/dev/null; then
26974 if test -s conftest.err; then
5d7b7554
VZ
26975 ac_cpp_err=$ac_cxx_preproc_warn_flag
26976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26977 else
26978 ac_cpp_err=
26979 fi
26980else
26981 ac_cpp_err=yes
26982fi
26983if test -z "$ac_cpp_err"; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991rm -f conftest.err conftest.$ac_ext
26992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993echo "${ECHO_T}$ac_header_preproc" >&6
26994
26995# So? What about this header?
5d7b7554 26996case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26997 yes:no: )
a848cd7e
SC
26998 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26999echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27000 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
27001echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
27002 ac_header_preproc=yes
a848cd7e 27003 ;;
ac1cb8d3 27004 no:yes:* )
a848cd7e
SC
27005 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
27006echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27007 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
27008echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
27010echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
27012echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27013 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
27014echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27015 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
27016echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27017 (
27018 cat <<\_ASBOX
ac1cb8d3
VS
27019## ----------------------------------------- ##
27020## Report this to wx-dev@lists.wxwidgets.org ##
27021## ----------------------------------------- ##
a848cd7e
SC
27022_ASBOX
27023 ) |
27024 sed "s/^/$as_me: WARNING: /" >&2
27025 ;;
27026esac
27027echo "$as_me:$LINENO: checking for expat.h" >&5
27028echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
27029if test "${ac_cv_header_expat_h+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031else
27032 ac_cv_header_expat_h=$ac_header_preproc
27033fi
27034echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27035echo "${ECHO_T}$ac_cv_header_expat_h" >&6
27036
27037fi
27038if test $ac_cv_header_expat_h = yes; then
27039 found_expat_h=1
27040fi
27041
27042
27043 if test "x$found_expat_h" = "x1"; then
27044 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27045echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
27046if test "${wx_cv_expat_is_not_broken+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27048else
27049
a848cd7e
SC
27050 cat >conftest.$ac_ext <<_ACEOF
27051/* confdefs.h. */
27052_ACEOF
27053cat confdefs.h >>conftest.$ac_ext
27054cat >>conftest.$ac_ext <<_ACEOF
27055/* end confdefs.h. */
27056#include <expat.h>
27057int
27058main ()
27059{
27060
27061 ;
27062 return 0;
27063}
27064_ACEOF
27065rm -f conftest.$ac_objext
27066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27067 (eval $ac_compile) 2>conftest.er1
a848cd7e 27068 ac_status=$?
ac1cb8d3
VS
27069 grep -v '^ *+' conftest.er1 >conftest.err
27070 rm -f conftest.er1
27071 cat conftest.err >&5
a848cd7e
SC
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } &&
bb9e79c0 27074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27086 wx_cv_expat_is_not_broken=yes
27087else
27088 echo "$as_me: failed program was:" >&5
27089sed 's/^/| /' conftest.$ac_ext >&5
27090
27091wx_cv_expat_is_not_broken=no
27092
27093fi
ac1cb8d3 27094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27095
27096
27097fi
27098echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27099echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27100 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27101 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27102echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27103if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27105else
27106 ac_check_lib_save_LIBS=$LIBS
27107LIBS="-lexpat $LIBS"
27108cat >conftest.$ac_ext <<_ACEOF
27109/* confdefs.h. */
27110_ACEOF
27111cat confdefs.h >>conftest.$ac_ext
27112cat >>conftest.$ac_ext <<_ACEOF
27113/* end confdefs.h. */
27114
27115/* Override any gcc2 internal prototype to avoid an error. */
27116#ifdef __cplusplus
27117extern "C"
27118#endif
27119/* We use char because int might match the return type of a gcc2
27120 builtin and then its argument prototype would still apply. */
27121char XML_ParserCreate ();
27122int
27123main ()
27124{
27125XML_ParserCreate ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
27130rm -f conftest.$ac_objext conftest$ac_exeext
27131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27132 (eval $ac_link) 2>conftest.er1
a848cd7e 27133 ac_status=$?
ac1cb8d3
VS
27134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
a848cd7e
SC
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } &&
bb9e79c0 27139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; } &&
27145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_expat_XML_ParserCreate=yes
27152else
27153 echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
27156ac_cv_lib_expat_XML_ParserCreate=no
27157fi
ac1cb8d3
VS
27158rm -f conftest.err conftest.$ac_objext \
27159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27160LIBS=$ac_check_lib_save_LIBS
27161fi
27162echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27163echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27164if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27165 EXPAT_LINK=" -lexpat"
27166fi
27167
27168 fi
27169 fi
27170 if test "x$EXPAT_LINK" = "x" ; then
27171 if test "$wxUSE_EXPAT" = "sys" ; then
27172 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27173echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27174 { (exit 1); exit 1; }; }
27175 else
27176 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27177echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27178 wxUSE_EXPAT=builtin
27179 fi
27180 else
27181 wxUSE_EXPAT=sys
27182 fi
27183 fi
27184 if test "$wxUSE_EXPAT" = "builtin" ; then
27185
27186
27187subdirs="$subdirs src/expat"
27188
27189 fi
27190fi
27191
27192
27193
27194if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
27195 if test "${ac_cv_header_mspack_h+set}" = set; then
27196 echo "$as_me:$LINENO: checking for mspack.h" >&5
27197echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27198if test "${ac_cv_header_mspack_h+set}" = set; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27200fi
27201echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27202echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27203else
27204 # Is the header compilable?
27205echo "$as_me:$LINENO: checking mspack.h usability" >&5
27206echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
27207cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213$ac_includes_default
27214#include <mspack.h>
27215_ACEOF
27216rm -f conftest.$ac_objext
27217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27218 (eval $ac_compile) 2>conftest.er1
a848cd7e 27219 ac_status=$?
ac1cb8d3
VS
27220 grep -v '^ *+' conftest.er1 >conftest.err
27221 rm -f conftest.er1
27222 cat conftest.err >&5
a848cd7e
SC
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
bb9e79c0 27225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; } &&
27231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233 (eval $ac_try) 2>&5
27234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; }; then
27237 ac_header_compiler=yes
27238else
27239 echo "$as_me: failed program was:" >&5
27240sed 's/^/| /' conftest.$ac_ext >&5
27241
27242ac_header_compiler=no
27243fi
ac1cb8d3 27244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27246echo "${ECHO_T}$ac_header_compiler" >&6
27247
27248# Is the header present?
27249echo "$as_me:$LINENO: checking mspack.h presence" >&5
27250echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27251cat >conftest.$ac_ext <<_ACEOF
27252/* confdefs.h. */
27253_ACEOF
27254cat confdefs.h >>conftest.$ac_ext
27255cat >>conftest.$ac_ext <<_ACEOF
27256/* end confdefs.h. */
27257#include <mspack.h>
27258_ACEOF
27259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27261 ac_status=$?
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } >/dev/null; then
27267 if test -s conftest.err; then
5d7b7554
VZ
27268 ac_cpp_err=$ac_cxx_preproc_warn_flag
27269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27270 else
27271 ac_cpp_err=
27272 fi
27273else
27274 ac_cpp_err=yes
27275fi
27276if test -z "$ac_cpp_err"; then
27277 ac_header_preproc=yes
27278else
27279 echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282 ac_header_preproc=no
27283fi
27284rm -f conftest.err conftest.$ac_ext
27285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27286echo "${ECHO_T}$ac_header_preproc" >&6
27287
27288# So? What about this header?
5d7b7554 27289case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27290 yes:no: )
a848cd7e
SC
27291 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27292echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27293 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27294echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27295 ac_header_preproc=yes
a848cd7e 27296 ;;
ac1cb8d3 27297 no:yes:* )
a848cd7e
SC
27298 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27299echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27300 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27301echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27302 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27303echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27304 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27305echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27306 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27307echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27308 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27309echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27310 (
27311 cat <<\_ASBOX
ac1cb8d3
VS
27312## ----------------------------------------- ##
27313## Report this to wx-dev@lists.wxwidgets.org ##
27314## ----------------------------------------- ##
a848cd7e
SC
27315_ASBOX
27316 ) |
27317 sed "s/^/$as_me: WARNING: /" >&2
27318 ;;
27319esac
27320echo "$as_me:$LINENO: checking for mspack.h" >&5
27321echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27322if test "${ac_cv_header_mspack_h+set}" = set; then
27323 echo $ECHO_N "(cached) $ECHO_C" >&6
27324else
27325 ac_cv_header_mspack_h=$ac_header_preproc
27326fi
27327echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27328echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27329
27330fi
27331if test $ac_cv_header_mspack_h = yes; then
27332 found_mspack_h=1
27333fi
27334
27335
27336 if test "x$found_mspack_h" = "x1"; then
27337 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27338echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27339if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 ac_check_lib_save_LIBS=$LIBS
27343LIBS="-lmspack $LIBS"
27344cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h. */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h. */
27350
27351/* Override any gcc2 internal prototype to avoid an error. */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355/* We use char because int might match the return type of a gcc2
27356 builtin and then its argument prototype would still apply. */
27357char mspack_create_chm_decompressor ();
27358int
27359main ()
27360{
27361mspack_create_chm_decompressor ();
27362 ;
27363 return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext conftest$ac_exeext
27367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27368 (eval $ac_link) 2>conftest.er1
a848cd7e 27369 ac_status=$?
ac1cb8d3
VS
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
a848cd7e
SC
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
bb9e79c0 27375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27393fi
ac1cb8d3
VS
27394rm -f conftest.err conftest.$ac_objext \
27395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27396LIBS=$ac_check_lib_save_LIBS
27397fi
27398echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27399echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27400if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27401 MSPACK_LINK=" -lmspack"
27402fi
27403
27404 fi
27405 if test "x$MSPACK_LINK" = "x" ; then
27406 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27407 fi
27408fi
27409
27410if test "$wxUSE_LIBMSPACK" != "no"; then
27411 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27412#define wxUSE_LIBMSPACK 1
27413_ACEOF
27414
a848cd7e
SC
27415fi
27416
27417
27418
27419AFMINSTALL=
27420WIN32INSTALL=
27421
27422TOOLKIT=
27423TOOLKIT_INCLUDE=
27424WIDGET_SET=
27425
27426if test "$USE_WIN32" = 1 ; then
27427
27428for ac_header in w32api.h
27429do
27430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27431if eval "test \"\${$as_ac_Header+set}\" = set"; then
27432 echo "$as_me:$LINENO: checking for $ac_header" >&5
27433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27434if eval "test \"\${$as_ac_Header+set}\" = set"; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27436fi
27437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27439else
27440 # Is the header compilable?
27441echo "$as_me:$LINENO: checking $ac_header usability" >&5
27442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27443cat >conftest.$ac_ext <<_ACEOF
27444/* confdefs.h. */
27445_ACEOF
27446cat confdefs.h >>conftest.$ac_ext
27447cat >>conftest.$ac_ext <<_ACEOF
27448/* end confdefs.h. */
27449$ac_includes_default
27450#include <$ac_header>
27451_ACEOF
27452rm -f conftest.$ac_objext
27453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27454 (eval $ac_compile) 2>conftest.er1
a848cd7e 27455 ac_status=$?
ac1cb8d3
VS
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
a848cd7e
SC
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
bb9e79c0 27461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
27467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; }; then
27473 ac_header_compiler=yes
27474else
27475 echo "$as_me: failed program was:" >&5
27476sed 's/^/| /' conftest.$ac_ext >&5
27477
27478ac_header_compiler=no
27479fi
ac1cb8d3 27480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27482echo "${ECHO_T}$ac_header_compiler" >&6
27483
27484# Is the header present?
27485echo "$as_me:$LINENO: checking $ac_header presence" >&5
27486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27487cat >conftest.$ac_ext <<_ACEOF
27488/* confdefs.h. */
27489_ACEOF
27490cat confdefs.h >>conftest.$ac_ext
27491cat >>conftest.$ac_ext <<_ACEOF
27492/* end confdefs.h. */
27493#include <$ac_header>
27494_ACEOF
27495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27497 ac_status=$?
27498 grep -v '^ *+' conftest.er1 >conftest.err
27499 rm -f conftest.er1
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } >/dev/null; then
27503 if test -s conftest.err; then
5d7b7554
VZ
27504 ac_cpp_err=$ac_cxx_preproc_warn_flag
27505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27506 else
27507 ac_cpp_err=
27508 fi
27509else
27510 ac_cpp_err=yes
27511fi
27512if test -z "$ac_cpp_err"; then
27513 ac_header_preproc=yes
27514else
27515 echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 ac_header_preproc=no
27519fi
27520rm -f conftest.err conftest.$ac_ext
27521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27522echo "${ECHO_T}$ac_header_preproc" >&6
27523
27524# So? What about this header?
5d7b7554 27525case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27526 yes:no: )
a848cd7e
SC
27527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27531 ac_header_preproc=yes
a848cd7e 27532 ;;
ac1cb8d3 27533 no:yes:* )
a848cd7e
SC
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27546 (
27547 cat <<\_ASBOX
ac1cb8d3
VS
27548## ----------------------------------------- ##
27549## Report this to wx-dev@lists.wxwidgets.org ##
27550## ----------------------------------------- ##
a848cd7e
SC
27551_ASBOX
27552 ) |
27553 sed "s/^/$as_me: WARNING: /" >&2
27554 ;;
27555esac
27556echo "$as_me:$LINENO: checking for $ac_header" >&5
27557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27558if eval "test \"\${$as_ac_Header+set}\" = set"; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
ac1cb8d3 27561 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27562fi
27563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27565
27566fi
27567if test `eval echo '${'$as_ac_Header'}'` = yes; then
27568 cat >>confdefs.h <<_ACEOF
27569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27570_ACEOF
27571
27572fi
27573
27574done
27575
27576 if test "${ac_cv_header_windows_h+set}" = set; then
27577 echo "$as_me:$LINENO: checking for windows.h" >&5
27578echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27579if test "${ac_cv_header_windows_h+set}" = set; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27581fi
27582echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27583echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27584else
27585 # Is the header compilable?
27586echo "$as_me:$LINENO: checking windows.h usability" >&5
27587echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27588cat >conftest.$ac_ext <<_ACEOF
27589/* confdefs.h. */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h. */
27594$ac_includes_default
27595#include <windows.h>
27596_ACEOF
27597rm -f conftest.$ac_objext
27598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27599 (eval $ac_compile) 2>conftest.er1
a848cd7e 27600 ac_status=$?
ac1cb8d3
VS
27601 grep -v '^ *+' conftest.er1 >conftest.err
27602 rm -f conftest.er1
27603 cat conftest.err >&5
a848cd7e
SC
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); } &&
bb9e79c0 27606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27609 ac_status=$?
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } &&
27612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 ac_header_compiler=yes
27619else
27620 echo "$as_me: failed program was:" >&5
27621sed 's/^/| /' conftest.$ac_ext >&5
27622
27623ac_header_compiler=no
27624fi
ac1cb8d3 27625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27627echo "${ECHO_T}$ac_header_compiler" >&6
27628
27629# Is the header present?
27630echo "$as_me:$LINENO: checking windows.h presence" >&5
27631echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27632cat >conftest.$ac_ext <<_ACEOF
27633/* confdefs.h. */
27634_ACEOF
27635cat confdefs.h >>conftest.$ac_ext
27636cat >>conftest.$ac_ext <<_ACEOF
27637/* end confdefs.h. */
27638#include <windows.h>
27639_ACEOF
27640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27642 ac_status=$?
27643 grep -v '^ *+' conftest.er1 >conftest.err
27644 rm -f conftest.er1
27645 cat conftest.err >&5
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } >/dev/null; then
27648 if test -s conftest.err; then
5d7b7554
VZ
27649 ac_cpp_err=$ac_cxx_preproc_warn_flag
27650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27651 else
27652 ac_cpp_err=
27653 fi
27654else
27655 ac_cpp_err=yes
27656fi
27657if test -z "$ac_cpp_err"; then
27658 ac_header_preproc=yes
27659else
27660 echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663 ac_header_preproc=no
27664fi
27665rm -f conftest.err conftest.$ac_ext
27666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27667echo "${ECHO_T}$ac_header_preproc" >&6
27668
27669# So? What about this header?
5d7b7554 27670case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27671 yes:no: )
a848cd7e
SC
27672 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27673echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27674 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27675echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27676 ac_header_preproc=yes
a848cd7e 27677 ;;
ac1cb8d3 27678 no:yes:* )
a848cd7e
SC
27679 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27680echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27681 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27682echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27683 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27684echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27685 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27686echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27687 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27688echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27689 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27690echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27691 (
27692 cat <<\_ASBOX
ac1cb8d3
VS
27693## ----------------------------------------- ##
27694## Report this to wx-dev@lists.wxwidgets.org ##
27695## ----------------------------------------- ##
a848cd7e
SC
27696_ASBOX
27697 ) |
27698 sed "s/^/$as_me: WARNING: /" >&2
27699 ;;
27700esac
27701echo "$as_me:$LINENO: checking for windows.h" >&5
27702echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27703if test "${ac_cv_header_windows_h+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705else
27706 ac_cv_header_windows_h=$ac_header_preproc
27707fi
27708echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27709echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27710
27711fi
27712if test $ac_cv_header_windows_h = yes; then
27713 :
27714else
27715
27716 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27717echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27718 { (exit 1); exit 1; }; }
27719
27720fi
27721
27722
27723
27724 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27725
27726 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27727 LIBS="$LIBS -loleacc"
27728 fi
27729
27730 case "${host}" in
27731 *-*-cygwin* )
27732 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27733 esac
27734
27735 if test "$wxUSE_ODBC" = "sys" ; then
27736 wxUSE_ODBC = "yes"
27737 fi
27738 if test "$wxUSE_ODBC" = "yes" ; then
27739 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27740 cat >>confdefs.h <<\_ACEOF
27741#define wxUSE_ODBC 1
27742_ACEOF
27743
27744 fi
27745
370d2fd7 27746 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27747 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27748
004ee6da 27749 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27750
a848cd7e 27751 WIN32INSTALL=win32install
5f41d1bf
MW
27752
27753 echo "$as_me:$LINENO: checking for boolean" >&5
27754echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27755if test "${ac_cv_type_boolean+set}" = set; then
27756 echo $ECHO_N "(cached) $ECHO_C" >&6
27757else
27758 cat >conftest.$ac_ext <<_ACEOF
27759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
27764#include <windows.h>
27765
27766int
27767main ()
27768{
27769if ((boolean *) 0)
27770 return 0;
27771if (sizeof (boolean))
27772 return 0;
27773 ;
27774 return 0;
27775}
27776_ACEOF
27777rm -f conftest.$ac_objext
27778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779 (eval $ac_compile) 2>conftest.er1
27780 ac_status=$?
27781 grep -v '^ *+' conftest.er1 >conftest.err
27782 rm -f conftest.er1
27783 cat conftest.err >&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } &&
bb9e79c0 27786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; } &&
27792 { ac_try='test -s conftest.$ac_objext'
27793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794 (eval $ac_try) 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; }; then
27798 ac_cv_type_boolean=yes
27799else
27800 echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803ac_cv_type_boolean=no
27804fi
27805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27806fi
27807echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27808echo "${ECHO_T}$ac_cv_type_boolean" >&6
27809if test $ac_cv_type_boolean = yes; then
27810
27811cat >>confdefs.h <<_ACEOF
27812#define HAVE_BOOLEAN 1
27813_ACEOF
27814
27815
27816fi
27817
dcfd4ac4
MW
27818
27819
27820for ac_header in pbt.h
27821do
27822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27823if eval "test \"\${$as_ac_Header+set}\" = set"; then
27824 echo "$as_me:$LINENO: checking for $ac_header" >&5
27825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27826if eval "test \"\${$as_ac_Header+set}\" = set"; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828fi
27829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27831else
27832 # Is the header compilable?
27833echo "$as_me:$LINENO: checking $ac_header usability" >&5
27834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27835cat >conftest.$ac_ext <<_ACEOF
27836/* confdefs.h. */
27837_ACEOF
27838cat confdefs.h >>conftest.$ac_ext
27839cat >>conftest.$ac_ext <<_ACEOF
27840/* end confdefs.h. */
27841$ac_includes_default
27842#include <$ac_header>
27843_ACEOF
27844rm -f conftest.$ac_objext
27845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27846 (eval $ac_compile) 2>conftest.er1
27847 ac_status=$?
27848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
bb9e79c0 27853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855 (eval $ac_try) 2>&5
27856 ac_status=$?
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; } &&
27859 { ac_try='test -s conftest.$ac_objext'
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
27865 ac_header_compiler=yes
27866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
27870ac_header_compiler=no
27871fi
27872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27874echo "${ECHO_T}$ac_header_compiler" >&6
27875
27876# Is the header present?
27877echo "$as_me:$LINENO: checking $ac_header presence" >&5
27878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27879cat >conftest.$ac_ext <<_ACEOF
27880/* confdefs.h. */
27881_ACEOF
27882cat confdefs.h >>conftest.$ac_ext
27883cat >>conftest.$ac_ext <<_ACEOF
27884/* end confdefs.h. */
27885#include <$ac_header>
27886_ACEOF
27887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27889 ac_status=$?
27890 grep -v '^ *+' conftest.er1 >conftest.err
27891 rm -f conftest.er1
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } >/dev/null; then
27895 if test -s conftest.err; then
27896 ac_cpp_err=$ac_cxx_preproc_warn_flag
27897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27898 else
27899 ac_cpp_err=
27900 fi
27901else
27902 ac_cpp_err=yes
27903fi
27904if test -z "$ac_cpp_err"; then
27905 ac_header_preproc=yes
27906else
27907 echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910 ac_header_preproc=no
27911fi
27912rm -f conftest.err conftest.$ac_ext
27913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27914echo "${ECHO_T}$ac_header_preproc" >&6
27915
27916# So? What about this header?
27917case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27918 yes:no: )
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27923 ac_header_preproc=yes
27924 ;;
27925 no:yes:* )
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27938 (
27939 cat <<\_ASBOX
27940## ----------------------------------------- ##
27941## Report this to wx-dev@lists.wxwidgets.org ##
27942## ----------------------------------------- ##
27943_ASBOX
27944 ) |
27945 sed "s/^/$as_me: WARNING: /" >&2
27946 ;;
27947esac
27948echo "$as_me:$LINENO: checking for $ac_header" >&5
27949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27950if eval "test \"\${$as_ac_Header+set}\" = set"; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27952else
27953 eval "$as_ac_Header=\$ac_header_preproc"
27954fi
27955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27957
27958fi
27959if test `eval echo '${'$as_ac_Header'}'` = yes; then
27960 cat >>confdefs.h <<_ACEOF
27961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27962_ACEOF
27963
27964else
27965 cat >>confdefs.h <<\_ACEOF
27966#define NEED_PBT_H 1
27967_ACEOF
27968
27969fi
27970
27971done
27972
a848cd7e
SC
27973fi
27974
27975if test "$wxUSE_GUI" = "yes"; then
27976 USE_GUI=1
27977
27978 GUI_TK_LIBRARY=
27979
27980 WXGTK12=
27981 WXGTK127=
27982 WXGTK20=
27983 WXGPE=
27984
207bc66c
RN
27985 if test "$wxUSE_COCOA" = 1 ; then
27986 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27987 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27988echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27989 wxUSE_PRINTING_ARCHITECTURE=no
27990 fi
27991 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27992 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27993echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27994 wxUSE_DRAG_AND_DROP=no
27995 fi
27996 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27997 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27998echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27999 wxUSE_DRAGIMAGE=no
28000 fi
28001 fi
28002
a848cd7e
SC
28003 if test "$wxUSE_MSW" = 1 ; then
28004 TOOLKIT=MSW
28005 GUIDIST=MSW_DIST
28006
ceec2216 28007 case "${host}" in
a848cd7e
SC
28008 *-*-mingw32* )
28009 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28010 esac
28011 fi
28012
28013 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
28014 ac_ext=c
28015ac_cpp='$CPP $CPPFLAGS'
28016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28018ac_compiler_gnu=$ac_cv_c_compiler_gnu
28019
28020
a848cd7e
SC
28021 echo "$as_me:$LINENO: checking for GTK+ version" >&5
28022echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
28023
28024 gtk_version_cached=1
28025 if test "${wx_cv_lib_gtk+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028
28029 gtk_version_cached=0
28030 echo "$as_me:$LINENO: result: " >&5
28031echo "${ECHO_T}" >&6
28032
28033 GTK_MODULES=
28034 if test "$wxUSE_THREADS" = "yes"; then
28035 GTK_MODULES=gthread
28036 fi
28037
f597b41c 28038 wx_cv_lib_gtk=
5001df0d
MW
28039 if test "x$wxGTK_VERSION" != "x1"
28040 then
28041 case "${host}" in
28042 *-*-solaris2* )
28043 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 28044 enable_gtktest=no
5001df0d
MW
28045 fi
28046 esac
28047
a848cd7e
SC
28048 # Check whether --enable-gtktest or --disable-gtktest was given.
28049if test "${enable_gtktest+set}" = set; then
28050 enableval="$enable_gtktest"
28051
28052else
28053 enable_gtktest=yes
28054fi;
28055
28056 pkg_config_args=gtk+-2.0
28057 for module in . $GTK_MODULES
28058 do
28059 case "$module" in
28060 gthread)
28061 pkg_config_args="$pkg_config_args gthread-2.0"
28062 ;;
28063 esac
28064 done
28065
28066 no_gtk=""
28067
28068 # Extract the first word of "pkg-config", so it can be a program name with args.
28069set dummy pkg-config; ac_word=$2
28070echo "$as_me:$LINENO: checking for $ac_word" >&5
28071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28072if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28073 echo $ECHO_N "(cached) $ECHO_C" >&6
28074else
28075 case $PKG_CONFIG in
28076 [\\/]* | ?:[\\/]*)
28077 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28078 ;;
28079 *)
28080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28081for as_dir in $PATH
28082do
28083 IFS=$as_save_IFS
28084 test -z "$as_dir" && as_dir=.
28085 for ac_exec_ext in '' $ac_executable_extensions; do
28086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28087 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28089 break 2
28090 fi
28091done
28092done
28093
28094 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28095 ;;
28096esac
28097fi
28098PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28099
28100if test -n "$PKG_CONFIG"; then
28101 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28102echo "${ECHO_T}$PKG_CONFIG" >&6
28103else
28104 echo "$as_me:$LINENO: result: no" >&5
28105echo "${ECHO_T}no" >&6
28106fi
28107
28108
28109 if test x$PKG_CONFIG != xno ; then
28110 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28111 :
28112 else
c2218763 28113 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28114 no_gtk=yes
28115 PKG_CONFIG=no
28116 fi
28117 else
28118 no_gtk=yes
28119 fi
28120
28121 min_gtk_version=2.0.0
28122 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28123echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
28124
28125 if test x$PKG_CONFIG != xno ; then
28126 ## don't try to run the test against uninstalled libtool libs
28127 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28128 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28129 enable_gtktest=no
28130 fi
28131
28132 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28133 :
28134 else
28135 no_gtk=yes
28136 fi
28137 fi
28138
28139 if test x"$no_gtk" = x ; then
28140 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28141 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28142 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28144 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28146 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28148 if test "x$enable_gtktest" = "xyes" ; then
28149 ac_save_CFLAGS="$CFLAGS"
28150 ac_save_LIBS="$LIBS"
28151 CFLAGS="$CFLAGS $GTK_CFLAGS"
28152 LIBS="$GTK_LIBS $LIBS"
28153 rm -f conf.gtktest
28154 if test "$cross_compiling" = yes; then
28155 echo $ac_n "cross compiling; assumed OK... $ac_c"
28156else
28157 cat >conftest.$ac_ext <<_ACEOF
28158/* confdefs.h. */
28159_ACEOF
28160cat confdefs.h >>conftest.$ac_ext
28161cat >>conftest.$ac_ext <<_ACEOF
28162/* end confdefs.h. */
28163
28164#include <gtk/gtk.h>
28165#include <stdio.h>
28166#include <stdlib.h>
28167
28168int
28169main ()
28170{
28171 int major, minor, micro;
28172 char *tmp_version;
28173
28174 system ("touch conf.gtktest");
28175
28176 /* HP/UX 9 (%@#!) writes to sscanf strings */
28177 tmp_version = g_strdup("$min_gtk_version");
28178 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28179 printf("%s, bad version string\n", "$min_gtk_version");
28180 exit(1);
28181 }
28182
28183 if ((gtk_major_version != $gtk_config_major_version) ||
28184 (gtk_minor_version != $gtk_config_minor_version) ||
28185 (gtk_micro_version != $gtk_config_micro_version))
28186 {
28187 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28188 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28189 gtk_major_version, gtk_minor_version, gtk_micro_version);
28190 printf ("*** was found! If pkg-config was correct, then it is best\n");
28191 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28192 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28193 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28194 printf("*** required on your system.\n");
28195 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28196 printf("*** to point to the correct configuration files\n");
28197 }
28198 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28199 (gtk_minor_version != GTK_MINOR_VERSION) ||
28200 (gtk_micro_version != GTK_MICRO_VERSION))
28201 {
28202 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28203 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28204 printf("*** library (version %d.%d.%d)\n",
28205 gtk_major_version, gtk_minor_version, gtk_micro_version);
28206 }
28207 else
28208 {
28209 if ((gtk_major_version > major) ||
28210 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28211 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28212 {
28213 return 0;
28214 }
28215 else
28216 {
28217 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28218 gtk_major_version, gtk_minor_version, gtk_micro_version);
28219 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28220 major, minor, micro);
28221 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28222 printf("***\n");
28223 printf("*** If you have already installed a sufficiently new version, this error\n");
28224 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28225 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28226 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28227 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28228 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28229 printf("*** so that the correct libraries are found at run-time))\n");
28230 }
28231 }
28232 return 1;
28233}
28234
28235_ACEOF
28236rm -f conftest$ac_exeext
28237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28238 (eval $ac_link) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
28247 :
28248else
28249 echo "$as_me: program exited with status $ac_status" >&5
28250echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
28253( exit $ac_status )
28254no_gtk=yes
28255fi
ac1cb8d3 28256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28257fi
28258 CFLAGS="$ac_save_CFLAGS"
28259 LIBS="$ac_save_LIBS"
28260 fi
28261 fi
28262 if test "x$no_gtk" = x ; then
28263 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28264echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28265 wx_cv_lib_gtk=2.0
28266 else
28267 echo "$as_me:$LINENO: result: no" >&5
28268echo "${ECHO_T}no" >&6
28269 if test "$PKG_CONFIG" = "no" ; then
28270 echo "*** A new enough version of pkg-config was not found."
28271 echo "*** See http://pkgconfig.sourceforge.net"
28272 else
28273 if test -f conf.gtktest ; then
28274 :
28275 else
28276 echo "*** Could not run GTK+ test program, checking why..."
28277 ac_save_CFLAGS="$CFLAGS"
28278 ac_save_LIBS="$LIBS"
28279 CFLAGS="$CFLAGS $GTK_CFLAGS"
28280 LIBS="$LIBS $GTK_LIBS"
28281 cat >conftest.$ac_ext <<_ACEOF
28282/* confdefs.h. */
28283_ACEOF
28284cat confdefs.h >>conftest.$ac_ext
28285cat >>conftest.$ac_ext <<_ACEOF
28286/* end confdefs.h. */
28287
28288#include <gtk/gtk.h>
28289#include <stdio.h>
28290
28291int
28292main ()
28293{
28294 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28295 ;
28296 return 0;
28297}
28298_ACEOF
28299rm -f conftest.$ac_objext conftest$ac_exeext
28300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28301 (eval $ac_link) 2>conftest.er1
a848cd7e 28302 ac_status=$?
ac1cb8d3
VS
28303 grep -v '^ *+' conftest.er1 >conftest.err
28304 rm -f conftest.er1
28305 cat conftest.err >&5
a848cd7e
SC
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } &&
bb9e79c0 28308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; } &&
28314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; }; then
28320 echo "*** The test program compiled, but did not run. This usually means"
28321 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28322 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28323 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28324 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28325 echo "*** is required on your system"
28326 echo "***"
28327 echo "*** If you have an old version installed, it is best to remove it, although"
28328 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28329else
28330 echo "$as_me: failed program was:" >&5
28331sed 's/^/| /' conftest.$ac_ext >&5
28332
28333 echo "*** The test program failed to compile or link. See the file config.log for the"
28334 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28335fi
ac1cb8d3
VS
28336rm -f conftest.err conftest.$ac_objext \
28337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28338 CFLAGS="$ac_save_CFLAGS"
28339 LIBS="$ac_save_LIBS"
28340 fi
28341 fi
28342 GTK_CFLAGS=""
28343 GTK_LIBS=""
28344 :
28345 fi
28346
28347
28348 rm -f conf.gtktest
28349
5001df0d
MW
28350
28351 case "${host}" in
28352 *-*-solaris2* )
28353 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28354 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28355 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28356 fi
28357 if test "$wxUSE_SHARED" != "yes"; then
28358 GTK_LIBS="$GTK_LIBS -lX11"
28359 fi
28360 esac
f597b41c
MW
28361 fi
28362
f34ca037
MW
28363 if test -z "$wx_cv_lib_gtk"; then
28364 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28365
28366# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28367if test "${with_gtk_prefix+set}" = set; then
28368 withval="$with_gtk_prefix"
28369 gtk_config_prefix="$withval"
28370else
28371 gtk_config_prefix=""
28372fi;
28373
28374# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28375if test "${with_gtk_exec_prefix+set}" = set; then
28376 withval="$with_gtk_exec_prefix"
28377 gtk_config_exec_prefix="$withval"
28378else
28379 gtk_config_exec_prefix=""
28380fi;
28381# Check whether --enable-gtktest or --disable-gtktest was given.
28382if test "${enable_gtktest+set}" = set; then
28383 enableval="$enable_gtktest"
28384
28385else
28386 enable_gtktest=yes
28387fi;
28388
28389 for module in . $GTK_MODULES
28390 do
28391 case "$module" in
28392 gthread)
28393 gtk_config_args="$gtk_config_args gthread"
28394 ;;
28395 esac
28396 done
28397
28398 if test x$gtk_config_exec_prefix != x ; then
28399 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28400 if test x${GTK_CONFIG+set} != xset ; then
28401 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28402 fi
28403 fi
28404 if test x$gtk_config_prefix != x ; then
28405 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28406 if test x${GTK_CONFIG+set} != xset ; then
28407 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28408 fi
28409 fi
28410
28411 # Extract the first word of "gtk-config", so it can be a program name with args.
28412set dummy gtk-config; ac_word=$2
28413echo "$as_me:$LINENO: checking for $ac_word" >&5
28414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28415if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 case $GTK_CONFIG in
28419 [\\/]* | ?:[\\/]*)
28420 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28421 ;;
28422 *)
28423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424for as_dir in $PATH
28425do
28426 IFS=$as_save_IFS
28427 test -z "$as_dir" && as_dir=.
28428 for ac_exec_ext in '' $ac_executable_extensions; do
28429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28430 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28432 break 2
28433 fi
28434done
28435done
28436
28437 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28438 ;;
28439esac
28440fi
28441GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28442
28443if test -n "$GTK_CONFIG"; then
28444 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28445echo "${ECHO_T}$GTK_CONFIG" >&6
28446else
28447 echo "$as_me:$LINENO: result: no" >&5
28448echo "${ECHO_T}no" >&6
28449fi
28450
28451 min_gtk_version=1.2.7
28452 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28453echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28454 no_gtk=""
28455 if test "$GTK_CONFIG" = "no" ; then
28456 no_gtk=yes
28457 else
28458 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28459 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28460 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28461 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28462 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28463 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28464 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28466 if test "x$enable_gtktest" = "xyes" ; then
28467 ac_save_CFLAGS="$CFLAGS"
28468 ac_save_LIBS="$LIBS"
28469 CFLAGS="$CFLAGS $GTK_CFLAGS"
28470 LIBS="$GTK_LIBS $LIBS"
28471 rm -f conf.gtktest
28472 if test "$cross_compiling" = yes; then
28473 echo $ac_n "cross compiling; assumed OK... $ac_c"
28474else
28475 cat >conftest.$ac_ext <<_ACEOF
28476/* confdefs.h. */
28477_ACEOF
28478cat confdefs.h >>conftest.$ac_ext
28479cat >>conftest.$ac_ext <<_ACEOF
28480/* end confdefs.h. */
28481
28482#include <gtk/gtk.h>
28483#include <stdio.h>
28484#include <stdlib.h>
28485
28486int
28487main ()
28488{
28489 int major, minor, micro;
28490 char *tmp_version;
28491
28492 system ("touch conf.gtktest");
28493
28494 /* HP/UX 9 (%@#!) writes to sscanf strings */
28495 tmp_version = g_strdup("$min_gtk_version");
28496 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28497 printf("%s, bad version string\n", "$min_gtk_version");
28498 exit(1);
28499 }
28500
28501 if ((gtk_major_version != $gtk_config_major_version) ||
28502 (gtk_minor_version != $gtk_config_minor_version) ||
28503 (gtk_micro_version != $gtk_config_micro_version))
28504 {
28505 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28506 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28507 gtk_major_version, gtk_minor_version, gtk_micro_version);
28508 printf ("*** was found! If gtk-config was correct, then it is best\n");
28509 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28510 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28511 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28512 printf("*** required on your system.\n");
28513 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28514 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28515 printf("*** before re-running configure\n");
28516 }
28517#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28518 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28519 (gtk_minor_version != GTK_MINOR_VERSION) ||
28520 (gtk_micro_version != GTK_MICRO_VERSION))
28521 {
28522 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28523 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28524 printf("*** library (version %d.%d.%d)\n",
28525 gtk_major_version, gtk_minor_version, gtk_micro_version);
28526 }
28527#endif /* defined (GTK_MAJOR_VERSION) ... */
28528 else
28529 {
28530 if ((gtk_major_version > major) ||
28531 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28532 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28533 {
28534 return 0;
28535 }
28536 else
28537 {
28538 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28539 gtk_major_version, gtk_minor_version, gtk_micro_version);
28540 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28541 major, minor, micro);
28542 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28543 printf("***\n");
28544 printf("*** If you have already installed a sufficiently new version, this error\n");
28545 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28546 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28547 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28548 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28549 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28550 printf("*** so that the correct libraries are found at run-time))\n");
28551 }
28552 }
28553 return 1;
28554}
28555
28556_ACEOF
28557rm -f conftest$ac_exeext
28558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559 (eval $ac_link) 2>&5
28560 ac_status=$?
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 :
28569else
28570 echo "$as_me: program exited with status $ac_status" >&5
28571echo "$as_me: failed program was:" >&5
28572sed 's/^/| /' conftest.$ac_ext >&5
28573
28574( exit $ac_status )
28575no_gtk=yes
28576fi
ac1cb8d3 28577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28578fi
28579 CFLAGS="$ac_save_CFLAGS"
28580 LIBS="$ac_save_LIBS"
28581 fi
28582 fi
28583 if test "x$no_gtk" = x ; then
28584 echo "$as_me:$LINENO: result: yes" >&5
28585echo "${ECHO_T}yes" >&6
28586 wx_cv_lib_gtk=1.2.7
28587 else
28588 echo "$as_me:$LINENO: result: no" >&5
28589echo "${ECHO_T}no" >&6
28590 if test "$GTK_CONFIG" = "no" ; then
28591 echo "*** The gtk-config script installed by GTK could not be found"
28592 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28593 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28594 echo "*** full path to gtk-config."
28595 else
28596 if test -f conf.gtktest ; then
28597 :
28598 else
28599 echo "*** Could not run GTK test program, checking why..."
28600 CFLAGS="$CFLAGS $GTK_CFLAGS"
28601 LIBS="$LIBS $GTK_LIBS"
28602 cat >conftest.$ac_ext <<_ACEOF
28603/* confdefs.h. */
28604_ACEOF
28605cat confdefs.h >>conftest.$ac_ext
28606cat >>conftest.$ac_ext <<_ACEOF
28607/* end confdefs.h. */
28608
28609#include <gtk/gtk.h>
28610#include <stdio.h>
28611
28612int
28613main ()
28614{
28615 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28616 ;
28617 return 0;
28618}
28619_ACEOF
28620rm -f conftest.$ac_objext conftest$ac_exeext
28621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28622 (eval $ac_link) 2>conftest.er1
a848cd7e 28623 ac_status=$?
ac1cb8d3
VS
28624 grep -v '^ *+' conftest.er1 >conftest.err
28625 rm -f conftest.er1
28626 cat conftest.err >&5
a848cd7e
SC
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } &&
bb9e79c0 28629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631 (eval $ac_try) 2>&5
28632 ac_status=$?
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; } &&
28635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; }; then
28641 echo "*** The test program compiled, but did not run. This usually means"
28642 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28643 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28644 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28645 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28646 echo "*** is required on your system"
28647 echo "***"
28648 echo "*** If you have an old version installed, it is best to remove it, although"
28649 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28650 echo "***"
28651 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28652 echo "*** came with the system with the command"
28653 echo "***"
28654 echo "*** rpm --erase --nodeps gtk gtk-devel"
28655else
28656 echo "$as_me: failed program was:" >&5
28657sed 's/^/| /' conftest.$ac_ext >&5
28658
28659 echo "*** The test program failed to compile or link. See the file config.log for the"
28660 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28661 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28662 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28663fi
ac1cb8d3
VS
28664rm -f conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28666 CFLAGS="$ac_save_CFLAGS"
28667 LIBS="$ac_save_LIBS"
28668 fi
28669 fi
28670 GTK_CFLAGS=""
28671 GTK_LIBS=""
28672 :
28673 fi
28674
28675
28676 rm -f conf.gtktest
28677
28678
f34ca037 28679 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28680
28681# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28682if test "${with_gtk_prefix+set}" = set; then
28683 withval="$with_gtk_prefix"
28684 gtk_config_prefix="$withval"
28685else
28686 gtk_config_prefix=""
28687fi;
28688
28689# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28690if test "${with_gtk_exec_prefix+set}" = set; then
28691 withval="$with_gtk_exec_prefix"
28692 gtk_config_exec_prefix="$withval"
28693else
28694 gtk_config_exec_prefix=""
28695fi;
28696# Check whether --enable-gtktest or --disable-gtktest was given.
28697if test "${enable_gtktest+set}" = set; then
28698 enableval="$enable_gtktest"
28699
28700else
28701 enable_gtktest=yes
28702fi;
28703
28704 for module in . $GTK_MODULES
28705 do
28706 case "$module" in
28707 gthread)
28708 gtk_config_args="$gtk_config_args gthread"
28709 ;;
28710 esac
28711 done
28712
28713 if test x$gtk_config_exec_prefix != x ; then
28714 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28715 if test x${GTK_CONFIG+set} != xset ; then
28716 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28717 fi
28718 fi
28719 if test x$gtk_config_prefix != x ; then
28720 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28721 if test x${GTK_CONFIG+set} != xset ; then
28722 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28723 fi
28724 fi
28725
28726 # Extract the first word of "gtk-config", so it can be a program name with args.
28727set dummy gtk-config; ac_word=$2
28728echo "$as_me:$LINENO: checking for $ac_word" >&5
28729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28730if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732else
28733 case $GTK_CONFIG in
28734 [\\/]* | ?:[\\/]*)
28735 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28736 ;;
28737 *)
28738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28739for as_dir in $PATH
28740do
28741 IFS=$as_save_IFS
28742 test -z "$as_dir" && as_dir=.
28743 for ac_exec_ext in '' $ac_executable_extensions; do
28744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28745 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28747 break 2
28748 fi
28749done
28750done
28751
28752 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28753 ;;
28754esac
28755fi
28756GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28757
28758if test -n "$GTK_CONFIG"; then
28759 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28760echo "${ECHO_T}$GTK_CONFIG" >&6
28761else
28762 echo "$as_me:$LINENO: result: no" >&5
28763echo "${ECHO_T}no" >&6
28764fi
28765
28766 min_gtk_version=1.2.3
28767 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28768echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28769 no_gtk=""
28770 if test "$GTK_CONFIG" = "no" ; then
28771 no_gtk=yes
28772 else
28773 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28774 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28775 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28777 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28778 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28779 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28780 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28781 if test "x$enable_gtktest" = "xyes" ; then
28782 ac_save_CFLAGS="$CFLAGS"
28783 ac_save_LIBS="$LIBS"
28784 CFLAGS="$CFLAGS $GTK_CFLAGS"
28785 LIBS="$GTK_LIBS $LIBS"
28786 rm -f conf.gtktest
28787 if test "$cross_compiling" = yes; then
28788 echo $ac_n "cross compiling; assumed OK... $ac_c"
28789else
28790 cat >conftest.$ac_ext <<_ACEOF
28791/* confdefs.h. */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h. */
28796
28797#include <gtk/gtk.h>
28798#include <stdio.h>
28799#include <stdlib.h>
28800
28801int
28802main ()
28803{
28804 int major, minor, micro;
28805 char *tmp_version;
28806
28807 system ("touch conf.gtktest");
28808
28809 /* HP/UX 9 (%@#!) writes to sscanf strings */
28810 tmp_version = g_strdup("$min_gtk_version");
28811 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28812 printf("%s, bad version string\n", "$min_gtk_version");
28813 exit(1);
28814 }
28815
28816 if ((gtk_major_version != $gtk_config_major_version) ||
28817 (gtk_minor_version != $gtk_config_minor_version) ||
28818 (gtk_micro_version != $gtk_config_micro_version))
28819 {
28820 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28821 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28822 gtk_major_version, gtk_minor_version, gtk_micro_version);
28823 printf ("*** was found! If gtk-config was correct, then it is best\n");
28824 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28825 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28826 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28827 printf("*** required on your system.\n");
28828 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28829 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28830 printf("*** before re-running configure\n");
28831 }
28832#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28833 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28834 (gtk_minor_version != GTK_MINOR_VERSION) ||
28835 (gtk_micro_version != GTK_MICRO_VERSION))
28836 {
28837 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28838 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28839 printf("*** library (version %d.%d.%d)\n",
28840 gtk_major_version, gtk_minor_version, gtk_micro_version);
28841 }
28842#endif /* defined (GTK_MAJOR_VERSION) ... */
28843 else
28844 {
28845 if ((gtk_major_version > major) ||
28846 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28847 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28848 {
28849 return 0;
28850 }
28851 else
28852 {
28853 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28854 gtk_major_version, gtk_minor_version, gtk_micro_version);
28855 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28856 major, minor, micro);
28857 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28858 printf("***\n");
28859 printf("*** If you have already installed a sufficiently new version, this error\n");
28860 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28861 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28862 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28863 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28864 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28865 printf("*** so that the correct libraries are found at run-time))\n");
28866 }
28867 }
28868 return 1;
28869}
28870
28871_ACEOF
28872rm -f conftest$ac_exeext
28873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28874 (eval $ac_link) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28883 :
28884else
28885 echo "$as_me: program exited with status $ac_status" >&5
28886echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889( exit $ac_status )
28890no_gtk=yes
28891fi
ac1cb8d3 28892rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28893fi
28894 CFLAGS="$ac_save_CFLAGS"
28895 LIBS="$ac_save_LIBS"
28896 fi
28897 fi
28898 if test "x$no_gtk" = x ; then
28899 echo "$as_me:$LINENO: result: yes" >&5
28900echo "${ECHO_T}yes" >&6
28901 wx_cv_lib_gtk=1.2.3
28902 else
28903 echo "$as_me:$LINENO: result: no" >&5
28904echo "${ECHO_T}no" >&6
28905 if test "$GTK_CONFIG" = "no" ; then
28906 echo "*** The gtk-config script installed by GTK could not be found"
28907 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28908 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28909 echo "*** full path to gtk-config."
28910 else
28911 if test -f conf.gtktest ; then
28912 :
28913 else
28914 echo "*** Could not run GTK test program, checking why..."
28915 CFLAGS="$CFLAGS $GTK_CFLAGS"
28916 LIBS="$LIBS $GTK_LIBS"
28917 cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923
28924#include <gtk/gtk.h>
28925#include <stdio.h>
28926
28927int
28928main ()
28929{
28930 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28931 ;
28932 return 0;
28933}
28934_ACEOF
28935rm -f conftest.$ac_objext conftest$ac_exeext
28936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28937 (eval $ac_link) 2>conftest.er1
a848cd7e 28938 ac_status=$?
ac1cb8d3
VS
28939 grep -v '^ *+' conftest.er1 >conftest.err
28940 rm -f conftest.er1
28941 cat conftest.err >&5
a848cd7e
SC
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
bb9e79c0 28944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; } &&
28950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28952 (eval $ac_try) 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 echo "*** The test program compiled, but did not run. This usually means"
28957 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28958 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28959 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28960 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28961 echo "*** is required on your system"
28962 echo "***"
28963 echo "*** If you have an old version installed, it is best to remove it, although"
28964 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28965 echo "***"
28966 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28967 echo "*** came with the system with the command"
28968 echo "***"
28969 echo "*** rpm --erase --nodeps gtk gtk-devel"
28970else
28971 echo "$as_me: failed program was:" >&5
28972sed 's/^/| /' conftest.$ac_ext >&5
28973
28974 echo "*** The test program failed to compile or link. See the file config.log for the"
28975 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28976 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28977 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28978fi
ac1cb8d3
VS
28979rm -f conftest.err conftest.$ac_objext \
28980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28981 CFLAGS="$ac_save_CFLAGS"
28982 LIBS="$ac_save_LIBS"
28983 fi
28984 fi
28985 GTK_CFLAGS=""
28986 GTK_LIBS=""
28987 :
28988 fi
28989
28990
28991 rm -f conf.gtktest
28992
f34ca037 28993 fi
a848cd7e
SC
28994 fi
28995 fi
28996
28997 if test -z "$wx_cv_lib_gtk"; then
28998 wx_cv_lib_gtk=none
28999 else
29000 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 29001 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
29002 fi
29003
29004
29005fi
29006
29007
29008 if test "$gtk_version_cached" = 1; then
29009 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29010echo "${ECHO_T}$wx_cv_lib_gtk" >&6
29011 fi
29012
29013 case "$wx_cv_lib_gtk" in
29014 2.0) WXGTK20=1
29015 TOOLKIT_VERSION=2
29016 ;;
29017 1.2.7) WXGTK127=1
29018 WXGTK12=1
29019 ;;
29020 1.2.3) WXGTK12=1
29021 ;;
29022 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
29023The development files for GTK+ were not found. For GTK+ 2, please
29024ensure that pkg-config is in the path and that gtk+-2.0.pc is
29025installed. For GTK+ 1.2 please check that gtk-config is in the path,
29026and that the version is 1.2.3 or above. Also check that the
29027libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29028--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29029 " >&5
29030echo "$as_me: error:
f597b41c
MW
29031The development files for GTK+ were not found. For GTK+ 2, please
29032ensure that pkg-config is in the path and that gtk+-2.0.pc is
29033installed. For GTK+ 1.2 please check that gtk-config is in the path,
29034and that the version is 1.2.3 or above. Also check that the
29035libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29036--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29037 " >&2;}
29038 { (exit 1); exit 1; }; }
29039 ;;
29040 esac
29041
29042 if test "$WXGTK20" = 1; then
6954625c 29043 save_CFLAGS="$CFLAGS"
304205f1 29044 save_LIBS="$LIBS"
6954625c 29045 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 29046 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 29047
58e65954
MW
29048 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
29049echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
29050if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
58e65954 29059#include <gtk/gtk.h>
304205f1 29060
d12aef51
VZ
29061int
29062main ()
29063{
58e65954
MW
29064#ifndef gtk_icon_size_lookup
29065 char *p = (char *) gtk_icon_size_lookup;
29066#endif
abc736fd
MW
29067
29068 ;
29069 return 0;
29070}
29071_ACEOF
29072rm -f conftest.$ac_objext
29073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29074 (eval $ac_compile) 2>conftest.er1
29075 ac_status=$?
29076 grep -v '^ *+' conftest.er1 >conftest.err
29077 rm -f conftest.er1
29078 cat conftest.err >&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); } &&
bb9e79c0 29081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; } &&
29087 { ac_try='test -s conftest.$ac_objext'
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; }; then
58e65954 29093 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
29094else
29095 echo "$as_me: failed program was:" >&5
29096sed 's/^/| /' conftest.$ac_ext >&5
29097
58e65954
MW
29098ac_cv_have_decl_gtk_icon_size_lookup=no
29099fi
29100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29101fi
29102echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29103echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
29104if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 29105
58e65954
MW
29106cat >>confdefs.h <<_ACEOF
29107#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
29108_ACEOF
29109
58e65954
MW
29110
29111else
29112 cat >>confdefs.h <<_ACEOF
29113#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29114_ACEOF
29115
29116cat >>confdefs.h <<\_ACEOF
29117#define NEED_GTK_ICON_SIZE_LOOKUP 1
29118_ACEOF
abc736fd
MW
29119
29120fi
58e65954
MW
29121
29122
abc736fd 29123
e9263684
VZ
29124 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29125echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
29126 cat >conftest.$ac_ext <<_ACEOF
29127/* confdefs.h. */
29128_ACEOF
29129cat confdefs.h >>conftest.$ac_ext
29130cat >>conftest.$ac_ext <<_ACEOF
29131/* end confdefs.h. */
29132
29133 #include <gtk/gtk.h>
29134
29135int
29136main ()
29137{
29138
29139 #if !GTK_CHECK_VERSION(2,6,0)
29140 Not GTK+ 2.6
29141 #endif
29142
29143 ;
29144 return 0;
29145}
29146_ACEOF
29147rm -f conftest.$ac_objext
29148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29149 (eval $ac_compile) 2>conftest.er1
29150 ac_status=$?
29151 grep -v '^ *+' conftest.er1 >conftest.err
29152 rm -f conftest.er1
29153 cat conftest.err >&5
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
bb9e79c0 29156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168
29169 cat >>confdefs.h <<\_ACEOF
29170#define __WXGTK26__ 1
29171_ACEOF
29172
29173 cat >>confdefs.h <<\_ACEOF
29174#define __WXGTK24__ 1
29175_ACEOF
29176
29177 echo "$as_me:$LINENO: result: yes" >&5
29178echo "${ECHO_T}yes" >&6
29179 ac_wxgtk26=1
29180
29181else
29182 echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185
29186 echo "$as_me:$LINENO: result: no" >&5
29187echo "${ECHO_T}no" >&6
29188 ac_wxgtk26=0
29189
29190fi
29191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29192
29193 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
29194 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29195echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29196 cat >conftest.$ac_ext <<_ACEOF
29197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
29202
29203 #include <gtk/gtk.h>
29204
29205int
29206main ()
29207{
29208
29209 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29210 Not GTK+ 2.4
9755e73b
VS
29211 #endif
29212
29213 ;
29214 return 0;
29215}
29216_ACEOF
29217rm -f conftest.$ac_objext
29218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29219 (eval $ac_compile) 2>conftest.er1
29220 ac_status=$?
29221 grep -v '^ *+' conftest.er1 >conftest.err
29222 rm -f conftest.er1
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
bb9e79c0 29226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
29227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228 (eval $ac_try) 2>&5
29229 ac_status=$?
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); }; } &&
29232 { ac_try='test -s conftest.$ac_objext'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238
29239 cat >>confdefs.h <<\_ACEOF
29240#define __WXGTK24__ 1
29241_ACEOF
29242
29243 echo "$as_me:$LINENO: result: yes" >&5
29244echo "${ECHO_T}yes" >&6
29245
29246else
29247 echo "$as_me: failed program was:" >&5
29248sed 's/^/| /' conftest.$ac_ext >&5
29249
29250
29251 echo "$as_me:$LINENO: result: no" >&5
29252echo "${ECHO_T}no" >&6
29253
29254fi
29255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29256 fi
9755e73b 29257
6954625c 29258 CFLAGS="$save_CFLAGS"
304205f1 29259 LIBS="$save_LIBS"
a848cd7e
SC
29260 else
29261 if test "$wxUSE_UNICODE" = "yes"; then
29262 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29263echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29264 wxUSE_UNICODE=no
29265 fi
64b75e64
RD
29266
29267 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29268echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29269if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29271else
29272 ac_check_lib_save_LIBS=$LIBS
29273LIBS="-lgdk $LIBS"
29274cat >conftest.$ac_ext <<_ACEOF
29275/* confdefs.h. */
29276_ACEOF
29277cat confdefs.h >>conftest.$ac_ext
29278cat >>conftest.$ac_ext <<_ACEOF
29279/* end confdefs.h. */
29280
29281/* Override any gcc2 internal prototype to avoid an error. */
29282#ifdef __cplusplus
29283extern "C"
29284#endif
29285/* We use char because int might match the return type of a gcc2
29286 builtin and then its argument prototype would still apply. */
29287char gdk_im_open ();
29288int
29289main ()
29290{
29291gdk_im_open ();
29292 ;
29293 return 0;
29294}
29295_ACEOF
29296rm -f conftest.$ac_objext conftest$ac_exeext
29297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29298 (eval $ac_link) 2>conftest.er1
29299 ac_status=$?
29300 grep -v '^ *+' conftest.er1 >conftest.err
29301 rm -f conftest.er1
29302 cat conftest.err >&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); } &&
bb9e79c0 29305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest$ac_exeext'
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 ac_cv_lib_gdk_gdk_im_open=yes
29318else
29319 echo "$as_me: failed program was:" >&5
29320sed 's/^/| /' conftest.$ac_ext >&5
29321
29322ac_cv_lib_gdk_gdk_im_open=no
29323fi
29324rm -f conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29326LIBS=$ac_check_lib_save_LIBS
29327fi
29328echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29329echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29330if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29331 cat >>confdefs.h <<\_ACEOF
29332#define HAVE_XIM 1
29333_ACEOF
29334
29335fi
29336
a848cd7e
SC
29337 fi
29338
e56f4f9e
VZ
29339 ac_ext=cc
29340ac_cpp='$CXXCPP $CPPFLAGS'
29341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29344
29345
a848cd7e
SC
29346 if test "$USE_DARWIN" != 1; then
29347
29348for ac_func in poll
29349do
29350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29351echo "$as_me:$LINENO: checking for $ac_func" >&5
29352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29353if eval "test \"\${$as_ac_var+set}\" = set"; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29355else
29356 cat >conftest.$ac_ext <<_ACEOF
29357/* confdefs.h. */
29358_ACEOF
29359cat confdefs.h >>conftest.$ac_ext
29360cat >>conftest.$ac_ext <<_ACEOF
29361/* end confdefs.h. */
ac1cb8d3
VS
29362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29364#define $ac_func innocuous_$ac_func
29365
a848cd7e
SC
29366/* System header to define __stub macros and hopefully few prototypes,
29367 which can conflict with char $ac_func (); below.
29368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29370
a848cd7e
SC
29371#ifdef __STDC__
29372# include <limits.h>
29373#else
29374# include <assert.h>
29375#endif
ac1cb8d3
VS
29376
29377#undef $ac_func
29378
a848cd7e
SC
29379/* Override any gcc2 internal prototype to avoid an error. */
29380#ifdef __cplusplus
29381extern "C"
29382{
29383#endif
29384/* We use char because int might match the return type of a gcc2
29385 builtin and then its argument prototype would still apply. */
29386char $ac_func ();
29387/* The GNU C library defines this for functions which it implements
29388 to always fail with ENOSYS. Some functions are actually named
29389 something starting with __ and the normal name is an alias. */
29390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29391choke me
29392#else
29393char (*f) () = $ac_func;
29394#endif
29395#ifdef __cplusplus
29396}
29397#endif
29398
29399int
29400main ()
29401{
29402return f != $ac_func;
29403 ;
29404 return 0;
29405}
29406_ACEOF
29407rm -f conftest.$ac_objext conftest$ac_exeext
29408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29409 (eval $ac_link) 2>conftest.er1
a848cd7e 29410 ac_status=$?
ac1cb8d3
VS
29411 grep -v '^ *+' conftest.er1 >conftest.err
29412 rm -f conftest.er1
29413 cat conftest.err >&5
a848cd7e
SC
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); } &&
bb9e79c0 29416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; } &&
29422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424 (eval $ac_try) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 eval "$as_ac_var=yes"
29429else
29430 echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
29433eval "$as_ac_var=no"
29434fi
ac1cb8d3
VS
29435rm -f conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29437fi
29438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29440if test `eval echo '${'$as_ac_var'}'` = yes; then
29441 cat >>confdefs.h <<_ACEOF
29442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29443_ACEOF
29444
29445fi
29446done
29447
29448 fi
29449
29450 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29451 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29452
29453 AFMINSTALL=afminstall
29454 TOOLKIT=GTK
29455 GUIDIST=GTK_DIST
29456
a848cd7e
SC
29457 if test "$wxUSE_GPE" = "yes"; then
29458 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29459echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29460
0ad5d837
VZ
29461 ac_find_libraries=
29462 for ac_dir in $SEARCH_LIB;
a848cd7e 29463 do
3eca31dc 29464 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29465 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29466 ac_find_libraries=$ac_dir
29467 break 2
29468 fi
29469 done
29470 done
29471
29472 if test "$ac_find_libraries" != "" ; then
29473
0ad5d837 29474 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29475 ac_path_to_link=""
29476 else
0ad5d837
VZ
29477 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29478 result=$?
29479 if test $result = 0; then
29480 ac_path_to_link=""
29481 else
29482 ac_path_to_link=" -L$ac_find_libraries"
29483 fi
a848cd7e
SC
29484 fi
29485
29486 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29487 WXGPE=1
0ad5d837
VZ
29488 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29489echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29490 else
29491 echo "$as_me:$LINENO: result: not found" >&5
29492echo "${ECHO_T}not found" >&6
29493 fi
29494
29495 fi
29496 fi
29497
29498 if test "$wxUSE_MGL" = 1; then
29499 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29500echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29501 if test "x$MGL_ROOT" = x ; then
29502 echo "$as_me:$LINENO: result: not found" >&5
29503echo "${ECHO_T}not found" >&6
29504 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29505echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29506 { (exit 1); exit 1; }; }
29507 else
29508 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29509echo "${ECHO_T}$MGL_ROOT" >&6
29510 fi
29511
29512 echo "$as_me:$LINENO: checking for libmgl location" >&5
29513echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29514 case "${host}" in
29515 *-*-linux* )
29516 if test "x$wxUSE_SHARED" = xyes ; then
29517 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29518 else
29519 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29520 fi
29521 ;;
29522 *-pc-msdosdjgpp )
29523 mgl_os_candidates="dos32/dj2"
29524 ;;
29525 *)
29526 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29527echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29528 { (exit 1); exit 1; }; }
29529 esac
29530
29531 mgl_lib_type=""
29532 mgl_os=""
29533
29534 for mgl_os_i in $mgl_os_candidates ; do
29535 if test "x$mgl_os" = x ; then
29536 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29537 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29538 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29539 mgl_lib_type=debug
29540 mgl_os=$mgl_os_i
29541 fi
29542 fi
29543 if test "x$mgl_lib_type" = x ; then
29544 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29545 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29546 mgl_lib_type=release
29547 mgl_os=$mgl_os_i
29548 fi
29549 fi
29550 fi
29551 done
29552
29553 if test "x$mgl_os" = x ; then
29554 echo "$as_me:$LINENO: result: not found" >&5
29555echo "${ECHO_T}not found" >&6
29556 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29557echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29558 { (exit 1); exit 1; }; }
29559 fi
29560 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29561echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29562
29563 wxUSE_UNIVERSAL="yes"
29564
29565 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29566 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29567
29568 AFMINSTALL=afminstall
29569 TOOLKIT=MGL
29570 GUIDIST=MGL_DIST
29571 fi
29572
b3c86150
VS
29573 if test "$wxUSE_DFB" = 1; then
29574
29575
29576if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29577 if test -n "$ac_tool_prefix"; then
29578 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29579set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29580echo "$as_me:$LINENO: checking for $ac_word" >&5
29581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29582if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29584else
29585 case $PKG_CONFIG in
29586 [\\/]* | ?:[\\/]*)
29587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29588 ;;
29589 *)
29590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29591for as_dir in $PATH
29592do
29593 IFS=$as_save_IFS
29594 test -z "$as_dir" && as_dir=.
29595 for ac_exec_ext in '' $ac_executable_extensions; do
29596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29599 break 2
29600 fi
29601done
29602done
29603
29604 ;;
29605esac
29606fi
29607PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29608
29609if test -n "$PKG_CONFIG"; then
29610 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29611echo "${ECHO_T}$PKG_CONFIG" >&6
29612else
29613 echo "$as_me:$LINENO: result: no" >&5
29614echo "${ECHO_T}no" >&6
29615fi
29616
29617fi
29618if test -z "$ac_cv_path_PKG_CONFIG"; then
29619 ac_pt_PKG_CONFIG=$PKG_CONFIG
29620 # Extract the first word of "pkg-config", so it can be a program name with args.
29621set dummy pkg-config; ac_word=$2
29622echo "$as_me:$LINENO: checking for $ac_word" >&5
29623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29624if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 case $ac_pt_PKG_CONFIG in
29628 [\\/]* | ?:[\\/]*)
29629 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29630 ;;
29631 *)
29632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633for as_dir in $PATH
29634do
29635 IFS=$as_save_IFS
29636 test -z "$as_dir" && as_dir=.
29637 for ac_exec_ext in '' $ac_executable_extensions; do
29638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29639 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29641 break 2
29642 fi
29643done
29644done
29645
29646 ;;
29647esac
29648fi
29649ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29650
29651if test -n "$ac_pt_PKG_CONFIG"; then
29652 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29653echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29654else
29655 echo "$as_me:$LINENO: result: no" >&5
29656echo "${ECHO_T}no" >&6
29657fi
29658
29659 PKG_CONFIG=$ac_pt_PKG_CONFIG
29660else
29661 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29662fi
29663
29664fi
29665if test -n "$PKG_CONFIG"; then
29666 _pkg_min_version=0.9.0
29667 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29668echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29669 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29670 echo "$as_me:$LINENO: result: yes" >&5
29671echo "${ECHO_T}yes" >&6
29672 else
29673 echo "$as_me:$LINENO: result: no" >&5
29674echo "${ECHO_T}no" >&6
29675 PKG_CONFIG=""
29676 fi
29677
29678fi
29679
479c790c 29680
b3c86150
VS
29681pkg_failed=no
29682echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29683echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29684
29685if test -n "$PKG_CONFIG"; then
29686 if test -n "$DIRECTFB_CFLAGS"; then
29687 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29688 else
29689 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29690 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29691 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; then
737d3175 29695 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29696else
29697 pkg_failed=yes
29698fi
29699 fi
29700else
29701 pkg_failed=untried
29702fi
29703if test -n "$PKG_CONFIG"; then
29704 if test -n "$DIRECTFB_LIBS"; then
29705 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29706 else
29707 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29708 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29709 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; then
737d3175 29713 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29714else
29715 pkg_failed=yes
29716fi
29717 fi
29718else
29719 pkg_failed=untried
29720fi
29721
29722
29723
29724if test $pkg_failed = yes; then
29725
29726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29727 _pkg_short_errors_supported=yes
29728else
29729 _pkg_short_errors_supported=no
29730fi
29731 if test $_pkg_short_errors_supported = yes; then
737d3175 29732 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29733 else
737d3175 29734 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29735 fi
29736 # Put the nasty error message in config.log where it belongs
29737 echo "$DIRECTFB_PKG_ERRORS" >&5
29738
29739
29740 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29741echo "$as_me: error: DirectFB not found." >&2;}
29742 { (exit 1); exit 1; }; }
29743
29744
29745elif test $pkg_failed = untried; then
29746
29747 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29748echo "$as_me: error: DirectFB not found." >&2;}
29749 { (exit 1); exit 1; }; }
29750
29751
29752else
29753 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29754 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29755 echo "$as_me:$LINENO: result: yes" >&5
29756echo "${ECHO_T}yes" >&6
29757
29758 wxUSE_UNIVERSAL="yes"
29759 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29760 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29761 TOOLKIT=DFB
29762 GUIDIST=DFB_DIST
29763
29764fi
29765 fi
29766
a848cd7e
SC
29767 if test "$wxUSE_MICROWIN" = 1; then
29768 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29769echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29770 if test "x$MICROWINDOWS" = x ; then
29771 echo "$as_me:$LINENO: result: not found" >&5
29772echo "${ECHO_T}not found" >&6
29773 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29774echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29775 { (exit 1); exit 1; }; }
29776 else
29777 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29778echo "${ECHO_T}$MICROWINDOWS" >&6
29779 fi
29780
29781 if test -f $MICROWINDOWS/lib/libmwin.a; then
29782 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29783echo "${ECHO_T}MicroWindows' libraries found." >&6
29784 else
29785 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29786echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29787 { (exit 1); exit 1; }; }
29788 fi
29789
29790 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29791 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29792
29793 wxUSE_UNIVERSAL="yes"
29794
29795 AFMINSTALL=afminstall
29796 TOOLKIT=MICROWIN
29797 GUIDIST=MICROWIN_DIST
29798
29799 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29800 fi
29801
74b84332 29802 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0
VZ
29803
29804if test "x$ac_path_x_has_been_run" != xyes; then
29805 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29806echo $ECHO_N "checking for X... $ECHO_C" >&6
29807
bb9e79c0 29808ac_path_x_has_been_run=yes
a848cd7e
SC
29809
29810# Check whether --with-x or --without-x was given.
29811if test "${with_x+set}" = set; then
29812 withval="$with_x"
29813
29814fi;
29815# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29816if test "x$with_x" = xno; then
29817 # The user explicitly disabled X.
29818 have_x=disabled
29819else
29820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29821 # Both variables are already set.
29822 have_x=yes
29823 else
29824 if test "${ac_cv_have_x+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826else
29827 # One or both of the vars are not set, and there is no cached value.
29828ac_x_includes=no ac_x_libraries=no
29829rm -fr conftest.dir
29830if mkdir conftest.dir; then
29831 cd conftest.dir
29832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29833 cat >Imakefile <<'_ACEOF'
29834acfindx:
29835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29836_ACEOF
29837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29841 for ac_extension in a so sl; do
29842 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29843 test -f $ac_im_libdir/libX11.$ac_extension; then
29844 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29845 fi
29846 done
29847 # Screen out bogus values from the imake configuration. They are
29848 # bogus both because they are the default anyway, and because
29849 # using them would break gcc on systems where it needs fixed includes.
29850 case $ac_im_incroot in
29851 /usr/include) ;;
29852 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29853 esac
29854 case $ac_im_usrlibdir in
29855 /usr/lib | /lib) ;;
29856 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29857 esac
29858 fi
29859 cd ..
29860 rm -fr conftest.dir
29861fi
29862
29863# Standard set of common directories for X headers.
29864# Check X11 before X11Rn because it is often a symlink to the current release.
29865ac_x_header_dirs='
29866/usr/X11/include
29867/usr/X11R6/include
29868/usr/X11R5/include
29869/usr/X11R4/include
29870
29871/usr/include/X11
29872/usr/include/X11R6
29873/usr/include/X11R5
29874/usr/include/X11R4
29875
29876/usr/local/X11/include
29877/usr/local/X11R6/include
29878/usr/local/X11R5/include
29879/usr/local/X11R4/include
29880
29881/usr/local/include/X11
29882/usr/local/include/X11R6
29883/usr/local/include/X11R5
29884/usr/local/include/X11R4
29885
29886/usr/X386/include
29887/usr/x386/include
29888/usr/XFree86/include/X11
29889
29890/usr/include
29891/usr/local/include
29892/usr/unsupported/include
29893/usr/athena/include
29894/usr/local/x11r5/include
29895/usr/lpp/Xamples/include
29896
29897/usr/openwin/include
29898/usr/openwin/share/include'
29899
29900if test "$ac_x_includes" = no; then
bb9e79c0 29901 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29902 # First, try using that file with no special directory specified.
29903 cat >conftest.$ac_ext <<_ACEOF
29904/* confdefs.h. */
29905_ACEOF
29906cat confdefs.h >>conftest.$ac_ext
29907cat >>conftest.$ac_ext <<_ACEOF
29908/* end confdefs.h. */
bb9e79c0 29909#include <X11/Xlib.h>
a848cd7e
SC
29910_ACEOF
29911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29913 ac_status=$?
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } >/dev/null; then
29919 if test -s conftest.err; then
5d7b7554
VZ
29920 ac_cpp_err=$ac_cxx_preproc_warn_flag
29921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29922 else
29923 ac_cpp_err=
29924 fi
29925else
29926 ac_cpp_err=yes
29927fi
29928if test -z "$ac_cpp_err"; then
29929 # We can compile using X headers with no special include directory.
29930ac_x_includes=
29931else
29932 echo "$as_me: failed program was:" >&5
29933sed 's/^/| /' conftest.$ac_ext >&5
29934
29935 for ac_dir in $ac_x_header_dirs; do
bb9e79c0 29936 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29937 ac_x_includes=$ac_dir
29938 break
29939 fi
29940done
29941fi
29942rm -f conftest.err conftest.$ac_ext
29943fi # $ac_x_includes = no
29944
29945if test "$ac_x_libraries" = no; then
29946 # Check for the libraries.
29947 # See if we find them without any special options.
29948 # Don't add to $LIBS permanently.
29949 ac_save_LIBS=$LIBS
bb9e79c0 29950 LIBS="-lX11 $LIBS"
a848cd7e
SC
29951 cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
bb9e79c0 29957#include <X11/Xlib.h>
a848cd7e
SC
29958int
29959main ()
29960{
bb9e79c0 29961XrmInitialize ()
a848cd7e
SC
29962 ;
29963 return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext conftest$ac_exeext
29967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29968 (eval $ac_link) 2>conftest.er1
a848cd7e 29969 ac_status=$?
ac1cb8d3
VS
29970 grep -v '^ *+' conftest.er1 >conftest.err
29971 rm -f conftest.er1
29972 cat conftest.err >&5
a848cd7e
SC
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } &&
bb9e79c0 29975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 LIBS=$ac_save_LIBS
29988# We can link X programs with no special library path.
29989ac_x_libraries=
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994LIBS=$ac_save_LIBS
29995for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29996do
29997 # Don't even attempt the hair of trying to link an X program!
29998 for ac_extension in a so sl; do
bb9e79c0 29999 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
30000 ac_x_libraries=$ac_dir
30001 break 2
30002 fi
30003 done
30004done
30005fi
ac1cb8d3
VS
30006rm -f conftest.err conftest.$ac_objext \
30007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30008fi # $ac_x_libraries = no
30009
30010if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
30011 # Didn't find X anywhere. Cache the known absence of X.
30012 ac_cv_have_x="have_x=no"
30013else
30014 # Record where we found X for the cache.
30015 ac_cv_have_x="have_x=yes \
ac1cb8d3 30016 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
30017fi
30018fi
30019
30020 fi
30021 eval "$ac_cv_have_x"
30022fi # $with_x != no
30023
30024if test "$have_x" != yes; then
30025 echo "$as_me:$LINENO: result: $have_x" >&5
30026echo "${ECHO_T}$have_x" >&6
30027 no_x=yes
30028else
30029 # If each of the values was on the command line, it overrides each guess.
30030 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30031 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30032 # Update the cache value to reflect the command line values.
30033 ac_cv_have_x="have_x=yes \
30034 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bb9e79c0
VZ
30035 # It might be that x_includes is empty (headers are found in the
30036 # standard search path. Then output the corresponding message
30037 ac_out_x_includes=$x_includes
30038 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
30039 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
30040echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
30041fi
30042
bb9e79c0 30043fi
a848cd7e
SC
30044if test "$no_x" = yes; then
30045 # Not all programs may use this symbol, but it does not hurt to define it.
30046
30047cat >>confdefs.h <<\_ACEOF
30048#define X_DISPLAY_MISSING 1
30049_ACEOF
30050
30051 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30052else
30053 if test -n "$x_includes"; then
30054 X_CFLAGS="$X_CFLAGS -I$x_includes"
30055 fi
30056
30057 # It would also be nice to do this for all -L options, not just this one.
30058 if test -n "$x_libraries"; then
30059 X_LIBS="$X_LIBS -L$x_libraries"
30060 # For Solaris; some versions of Sun CC require a space after -R and
30061 # others require no space. Words are not sufficient . . . .
30062 case `(uname -sr) 2>/dev/null` in
30063 "SunOS 5"*)
30064 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30065echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
30066 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30067 cat >conftest.$ac_ext <<_ACEOF
30068/* confdefs.h. */
30069_ACEOF
30070cat confdefs.h >>conftest.$ac_ext
30071cat >>conftest.$ac_ext <<_ACEOF
30072/* end confdefs.h. */
30073
30074int
30075main ()
30076{
30077
30078 ;
30079 return 0;
30080}
30081_ACEOF
30082rm -f conftest.$ac_objext conftest$ac_exeext
30083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30084 (eval $ac_link) 2>conftest.er1
a848cd7e 30085 ac_status=$?
ac1cb8d3
VS
30086 grep -v '^ *+' conftest.er1 >conftest.err
30087 rm -f conftest.er1
30088 cat conftest.err >&5
a848cd7e
SC
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
bb9e79c0 30091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_R_nospace=yes
30104else
30105 echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
30108ac_R_nospace=no
30109fi
ac1cb8d3
VS
30110rm -f conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30112 if test $ac_R_nospace = yes; then
30113 echo "$as_me:$LINENO: result: no" >&5
30114echo "${ECHO_T}no" >&6
30115 X_LIBS="$X_LIBS -R$x_libraries"
30116 else
30117 LIBS="$ac_xsave_LIBS -R $x_libraries"
30118 cat >conftest.$ac_ext <<_ACEOF
30119/* confdefs.h. */
30120_ACEOF
30121cat confdefs.h >>conftest.$ac_ext
30122cat >>conftest.$ac_ext <<_ACEOF
30123/* end confdefs.h. */
30124
30125int
30126main ()
30127{
30128
30129 ;
30130 return 0;
30131}
30132_ACEOF
30133rm -f conftest.$ac_objext conftest$ac_exeext
30134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30135 (eval $ac_link) 2>conftest.er1
a848cd7e 30136 ac_status=$?
ac1cb8d3
VS
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
a848cd7e
SC
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } &&
bb9e79c0 30142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_R_space=yes
30155else
30156 echo "$as_me: failed program was:" >&5
30157sed 's/^/| /' conftest.$ac_ext >&5
30158
30159ac_R_space=no
30160fi
ac1cb8d3
VS
30161rm -f conftest.err conftest.$ac_objext \
30162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30163 if test $ac_R_space = yes; then
30164 echo "$as_me:$LINENO: result: yes" >&5
30165echo "${ECHO_T}yes" >&6
30166 X_LIBS="$X_LIBS -R $x_libraries"
30167 else
30168 echo "$as_me:$LINENO: result: neither works" >&5
30169echo "${ECHO_T}neither works" >&6
30170 fi
30171 fi
30172 LIBS=$ac_xsave_LIBS
30173 esac
30174 fi
30175
30176 # Check for system-dependent libraries X programs must link with.
30177 # Do this before checking for the system-independent R6 libraries
30178 # (-lICE), since we may need -lsocket or whatever for X linking.
30179
30180 if test "$ISC" = yes; then
30181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30182 else
30183 # Martyn Johnson says this is needed for Ultrix, if the X
30184 # libraries were built with DECnet support. And Karl Berry says
30185 # the Alpha needs dnet_stub (dnet does not exist).
30186 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30187 cat >conftest.$ac_ext <<_ACEOF
30188/* confdefs.h. */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h. */
30193
30194/* Override any gcc2 internal prototype to avoid an error. */
30195#ifdef __cplusplus
30196extern "C"
30197#endif
30198/* We use char because int might match the return type of a gcc2
30199 builtin and then its argument prototype would still apply. */
30200char XOpenDisplay ();
30201int
30202main ()
30203{
30204XOpenDisplay ();
30205 ;
30206 return 0;
30207}
30208_ACEOF
30209rm -f conftest.$ac_objext conftest$ac_exeext
30210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30211 (eval $ac_link) 2>conftest.er1
a848cd7e 30212 ac_status=$?
ac1cb8d3
VS
30213 grep -v '^ *+' conftest.er1 >conftest.err
30214 rm -f conftest.er1
30215 cat conftest.err >&5
a848cd7e
SC
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
bb9e79c0 30218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; } &&
30224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30227 ac_status=$?
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; }; then
30230 :
30231else
30232 echo "$as_me: failed program was:" >&5
30233sed 's/^/| /' conftest.$ac_ext >&5
30234
30235echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30236echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30237if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30238 echo $ECHO_N "(cached) $ECHO_C" >&6
30239else
30240 ac_check_lib_save_LIBS=$LIBS
30241LIBS="-ldnet $LIBS"
30242cat >conftest.$ac_ext <<_ACEOF
30243/* confdefs.h. */
30244_ACEOF
30245cat confdefs.h >>conftest.$ac_ext
30246cat >>conftest.$ac_ext <<_ACEOF
30247/* end confdefs.h. */
30248
30249/* Override any gcc2 internal prototype to avoid an error. */
30250#ifdef __cplusplus
30251extern "C"
30252#endif
30253/* We use char because int might match the return type of a gcc2
30254 builtin and then its argument prototype would still apply. */
30255char dnet_ntoa ();
30256int
30257main ()
30258{
30259dnet_ntoa ();
30260 ;
30261 return 0;
30262}
30263_ACEOF
30264rm -f conftest.$ac_objext conftest$ac_exeext
30265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30266 (eval $ac_link) 2>conftest.er1
a848cd7e 30267 ac_status=$?
ac1cb8d3
VS
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
a848cd7e
SC
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
bb9e79c0 30273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 ac_cv_lib_dnet_dnet_ntoa=yes
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290ac_cv_lib_dnet_dnet_ntoa=no
30291fi
ac1cb8d3
VS
30292rm -f conftest.err conftest.$ac_objext \
30293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30294LIBS=$ac_check_lib_save_LIBS
30295fi
30296echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30297echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30298if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30299 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30300fi
30301
30302 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30303 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30304echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30305if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30307else
30308 ac_check_lib_save_LIBS=$LIBS
30309LIBS="-ldnet_stub $LIBS"
30310cat >conftest.$ac_ext <<_ACEOF
30311/* confdefs.h. */
30312_ACEOF
30313cat confdefs.h >>conftest.$ac_ext
30314cat >>conftest.$ac_ext <<_ACEOF
30315/* end confdefs.h. */
30316
30317/* Override any gcc2 internal prototype to avoid an error. */
30318#ifdef __cplusplus
30319extern "C"
30320#endif
30321/* We use char because int might match the return type of a gcc2
30322 builtin and then its argument prototype would still apply. */
30323char dnet_ntoa ();
30324int
30325main ()
30326{
30327dnet_ntoa ();
30328 ;
30329 return 0;
30330}
30331_ACEOF
30332rm -f conftest.$ac_objext conftest$ac_exeext
30333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30334 (eval $ac_link) 2>conftest.er1
a848cd7e 30335 ac_status=$?
ac1cb8d3
VS
30336 grep -v '^ *+' conftest.er1 >conftest.err
30337 rm -f conftest.er1
30338 cat conftest.err >&5
a848cd7e
SC
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } &&
bb9e79c0 30341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343 (eval $ac_try) 2>&5
30344 ac_status=$?
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); }; } &&
30347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30354else
30355 echo "$as_me: failed program was:" >&5
30356sed 's/^/| /' conftest.$ac_ext >&5
30357
30358ac_cv_lib_dnet_stub_dnet_ntoa=no
30359fi
ac1cb8d3
VS
30360rm -f conftest.err conftest.$ac_objext \
30361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30362LIBS=$ac_check_lib_save_LIBS
30363fi
30364echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30365echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30366if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30367 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30368fi
30369
30370 fi
30371fi
ac1cb8d3
VS
30372rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30374 LIBS="$ac_xsave_LIBS"
30375
30376 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30377 # to get the SysV transport functions.
30378 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30379 # needs -lnsl.
30380 # The nsl library prevents programs from opening the X display
30381 # on Irix 5.2, according to T.E. Dickey.
30382 # The functions gethostbyname, getservbyname, and inet_addr are
30383 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30384 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30385echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30386if test "${ac_cv_func_gethostbyname+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30388else
30389 cat >conftest.$ac_ext <<_ACEOF
30390/* confdefs.h. */
30391_ACEOF
30392cat confdefs.h >>conftest.$ac_ext
30393cat >>conftest.$ac_ext <<_ACEOF
30394/* end confdefs.h. */
ac1cb8d3
VS
30395/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30397#define gethostbyname innocuous_gethostbyname
30398
a848cd7e
SC
30399/* System header to define __stub macros and hopefully few prototypes,
30400 which can conflict with char gethostbyname (); below.
30401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30403
a848cd7e
SC
30404#ifdef __STDC__
30405# include <limits.h>
30406#else
30407# include <assert.h>
30408#endif
ac1cb8d3
VS
30409
30410#undef gethostbyname
30411
a848cd7e
SC
30412/* Override any gcc2 internal prototype to avoid an error. */
30413#ifdef __cplusplus
30414extern "C"
30415{
30416#endif
30417/* We use char because int might match the return type of a gcc2
30418 builtin and then its argument prototype would still apply. */
30419char gethostbyname ();
30420/* The GNU C library defines this for functions which it implements
30421 to always fail with ENOSYS. Some functions are actually named
30422 something starting with __ and the normal name is an alias. */
30423#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30424choke me
30425#else
30426char (*f) () = gethostbyname;
30427#endif
30428#ifdef __cplusplus
30429}
30430#endif
30431
30432int
30433main ()
30434{
30435return f != gethostbyname;
30436 ;
30437 return 0;
30438}
30439_ACEOF
30440rm -f conftest.$ac_objext conftest$ac_exeext
30441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30442 (eval $ac_link) 2>conftest.er1
a848cd7e 30443 ac_status=$?
ac1cb8d3
VS
30444 grep -v '^ *+' conftest.er1 >conftest.err
30445 rm -f conftest.er1
30446 cat conftest.err >&5
a848cd7e
SC
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); } &&
bb9e79c0 30449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30451 (eval $ac_try) 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
30455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_func_gethostbyname=yes
30462else
30463 echo "$as_me: failed program was:" >&5
30464sed 's/^/| /' conftest.$ac_ext >&5
30465
30466ac_cv_func_gethostbyname=no
30467fi
ac1cb8d3
VS
30468rm -f conftest.err conftest.$ac_objext \
30469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30470fi
30471echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30472echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30473
30474 if test $ac_cv_func_gethostbyname = no; then
30475 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30476echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30477if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30479else
30480 ac_check_lib_save_LIBS=$LIBS
30481LIBS="-lnsl $LIBS"
30482cat >conftest.$ac_ext <<_ACEOF
30483/* confdefs.h. */
30484_ACEOF
30485cat confdefs.h >>conftest.$ac_ext
30486cat >>conftest.$ac_ext <<_ACEOF
30487/* end confdefs.h. */
30488
30489/* Override any gcc2 internal prototype to avoid an error. */
30490#ifdef __cplusplus
30491extern "C"
30492#endif
30493/* We use char because int might match the return type of a gcc2
30494 builtin and then its argument prototype would still apply. */
30495char gethostbyname ();
30496int
30497main ()
30498{
30499gethostbyname ();
30500 ;
30501 return 0;
30502}
30503_ACEOF
30504rm -f conftest.$ac_objext conftest$ac_exeext
30505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30506 (eval $ac_link) 2>conftest.er1
30507 ac_status=$?
30508 grep -v '^ *+' conftest.er1 >conftest.err
30509 rm -f conftest.er1
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } &&
bb9e79c0 30513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515 (eval $ac_try) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; } &&
30519 { ac_try='test -s conftest$ac_exeext'
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; }; then
30525 ac_cv_lib_nsl_gethostbyname=yes
30526else
30527 echo "$as_me: failed program was:" >&5
30528sed 's/^/| /' conftest.$ac_ext >&5
30529
30530ac_cv_lib_nsl_gethostbyname=no
30531fi
30532rm -f conftest.err conftest.$ac_objext \
30533 conftest$ac_exeext conftest.$ac_ext
30534LIBS=$ac_check_lib_save_LIBS
30535fi
30536echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30537echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30538if test $ac_cv_lib_nsl_gethostbyname = yes; then
30539 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30540fi
30541
30542 if test $ac_cv_lib_nsl_gethostbyname = no; then
30543 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30544echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30545if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 ac_check_lib_save_LIBS=$LIBS
30549LIBS="-lbsd $LIBS"
30550cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
30556
30557/* Override any gcc2 internal prototype to avoid an error. */
30558#ifdef __cplusplus
30559extern "C"
30560#endif
30561/* We use char because int might match the return type of a gcc2
30562 builtin and then its argument prototype would still apply. */
30563char gethostbyname ();
30564int
30565main ()
30566{
30567gethostbyname ();
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext conftest$ac_exeext
30573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574 (eval $ac_link) 2>conftest.er1
a848cd7e 30575 ac_status=$?
ac1cb8d3
VS
30576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
a848cd7e
SC
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
bb9e79c0 30581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583 (eval $ac_try) 2>&5
30584 ac_status=$?
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30586 (exit $ac_status); }; } &&
30587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589 (eval $ac_try) 2>&5
30590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
30593 ac_cv_lib_bsd_gethostbyname=yes
30594else
30595 echo "$as_me: failed program was:" >&5
30596sed 's/^/| /' conftest.$ac_ext >&5
30597
30598ac_cv_lib_bsd_gethostbyname=no
30599fi
ac1cb8d3
VS
30600rm -f conftest.err conftest.$ac_objext \
30601 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30602LIBS=$ac_check_lib_save_LIBS
30603fi
30604echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30605echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30606if test $ac_cv_lib_bsd_gethostbyname = yes; then
30607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30608fi
30609
30610 fi
30611 fi
30612
30613 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30614 # socket/setsockopt and other routines are undefined under SCO ODT
30615 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30616 # on later versions), says Simon Leinen: it contains gethostby*
30617 # variants that don't use the name server (or something). -lsocket
30618 # must be given before -lnsl if both are needed. We assume that
30619 # if connect needs -lnsl, so does gethostbyname.
30620 echo "$as_me:$LINENO: checking for connect" >&5
30621echo $ECHO_N "checking for connect... $ECHO_C" >&6
30622if test "${ac_cv_func_connect+set}" = set; then
30623 echo $ECHO_N "(cached) $ECHO_C" >&6
30624else
30625 cat >conftest.$ac_ext <<_ACEOF
30626/* confdefs.h. */
30627_ACEOF
30628cat confdefs.h >>conftest.$ac_ext
30629cat >>conftest.$ac_ext <<_ACEOF
30630/* end confdefs.h. */
ac1cb8d3
VS
30631/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30633#define connect innocuous_connect
30634
a848cd7e
SC
30635/* System header to define __stub macros and hopefully few prototypes,
30636 which can conflict with char connect (); below.
30637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30638 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30639
a848cd7e
SC
30640#ifdef __STDC__
30641# include <limits.h>
30642#else
30643# include <assert.h>
30644#endif
ac1cb8d3
VS
30645
30646#undef connect
30647
a848cd7e
SC
30648/* Override any gcc2 internal prototype to avoid an error. */
30649#ifdef __cplusplus
30650extern "C"
30651{
30652#endif
30653/* We use char because int might match the return type of a gcc2
30654 builtin and then its argument prototype would still apply. */
30655char connect ();
30656/* The GNU C library defines this for functions which it implements
30657 to always fail with ENOSYS. Some functions are actually named
30658 something starting with __ and the normal name is an alias. */
30659#if defined (__stub_connect) || defined (__stub___connect)
30660choke me
30661#else
30662char (*f) () = connect;
30663#endif
30664#ifdef __cplusplus
30665}
30666#endif
30667
30668int
30669main ()
30670{
30671return f != connect;
30672 ;
30673 return 0;
30674}
30675_ACEOF
30676rm -f conftest.$ac_objext conftest$ac_exeext
30677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30678 (eval $ac_link) 2>conftest.er1
a848cd7e 30679 ac_status=$?
ac1cb8d3
VS
30680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
a848cd7e
SC
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } &&
bb9e79c0 30685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; } &&
30691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693 (eval $ac_try) 2>&5
30694 ac_status=$?
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; }; then
30697 ac_cv_func_connect=yes
30698else
30699 echo "$as_me: failed program was:" >&5
30700sed 's/^/| /' conftest.$ac_ext >&5
30701
30702ac_cv_func_connect=no
30703fi
ac1cb8d3
VS
30704rm -f conftest.err conftest.$ac_objext \
30705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30706fi
30707echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30708echo "${ECHO_T}$ac_cv_func_connect" >&6
30709
30710 if test $ac_cv_func_connect = no; then
30711 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30712echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30713if test "${ac_cv_lib_socket_connect+set}" = set; then
30714 echo $ECHO_N "(cached) $ECHO_C" >&6
30715else
30716 ac_check_lib_save_LIBS=$LIBS
30717LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30718cat >conftest.$ac_ext <<_ACEOF
30719/* confdefs.h. */
30720_ACEOF
30721cat confdefs.h >>conftest.$ac_ext
30722cat >>conftest.$ac_ext <<_ACEOF
30723/* end confdefs.h. */
30724
30725/* Override any gcc2 internal prototype to avoid an error. */
30726#ifdef __cplusplus
30727extern "C"
30728#endif
30729/* We use char because int might match the return type of a gcc2
30730 builtin and then its argument prototype would still apply. */
30731char connect ();
30732int
30733main ()
30734{
30735connect ();
30736 ;
30737 return 0;
30738}
30739_ACEOF
30740rm -f conftest.$ac_objext conftest$ac_exeext
30741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30742 (eval $ac_link) 2>conftest.er1
a848cd7e 30743 ac_status=$?
ac1cb8d3
VS
30744 grep -v '^ *+' conftest.er1 >conftest.err
30745 rm -f conftest.er1
30746 cat conftest.err >&5
a848cd7e
SC
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); } &&
bb9e79c0 30749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; } &&
30755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757 (eval $ac_try) 2>&5
30758 ac_status=$?
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); }; }; then
30761 ac_cv_lib_socket_connect=yes
30762else
30763 echo "$as_me: failed program was:" >&5
30764sed 's/^/| /' conftest.$ac_ext >&5
30765
30766ac_cv_lib_socket_connect=no
30767fi
ac1cb8d3
VS
30768rm -f conftest.err conftest.$ac_objext \
30769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30770LIBS=$ac_check_lib_save_LIBS
30771fi
30772echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30773echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30774if test $ac_cv_lib_socket_connect = yes; then
30775 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30776fi
30777
30778 fi
30779
30780 # Guillermo Gomez says -lposix is necessary on A/UX.
30781 echo "$as_me:$LINENO: checking for remove" >&5
30782echo $ECHO_N "checking for remove... $ECHO_C" >&6
30783if test "${ac_cv_func_remove+set}" = set; then
30784 echo $ECHO_N "(cached) $ECHO_C" >&6
30785else
30786 cat >conftest.$ac_ext <<_ACEOF
30787/* confdefs.h. */
30788_ACEOF
30789cat confdefs.h >>conftest.$ac_ext
30790cat >>conftest.$ac_ext <<_ACEOF
30791/* end confdefs.h. */
ac1cb8d3
VS
30792/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30794#define remove innocuous_remove
30795
a848cd7e
SC
30796/* System header to define __stub macros and hopefully few prototypes,
30797 which can conflict with char remove (); below.
30798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30799 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30800
a848cd7e
SC
30801#ifdef __STDC__
30802# include <limits.h>
30803#else
30804# include <assert.h>
30805#endif
ac1cb8d3
VS
30806
30807#undef remove
30808
a848cd7e
SC
30809/* Override any gcc2 internal prototype to avoid an error. */
30810#ifdef __cplusplus
30811extern "C"
30812{
30813#endif
30814/* We use char because int might match the return type of a gcc2
30815 builtin and then its argument prototype would still apply. */
30816char remove ();
30817/* The GNU C library defines this for functions which it implements
30818 to always fail with ENOSYS. Some functions are actually named
30819 something starting with __ and the normal name is an alias. */
30820#if defined (__stub_remove) || defined (__stub___remove)
30821choke me
30822#else
30823char (*f) () = remove;
30824#endif
30825#ifdef __cplusplus
30826}
30827#endif
30828
30829int
30830main ()
30831{
30832return f != remove;
30833 ;
30834 return 0;
30835}
30836_ACEOF
30837rm -f conftest.$ac_objext conftest$ac_exeext
30838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30839 (eval $ac_link) 2>conftest.er1
a848cd7e 30840 ac_status=$?
ac1cb8d3
VS
30841 grep -v '^ *+' conftest.er1 >conftest.err
30842 rm -f conftest.er1
30843 cat conftest.err >&5
a848cd7e
SC
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); } &&
bb9e79c0 30846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; } &&
30852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 ac_cv_func_remove=yes
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863ac_cv_func_remove=no
30864fi
ac1cb8d3
VS
30865rm -f conftest.err conftest.$ac_objext \
30866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30867fi
30868echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30869echo "${ECHO_T}$ac_cv_func_remove" >&6
30870
30871 if test $ac_cv_func_remove = no; then
30872 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30873echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30874if test "${ac_cv_lib_posix_remove+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30876else
30877 ac_check_lib_save_LIBS=$LIBS
30878LIBS="-lposix $LIBS"
30879cat >conftest.$ac_ext <<_ACEOF
30880/* confdefs.h. */
30881_ACEOF
30882cat confdefs.h >>conftest.$ac_ext
30883cat >>conftest.$ac_ext <<_ACEOF
30884/* end confdefs.h. */
30885
30886/* Override any gcc2 internal prototype to avoid an error. */
30887#ifdef __cplusplus
30888extern "C"
30889#endif
30890/* We use char because int might match the return type of a gcc2
30891 builtin and then its argument prototype would still apply. */
30892char remove ();
30893int
30894main ()
30895{
30896remove ();
30897 ;
30898 return 0;
30899}
30900_ACEOF
30901rm -f conftest.$ac_objext conftest$ac_exeext
30902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30903 (eval $ac_link) 2>conftest.er1
a848cd7e 30904 ac_status=$?
ac1cb8d3
VS
30905 grep -v '^ *+' conftest.er1 >conftest.err
30906 rm -f conftest.er1
30907 cat conftest.err >&5
a848cd7e
SC
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); } &&
bb9e79c0 30910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30912 (eval $ac_try) 2>&5
30913 ac_status=$?
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); }; } &&
30916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30919 ac_status=$?
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; }; then
30922 ac_cv_lib_posix_remove=yes
30923else
30924 echo "$as_me: failed program was:" >&5
30925sed 's/^/| /' conftest.$ac_ext >&5
30926
30927ac_cv_lib_posix_remove=no
30928fi
ac1cb8d3
VS
30929rm -f conftest.err conftest.$ac_objext \
30930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30931LIBS=$ac_check_lib_save_LIBS
30932fi
30933echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30934echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30935if test $ac_cv_lib_posix_remove = yes; then
30936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30937fi
30938
30939 fi
30940
30941 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30942 echo "$as_me:$LINENO: checking for shmat" >&5
30943echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30944if test "${ac_cv_func_shmat+set}" = set; then
30945 echo $ECHO_N "(cached) $ECHO_C" >&6
30946else
30947 cat >conftest.$ac_ext <<_ACEOF
30948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
ac1cb8d3
VS
30953/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30955#define shmat innocuous_shmat
30956
a848cd7e
SC
30957/* System header to define __stub macros and hopefully few prototypes,
30958 which can conflict with char shmat (); below.
30959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30961
a848cd7e
SC
30962#ifdef __STDC__
30963# include <limits.h>
30964#else
30965# include <assert.h>
30966#endif
ac1cb8d3
VS
30967
30968#undef shmat
30969
a848cd7e
SC
30970/* Override any gcc2 internal prototype to avoid an error. */
30971#ifdef __cplusplus
30972extern "C"
30973{
30974#endif
30975/* We use char because int might match the return type of a gcc2
30976 builtin and then its argument prototype would still apply. */
30977char shmat ();
30978/* The GNU C library defines this for functions which it implements
30979 to always fail with ENOSYS. Some functions are actually named
30980 something starting with __ and the normal name is an alias. */
30981#if defined (__stub_shmat) || defined (__stub___shmat)
30982choke me
30983#else
30984char (*f) () = shmat;
30985#endif
30986#ifdef __cplusplus
30987}
30988#endif
30989
30990int
30991main ()
30992{
30993return f != shmat;
30994 ;
30995 return 0;
30996}
30997_ACEOF
30998rm -f conftest.$ac_objext conftest$ac_exeext
30999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31000 (eval $ac_link) 2>conftest.er1
a848cd7e 31001 ac_status=$?
ac1cb8d3
VS
31002 grep -v '^ *+' conftest.er1 >conftest.err
31003 rm -f conftest.er1
31004 cat conftest.err >&5
a848cd7e
SC
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } &&
bb9e79c0 31007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31009 (eval $ac_try) 2>&5
31010 ac_status=$?
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); }; } &&
31013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31015 (eval $ac_try) 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; }; then
31019 ac_cv_func_shmat=yes
31020else
31021 echo "$as_me: failed program was:" >&5
31022sed 's/^/| /' conftest.$ac_ext >&5
31023
31024ac_cv_func_shmat=no
31025fi
ac1cb8d3
VS
31026rm -f conftest.err conftest.$ac_objext \
31027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31028fi
31029echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31030echo "${ECHO_T}$ac_cv_func_shmat" >&6
31031
31032 if test $ac_cv_func_shmat = no; then
31033 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31034echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
31035if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 ac_check_lib_save_LIBS=$LIBS
31039LIBS="-lipc $LIBS"
31040cat >conftest.$ac_ext <<_ACEOF
31041/* confdefs.h. */
31042_ACEOF
31043cat confdefs.h >>conftest.$ac_ext
31044cat >>conftest.$ac_ext <<_ACEOF
31045/* end confdefs.h. */
31046
31047/* Override any gcc2 internal prototype to avoid an error. */
31048#ifdef __cplusplus
31049extern "C"
31050#endif
31051/* We use char because int might match the return type of a gcc2
31052 builtin and then its argument prototype would still apply. */
31053char shmat ();
31054int
31055main ()
31056{
31057shmat ();
31058 ;
31059 return 0;
31060}
31061_ACEOF
31062rm -f conftest.$ac_objext conftest$ac_exeext
31063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31064 (eval $ac_link) 2>conftest.er1
a848cd7e 31065 ac_status=$?
ac1cb8d3
VS
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
a848cd7e
SC
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
bb9e79c0 31071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; } &&
31077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; }; then
31083 ac_cv_lib_ipc_shmat=yes
31084else
31085 echo "$as_me: failed program was:" >&5
31086sed 's/^/| /' conftest.$ac_ext >&5
31087
31088ac_cv_lib_ipc_shmat=no
31089fi
ac1cb8d3
VS
31090rm -f conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31092LIBS=$ac_check_lib_save_LIBS
31093fi
31094echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31095echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
31096if test $ac_cv_lib_ipc_shmat = yes; then
31097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31098fi
31099
31100 fi
31101 fi
31102
31103 # Check for libraries that X11R6 Xt/Xaw programs need.
31104 ac_save_LDFLAGS=$LDFLAGS
31105 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31106 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31107 # check for ICE first), but we must link in the order -lSM -lICE or
31108 # we get undefined symbols. So assume we have SM if we have ICE.
31109 # These have to be linked with before -lX11, unlike the other
31110 # libraries we check for below, so use a different variable.
31111 # John Interrante, Karl Berry
31112 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31113echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
31114if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31115 echo $ECHO_N "(cached) $ECHO_C" >&6
31116else
31117 ac_check_lib_save_LIBS=$LIBS
31118LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31119cat >conftest.$ac_ext <<_ACEOF
31120/* confdefs.h. */
31121_ACEOF
31122cat confdefs.h >>conftest.$ac_ext
31123cat >>conftest.$ac_ext <<_ACEOF
31124/* end confdefs.h. */
31125
31126/* Override any gcc2 internal prototype to avoid an error. */
31127#ifdef __cplusplus
31128extern "C"
31129#endif
31130/* We use char because int might match the return type of a gcc2
31131 builtin and then its argument prototype would still apply. */
31132char IceConnectionNumber ();
31133int
31134main ()
31135{
31136IceConnectionNumber ();
31137 ;
31138 return 0;
31139}
31140_ACEOF
31141rm -f conftest.$ac_objext conftest$ac_exeext
31142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31143 (eval $ac_link) 2>conftest.er1
a848cd7e 31144 ac_status=$?
ac1cb8d3
VS
31145 grep -v '^ *+' conftest.er1 >conftest.err
31146 rm -f conftest.er1
31147 cat conftest.err >&5
a848cd7e
SC
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } &&
bb9e79c0 31150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; } &&
31156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31159 ac_status=$?
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; }; then
31162 ac_cv_lib_ICE_IceConnectionNumber=yes
31163else
31164 echo "$as_me: failed program was:" >&5
31165sed 's/^/| /' conftest.$ac_ext >&5
31166
31167ac_cv_lib_ICE_IceConnectionNumber=no
31168fi
ac1cb8d3
VS
31169rm -f conftest.err conftest.$ac_objext \
31170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31171LIBS=$ac_check_lib_save_LIBS
31172fi
31173echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31174echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31175if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31176 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31177fi
31178
31179 LDFLAGS=$ac_save_LDFLAGS
31180
31181fi
31182
31183
31184 if test "$no_x" = "yes"; then
89d90d6d
VZ
31185 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31186echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31187 { (exit 1); exit 1; }; }
a848cd7e
SC
31188 fi
31189
74b84332
VS
31190 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31191 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31192 AFMINSTALL=afminstall
31193 COMPILED_X_PROGRAM=0
31194
74b84332
VS
31195 fi
31196
31197 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
31198 if test "$wxUSE_NANOX" = "yes"; then
31199 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31200echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31201 if test "x$MICROWIN" = x ; then
31202 echo "$as_me:$LINENO: result: not found" >&5
31203echo "${ECHO_T}not found" >&6
31204 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31205echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31206 { (exit 1); exit 1; }; }
31207 else
31208 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31209echo "${ECHO_T}$MICROWIN" >&6
31210 cat >>confdefs.h <<\_ACEOF
31211#define wxUSE_NANOX 1
31212_ACEOF
31213
31214 fi
31215 fi
31216
31217 if test "$wxUSE_UNICODE" = "yes"; then
31218
479c790c
VZ
31219
31220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31221 if test -n "$ac_tool_prefix"; then
31222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31224echo "$as_me:$LINENO: checking for $ac_word" >&5
31225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31227 echo $ECHO_N "(cached) $ECHO_C" >&6
31228else
31229 case $PKG_CONFIG in
31230 [\\/]* | ?:[\\/]*)
31231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31232 ;;
31233 *)
31234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31235for as_dir in $PATH
31236do
31237 IFS=$as_save_IFS
31238 test -z "$as_dir" && as_dir=.
31239 for ac_exec_ext in '' $ac_executable_extensions; do
31240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31243 break 2
31244 fi
31245done
31246done
31247
31248 ;;
31249esac
31250fi
31251PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31252
31253if test -n "$PKG_CONFIG"; then
31254 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31255echo "${ECHO_T}$PKG_CONFIG" >&6
31256else
31257 echo "$as_me:$LINENO: result: no" >&5
31258echo "${ECHO_T}no" >&6
31259fi
31260
31261fi
31262if test -z "$ac_cv_path_PKG_CONFIG"; then
31263 ac_pt_PKG_CONFIG=$PKG_CONFIG
31264 # Extract the first word of "pkg-config", so it can be a program name with args.
31265set dummy pkg-config; ac_word=$2
31266echo "$as_me:$LINENO: checking for $ac_word" >&5
31267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31268if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31270else
31271 case $ac_pt_PKG_CONFIG in
31272 [\\/]* | ?:[\\/]*)
31273 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31274 ;;
31275 *)
31276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31277for as_dir in $PATH
31278do
31279 IFS=$as_save_IFS
31280 test -z "$as_dir" && as_dir=.
31281 for ac_exec_ext in '' $ac_executable_extensions; do
31282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31283 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31285 break 2
31286 fi
31287done
31288done
31289
31290 ;;
31291esac
31292fi
31293ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31294
31295if test -n "$ac_pt_PKG_CONFIG"; then
31296 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31297echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31298else
31299 echo "$as_me:$LINENO: result: no" >&5
31300echo "${ECHO_T}no" >&6
31301fi
31302
31303 PKG_CONFIG=$ac_pt_PKG_CONFIG
31304else
31305 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31306fi
31307
31308fi
31309if test -n "$PKG_CONFIG"; then
31310 _pkg_min_version=0.9.0
31311 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31312echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31313 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31314 echo "$as_me:$LINENO: result: yes" >&5
31315echo "${ECHO_T}yes" >&6
31316 else
31317 echo "$as_me:$LINENO: result: no" >&5
31318echo "${ECHO_T}no" >&6
31319 PKG_CONFIG=""
31320 fi
31321
31322fi
31323
31324
3ecd9f92
MW
31325pkg_failed=no
31326echo "$as_me:$LINENO: checking for PANGOX" >&5
31327echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31328
3ecd9f92
MW
31329if test -n "$PKG_CONFIG"; then
31330 if test -n "$PANGOX_CFLAGS"; then
31331 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31332 else
31333 if test -n "$PKG_CONFIG" && \
31334 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31335 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; then
31339 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31340else
31341 pkg_failed=yes
31342fi
31343 fi
31344else
31345 pkg_failed=untried
31346fi
31347if test -n "$PKG_CONFIG"; then
31348 if test -n "$PANGOX_LIBS"; then
31349 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31350 else
31351 if test -n "$PKG_CONFIG" && \
31352 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31353 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31354 ac_status=$?
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; then
31357 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31358else
31359 pkg_failed=yes
31360fi
31361 fi
31362else
31363 pkg_failed=untried
31364fi
31365
31366
31367
31368if test $pkg_failed = yes; then
31369
31370if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31371 _pkg_short_errors_supported=yes
31372else
31373 _pkg_short_errors_supported=no
31374fi
31375 if test $_pkg_short_errors_supported = yes; then
31376 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31377 else
31378 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31379 fi
3ecd9f92
MW
31380 # Put the nasty error message in config.log where it belongs
31381 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31382
31383
479c790c 31384 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31385echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31386 { (exit 1); exit 1; }; }
a848cd7e 31387
a848cd7e 31388
3ecd9f92 31389elif test $pkg_failed = untried; then
a848cd7e 31390
479c790c 31391 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31392echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31393 { (exit 1); exit 1; }; }
31394
31395
31396else
31397 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31398 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31399 echo "$as_me:$LINENO: result: yes" >&5
31400echo "${ECHO_T}yes" >&6
31401
479c790c
VZ
31402 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31404
31405fi
31406
31407pkg_failed=no
31408echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31409echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31410
31411if test -n "$PKG_CONFIG"; then
31412 if test -n "$PANGOFT2_CFLAGS"; then
31413 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31414 else
31415 if test -n "$PKG_CONFIG" && \
31416 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31417 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; then
31421 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31422else
31423 pkg_failed=yes
31424fi
31425 fi
31426else
31427 pkg_failed=untried
31428fi
31429if test -n "$PKG_CONFIG"; then
31430 if test -n "$PANGOFT2_LIBS"; then
31431 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31432 else
31433 if test -n "$PKG_CONFIG" && \
31434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31435 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31436 ac_status=$?
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; then
31439 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31440else
31441 pkg_failed=yes
31442fi
31443 fi
31444else
31445 pkg_failed=untried
31446fi
31447
31448
31449
31450if test $pkg_failed = yes; then
31451
31452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31453 _pkg_short_errors_supported=yes
31454else
31455 _pkg_short_errors_supported=no
31456fi
31457 if test $_pkg_short_errors_supported = yes; then
31458 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31459 else
31460 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31461 fi
31462 # Put the nasty error message in config.log where it belongs
31463 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31464
a848cd7e 31465
479c790c 31466 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31467echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31468 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31469
31470
3ecd9f92 31471elif test $pkg_failed = untried; then
a848cd7e 31472
479c790c 31473 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31474echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31475 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31476
a848cd7e 31477
a848cd7e 31478else
3ecd9f92
MW
31479 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31480 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31481 echo "$as_me:$LINENO: result: yes" >&5
31482echo "${ECHO_T}yes" >&6
31483
479c790c
VZ
31484 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31485 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31486
a848cd7e 31487fi
3ecd9f92
MW
31488
31489pkg_failed=no
31490echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31491echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31492
31493if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31494 if test -n "$PANGOXFT_CFLAGS"; then
31495 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31496 else
31497 if test -n "$PKG_CONFIG" && \
31498 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31499 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; then
31503 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31504else
3ecd9f92
MW
31505 pkg_failed=yes
31506fi
31507 fi
31508else
31509 pkg_failed=untried
31510fi
31511if test -n "$PKG_CONFIG"; then
31512 if test -n "$PANGOXFT_LIBS"; then
31513 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31514 else
31515 if test -n "$PKG_CONFIG" && \
31516 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31517 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31518 ac_status=$?
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; then
31521 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31522else
31523 pkg_failed=yes
31524fi
31525 fi
31526else
31527 pkg_failed=untried
a848cd7e
SC
31528fi
31529
a848cd7e 31530
a848cd7e 31531
3ecd9f92 31532if test $pkg_failed = yes; then
a848cd7e 31533
3ecd9f92
MW
31534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31535 _pkg_short_errors_supported=yes
31536else
31537 _pkg_short_errors_supported=no
31538fi
31539 if test $_pkg_short_errors_supported = yes; then
31540 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31541 else
31542 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31543 fi
3ecd9f92
MW
31544 # Put the nasty error message in config.log where it belongs
31545 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31546
31547
479c790c 31548 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31549echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31550
a848cd7e 31551
3ecd9f92 31552elif test $pkg_failed = untried; then
a848cd7e 31553
479c790c 31554 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31555echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31556
31557
31558else
31559 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31560 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31561 echo "$as_me:$LINENO: result: yes" >&5
31562echo "${ECHO_T}yes" >&6
a848cd7e 31563
479c790c 31564 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31565#define HAVE_PANGO_XFT 1
31566_ACEOF
31567
479c790c
VZ
31568 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31570
3ecd9f92 31571fi
479c790c
VZ
31572 save_CXXFLAGS="$CXXFLAGS"
31573 save_LIBS="$LIBS"
31574 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31575 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31576
31577for ac_func in pango_font_family_is_monospace
31578do
31579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31580echo "$as_me:$LINENO: checking for $ac_func" >&5
31581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31582if eval "test \"\${$as_ac_var+set}\" = set"; then
31583 echo $ECHO_N "(cached) $ECHO_C" >&6
31584else
31585 cat >conftest.$ac_ext <<_ACEOF
31586/* confdefs.h. */
31587_ACEOF
31588cat confdefs.h >>conftest.$ac_ext
31589cat >>conftest.$ac_ext <<_ACEOF
31590/* end confdefs.h. */
31591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31593#define $ac_func innocuous_$ac_func
31594
31595/* System header to define __stub macros and hopefully few prototypes,
31596 which can conflict with char $ac_func (); below.
31597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31598 <limits.h> exists even on freestanding compilers. */
31599
31600#ifdef __STDC__
31601# include <limits.h>
31602#else
31603# include <assert.h>
31604#endif
31605
31606#undef $ac_func
31607
31608/* Override any gcc2 internal prototype to avoid an error. */
31609#ifdef __cplusplus
31610extern "C"
31611{
31612#endif
31613/* We use char because int might match the return type of a gcc2
31614 builtin and then its argument prototype would still apply. */
31615char $ac_func ();
31616/* The GNU C library defines this for functions which it implements
31617 to always fail with ENOSYS. Some functions are actually named
31618 something starting with __ and the normal name is an alias. */
31619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31620choke me
31621#else
31622char (*f) () = $ac_func;
31623#endif
31624#ifdef __cplusplus
31625}
31626#endif
31627
31628int
31629main ()
31630{
31631return f != $ac_func;
31632 ;
31633 return 0;
31634}
31635_ACEOF
31636rm -f conftest.$ac_objext conftest$ac_exeext
31637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31638 (eval $ac_link) 2>conftest.er1
31639 ac_status=$?
31640 grep -v '^ *+' conftest.er1 >conftest.err
31641 rm -f conftest.er1
31642 cat conftest.err >&5
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); } &&
bb9e79c0 31645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31647 (eval $ac_try) 2>&5
31648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='test -s conftest$ac_exeext'
31652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31653 (eval $ac_try) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; }; then
31657 eval "$as_ac_var=yes"
31658else
31659 echo "$as_me: failed program was:" >&5
31660sed 's/^/| /' conftest.$ac_ext >&5
31661
31662eval "$as_ac_var=no"
31663fi
31664rm -f conftest.err conftest.$ac_objext \
31665 conftest$ac_exeext conftest.$ac_ext
31666fi
31667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31669if test `eval echo '${'$as_ac_var'}'` = yes; then
31670 cat >>confdefs.h <<_ACEOF
31671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31672_ACEOF
31673
31674fi
31675done
31676
479c790c
VZ
31677 CXXFLAGS="$save_CXXFLAGS"
31678 LIBS="$save_LIBS"
a848cd7e
SC
31679 fi
31680
31681 wxUSE_UNIVERSAL="yes"
31682
31683 if test "$wxUSE_NANOX" = "yes"; then
31684 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31685 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"
31686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31687 else
31688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31689 fi
31690
a848cd7e
SC
31691 TOOLKIT=X11
31692 GUIDIST=X11_DIST
31693 fi
31694
31695 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31696 if test "$wxUSE_UNICODE" = "yes"; then
31697 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31698echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31699 { (exit 1); exit 1; }; }
31700 fi
31701
74b84332
VS
31702 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31703echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31704
74b84332
VS
31705ac_find_includes=
31706for ac_dir in $SEARCH_INCLUDE /usr/include;
31707 do
31708 if test -f "$ac_dir/Xm/Xm.h"; then
31709 ac_find_includes=$ac_dir
31710 break
31711 fi
31712 done
a848cd7e 31713
74b84332
VS
31714 if test "$ac_find_includes" != "" ; then
31715 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31716echo "${ECHO_T}found in $ac_find_includes" >&6
31717
31718 if test "x$ac_find_includes" = "x/usr/include"; then
31719 ac_path_to_include=""
31720 else
31721 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31722 result=$?
31723 if test $result = 0; then
31724 ac_path_to_include=""
31725 else
31726 ac_path_to_include=" -I$ac_find_includes"
31727 fi
a848cd7e
SC
31728 fi
31729
74b84332
VS
31730 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31731 else
e56f4f9e
VZ
31732 save_CXXFLAGS=$CXXFLAGS
31733 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31734
74b84332 31735 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31736/* confdefs.h. */
31737_ACEOF
31738cat confdefs.h >>conftest.$ac_ext
31739cat >>conftest.$ac_ext <<_ACEOF
31740/* end confdefs.h. */
31741
74b84332
VS
31742 #include <Xm/Xm.h>
31743
a848cd7e
SC
31744int
31745main ()
31746{
31747
74b84332
VS
31748 int version;
31749 version = xmUseVersion;
31750
a848cd7e
SC
31751 ;
31752 return 0;
31753}
31754_ACEOF
74b84332
VS
31755rm -f conftest.$ac_objext
31756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31757 (eval $ac_compile) 2>conftest.er1
a848cd7e 31758 ac_status=$?
ac1cb8d3
VS
31759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
a848cd7e
SC
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } &&
bb9e79c0 31764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
74b84332 31770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31773 ac_status=$?
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
74b84332
VS
31776
31777 echo "$as_me:$LINENO: result: found in default search path" >&5
31778echo "${ECHO_T}found in default search path" >&6
31779 COMPILED_X_PROGRAM=1
31780
a848cd7e
SC
31781else
31782 echo "$as_me: failed program was:" >&5
31783sed 's/^/| /' conftest.$ac_ext >&5
31784
a848cd7e 31785
74b84332
VS
31786 echo "$as_me:$LINENO: result: no" >&5
31787echo "${ECHO_T}no" >&6
e051b34e
MW
31788 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31789echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31790 { (exit 1); exit 1; }; }
a848cd7e 31791
a848cd7e 31792
a848cd7e 31793fi
74b84332 31794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31795
e56f4f9e 31796 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31797 fi
31798
0ad5d837
VZ
31799
31800 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31801echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31802
0ad5d837
VZ
31803 ac_find_libraries=
31804 for ac_dir in $SEARCH_LIB;
74b84332 31805 do
3eca31dc 31806 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31807 if test -f "$ac_dir/libXm.$ac_extension"; then
31808 ac_find_libraries=$ac_dir
31809 break 2
a848cd7e 31810 fi
74b84332
VS
31811 done
31812 done
a848cd7e 31813
0ad5d837
VZ
31814
31815 if test "x$ac_find_libraries" != "x" ; then
31816 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31817echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31818
74b84332 31819
0ad5d837 31820 if test "$ac_find_libraries" = "default location"; then
74b84332 31821 ac_path_to_link=""
a848cd7e 31822 else
0ad5d837
VZ
31823 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31824 result=$?
31825 if test $result = 0; then
31826 ac_path_to_link=""
31827 else
31828 ac_path_to_link=" -L$ac_find_libraries"
31829 fi
74b84332
VS
31830 fi
31831
0ad5d837
VZ
31832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31833 else
e56f4f9e
VZ
31834 save_CXXFLAGS=$CXXFLAGS
31835 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31836 save_LIBS="$LIBS"
31837 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31838
0ad5d837 31839 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31840/* confdefs.h. */
31841_ACEOF
31842cat confdefs.h >>conftest.$ac_ext
31843cat >>conftest.$ac_ext <<_ACEOF
31844/* end confdefs.h. */
31845
0ad5d837 31846 #include <Xm/Xm.h>
74b84332 31847
a848cd7e
SC
31848int
31849main ()
31850{
74b84332 31851
0ad5d837
VZ
31852 int version;
31853 version = xmUseVersion;
74b84332 31854
a848cd7e
SC
31855 ;
31856 return 0;
31857}
31858_ACEOF
0ad5d837
VZ
31859rm -f conftest.$ac_objext conftest$ac_exeext
31860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31861 (eval $ac_link) 2>conftest.er1
a848cd7e 31862 ac_status=$?
ac1cb8d3
VS
31863 grep -v '^ *+' conftest.er1 >conftest.err
31864 rm -f conftest.er1
31865 cat conftest.err >&5
a848cd7e
SC
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } &&
bb9e79c0 31868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
0ad5d837 31874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
74b84332 31880
0ad5d837 31881 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31882echo "${ECHO_T}found in default search path" >&6
0ad5d837 31883 COMPILED_X_PROGRAM=1
74b84332 31884
a848cd7e
SC
31885else
31886 echo "$as_me: failed program was:" >&5
31887sed 's/^/| /' conftest.$ac_ext >&5
31888
74b84332 31889
6f9cf1e6 31890 echo "$as_me:$LINENO: result: no" >&5
74b84332 31891echo "${ECHO_T}no" >&6
6f9cf1e6 31892 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31893echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31894 { (exit 1); exit 1; }; }
31895
31896
31897fi
0ad5d837
VZ
31898rm -f conftest.err conftest.$ac_objext \
31899 conftest$ac_exeext conftest.$ac_ext
74b84332 31900
e56f4f9e 31901 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31902 LIBS="$save_LIBS"
74b84332
VS
31903 fi
31904
31905 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31906echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31907 libp_link=""
31908 libsm_ice_link=""
31909 libs_found=0
31910 for libp in "" " -lXp"; do
31911 if test "$libs_found" = "0"; then
31912 for libsm_ice in "" " -lSM -lICE"; do
31913 if test "$libs_found" = "0"; then
31914 save_LIBS="$LIBS"
31915 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31916 save_CXXFLAGS=$CXXFLAGS
31917 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31918
31919 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31920/* confdefs.h. */
31921_ACEOF
31922cat confdefs.h >>conftest.$ac_ext
31923cat >>conftest.$ac_ext <<_ACEOF
31924/* end confdefs.h. */
31925
74b84332
VS
31926 #include <Xm/Xm.h>
31927 #include <Xm/List.h>
31928
a848cd7e
SC
31929int
31930main ()
31931{
74b84332
VS
31932
31933 XmString string = NULL;
31934 Widget w = NULL;
31935 int position = 0;
31936 XmListAddItem(w, string, position);
31937
a848cd7e
SC
31938 ;
31939 return 0;
31940}
31941_ACEOF
31942rm -f conftest.$ac_objext conftest$ac_exeext
31943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31944 (eval $ac_link) 2>conftest.er1
a848cd7e 31945 ac_status=$?
ac1cb8d3
VS
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
a848cd7e
SC
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
bb9e79c0 31951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
31963
31964 libp_link="$libp"
31965 libsm_ice_link="$libsm_ice"
31966 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31967echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31968 libs_found=1
31969
31970else
31971 echo "$as_me: failed program was:" >&5
31972sed 's/^/| /' conftest.$ac_ext >&5
31973
31974
31975
31976fi
ac1cb8d3
VS
31977rm -f conftest.err conftest.$ac_objext \
31978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31979
31980 LIBS="$save_LIBS"
e56f4f9e 31981 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31982 fi
31983 done
31984 fi
31985 done
31986
31987 if test "$libs_found" = "0"; then
31988 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31989echo "${ECHO_T}can't find the right libraries" >&6
31990 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31991echo "$as_me: error: can't link a simple motif program" >&2;}
31992 { (exit 1); exit 1; }; }
31993 fi
31994
62fa8b3a
MW
31995 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31996echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31997if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000 ac_check_lib_save_LIBS=$LIBS
32001LIBS="-lSgm $LIBS"
32002cat >conftest.$ac_ext <<_ACEOF
32003/* confdefs.h. */
32004_ACEOF
32005cat confdefs.h >>conftest.$ac_ext
32006cat >>conftest.$ac_ext <<_ACEOF
32007/* end confdefs.h. */
32008
32009/* Override any gcc2 internal prototype to avoid an error. */
32010#ifdef __cplusplus
32011extern "C"
32012#endif
32013/* We use char because int might match the return type of a gcc2
32014 builtin and then its argument prototype would still apply. */
32015char SgCreateList ();
32016int
32017main ()
32018{
32019SgCreateList ();
32020 ;
32021 return 0;
32022}
32023_ACEOF
32024rm -f conftest.$ac_objext conftest$ac_exeext
32025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32026 (eval $ac_link) 2>conftest.er1
32027 ac_status=$?
32028 grep -v '^ *+' conftest.er1 >conftest.err
32029 rm -f conftest.er1
32030 cat conftest.err >&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); } &&
bb9e79c0 32033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; } &&
32039 { ac_try='test -s conftest$ac_exeext'
32040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32041 (eval $ac_try) 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; }; then
32045 ac_cv_lib_Sgm_SgCreateList=yes
32046else
32047 echo "$as_me: failed program was:" >&5
32048sed 's/^/| /' conftest.$ac_ext >&5
32049
32050ac_cv_lib_Sgm_SgCreateList=no
32051fi
32052rm -f conftest.err conftest.$ac_objext \
32053 conftest$ac_exeext conftest.$ac_ext
32054LIBS=$ac_check_lib_save_LIBS
32055fi
32056echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32057echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
32058if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32059 libsgm_link=" -lSgm"
32060fi
32061
32062
e56f4f9e
VZ
32063 save_CXXFLAGS=$CXXFLAGS
32064 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 32065
a848cd7e
SC
32066 echo "$as_me:$LINENO: checking for Motif 2" >&5
32067echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
32068if test "${wx_cv_lib_motif2+set}" = set; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070else
32071 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32072/* confdefs.h. */
32073_ACEOF
32074cat confdefs.h >>conftest.$ac_ext
32075cat >>conftest.$ac_ext <<_ACEOF
32076/* end confdefs.h. */
32077
0ad5d837 32078 #include <Xm/Xm.h>
a848cd7e
SC
32079
32080int
32081main ()
32082{
32083
0ad5d837
VZ
32084 #if XmVersion < 2000
32085 Not Motif 2
32086 #endif
a848cd7e
SC
32087
32088 ;
32089 return 0;
32090}
32091_ACEOF
32092rm -f conftest.$ac_objext
32093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32094 (eval $ac_compile) 2>conftest.er1
a848cd7e 32095 ac_status=$?
ac1cb8d3
VS
32096 grep -v '^ *+' conftest.er1 >conftest.err
32097 rm -f conftest.er1
32098 cat conftest.err >&5
a848cd7e
SC
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } &&
bb9e79c0 32101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; } &&
32107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32109 (eval $ac_try) 2>&5
32110 ac_status=$?
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); }; }; then
0ad5d837 32113 wx_cv_lib_motif2="yes"
a848cd7e
SC
32114else
32115 echo "$as_me: failed program was:" >&5
32116sed 's/^/| /' conftest.$ac_ext >&5
32117
0ad5d837
VZ
32118wx_cv_lib_motif2="no"
32119fi
32120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32121fi
32122echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32123echo "${ECHO_T}$wx_cv_lib_motif2" >&6
32124 if test "$wx_cv_lib_motif2" = "yes"; then
32125 cat >>confdefs.h <<\_ACEOF
32126#define __WXMOTIF20__ 1
32127_ACEOF
a848cd7e 32128
0ad5d837
VZ
32129 else
32130 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32131#define __WXMOTIF20__ 0
32132_ACEOF
32133
0ad5d837 32134 fi
2113bc77
MW
32135
32136 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32137echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
32138if test "${wx_cv_lib_lesstif+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140else
32141 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32142/* confdefs.h. */
32143_ACEOF
32144cat confdefs.h >>conftest.$ac_ext
32145cat >>conftest.$ac_ext <<_ACEOF
32146/* end confdefs.h. */
32147
0ad5d837 32148 #include <Xm/Xm.h>
2113bc77
MW
32149
32150int
32151main ()
32152{
32153
0ad5d837
VZ
32154 #if !defined(LesstifVersion) || LesstifVersion <= 0
32155 Not Lesstif
32156 #endif
2113bc77
MW
32157
32158 ;
32159 return 0;
32160}
32161_ACEOF
32162rm -f conftest.$ac_objext
32163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32164 (eval $ac_compile) 2>conftest.er1
32165 ac_status=$?
32166 grep -v '^ *+' conftest.er1 >conftest.err
32167 rm -f conftest.er1
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
bb9e79c0 32171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32174 ac_status=$?
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; } &&
32177 { ac_try='test -s conftest.$ac_objext'
32178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179 (eval $ac_try) 2>&5
32180 ac_status=$?
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; }; then
0ad5d837 32183 wx_cv_lib_lesstif="yes"
2113bc77
MW
32184else
32185 echo "$as_me: failed program was:" >&5
32186sed 's/^/| /' conftest.$ac_ext >&5
32187
0ad5d837
VZ
32188wx_cv_lib_lesstif="no"
32189fi
32190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32191
0ad5d837
VZ
32192fi
32193echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32194echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32195 if test "$wx_cv_lib_lesstif" = "yes"; then
32196 cat >>confdefs.h <<\_ACEOF
32197#define __WXLESSTIF__ 1
32198_ACEOF
32199
32200 else
32201 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32202#define __WXLESSTIF__ 0
32203_ACEOF
32204
0ad5d837 32205 fi
2113bc77 32206
e56f4f9e 32207 CXXFLAGS=$save_CXXFLAGS
a848cd7e 32208
62fa8b3a 32209 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32210 TOOLKIT=MOTIF
32211 GUIDIST=MOTIF_DIST
32212 fi
32213
74b84332 32214 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
32215 if test "$wxUSE_LIBXPM" = "sys"; then
32216 echo "$as_me:$LINENO: checking for Xpm library" >&5
32217echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32218
0ad5d837
VZ
32219 ac_find_libraries=
32220 for ac_dir in $SEARCH_LIB;
a848cd7e 32221 do
3eca31dc 32222 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32223 if test -f "$ac_dir/libXpm.$ac_extension"; then
32224 ac_find_libraries=$ac_dir
32225 break 2
32226 fi
32227 done
32228 done
32229
32230 if test "$ac_find_libraries" != "" ; then
32231
0ad5d837 32232 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32233 ac_path_to_link=""
32234 else
0ad5d837
VZ
32235 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32236 result=$?
32237 if test $result = 0; then
32238 ac_path_to_link=""
32239 else
32240 ac_path_to_link=" -L$ac_find_libraries"
32241 fi
a848cd7e
SC
32242 fi
32243
32244 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
32245 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32246echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
32247
32248 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32249echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32250if test "${wx_cv_x11_xpm_h+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32252else
32253
e56f4f9e
VZ
32254 save_CXXFLAGS=$CXXFLAGS
32255 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32256
32257 cat >conftest.$ac_ext <<_ACEOF
32258/* confdefs.h. */
32259_ACEOF
32260cat confdefs.h >>conftest.$ac_ext
32261cat >>conftest.$ac_ext <<_ACEOF
32262/* end confdefs.h. */
32263
32264 #include <X11/xpm.h>
32265
32266int
32267main ()
32268{
32269
32270 int version;
32271 version = XpmLibraryVersion();
32272
32273 ;
32274 return 0;
32275}
32276_ACEOF
32277rm -f conftest.$ac_objext
32278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32279 (eval $ac_compile) 2>conftest.er1
a848cd7e 32280 ac_status=$?
ac1cb8d3
VS
32281 grep -v '^ *+' conftest.er1 >conftest.err
32282 rm -f conftest.er1
32283 cat conftest.err >&5
a848cd7e
SC
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } &&
bb9e79c0 32286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 wx_cv_x11_xpm_h=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303wx_cv_x11_xpm_h=no
32304
32305fi
ac1cb8d3 32306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32307
e56f4f9e 32308 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
32309
32310
32311fi
32312echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32313echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32314
32315 if test $wx_cv_x11_xpm_h = "yes"; then
32316 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32317 cat >>confdefs.h <<\_ACEOF
32318#define wxHAVE_LIB_XPM 1
32319_ACEOF
32320
32321 else
32322 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32323echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32324 fi
32325 fi
32326
32327 fi
32328
32329 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32330echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32331if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32332 echo $ECHO_N "(cached) $ECHO_C" >&6
32333else
32334 ac_check_lib_save_LIBS=$LIBS
32335LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32336cat >conftest.$ac_ext <<_ACEOF
32337/* confdefs.h. */
32338_ACEOF
32339cat confdefs.h >>conftest.$ac_ext
32340cat >>conftest.$ac_ext <<_ACEOF
32341/* end confdefs.h. */
32342
32343/* Override any gcc2 internal prototype to avoid an error. */
32344#ifdef __cplusplus
32345extern "C"
32346#endif
32347/* We use char because int might match the return type of a gcc2
32348 builtin and then its argument prototype would still apply. */
32349char XShapeQueryExtension ();
32350int
32351main ()
32352{
32353XShapeQueryExtension ();
32354 ;
32355 return 0;
32356}
32357_ACEOF
32358rm -f conftest.$ac_objext conftest$ac_exeext
32359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32360 (eval $ac_link) 2>conftest.er1
a848cd7e 32361 ac_status=$?
ac1cb8d3
VS
32362 grep -v '^ *+' conftest.er1 >conftest.err
32363 rm -f conftest.er1
32364 cat conftest.err >&5
a848cd7e
SC
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
bb9e79c0 32367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; } &&
32373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32375 (eval $ac_try) 2>&5
32376 ac_status=$?
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); }; }; then
32379 ac_cv_lib_Xext_XShapeQueryExtension=yes
32380else
32381 echo "$as_me: failed program was:" >&5
32382sed 's/^/| /' conftest.$ac_ext >&5
32383
32384ac_cv_lib_Xext_XShapeQueryExtension=no
32385fi
ac1cb8d3
VS
32386rm -f conftest.err conftest.$ac_objext \
32387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32388LIBS=$ac_check_lib_save_LIBS
32389fi
32390echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32391echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32392if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32393
32394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32395 wxHAVE_XEXT_LIB=1
32396
32397fi
32398
32399
32400 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32401 save_CXXFLAGS="$CXXFLAGS"
32402 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32403
32404 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32405echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32406 cat >conftest.$ac_ext <<_ACEOF
32407/* confdefs.h. */
32408_ACEOF
32409cat confdefs.h >>conftest.$ac_ext
32410cat >>conftest.$ac_ext <<_ACEOF
32411/* end confdefs.h. */
32412
32413 #include <X11/Xlib.h>
32414 #include <X11/extensions/shape.h>
32415
32416int
32417main ()
32418{
32419
32420 int dummy1, dummy2;
32421 XShapeQueryExtension((Display*)NULL,
32422 (int*)NULL, (int*)NULL);
32423
32424 ;
32425 return 0;
32426}
32427_ACEOF
32428rm -f conftest.$ac_objext
32429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32430 (eval $ac_compile) 2>conftest.er1
a848cd7e 32431 ac_status=$?
ac1cb8d3
VS
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
a848cd7e
SC
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } &&
bb9e79c0 32437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32440 ac_status=$?
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; } &&
32443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445 (eval $ac_try) 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449
32450 cat >>confdefs.h <<\_ACEOF
32451#define HAVE_XSHAPE 1
32452_ACEOF
32453
32454 echo "$as_me:$LINENO: result: found" >&5
32455echo "${ECHO_T}found" >&6
32456
32457else
32458 echo "$as_me: failed program was:" >&5
32459sed 's/^/| /' conftest.$ac_ext >&5
32460
32461
32462 echo "$as_me:$LINENO: result: not found" >&5
32463echo "${ECHO_T}not found" >&6
32464
32465fi
ac1cb8d3 32466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32467 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32468
32469 fi
32470 fi
32471
32472 if test "$wxUSE_MAC" = 1; then
32473 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32474echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32475 if test "$GCC" = yes; then
32476 echo "$as_me:$LINENO: result: gcc" >&5
32477echo "${ECHO_T}gcc" >&6
32478 CPPFLAGS_PASCAL="-fpascal-strings"
32479 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32480 echo "$as_me:$LINENO: result: xlc" >&5
32481echo "${ECHO_T}xlc" >&6
32482 CPPFLAGS_PASCAL="-qmacpstr"
32483 else
32484 echo "$as_me:$LINENO: result: none" >&5
32485echo "${ECHO_T}none" >&6
32486 fi
32487
1e9e8aba 32488 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32489 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32490 else
c92ad099 32491 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32492 fi
a848cd7e 32493
a848cd7e
SC
32494 TOOLKIT=MAC
32495 GUIDIST=MACX_DIST
dd21ced8 32496 WXBASEPORT="_carbon"
a848cd7e
SC
32497 fi
32498
32499 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32500 TOOLKIT=COCOA
32501 GUIDIST=COCOA_DIST
32502 fi
32503
32504 if test "$wxUSE_PM" = 1; then
32505 TOOLKIT=PM
de59c161
RD
32506 GUIDIST=PM_DIST
32507 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32508echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32509if test "${wx_cv_spbcdata+set}" = set; then
32510 echo $ECHO_N "(cached) $ECHO_C" >&6
32511else
32512
32513 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32514/* confdefs.h. */
32515_ACEOF
32516cat confdefs.h >>conftest.$ac_ext
32517cat >>conftest.$ac_ext <<_ACEOF
32518/* end confdefs.h. */
32519
32520 #define INCL_PM
32521 #include <os2.h>
32522
32523int
32524main ()
32525{
32526
32527 SPBCDATA test;
32528
32529 ;
32530 return 0;
32531}
32532_ACEOF
32533rm -f conftest.$ac_objext
32534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32535 (eval $ac_compile) 2>conftest.er1
de59c161 32536 ac_status=$?
ac1cb8d3
VS
32537 grep -v '^ *+' conftest.er1 >conftest.err
32538 rm -f conftest.er1
32539 cat conftest.err >&5
de59c161
RD
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); } &&
bb9e79c0 32542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32548 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32550 (eval $ac_try) 2>&5
32551 ac_status=$?
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; }; then
32554 wx_cv_spbcdata=yes
32555else
32556 echo "$as_me: failed program was:" >&5
32557sed 's/^/| /' conftest.$ac_ext >&5
32558
32559wx_cv_spbcdata=no
32560
32561fi
ac1cb8d3 32562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32563
32564
32565fi
32566echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32567echo "${ECHO_T}$wx_cv_spbcdata" >&6
32568
32569 if test $wx_cv_spbcdata = "yes"; then
32570 cat >>confdefs.h <<\_ACEOF
32571#define HAVE_SPBCDATA 1
32572_ACEOF
32573
32574 fi
a848cd7e
SC
32575 fi
32576
32577 if test "$TOOLKIT" = "PM" ; then
32578 TOOLKIT_DIR="os2"
32579 else
32580 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32581 fi
32582
a848cd7e 32583 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32584 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32585 WIDGET_SET=univ
a848cd7e
SC
32586 fi
32587
32588 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32589 DISTDIR="wx\$(TOOLKIT)"
32590else
32591 USE_GUI=0
32592
32593 TOOLKIT_DIR="base"
32594
32595 if test "$USE_WIN32" = 1 ; then
a848cd7e 32596 TOOLKIT="MSW"
a848cd7e
SC
32597 fi
32598
a848cd7e
SC
32599 GUIDIST="BASE_DIST"
32600 DISTDIR="wxBase"
32601fi
32602
32603
d12aef51
VZ
32604if test "$wxUSE_GUI" = "yes"; then
32605 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32606
32607for ac_header in X11/Xlib.h
32608do
32609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32610if eval "test \"\${$as_ac_Header+set}\" = set"; then
32611 echo "$as_me:$LINENO: checking for $ac_header" >&5
32612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32613if eval "test \"\${$as_ac_Header+set}\" = set"; then
32614 echo $ECHO_N "(cached) $ECHO_C" >&6
32615fi
32616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32618else
32619 # Is the header compilable?
32620echo "$as_me:$LINENO: checking $ac_header usability" >&5
32621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32622cat >conftest.$ac_ext <<_ACEOF
32623/* confdefs.h. */
32624_ACEOF
32625cat confdefs.h >>conftest.$ac_ext
32626cat >>conftest.$ac_ext <<_ACEOF
32627/* end confdefs.h. */
32628$ac_includes_default
32629#include <$ac_header>
32630_ACEOF
32631rm -f conftest.$ac_objext
32632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32633 (eval $ac_compile) 2>conftest.er1
32634 ac_status=$?
32635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
bb9e79c0 32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 ac_header_compiler=yes
32653else
32654 echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657ac_header_compiler=no
32658fi
32659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32661echo "${ECHO_T}$ac_header_compiler" >&6
32662
32663# Is the header present?
32664echo "$as_me:$LINENO: checking $ac_header presence" >&5
32665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32666cat >conftest.$ac_ext <<_ACEOF
32667/* confdefs.h. */
32668_ACEOF
32669cat confdefs.h >>conftest.$ac_ext
32670cat >>conftest.$ac_ext <<_ACEOF
32671/* end confdefs.h. */
32672#include <$ac_header>
32673_ACEOF
32674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32676 ac_status=$?
32677 grep -v '^ *+' conftest.er1 >conftest.err
32678 rm -f conftest.er1
32679 cat conftest.err >&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } >/dev/null; then
32682 if test -s conftest.err; then
5d7b7554
VZ
32683 ac_cpp_err=$ac_cxx_preproc_warn_flag
32684 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32685 else
32686 ac_cpp_err=
32687 fi
32688else
32689 ac_cpp_err=yes
32690fi
32691if test -z "$ac_cpp_err"; then
32692 ac_header_preproc=yes
32693else
32694 echo "$as_me: failed program was:" >&5
32695sed 's/^/| /' conftest.$ac_ext >&5
32696
32697 ac_header_preproc=no
32698fi
32699rm -f conftest.err conftest.$ac_ext
32700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32701echo "${ECHO_T}$ac_header_preproc" >&6
32702
32703# So? What about this header?
5d7b7554 32704case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32705 yes:no: )
32706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32710 ac_header_preproc=yes
32711 ;;
32712 no:yes:* )
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32725 (
32726 cat <<\_ASBOX
32727## ----------------------------------------- ##
32728## Report this to wx-dev@lists.wxwidgets.org ##
32729## ----------------------------------------- ##
32730_ASBOX
32731 ) |
32732 sed "s/^/$as_me: WARNING: /" >&2
32733 ;;
32734esac
32735echo "$as_me:$LINENO: checking for $ac_header" >&5
32736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32737if eval "test \"\${$as_ac_Header+set}\" = set"; then
32738 echo $ECHO_N "(cached) $ECHO_C" >&6
32739else
32740 eval "$as_ac_Header=\$ac_header_preproc"
32741fi
32742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32744
32745fi
32746if test `eval echo '${'$as_ac_Header'}'` = yes; then
32747 cat >>confdefs.h <<_ACEOF
32748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32749_ACEOF
32750
32751fi
32752
32753done
32754
32755
32756for ac_header in X11/XKBlib.h
32757do
32758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32759echo "$as_me:$LINENO: checking for $ac_header" >&5
32760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32761if eval "test \"\${$as_ac_Header+set}\" = set"; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32763else
32764 cat >conftest.$ac_ext <<_ACEOF
32765/* confdefs.h. */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h. */
32770
32771 #if HAVE_X11_XLIB_H
32772 #include <X11/Xlib.h>
32773 #endif
32774
32775
32776#include <$ac_header>
32777_ACEOF
32778rm -f conftest.$ac_objext
32779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32780 (eval $ac_compile) 2>conftest.er1
32781 ac_status=$?
32782 grep -v '^ *+' conftest.er1 >conftest.err
32783 rm -f conftest.er1
32784 cat conftest.err >&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } &&
bb9e79c0 32787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32789 (eval $ac_try) 2>&5
32790 ac_status=$?
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); }; } &&
32793 { ac_try='test -s conftest.$ac_objext'
32794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32795 (eval $ac_try) 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; }; then
32799 eval "$as_ac_Header=yes"
32800else
32801 echo "$as_me: failed program was:" >&5
32802sed 's/^/| /' conftest.$ac_ext >&5
32803
32804eval "$as_ac_Header=no"
32805fi
32806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32807fi
32808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32810if test `eval echo '${'$as_ac_Header'}'` = yes; then
32811 cat >>confdefs.h <<_ACEOF
32812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32813_ACEOF
32814
32815fi
32816
32817done
32818
32819 fi
32820fi
32821
a848cd7e
SC
32822
32823
32824IODBC_C_SRC=""
32825
32826
32827if test "$TOOLKIT" != "MSW" ; then
32828
32829 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32830
32831 if test "${ac_cv_header_sql_h+set}" = set; then
32832 echo "$as_me:$LINENO: checking for sql.h" >&5
32833echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32834if test "${ac_cv_header_sql_h+set}" = set; then
32835 echo $ECHO_N "(cached) $ECHO_C" >&6
32836fi
32837echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32838echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32839else
32840 # Is the header compilable?
32841echo "$as_me:$LINENO: checking sql.h usability" >&5
32842echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32843cat >conftest.$ac_ext <<_ACEOF
32844/* confdefs.h. */
32845_ACEOF
32846cat confdefs.h >>conftest.$ac_ext
32847cat >>conftest.$ac_ext <<_ACEOF
32848/* end confdefs.h. */
32849$ac_includes_default
32850#include <sql.h>
32851_ACEOF
32852rm -f conftest.$ac_objext
32853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32854 (eval $ac_compile) 2>conftest.er1
a848cd7e 32855 ac_status=$?
ac1cb8d3
VS
32856 grep -v '^ *+' conftest.er1 >conftest.err
32857 rm -f conftest.er1
32858 cat conftest.err >&5
a848cd7e
SC
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } &&
bb9e79c0 32861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32863 (eval $ac_try) 2>&5
32864 ac_status=$?
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); }; } &&
32867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869 (eval $ac_try) 2>&5
32870 ac_status=$?
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); }; }; then
32873 ac_header_compiler=yes
32874else
32875 echo "$as_me: failed program was:" >&5
32876sed 's/^/| /' conftest.$ac_ext >&5
32877
32878ac_header_compiler=no
32879fi
ac1cb8d3 32880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32882echo "${ECHO_T}$ac_header_compiler" >&6
32883
32884# Is the header present?
32885echo "$as_me:$LINENO: checking sql.h presence" >&5
32886echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32887cat >conftest.$ac_ext <<_ACEOF
32888/* confdefs.h. */
32889_ACEOF
32890cat confdefs.h >>conftest.$ac_ext
32891cat >>conftest.$ac_ext <<_ACEOF
32892/* end confdefs.h. */
32893#include <sql.h>
32894_ACEOF
32895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32897 ac_status=$?
32898 grep -v '^ *+' conftest.er1 >conftest.err
32899 rm -f conftest.er1
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } >/dev/null; then
32903 if test -s conftest.err; then
5d7b7554
VZ
32904 ac_cpp_err=$ac_cxx_preproc_warn_flag
32905 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32906 else
32907 ac_cpp_err=
32908 fi
32909else
32910 ac_cpp_err=yes
32911fi
32912if test -z "$ac_cpp_err"; then
32913 ac_header_preproc=yes
32914else
32915 echo "$as_me: failed program was:" >&5
32916sed 's/^/| /' conftest.$ac_ext >&5
32917
32918 ac_header_preproc=no
32919fi
32920rm -f conftest.err conftest.$ac_ext
32921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32922echo "${ECHO_T}$ac_header_preproc" >&6
32923
32924# So? What about this header?
5d7b7554 32925case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32926 yes:no: )
a848cd7e
SC
32927 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32928echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32929 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32930echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32931 ac_header_preproc=yes
a848cd7e 32932 ;;
ac1cb8d3 32933 no:yes:* )
a848cd7e
SC
32934 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32935echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32936 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32937echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32938 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32939echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32940 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32941echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32942 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32943echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32944 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32945echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32946 (
32947 cat <<\_ASBOX
ac1cb8d3
VS
32948## ----------------------------------------- ##
32949## Report this to wx-dev@lists.wxwidgets.org ##
32950## ----------------------------------------- ##
a848cd7e
SC
32951_ASBOX
32952 ) |
32953 sed "s/^/$as_me: WARNING: /" >&2
32954 ;;
32955esac
32956echo "$as_me:$LINENO: checking for sql.h" >&5
32957echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32958if test "${ac_cv_header_sql_h+set}" = set; then
32959 echo $ECHO_N "(cached) $ECHO_C" >&6
32960else
32961 ac_cv_header_sql_h=$ac_header_preproc
32962fi
32963echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32964echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32965
32966fi
32967if test $ac_cv_header_sql_h = yes; then
32968 found_sql_h=1
32969fi
32970
32971
32972 if test "x$found_sql_h" = "x1" ; then
32973 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32974echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32975if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32976 echo $ECHO_N "(cached) $ECHO_C" >&6
32977else
32978 ac_check_lib_save_LIBS=$LIBS
32979LIBS="-liodbc $LIBS"
32980cat >conftest.$ac_ext <<_ACEOF
32981/* confdefs.h. */
32982_ACEOF
32983cat confdefs.h >>conftest.$ac_ext
32984cat >>conftest.$ac_ext <<_ACEOF
32985/* end confdefs.h. */
32986
32987/* Override any gcc2 internal prototype to avoid an error. */
32988#ifdef __cplusplus
32989extern "C"
32990#endif
32991/* We use char because int might match the return type of a gcc2
32992 builtin and then its argument prototype would still apply. */
32993char SQLAllocEnv ();
32994int
32995main ()
32996{
32997SQLAllocEnv ();
32998 ;
32999 return 0;
33000}
33001_ACEOF
33002rm -f conftest.$ac_objext conftest$ac_exeext
33003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33004 (eval $ac_link) 2>conftest.er1
a848cd7e 33005 ac_status=$?
ac1cb8d3
VS
33006 grep -v '^ *+' conftest.er1 >conftest.err
33007 rm -f conftest.er1
33008 cat conftest.err >&5
a848cd7e
SC
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } &&
bb9e79c0 33011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023 ac_cv_lib_iodbc_SQLAllocEnv=yes
33024else
33025 echo "$as_me: failed program was:" >&5
33026sed 's/^/| /' conftest.$ac_ext >&5
33027
33028ac_cv_lib_iodbc_SQLAllocEnv=no
33029fi
ac1cb8d3
VS
33030rm -f conftest.err conftest.$ac_objext \
33031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33032LIBS=$ac_check_lib_save_LIBS
33033fi
33034echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
33035echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
33036if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
33037 ODBC_LINK=" -liodbc"
33038else
33039
33040 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
33041echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
33042if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33044else
33045 ac_check_lib_save_LIBS=$LIBS
33046LIBS="-lunixodbc $LIBS"
33047cat >conftest.$ac_ext <<_ACEOF
33048/* confdefs.h. */
33049_ACEOF
33050cat confdefs.h >>conftest.$ac_ext
33051cat >>conftest.$ac_ext <<_ACEOF
33052/* end confdefs.h. */
33053
33054/* Override any gcc2 internal prototype to avoid an error. */
33055#ifdef __cplusplus
33056extern "C"
33057#endif
33058/* We use char because int might match the return type of a gcc2
33059 builtin and then its argument prototype would still apply. */
33060char SQLAllocEnv ();
33061int
33062main ()
33063{
33064SQLAllocEnv ();
33065 ;
33066 return 0;
33067}
33068_ACEOF
33069rm -f conftest.$ac_objext conftest$ac_exeext
33070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33071 (eval $ac_link) 2>conftest.er1
a848cd7e 33072 ac_status=$?
ac1cb8d3
VS
33073 grep -v '^ *+' conftest.er1 >conftest.err
33074 rm -f conftest.er1
33075 cat conftest.err >&5
a848cd7e
SC
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); } &&
bb9e79c0 33078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080 (eval $ac_try) 2>&5
33081 ac_status=$?
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); }; } &&
33084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086 (eval $ac_try) 2>&5
33087 ac_status=$?
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_lib_unixodbc_SQLAllocEnv=yes
33091else
33092 echo "$as_me: failed program was:" >&5
33093sed 's/^/| /' conftest.$ac_ext >&5
33094
33095ac_cv_lib_unixodbc_SQLAllocEnv=no
33096fi
ac1cb8d3
VS
33097rm -f conftest.err conftest.$ac_objext \
33098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33099LIBS=$ac_check_lib_save_LIBS
33100fi
33101echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33102echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
33103if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33104 ODBC_LINK=" -lunixodbc"
33105else
33106
33107 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33108echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
33109if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33111else
33112 ac_check_lib_save_LIBS=$LIBS
33113LIBS="-lodbc $LIBS"
33114cat >conftest.$ac_ext <<_ACEOF
33115/* confdefs.h. */
33116_ACEOF
33117cat confdefs.h >>conftest.$ac_ext
33118cat >>conftest.$ac_ext <<_ACEOF
33119/* end confdefs.h. */
33120
33121/* Override any gcc2 internal prototype to avoid an error. */
33122#ifdef __cplusplus
33123extern "C"
33124#endif
33125/* We use char because int might match the return type of a gcc2
33126 builtin and then its argument prototype would still apply. */
33127char SQLAllocEnv ();
33128int
33129main ()
33130{
33131SQLAllocEnv ();
33132 ;
33133 return 0;
33134}
33135_ACEOF
33136rm -f conftest.$ac_objext conftest$ac_exeext
33137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33138 (eval $ac_link) 2>conftest.er1
a848cd7e 33139 ac_status=$?
ac1cb8d3
VS
33140 grep -v '^ *+' conftest.er1 >conftest.err
33141 rm -f conftest.er1
33142 cat conftest.err >&5
a848cd7e
SC
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
bb9e79c0 33145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147 (eval $ac_try) 2>&5
33148 ac_status=$?
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; }; then
33157 ac_cv_lib_odbc_SQLAllocEnv=yes
33158else
33159 echo "$as_me: failed program was:" >&5
33160sed 's/^/| /' conftest.$ac_ext >&5
33161
33162ac_cv_lib_odbc_SQLAllocEnv=no
33163fi
ac1cb8d3
VS
33164rm -f conftest.err conftest.$ac_objext \
33165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33166LIBS=$ac_check_lib_save_LIBS
33167fi
33168echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33169echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
33170if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33171 ODBC_LINK=" -lodbc"
33172fi
33173
33174
33175fi
33176
33177
33178fi
33179
33180 fi
33181 if test "x$ODBC_LINK" = "x" ; then
33182 if test "$wxUSE_ODBC" = "sys" ; then
33183 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33184echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33185 { (exit 1); exit 1; }; }
33186 else
33187 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33188echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33189 wxUSE_ODBC=builtin
33190 fi
33191 else
33192 wxUSE_ODBC=sys
33193 fi
33194 fi
a848cd7e 33195
2da0c077
RD
33196 if test "$wxUSE_ODBC" = "builtin" ; then
33197 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33198#define wxUSE_BUILTIN_IODBC 1
33199_ACEOF
33200
a848cd7e
SC
33201 fi
33202fi
33203
2da0c077
RD
33204if test "$wxUSE_ODBC" != "no" ; then
33205 cat >>confdefs.h <<\_ACEOF
33206#define wxUSE_ODBC 1
33207_ACEOF
33208
33209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33210
5ff751d6 33211 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33212fi
a848cd7e 33213
01cb68df 33214
a848cd7e 33215if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33216 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
33217 echo "$as_me:$LINENO: checking for Xinerama" >&5
33218echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
33219
0ad5d837
VZ
33220 ac_find_libraries=
33221 for ac_dir in $SEARCH_LIB;
33222 do
33223 for ac_extension in a so sl dylib dll.a; do
33224 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33225 ac_find_libraries=$ac_dir
33226 break 2
33227 fi
33228 done
33229 done
33230
a848cd7e
SC
33231 if test "$ac_find_libraries" != "" ; then
33232
0ad5d837 33233 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33234 ac_path_to_link=""
33235 else
0ad5d837
VZ
33236 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33237 result=$?
33238 if test $result = 0; then
33239 ac_path_to_link=""
33240 else
33241 ac_path_to_link=" -L$ac_find_libraries"
33242 fi
a848cd7e
SC
33243 fi
33244
33245 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33246 LDFLAGS="$LDFLAGS $ac_path_to_link"
33247 fi
33248 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33249 echo "$as_me:$LINENO: result: yes" >&5
33250echo "${ECHO_T}yes" >&6
33251
33252 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33253echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
33254
0ad5d837
VZ
33255 ac_find_libraries=
33256 for ac_dir in $SEARCH_LIB;
a848cd7e 33257 do
3eca31dc 33258 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33259 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33260 ac_find_libraries=$ac_dir
33261 break 2
33262 fi
33263 done
33264 done
33265
33266 if test "$ac_find_libraries" != "" ; then
33267 echo "$as_me:$LINENO: result: yes" >&5
33268echo "${ECHO_T}yes" >&6
33269
33270for ac_header in X11/extensions/xf86vmode.h
33271do
33272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33273echo "$as_me:$LINENO: checking for $ac_header" >&5
33274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33275if eval "test \"\${$as_ac_Header+set}\" = set"; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278 cat >conftest.$ac_ext <<_ACEOF
33279/* confdefs.h. */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h. */
33284
33285 #if HAVE_X11_XLIB_H
33286 #include <X11/Xlib.h>
33287 #endif
33288
33289
33290#include <$ac_header>
33291_ACEOF
33292rm -f conftest.$ac_objext
33293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33294 (eval $ac_compile) 2>conftest.er1
a848cd7e 33295 ac_status=$?
ac1cb8d3
VS
33296 grep -v '^ *+' conftest.er1 >conftest.err
33297 rm -f conftest.er1
33298 cat conftest.err >&5
a848cd7e
SC
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } &&
bb9e79c0 33301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33303 (eval $ac_try) 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33309 (eval $ac_try) 2>&5
33310 ac_status=$?
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; }; then
33313 eval "$as_ac_Header=yes"
33314else
33315 echo "$as_me: failed program was:" >&5
33316sed 's/^/| /' conftest.$ac_ext >&5
33317
33318eval "$as_ac_Header=no"
33319fi
ac1cb8d3 33320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33321fi
33322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33324if test `eval echo '${'$as_ac_Header'}'` = yes; then
33325 cat >>confdefs.h <<_ACEOF
33326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33327_ACEOF
33328
33329 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33330
33331fi
33332
33333done
33334
33335 else
33336 echo "$as_me:$LINENO: result: no" >&5
33337echo "${ECHO_T}no" >&6
33338 fi
33339
33340 else
33341 echo "$as_me:$LINENO: result: no" >&5
33342echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33343 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33344echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33345 wxUSE_DISPLAY="no"
33346 fi
01cb68df
RG
33347 elif test "$wxUSE_MSW" = 1; then
33348
e5efa97e 33349for ac_header in ddraw.h
01cb68df
RG
33350do
33351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33352echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33354if eval "test \"\${$as_ac_Header+set}\" = set"; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33356else
5294a27e 33357 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33358/* confdefs.h. */
33359_ACEOF
33360cat confdefs.h >>conftest.$ac_ext
33361cat >>conftest.$ac_ext <<_ACEOF
33362/* end confdefs.h. */
5294a27e
VZ
33363#include <windows.h>
33364
01cb68df
RG
33365#include <$ac_header>
33366_ACEOF
33367rm -f conftest.$ac_objext
33368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33369 (eval $ac_compile) 2>conftest.er1
01cb68df 33370 ac_status=$?
ac1cb8d3
VS
33371 grep -v '^ *+' conftest.er1 >conftest.err
33372 rm -f conftest.er1
33373 cat conftest.err >&5
01cb68df
RG
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); } &&
bb9e79c0 33376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33378 (eval $ac_try) 2>&5
33379 ac_status=$?
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; } &&
33382 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33384 (eval $ac_try) 2>&5
33385 ac_status=$?
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; }; then
5294a27e 33388 eval "$as_ac_Header=yes"
01cb68df
RG
33389else
33390 echo "$as_me: failed program was:" >&5
33391sed 's/^/| /' conftest.$ac_ext >&5
33392
5294a27e 33393eval "$as_ac_Header=no"
01cb68df 33394fi
ac1cb8d3 33395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33396fi
33397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33399if test `eval echo '${'$as_ac_Header'}'` = yes; then
33400 cat >>confdefs.h <<_ACEOF
33401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33402_ACEOF
33403
01cb68df
RG
33404fi
33405
33406done
33407
a848cd7e
SC
33408 fi
33409fi
33410
88bbc332
RR
33411if test "$wxUSE_DETECT_SM" = "yes"; then
33412 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33413 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33414echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33415
33416 ac_find_libraries=
33417 for ac_dir in $SEARCH_LIB;
33418 do
33419 for ac_extension in a so sl dylib dll.a; do
33420 if test -f "$ac_dir/libSM.$ac_extension"; then
33421 ac_find_libraries=$ac_dir
33422 break 2
33423 fi
33424 done
33425 done
33426
33427 if test "$ac_find_libraries" != "" ; then
33428
33429 if test "$ac_find_libraries" = "default location"; then
33430 ac_path_to_link=""
33431 else
33432 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33433 result=$?
33434 if test $result = 0; then
33435 ac_path_to_link=""
33436 else
33437 ac_path_to_link=" -L$ac_find_libraries"
33438 fi
33439 fi
33440
33441 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33442 LDFLAGS="$LDFLAGS $ac_path_to_link"
33443 fi
33444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33445 echo "$as_me:$LINENO: result: yes" >&5
33446echo "${ECHO_T}yes" >&6
33447 else
33448 echo "$as_me:$LINENO: result: no" >&5
33449echo "${ECHO_T}no" >&6
33450 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33451echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33452 wxUSE_DETECT_SM="no"
33453 fi
33454 else
33455 wxUSE_DETECT_SM="no"
33456 fi
33457fi
33458
33459
a848cd7e
SC
33460
33461USE_OPENGL=0
33462if test "$wxUSE_OPENGL" = "yes"; then
33463 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33464 OPENGL_LIBS="-framework OpenGL -framework AGL"
33465 elif test "$wxUSE_MSW" = 1; then
33466 OPENGL_LIBS="-lopengl32 -lglu32"
33467 else
33468
33469
33470ac_find_includes=
33471for ac_dir in $SEARCH_INCLUDE /usr/include;
33472 do
33473 if test -f "$ac_dir/GL/gl.h"; then
33474 ac_find_includes=$ac_dir
33475 break
33476 fi
33477 done
33478
33479 if test "$ac_find_includes" != "" ; then
33480 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33481echo "${ECHO_T}found in $ac_find_includes" >&6
33482
33483 if test "x$ac_find_includes" = "x/usr/include"; then
33484 ac_path_to_include=""
33485 else
33486 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33487 result=$?
33488 if test $result = 0; then
33489 ac_path_to_include=""
33490 else
33491 ac_path_to_include=" -I$ac_find_includes"
33492 fi
33493 fi
33494
c92ad099 33495 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33496 fi
33497
33498 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33499 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33500echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33501if test "${ac_cv_header_GL_gl_h+set}" = set; then
33502 echo $ECHO_N "(cached) $ECHO_C" >&6
33503fi
33504echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33505echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33506else
33507 # Is the header compilable?
33508echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33509echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33510cat >conftest.$ac_ext <<_ACEOF
33511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
33516$ac_includes_default
33517#include <GL/gl.h>
33518_ACEOF
33519rm -f conftest.$ac_objext
33520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33521 (eval $ac_compile) 2>conftest.er1
a848cd7e 33522 ac_status=$?
ac1cb8d3
VS
33523 grep -v '^ *+' conftest.er1 >conftest.err
33524 rm -f conftest.er1
33525 cat conftest.err >&5
a848cd7e
SC
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); } &&
bb9e79c0 33528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33530 (eval $ac_try) 2>&5
33531 ac_status=$?
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); }; } &&
33534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; }; then
33540 ac_header_compiler=yes
33541else
33542 echo "$as_me: failed program was:" >&5
33543sed 's/^/| /' conftest.$ac_ext >&5
33544
33545ac_header_compiler=no
33546fi
ac1cb8d3 33547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33549echo "${ECHO_T}$ac_header_compiler" >&6
33550
33551# Is the header present?
33552echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33553echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33554cat >conftest.$ac_ext <<_ACEOF
33555/* confdefs.h. */
33556_ACEOF
33557cat confdefs.h >>conftest.$ac_ext
33558cat >>conftest.$ac_ext <<_ACEOF
33559/* end confdefs.h. */
33560#include <GL/gl.h>
33561_ACEOF
33562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33564 ac_status=$?
33565 grep -v '^ *+' conftest.er1 >conftest.err
33566 rm -f conftest.er1
33567 cat conftest.err >&5
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); } >/dev/null; then
33570 if test -s conftest.err; then
5d7b7554
VZ
33571 ac_cpp_err=$ac_cxx_preproc_warn_flag
33572 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33573 else
33574 ac_cpp_err=
33575 fi
33576else
33577 ac_cpp_err=yes
33578fi
33579if test -z "$ac_cpp_err"; then
33580 ac_header_preproc=yes
33581else
33582 echo "$as_me: failed program was:" >&5
33583sed 's/^/| /' conftest.$ac_ext >&5
33584
33585 ac_header_preproc=no
33586fi
33587rm -f conftest.err conftest.$ac_ext
33588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33589echo "${ECHO_T}$ac_header_preproc" >&6
33590
33591# So? What about this header?
5d7b7554 33592case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33593 yes:no: )
a848cd7e
SC
33594 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33595echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33596 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33597echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33598 ac_header_preproc=yes
a848cd7e 33599 ;;
ac1cb8d3 33600 no:yes:* )
a848cd7e
SC
33601 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33602echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33603 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33604echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33605 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33606echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33607 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33608echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33609 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33610echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33611 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33612echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33613 (
33614 cat <<\_ASBOX
ac1cb8d3
VS
33615## ----------------------------------------- ##
33616## Report this to wx-dev@lists.wxwidgets.org ##
33617## ----------------------------------------- ##
a848cd7e
SC
33618_ASBOX
33619 ) |
33620 sed "s/^/$as_me: WARNING: /" >&2
33621 ;;
33622esac
33623echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33624echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33625if test "${ac_cv_header_GL_gl_h+set}" = set; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33627else
33628 ac_cv_header_GL_gl_h=$ac_header_preproc
33629fi
33630echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33631echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33632
33633fi
33634if test $ac_cv_header_GL_gl_h = yes; then
33635
33636 found_gl=0
33637
33638 echo "$as_me:$LINENO: checking for -lGL" >&5
33639echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33640
0ad5d837
VZ
33641 ac_find_libraries=
33642 for ac_dir in $SEARCH_LIB;
a848cd7e 33643 do
3eca31dc 33644 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33645 if test -f "$ac_dir/libGL.$ac_extension"; then
33646 ac_find_libraries=$ac_dir
33647 break 2
33648 fi
33649 done
33650 done
33651
33652 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33653 echo "$as_me:$LINENO: result: yes" >&5
33654echo "${ECHO_T}yes" >&6
33655
a848cd7e 33656
0ad5d837 33657 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33658 ac_path_to_link=""
33659 else
0ad5d837
VZ
33660 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33661 result=$?
33662 if test $result = 0; then
33663 ac_path_to_link=""
33664 else
33665 ac_path_to_link=" -L$ac_find_libraries"
33666 fi
a848cd7e
SC
33667 fi
33668
33669 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33670 LDFLAGS_GL="$ac_path_to_link"
33671 fi
33672
69120ee4
VZ
33673 echo "$as_me:$LINENO: checking for -lGLU" >&5
33674echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33675
0ad5d837
VZ
33676 ac_find_libraries=
33677 for ac_dir in $SEARCH_LIB;
33678 do
33679 for ac_extension in a so sl dylib dll.a; do
33680 if test -f "$ac_dir/libGLU.$ac_extension"; then
33681 ac_find_libraries=$ac_dir
33682 break 2
33683 fi
33684 done
33685 done
33686
a848cd7e
SC
33687 if test "$ac_find_libraries" != "" ; then
33688
0ad5d837 33689 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33690 ac_path_to_link=""
33691 else
0ad5d837
VZ
33692 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33693 result=$?
33694 if test $result = 0; then
33695 ac_path_to_link=""
33696 else
33697 ac_path_to_link=" -L$ac_find_libraries"
33698 fi
a848cd7e
SC
33699 fi
33700
33701 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33702 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33703 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33704 fi
33705
33706 found_gl=1
33707 OPENGL_LIBS="-lGL -lGLU"
33708 echo "$as_me:$LINENO: result: yes" >&5
33709echo "${ECHO_T}yes" >&6
69120ee4
VZ
33710 else
33711 echo "$as_me:$LINENO: result: no" >&5
33712echo "${ECHO_T}no" >&6
a848cd7e 33713 fi
69120ee4
VZ
33714 else
33715 echo "$as_me:$LINENO: result: no" >&5
33716echo "${ECHO_T}no" >&6
a848cd7e
SC
33717 fi
33718
33719 if test "$found_gl" != 1; then
a848cd7e
SC
33720 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33721echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33722
0ad5d837
VZ
33723 ac_find_libraries=
33724 for ac_dir in $SEARCH_LIB;
a848cd7e 33725 do
3eca31dc 33726 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33727 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33728 ac_find_libraries=$ac_dir
33729 break 2
33730 fi
33731 done
33732 done
33733
33734 if test "$ac_find_libraries" != "" ; then
33735
0ad5d837 33736 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33737 ac_path_to_link=""
33738 else
0ad5d837
VZ
33739 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33740 result=$?
33741 if test $result = 0; then
33742 ac_path_to_link=""
33743 else
33744 ac_path_to_link=" -L$ac_find_libraries"
33745 fi
a848cd7e
SC
33746 fi
33747
33748 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33749 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33750 echo "$as_me:$LINENO: result: yes" >&5
33751echo "${ECHO_T}yes" >&6
33752 else
33753 echo "$as_me:$LINENO: result: no" >&5
33754echo "${ECHO_T}no" >&6
33755 fi
33756 fi
33757
33758fi
33759
33760
33761
33762 if test "x$OPENGL_LIBS" = "x"; then
33763 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33764echo "$as_me: error: OpenGL libraries not available" >&2;}
33765 { (exit 1); exit 1; }; }
33766 fi
33767 fi
33768
33769 if test "$wxUSE_OPENGL" = "yes"; then
33770 USE_OPENGL=1
33771 cat >>confdefs.h <<\_ACEOF
33772#define wxUSE_OPENGL 1
33773_ACEOF
33774
33775 cat >>confdefs.h <<\_ACEOF
33776#define wxUSE_GLCANVAS 1
33777_ACEOF
33778
33779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33780 fi
33781fi
33782
a848cd7e
SC
33783
33784if test -n "$TOOLKIT" ; then
33785 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33786fi
33787
a848cd7e
SC
33788
33789
33790if test "$wxUSE_SHARED" = "yes"; then
33791 case "${host}" in
33792 *-pc-msdosdjgpp )
33793 wxUSE_SHARED=no
33794 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33795echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33796 ;;
33797 esac
33798fi
33799
a848cd7e 33800if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33801
33802
33803 found_versioning=no
33804
33805
33806 if test $found_versioning = no ; then
33807 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33808echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33809if test "${wx_cv_version_script+set}" = set; then
33810 echo $ECHO_N "(cached) $ECHO_C" >&6
33811else
33812
33813 echo "VER_1 { *; };" >conftest.sym
33814 echo "int main() { return 0; }" >conftest.cpp
33815
33816 if { ac_try='
33817 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33818 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; } ; then
33824 if test -s conftest.stderr ; then
33825 wx_cv_version_script=no
33826 else
33827 wx_cv_version_script=yes
33828 fi
33829 else
33830 wx_cv_version_script=no
33831 fi
e5d4b470
MW
33832
33833 if test $wx_cv_version_script = yes
33834 then
33835 echo "struct B { virtual ~B() { } }; \
33836 struct D : public B { }; \
33837 void F() { D d; }" > conftest.cpp
33838
33839 if { ac_try='
33840 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33841 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843 (eval $ac_try) 2>&5
33844 ac_status=$?
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; } &&
33847 { ac_try='
33848 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33849 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33851 (eval $ac_try) 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }
33855 then
33856 if { ac_try='
33857 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33858 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33860 (eval $ac_try) 2>&5
33861 ac_status=$?
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); }; }
33864 then
33865 wx_cv_version_script=yes
33866 else
33867 wx_cv_version_script=no
33868 fi
33869 fi
33870 fi
33871
a848cd7e 33872 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33873 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33874
33875fi
33876echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33877echo "${ECHO_T}$wx_cv_version_script" >&6
33878 if test $wx_cv_version_script = yes ; then
33879 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33880 fi
33881 fi
33882
33883
33884 case "${host}" in
33885 *-*-linux* | *-*-gnu* )
33886 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33887 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33888 ;;
a848cd7e
SC
33889
33890 *-*-solaris2* )
33891 if test "$GCC" = yes ; then
c92ad099 33892 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33893
33894 saveLdflags="$LDFLAGS"
33895 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33896 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33897echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33898 cat >conftest.$ac_ext <<_ACEOF
33899/* confdefs.h. */
33900_ACEOF
33901cat confdefs.h >>conftest.$ac_ext
33902cat >>conftest.$ac_ext <<_ACEOF
33903/* end confdefs.h. */
33904
33905int
33906main ()
33907{
33908
33909 ;
33910 return 0;
33911}
33912_ACEOF
33913rm -f conftest.$ac_objext conftest$ac_exeext
33914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33915 (eval $ac_link) 2>conftest.er1
a848cd7e 33916 ac_status=$?
ac1cb8d3
VS
33917 grep -v '^ *+' conftest.er1 >conftest.err
33918 rm -f conftest.er1
33919 cat conftest.err >&5
a848cd7e
SC
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); } &&
bb9e79c0 33922 { ac_try='test -z "$ac_cxx_werror_flag" || 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
33935 echo "$as_me:$LINENO: result: yes" >&5
33936echo "${ECHO_T}yes" >&6
33937 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33938 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33939
33940else
33941 echo "$as_me: failed program was:" >&5
33942sed 's/^/| /' conftest.$ac_ext >&5
33943
33944
33945 echo "$as_me:$LINENO: result: no" >&5
33946echo "${ECHO_T}no" >&6
33947 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33948echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33949 LDFLAGS="$saveLdflags -Wl,-R,/"
33950 cat >conftest.$ac_ext <<_ACEOF
33951/* confdefs.h. */
33952_ACEOF
33953cat confdefs.h >>conftest.$ac_ext
33954cat >>conftest.$ac_ext <<_ACEOF
33955/* end confdefs.h. */
33956
33957int
33958main ()
33959{
33960
33961 ;
33962 return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext conftest$ac_exeext
33966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33967 (eval $ac_link) 2>conftest.er1
a848cd7e 33968 ac_status=$?
ac1cb8d3
VS
33969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
a848cd7e
SC
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
bb9e79c0 33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33977 ac_status=$?
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; } &&
33980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986
ffa0583f 33987 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33988echo "${ECHO_T}yes" >&6
ffa0583f
RL
33989 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33990 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33991
a848cd7e
SC
33992else
33993 echo "$as_me: failed program was:" >&5
33994sed 's/^/| /' conftest.$ac_ext >&5
33995
33996
33997 echo "$as_me:$LINENO: result: no" >&5
33998echo "${ECHO_T}no" >&6
33999
34000fi
ac1cb8d3
VS
34001rm -f conftest.err conftest.$ac_objext \
34002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34003
34004fi
ac1cb8d3
VS
34005rm -f conftest.err conftest.$ac_objext \
34006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34007 LDFLAGS="$saveLdflags"
34008 else
a848cd7e 34009 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 34010 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
34011 fi
34012 ;;
34013
cfda0ea8 34014 *-*-darwin* )
0caebc27
MW
34015 install_name_tool=`which install_name_tool`
34016 if test "$install_name_tool" -a -x "$install_name_tool"; then
34017 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
34018 cat <<EOF >change-install-names
a848cd7e
SC
34019#!/bin/sh
34020libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34021inst_cmd="install_name_tool "
34022for i in \${libnames} ; do
34023 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
34024done
34025\${inst_cmd} \${3}
34026EOF
0caebc27
MW
34027 chmod +x change-install-names
34028 fi
a848cd7e
SC
34029 ;;
34030
34031 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
34032 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34033 ;;
a848cd7e 34034
81f90336
MW
34035 *-*-hpux* )
34036 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
34037 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34038 ;;
81f90336 34039
a848cd7e 34040 esac
ceec2216 34041
ffa0583f
RL
34042 if test $wxUSE_RPATH = "no"; then
34043 SAMPLES_RPATH_FLAG=''
34044 SAMPLES_RPATH_POSTLINK=''
34045 WXCONFIG_RPATH=''
34046 fi
34047
34048 SHARED=1
34049
34050else
34051
ceec2216
RL
34052 config_linkage_component="-static"
34053 SHARED=0
ffa0583f 34054
ceec2216 34055fi
a848cd7e 34056
a848cd7e 34057
ceec2216
RL
34058UNICODE=0
34059lib_unicode_suffix=
34060WX_CHARTYPE="ansi"
34061if test "$wxUSE_UNICODE" = "yes"; then
34062 lib_unicode_suffix=u
34063 WX_CHARTYPE="unicode"
34064 UNICODE=1
a848cd7e
SC
34065fi
34066
ceec2216
RL
34067lib_debug_suffix=
34068WX_DEBUGTYPE="release"
34069DEBUG_FLAG=0
34070if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34071 lib_debug_suffix=d
34072 WX_DEBUGTYPE="debug"
34073 DEBUG_FLAG=1
34074fi
a848cd7e 34075
ceec2216
RL
34076WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34077WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34078
ceec2216
RL
34079DEBUG_INFO=0
34080if test "$wxUSE_DEBUG_INFO" = "yes"; then
34081 DEBUG_INFO=1
34082fi
a848cd7e 34083
ceec2216 34084WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34085
ceec2216 34086TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34087
ceec2216 34088TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34089
ceec2216
RL
34090if test "$cross_compiling" = "yes"; then
34091 HOST_SUFFIX="-$host_alias"
34092 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34093 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34094fi
34095
dd21ced8 34096WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34097if test "${TOOLKIT_DIR}" = "os2"; then
34098 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34099else
34100 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34101fi
ceec2216
RL
34102
34103
34104
1d1af5ea
DE
34105if test "$wxUSE_COCOA" = 1; then
34106
34107
34108 ac_ext=c
34109ac_cpp='$CPP $CPPFLAGS'
34110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34112ac_compiler_gnu=$ac_cv_c_compiler_gnu
34113
34114ac_ext=m
34115
34116 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34117echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
34118 cat >conftest.$ac_ext <<_ACEOF
34119/* confdefs.h. */
34120_ACEOF
34121cat confdefs.h >>conftest.$ac_ext
34122cat >>conftest.$ac_ext <<_ACEOF
34123/* end confdefs.h. */
34124#include <AppKit/NSEvent.h>
34125#include <CoreFoundation/CoreFoundation.h>
34126
34127int
34128main ()
34129{
34130
34131 ;
34132 return 0;
34133}
34134_ACEOF
34135rm -f conftest.$ac_objext
34136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34137 (eval $ac_compile) 2>conftest.er1
34138 ac_status=$?
34139 grep -v '^ *+' conftest.er1 >conftest.err
34140 rm -f conftest.er1
34141 cat conftest.err >&5
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); } &&
bb9e79c0 34144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146 (eval $ac_try) 2>&5
34147 ac_status=$?
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); }; } &&
34150 { ac_try='test -s conftest.$ac_objext'
34151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152 (eval $ac_try) 2>&5
34153 ac_status=$?
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); }; }; then
34156 echo "$as_me:$LINENO: result: no" >&5
34157echo "${ECHO_T}no" >&6
34158else
34159 echo "$as_me: failed program was:" >&5
34160sed 's/^/| /' conftest.$ac_ext >&5
34161
34162echo "$as_me:$LINENO: result: yes" >&5
34163echo "${ECHO_T}yes" >&6
34164 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34165echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
34166 cat >conftest.$ac_ext <<_ACEOF
34167/* confdefs.h. */
34168_ACEOF
34169cat confdefs.h >>conftest.$ac_ext
34170cat >>conftest.$ac_ext <<_ACEOF
34171/* end confdefs.h. */
34172#define __Point__ 1
34173#include <AppKit/NSEvent.h>
34174#include <CoreFoundation/CoreFoundation.h>
34175
34176int
34177main ()
34178{
34179
34180 ;
34181 return 0;
34182}
34183_ACEOF
34184rm -f conftest.$ac_objext
34185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34186 (eval $ac_compile) 2>conftest.er1
34187 ac_status=$?
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
bb9e79c0 34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; } &&
34199 { ac_try='test -s conftest.$ac_objext'
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 echo "$as_me:$LINENO: result: yes" >&5
34206echo "${ECHO_T}yes" >&6
34207 cat >>confdefs.h <<\_ACEOF
34208#define __Point__ 1
34209_ACEOF
34210
34211
34212else
34213 echo "$as_me: failed program was:" >&5
34214sed 's/^/| /' conftest.$ac_ext >&5
34215
34216{ { echo "$as_me:$LINENO: error: no
34217See \`config.log' for more details." >&5
34218echo "$as_me: error: no
34219See \`config.log' for more details." >&2;}
34220 { (exit 1); exit 1; }; }
34221
34222fi
34223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34224
34225fi
34226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
34227 ac_ext=cc
34228ac_cpp='$CXXCPP $CPPFLAGS'
34229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
34232
34233fi
34234
a848cd7e 34235if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34236 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34237 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34238
a848cd7e 34239 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34240
34241 # Extract the first word of "Rez", so it can be a program name with args.
34242set dummy Rez; ac_word=$2
34243echo "$as_me:$LINENO: checking for $ac_word" >&5
34244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34245if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34247else
8ced02f6
DE
34248 if test -n "$REZ"; then
34249 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34250else
34251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34252for as_dir in $PATH
34253do
34254 IFS=$as_save_IFS
34255 test -z "$as_dir" && as_dir=.
34256 for ac_exec_ext in '' $ac_executable_extensions; do
34257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34258 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34260 break 2
34261 fi
34262done
34263done
34264
8ced02f6 34265 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34266fi
34267fi
8ced02f6
DE
34268REZ=$ac_cv_prog_REZ
34269if test -n "$REZ"; then
34270 echo "$as_me:$LINENO: result: $REZ" >&5
34271echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
34272else
34273 echo "$as_me:$LINENO: result: no" >&5
34274echo "${ECHO_T}no" >&6
34275fi
34276
34277 # Extract the first word of "DeRez", so it can be a program name with args.
34278set dummy DeRez; ac_word=$2
34279echo "$as_me:$LINENO: checking for $ac_word" >&5
34280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34281if test "${ac_cv_prog_DEREZ+set}" = set; then
34282 echo $ECHO_N "(cached) $ECHO_C" >&6
34283else
34284 if test -n "$DEREZ"; then
34285 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34286else
34287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34288for as_dir in $PATH
34289do
34290 IFS=$as_save_IFS
34291 test -z "$as_dir" && as_dir=.
34292 for ac_exec_ext in '' $ac_executable_extensions; do
34293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34294 ac_cv_prog_DEREZ="DeRez"
34295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34296 break 2
34297 fi
34298done
34299done
34300
34301 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34302fi
34303fi
34304DEREZ=$ac_cv_prog_DEREZ
34305if test -n "$DEREZ"; then
34306 echo "$as_me:$LINENO: result: $DEREZ" >&5
34307echo "${ECHO_T}$DEREZ" >&6
34308else
34309 echo "$as_me:$LINENO: result: no" >&5
34310echo "${ECHO_T}no" >&6
34311fi
34312
34313 # Extract the first word of "SetFile", so it can be a program name with args.
34314set dummy SetFile; ac_word=$2
34315echo "$as_me:$LINENO: checking for $ac_word" >&5
34316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34317if test "${ac_cv_prog_SETFILE+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34319else
34320 if test -n "$SETFILE"; then
34321 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34322else
34323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34324for as_dir in $PATH
34325do
34326 IFS=$as_save_IFS
34327 test -z "$as_dir" && as_dir=.
34328 for ac_exec_ext in '' $ac_executable_extensions; do
34329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34330 ac_cv_prog_SETFILE="SetFile"
34331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34332 break 2
34333 fi
34334done
34335done
34336
34337 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34338fi
34339fi
34340SETFILE=$ac_cv_prog_SETFILE
34341if test -n "$SETFILE"; then
34342 echo "$as_me:$LINENO: result: $SETFILE" >&5
34343echo "${ECHO_T}$SETFILE" >&6
34344else
34345 echo "$as_me:$LINENO: result: no" >&5
34346echo "${ECHO_T}no" >&6
34347fi
34348
34349
34350 MACSETFILE="\$(SETFILE)"
34351
34352 if test "$wxUSE_MAC" = 1; then
8ced02f6 34353 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34354 RESCOMP="$REZ"
34355 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34356 else
004ee6da
RL
34357 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34358 RESCOMP="echo -n \| $REZ"
34359 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34360 fi
004ee6da 34361
a848cd7e 34362else
ffa0583f 34363 MACSETFILE="@true"
a848cd7e 34364
8ced02f6 34365 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34366 RESCOMP="emxbind"
34367 WXCONFIG_RESFLAGS="-ep"
34368
34369 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34370 else
8ced02f6 34371 POSTLINK_COMMAND="@true"
a848cd7e 34372 fi
004ee6da 34373
a848cd7e
SC
34374fi
34375
34376
34377
34378echo "$as_me:$LINENO: checking for mode_t" >&5
34379echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34380if test "${ac_cv_type_mode_t+set}" = set; then
34381 echo $ECHO_N "(cached) $ECHO_C" >&6
34382else
34383 cat >conftest.$ac_ext <<_ACEOF
34384/* confdefs.h. */
34385_ACEOF
34386cat confdefs.h >>conftest.$ac_ext
34387cat >>conftest.$ac_ext <<_ACEOF
34388/* end confdefs.h. */
34389$ac_includes_default
34390int
34391main ()
34392{
34393if ((mode_t *) 0)
34394 return 0;
34395if (sizeof (mode_t))
34396 return 0;
34397 ;
34398 return 0;
34399}
34400_ACEOF
34401rm -f conftest.$ac_objext
34402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34403 (eval $ac_compile) 2>conftest.er1
a848cd7e 34404 ac_status=$?
ac1cb8d3
VS
34405 grep -v '^ *+' conftest.er1 >conftest.err
34406 rm -f conftest.er1
34407 cat conftest.err >&5
a848cd7e
SC
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
bb9e79c0 34410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412 (eval $ac_try) 2>&5
34413 ac_status=$?
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; } &&
34416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34419 ac_status=$?
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; }; then
34422 ac_cv_type_mode_t=yes
34423else
34424 echo "$as_me: failed program was:" >&5
34425sed 's/^/| /' conftest.$ac_ext >&5
34426
34427ac_cv_type_mode_t=no
34428fi
ac1cb8d3 34429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34430fi
34431echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34432echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34433if test $ac_cv_type_mode_t = yes; then
34434 :
34435else
34436
34437cat >>confdefs.h <<_ACEOF
34438#define mode_t int
34439_ACEOF
34440
34441fi
34442
34443echo "$as_me:$LINENO: checking for off_t" >&5
34444echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34445if test "${ac_cv_type_off_t+set}" = set; then
34446 echo $ECHO_N "(cached) $ECHO_C" >&6
34447else
34448 cat >conftest.$ac_ext <<_ACEOF
34449/* confdefs.h. */
34450_ACEOF
34451cat confdefs.h >>conftest.$ac_ext
34452cat >>conftest.$ac_ext <<_ACEOF
34453/* end confdefs.h. */
34454$ac_includes_default
34455int
34456main ()
34457{
34458if ((off_t *) 0)
34459 return 0;
34460if (sizeof (off_t))
34461 return 0;
34462 ;
34463 return 0;
34464}
34465_ACEOF
34466rm -f conftest.$ac_objext
34467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34468 (eval $ac_compile) 2>conftest.er1
a848cd7e 34469 ac_status=$?
ac1cb8d3
VS
34470 grep -v '^ *+' conftest.er1 >conftest.err
34471 rm -f conftest.er1
34472 cat conftest.err >&5
a848cd7e
SC
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); } &&
bb9e79c0 34475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34477 (eval $ac_try) 2>&5
34478 ac_status=$?
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); }; } &&
34481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34484 ac_status=$?
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; }; then
34487 ac_cv_type_off_t=yes
34488else
34489 echo "$as_me: failed program was:" >&5
34490sed 's/^/| /' conftest.$ac_ext >&5
34491
34492ac_cv_type_off_t=no
34493fi
ac1cb8d3 34494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34495fi
34496echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34497echo "${ECHO_T}$ac_cv_type_off_t" >&6
34498if test $ac_cv_type_off_t = yes; then
34499 :
34500else
34501
34502cat >>confdefs.h <<_ACEOF
34503#define off_t long
34504_ACEOF
34505
34506fi
34507
34508echo "$as_me:$LINENO: checking for pid_t" >&5
34509echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34510if test "${ac_cv_type_pid_t+set}" = set; then
34511 echo $ECHO_N "(cached) $ECHO_C" >&6
34512else
34513 cat >conftest.$ac_ext <<_ACEOF
34514/* confdefs.h. */
34515_ACEOF
34516cat confdefs.h >>conftest.$ac_ext
34517cat >>conftest.$ac_ext <<_ACEOF
34518/* end confdefs.h. */
34519$ac_includes_default
34520int
34521main ()
34522{
34523if ((pid_t *) 0)
34524 return 0;
34525if (sizeof (pid_t))
34526 return 0;
34527 ;
34528 return 0;
34529}
34530_ACEOF
34531rm -f conftest.$ac_objext
34532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34533 (eval $ac_compile) 2>conftest.er1
a848cd7e 34534 ac_status=$?
ac1cb8d3
VS
34535 grep -v '^ *+' conftest.er1 >conftest.err
34536 rm -f conftest.er1
34537 cat conftest.err >&5
a848cd7e
SC
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); } &&
bb9e79c0 34540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34542 (eval $ac_try) 2>&5
34543 ac_status=$?
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); }; } &&
34546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34548 (eval $ac_try) 2>&5
34549 ac_status=$?
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); }; }; then
34552 ac_cv_type_pid_t=yes
34553else
34554 echo "$as_me: failed program was:" >&5
34555sed 's/^/| /' conftest.$ac_ext >&5
34556
34557ac_cv_type_pid_t=no
34558fi
ac1cb8d3 34559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34560fi
34561echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34562echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34563if test $ac_cv_type_pid_t = yes; then
34564 :
34565else
34566
34567cat >>confdefs.h <<_ACEOF
34568#define pid_t int
34569_ACEOF
34570
34571fi
34572
34573echo "$as_me:$LINENO: checking for size_t" >&5
34574echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34575if test "${ac_cv_type_size_t+set}" = set; then
34576 echo $ECHO_N "(cached) $ECHO_C" >&6
34577else
34578 cat >conftest.$ac_ext <<_ACEOF
34579/* confdefs.h. */
34580_ACEOF
34581cat confdefs.h >>conftest.$ac_ext
34582cat >>conftest.$ac_ext <<_ACEOF
34583/* end confdefs.h. */
34584$ac_includes_default
34585int
34586main ()
34587{
34588if ((size_t *) 0)
34589 return 0;
34590if (sizeof (size_t))
34591 return 0;
34592 ;
34593 return 0;
34594}
34595_ACEOF
34596rm -f conftest.$ac_objext
34597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34598 (eval $ac_compile) 2>conftest.er1
a848cd7e 34599 ac_status=$?
ac1cb8d3
VS
34600 grep -v '^ *+' conftest.er1 >conftest.err
34601 rm -f conftest.er1
34602 cat conftest.err >&5
a848cd7e
SC
34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604 (exit $ac_status); } &&
bb9e79c0 34605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34607 (eval $ac_try) 2>&5
34608 ac_status=$?
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); }; } &&
34611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; }; then
34617 ac_cv_type_size_t=yes
34618else
34619 echo "$as_me: failed program was:" >&5
34620sed 's/^/| /' conftest.$ac_ext >&5
34621
34622ac_cv_type_size_t=no
34623fi
ac1cb8d3 34624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34625fi
34626echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34627echo "${ECHO_T}$ac_cv_type_size_t" >&6
34628if test $ac_cv_type_size_t = yes; then
34629 :
34630else
34631
34632cat >>confdefs.h <<_ACEOF
34633#define size_t unsigned
34634_ACEOF
34635
34636fi
34637
34638echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34639echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34640if test "${ac_cv_type_uid_t+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34642else
34643 cat >conftest.$ac_ext <<_ACEOF
34644/* confdefs.h. */
34645_ACEOF
34646cat confdefs.h >>conftest.$ac_ext
34647cat >>conftest.$ac_ext <<_ACEOF
34648/* end confdefs.h. */
34649#include <sys/types.h>
34650
34651_ACEOF
34652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34653 $EGREP "uid_t" >/dev/null 2>&1; then
34654 ac_cv_type_uid_t=yes
34655else
34656 ac_cv_type_uid_t=no
34657fi
34658rm -f conftest*
34659
34660fi
34661echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34662echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34663if test $ac_cv_type_uid_t = no; then
34664
34665cat >>confdefs.h <<\_ACEOF
34666#define uid_t int
34667_ACEOF
34668
34669
34670cat >>confdefs.h <<\_ACEOF
34671#define gid_t int
34672_ACEOF
34673
34674fi
34675
34676
d51253e8
RL
34677echo "$as_me:$LINENO: checking for ssize_t" >&5
34678echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34679if test "${ac_cv_type_ssize_t+set}" = set; then
34680 echo $ECHO_N "(cached) $ECHO_C" >&6
34681else
34682 cat >conftest.$ac_ext <<_ACEOF
34683/* confdefs.h. */
34684_ACEOF
34685cat confdefs.h >>conftest.$ac_ext
34686cat >>conftest.$ac_ext <<_ACEOF
34687/* end confdefs.h. */
34688$ac_includes_default
34689int
34690main ()
34691{
34692if ((ssize_t *) 0)
34693 return 0;
34694if (sizeof (ssize_t))
34695 return 0;
34696 ;
34697 return 0;
34698}
34699_ACEOF
34700rm -f conftest.$ac_objext
34701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34702 (eval $ac_compile) 2>conftest.er1
34703 ac_status=$?
34704 grep -v '^ *+' conftest.er1 >conftest.err
34705 rm -f conftest.er1
34706 cat conftest.err >&5
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); } &&
bb9e79c0 34709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; } &&
34715 { ac_try='test -s conftest.$ac_objext'
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; }; then
34721 ac_cv_type_ssize_t=yes
34722else
34723 echo "$as_me: failed program was:" >&5
34724sed 's/^/| /' conftest.$ac_ext >&5
34725
34726ac_cv_type_ssize_t=no
34727fi
34728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34729fi
34730echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34731echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34732if test $ac_cv_type_ssize_t = yes; then
34733
34734cat >>confdefs.h <<_ACEOF
34735#define HAVE_SSIZE_T 1
34736_ACEOF
34737
34738
34739fi
34740
34741
a848cd7e
SC
34742echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34743echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34744if test "${wx_cv_size_t_is_uint+set}" = set; then
34745 echo $ECHO_N "(cached) $ECHO_C" >&6
34746else
34747
34748 cat >conftest.$ac_ext <<_ACEOF
34749/* confdefs.h. */
34750_ACEOF
34751cat confdefs.h >>conftest.$ac_ext
34752cat >>conftest.$ac_ext <<_ACEOF
34753/* end confdefs.h. */
34754#include <stddef.h>
34755int
34756main ()
34757{
34758
34759 return 0; }
34760
34761 struct Foo { void foo(size_t); void foo(unsigned int); };
34762
34763 int bar() {
34764
34765 ;
34766 return 0;
34767}
34768_ACEOF
34769rm -f conftest.$ac_objext
34770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34771 (eval $ac_compile) 2>conftest.er1
a848cd7e 34772 ac_status=$?
ac1cb8d3
VS
34773 grep -v '^ *+' conftest.er1 >conftest.err
34774 rm -f conftest.er1
34775 cat conftest.err >&5
a848cd7e
SC
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); } &&
bb9e79c0 34778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34781 ac_status=$?
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; } &&
34784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34787 ac_status=$?
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; }; then
34790 wx_cv_size_t_is_uint=no
34791else
34792 echo "$as_me: failed program was:" >&5
34793sed 's/^/| /' conftest.$ac_ext >&5
34794
34795wx_cv_size_t_is_uint=yes
34796
34797fi
ac1cb8d3 34798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34799
34800
34801fi
34802echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34803echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34804
34805if test "$wx_cv_size_t_is_uint" = "yes"; then
34806 cat >>confdefs.h <<\_ACEOF
34807#define wxSIZE_T_IS_UINT 1
34808_ACEOF
34809
34810else
34811 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34812echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34813if test "${wx_cv_size_t_is_ulong+set}" = set; then
34814 echo $ECHO_N "(cached) $ECHO_C" >&6
34815else
34816 cat >conftest.$ac_ext <<_ACEOF
34817/* confdefs.h. */
34818_ACEOF
34819cat confdefs.h >>conftest.$ac_ext
34820cat >>conftest.$ac_ext <<_ACEOF
34821/* end confdefs.h. */
34822#include <stddef.h>
34823int
34824main ()
34825{
34826
34827 return 0; }
34828
34829 struct Foo { void foo(size_t); void foo(unsigned long); };
34830
34831 int bar() {
34832
34833 ;
34834 return 0;
34835}
34836_ACEOF
34837rm -f conftest.$ac_objext
34838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34839 (eval $ac_compile) 2>conftest.er1
a848cd7e 34840 ac_status=$?
ac1cb8d3
VS
34841 grep -v '^ *+' conftest.er1 >conftest.err
34842 rm -f conftest.er1
34843 cat conftest.err >&5
a848cd7e
SC
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } &&
bb9e79c0 34846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34849 ac_status=$?
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; } &&
34852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34855 ac_status=$?
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; }; then
34858 wx_cv_size_t_is_ulong=no
34859else
34860 echo "$as_me: failed program was:" >&5
34861sed 's/^/| /' conftest.$ac_ext >&5
34862
34863wx_cv_size_t_is_ulong=yes
34864
34865fi
ac1cb8d3 34866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34867
34868fi
34869echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34870echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34871
34872 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34873 cat >>confdefs.h <<\_ACEOF
34874#define wxSIZE_T_IS_ULONG 1
34875_ACEOF
34876
34877 fi
34878fi
34879
a848cd7e
SC
34880
34881echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34882echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34883if test "${wx_cv_struct_pw_gecos+set}" = set; then
34884 echo $ECHO_N "(cached) $ECHO_C" >&6
34885else
34886
34887 cat >conftest.$ac_ext <<_ACEOF
34888/* confdefs.h. */
34889_ACEOF
34890cat confdefs.h >>conftest.$ac_ext
34891cat >>conftest.$ac_ext <<_ACEOF
34892/* end confdefs.h. */
34893#include <pwd.h>
34894int
34895main ()
34896{
34897
34898 char *p;
34899 struct passwd *pw;
34900 p = pw->pw_gecos;
34901
34902 ;
34903 return 0;
34904}
34905_ACEOF
34906rm -f conftest.$ac_objext
34907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34908 (eval $ac_compile) 2>conftest.er1
a848cd7e 34909 ac_status=$?
ac1cb8d3
VS
34910 grep -v '^ *+' conftest.er1 >conftest.err
34911 rm -f conftest.er1
34912 cat conftest.err >&5
a848cd7e
SC
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } &&
bb9e79c0 34915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; } &&
34921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34924 ac_status=$?
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; }; then
34927
34928 wx_cv_struct_pw_gecos=yes
34929
34930else
34931 echo "$as_me: failed program was:" >&5
34932sed 's/^/| /' conftest.$ac_ext >&5
34933
34934
34935 wx_cv_struct_pw_gecos=no
34936
34937
34938fi
ac1cb8d3 34939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34940
34941
34942fi
34943echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34944echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34945
34946if test "$wx_cv_struct_pw_gecos" = "yes"; then
34947 cat >>confdefs.h <<\_ACEOF
34948#define HAVE_PW_GECOS 1
34949_ACEOF
34950
34951fi
34952
34953
47a7e797 34954if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34955 cat >>confdefs.h <<\_ACEOF
34956#define wxUSE_WCHAR_T 1
34957_ACEOF
34958
34959
34960 WCSLEN_FOUND=0
34961 WCHAR_LINK=
34962
34963for ac_func in wcslen
34964do
34965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34966echo "$as_me:$LINENO: checking for $ac_func" >&5
34967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34968if eval "test \"\${$as_ac_var+set}\" = set"; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34970else
34971 cat >conftest.$ac_ext <<_ACEOF
34972/* confdefs.h. */
34973_ACEOF
34974cat confdefs.h >>conftest.$ac_ext
34975cat >>conftest.$ac_ext <<_ACEOF
34976/* end confdefs.h. */
ac1cb8d3
VS
34977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34979#define $ac_func innocuous_$ac_func
34980
a848cd7e
SC
34981/* System header to define __stub macros and hopefully few prototypes,
34982 which can conflict with char $ac_func (); below.
34983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34984 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34985
a848cd7e
SC
34986#ifdef __STDC__
34987# include <limits.h>
34988#else
34989# include <assert.h>
34990#endif
ac1cb8d3
VS
34991
34992#undef $ac_func
34993
a848cd7e
SC
34994/* Override any gcc2 internal prototype to avoid an error. */
34995#ifdef __cplusplus
34996extern "C"
34997{
34998#endif
34999/* We use char because int might match the return type of a gcc2
35000 builtin and then its argument prototype would still apply. */
35001char $ac_func ();
35002/* The GNU C library defines this for functions which it implements
35003 to always fail with ENOSYS. Some functions are actually named
35004 something starting with __ and the normal name is an alias. */
35005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35006choke me
35007#else
35008char (*f) () = $ac_func;
35009#endif
35010#ifdef __cplusplus
35011}
35012#endif
35013
35014int
35015main ()
35016{
35017return f != $ac_func;
35018 ;
35019 return 0;
35020}
35021_ACEOF
35022rm -f conftest.$ac_objext conftest$ac_exeext
35023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35024 (eval $ac_link) 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); } &&
bb9e79c0 35031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 (eval $ac_try) 2>&5
35034 ac_status=$?
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; }; then
35043 eval "$as_ac_var=yes"
35044else
35045 echo "$as_me: failed program was:" >&5
35046sed 's/^/| /' conftest.$ac_ext >&5
35047
35048eval "$as_ac_var=no"
35049fi
ac1cb8d3
VS
35050rm -f conftest.err conftest.$ac_objext \
35051 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35052fi
35053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35055if test `eval echo '${'$as_ac_var'}'` = yes; then
35056 cat >>confdefs.h <<_ACEOF
35057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35058_ACEOF
35059 WCSLEN_FOUND=1
35060fi
35061done
35062
35063
35064 if test "$WCSLEN_FOUND" = 0; then
35065 if test "$TOOLKIT" = "MSW"; then
35066 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35067echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
35068if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35070else
35071 ac_check_lib_save_LIBS=$LIBS
35072LIBS="-lmsvcrt $LIBS"
35073cat >conftest.$ac_ext <<_ACEOF
35074/* confdefs.h. */
35075_ACEOF
35076cat confdefs.h >>conftest.$ac_ext
35077cat >>conftest.$ac_ext <<_ACEOF
35078/* end confdefs.h. */
35079
35080/* Override any gcc2 internal prototype to avoid an error. */
35081#ifdef __cplusplus
35082extern "C"
35083#endif
35084/* We use char because int might match the return type of a gcc2
35085 builtin and then its argument prototype would still apply. */
35086char wcslen ();
35087int
35088main ()
35089{
35090wcslen ();
35091 ;
35092 return 0;
35093}
35094_ACEOF
35095rm -f conftest.$ac_objext conftest$ac_exeext
35096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35097 (eval $ac_link) 2>conftest.er1
a848cd7e 35098 ac_status=$?
ac1cb8d3
VS
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
a848cd7e
SC
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
bb9e79c0 35104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35107 ac_status=$?
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; } &&
35110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112 (eval $ac_try) 2>&5
35113 ac_status=$?
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); }; }; then
35116 ac_cv_lib_msvcrt_wcslen=yes
35117else
35118 echo "$as_me: failed program was:" >&5
35119sed 's/^/| /' conftest.$ac_ext >&5
35120
35121ac_cv_lib_msvcrt_wcslen=no
35122fi
ac1cb8d3
VS
35123rm -f conftest.err conftest.$ac_objext \
35124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35125LIBS=$ac_check_lib_save_LIBS
35126fi
35127echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35128echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
35129if test $ac_cv_lib_msvcrt_wcslen = yes; then
35130 WCHAR_OK=1
35131fi
35132
35133 else
35134 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35135echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
35136if test "${ac_cv_lib_w_wcslen+set}" = set; then
35137 echo $ECHO_N "(cached) $ECHO_C" >&6
35138else
35139 ac_check_lib_save_LIBS=$LIBS
35140LIBS="-lw $LIBS"
35141cat >conftest.$ac_ext <<_ACEOF
35142/* confdefs.h. */
35143_ACEOF
35144cat confdefs.h >>conftest.$ac_ext
35145cat >>conftest.$ac_ext <<_ACEOF
35146/* end confdefs.h. */
35147
35148/* Override any gcc2 internal prototype to avoid an error. */
35149#ifdef __cplusplus
35150extern "C"
35151#endif
35152/* We use char because int might match the return type of a gcc2
35153 builtin and then its argument prototype would still apply. */
35154char wcslen ();
35155int
35156main ()
35157{
35158wcslen ();
35159 ;
35160 return 0;
35161}
35162_ACEOF
35163rm -f conftest.$ac_objext conftest$ac_exeext
35164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35165 (eval $ac_link) 2>conftest.er1
a848cd7e 35166 ac_status=$?
ac1cb8d3
VS
35167 grep -v '^ *+' conftest.er1 >conftest.err
35168 rm -f conftest.er1
35169 cat conftest.err >&5
a848cd7e
SC
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); } &&
bb9e79c0 35172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35174 (eval $ac_try) 2>&5
35175 ac_status=$?
35176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177 (exit $ac_status); }; } &&
35178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35180 (eval $ac_try) 2>&5
35181 ac_status=$?
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); }; }; then
35184 ac_cv_lib_w_wcslen=yes
35185else
35186 echo "$as_me: failed program was:" >&5
35187sed 's/^/| /' conftest.$ac_ext >&5
35188
35189ac_cv_lib_w_wcslen=no
35190fi
ac1cb8d3
VS
35191rm -f conftest.err conftest.$ac_objext \
35192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35193LIBS=$ac_check_lib_save_LIBS
35194fi
35195echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35196echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35197if test $ac_cv_lib_w_wcslen = yes; then
35198
35199 WCHAR_LINK=" -lw"
35200 WCSLEN_FOUND=1
35201
35202fi
35203
35204 fi
35205 fi
35206
35207 if test "$WCSLEN_FOUND" = 1; then
35208 cat >>confdefs.h <<\_ACEOF
35209#define HAVE_WCSLEN 1
35210_ACEOF
35211
35212 fi
35213
efdf6afe 35214 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35215 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35216 fi
35217
efdf6afe
VZ
35218 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35219echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35220if test "${ac_cv_type_mbstate_t+set}" = set; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35222else
35223 cat >conftest.$ac_ext <<_ACEOF
35224/* confdefs.h. */
35225_ACEOF
35226cat confdefs.h >>conftest.$ac_ext
35227cat >>conftest.$ac_ext <<_ACEOF
35228/* end confdefs.h. */
35229#include <wchar.h>
35230
35231int
35232main ()
35233{
35234if ((mbstate_t *) 0)
35235 return 0;
35236if (sizeof (mbstate_t))
35237 return 0;
35238 ;
35239 return 0;
35240}
35241_ACEOF
35242rm -f conftest.$ac_objext
35243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35244 (eval $ac_compile) 2>conftest.er1
35245 ac_status=$?
35246 grep -v '^ *+' conftest.er1 >conftest.err
35247 rm -f conftest.er1
35248 cat conftest.err >&5
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); } &&
bb9e79c0 35251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35254 ac_status=$?
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; } &&
35257 { ac_try='test -s conftest.$ac_objext'
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35260 ac_status=$?
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; }; then
35263 ac_cv_type_mbstate_t=yes
35264else
35265 echo "$as_me: failed program was:" >&5
35266sed 's/^/| /' conftest.$ac_ext >&5
35267
35268ac_cv_type_mbstate_t=no
35269fi
35270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35271fi
35272echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35273echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35274if test $ac_cv_type_mbstate_t = yes; then
35275
35276cat >>confdefs.h <<_ACEOF
35277#define HAVE_MBSTATE_T 1
35278_ACEOF
35279
a848cd7e
SC
35280
35281for ac_func in wcsrtombs
35282do
35283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35284echo "$as_me:$LINENO: checking for $ac_func" >&5
35285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35286if eval "test \"\${$as_ac_var+set}\" = set"; then
35287 echo $ECHO_N "(cached) $ECHO_C" >&6
35288else
35289 cat >conftest.$ac_ext <<_ACEOF
35290/* confdefs.h. */
35291_ACEOF
35292cat confdefs.h >>conftest.$ac_ext
35293cat >>conftest.$ac_ext <<_ACEOF
35294/* end confdefs.h. */
ac1cb8d3
VS
35295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35297#define $ac_func innocuous_$ac_func
35298
a848cd7e
SC
35299/* System header to define __stub macros and hopefully few prototypes,
35300 which can conflict with char $ac_func (); below.
35301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35302 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35303
a848cd7e
SC
35304#ifdef __STDC__
35305# include <limits.h>
35306#else
35307# include <assert.h>
35308#endif
ac1cb8d3
VS
35309
35310#undef $ac_func
35311
a848cd7e
SC
35312/* Override any gcc2 internal prototype to avoid an error. */
35313#ifdef __cplusplus
35314extern "C"
35315{
35316#endif
35317/* We use char because int might match the return type of a gcc2
35318 builtin and then its argument prototype would still apply. */
35319char $ac_func ();
35320/* The GNU C library defines this for functions which it implements
35321 to always fail with ENOSYS. Some functions are actually named
35322 something starting with __ and the normal name is an alias. */
35323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35324choke me
35325#else
35326char (*f) () = $ac_func;
35327#endif
35328#ifdef __cplusplus
35329}
35330#endif
35331
35332int
35333main ()
35334{
35335return f != $ac_func;
35336 ;
35337 return 0;
35338}
35339_ACEOF
35340rm -f conftest.$ac_objext conftest$ac_exeext
35341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35342 (eval $ac_link) 2>conftest.er1
a848cd7e 35343 ac_status=$?
ac1cb8d3
VS
35344 grep -v '^ *+' conftest.er1 >conftest.err
35345 rm -f conftest.er1
35346 cat conftest.err >&5
a848cd7e
SC
35347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348 (exit $ac_status); } &&
bb9e79c0 35349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351 (eval $ac_try) 2>&5
35352 ac_status=$?
35353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354 (exit $ac_status); }; } &&
35355 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357 (eval $ac_try) 2>&5
35358 ac_status=$?
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
35361 eval "$as_ac_var=yes"
35362else
35363 echo "$as_me: failed program was:" >&5
35364sed 's/^/| /' conftest.$ac_ext >&5
35365
35366eval "$as_ac_var=no"
35367fi
ac1cb8d3
VS
35368rm -f conftest.err conftest.$ac_objext \
35369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35370fi
35371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35372echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35373if test `eval echo '${'$as_ac_var'}'` = yes; then
35374 cat >>confdefs.h <<_ACEOF
35375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35376_ACEOF
35377
35378fi
35379done
35380
efdf6afe
VZ
35381fi
35382
a848cd7e
SC
35383else
35384 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35385echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35386fi
35387
a848cd7e 35388
4a767dd5
VZ
35389
35390for ac_func in snprintf vsnprintf
a848cd7e
SC
35391do
35392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35393echo "$as_me:$LINENO: checking for $ac_func" >&5
35394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35395if eval "test \"\${$as_ac_var+set}\" = set"; then
35396 echo $ECHO_N "(cached) $ECHO_C" >&6
35397else
35398 cat >conftest.$ac_ext <<_ACEOF
35399/* confdefs.h. */
35400_ACEOF
35401cat confdefs.h >>conftest.$ac_ext
35402cat >>conftest.$ac_ext <<_ACEOF
35403/* end confdefs.h. */
ac1cb8d3
VS
35404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35406#define $ac_func innocuous_$ac_func
35407
a848cd7e
SC
35408/* System header to define __stub macros and hopefully few prototypes,
35409 which can conflict with char $ac_func (); below.
35410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35411 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35412
a848cd7e
SC
35413#ifdef __STDC__
35414# include <limits.h>
35415#else
35416# include <assert.h>
35417#endif
ac1cb8d3
VS
35418
35419#undef $ac_func
35420
a848cd7e
SC
35421/* Override any gcc2 internal prototype to avoid an error. */
35422#ifdef __cplusplus
35423extern "C"
35424{
35425#endif
35426/* We use char because int might match the return type of a gcc2
35427 builtin and then its argument prototype would still apply. */
35428char $ac_func ();
35429/* The GNU C library defines this for functions which it implements
35430 to always fail with ENOSYS. Some functions are actually named
35431 something starting with __ and the normal name is an alias. */
35432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35433choke me
35434#else
35435char (*f) () = $ac_func;
35436#endif
35437#ifdef __cplusplus
35438}
35439#endif
35440
35441int
35442main ()
35443{
35444return f != $ac_func;
35445 ;
35446 return 0;
35447}
35448_ACEOF
35449rm -f conftest.$ac_objext conftest$ac_exeext
35450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35451 (eval $ac_link) 2>conftest.er1
a848cd7e 35452 ac_status=$?
ac1cb8d3
VS
35453 grep -v '^ *+' conftest.er1 >conftest.err
35454 rm -f conftest.er1
35455 cat conftest.err >&5
a848cd7e
SC
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); } &&
bb9e79c0 35458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35461 ac_status=$?
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; } &&
35464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35467 ac_status=$?
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; }; then
35470 eval "$as_ac_var=yes"
35471else
35472 echo "$as_me: failed program was:" >&5
35473sed 's/^/| /' conftest.$ac_ext >&5
35474
35475eval "$as_ac_var=no"
35476fi
ac1cb8d3
VS
35477rm -f conftest.err conftest.$ac_objext \
35478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35479fi
35480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35482if test `eval echo '${'$as_ac_var'}'` = yes; then
35483 cat >>confdefs.h <<_ACEOF
35484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35485_ACEOF
35486
35487fi
35488done
35489
35490
35491if test "$ac_cv_func_vsnprintf" = "yes"; then
35492 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35493echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35494if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35495 echo $ECHO_N "(cached) $ECHO_C" >&6
35496else
35497
efdf6afe 35498 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35499/* confdefs.h. */
35500_ACEOF
35501cat confdefs.h >>conftest.$ac_ext
35502cat >>conftest.$ac_ext <<_ACEOF
35503/* end confdefs.h. */
35504
35505 #include <stdio.h>
35506 #include <stdarg.h>
efdf6afe
VZ
35507 #ifdef __MSL__
35508 #if __MSL__ >= 0x6000
35509 namespace std {}
35510 using namespace std;
35511 #endif
35512 #endif
a848cd7e
SC
35513
35514int
35515main ()
35516{
35517
35518 char *buf;
35519 va_list ap;
62fa8b3a 35520 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35521
35522 ;
35523 return 0;
35524}
35525_ACEOF
35526rm -f conftest.$ac_objext
35527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35528 (eval $ac_compile) 2>conftest.er1
35529 ac_status=$?
35530 grep -v '^ *+' conftest.er1 >conftest.err
35531 rm -f conftest.er1
35532 cat conftest.err >&5
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } &&
bb9e79c0 35535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
35536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35537 (eval $ac_try) 2>&5
35538 ac_status=$?
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); }; } &&
35541 { ac_try='test -s conftest.$ac_objext'
35542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35543 (eval $ac_try) 2>&5
35544 ac_status=$?
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); }; }; then
35547 wx_cv_func_vsnprintf_decl=yes
35548else
35549 echo "$as_me: failed program was:" >&5
35550sed 's/^/| /' conftest.$ac_ext >&5
35551
a848cd7e
SC
35552wx_cv_func_vsnprintf_decl=no
35553
35554fi
ac1cb8d3 35555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35556
35557
35558fi
35559echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35560echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35561
35562 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35563 cat >>confdefs.h <<\_ACEOF
35564#define HAVE_VSNPRINTF_DECL 1
35565_ACEOF
35566
62fa8b3a
MW
35567
35568 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35569echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35570if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35571 echo $ECHO_N "(cached) $ECHO_C" >&6
35572else
35573
35574 cat >conftest.$ac_ext <<_ACEOF
35575/* confdefs.h. */
35576_ACEOF
35577cat confdefs.h >>conftest.$ac_ext
35578cat >>conftest.$ac_ext <<_ACEOF
35579/* end confdefs.h. */
35580
35581 #include <stdio.h>
35582 #include <stdarg.h>
35583 #ifdef __MSL__
35584 #if __MSL__ >= 0x6000
35585 namespace std {}
35586 using namespace std;
35587 #endif
35588 #endif
35589
35590int
35591main ()
35592{
35593
35594 char *buf;
35595 va_list ap;
35596 const char *fmt = "%s";
35597 vsnprintf(buf, 10u, fmt, ap);
35598
35599 ;
35600 return 0;
35601}
35602_ACEOF
35603rm -f conftest.$ac_objext
35604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>conftest.er1
35606 ac_status=$?
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
bb9e79c0 35612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; } &&
35618 { ac_try='test -s conftest.$ac_objext'
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; }; then
35624 wx_cv_func_broken_vsnprintf_decl=no
35625else
35626 echo "$as_me: failed program was:" >&5
35627sed 's/^/| /' conftest.$ac_ext >&5
35628
35629wx_cv_func_broken_vsnprintf_decl=yes
35630
35631fi
35632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35633
35634
35635fi
35636echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35637echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35638
35639 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35640 cat >>confdefs.h <<\_ACEOF
35641#define HAVE_BROKEN_VSNPRINTF_DECL 1
35642_ACEOF
35643
35644 fi
a848cd7e
SC
35645 fi
35646fi
35647
4a767dd5
VZ
35648if test "$ac_cv_func_snprintf" = "yes"; then
35649 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35650echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35651if test "${wx_cv_func_snprintf_decl+set}" = set; then
35652 echo $ECHO_N "(cached) $ECHO_C" >&6
35653else
35654
35655 cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h. */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h. */
35661
35662 #include <stdio.h>
35663 #include <stdarg.h>
35664 #ifdef __MSL__
35665 #if __MSL__ >= 0x6000
35666 namespace std {}
35667 using namespace std;
35668 #endif
35669 #endif
35670
35671int
35672main ()
35673{
35674
35675 char *buf;
62fa8b3a 35676 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35677
35678 ;
35679 return 0;
35680}
35681_ACEOF
35682rm -f conftest.$ac_objext
35683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35684 (eval $ac_compile) 2>conftest.er1
35685 ac_status=$?
35686 grep -v '^ *+' conftest.er1 >conftest.err
35687 rm -f conftest.er1
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } &&
bb9e79c0 35691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35694 ac_status=$?
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; } &&
35697 { ac_try='test -s conftest.$ac_objext'
35698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35699 (eval $ac_try) 2>&5
35700 ac_status=$?
35701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702 (exit $ac_status); }; }; then
35703 wx_cv_func_snprintf_decl=yes
35704else
35705 echo "$as_me: failed program was:" >&5
35706sed 's/^/| /' conftest.$ac_ext >&5
35707
35708wx_cv_func_snprintf_decl=no
35709
35710fi
35711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35712
35713
35714fi
35715echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35716echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35717
35718 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35719 cat >>confdefs.h <<\_ACEOF
35720#define HAVE_SNPRINTF_DECL 1
35721_ACEOF
35722
62fa8b3a
MW
35723
35724 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35725echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35726if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35727 echo $ECHO_N "(cached) $ECHO_C" >&6
35728else
35729
35730 cat >conftest.$ac_ext <<_ACEOF
35731/* confdefs.h. */
35732_ACEOF
35733cat confdefs.h >>conftest.$ac_ext
35734cat >>conftest.$ac_ext <<_ACEOF
35735/* end confdefs.h. */
35736
35737 #include <stdio.h>
35738 #include <stdarg.h>
35739 #ifdef __MSL__
35740 #if __MSL__ >= 0x6000
35741 namespace std {}
35742 using namespace std;
35743 #endif
35744 #endif
35745
35746int
35747main ()
35748{
35749
35750 char *buf;
35751 const char *fmt = "%s";
35752 snprintf(buf, 10u, fmt, "wx");
35753
35754 ;
35755 return 0;
35756}
35757_ACEOF
35758rm -f conftest.$ac_objext
35759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35760 (eval $ac_compile) 2>conftest.er1
35761 ac_status=$?
35762 grep -v '^ *+' conftest.er1 >conftest.err
35763 rm -f conftest.er1
35764 cat conftest.err >&5
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); } &&
bb9e79c0 35767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35770 ac_status=$?
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; } &&
35773 { ac_try='test -s conftest.$ac_objext'
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35776 ac_status=$?
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; }; then
35779 wx_cv_func_broken_snprintf_decl=no
35780else
35781 echo "$as_me: failed program was:" >&5
35782sed 's/^/| /' conftest.$ac_ext >&5
35783
35784wx_cv_func_broken_snprintf_decl=yes
35785
35786fi
35787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35788
35789
35790fi
35791echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35792echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35793
35794 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35795 cat >>confdefs.h <<\_ACEOF
35796#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35797_ACEOF
35798
35799 fi
35800 fi
35801
35802 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35803
35804 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35805echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35806if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35807 echo $ECHO_N "(cached) $ECHO_C" >&6
35808else
35809
35810 if test "$cross_compiling" = yes; then
5039a2df
VZ
35811
35812 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35813define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35814echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35815define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35816 wx_cv_func_snprintf_pos_params=no
35817
35818
8b6682b9
JS
35819else
35820 cat >conftest.$ac_ext <<_ACEOF
35821/* confdefs.h. */
35822_ACEOF
35823cat confdefs.h >>conftest.$ac_ext
35824cat >>conftest.$ac_ext <<_ACEOF
35825/* end confdefs.h. */
35826
35827 #include <stdio.h>
35828
35829 int main (void)
35830 {
35831 char buffer[128];
35832 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35833 if (strcmp ("2 3 1", buffer) == 0)
35834 exit (0);
35835 exit (1);
35836 }
35837
35838_ACEOF
35839rm -f conftest$ac_exeext
35840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35841 (eval $ac_link) 2>&5
35842 ac_status=$?
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846 (eval $ac_try) 2>&5
35847 ac_status=$?
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); }; }; then
35850 wx_cv_func_snprintf_pos_params=no
35851else
35852 echo "$as_me: program exited with status $ac_status" >&5
35853echo "$as_me: failed program was:" >&5
35854sed 's/^/| /' conftest.$ac_ext >&5
35855
35856( exit $ac_status )
35857wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35858fi
35859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35860fi
35861
35862
35863fi
35864echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35865echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35866
35867 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35868 cat >>confdefs.h <<\_ACEOF
35869#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35870_ACEOF
35871
35872 fi
4a767dd5
VZ
35873 fi
35874fi
35875
a848cd7e
SC
35876if test "$wxUSE_UNICODE" = yes; then
35877
35878
6a5c9b3f
RR
35879for ac_func in swprintf
35880do
35881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35882echo "$as_me:$LINENO: checking for $ac_func" >&5
35883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35884if eval "test \"\${$as_ac_var+set}\" = set"; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35886else
35887 cat >conftest.$ac_ext <<_ACEOF
35888/* confdefs.h. */
35889_ACEOF
35890cat confdefs.h >>conftest.$ac_ext
35891cat >>conftest.$ac_ext <<_ACEOF
35892/* end confdefs.h. */
35893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35895#define $ac_func innocuous_$ac_func
35896
35897/* System header to define __stub macros and hopefully few prototypes,
35898 which can conflict with char $ac_func (); below.
35899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35900 <limits.h> exists even on freestanding compilers. */
35901
35902#ifdef __STDC__
35903# include <limits.h>
35904#else
35905# include <assert.h>
35906#endif
35907
35908#undef $ac_func
35909
35910/* Override any gcc2 internal prototype to avoid an error. */
35911#ifdef __cplusplus
35912extern "C"
35913{
35914#endif
35915/* We use char because int might match the return type of a gcc2
35916 builtin and then its argument prototype would still apply. */
35917char $ac_func ();
35918/* The GNU C library defines this for functions which it implements
35919 to always fail with ENOSYS. Some functions are actually named
35920 something starting with __ and the normal name is an alias. */
35921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35922choke me
35923#else
35924char (*f) () = $ac_func;
35925#endif
35926#ifdef __cplusplus
35927}
35928#endif
35929
35930int
35931main ()
35932{
35933return f != $ac_func;
35934 ;
35935 return 0;
35936}
35937_ACEOF
35938rm -f conftest.$ac_objext conftest$ac_exeext
35939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35940 (eval $ac_link) 2>conftest.er1
35941 ac_status=$?
35942 grep -v '^ *+' conftest.er1 >conftest.err
35943 rm -f conftest.er1
35944 cat conftest.err >&5
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } &&
bb9e79c0 35947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35950 ac_status=$?
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; } &&
35953 { ac_try='test -s conftest$ac_exeext'
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35956 ac_status=$?
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; }; then
35959 eval "$as_ac_var=yes"
35960else
35961 echo "$as_me: failed program was:" >&5
35962sed 's/^/| /' conftest.$ac_ext >&5
35963
35964eval "$as_ac_var=no"
35965fi
35966rm -f conftest.err conftest.$ac_objext \
35967 conftest$ac_exeext conftest.$ac_ext
35968fi
35969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35971if test `eval echo '${'$as_ac_var'}'` = yes; then
35972 cat >>confdefs.h <<_ACEOF
35973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35974_ACEOF
35975
35976fi
35977done
35978
35979
35980 if test "$ac_cv_func_swprintf" = "yes"; then
35981 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35982echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35983if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35984 echo $ECHO_N "(cached) $ECHO_C" >&6
35985else
35986
35987 cat >conftest.$ac_ext <<_ACEOF
35988/* confdefs.h. */
35989_ACEOF
35990cat confdefs.h >>conftest.$ac_ext
35991cat >>conftest.$ac_ext <<_ACEOF
35992/* end confdefs.h. */
35993
35994 #include <stdio.h>
35995 #include <stdarg.h>
35996 #include <wchar.h>
35997
35998int
35999main ()
36000{
36001
36002 wchar_t *buf;
36003 const wchar_t *fmt = L"test";
36004 swprintf(buf, 10u, fmt);
36005
36006 ;
36007 return 0;
36008}
36009_ACEOF
36010rm -f conftest.$ac_objext
36011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36012 (eval $ac_compile) 2>conftest.er1
36013 ac_status=$?
36014 grep -v '^ *+' conftest.er1 >conftest.err
36015 rm -f conftest.er1
36016 cat conftest.err >&5
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); } &&
bb9e79c0 36019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
36020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021 (eval $ac_try) 2>&5
36022 ac_status=$?
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); }; } &&
36025 { ac_try='test -s conftest.$ac_objext'
36026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36027 (eval $ac_try) 2>&5
36028 ac_status=$?
36029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); }; }; then
36031 wx_cv_func_broken_swprintf_decl=no
36032else
36033 echo "$as_me: failed program was:" >&5
36034sed 's/^/| /' conftest.$ac_ext >&5
36035
36036wx_cv_func_broken_swprintf_decl=yes
36037
36038fi
36039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36040
36041
36042fi
36043echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
36044echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
36045
36046 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36047 cat >>confdefs.h <<\_ACEOF
36048#define HAVE_BROKEN_SWPRINTF_DECL 1
36049_ACEOF
36050
36051 fi
36052 fi
36053
36054
36055
a848cd7e 36056
fbe47c7b
VS
36057
36058
36059
36060for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
36061do
36062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36063echo "$as_me:$LINENO: checking for $ac_func" >&5
36064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36065if eval "test \"\${$as_ac_var+set}\" = set"; then
36066 echo $ECHO_N "(cached) $ECHO_C" >&6
36067else
36068 cat >conftest.$ac_ext <<_ACEOF
36069/* confdefs.h. */
36070_ACEOF
36071cat confdefs.h >>conftest.$ac_ext
36072cat >>conftest.$ac_ext <<_ACEOF
36073/* end confdefs.h. */
ac1cb8d3
VS
36074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36076#define $ac_func innocuous_$ac_func
36077
a848cd7e
SC
36078/* System header to define __stub macros and hopefully few prototypes,
36079 which can conflict with char $ac_func (); below.
36080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36081 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36082
a848cd7e
SC
36083#ifdef __STDC__
36084# include <limits.h>
36085#else
36086# include <assert.h>
36087#endif
ac1cb8d3
VS
36088
36089#undef $ac_func
36090
a848cd7e
SC
36091/* Override any gcc2 internal prototype to avoid an error. */
36092#ifdef __cplusplus
36093extern "C"
36094{
36095#endif
36096/* We use char because int might match the return type of a gcc2
36097 builtin and then its argument prototype would still apply. */
36098char $ac_func ();
36099/* The GNU C library defines this for functions which it implements
36100 to always fail with ENOSYS. Some functions are actually named
36101 something starting with __ and the normal name is an alias. */
36102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36103choke me
36104#else
36105char (*f) () = $ac_func;
36106#endif
36107#ifdef __cplusplus
36108}
36109#endif
36110
36111int
36112main ()
36113{
36114return f != $ac_func;
36115 ;
36116 return 0;
36117}
36118_ACEOF
36119rm -f conftest.$ac_objext conftest$ac_exeext
36120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36121 (eval $ac_link) 2>conftest.er1
a848cd7e 36122 ac_status=$?
ac1cb8d3
VS
36123 grep -v '^ *+' conftest.er1 >conftest.err
36124 rm -f conftest.er1
36125 cat conftest.err >&5
a848cd7e
SC
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); } &&
bb9e79c0 36128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; } &&
36134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 (eval $ac_try) 2>&5
36137 ac_status=$?
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); }; }; then
36140 eval "$as_ac_var=yes"
36141else
36142 echo "$as_me: failed program was:" >&5
36143sed 's/^/| /' conftest.$ac_ext >&5
36144
36145eval "$as_ac_var=no"
36146fi
ac1cb8d3
VS
36147rm -f conftest.err conftest.$ac_objext \
36148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36149fi
36150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36152if test `eval echo '${'$as_ac_var'}'` = yes; then
36153 cat >>confdefs.h <<_ACEOF
36154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36155_ACEOF
36156
36157fi
36158done
36159
36160
36161 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36162echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36163 cat >conftest.$ac_ext <<_ACEOF
36164/* confdefs.h. */
36165_ACEOF
36166cat confdefs.h >>conftest.$ac_ext
36167cat >>conftest.$ac_ext <<_ACEOF
36168/* end confdefs.h. */
36169#include <wchar.h>
36170int
36171main ()
36172{
36173&_vsnwprintf;
36174 ;
36175 return 0;
36176}
36177_ACEOF
36178rm -f conftest.$ac_objext
36179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36180 (eval $ac_compile) 2>conftest.er1
a848cd7e 36181 ac_status=$?
ac1cb8d3
VS
36182 grep -v '^ *+' conftest.er1 >conftest.err
36183 rm -f conftest.er1
36184 cat conftest.err >&5
a848cd7e
SC
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); } &&
bb9e79c0 36187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199 echo "$as_me:$LINENO: result: yes" >&5
36200echo "${ECHO_T}yes" >&6
36201 cat >>confdefs.h <<\_ACEOF
36202#define HAVE__VSNWPRINTF 1
36203_ACEOF
36204
36205else
36206 echo "$as_me: failed program was:" >&5
36207sed 's/^/| /' conftest.$ac_ext >&5
36208
36209echo "$as_me:$LINENO: result: no" >&5
36210echo "${ECHO_T}no" >&6
36211fi
ac1cb8d3 36212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36213fi
36214
6ebeb4c7
VZ
36215if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36216
36217for ac_func in fnmatch
36218do
36219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36220echo "$as_me:$LINENO: checking for $ac_func" >&5
36221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36222if eval "test \"\${$as_ac_var+set}\" = set"; then
36223 echo $ECHO_N "(cached) $ECHO_C" >&6
36224else
36225 cat >conftest.$ac_ext <<_ACEOF
36226/* confdefs.h. */
36227_ACEOF
36228cat confdefs.h >>conftest.$ac_ext
36229cat >>conftest.$ac_ext <<_ACEOF
36230/* end confdefs.h. */
36231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36233#define $ac_func innocuous_$ac_func
36234
36235/* System header to define __stub macros and hopefully few prototypes,
36236 which can conflict with char $ac_func (); below.
36237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36238 <limits.h> exists even on freestanding compilers. */
36239
36240#ifdef __STDC__
36241# include <limits.h>
36242#else
36243# include <assert.h>
36244#endif
36245
36246#undef $ac_func
36247
36248/* Override any gcc2 internal prototype to avoid an error. */
36249#ifdef __cplusplus
36250extern "C"
36251{
36252#endif
36253/* We use char because int might match the return type of a gcc2
36254 builtin and then its argument prototype would still apply. */
36255char $ac_func ();
36256/* The GNU C library defines this for functions which it implements
36257 to always fail with ENOSYS. Some functions are actually named
36258 something starting with __ and the normal name is an alias. */
36259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36260choke me
36261#else
36262char (*f) () = $ac_func;
36263#endif
36264#ifdef __cplusplus
36265}
36266#endif
36267
36268int
36269main ()
36270{
36271return f != $ac_func;
36272 ;
36273 return 0;
36274}
36275_ACEOF
36276rm -f conftest.$ac_objext conftest$ac_exeext
36277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36278 (eval $ac_link) 2>conftest.er1
36279 ac_status=$?
36280 grep -v '^ *+' conftest.er1 >conftest.err
36281 rm -f conftest.er1
36282 cat conftest.err >&5
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); } &&
bb9e79c0 36285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287 (eval $ac_try) 2>&5
36288 ac_status=$?
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; } &&
36291 { ac_try='test -s conftest$ac_exeext'
36292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293 (eval $ac_try) 2>&5
36294 ac_status=$?
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); }; }; then
36297 eval "$as_ac_var=yes"
36298else
36299 echo "$as_me: failed program was:" >&5
36300sed 's/^/| /' conftest.$ac_ext >&5
36301
36302eval "$as_ac_var=no"
36303fi
36304rm -f conftest.err conftest.$ac_objext \
36305 conftest$ac_exeext conftest.$ac_ext
36306fi
36307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36309if test `eval echo '${'$as_ac_var'}'` = yes; then
36310 cat >>confdefs.h <<_ACEOF
36311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36312_ACEOF
36313
36314fi
36315done
36316
36317fi
36318
36319if test "$wxUSE_FILE" = "yes"; then
36320
36321for ac_func in fsync
36322do
36323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36324echo "$as_me:$LINENO: checking for $ac_func" >&5
36325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36326if eval "test \"\${$as_ac_var+set}\" = set"; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36328else
36329 cat >conftest.$ac_ext <<_ACEOF
36330/* confdefs.h. */
36331_ACEOF
36332cat confdefs.h >>conftest.$ac_ext
36333cat >>conftest.$ac_ext <<_ACEOF
36334/* end confdefs.h. */
36335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36337#define $ac_func innocuous_$ac_func
36338
36339/* System header to define __stub macros and hopefully few prototypes,
36340 which can conflict with char $ac_func (); below.
36341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36342 <limits.h> exists even on freestanding compilers. */
36343
36344#ifdef __STDC__
36345# include <limits.h>
36346#else
36347# include <assert.h>
36348#endif
36349
36350#undef $ac_func
36351
36352/* Override any gcc2 internal prototype to avoid an error. */
36353#ifdef __cplusplus
36354extern "C"
36355{
36356#endif
36357/* We use char because int might match the return type of a gcc2
36358 builtin and then its argument prototype would still apply. */
36359char $ac_func ();
36360/* The GNU C library defines this for functions which it implements
36361 to always fail with ENOSYS. Some functions are actually named
36362 something starting with __ and the normal name is an alias. */
36363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36364choke me
36365#else
36366char (*f) () = $ac_func;
36367#endif
36368#ifdef __cplusplus
36369}
36370#endif
36371
36372int
36373main ()
36374{
36375return f != $ac_func;
36376 ;
36377 return 0;
36378}
36379_ACEOF
36380rm -f conftest.$ac_objext conftest$ac_exeext
36381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36382 (eval $ac_link) 2>conftest.er1
36383 ac_status=$?
36384 grep -v '^ *+' conftest.er1 >conftest.err
36385 rm -f conftest.er1
36386 cat conftest.err >&5
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } &&
bb9e79c0 36389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36391 (eval $ac_try) 2>&5
36392 ac_status=$?
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); }; } &&
36395 { ac_try='test -s conftest$ac_exeext'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36398 ac_status=$?
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
36401 eval "$as_ac_var=yes"
36402else
36403 echo "$as_me: failed program was:" >&5
36404sed 's/^/| /' conftest.$ac_ext >&5
36405
36406eval "$as_ac_var=no"
36407fi
36408rm -f conftest.err conftest.$ac_objext \
36409 conftest$ac_exeext conftest.$ac_ext
36410fi
36411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36413if test `eval echo '${'$as_ac_var'}'` = yes; then
36414 cat >>confdefs.h <<_ACEOF
36415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36416_ACEOF
36417
36418fi
36419done
36420
36421fi
a848cd7e
SC
36422
36423
c2e9ada4
VZ
36424for ac_func in round
36425do
36426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36427echo "$as_me:$LINENO: checking for $ac_func" >&5
36428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36429if eval "test \"\${$as_ac_var+set}\" = set"; then
36430 echo $ECHO_N "(cached) $ECHO_C" >&6
36431else
36432 cat >conftest.$ac_ext <<_ACEOF
36433/* confdefs.h. */
36434_ACEOF
36435cat confdefs.h >>conftest.$ac_ext
36436cat >>conftest.$ac_ext <<_ACEOF
36437/* end confdefs.h. */
36438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36440#define $ac_func innocuous_$ac_func
36441
36442/* System header to define __stub macros and hopefully few prototypes,
36443 which can conflict with char $ac_func (); below.
36444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36445 <limits.h> exists even on freestanding compilers. */
36446
36447#ifdef __STDC__
36448# include <limits.h>
36449#else
36450# include <assert.h>
36451#endif
36452
36453#undef $ac_func
36454
36455/* Override any gcc2 internal prototype to avoid an error. */
36456#ifdef __cplusplus
36457extern "C"
36458{
36459#endif
36460/* We use char because int might match the return type of a gcc2
36461 builtin and then its argument prototype would still apply. */
36462char $ac_func ();
36463/* The GNU C library defines this for functions which it implements
36464 to always fail with ENOSYS. Some functions are actually named
36465 something starting with __ and the normal name is an alias. */
36466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36467choke me
36468#else
36469char (*f) () = $ac_func;
36470#endif
36471#ifdef __cplusplus
36472}
36473#endif
36474
36475int
36476main ()
36477{
36478return f != $ac_func;
36479 ;
36480 return 0;
36481}
36482_ACEOF
36483rm -f conftest.$ac_objext conftest$ac_exeext
36484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36485 (eval $ac_link) 2>conftest.er1
36486 ac_status=$?
36487 grep -v '^ *+' conftest.er1 >conftest.err
36488 rm -f conftest.er1
36489 cat conftest.err >&5
36490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36491 (exit $ac_status); } &&
bb9e79c0 36492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36494 (eval $ac_try) 2>&5
36495 ac_status=$?
36496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497 (exit $ac_status); }; } &&
36498 { ac_try='test -s conftest$ac_exeext'
36499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36500 (eval $ac_try) 2>&5
36501 ac_status=$?
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); }; }; then
36504 eval "$as_ac_var=yes"
36505else
36506 echo "$as_me: failed program was:" >&5
36507sed 's/^/| /' conftest.$ac_ext >&5
36508
36509eval "$as_ac_var=no"
36510fi
36511rm -f conftest.err conftest.$ac_objext \
36512 conftest$ac_exeext conftest.$ac_ext
36513fi
36514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36516if test `eval echo '${'$as_ac_var'}'` = yes; then
36517 cat >>confdefs.h <<_ACEOF
36518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36519_ACEOF
36520
36521fi
36522done
36523
36524if test "$ac_cv_func_round" = yes; then
36525 echo "$as_me:$LINENO: checking whether round is declared" >&5
36526echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36527if test "${ac_cv_have_decl_round+set}" = set; then
36528 echo $ECHO_N "(cached) $ECHO_C" >&6
36529else
36530 cat >conftest.$ac_ext <<_ACEOF
36531/* confdefs.h. */
36532_ACEOF
36533cat confdefs.h >>conftest.$ac_ext
36534cat >>conftest.$ac_ext <<_ACEOF
36535/* end confdefs.h. */
36536#include <math.h>
36537
36538int
36539main ()
36540{
36541#ifndef round
36542 char *p = (char *) round;
36543#endif
36544
36545 ;
36546 return 0;
36547}
36548_ACEOF
36549rm -f conftest.$ac_objext
36550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36551 (eval $ac_compile) 2>conftest.er1
36552 ac_status=$?
36553 grep -v '^ *+' conftest.er1 >conftest.err
36554 rm -f conftest.er1
36555 cat conftest.err >&5
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); } &&
bb9e79c0 36558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36560 (eval $ac_try) 2>&5
36561 ac_status=$?
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); }; } &&
36564 { ac_try='test -s conftest.$ac_objext'
36565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566 (eval $ac_try) 2>&5
36567 ac_status=$?
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); }; }; then
36570 ac_cv_have_decl_round=yes
36571else
36572 echo "$as_me: failed program was:" >&5
36573sed 's/^/| /' conftest.$ac_ext >&5
36574
36575ac_cv_have_decl_round=no
36576fi
36577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36578fi
36579echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36580echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36581if test $ac_cv_have_decl_round = yes; then
36582
36583cat >>confdefs.h <<_ACEOF
36584#define HAVE_DECL_ROUND 1
36585_ACEOF
36586
36587
36588else
36589 cat >>confdefs.h <<_ACEOF
36590#define HAVE_DECL_ROUND 0
36591_ACEOF
36592
36593
36594fi
36595
36596
36597fi
36598
36599
a848cd7e
SC
36600if test "$TOOLKIT" != "MSW"; then
36601
36602
a848cd7e
SC
36603
36604
36605
36606# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36607if test "${with_libiconv_prefix+set}" = set; then
36608 withval="$with_libiconv_prefix"
36609
36610 for dir in `echo "$withval" | tr : ' '`; do
36611 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36612 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36613 done
36614
36615fi;
36616
36617 echo "$as_me:$LINENO: checking for iconv" >&5
36618echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36619if test "${am_cv_func_iconv+set}" = set; then
36620 echo $ECHO_N "(cached) $ECHO_C" >&6
36621else
36622
36623 am_cv_func_iconv="no, consider installing GNU libiconv"
36624 am_cv_lib_iconv=no
36625 cat >conftest.$ac_ext <<_ACEOF
36626/* confdefs.h. */
36627_ACEOF
36628cat confdefs.h >>conftest.$ac_ext
36629cat >>conftest.$ac_ext <<_ACEOF
36630/* end confdefs.h. */
36631#include <stdlib.h>
36632#include <iconv.h>
36633int
36634main ()
36635{
36636iconv_t cd = iconv_open("","");
36637 iconv(cd,NULL,NULL,NULL,NULL);
36638 iconv_close(cd);
36639 ;
36640 return 0;
36641}
36642_ACEOF
36643rm -f conftest.$ac_objext conftest$ac_exeext
36644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36645 (eval $ac_link) 2>conftest.er1
a848cd7e 36646 ac_status=$?
ac1cb8d3
VS
36647 grep -v '^ *+' conftest.er1 >conftest.err
36648 rm -f conftest.er1
36649 cat conftest.err >&5
a848cd7e
SC
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); } &&
bb9e79c0 36652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36655 ac_status=$?
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; } &&
36658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; }; then
36664 am_cv_func_iconv=yes
36665else
36666 echo "$as_me: failed program was:" >&5
36667sed 's/^/| /' conftest.$ac_ext >&5
36668
36669fi
ac1cb8d3
VS
36670rm -f conftest.err conftest.$ac_objext \
36671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36672 if test "$am_cv_func_iconv" != yes; then
36673 am_save_LIBS="$LIBS"
36674 LIBS="$LIBS -liconv"
36675 cat >conftest.$ac_ext <<_ACEOF
36676/* confdefs.h. */
36677_ACEOF
36678cat confdefs.h >>conftest.$ac_ext
36679cat >>conftest.$ac_ext <<_ACEOF
36680/* end confdefs.h. */
36681#include <stdlib.h>
36682#include <iconv.h>
36683int
36684main ()
36685{
36686iconv_t cd = iconv_open("","");
36687 iconv(cd,NULL,NULL,NULL,NULL);
36688 iconv_close(cd);
36689 ;
36690 return 0;
36691}
36692_ACEOF
36693rm -f conftest.$ac_objext conftest$ac_exeext
36694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36695 (eval $ac_link) 2>conftest.er1
a848cd7e 36696 ac_status=$?
ac1cb8d3
VS
36697 grep -v '^ *+' conftest.er1 >conftest.err
36698 rm -f conftest.er1
36699 cat conftest.err >&5
a848cd7e
SC
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
bb9e79c0 36702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36704 (eval $ac_try) 2>&5
36705 ac_status=$?
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; } &&
36708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; }; then
36714 am_cv_lib_iconv=yes
36715 am_cv_func_iconv=yes
36716else
36717 echo "$as_me: failed program was:" >&5
36718sed 's/^/| /' conftest.$ac_ext >&5
36719
36720fi
ac1cb8d3
VS
36721rm -f conftest.err conftest.$ac_objext \
36722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36723 LIBS="$am_save_LIBS"
36724 fi
36725
36726fi
36727echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36728echo "${ECHO_T}$am_cv_func_iconv" >&6
36729 if test "$am_cv_func_iconv" = yes; then
36730
36731cat >>confdefs.h <<\_ACEOF
36732#define HAVE_ICONV 1
36733_ACEOF
36734
36735 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36736echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36737if test "${wx_cv_func_iconv_const+set}" = set; then
36738 echo $ECHO_N "(cached) $ECHO_C" >&6
36739else
36740 cat >conftest.$ac_ext <<_ACEOF
36741/* confdefs.h. */
36742_ACEOF
36743cat confdefs.h >>conftest.$ac_ext
36744cat >>conftest.$ac_ext <<_ACEOF
36745/* end confdefs.h. */
36746
36747#include <stdlib.h>
36748#include <iconv.h>
36749extern
36750#ifdef __cplusplus
36751"C"
36752#endif
36753#if defined(__STDC__) || defined(__cplusplus)
36754size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36755#else
36756size_t iconv();
36757#endif
36758
36759int
36760main ()
36761{
36762
36763 ;
36764 return 0;
36765}
36766_ACEOF
36767rm -f conftest.$ac_objext
36768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36769 (eval $ac_compile) 2>conftest.er1
a848cd7e 36770 ac_status=$?
ac1cb8d3
VS
36771 grep -v '^ *+' conftest.er1 >conftest.err
36772 rm -f conftest.er1
36773 cat conftest.err >&5
a848cd7e
SC
36774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); } &&
bb9e79c0 36776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36778 (eval $ac_try) 2>&5
36779 ac_status=$?
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); }; } &&
36782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36784 (eval $ac_try) 2>&5
36785 ac_status=$?
36786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787 (exit $ac_status); }; }; then
36788 wx_cv_func_iconv_const="no"
36789else
36790 echo "$as_me: failed program was:" >&5
36791sed 's/^/| /' conftest.$ac_ext >&5
36792
36793wx_cv_func_iconv_const="yes"
36794
36795fi
ac1cb8d3 36796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36797
36798fi
36799echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36800echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36801
36802 iconv_const=
36803 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36804 iconv_const="const"
36805 fi
36806
36807
36808cat >>confdefs.h <<_ACEOF
36809#define ICONV_CONST $iconv_const
36810_ACEOF
36811
36812 fi
36813 LIBICONV=
36814 if test "$am_cv_lib_iconv" = yes; then
36815 LIBICONV="-liconv"
36816 fi
36817
36818
36819LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36820
36821if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36822
36823for ac_func in sigaction
36824do
36825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36826echo "$as_me:$LINENO: checking for $ac_func" >&5
36827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36828if eval "test \"\${$as_ac_var+set}\" = set"; then
36829 echo $ECHO_N "(cached) $ECHO_C" >&6
36830else
36831 cat >conftest.$ac_ext <<_ACEOF
36832/* confdefs.h. */
36833_ACEOF
36834cat confdefs.h >>conftest.$ac_ext
36835cat >>conftest.$ac_ext <<_ACEOF
36836/* end confdefs.h. */
ac1cb8d3
VS
36837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36839#define $ac_func innocuous_$ac_func
36840
a848cd7e
SC
36841/* System header to define __stub macros and hopefully few prototypes,
36842 which can conflict with char $ac_func (); below.
36843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36844 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36845
a848cd7e
SC
36846#ifdef __STDC__
36847# include <limits.h>
36848#else
36849# include <assert.h>
36850#endif
ac1cb8d3
VS
36851
36852#undef $ac_func
36853
a848cd7e
SC
36854/* Override any gcc2 internal prototype to avoid an error. */
36855#ifdef __cplusplus
36856extern "C"
36857{
36858#endif
36859/* We use char because int might match the return type of a gcc2
36860 builtin and then its argument prototype would still apply. */
36861char $ac_func ();
36862/* The GNU C library defines this for functions which it implements
36863 to always fail with ENOSYS. Some functions are actually named
36864 something starting with __ and the normal name is an alias. */
36865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36866choke me
36867#else
36868char (*f) () = $ac_func;
36869#endif
36870#ifdef __cplusplus
36871}
36872#endif
36873
36874int
36875main ()
36876{
36877return f != $ac_func;
36878 ;
36879 return 0;
36880}
36881_ACEOF
36882rm -f conftest.$ac_objext conftest$ac_exeext
36883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36884 (eval $ac_link) 2>conftest.er1
a848cd7e 36885 ac_status=$?
ac1cb8d3
VS
36886 grep -v '^ *+' conftest.er1 >conftest.err
36887 rm -f conftest.er1
36888 cat conftest.err >&5
a848cd7e
SC
36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 (exit $ac_status); } &&
bb9e79c0 36891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36893 (eval $ac_try) 2>&5
36894 ac_status=$?
36895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); }; } &&
36897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36899 (eval $ac_try) 2>&5
36900 ac_status=$?
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); }; }; then
36903 eval "$as_ac_var=yes"
36904else
36905 echo "$as_me: failed program was:" >&5
36906sed 's/^/| /' conftest.$ac_ext >&5
36907
36908eval "$as_ac_var=no"
36909fi
ac1cb8d3
VS
36910rm -f conftest.err conftest.$ac_objext \
36911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36912fi
36913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36915if test `eval echo '${'$as_ac_var'}'` = yes; then
36916 cat >>confdefs.h <<_ACEOF
36917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36918_ACEOF
36919
36920fi
36921done
36922
36923
36924 if test "$ac_cv_func_sigaction" = "no"; then
36925 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36926echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36927 wxUSE_ON_FATAL_EXCEPTION=no
36928 fi
36929
36930 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36931 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36932echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36933if test "${wx_cv_type_sa_handler+set}" = set; then
36934 echo $ECHO_N "(cached) $ECHO_C" >&6
36935else
36936
36937 cat >conftest.$ac_ext <<_ACEOF
36938/* confdefs.h. */
36939_ACEOF
36940cat confdefs.h >>conftest.$ac_ext
36941cat >>conftest.$ac_ext <<_ACEOF
36942/* end confdefs.h. */
36943#include <signal.h>
36944int
36945main ()
36946{
36947
36948 extern void testSigHandler(int);
36949
36950 struct sigaction sa;
36951 sa.sa_handler = testSigHandler;
36952
36953 ;
36954 return 0;
36955}
36956_ACEOF
36957rm -f conftest.$ac_objext
36958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36959 (eval $ac_compile) 2>conftest.er1
a848cd7e 36960 ac_status=$?
ac1cb8d3
VS
36961 grep -v '^ *+' conftest.er1 >conftest.err
36962 rm -f conftest.er1
36963 cat conftest.err >&5
a848cd7e
SC
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); } &&
bb9e79c0 36966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36968 (eval $ac_try) 2>&5
36969 ac_status=$?
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); }; } &&
36972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; }; then
36978
36979 wx_cv_type_sa_handler=int
36980
36981else
36982 echo "$as_me: failed program was:" >&5
36983sed 's/^/| /' conftest.$ac_ext >&5
36984
36985
36986 wx_cv_type_sa_handler=void
36987
36988fi
ac1cb8d3 36989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36990
36991fi
36992echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36993echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36994
a848cd7e
SC
36995 cat >>confdefs.h <<_ACEOF
36996#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36997_ACEOF
36998
36999 fi
37000fi
37001
eaff0f0d 37002if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
37003 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37004echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
37005if test "${wx_cv_func_backtrace+set}" = set; then
37006 echo $ECHO_N "(cached) $ECHO_C" >&6
37007else
37008
37009 cat >conftest.$ac_ext <<_ACEOF
37010/* confdefs.h. */
37011_ACEOF
37012cat confdefs.h >>conftest.$ac_ext
37013cat >>conftest.$ac_ext <<_ACEOF
37014/* end confdefs.h. */
37015#include <execinfo.h>
37016int
37017main ()
37018{
37019
37020 void *trace[1];
37021 char **messages;
37022
37023 backtrace(trace, 1);
37024 messages = backtrace_symbols(trace, 1);
37025
37026 ;
37027 return 0;
37028}
37029_ACEOF
37030rm -f conftest.$ac_objext
37031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37032 (eval $ac_compile) 2>conftest.er1
37033 ac_status=$?
37034 grep -v '^ *+' conftest.er1 >conftest.err
37035 rm -f conftest.er1
37036 cat conftest.err >&5
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); } &&
bb9e79c0 37039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041 (eval $ac_try) 2>&5
37042 ac_status=$?
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; } &&
37045 { ac_try='test -s conftest.$ac_objext'
37046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047 (eval $ac_try) 2>&5
37048 ac_status=$?
37049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050 (exit $ac_status); }; }; then
37051 wx_cv_func_backtrace=yes
37052else
37053 echo "$as_me: failed program was:" >&5
37054sed 's/^/| /' conftest.$ac_ext >&5
37055
37056wx_cv_func_backtrace=no
37057
37058fi
37059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37060
37061
37062fi
37063echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37064echo "${ECHO_T}$wx_cv_func_backtrace" >&6
37065
37066
37067 if test "$wx_cv_func_backtrace" = "no"; then
37068 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37069echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37070 wxUSE_STACKWALKER=no
37071 else
37072 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37073echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
37074if test "${wx_cv_func_cxa_demangle+set}" = set; then
37075 echo $ECHO_N "(cached) $ECHO_C" >&6
37076else
37077
37078 cat >conftest.$ac_ext <<_ACEOF
37079/* confdefs.h. */
37080_ACEOF
37081cat confdefs.h >>conftest.$ac_ext
37082cat >>conftest.$ac_ext <<_ACEOF
37083/* end confdefs.h. */
37084#include <cxxabi.h>
37085int
37086main ()
37087{
37088
37089 int rc;
37090 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37091
37092 ;
37093 return 0;
37094}
37095_ACEOF
dfe0c803
JS
37096rm -f conftest.$ac_objext conftest$ac_exeext
37097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37098 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37099 ac_status=$?
37100 grep -v '^ *+' conftest.er1 >conftest.err
37101 rm -f conftest.er1
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
bb9e79c0 37105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107 (eval $ac_try) 2>&5
37108 ac_status=$?
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); }; } &&
dfe0c803 37111 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
37112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37113 (eval $ac_try) 2>&5
37114 ac_status=$?
37115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37116 (exit $ac_status); }; }; then
37117 wx_cv_func_cxa_demangle=yes
37118else
37119 echo "$as_me: failed program was:" >&5
37120sed 's/^/| /' conftest.$ac_ext >&5
37121
37122wx_cv_func_cxa_demangle=no
37123
37124fi
dfe0c803
JS
37125rm -f conftest.err conftest.$ac_objext \
37126 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
37127
37128
37129fi
37130echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37131echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37132
37133 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37134 cat >>confdefs.h <<\_ACEOF
37135#define HAVE_CXA_DEMANGLE 1
37136_ACEOF
37137
37138 fi
37139 fi
eaff0f0d
VZ
37140fi
37141
898beab1
DE
37142if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37143 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37144echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37145 wxUSE_STACKWALKER=no
37146fi
37147
37148
a848cd7e
SC
37149
37150
37151for ac_func in mkstemp mktemp
37152do
37153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37154echo "$as_me:$LINENO: checking for $ac_func" >&5
37155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37156if eval "test \"\${$as_ac_var+set}\" = set"; then
37157 echo $ECHO_N "(cached) $ECHO_C" >&6
37158else
37159 cat >conftest.$ac_ext <<_ACEOF
37160/* confdefs.h. */
37161_ACEOF
37162cat confdefs.h >>conftest.$ac_ext
37163cat >>conftest.$ac_ext <<_ACEOF
37164/* end confdefs.h. */
ac1cb8d3
VS
37165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37167#define $ac_func innocuous_$ac_func
37168
a848cd7e
SC
37169/* System header to define __stub macros and hopefully few prototypes,
37170 which can conflict with char $ac_func (); below.
37171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37172 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37173
a848cd7e
SC
37174#ifdef __STDC__
37175# include <limits.h>
37176#else
37177# include <assert.h>
37178#endif
ac1cb8d3
VS
37179
37180#undef $ac_func
37181
a848cd7e
SC
37182/* Override any gcc2 internal prototype to avoid an error. */
37183#ifdef __cplusplus
37184extern "C"
37185{
37186#endif
37187/* We use char because int might match the return type of a gcc2
37188 builtin and then its argument prototype would still apply. */
37189char $ac_func ();
37190/* The GNU C library defines this for functions which it implements
37191 to always fail with ENOSYS. Some functions are actually named
37192 something starting with __ and the normal name is an alias. */
37193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37194choke me
37195#else
37196char (*f) () = $ac_func;
37197#endif
37198#ifdef __cplusplus
37199}
37200#endif
37201
37202int
37203main ()
37204{
37205return f != $ac_func;
37206 ;
37207 return 0;
37208}
37209_ACEOF
37210rm -f conftest.$ac_objext conftest$ac_exeext
37211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37212 (eval $ac_link) 2>conftest.er1
a848cd7e 37213 ac_status=$?
ac1cb8d3
VS
37214 grep -v '^ *+' conftest.er1 >conftest.err
37215 rm -f conftest.er1
37216 cat conftest.err >&5
a848cd7e
SC
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); } &&
bb9e79c0 37219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37222 ac_status=$?
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; } &&
37225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 eval "$as_ac_var=yes"
37232else
37233 echo "$as_me: failed program was:" >&5
37234sed 's/^/| /' conftest.$ac_ext >&5
37235
37236eval "$as_ac_var=no"
37237fi
ac1cb8d3
VS
37238rm -f conftest.err conftest.$ac_objext \
37239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37240fi
37241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37243if test `eval echo '${'$as_ac_var'}'` = yes; then
37244 cat >>confdefs.h <<_ACEOF
37245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37246_ACEOF
37247 break
37248fi
37249done
37250
37251
37252echo "$as_me:$LINENO: checking for statfs" >&5
37253echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37254if test "${wx_cv_func_statfs+set}" = set; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37256else
37257 cat >conftest.$ac_ext <<_ACEOF
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
37263
37264 #if defined(__BSD__)
84ae7ca4
VZ
37265 #include <sys/param.h>
37266 #include <sys/mount.h>
a848cd7e 37267 #else
84ae7ca4 37268 #include <sys/vfs.h>
a848cd7e
SC
37269 #endif
37270
37271int
37272main ()
37273{
37274
37275 long l;
37276 struct statfs fs;
37277 statfs("/", &fs);
37278 l = fs.f_bsize;
37279 l += fs.f_blocks;
37280 l += fs.f_bavail;
37281
37282 ;
37283 return 0;
37284}
37285_ACEOF
37286rm -f conftest.$ac_objext
37287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37288 (eval $ac_compile) 2>conftest.er1
a848cd7e 37289 ac_status=$?
ac1cb8d3
VS
37290 grep -v '^ *+' conftest.er1 >conftest.err
37291 rm -f conftest.er1
37292 cat conftest.err >&5
a848cd7e
SC
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } &&
bb9e79c0 37295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37298 ac_status=$?
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; } &&
37301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37303 (eval $ac_try) 2>&5
37304 ac_status=$?
37305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); }; }; then
84ae7ca4 37307 wx_cv_func_statfs=yes
a848cd7e
SC
37308else
37309 echo "$as_me: failed program was:" >&5
37310sed 's/^/| /' conftest.$ac_ext >&5
37311
84ae7ca4 37312wx_cv_func_statfs=no
a848cd7e
SC
37313
37314fi
ac1cb8d3 37315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37316
37317fi
37318echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37319echo "${ECHO_T}$wx_cv_func_statfs" >&6
37320
37321if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 37322 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
37323echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37324if test "${wx_cv_func_statfs_decl+set}" = set; then
37325 echo $ECHO_N "(cached) $ECHO_C" >&6
37326else
0683aca6
VZ
37327 cat >conftest.$ac_ext <<_ACEOF
37328/* confdefs.h. */
37329_ACEOF
37330cat confdefs.h >>conftest.$ac_ext
37331cat >>conftest.$ac_ext <<_ACEOF
37332/* end confdefs.h. */
84ae7ca4 37333
0683aca6
VZ
37334 #if defined(__BSD__)
37335 #include <sys/param.h>
37336 #include <sys/mount.h>
37337 #else
37338 #include <sys/vfs.h>
37339 #endif
37340
37341int
37342main ()
37343{
37344
37345 struct statfs fs;
37346 statfs("", &fs);
37347
37348 ;
37349 return 0;
37350}
37351_ACEOF
37352rm -f conftest.$ac_objext
37353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37354 (eval $ac_compile) 2>conftest.er1
37355 ac_status=$?
37356 grep -v '^ *+' conftest.er1 >conftest.err
37357 rm -f conftest.er1
37358 cat conftest.err >&5
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); } &&
bb9e79c0 37361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37364 ac_status=$?
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; } &&
37367 { ac_try='test -s conftest.$ac_objext'
37368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37369 (eval $ac_try) 2>&5
37370 ac_status=$?
37371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372 (exit $ac_status); }; }; then
37373 wx_cv_func_statfs_decl=yes
37374else
37375 echo "$as_me: failed program was:" >&5
37376sed 's/^/| /' conftest.$ac_ext >&5
37377
37378wx_cv_func_statfs_decl=no
37379
37380fi
37381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37382
37383fi
37384echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37385echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37386
37387 if test "$wx_cv_func_statfs_decl" = "yes"; then
37388 cat >>confdefs.h <<\_ACEOF
37389#define HAVE_STATFS_DECL 1
37390_ACEOF
37391
37392 fi
37393
a848cd7e
SC
37394 wx_cv_type_statvfs_t="struct statfs"
37395 cat >>confdefs.h <<\_ACEOF
37396#define HAVE_STATFS 1
37397_ACEOF
37398
37399else
37400 echo "$as_me:$LINENO: checking for statvfs" >&5
37401echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37402if test "${wx_cv_func_statvfs+set}" = set; then
37403 echo $ECHO_N "(cached) $ECHO_C" >&6
37404else
37405 cat >conftest.$ac_ext <<_ACEOF
37406/* confdefs.h. */
37407_ACEOF
37408cat confdefs.h >>conftest.$ac_ext
37409cat >>conftest.$ac_ext <<_ACEOF
37410/* end confdefs.h. */
37411
37412 #include <stddef.h>
37413 #include <sys/statvfs.h>
37414
37415int
37416main ()
37417{
37418
37419 statvfs("/", NULL);
37420
37421 ;
37422 return 0;
37423}
37424_ACEOF
37425rm -f conftest.$ac_objext
37426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37427 (eval $ac_compile) 2>conftest.er1
a848cd7e 37428 ac_status=$?
ac1cb8d3
VS
37429 grep -v '^ *+' conftest.er1 >conftest.err
37430 rm -f conftest.er1
37431 cat conftest.err >&5
a848cd7e
SC
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); } &&
bb9e79c0 37434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436 (eval $ac_try) 2>&5
37437 ac_status=$?
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); }; } &&
37440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; }; then
37446 wx_cv_func_statvfs=yes
37447else
37448 echo "$as_me: failed program was:" >&5
37449sed 's/^/| /' conftest.$ac_ext >&5
37450
37451wx_cv_func_statvfs=no
37452
37453fi
ac1cb8d3 37454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37455
37456fi
37457echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37458echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37459
37460 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37461 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37462echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37463if test "${wx_cv_type_statvfs_t+set}" = set; then
37464 echo $ECHO_N "(cached) $ECHO_C" >&6
37465else
37466 cat >conftest.$ac_ext <<_ACEOF
37467/* confdefs.h. */
37468_ACEOF
37469cat confdefs.h >>conftest.$ac_ext
37470cat >>conftest.$ac_ext <<_ACEOF
37471/* end confdefs.h. */
37472
37473 #include <sys/statvfs.h>
37474
37475int
37476main ()
37477{
37478
37479 long l;
37480 statvfs_t fs;
37481 statvfs("/", &fs);
37482 l = fs.f_bsize;
37483 l += fs.f_blocks;
37484 l += fs.f_bavail;
37485
37486 ;
37487 return 0;
37488}
37489_ACEOF
37490rm -f conftest.$ac_objext
37491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37492 (eval $ac_compile) 2>conftest.er1
a848cd7e 37493 ac_status=$?
ac1cb8d3
VS
37494 grep -v '^ *+' conftest.er1 >conftest.err
37495 rm -f conftest.er1
37496 cat conftest.err >&5
a848cd7e
SC
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
bb9e79c0 37499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; } &&
37505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37507 (eval $ac_try) 2>&5
37508 ac_status=$?
37509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510 (exit $ac_status); }; }; then
37511 wx_cv_type_statvfs_t=statvfs_t
37512else
37513 echo "$as_me: failed program was:" >&5
37514sed 's/^/| /' conftest.$ac_ext >&5
37515
37516
37517 cat >conftest.$ac_ext <<_ACEOF
37518/* confdefs.h. */
37519_ACEOF
37520cat confdefs.h >>conftest.$ac_ext
37521cat >>conftest.$ac_ext <<_ACEOF
37522/* end confdefs.h. */
37523
37524 #include <sys/statvfs.h>
37525
37526int
37527main ()
37528{
37529
37530 long l;
37531 struct statvfs fs;
37532 statvfs("/", &fs);
37533 l = fs.f_bsize;
37534 l += fs.f_blocks;
37535 l += fs.f_bavail;
37536
37537 ;
37538 return 0;
37539}
37540_ACEOF
37541rm -f conftest.$ac_objext
37542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37543 (eval $ac_compile) 2>conftest.er1
a848cd7e 37544 ac_status=$?
ac1cb8d3
VS
37545 grep -v '^ *+' conftest.er1 >conftest.err
37546 rm -f conftest.er1
37547 cat conftest.err >&5
a848cd7e
SC
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } &&
bb9e79c0 37550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37552 (eval $ac_try) 2>&5
37553 ac_status=$?
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); }; } &&
37556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558 (eval $ac_try) 2>&5
37559 ac_status=$?
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; }; then
37562 wx_cv_type_statvfs_t="struct statvfs"
37563else
37564 echo "$as_me: failed program was:" >&5
37565sed 's/^/| /' conftest.$ac_ext >&5
37566
37567wx_cv_type_statvfs_t="unknown"
37568
37569fi
ac1cb8d3 37570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37571
37572
37573fi
ac1cb8d3 37574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37575
37576fi
37577echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37578echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37579
a848cd7e
SC
37580 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37581 cat >>confdefs.h <<\_ACEOF
37582#define HAVE_STATVFS 1
37583_ACEOF
37584
37585 fi
37586 else
37587 wx_cv_type_statvfs_t="unknown"
37588 fi
37589fi
37590
37591if test "$wx_cv_type_statvfs_t" != "unknown"; then
37592 cat >>confdefs.h <<_ACEOF
37593#define WX_STATFS_T $wx_cv_type_statvfs_t
37594_ACEOF
37595
37596else
37597 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37598echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37599fi
37600
37601if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37602
37603
37604for ac_func in fcntl flock
37605do
37606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37607echo "$as_me:$LINENO: checking for $ac_func" >&5
37608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37609if eval "test \"\${$as_ac_var+set}\" = set"; then
37610 echo $ECHO_N "(cached) $ECHO_C" >&6
37611else
37612 cat >conftest.$ac_ext <<_ACEOF
37613/* confdefs.h. */
37614_ACEOF
37615cat confdefs.h >>conftest.$ac_ext
37616cat >>conftest.$ac_ext <<_ACEOF
37617/* end confdefs.h. */
ac1cb8d3
VS
37618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37620#define $ac_func innocuous_$ac_func
37621
a848cd7e
SC
37622/* System header to define __stub macros and hopefully few prototypes,
37623 which can conflict with char $ac_func (); below.
37624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37625 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37626
a848cd7e
SC
37627#ifdef __STDC__
37628# include <limits.h>
37629#else
37630# include <assert.h>
37631#endif
ac1cb8d3
VS
37632
37633#undef $ac_func
37634
a848cd7e
SC
37635/* Override any gcc2 internal prototype to avoid an error. */
37636#ifdef __cplusplus
37637extern "C"
37638{
37639#endif
37640/* We use char because int might match the return type of a gcc2
37641 builtin and then its argument prototype would still apply. */
37642char $ac_func ();
37643/* The GNU C library defines this for functions which it implements
37644 to always fail with ENOSYS. Some functions are actually named
37645 something starting with __ and the normal name is an alias. */
37646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37647choke me
37648#else
37649char (*f) () = $ac_func;
37650#endif
37651#ifdef __cplusplus
37652}
37653#endif
37654
37655int
37656main ()
37657{
37658return f != $ac_func;
37659 ;
37660 return 0;
37661}
37662_ACEOF
37663rm -f conftest.$ac_objext conftest$ac_exeext
37664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37665 (eval $ac_link) 2>conftest.er1
a848cd7e 37666 ac_status=$?
ac1cb8d3
VS
37667 grep -v '^ *+' conftest.er1 >conftest.err
37668 rm -f conftest.er1
37669 cat conftest.err >&5
a848cd7e
SC
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); } &&
bb9e79c0 37672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; } &&
37678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37681 ac_status=$?
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; }; then
37684 eval "$as_ac_var=yes"
37685else
37686 echo "$as_me: failed program was:" >&5
37687sed 's/^/| /' conftest.$ac_ext >&5
37688
37689eval "$as_ac_var=no"
37690fi
ac1cb8d3
VS
37691rm -f conftest.err conftest.$ac_objext \
37692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37693fi
37694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37696if test `eval echo '${'$as_ac_var'}'` = yes; then
37697 cat >>confdefs.h <<_ACEOF
37698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37699_ACEOF
37700 break
37701fi
37702done
37703
37704
37705 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37706 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37707echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37708 wxUSE_SNGLINST_CHECKER=no
37709 fi
37710fi
37711
37712
37713for ac_func in timegm
37714do
37715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37716echo "$as_me:$LINENO: checking for $ac_func" >&5
37717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37718if eval "test \"\${$as_ac_var+set}\" = set"; then
37719 echo $ECHO_N "(cached) $ECHO_C" >&6
37720else
37721 cat >conftest.$ac_ext <<_ACEOF
37722/* confdefs.h. */
37723_ACEOF
37724cat confdefs.h >>conftest.$ac_ext
37725cat >>conftest.$ac_ext <<_ACEOF
37726/* end confdefs.h. */
ac1cb8d3
VS
37727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37729#define $ac_func innocuous_$ac_func
37730
a848cd7e
SC
37731/* System header to define __stub macros and hopefully few prototypes,
37732 which can conflict with char $ac_func (); below.
37733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37734 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37735
a848cd7e
SC
37736#ifdef __STDC__
37737# include <limits.h>
37738#else
37739# include <assert.h>
37740#endif
ac1cb8d3
VS
37741
37742#undef $ac_func
37743
a848cd7e
SC
37744/* Override any gcc2 internal prototype to avoid an error. */
37745#ifdef __cplusplus
37746extern "C"
37747{
37748#endif
37749/* We use char because int might match the return type of a gcc2
37750 builtin and then its argument prototype would still apply. */
37751char $ac_func ();
37752/* The GNU C library defines this for functions which it implements
37753 to always fail with ENOSYS. Some functions are actually named
37754 something starting with __ and the normal name is an alias. */
37755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37756choke me
37757#else
37758char (*f) () = $ac_func;
37759#endif
37760#ifdef __cplusplus
37761}
37762#endif
37763
37764int
37765main ()
37766{
37767return f != $ac_func;
37768 ;
37769 return 0;
37770}
37771_ACEOF
37772rm -f conftest.$ac_objext conftest$ac_exeext
37773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37774 (eval $ac_link) 2>conftest.er1
a848cd7e 37775 ac_status=$?
ac1cb8d3
VS
37776 grep -v '^ *+' conftest.er1 >conftest.err
37777 rm -f conftest.er1
37778 cat conftest.err >&5
a848cd7e
SC
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); } &&
bb9e79c0 37781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
37785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; } &&
37787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37789 (eval $ac_try) 2>&5
37790 ac_status=$?
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); }; }; then
37793 eval "$as_ac_var=yes"
37794else
37795 echo "$as_me: failed program was:" >&5
37796sed 's/^/| /' conftest.$ac_ext >&5
37797
37798eval "$as_ac_var=no"
37799fi
ac1cb8d3
VS
37800rm -f conftest.err conftest.$ac_objext \
37801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37802fi
37803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37805if test `eval echo '${'$as_ac_var'}'` = yes; then
37806 cat >>confdefs.h <<_ACEOF
37807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37808_ACEOF
37809
37810fi
37811done
37812
37813
37814
37815
37816for ac_func in putenv setenv
37817do
37818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37819echo "$as_me:$LINENO: checking for $ac_func" >&5
37820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37821if eval "test \"\${$as_ac_var+set}\" = set"; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37823else
37824 cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
ac1cb8d3
VS
37830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37832#define $ac_func innocuous_$ac_func
37833
a848cd7e
SC
37834/* System header to define __stub macros and hopefully few prototypes,
37835 which can conflict with char $ac_func (); below.
37836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37838
a848cd7e
SC
37839#ifdef __STDC__
37840# include <limits.h>
37841#else
37842# include <assert.h>
37843#endif
ac1cb8d3
VS
37844
37845#undef $ac_func
37846
a848cd7e
SC
37847/* Override any gcc2 internal prototype to avoid an error. */
37848#ifdef __cplusplus
37849extern "C"
37850{
37851#endif
37852/* We use char because int might match the return type of a gcc2
37853 builtin and then its argument prototype would still apply. */
37854char $ac_func ();
37855/* The GNU C library defines this for functions which it implements
37856 to always fail with ENOSYS. Some functions are actually named
37857 something starting with __ and the normal name is an alias. */
37858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37859choke me
37860#else
37861char (*f) () = $ac_func;
37862#endif
37863#ifdef __cplusplus
37864}
37865#endif
37866
37867int
37868main ()
37869{
37870return f != $ac_func;
37871 ;
37872 return 0;
37873}
37874_ACEOF
37875rm -f conftest.$ac_objext conftest$ac_exeext
37876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37877 (eval $ac_link) 2>conftest.er1
a848cd7e 37878 ac_status=$?
ac1cb8d3
VS
37879 grep -v '^ *+' conftest.er1 >conftest.err
37880 rm -f conftest.er1
37881 cat conftest.err >&5
a848cd7e
SC
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
bb9e79c0 37884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37887 ac_status=$?
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; } &&
37890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; }; then
37896 eval "$as_ac_var=yes"
37897else
37898 echo "$as_me: failed program was:" >&5
37899sed 's/^/| /' conftest.$ac_ext >&5
37900
37901eval "$as_ac_var=no"
37902fi
ac1cb8d3
VS
37903rm -f conftest.err conftest.$ac_objext \
37904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37905fi
37906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37908if test `eval echo '${'$as_ac_var'}'` = yes; then
37909 cat >>confdefs.h <<_ACEOF
37910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37911_ACEOF
37912 break
37913fi
37914done
37915
37916
37917HAVE_SOME_SLEEP_FUNC=0
37918if test "$USE_BEOS" = 1; then
37919 cat >>confdefs.h <<\_ACEOF
37920#define HAVE_SLEEP 1
37921_ACEOF
37922
37923 HAVE_SOME_SLEEP_FUNC=1
37924fi
37925
37926if test "$USE_DARWIN" = 1; then
37927 cat >>confdefs.h <<\_ACEOF
37928#define HAVE_USLEEP 1
37929_ACEOF
37930
37931 HAVE_SOME_SLEEP_FUNC=1
37932fi
37933
37934if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37935 POSIX4_LINK=
37936
37937for ac_func in nanosleep
37938do
37939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37940echo "$as_me:$LINENO: checking for $ac_func" >&5
37941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37942if eval "test \"\${$as_ac_var+set}\" = set"; then
37943 echo $ECHO_N "(cached) $ECHO_C" >&6
37944else
37945 cat >conftest.$ac_ext <<_ACEOF
37946/* confdefs.h. */
37947_ACEOF
37948cat confdefs.h >>conftest.$ac_ext
37949cat >>conftest.$ac_ext <<_ACEOF
37950/* end confdefs.h. */
ac1cb8d3
VS
37951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37953#define $ac_func innocuous_$ac_func
37954
a848cd7e
SC
37955/* System header to define __stub macros and hopefully few prototypes,
37956 which can conflict with char $ac_func (); below.
37957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37958 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37959
a848cd7e
SC
37960#ifdef __STDC__
37961# include <limits.h>
37962#else
37963# include <assert.h>
37964#endif
ac1cb8d3
VS
37965
37966#undef $ac_func
37967
a848cd7e
SC
37968/* Override any gcc2 internal prototype to avoid an error. */
37969#ifdef __cplusplus
37970extern "C"
37971{
37972#endif
37973/* We use char because int might match the return type of a gcc2
37974 builtin and then its argument prototype would still apply. */
37975char $ac_func ();
37976/* The GNU C library defines this for functions which it implements
37977 to always fail with ENOSYS. Some functions are actually named
37978 something starting with __ and the normal name is an alias. */
37979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37980choke me
37981#else
37982char (*f) () = $ac_func;
37983#endif
37984#ifdef __cplusplus
37985}
37986#endif
37987
37988int
37989main ()
37990{
37991return f != $ac_func;
37992 ;
37993 return 0;
37994}
37995_ACEOF
37996rm -f conftest.$ac_objext conftest$ac_exeext
37997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37998 (eval $ac_link) 2>conftest.er1
a848cd7e 37999 ac_status=$?
ac1cb8d3
VS
38000 grep -v '^ *+' conftest.er1 >conftest.err
38001 rm -f conftest.er1
38002 cat conftest.err >&5
a848cd7e
SC
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); } &&
bb9e79c0 38005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38007 (eval $ac_try) 2>&5
38008 ac_status=$?
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); }; } &&
38011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38013 (eval $ac_try) 2>&5
38014 ac_status=$?
38015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016 (exit $ac_status); }; }; then
38017 eval "$as_ac_var=yes"
38018else
38019 echo "$as_me: failed program was:" >&5
38020sed 's/^/| /' conftest.$ac_ext >&5
38021
38022eval "$as_ac_var=no"
38023fi
ac1cb8d3
VS
38024rm -f conftest.err conftest.$ac_objext \
38025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38026fi
38027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38029if test `eval echo '${'$as_ac_var'}'` = yes; then
38030 cat >>confdefs.h <<_ACEOF
38031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38032_ACEOF
38033 cat >>confdefs.h <<\_ACEOF
38034#define HAVE_NANOSLEEP 1
38035_ACEOF
38036
38037else
38038
38039 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38040echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
38041if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38042 echo $ECHO_N "(cached) $ECHO_C" >&6
38043else
38044 ac_check_lib_save_LIBS=$LIBS
38045LIBS="-lposix4 $LIBS"
38046cat >conftest.$ac_ext <<_ACEOF
38047/* confdefs.h. */
38048_ACEOF
38049cat confdefs.h >>conftest.$ac_ext
38050cat >>conftest.$ac_ext <<_ACEOF
38051/* end confdefs.h. */
38052
38053/* Override any gcc2 internal prototype to avoid an error. */
38054#ifdef __cplusplus
38055extern "C"
38056#endif
38057/* We use char because int might match the return type of a gcc2
38058 builtin and then its argument prototype would still apply. */
38059char nanosleep ();
38060int
38061main ()
38062{
38063nanosleep ();
38064 ;
38065 return 0;
38066}
38067_ACEOF
38068rm -f conftest.$ac_objext conftest$ac_exeext
38069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38070 (eval $ac_link) 2>conftest.er1
a848cd7e 38071 ac_status=$?
ac1cb8d3
VS
38072 grep -v '^ *+' conftest.er1 >conftest.err
38073 rm -f conftest.er1
38074 cat conftest.err >&5
a848cd7e
SC
38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076 (exit $ac_status); } &&
bb9e79c0 38077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38079 (eval $ac_try) 2>&5
38080 ac_status=$?
38081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082 (exit $ac_status); }; } &&
38083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38086 ac_status=$?
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; }; then
38089 ac_cv_lib_posix4_nanosleep=yes
38090else
38091 echo "$as_me: failed program was:" >&5
38092sed 's/^/| /' conftest.$ac_ext >&5
38093
38094ac_cv_lib_posix4_nanosleep=no
38095fi
ac1cb8d3
VS
38096rm -f conftest.err conftest.$ac_objext \
38097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38098LIBS=$ac_check_lib_save_LIBS
38099fi
38100echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38101echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38102if test $ac_cv_lib_posix4_nanosleep = yes; then
38103
38104 cat >>confdefs.h <<\_ACEOF
38105#define HAVE_NANOSLEEP 1
38106_ACEOF
38107
38108 POSIX4_LINK=" -lposix4"
38109
38110else
38111
38112
38113for ac_func in usleep
38114do
38115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38116echo "$as_me:$LINENO: checking for $ac_func" >&5
38117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38118if eval "test \"\${$as_ac_var+set}\" = set"; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38120else
38121 cat >conftest.$ac_ext <<_ACEOF
38122/* confdefs.h. */
38123_ACEOF
38124cat confdefs.h >>conftest.$ac_ext
38125cat >>conftest.$ac_ext <<_ACEOF
38126/* end confdefs.h. */
ac1cb8d3
VS
38127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38129#define $ac_func innocuous_$ac_func
38130
a848cd7e
SC
38131/* System header to define __stub macros and hopefully few prototypes,
38132 which can conflict with char $ac_func (); below.
38133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38135
a848cd7e
SC
38136#ifdef __STDC__
38137# include <limits.h>
38138#else
38139# include <assert.h>
38140#endif
ac1cb8d3
VS
38141
38142#undef $ac_func
38143
a848cd7e
SC
38144/* Override any gcc2 internal prototype to avoid an error. */
38145#ifdef __cplusplus
38146extern "C"
38147{
38148#endif
38149/* We use char because int might match the return type of a gcc2
38150 builtin and then its argument prototype would still apply. */
38151char $ac_func ();
38152/* The GNU C library defines this for functions which it implements
38153 to always fail with ENOSYS. Some functions are actually named
38154 something starting with __ and the normal name is an alias. */
38155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38156choke me
38157#else
38158char (*f) () = $ac_func;
38159#endif
38160#ifdef __cplusplus
38161}
38162#endif
38163
38164int
38165main ()
38166{
38167return f != $ac_func;
38168 ;
38169 return 0;
38170}
38171_ACEOF
38172rm -f conftest.$ac_objext conftest$ac_exeext
38173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38174 (eval $ac_link) 2>conftest.er1
a848cd7e 38175 ac_status=$?
ac1cb8d3
VS
38176 grep -v '^ *+' conftest.er1 >conftest.err
38177 rm -f conftest.er1
38178 cat conftest.err >&5
a848cd7e
SC
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); } &&
bb9e79c0 38181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183 (eval $ac_try) 2>&5
38184 ac_status=$?
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); }; } &&
38187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38190 ac_status=$?
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; }; then
38193 eval "$as_ac_var=yes"
38194else
38195 echo "$as_me: failed program was:" >&5
38196sed 's/^/| /' conftest.$ac_ext >&5
38197
38198eval "$as_ac_var=no"
38199fi
ac1cb8d3
VS
38200rm -f conftest.err conftest.$ac_objext \
38201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38202fi
38203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38205if test `eval echo '${'$as_ac_var'}'` = yes; then
38206 cat >>confdefs.h <<_ACEOF
38207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38208_ACEOF
38209 cat >>confdefs.h <<\_ACEOF
38210#define HAVE_USLEEP 1
38211_ACEOF
38212
38213else
38214 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38215echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38216
38217fi
38218done
38219
38220
38221
38222fi
38223
38224
38225
38226fi
38227done
38228
38229fi
38230
38231
38232
38233for ac_func in uname gethostname
38234do
38235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38236echo "$as_me:$LINENO: checking for $ac_func" >&5
38237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38238if eval "test \"\${$as_ac_var+set}\" = set"; then
38239 echo $ECHO_N "(cached) $ECHO_C" >&6
38240else
38241 cat >conftest.$ac_ext <<_ACEOF
38242/* confdefs.h. */
38243_ACEOF
38244cat confdefs.h >>conftest.$ac_ext
38245cat >>conftest.$ac_ext <<_ACEOF
38246/* end confdefs.h. */
ac1cb8d3
VS
38247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38249#define $ac_func innocuous_$ac_func
38250
a848cd7e
SC
38251/* System header to define __stub macros and hopefully few prototypes,
38252 which can conflict with char $ac_func (); below.
38253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38254 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38255
a848cd7e
SC
38256#ifdef __STDC__
38257# include <limits.h>
38258#else
38259# include <assert.h>
38260#endif
ac1cb8d3
VS
38261
38262#undef $ac_func
38263
a848cd7e
SC
38264/* Override any gcc2 internal prototype to avoid an error. */
38265#ifdef __cplusplus
38266extern "C"
38267{
38268#endif
38269/* We use char because int might match the return type of a gcc2
38270 builtin and then its argument prototype would still apply. */
38271char $ac_func ();
38272/* The GNU C library defines this for functions which it implements
38273 to always fail with ENOSYS. Some functions are actually named
38274 something starting with __ and the normal name is an alias. */
38275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38276choke me
38277#else
38278char (*f) () = $ac_func;
38279#endif
38280#ifdef __cplusplus
38281}
38282#endif
38283
38284int
38285main ()
38286{
38287return f != $ac_func;
38288 ;
38289 return 0;
38290}
38291_ACEOF
38292rm -f conftest.$ac_objext conftest$ac_exeext
38293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38294 (eval $ac_link) 2>conftest.er1
a848cd7e 38295 ac_status=$?
ac1cb8d3
VS
38296 grep -v '^ *+' conftest.er1 >conftest.err
38297 rm -f conftest.er1
38298 cat conftest.err >&5
a848cd7e
SC
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); } &&
bb9e79c0 38301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303 (eval $ac_try) 2>&5
38304 ac_status=$?
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); }; } &&
38307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38309 (eval $ac_try) 2>&5
38310 ac_status=$?
38311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312 (exit $ac_status); }; }; then
38313 eval "$as_ac_var=yes"
38314else
38315 echo "$as_me: failed program was:" >&5
38316sed 's/^/| /' conftest.$ac_ext >&5
38317
38318eval "$as_ac_var=no"
38319fi
ac1cb8d3
VS
38320rm -f conftest.err conftest.$ac_objext \
38321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38322fi
38323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38325if test `eval echo '${'$as_ac_var'}'` = yes; then
38326 cat >>confdefs.h <<_ACEOF
38327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38328_ACEOF
38329 break
38330fi
38331done
38332
38333
56632e81
MW
38334
38335 for wx_func in strtok_r
38336 do
38337 echo "$as_me:$LINENO: checking for $wx_func" >&5
38338echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38339if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38340 echo $ECHO_N "(cached) $ECHO_C" >&6
38341else
56632e81
MW
38342
38343 cat >conftest.$ac_ext <<_ACEOF
38344
38345 /* confdefs.h. */
a848cd7e
SC
38346_ACEOF
38347cat confdefs.h >>conftest.$ac_ext
38348cat >>conftest.$ac_ext <<_ACEOF
38349/* end confdefs.h. */
56632e81
MW
38350
38351 #define _REENTRANT
38352 $ac_includes_default
38353
a848cd7e
SC
38354int
38355main ()
38356{
56632e81
MW
38357
38358 #ifndef $wx_func
38359 &$wx_func;
38360 #endif
38361
5acfd58d 38362
a848cd7e
SC
38363 ;
38364 return 0;
38365}
56632e81 38366
a848cd7e 38367_ACEOF
56632e81
MW
38368rm -f conftest.$ac_objext conftest$ac_exeext
38369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38370 (eval $ac_link) 2>conftest.er1
a848cd7e 38371 ac_status=$?
ac1cb8d3
VS
38372 grep -v '^ *+' conftest.er1 >conftest.err
38373 rm -f conftest.er1
38374 cat conftest.err >&5
a848cd7e
SC
38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376 (exit $ac_status); } &&
bb9e79c0 38377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38379 (eval $ac_try) 2>&5
38380 ac_status=$?
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); }; } &&
56632e81 38383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38385 (eval $ac_try) 2>&5
38386 ac_status=$?
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); }; }; then
56632e81 38389 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38390else
38391 echo "$as_me: failed program was:" >&5
38392sed 's/^/| /' conftest.$ac_ext >&5
38393
56632e81 38394eval wx_cv_func_$wx_func=no
a848cd7e 38395fi
56632e81
MW
38396rm -f conftest.err conftest.$ac_objext \
38397 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38398
56632e81
MW
38399fi
38400echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38401echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38402
56632e81
MW
38403 if eval test \$wx_cv_func_$wx_func = yes
38404 then
38405 cat >>confdefs.h <<_ACEOF
38406#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38407_ACEOF
38408
38409
56632e81
MW
38410 else
38411 :
5acfd58d 38412
56632e81
MW
38413 fi
38414 done
5acfd58d 38415
a848cd7e 38416
a848cd7e
SC
38417INET_LINK=
38418
38419for ac_func in inet_addr
38420do
38421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38422echo "$as_me:$LINENO: checking for $ac_func" >&5
38423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38424if eval "test \"\${$as_ac_var+set}\" = set"; then
38425 echo $ECHO_N "(cached) $ECHO_C" >&6
38426else
38427 cat >conftest.$ac_ext <<_ACEOF
38428/* confdefs.h. */
38429_ACEOF
38430cat confdefs.h >>conftest.$ac_ext
38431cat >>conftest.$ac_ext <<_ACEOF
38432/* end confdefs.h. */
ac1cb8d3
VS
38433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38435#define $ac_func innocuous_$ac_func
38436
a848cd7e
SC
38437/* System header to define __stub macros and hopefully few prototypes,
38438 which can conflict with char $ac_func (); below.
38439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38440 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38441
a848cd7e
SC
38442#ifdef __STDC__
38443# include <limits.h>
38444#else
38445# include <assert.h>
38446#endif
ac1cb8d3
VS
38447
38448#undef $ac_func
38449
a848cd7e
SC
38450/* Override any gcc2 internal prototype to avoid an error. */
38451#ifdef __cplusplus
38452extern "C"
38453{
38454#endif
38455/* We use char because int might match the return type of a gcc2
38456 builtin and then its argument prototype would still apply. */
38457char $ac_func ();
38458/* The GNU C library defines this for functions which it implements
38459 to always fail with ENOSYS. Some functions are actually named
38460 something starting with __ and the normal name is an alias. */
38461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38462choke me
38463#else
38464char (*f) () = $ac_func;
38465#endif
38466#ifdef __cplusplus
38467}
38468#endif
38469
38470int
38471main ()
38472{
38473return f != $ac_func;
38474 ;
38475 return 0;
38476}
38477_ACEOF
38478rm -f conftest.$ac_objext conftest$ac_exeext
38479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38480 (eval $ac_link) 2>conftest.er1
a848cd7e 38481 ac_status=$?
ac1cb8d3
VS
38482 grep -v '^ *+' conftest.er1 >conftest.err
38483 rm -f conftest.er1
38484 cat conftest.err >&5
a848cd7e
SC
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); } &&
bb9e79c0 38487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489 (eval $ac_try) 2>&5
38490 ac_status=$?
38491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492 (exit $ac_status); }; } &&
38493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495 (eval $ac_try) 2>&5
38496 ac_status=$?
38497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); }; }; then
38499 eval "$as_ac_var=yes"
38500else
38501 echo "$as_me: failed program was:" >&5
38502sed 's/^/| /' conftest.$ac_ext >&5
38503
38504eval "$as_ac_var=no"
38505fi
ac1cb8d3
VS
38506rm -f conftest.err conftest.$ac_objext \
38507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38508fi
38509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38511if test `eval echo '${'$as_ac_var'}'` = yes; then
38512 cat >>confdefs.h <<_ACEOF
38513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38514_ACEOF
38515 cat >>confdefs.h <<\_ACEOF
38516#define HAVE_INET_ADDR 1
38517_ACEOF
38518
38519else
38520
38521 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38522echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38523if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38525else
38526 ac_check_lib_save_LIBS=$LIBS
38527LIBS="-lnsl $LIBS"
38528cat >conftest.$ac_ext <<_ACEOF
38529/* confdefs.h. */
38530_ACEOF
38531cat confdefs.h >>conftest.$ac_ext
38532cat >>conftest.$ac_ext <<_ACEOF
38533/* end confdefs.h. */
38534
38535/* Override any gcc2 internal prototype to avoid an error. */
38536#ifdef __cplusplus
38537extern "C"
38538#endif
38539/* We use char because int might match the return type of a gcc2
38540 builtin and then its argument prototype would still apply. */
38541char inet_addr ();
38542int
38543main ()
38544{
38545inet_addr ();
38546 ;
38547 return 0;
38548}
38549_ACEOF
38550rm -f conftest.$ac_objext conftest$ac_exeext
38551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38552 (eval $ac_link) 2>conftest.er1
a848cd7e 38553 ac_status=$?
ac1cb8d3
VS
38554 grep -v '^ *+' conftest.er1 >conftest.err
38555 rm -f conftest.er1
38556 cat conftest.err >&5
a848cd7e
SC
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); } &&
bb9e79c0 38559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561 (eval $ac_try) 2>&5
38562 ac_status=$?
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); }; } &&
38565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38571 ac_cv_lib_nsl_inet_addr=yes
38572else
38573 echo "$as_me: failed program was:" >&5
38574sed 's/^/| /' conftest.$ac_ext >&5
38575
38576ac_cv_lib_nsl_inet_addr=no
38577fi
ac1cb8d3
VS
38578rm -f conftest.err conftest.$ac_objext \
38579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38580LIBS=$ac_check_lib_save_LIBS
38581fi
38582echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38583echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38584if test $ac_cv_lib_nsl_inet_addr = yes; then
38585 INET_LINK="nsl"
38586else
38587
38588 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38589echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38590if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38591 echo $ECHO_N "(cached) $ECHO_C" >&6
38592else
38593 ac_check_lib_save_LIBS=$LIBS
38594LIBS="-lresolv $LIBS"
38595cat >conftest.$ac_ext <<_ACEOF
38596/* confdefs.h. */
38597_ACEOF
38598cat confdefs.h >>conftest.$ac_ext
38599cat >>conftest.$ac_ext <<_ACEOF
38600/* end confdefs.h. */
38601
38602/* Override any gcc2 internal prototype to avoid an error. */
38603#ifdef __cplusplus
38604extern "C"
38605#endif
38606/* We use char because int might match the return type of a gcc2
38607 builtin and then its argument prototype would still apply. */
38608char inet_addr ();
38609int
38610main ()
38611{
38612inet_addr ();
38613 ;
38614 return 0;
38615}
38616_ACEOF
38617rm -f conftest.$ac_objext conftest$ac_exeext
38618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38619 (eval $ac_link) 2>conftest.er1
a848cd7e 38620 ac_status=$?
ac1cb8d3
VS
38621 grep -v '^ *+' conftest.er1 >conftest.err
38622 rm -f conftest.er1
38623 cat conftest.err >&5
a848cd7e
SC
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); } &&
bb9e79c0 38626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38628 (eval $ac_try) 2>&5
38629 ac_status=$?
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); }; } &&
38632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38638 ac_cv_lib_resolv_inet_addr=yes
38639else
38640 echo "$as_me: failed program was:" >&5
38641sed 's/^/| /' conftest.$ac_ext >&5
38642
38643ac_cv_lib_resolv_inet_addr=no
38644fi
ac1cb8d3
VS
38645rm -f conftest.err conftest.$ac_objext \
38646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38647LIBS=$ac_check_lib_save_LIBS
38648fi
38649echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38650echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38651if test $ac_cv_lib_resolv_inet_addr = yes; then
38652 INET_LINK="resolv"
38653else
38654
38655 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38656echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38657if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38658 echo $ECHO_N "(cached) $ECHO_C" >&6
38659else
38660 ac_check_lib_save_LIBS=$LIBS
38661LIBS="-lsocket $LIBS"
38662cat >conftest.$ac_ext <<_ACEOF
38663/* confdefs.h. */
38664_ACEOF
38665cat confdefs.h >>conftest.$ac_ext
38666cat >>conftest.$ac_ext <<_ACEOF
38667/* end confdefs.h. */
38668
38669/* Override any gcc2 internal prototype to avoid an error. */
38670#ifdef __cplusplus
38671extern "C"
38672#endif
38673/* We use char because int might match the return type of a gcc2
38674 builtin and then its argument prototype would still apply. */
38675char inet_addr ();
38676int
38677main ()
38678{
38679inet_addr ();
38680 ;
38681 return 0;
38682}
38683_ACEOF
38684rm -f conftest.$ac_objext conftest$ac_exeext
38685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38686 (eval $ac_link) 2>conftest.er1
a848cd7e 38687 ac_status=$?
ac1cb8d3
VS
38688 grep -v '^ *+' conftest.er1 >conftest.err
38689 rm -f conftest.er1
38690 cat conftest.err >&5
a848cd7e
SC
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); } &&
bb9e79c0 38693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695 (eval $ac_try) 2>&5
38696 ac_status=$?
38697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698 (exit $ac_status); }; } &&
38699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38701 (eval $ac_try) 2>&5
38702 ac_status=$?
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); }; }; then
38705 ac_cv_lib_socket_inet_addr=yes
38706else
38707 echo "$as_me: failed program was:" >&5
38708sed 's/^/| /' conftest.$ac_ext >&5
38709
38710ac_cv_lib_socket_inet_addr=no
38711fi
ac1cb8d3
VS
38712rm -f conftest.err conftest.$ac_objext \
38713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38714LIBS=$ac_check_lib_save_LIBS
38715fi
38716echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38717echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38718if test $ac_cv_lib_socket_inet_addr = yes; then
38719 INET_LINK="socket"
38720
38721fi
38722
38723
38724
38725fi
38726
38727
38728
38729fi
38730
38731
38732
38733fi
38734done
38735
38736
38737
38738for ac_func in inet_aton
38739do
38740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38741echo "$as_me:$LINENO: checking for $ac_func" >&5
38742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38743if eval "test \"\${$as_ac_var+set}\" = set"; then
38744 echo $ECHO_N "(cached) $ECHO_C" >&6
38745else
38746 cat >conftest.$ac_ext <<_ACEOF
38747/* confdefs.h. */
38748_ACEOF
38749cat confdefs.h >>conftest.$ac_ext
38750cat >>conftest.$ac_ext <<_ACEOF
38751/* end confdefs.h. */
ac1cb8d3
VS
38752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38754#define $ac_func innocuous_$ac_func
38755
a848cd7e
SC
38756/* System header to define __stub macros and hopefully few prototypes,
38757 which can conflict with char $ac_func (); below.
38758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38760
a848cd7e
SC
38761#ifdef __STDC__
38762# include <limits.h>
38763#else
38764# include <assert.h>
38765#endif
ac1cb8d3
VS
38766
38767#undef $ac_func
38768
a848cd7e
SC
38769/* Override any gcc2 internal prototype to avoid an error. */
38770#ifdef __cplusplus
38771extern "C"
38772{
38773#endif
38774/* We use char because int might match the return type of a gcc2
38775 builtin and then its argument prototype would still apply. */
38776char $ac_func ();
38777/* The GNU C library defines this for functions which it implements
38778 to always fail with ENOSYS. Some functions are actually named
38779 something starting with __ and the normal name is an alias. */
38780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38781choke me
38782#else
38783char (*f) () = $ac_func;
38784#endif
38785#ifdef __cplusplus
38786}
38787#endif
38788
38789int
38790main ()
38791{
38792return f != $ac_func;
38793 ;
38794 return 0;
38795}
38796_ACEOF
38797rm -f conftest.$ac_objext conftest$ac_exeext
38798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38799 (eval $ac_link) 2>conftest.er1
a848cd7e 38800 ac_status=$?
ac1cb8d3
VS
38801 grep -v '^ *+' conftest.er1 >conftest.err
38802 rm -f conftest.er1
38803 cat conftest.err >&5
a848cd7e
SC
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); } &&
bb9e79c0 38806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38809 ac_status=$?
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; } &&
38812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38814 (eval $ac_try) 2>&5
38815 ac_status=$?
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); }; }; then
38818 eval "$as_ac_var=yes"
38819else
38820 echo "$as_me: failed program was:" >&5
38821sed 's/^/| /' conftest.$ac_ext >&5
38822
38823eval "$as_ac_var=no"
38824fi
ac1cb8d3
VS
38825rm -f conftest.err conftest.$ac_objext \
38826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38827fi
38828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38830if test `eval echo '${'$as_ac_var'}'` = yes; then
38831 cat >>confdefs.h <<_ACEOF
38832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38833_ACEOF
38834 cat >>confdefs.h <<\_ACEOF
38835#define HAVE_INET_ATON 1
38836_ACEOF
38837
38838else
38839
38840 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38841echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38842echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38843if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38844 echo $ECHO_N "(cached) $ECHO_C" >&6
38845else
38846 ac_check_lib_save_LIBS=$LIBS
38847LIBS="-l$INET_LINK $LIBS"
38848cat >conftest.$ac_ext <<_ACEOF
38849/* confdefs.h. */
38850_ACEOF
38851cat confdefs.h >>conftest.$ac_ext
38852cat >>conftest.$ac_ext <<_ACEOF
38853/* end confdefs.h. */
38854
38855/* Override any gcc2 internal prototype to avoid an error. */
38856#ifdef __cplusplus
38857extern "C"
38858#endif
38859/* We use char because int might match the return type of a gcc2
38860 builtin and then its argument prototype would still apply. */
38861char inet_aton ();
38862int
38863main ()
38864{
38865inet_aton ();
38866 ;
38867 return 0;
38868}
38869_ACEOF
38870rm -f conftest.$ac_objext conftest$ac_exeext
38871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38872 (eval $ac_link) 2>conftest.er1
a848cd7e 38873 ac_status=$?
ac1cb8d3
VS
38874 grep -v '^ *+' conftest.er1 >conftest.err
38875 rm -f conftest.er1
38876 cat conftest.err >&5
a848cd7e
SC
38877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); } &&
bb9e79c0 38879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38881 (eval $ac_try) 2>&5
38882 ac_status=$?
38883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884 (exit $ac_status); }; } &&
38885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38887 (eval $ac_try) 2>&5
38888 ac_status=$?
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); }; }; then
38891 eval "$as_ac_Lib=yes"
38892else
38893 echo "$as_me: failed program was:" >&5
38894sed 's/^/| /' conftest.$ac_ext >&5
38895
38896eval "$as_ac_Lib=no"
38897fi
ac1cb8d3
VS
38898rm -f conftest.err conftest.$ac_objext \
38899 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38900LIBS=$ac_check_lib_save_LIBS
38901fi
38902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38903echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38904if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38905 cat >>confdefs.h <<\_ACEOF
38906#define HAVE_INET_ATON 1
38907_ACEOF
38908
38909fi
38910
38911
38912fi
38913done
38914
38915
38916if test "x$INET_LINK" != "x"; then
38917 cat >>confdefs.h <<\_ACEOF
38918#define HAVE_INET_ADDR 1
38919_ACEOF
38920
38921 INET_LINK=" -l$INET_LINK"
38922fi
38923
f8f6c91a
MW
38924
38925 for wx_func in fdopen
38926 do
38927 echo "$as_me:$LINENO: checking for $wx_func" >&5
38928echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38929if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38930 echo $ECHO_N "(cached) $ECHO_C" >&6
38931else
38932
38933 cat >conftest.$ac_ext <<_ACEOF
38934
38935 /* confdefs.h. */
38936_ACEOF
38937cat confdefs.h >>conftest.$ac_ext
38938cat >>conftest.$ac_ext <<_ACEOF
38939/* end confdefs.h. */
38940
38941
38942 $ac_includes_default
38943
38944int
38945main ()
38946{
38947
38948 #ifndef $wx_func
38949 &$wx_func;
38950 #endif
38951
38952
38953 ;
38954 return 0;
38955}
38956
38957_ACEOF
38958rm -f conftest.$ac_objext conftest$ac_exeext
38959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38960 (eval $ac_link) 2>conftest.er1
38961 ac_status=$?
38962 grep -v '^ *+' conftest.er1 >conftest.err
38963 rm -f conftest.er1
38964 cat conftest.err >&5
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } &&
bb9e79c0 38967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f8f6c91a
MW
38968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969 (eval $ac_try) 2>&5
38970 ac_status=$?
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); }; } &&
38973 { ac_try='test -s conftest$ac_exeext'
38974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975 (eval $ac_try) 2>&5
38976 ac_status=$?
38977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978 (exit $ac_status); }; }; then
38979 eval wx_cv_func_$wx_func=yes
38980else
38981 echo "$as_me: failed program was:" >&5
38982sed 's/^/| /' conftest.$ac_ext >&5
38983
38984eval wx_cv_func_$wx_func=no
a848cd7e 38985fi
f8f6c91a
MW
38986rm -f conftest.err conftest.$ac_objext \
38987 conftest$ac_exeext conftest.$ac_ext
38988
38989fi
38990echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38991echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38992
38993 if eval test \$wx_cv_func_$wx_func = yes
38994 then
38995 cat >>confdefs.h <<_ACEOF
38996#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38997_ACEOF
38998
38999
39000 else
39001 :
39002
39003 fi
39004 done
39005
39006
39007fi
39008
a848cd7e
SC
39009
39010
39011
39012EXTRALIBS_ESD=
39013echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39014echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
39015if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39016 echo $ECHO_N "(cached) $ECHO_C" >&6
39017else
39018 ac_check_lib_save_LIBS=$LIBS
39019LIBS="-lesd $LIBS"
39020cat >conftest.$ac_ext <<_ACEOF
39021/* confdefs.h. */
39022_ACEOF
39023cat confdefs.h >>conftest.$ac_ext
39024cat >>conftest.$ac_ext <<_ACEOF
39025/* end confdefs.h. */
39026
39027/* Override any gcc2 internal prototype to avoid an error. */
39028#ifdef __cplusplus
39029extern "C"
39030#endif
39031/* We use char because int might match the return type of a gcc2
39032 builtin and then its argument prototype would still apply. */
39033char esd_close ();
39034int
39035main ()
39036{
39037esd_close ();
39038 ;
39039 return 0;
39040}
39041_ACEOF
39042rm -f conftest.$ac_objext conftest$ac_exeext
39043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39044 (eval $ac_link) 2>conftest.er1
a848cd7e 39045 ac_status=$?
ac1cb8d3
VS
39046 grep -v '^ *+' conftest.er1 >conftest.err
39047 rm -f conftest.er1
39048 cat conftest.err >&5
a848cd7e
SC
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); } &&
bb9e79c0 39051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
39054 ac_status=$?
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; } &&
39057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
39060 ac_status=$?
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; }; then
39063 ac_cv_lib_esd_esd_close=yes
39064else
39065 echo "$as_me: failed program was:" >&5
39066sed 's/^/| /' conftest.$ac_ext >&5
39067
39068ac_cv_lib_esd_esd_close=no
39069fi
ac1cb8d3
VS
39070rm -f conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39072LIBS=$ac_check_lib_save_LIBS
39073fi
39074echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39075echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39076if test $ac_cv_lib_esd_esd_close = yes; then
39077
39078
39079for ac_header in esd.h
39080do
39081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39082if eval "test \"\${$as_ac_Header+set}\" = set"; then
39083 echo "$as_me:$LINENO: checking for $ac_header" >&5
39084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39085if eval "test \"\${$as_ac_Header+set}\" = set"; then
39086 echo $ECHO_N "(cached) $ECHO_C" >&6
39087fi
39088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39090else
39091 # Is the header compilable?
39092echo "$as_me:$LINENO: checking $ac_header usability" >&5
39093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39094cat >conftest.$ac_ext <<_ACEOF
39095/* confdefs.h. */
39096_ACEOF
39097cat confdefs.h >>conftest.$ac_ext
39098cat >>conftest.$ac_ext <<_ACEOF
39099/* end confdefs.h. */
39100$ac_includes_default
39101#include <$ac_header>
39102_ACEOF
39103rm -f conftest.$ac_objext
39104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39105 (eval $ac_compile) 2>conftest.er1
a848cd7e 39106 ac_status=$?
ac1cb8d3
VS
39107 grep -v '^ *+' conftest.er1 >conftest.err
39108 rm -f conftest.er1
39109 cat conftest.err >&5
a848cd7e
SC
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); } &&
bb9e79c0 39112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39114 (eval $ac_try) 2>&5
39115 ac_status=$?
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); }; } &&
39118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39121 ac_status=$?
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39124 ac_header_compiler=yes
39125else
39126 echo "$as_me: failed program was:" >&5
39127sed 's/^/| /' conftest.$ac_ext >&5
39128
39129ac_header_compiler=no
39130fi
ac1cb8d3 39131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39133echo "${ECHO_T}$ac_header_compiler" >&6
39134
39135# Is the header present?
39136echo "$as_me:$LINENO: checking $ac_header presence" >&5
39137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39138cat >conftest.$ac_ext <<_ACEOF
39139/* confdefs.h. */
39140_ACEOF
39141cat confdefs.h >>conftest.$ac_ext
39142cat >>conftest.$ac_ext <<_ACEOF
39143/* end confdefs.h. */
39144#include <$ac_header>
39145_ACEOF
39146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39148 ac_status=$?
39149 grep -v '^ *+' conftest.er1 >conftest.err
39150 rm -f conftest.er1
39151 cat conftest.err >&5
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); } >/dev/null; then
39154 if test -s conftest.err; then
5d7b7554
VZ
39155 ac_cpp_err=$ac_cxx_preproc_warn_flag
39156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39157 else
39158 ac_cpp_err=
39159 fi
39160else
39161 ac_cpp_err=yes
39162fi
39163if test -z "$ac_cpp_err"; then
39164 ac_header_preproc=yes
39165else
39166 echo "$as_me: failed program was:" >&5
39167sed 's/^/| /' conftest.$ac_ext >&5
39168
39169 ac_header_preproc=no
39170fi
39171rm -f conftest.err conftest.$ac_ext
39172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39173echo "${ECHO_T}$ac_header_preproc" >&6
39174
39175# So? What about this header?
5d7b7554 39176case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39177 yes:no: )
a848cd7e
SC
39178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39182 ac_header_preproc=yes
a848cd7e 39183 ;;
ac1cb8d3 39184 no:yes:* )
a848cd7e
SC
39185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39197 (
39198 cat <<\_ASBOX
ac1cb8d3
VS
39199## ----------------------------------------- ##
39200## Report this to wx-dev@lists.wxwidgets.org ##
39201## ----------------------------------------- ##
a848cd7e
SC
39202_ASBOX
39203 ) |
39204 sed "s/^/$as_me: WARNING: /" >&2
39205 ;;
39206esac
39207echo "$as_me:$LINENO: checking for $ac_header" >&5
39208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39209if eval "test \"\${$as_ac_Header+set}\" = set"; then
39210 echo $ECHO_N "(cached) $ECHO_C" >&6
39211else
ac1cb8d3 39212 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39213fi
39214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39216
39217fi
39218if test `eval echo '${'$as_ac_Header'}'` = yes; then
39219 cat >>confdefs.h <<_ACEOF
39220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39221_ACEOF
39222
39223 EXTRALIBS_ESD="-lesd"
39224
39225fi
39226
39227done
39228
39229
39230fi
39231
39232
39233
39234echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39235echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39236cat >conftest.$ac_ext <<_ACEOF
39237/* confdefs.h. */
39238_ACEOF
39239cat confdefs.h >>conftest.$ac_ext
39240cat >>conftest.$ac_ext <<_ACEOF
39241/* end confdefs.h. */
39242#ifdef __linux__
39243 #include <linux/cdrom.h>
39244 #else
39245 /* For Solaris */
39246 #include <sys/cdio.h>
39247 #endif
39248
39249int
39250main ()
39251{
39252struct cdrom_tocentry entry, old_entry;
39253 ;
39254 return 0;
39255}
39256_ACEOF
39257rm -f conftest.$ac_objext
39258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39259 (eval $ac_compile) 2>conftest.er1
a848cd7e 39260 ac_status=$?
ac1cb8d3
VS
39261 grep -v '^ *+' conftest.er1 >conftest.err
39262 rm -f conftest.er1
39263 cat conftest.err >&5
a848cd7e
SC
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } &&
bb9e79c0 39266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268 (eval $ac_try) 2>&5
39269 ac_status=$?
39270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271 (exit $ac_status); }; } &&
39272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39274 (eval $ac_try) 2>&5
39275 ac_status=$?
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); }; }; then
39278 echo "$as_me:$LINENO: result: yes" >&5
39279echo "${ECHO_T}yes" >&6
39280 cat >>confdefs.h <<\_ACEOF
39281#define HAVE_KNOWN_CDROM_INTERFACE 1
39282_ACEOF
39283
39284else
39285 echo "$as_me: failed program was:" >&5
39286sed 's/^/| /' conftest.$ac_ext >&5
39287
39288echo "$as_me:$LINENO: result: no" >&5
39289echo "${ECHO_T}no" >&6
39290fi
ac1cb8d3 39291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39292
39293
39294cat >confcache <<\_ACEOF
39295# This file is a shell script that caches the results of configure
39296# tests run on this system so they can be shared between configure
39297# scripts and configure runs, see configure's option --config-cache.
39298# It is not useful on other systems. If it contains results you don't
39299# want to keep, you may remove or edit it.
39300#
39301# config.status only pays attention to the cache file if you give it
39302# the --recheck option to rerun configure.
39303#
39304# `ac_cv_env_foo' variables (set or unset) will be overridden when
39305# loading this file, other *unset* `ac_cv_foo' will be assigned the
39306# following values.
39307
39308_ACEOF
39309
39310# The following way of writing the cache mishandles newlines in values,
39311# but we know of no workaround that is simple, portable, and efficient.
39312# So, don't put newlines in cache variables' values.
39313# Ultrix sh set writes to stderr and can't be redirected directly,
39314# and sets the high bit in the cache file unless we assign to the vars.
39315{
39316 (set) 2>&1 |
39317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39318 *ac_space=\ *)
39319 # `set' does not quote correctly, so add quotes (double-quote
39320 # substitution turns \\\\ into \\, and sed turns \\ into \).
39321 sed -n \
ac1cb8d3
VS
39322 "s/'/'\\\\''/g;
39323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39324 ;;
39325 *)
39326 # `set' quotes correctly as required by POSIX, so do not add quotes.
39327 sed -n \
ac1cb8d3 39328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39329 ;;
39330 esac;
39331} |
39332 sed '
39333 t clear
39334 : clear
39335 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39336 t end
39337 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39338 : end' >>confcache
39339if diff $cache_file confcache >/dev/null 2>&1; then :; else
39340 if test -w $cache_file; then
39341 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39342 cat confcache >$cache_file
39343 else
39344 echo "not updating unwritable cache $cache_file"
39345 fi
39346fi
39347rm -f confcache
39348
39349
a848cd7e
SC
39350if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39351
39352
39353 THREADS_LINK=
e56f4f9e 39354 THREADS_CXXFLAGS=
a848cd7e
SC
39355
39356 if test "$wxUSE_THREADS" = "yes" ; then
39357 if test "$USE_BEOS" = 1; then
39358 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39359echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39360 wxUSE_THREADS="no"
39361 fi
39362 fi
39363
39364 if test "$wxUSE_THREADS" = "yes" ; then
39365
39366
39367 THREAD_OPTS="-pthread"
39368 case "${host}" in
39369 *-*-solaris2* | *-*-sunos4* )
39370 if test "x$GCC" = "xyes"; then
39371 THREAD_OPTS="-pthreads $THREAD_OPTS"
39372 else
39373 THREAD_OPTS="-mt $THREAD_OPTS"
39374 fi
39375 ;;
39376 *-*-freebsd*)
39377 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39378 ;;
39379 *-*-darwin* | *-*-cygwin* )
39380 THREAD_OPTS=""
39381 ;;
39382 *-*-aix*)
39383 THREAD_OPTS="pthreads"
39384 ;;
39385 *-hp-hpux* )
00421666
MW
39386 if test "x$GCC" = "xyes"; then
39387 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39388 THREAD_OPTS=""
39389 else
0093c2fc 39390 THREAD_OPTS="-mt"
a848cd7e
SC
39391 fi
39392 ;;
39393
39394 *-*-irix* )
39395 if test "x$GCC" = "xyes"; then
39396 THREAD_OPTS=""
39397 fi
39398 ;;
39399
39400 *-*-*UnixWare*)
39401 if test "x$GCC" != "xyes"; then
39402 THREAD_OPTS="-Ethread"
39403 fi
39404 ;;
39405 esac
39406
39407 THREAD_OPTS="$THREAD_OPTS pthread none"
39408
39409 THREADS_OK=no
39410 for flag in $THREAD_OPTS; do
39411 case $flag in
39412 none)
39413 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39414echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39415 ;;
39416
39417 -*)
39418 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39419echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39420 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39421 ;;
39422
39423 *)
39424 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39425echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39426 THREADS_LINK="-l$flag"
39427 ;;
39428 esac
39429
39430 save_LIBS="$LIBS"
e56f4f9e 39431 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39432 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39433 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39434
39435 cat >conftest.$ac_ext <<_ACEOF
39436/* confdefs.h. */
39437_ACEOF
39438cat confdefs.h >>conftest.$ac_ext
39439cat >>conftest.$ac_ext <<_ACEOF
39440/* end confdefs.h. */
39441#include <pthread.h>
39442int
39443main ()
39444{
39445pthread_create(0,0,0,0);
39446 ;
39447 return 0;
39448}
39449_ACEOF
39450rm -f conftest.$ac_objext conftest$ac_exeext
39451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39452 (eval $ac_link) 2>conftest.er1
a848cd7e 39453 ac_status=$?
ac1cb8d3
VS
39454 grep -v '^ *+' conftest.er1 >conftest.err
39455 rm -f conftest.er1
39456 cat conftest.err >&5
a848cd7e
SC
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); } &&
bb9e79c0 39459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461 (eval $ac_try) 2>&5
39462 ac_status=$?
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); }; } &&
39465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39467 (eval $ac_try) 2>&5
39468 ac_status=$?
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); }; }; then
39471 THREADS_OK=yes
39472else
39473 echo "$as_me: failed program was:" >&5
39474sed 's/^/| /' conftest.$ac_ext >&5
39475
39476fi
ac1cb8d3
VS
39477rm -f conftest.err conftest.$ac_objext \
39478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39479
39480 LIBS="$save_LIBS"
e56f4f9e 39481 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39482
39483 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39484echo "${ECHO_T}$THREADS_OK" >&6
39485 if test "x$THREADS_OK" = "xyes"; then
39486 break;
39487 fi
39488
39489 THREADS_LINK=""
e56f4f9e 39490 THREADS_CXXFLAGS=""
a848cd7e
SC
39491 done
39492
39493 if test "x$THREADS_OK" != "xyes"; then
39494 wxUSE_THREADS=no
39495 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39496echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39497 else
e56f4f9e 39498 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39499 LIBS="$THREADS_LINK $LIBS"
39500
39501 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39502echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39503 flag=no
39504 case "${host}" in
39505 *-aix*)
39506 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39507 flag="-D_THREAD_SAFE"
39508 ;;
39509 *-freebsd*)
39510 flag="-D_THREAD_SAFE"
39511 ;;
39512 *-hp-hpux* )
39513 flag="-D_REENTRANT"
39514 if test "x$GCC" != "xyes"; then
39515 flag="$flag -D_RWSTD_MULTI_THREAD"
39516 fi
39517 ;;
39518 *solaris* | alpha*-osf*)
39519 flag="-D_REENTRANT"
39520 ;;
39521 esac
39522 echo "$as_me:$LINENO: result: ${flag}" >&5
39523echo "${ECHO_T}${flag}" >&6
39524 if test "x$flag" != xno; then
e56f4f9e 39525 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39526 fi
39527
e56f4f9e 39528 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39529 fi
39530 fi
39531
39532 if test "$wxUSE_THREADS" = "yes" ; then
39533
39534for ac_func in thr_setconcurrency
39535do
39536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39537echo "$as_me:$LINENO: checking for $ac_func" >&5
39538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39539if eval "test \"\${$as_ac_var+set}\" = set"; then
39540 echo $ECHO_N "(cached) $ECHO_C" >&6
39541else
39542 cat >conftest.$ac_ext <<_ACEOF
39543/* confdefs.h. */
39544_ACEOF
39545cat confdefs.h >>conftest.$ac_ext
39546cat >>conftest.$ac_ext <<_ACEOF
39547/* end confdefs.h. */
ac1cb8d3
VS
39548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39550#define $ac_func innocuous_$ac_func
39551
a848cd7e
SC
39552/* System header to define __stub macros and hopefully few prototypes,
39553 which can conflict with char $ac_func (); below.
39554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39555 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39556
a848cd7e
SC
39557#ifdef __STDC__
39558# include <limits.h>
39559#else
39560# include <assert.h>
39561#endif
ac1cb8d3
VS
39562
39563#undef $ac_func
39564
a848cd7e
SC
39565/* Override any gcc2 internal prototype to avoid an error. */
39566#ifdef __cplusplus
39567extern "C"
39568{
39569#endif
39570/* We use char because int might match the return type of a gcc2
39571 builtin and then its argument prototype would still apply. */
39572char $ac_func ();
39573/* The GNU C library defines this for functions which it implements
39574 to always fail with ENOSYS. Some functions are actually named
39575 something starting with __ and the normal name is an alias. */
39576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39577choke me
39578#else
39579char (*f) () = $ac_func;
39580#endif
39581#ifdef __cplusplus
39582}
39583#endif
39584
39585int
39586main ()
39587{
39588return f != $ac_func;
39589 ;
39590 return 0;
39591}
39592_ACEOF
39593rm -f conftest.$ac_objext conftest$ac_exeext
39594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39595 (eval $ac_link) 2>conftest.er1
a848cd7e 39596 ac_status=$?
ac1cb8d3
VS
39597 grep -v '^ *+' conftest.er1 >conftest.err
39598 rm -f conftest.er1
39599 cat conftest.err >&5
a848cd7e
SC
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); } &&
bb9e79c0 39602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39605 ac_status=$?
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; } &&
39608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39611 ac_status=$?
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; }; then
39614 eval "$as_ac_var=yes"
39615else
39616 echo "$as_me: failed program was:" >&5
39617sed 's/^/| /' conftest.$ac_ext >&5
39618
39619eval "$as_ac_var=no"
39620fi
ac1cb8d3
VS
39621rm -f conftest.err conftest.$ac_objext \
39622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39623fi
39624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39626if test `eval echo '${'$as_ac_var'}'` = yes; then
39627 cat >>confdefs.h <<_ACEOF
39628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39629_ACEOF
39630
39631fi
39632done
39633
39634
6ebeb4c7
VZ
39635 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39636echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39637if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39638 echo $ECHO_N "(cached) $ECHO_C" >&6
39639else
39640
39641 cat >conftest.$ac_ext <<_ACEOF
39642/* confdefs.h. */
39643_ACEOF
39644cat confdefs.h >>conftest.$ac_ext
39645cat >>conftest.$ac_ext <<_ACEOF
39646/* end confdefs.h. */
39647#include <pthread.h>
39648 void ThreadCleanupFunc(void *p);
39649
39650int
39651main ()
39652{
39653
39654 void *p;
39655 pthread_cleanup_push(ThreadCleanupFunc, p);
39656 pthread_cleanup_pop(0);
39657
39658 ;
39659 return 0;
39660}
39661_ACEOF
39662rm -f conftest.$ac_objext
39663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39664 (eval $ac_compile) 2>conftest.er1
39665 ac_status=$?
39666 grep -v '^ *+' conftest.er1 >conftest.err
39667 rm -f conftest.er1
39668 cat conftest.err >&5
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); } &&
bb9e79c0 39671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39674 ac_status=$?
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; } &&
39677 { ac_try='test -s conftest.$ac_objext'
39678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39679 (eval $ac_try) 2>&5
39680 ac_status=$?
39681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682 (exit $ac_status); }; }; then
39683
39684 wx_cv_func_pthread_cleanup=yes
39685
39686else
39687 echo "$as_me: failed program was:" >&5
39688sed 's/^/| /' conftest.$ac_ext >&5
39689
39690
39691 wx_cv_func_pthread_cleanup=no
39692
39693
39694fi
39695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39696
39697fi
39698echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39699echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39700 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39701 cat >>confdefs.h <<\_ACEOF
39702#define wxHAVE_PTHREAD_CLEANUP 1
39703_ACEOF
39704
39705 fi
39706
a848cd7e
SC
39707
39708for ac_header in sched.h
39709do
39710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39711if eval "test \"\${$as_ac_Header+set}\" = set"; then
39712 echo "$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
39716fi
39717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39719else
39720 # Is the header compilable?
39721echo "$as_me:$LINENO: checking $ac_header usability" >&5
39722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39723cat >conftest.$ac_ext <<_ACEOF
39724/* confdefs.h. */
39725_ACEOF
39726cat confdefs.h >>conftest.$ac_ext
39727cat >>conftest.$ac_ext <<_ACEOF
39728/* end confdefs.h. */
39729$ac_includes_default
39730#include <$ac_header>
39731_ACEOF
39732rm -f conftest.$ac_objext
39733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39734 (eval $ac_compile) 2>conftest.er1
a848cd7e 39735 ac_status=$?
ac1cb8d3
VS
39736 grep -v '^ *+' conftest.er1 >conftest.err
39737 rm -f conftest.er1
39738 cat conftest.err >&5
a848cd7e
SC
39739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39740 (exit $ac_status); } &&
bb9e79c0 39741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39743 (eval $ac_try) 2>&5
39744 ac_status=$?
39745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); }; } &&
39747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749 (eval $ac_try) 2>&5
39750 ac_status=$?
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); }; }; then
39753 ac_header_compiler=yes
39754else
39755 echo "$as_me: failed program was:" >&5
39756sed 's/^/| /' conftest.$ac_ext >&5
39757
39758ac_header_compiler=no
39759fi
ac1cb8d3 39760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39762echo "${ECHO_T}$ac_header_compiler" >&6
39763
39764# Is the header present?
39765echo "$as_me:$LINENO: checking $ac_header presence" >&5
39766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39767cat >conftest.$ac_ext <<_ACEOF
39768/* confdefs.h. */
39769_ACEOF
39770cat confdefs.h >>conftest.$ac_ext
39771cat >>conftest.$ac_ext <<_ACEOF
39772/* end confdefs.h. */
39773#include <$ac_header>
39774_ACEOF
39775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39777 ac_status=$?
39778 grep -v '^ *+' conftest.er1 >conftest.err
39779 rm -f conftest.er1
39780 cat conftest.err >&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); } >/dev/null; then
39783 if test -s conftest.err; then
5d7b7554
VZ
39784 ac_cpp_err=$ac_cxx_preproc_warn_flag
39785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39786 else
39787 ac_cpp_err=
39788 fi
39789else
39790 ac_cpp_err=yes
39791fi
39792if test -z "$ac_cpp_err"; then
39793 ac_header_preproc=yes
39794else
39795 echo "$as_me: failed program was:" >&5
39796sed 's/^/| /' conftest.$ac_ext >&5
39797
39798 ac_header_preproc=no
39799fi
39800rm -f conftest.err conftest.$ac_ext
39801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39802echo "${ECHO_T}$ac_header_preproc" >&6
39803
39804# So? What about this header?
5d7b7554 39805case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39806 yes:no: )
a848cd7e
SC
39807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39811 ac_header_preproc=yes
a848cd7e 39812 ;;
ac1cb8d3 39813 no:yes:* )
a848cd7e
SC
39814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39826 (
39827 cat <<\_ASBOX
ac1cb8d3
VS
39828## ----------------------------------------- ##
39829## Report this to wx-dev@lists.wxwidgets.org ##
39830## ----------------------------------------- ##
a848cd7e
SC
39831_ASBOX
39832 ) |
39833 sed "s/^/$as_me: WARNING: /" >&2
39834 ;;
39835esac
39836echo "$as_me:$LINENO: checking for $ac_header" >&5
39837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39838if eval "test \"\${$as_ac_Header+set}\" = set"; then
39839 echo $ECHO_N "(cached) $ECHO_C" >&6
39840else
ac1cb8d3 39841 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39842fi
39843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39845
39846fi
39847if test `eval echo '${'$as_ac_Header'}'` = yes; then
39848 cat >>confdefs.h <<_ACEOF
39849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39850_ACEOF
39851
39852fi
39853
39854done
39855
39856 if test "$ac_cv_header_sched_h" = "yes"; then
39857 echo "$as_me:$LINENO: checking for sched_yield" >&5
39858echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39859if test "${ac_cv_func_sched_yield+set}" = set; then
39860 echo $ECHO_N "(cached) $ECHO_C" >&6
39861else
39862 cat >conftest.$ac_ext <<_ACEOF
39863/* confdefs.h. */
39864_ACEOF
39865cat confdefs.h >>conftest.$ac_ext
39866cat >>conftest.$ac_ext <<_ACEOF
39867/* end confdefs.h. */
ac1cb8d3
VS
39868/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39870#define sched_yield innocuous_sched_yield
39871
a848cd7e
SC
39872/* System header to define __stub macros and hopefully few prototypes,
39873 which can conflict with char sched_yield (); below.
39874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39875 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39876
a848cd7e
SC
39877#ifdef __STDC__
39878# include <limits.h>
39879#else
39880# include <assert.h>
39881#endif
ac1cb8d3
VS
39882
39883#undef sched_yield
39884
a848cd7e
SC
39885/* Override any gcc2 internal prototype to avoid an error. */
39886#ifdef __cplusplus
39887extern "C"
39888{
39889#endif
39890/* We use char because int might match the return type of a gcc2
39891 builtin and then its argument prototype would still apply. */
39892char sched_yield ();
39893/* The GNU C library defines this for functions which it implements
39894 to always fail with ENOSYS. Some functions are actually named
39895 something starting with __ and the normal name is an alias. */
39896#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39897choke me
39898#else
39899char (*f) () = sched_yield;
39900#endif
39901#ifdef __cplusplus
39902}
39903#endif
39904
39905int
39906main ()
39907{
39908return f != sched_yield;
39909 ;
39910 return 0;
39911}
39912_ACEOF
39913rm -f conftest.$ac_objext conftest$ac_exeext
39914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39915 (eval $ac_link) 2>conftest.er1
a848cd7e 39916 ac_status=$?
ac1cb8d3
VS
39917 grep -v '^ *+' conftest.er1 >conftest.err
39918 rm -f conftest.er1
39919 cat conftest.err >&5
a848cd7e
SC
39920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39921 (exit $ac_status); } &&
bb9e79c0 39922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39924 (eval $ac_try) 2>&5
39925 ac_status=$?
39926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927 (exit $ac_status); }; } &&
39928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39930 (eval $ac_try) 2>&5
39931 ac_status=$?
39932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39933 (exit $ac_status); }; }; then
39934 ac_cv_func_sched_yield=yes
39935else
39936 echo "$as_me: failed program was:" >&5
39937sed 's/^/| /' conftest.$ac_ext >&5
39938
39939ac_cv_func_sched_yield=no
39940fi
ac1cb8d3
VS
39941rm -f conftest.err conftest.$ac_objext \
39942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39943fi
39944echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39945echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39946if test $ac_cv_func_sched_yield = yes; then
39947 cat >>confdefs.h <<\_ACEOF
39948#define HAVE_SCHED_YIELD 1
39949_ACEOF
39950
39951else
39952
39953 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39954echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39955if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39956 echo $ECHO_N "(cached) $ECHO_C" >&6
39957else
39958 ac_check_lib_save_LIBS=$LIBS
39959LIBS="-lposix4 $LIBS"
39960cat >conftest.$ac_ext <<_ACEOF
39961/* confdefs.h. */
39962_ACEOF
39963cat confdefs.h >>conftest.$ac_ext
39964cat >>conftest.$ac_ext <<_ACEOF
39965/* end confdefs.h. */
39966
39967/* Override any gcc2 internal prototype to avoid an error. */
39968#ifdef __cplusplus
39969extern "C"
39970#endif
39971/* We use char because int might match the return type of a gcc2
39972 builtin and then its argument prototype would still apply. */
39973char sched_yield ();
39974int
39975main ()
39976{
39977sched_yield ();
39978 ;
39979 return 0;
39980}
39981_ACEOF
39982rm -f conftest.$ac_objext conftest$ac_exeext
39983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39984 (eval $ac_link) 2>conftest.er1
a848cd7e 39985 ac_status=$?
ac1cb8d3
VS
39986 grep -v '^ *+' conftest.er1 >conftest.err
39987 rm -f conftest.er1
39988 cat conftest.err >&5
a848cd7e
SC
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); } &&
bb9e79c0 39991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39993 (eval $ac_try) 2>&5
39994 ac_status=$?
39995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39996 (exit $ac_status); }; } &&
39997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39999 (eval $ac_try) 2>&5
40000 ac_status=$?
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); }; }; then
40003 ac_cv_lib_posix4_sched_yield=yes
40004else
40005 echo "$as_me: failed program was:" >&5
40006sed 's/^/| /' conftest.$ac_ext >&5
40007
40008ac_cv_lib_posix4_sched_yield=no
40009fi
ac1cb8d3
VS
40010rm -f conftest.err conftest.$ac_objext \
40011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40012LIBS=$ac_check_lib_save_LIBS
40013fi
40014echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40015echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40016if test $ac_cv_lib_posix4_sched_yield = yes; then
40017 cat >>confdefs.h <<\_ACEOF
40018#define HAVE_SCHED_YIELD 1
40019_ACEOF
40020 POSIX4_LINK=" -lposix4"
40021else
40022 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40023echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40024
40025fi
40026
40027
40028
40029fi
40030
40031 fi
40032
40033 HAVE_PRIOR_FUNCS=0
40034 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40035echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40036if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40037 echo $ECHO_N "(cached) $ECHO_C" >&6
40038else
40039 cat >conftest.$ac_ext <<_ACEOF
40040/* confdefs.h. */
40041_ACEOF
40042cat confdefs.h >>conftest.$ac_ext
40043cat >>conftest.$ac_ext <<_ACEOF
40044/* end confdefs.h. */
ac1cb8d3
VS
40045/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40047#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40048
a848cd7e
SC
40049/* System header to define __stub macros and hopefully few prototypes,
40050 which can conflict with char pthread_attr_getschedpolicy (); below.
40051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40053
a848cd7e
SC
40054#ifdef __STDC__
40055# include <limits.h>
40056#else
40057# include <assert.h>
40058#endif
ac1cb8d3
VS
40059
40060#undef pthread_attr_getschedpolicy
40061
a848cd7e
SC
40062/* Override any gcc2 internal prototype to avoid an error. */
40063#ifdef __cplusplus
40064extern "C"
40065{
40066#endif
40067/* We use char because int might match the return type of a gcc2
40068 builtin and then its argument prototype would still apply. */
40069char pthread_attr_getschedpolicy ();
40070/* The GNU C library defines this for functions which it implements
40071 to always fail with ENOSYS. Some functions are actually named
40072 something starting with __ and the normal name is an alias. */
40073#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40074choke me
40075#else
40076char (*f) () = pthread_attr_getschedpolicy;
40077#endif
40078#ifdef __cplusplus
40079}
40080#endif
40081
40082int
40083main ()
40084{
40085return f != pthread_attr_getschedpolicy;
40086 ;
40087 return 0;
40088}
40089_ACEOF
40090rm -f conftest.$ac_objext conftest$ac_exeext
40091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40092 (eval $ac_link) 2>conftest.er1
a848cd7e 40093 ac_status=$?
ac1cb8d3
VS
40094 grep -v '^ *+' conftest.er1 >conftest.err
40095 rm -f conftest.er1
40096 cat conftest.err >&5
a848cd7e
SC
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); } &&
bb9e79c0 40099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101 (eval $ac_try) 2>&5
40102 ac_status=$?
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); }; } &&
40105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40107 (eval $ac_try) 2>&5
40108 ac_status=$?
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); }; }; then
40111 ac_cv_func_pthread_attr_getschedpolicy=yes
40112else
40113 echo "$as_me: failed program was:" >&5
40114sed 's/^/| /' conftest.$ac_ext >&5
40115
40116ac_cv_func_pthread_attr_getschedpolicy=no
40117fi
ac1cb8d3
VS
40118rm -f conftest.err conftest.$ac_objext \
40119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40120fi
40121echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40122echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40123if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40124 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40125echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40126if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40127 echo $ECHO_N "(cached) $ECHO_C" >&6
40128else
40129 cat >conftest.$ac_ext <<_ACEOF
40130/* confdefs.h. */
40131_ACEOF
40132cat confdefs.h >>conftest.$ac_ext
40133cat >>conftest.$ac_ext <<_ACEOF
40134/* end confdefs.h. */
ac1cb8d3
VS
40135/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40137#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40138
a848cd7e
SC
40139/* System header to define __stub macros and hopefully few prototypes,
40140 which can conflict with char pthread_attr_setschedparam (); below.
40141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40143
a848cd7e
SC
40144#ifdef __STDC__
40145# include <limits.h>
40146#else
40147# include <assert.h>
40148#endif
ac1cb8d3
VS
40149
40150#undef pthread_attr_setschedparam
40151
a848cd7e
SC
40152/* Override any gcc2 internal prototype to avoid an error. */
40153#ifdef __cplusplus
40154extern "C"
40155{
40156#endif
40157/* We use char because int might match the return type of a gcc2
40158 builtin and then its argument prototype would still apply. */
40159char pthread_attr_setschedparam ();
40160/* The GNU C library defines this for functions which it implements
40161 to always fail with ENOSYS. Some functions are actually named
40162 something starting with __ and the normal name is an alias. */
40163#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40164choke me
40165#else
40166char (*f) () = pthread_attr_setschedparam;
40167#endif
40168#ifdef __cplusplus
40169}
40170#endif
40171
40172int
40173main ()
40174{
40175return f != pthread_attr_setschedparam;
40176 ;
40177 return 0;
40178}
40179_ACEOF
40180rm -f conftest.$ac_objext conftest$ac_exeext
40181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40182 (eval $ac_link) 2>conftest.er1
a848cd7e 40183 ac_status=$?
ac1cb8d3
VS
40184 grep -v '^ *+' conftest.er1 >conftest.err
40185 rm -f conftest.er1
40186 cat conftest.err >&5
a848cd7e
SC
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); } &&
bb9e79c0 40189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40191 (eval $ac_try) 2>&5
40192 ac_status=$?
40193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194 (exit $ac_status); }; } &&
40195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40197 (eval $ac_try) 2>&5
40198 ac_status=$?
40199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40200 (exit $ac_status); }; }; then
40201 ac_cv_func_pthread_attr_setschedparam=yes
40202else
40203 echo "$as_me: failed program was:" >&5
40204sed 's/^/| /' conftest.$ac_ext >&5
40205
40206ac_cv_func_pthread_attr_setschedparam=no
40207fi
ac1cb8d3
VS
40208rm -f conftest.err conftest.$ac_objext \
40209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40210fi
40211echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40212echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40213if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40214 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40215echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40216if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40217 echo $ECHO_N "(cached) $ECHO_C" >&6
40218else
40219 cat >conftest.$ac_ext <<_ACEOF
40220/* confdefs.h. */
40221_ACEOF
40222cat confdefs.h >>conftest.$ac_ext
40223cat >>conftest.$ac_ext <<_ACEOF
40224/* end confdefs.h. */
ac1cb8d3
VS
40225/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40227#define sched_get_priority_max innocuous_sched_get_priority_max
40228
a848cd7e
SC
40229/* System header to define __stub macros and hopefully few prototypes,
40230 which can conflict with char sched_get_priority_max (); below.
40231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40233
a848cd7e
SC
40234#ifdef __STDC__
40235# include <limits.h>
40236#else
40237# include <assert.h>
40238#endif
ac1cb8d3
VS
40239
40240#undef sched_get_priority_max
40241
a848cd7e
SC
40242/* Override any gcc2 internal prototype to avoid an error. */
40243#ifdef __cplusplus
40244extern "C"
40245{
40246#endif
40247/* We use char because int might match the return type of a gcc2
40248 builtin and then its argument prototype would still apply. */
40249char sched_get_priority_max ();
40250/* The GNU C library defines this for functions which it implements
40251 to always fail with ENOSYS. Some functions are actually named
40252 something starting with __ and the normal name is an alias. */
40253#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40254choke me
40255#else
40256char (*f) () = sched_get_priority_max;
40257#endif
40258#ifdef __cplusplus
40259}
40260#endif
40261
40262int
40263main ()
40264{
40265return f != sched_get_priority_max;
40266 ;
40267 return 0;
40268}
40269_ACEOF
40270rm -f conftest.$ac_objext conftest$ac_exeext
40271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40272 (eval $ac_link) 2>conftest.er1
a848cd7e 40273 ac_status=$?
ac1cb8d3
VS
40274 grep -v '^ *+' conftest.er1 >conftest.err
40275 rm -f conftest.er1
40276 cat conftest.err >&5
a848cd7e
SC
40277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278 (exit $ac_status); } &&
bb9e79c0 40279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281 (eval $ac_try) 2>&5
40282 ac_status=$?
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); }; } &&
40285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287 (eval $ac_try) 2>&5
40288 ac_status=$?
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); }; }; then
40291 ac_cv_func_sched_get_priority_max=yes
40292else
40293 echo "$as_me: failed program was:" >&5
40294sed 's/^/| /' conftest.$ac_ext >&5
40295
40296ac_cv_func_sched_get_priority_max=no
40297fi
ac1cb8d3
VS
40298rm -f conftest.err conftest.$ac_objext \
40299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40300fi
40301echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40302echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40303if test $ac_cv_func_sched_get_priority_max = yes; then
40304 HAVE_PRIOR_FUNCS=1
40305else
40306 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40307echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40308if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40309 echo $ECHO_N "(cached) $ECHO_C" >&6
40310else
40311 ac_check_lib_save_LIBS=$LIBS
40312LIBS="-lposix4 $LIBS"
40313cat >conftest.$ac_ext <<_ACEOF
40314/* confdefs.h. */
40315_ACEOF
40316cat confdefs.h >>conftest.$ac_ext
40317cat >>conftest.$ac_ext <<_ACEOF
40318/* end confdefs.h. */
40319
40320/* Override any gcc2 internal prototype to avoid an error. */
40321#ifdef __cplusplus
40322extern "C"
40323#endif
40324/* We use char because int might match the return type of a gcc2
40325 builtin and then its argument prototype would still apply. */
40326char sched_get_priority_max ();
40327int
40328main ()
40329{
40330sched_get_priority_max ();
40331 ;
40332 return 0;
40333}
40334_ACEOF
40335rm -f conftest.$ac_objext conftest$ac_exeext
40336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40337 (eval $ac_link) 2>conftest.er1
a848cd7e 40338 ac_status=$?
ac1cb8d3
VS
40339 grep -v '^ *+' conftest.er1 >conftest.err
40340 rm -f conftest.er1
40341 cat conftest.err >&5
a848cd7e
SC
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); } &&
bb9e79c0 40344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346 (eval $ac_try) 2>&5
40347 ac_status=$?
40348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349 (exit $ac_status); }; } &&
40350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40352 (eval $ac_try) 2>&5
40353 ac_status=$?
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); }; }; then
40356 ac_cv_lib_posix4_sched_get_priority_max=yes
40357else
40358 echo "$as_me: failed program was:" >&5
40359sed 's/^/| /' conftest.$ac_ext >&5
40360
40361ac_cv_lib_posix4_sched_get_priority_max=no
40362fi
ac1cb8d3
VS
40363rm -f conftest.err conftest.$ac_objext \
40364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40365LIBS=$ac_check_lib_save_LIBS
40366fi
40367echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40368echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40369if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40370
40371 HAVE_PRIOR_FUNCS=1
40372 POSIX4_LINK=" -lposix4"
40373
40374fi
40375
40376
40377fi
40378
40379
40380fi
40381
40382
40383fi
40384
40385
40386 if test "$HAVE_PRIOR_FUNCS" = 1; then
40387 cat >>confdefs.h <<\_ACEOF
40388#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40389_ACEOF
40390
40391 else
40392 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40393echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40394 fi
40395
40396 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40397echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40398if test "${ac_cv_func_pthread_cancel+set}" = set; then
40399 echo $ECHO_N "(cached) $ECHO_C" >&6
40400else
40401 cat >conftest.$ac_ext <<_ACEOF
40402/* confdefs.h. */
40403_ACEOF
40404cat confdefs.h >>conftest.$ac_ext
40405cat >>conftest.$ac_ext <<_ACEOF
40406/* end confdefs.h. */
ac1cb8d3
VS
40407/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40409#define pthread_cancel innocuous_pthread_cancel
40410
a848cd7e
SC
40411/* System header to define __stub macros and hopefully few prototypes,
40412 which can conflict with char pthread_cancel (); below.
40413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40414 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40415
a848cd7e
SC
40416#ifdef __STDC__
40417# include <limits.h>
40418#else
40419# include <assert.h>
40420#endif
ac1cb8d3
VS
40421
40422#undef pthread_cancel
40423
a848cd7e
SC
40424/* Override any gcc2 internal prototype to avoid an error. */
40425#ifdef __cplusplus
40426extern "C"
40427{
40428#endif
40429/* We use char because int might match the return type of a gcc2
40430 builtin and then its argument prototype would still apply. */
40431char pthread_cancel ();
40432/* The GNU C library defines this for functions which it implements
40433 to always fail with ENOSYS. Some functions are actually named
40434 something starting with __ and the normal name is an alias. */
40435#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40436choke me
40437#else
40438char (*f) () = pthread_cancel;
40439#endif
40440#ifdef __cplusplus
40441}
40442#endif
40443
40444int
40445main ()
40446{
40447return f != pthread_cancel;
40448 ;
40449 return 0;
40450}
40451_ACEOF
40452rm -f conftest.$ac_objext conftest$ac_exeext
40453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40454 (eval $ac_link) 2>conftest.er1
a848cd7e 40455 ac_status=$?
ac1cb8d3
VS
40456 grep -v '^ *+' conftest.er1 >conftest.err
40457 rm -f conftest.er1
40458 cat conftest.err >&5
a848cd7e
SC
40459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460 (exit $ac_status); } &&
bb9e79c0 40461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463 (eval $ac_try) 2>&5
40464 ac_status=$?
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); }; } &&
40467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40469 (eval $ac_try) 2>&5
40470 ac_status=$?
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); }; }; then
40473 ac_cv_func_pthread_cancel=yes
40474else
40475 echo "$as_me: failed program was:" >&5
40476sed 's/^/| /' conftest.$ac_ext >&5
40477
40478ac_cv_func_pthread_cancel=no
40479fi
ac1cb8d3
VS
40480rm -f conftest.err conftest.$ac_objext \
40481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40482fi
40483echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40484echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40485if test $ac_cv_func_pthread_cancel = yes; then
40486 cat >>confdefs.h <<\_ACEOF
40487#define HAVE_PTHREAD_CANCEL 1
40488_ACEOF
40489
40490else
40491 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40492echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40493fi
40494
40495
abc736fd
MW
40496 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40497echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40498if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40499 echo $ECHO_N "(cached) $ECHO_C" >&6
40500else
40501 cat >conftest.$ac_ext <<_ACEOF
40502/* confdefs.h. */
40503_ACEOF
40504cat confdefs.h >>conftest.$ac_ext
40505cat >>conftest.$ac_ext <<_ACEOF
40506/* end confdefs.h. */
40507/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40509#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40510
40511/* System header to define __stub macros and hopefully few prototypes,
40512 which can conflict with char pthread_attr_setstacksize (); below.
40513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40514 <limits.h> exists even on freestanding compilers. */
40515
40516#ifdef __STDC__
40517# include <limits.h>
40518#else
40519# include <assert.h>
40520#endif
40521
40522#undef pthread_attr_setstacksize
40523
40524/* Override any gcc2 internal prototype to avoid an error. */
40525#ifdef __cplusplus
40526extern "C"
40527{
40528#endif
40529/* We use char because int might match the return type of a gcc2
40530 builtin and then its argument prototype would still apply. */
40531char pthread_attr_setstacksize ();
40532/* The GNU C library defines this for functions which it implements
40533 to always fail with ENOSYS. Some functions are actually named
40534 something starting with __ and the normal name is an alias. */
40535#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40536choke me
40537#else
40538char (*f) () = pthread_attr_setstacksize;
40539#endif
40540#ifdef __cplusplus
40541}
40542#endif
40543
40544int
40545main ()
40546{
40547return f != pthread_attr_setstacksize;
40548 ;
40549 return 0;
40550}
40551_ACEOF
40552rm -f conftest.$ac_objext conftest$ac_exeext
40553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40554 (eval $ac_link) 2>conftest.er1
40555 ac_status=$?
40556 grep -v '^ *+' conftest.er1 >conftest.err
40557 rm -f conftest.er1
40558 cat conftest.err >&5
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); } &&
bb9e79c0 40561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40563 (eval $ac_try) 2>&5
40564 ac_status=$?
40565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40566 (exit $ac_status); }; } &&
40567 { ac_try='test -s conftest$ac_exeext'
40568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40569 (eval $ac_try) 2>&5
40570 ac_status=$?
40571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572 (exit $ac_status); }; }; then
40573 ac_cv_func_pthread_attr_setstacksize=yes
40574else
40575 echo "$as_me: failed program was:" >&5
40576sed 's/^/| /' conftest.$ac_ext >&5
40577
40578ac_cv_func_pthread_attr_setstacksize=no
40579fi
40580rm -f conftest.err conftest.$ac_objext \
40581 conftest$ac_exeext conftest.$ac_ext
40582fi
40583echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40584echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40585if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40586 cat >>confdefs.h <<\_ACEOF
40587#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40588_ACEOF
40589
40590fi
40591
a848cd7e
SC
40592
40593
40594 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40595echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40596if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40597 echo $ECHO_N "(cached) $ECHO_C" >&6
40598else
40599
40600 cat >conftest.$ac_ext <<_ACEOF
40601/* confdefs.h. */
40602_ACEOF
40603cat confdefs.h >>conftest.$ac_ext
40604cat >>conftest.$ac_ext <<_ACEOF
40605/* end confdefs.h. */
40606#include <pthread.h>
40607int
40608main ()
40609{
40610
40611 pthread_mutexattr_t attr;
40612 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40613
40614 ;
40615 return 0;
40616}
40617_ACEOF
40618rm -f conftest.$ac_objext
40619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40620 (eval $ac_compile) 2>conftest.er1
a848cd7e 40621 ac_status=$?
ac1cb8d3
VS
40622 grep -v '^ *+' conftest.er1 >conftest.err
40623 rm -f conftest.er1
40624 cat conftest.err >&5
a848cd7e
SC
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); } &&
bb9e79c0 40627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629 (eval $ac_try) 2>&5
40630 ac_status=$?
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); }; } &&
40633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40635 (eval $ac_try) 2>&5
40636 ac_status=$?
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); }; }; then
123dca7d 40639 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40640else
40641 echo "$as_me: failed program was:" >&5
40642sed 's/^/| /' conftest.$ac_ext >&5
40643
123dca7d 40644wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40645
40646fi
ac1cb8d3 40647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40648
40649fi
40650echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40651echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40652
40653 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40654 cat >>confdefs.h <<\_ACEOF
40655#define HAVE_PTHREAD_MUTEXATTR_T 1
40656_ACEOF
40657
123dca7d
VZ
40658
40659 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40660echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40661if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40662 echo $ECHO_N "(cached) $ECHO_C" >&6
40663else
40664
40665 cat >conftest.$ac_ext <<_ACEOF
40666/* confdefs.h. */
40667_ACEOF
40668cat confdefs.h >>conftest.$ac_ext
40669cat >>conftest.$ac_ext <<_ACEOF
40670/* end confdefs.h. */
40671#include <pthread.h>
40672int
40673main ()
40674{
40675
40676 pthread_mutexattr_t attr;
40677 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40678
40679 ;
40680 return 0;
40681}
40682_ACEOF
40683rm -f conftest.$ac_objext
40684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40685 (eval $ac_compile) 2>conftest.er1
40686 ac_status=$?
40687 grep -v '^ *+' conftest.er1 >conftest.err
40688 rm -f conftest.er1
40689 cat conftest.err >&5
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); } &&
bb9e79c0 40692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40695 ac_status=$?
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; } &&
40698 { ac_try='test -s conftest.$ac_objext'
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40701 ac_status=$?
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; }; then
40704 wx_cv_func_pthread_mutexattr_settype_decl=yes
40705else
40706 echo "$as_me: failed program was:" >&5
40707sed 's/^/| /' conftest.$ac_ext >&5
40708
40709wx_cv_func_pthread_mutexattr_settype_decl=no
40710
40711fi
40712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40713
40714fi
40715echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40716echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40717 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40718 cat >>confdefs.h <<\_ACEOF
40719#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40720_ACEOF
40721
40722 fi
a848cd7e
SC
40723 else
40724 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40725echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40726if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40727 echo $ECHO_N "(cached) $ECHO_C" >&6
40728else
40729
40730 cat >conftest.$ac_ext <<_ACEOF
40731/* confdefs.h. */
40732_ACEOF
40733cat confdefs.h >>conftest.$ac_ext
40734cat >>conftest.$ac_ext <<_ACEOF
40735/* end confdefs.h. */
40736#include <pthread.h>
40737int
40738main ()
40739{
40740
40741 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40742
40743 ;
40744 return 0;
40745}
40746_ACEOF
40747rm -f conftest.$ac_objext
40748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40749 (eval $ac_compile) 2>conftest.er1
a848cd7e 40750 ac_status=$?
ac1cb8d3
VS
40751 grep -v '^ *+' conftest.er1 >conftest.err
40752 rm -f conftest.er1
40753 cat conftest.err >&5
a848cd7e
SC
40754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755 (exit $ac_status); } &&
bb9e79c0 40756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40758 (eval $ac_try) 2>&5
40759 ac_status=$?
40760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761 (exit $ac_status); }; } &&
40762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40764 (eval $ac_try) 2>&5
40765 ac_status=$?
40766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767 (exit $ac_status); }; }; then
40768
40769 wx_cv_type_pthread_rec_mutex_init=yes
40770
40771else
40772 echo "$as_me: failed program was:" >&5
40773sed 's/^/| /' conftest.$ac_ext >&5
40774
40775
40776 wx_cv_type_pthread_rec_mutex_init=no
40777
40778
40779fi
ac1cb8d3 40780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40781
40782fi
40783echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40784echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40785 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40786 cat >>confdefs.h <<\_ACEOF
40787#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40788_ACEOF
40789
40790 else
40791 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40792echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40793 fi
40794 fi
40795 fi
40796
40797else
40798 if test "$wxUSE_THREADS" = "yes" ; then
40799 case "${host}" in
40800 *-*-mingw32* )
40801 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40802echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40803if test "${wx_cv_cflags_mthread+set}" = set; then
40804 echo $ECHO_N "(cached) $ECHO_C" >&6
40805else
40806
e56f4f9e
VZ
40807 CXXFLAGS_OLD="$CXXFLAGS"
40808 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40809 cat >conftest.$ac_ext <<_ACEOF
40810/* confdefs.h. */
40811_ACEOF
40812cat confdefs.h >>conftest.$ac_ext
40813cat >>conftest.$ac_ext <<_ACEOF
40814/* end confdefs.h. */
40815
40816int
40817main ()
40818{
40819
40820 ;
40821 return 0;
40822}
40823_ACEOF
40824rm -f conftest.$ac_objext
40825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40826 (eval $ac_compile) 2>conftest.er1
a848cd7e 40827 ac_status=$?
ac1cb8d3
VS
40828 grep -v '^ *+' conftest.er1 >conftest.err
40829 rm -f conftest.er1
40830 cat conftest.err >&5
a848cd7e
SC
40831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832 (exit $ac_status); } &&
bb9e79c0 40833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40835 (eval $ac_try) 2>&5
40836 ac_status=$?
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); }; } &&
40839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841 (eval $ac_try) 2>&5
40842 ac_status=$?
40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844 (exit $ac_status); }; }; then
40845 wx_cv_cflags_mthread=yes
40846else
40847 echo "$as_me: failed program was:" >&5
40848sed 's/^/| /' conftest.$ac_ext >&5
40849
40850wx_cv_cflags_mthread=no
40851
40852fi
ac1cb8d3 40853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40854
40855
40856fi
40857echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40858echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40859
40860 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40861 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40862 LDFLAGS="$LDFLAGS -mthreads"
40863 else
e56f4f9e 40864 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40865 fi
40866 ;;
40867 *-pc-os2*emx )
5ff751d6
VZ
40868 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40869 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40870 LDFLAGS="$LDFLAGS -Zmt"
40871 ;;
40872 esac
40873 fi
40874fi
40875
004ee6da
RL
40876echo "$as_me:$LINENO: checking for localtime_r" >&5
40877echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40878if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40879 echo $ECHO_N "(cached) $ECHO_C" >&6
40880else
40881 cat >conftest.$ac_ext <<_ACEOF
40882/* confdefs.h. */
40883_ACEOF
40884cat confdefs.h >>conftest.$ac_ext
40885cat >>conftest.$ac_ext <<_ACEOF
40886/* end confdefs.h. */
004ee6da 40887/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40889#define localtime_r innocuous_localtime_r
ac1cb8d3 40890
a848cd7e 40891/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40892 which can conflict with char localtime_r (); below.
a848cd7e
SC
40893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40895
a848cd7e
SC
40896#ifdef __STDC__
40897# include <limits.h>
40898#else
40899# include <assert.h>
40900#endif
ac1cb8d3 40901
004ee6da 40902#undef localtime_r
ac1cb8d3 40903
a848cd7e
SC
40904/* Override any gcc2 internal prototype to avoid an error. */
40905#ifdef __cplusplus
40906extern "C"
40907{
40908#endif
40909/* We use char because int might match the return type of a gcc2
40910 builtin and then its argument prototype would still apply. */
004ee6da 40911char localtime_r ();
a848cd7e
SC
40912/* The GNU C library defines this for functions which it implements
40913 to always fail with ENOSYS. Some functions are actually named
40914 something starting with __ and the normal name is an alias. */
004ee6da 40915#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40916choke me
40917#else
004ee6da 40918char (*f) () = localtime_r;
a848cd7e
SC
40919#endif
40920#ifdef __cplusplus
40921}
40922#endif
40923
40924int
40925main ()
40926{
004ee6da
RL
40927return f != localtime_r;
40928 ;
40929 return 0;
40930}
40931_ACEOF
40932rm -f conftest.$ac_objext conftest$ac_exeext
40933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40934 (eval $ac_link) 2>conftest.er1
40935 ac_status=$?
40936 grep -v '^ *+' conftest.er1 >conftest.err
40937 rm -f conftest.er1
40938 cat conftest.err >&5
40939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40940 (exit $ac_status); } &&
bb9e79c0 40941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40943 (eval $ac_try) 2>&5
40944 ac_status=$?
40945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946 (exit $ac_status); }; } &&
40947 { ac_try='test -s conftest$ac_exeext'
40948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40949 (eval $ac_try) 2>&5
40950 ac_status=$?
40951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952 (exit $ac_status); }; }; then
40953 ac_cv_func_localtime_r=yes
40954else
40955 echo "$as_me: failed program was:" >&5
40956sed 's/^/| /' conftest.$ac_ext >&5
40957
40958ac_cv_func_localtime_r=no
40959fi
40960rm -f conftest.err conftest.$ac_objext \
40961 conftest$ac_exeext conftest.$ac_ext
40962fi
40963echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40964echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40965if test $ac_cv_func_localtime_r = yes; then
40966 cat >>confdefs.h <<\_ACEOF
40967#define HAVE_LOCALTIME_R 1
40968_ACEOF
40969
40970fi
40971
40972echo "$as_me:$LINENO: checking for gmtime_r" >&5
40973echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40974if test "${ac_cv_func_gmtime_r+set}" = set; then
40975 echo $ECHO_N "(cached) $ECHO_C" >&6
40976else
40977 cat >conftest.$ac_ext <<_ACEOF
40978/* confdefs.h. */
40979_ACEOF
40980cat confdefs.h >>conftest.$ac_ext
40981cat >>conftest.$ac_ext <<_ACEOF
40982/* end confdefs.h. */
40983/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40985#define gmtime_r innocuous_gmtime_r
40986
40987/* System header to define __stub macros and hopefully few prototypes,
40988 which can conflict with char gmtime_r (); below.
40989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40990 <limits.h> exists even on freestanding compilers. */
40991
40992#ifdef __STDC__
40993# include <limits.h>
40994#else
40995# include <assert.h>
40996#endif
40997
40998#undef gmtime_r
40999
41000/* Override any gcc2 internal prototype to avoid an error. */
41001#ifdef __cplusplus
41002extern "C"
41003{
41004#endif
41005/* We use char because int might match the return type of a gcc2
41006 builtin and then its argument prototype would still apply. */
41007char gmtime_r ();
41008/* The GNU C library defines this for functions which it implements
41009 to always fail with ENOSYS. Some functions are actually named
41010 something starting with __ and the normal name is an alias. */
41011#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41012choke me
41013#else
41014char (*f) () = gmtime_r;
41015#endif
41016#ifdef __cplusplus
41017}
41018#endif
41019
41020int
41021main ()
41022{
41023return f != gmtime_r;
41024 ;
41025 return 0;
41026}
41027_ACEOF
41028rm -f conftest.$ac_objext conftest$ac_exeext
41029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41030 (eval $ac_link) 2>conftest.er1
41031 ac_status=$?
41032 grep -v '^ *+' conftest.er1 >conftest.err
41033 rm -f conftest.er1
41034 cat conftest.err >&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); } &&
bb9e79c0 41037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41039 (eval $ac_try) 2>&5
41040 ac_status=$?
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); }; } &&
41043 { ac_try='test -s conftest$ac_exeext'
41044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045 (eval $ac_try) 2>&5
41046 ac_status=$?
41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048 (exit $ac_status); }; }; then
41049 ac_cv_func_gmtime_r=yes
41050else
41051 echo "$as_me: failed program was:" >&5
41052sed 's/^/| /' conftest.$ac_ext >&5
41053
41054ac_cv_func_gmtime_r=no
41055fi
41056rm -f conftest.err conftest.$ac_objext \
41057 conftest$ac_exeext conftest.$ac_ext
41058fi
41059echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41060echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41061if test $ac_cv_func_gmtime_r = yes; then
41062 cat >>confdefs.h <<\_ACEOF
41063#define HAVE_GMTIME_R 1
41064_ACEOF
41065
41066fi
41067
41068echo "$as_me:$LINENO: checking for readdir_r" >&5
41069echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41070if test "${ac_cv_func_readdir_r+set}" = set; then
41071 echo $ECHO_N "(cached) $ECHO_C" >&6
41072else
41073 cat >conftest.$ac_ext <<_ACEOF
41074/* confdefs.h. */
41075_ACEOF
41076cat confdefs.h >>conftest.$ac_ext
41077cat >>conftest.$ac_ext <<_ACEOF
41078/* end confdefs.h. */
41079/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41081#define readdir_r innocuous_readdir_r
41082
41083/* System header to define __stub macros and hopefully few prototypes,
41084 which can conflict with char readdir_r (); below.
41085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41086 <limits.h> exists even on freestanding compilers. */
41087
41088#ifdef __STDC__
41089# include <limits.h>
41090#else
41091# include <assert.h>
41092#endif
41093
41094#undef readdir_r
41095
41096/* Override any gcc2 internal prototype to avoid an error. */
41097#ifdef __cplusplus
41098extern "C"
41099{
41100#endif
41101/* We use char because int might match the return type of a gcc2
41102 builtin and then its argument prototype would still apply. */
41103char readdir_r ();
41104/* The GNU C library defines this for functions which it implements
41105 to always fail with ENOSYS. Some functions are actually named
41106 something starting with __ and the normal name is an alias. */
41107#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41108choke me
41109#else
41110char (*f) () = readdir_r;
41111#endif
41112#ifdef __cplusplus
41113}
41114#endif
41115
41116int
41117main ()
41118{
41119return f != readdir_r;
41120 ;
41121 return 0;
41122}
41123_ACEOF
41124rm -f conftest.$ac_objext conftest$ac_exeext
41125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126 (eval $ac_link) 2>conftest.er1
41127 ac_status=$?
41128 grep -v '^ *+' conftest.er1 >conftest.err
41129 rm -f conftest.er1
41130 cat conftest.err >&5
41131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 (exit $ac_status); } &&
bb9e79c0 41133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41135 (eval $ac_try) 2>&5
41136 ac_status=$?
41137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138 (exit $ac_status); }; } &&
41139 { ac_try='test -s conftest$ac_exeext'
41140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 (eval $ac_try) 2>&5
41142 ac_status=$?
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); }; }; then
41145 ac_cv_func_readdir_r=yes
41146else
41147 echo "$as_me: failed program was:" >&5
41148sed 's/^/| /' conftest.$ac_ext >&5
41149
41150ac_cv_func_readdir_r=no
41151fi
41152rm -f conftest.err conftest.$ac_objext \
41153 conftest$ac_exeext conftest.$ac_ext
41154fi
41155echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41156echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41157if test $ac_cv_func_readdir_r = yes; then
41158 cat >>confdefs.h <<\_ACEOF
41159#define HAVE_READDIR_R 1
41160_ACEOF
41161
41162fi
41163
004ee6da 41164
004ee6da
RL
41165
41166
41167 ac_ext=c
41168ac_cpp='$CPP $CPPFLAGS'
41169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41171ac_compiler_gnu=$ac_cv_c_compiler_gnu
41172
41173 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41174echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41175
41176 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41177 echo $ECHO_N "(cached) $ECHO_C" >&6
41178else
41179
41180
2f6c5bb5 41181################################################################
004ee6da
RL
41182
41183ac_cv_func_which_gethostbyname_r=unknown
41184
41185#
41186# ONE ARGUMENT (sanity check)
41187#
41188
41189# This should fail, as there is no variant of gethostbyname_r() that takes
41190# a single argument. If it actually compiles, then we can assume that
41191# netdb.h is not declaring the function, and the compiler is thereby
41192# assuming an implicit prototype. In which case, we're out of luck.
41193#
41194cat >conftest.$ac_ext <<_ACEOF
41195/* confdefs.h. */
41196_ACEOF
41197cat confdefs.h >>conftest.$ac_ext
41198cat >>conftest.$ac_ext <<_ACEOF
41199/* end confdefs.h. */
41200#include <netdb.h>
41201int
41202main ()
41203{
41204
41205 char *name = "www.gnu.org";
41206 (void)gethostbyname_r(name) /* ; */
41207
41208 ;
41209 return 0;
41210}
41211_ACEOF
41212rm -f conftest.$ac_objext
41213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41214 (eval $ac_compile) 2>conftest.er1
41215 ac_status=$?
41216 grep -v '^ *+' conftest.er1 >conftest.err
41217 rm -f conftest.er1
41218 cat conftest.err >&5
41219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41220 (exit $ac_status); } &&
bb9e79c0 41221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223 (eval $ac_try) 2>&5
41224 ac_status=$?
41225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226 (exit $ac_status); }; } &&
41227 { ac_try='test -s conftest.$ac_objext'
41228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41229 (eval $ac_try) 2>&5
41230 ac_status=$?
41231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); }; }; then
41233 ac_cv_func_which_gethostbyname_r=no
41234else
41235 echo "$as_me: failed program was:" >&5
41236sed 's/^/| /' conftest.$ac_ext >&5
41237
41238fi
41239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41240
41241#
41242# SIX ARGUMENTS
41243# (e.g. Linux)
41244#
41245
41246if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41247
41248cat >conftest.$ac_ext <<_ACEOF
41249/* confdefs.h. */
41250_ACEOF
41251cat confdefs.h >>conftest.$ac_ext
41252cat >>conftest.$ac_ext <<_ACEOF
41253/* end confdefs.h. */
41254#include <netdb.h>
41255int
41256main ()
41257{
41258
41259 char *name = "www.gnu.org";
41260 struct hostent ret, *retp;
41261 char buf[1024];
41262 int buflen = 1024;
41263 int my_h_errno;
41264 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41265
41266 ;
41267 return 0;
41268}
41269_ACEOF
41270rm -f conftest.$ac_objext
41271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41272 (eval $ac_compile) 2>conftest.er1
41273 ac_status=$?
41274 grep -v '^ *+' conftest.er1 >conftest.err
41275 rm -f conftest.er1
41276 cat conftest.err >&5
41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); } &&
bb9e79c0 41279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41281 (eval $ac_try) 2>&5
41282 ac_status=$?
41283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284 (exit $ac_status); }; } &&
41285 { ac_try='test -s conftest.$ac_objext'
41286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287 (eval $ac_try) 2>&5
41288 ac_status=$?
41289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290 (exit $ac_status); }; }; then
41291 ac_cv_func_which_gethostbyname_r=six
41292else
41293 echo "$as_me: failed program was:" >&5
41294sed 's/^/| /' conftest.$ac_ext >&5
41295
41296fi
41297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41298
41299fi
41300
41301#
41302# FIVE ARGUMENTS
41303# (e.g. Solaris)
41304#
41305
41306if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41307
41308cat >conftest.$ac_ext <<_ACEOF
41309/* confdefs.h. */
41310_ACEOF
41311cat confdefs.h >>conftest.$ac_ext
41312cat >>conftest.$ac_ext <<_ACEOF
41313/* end confdefs.h. */
41314#include <netdb.h>
41315int
41316main ()
41317{
41318
41319 char *name = "www.gnu.org";
41320 struct hostent ret;
41321 char buf[1024];
41322 int buflen = 1024;
41323 int my_h_errno;
41324 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41325
41326 ;
41327 return 0;
41328}
41329_ACEOF
41330rm -f conftest.$ac_objext
41331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41332 (eval $ac_compile) 2>conftest.er1
41333 ac_status=$?
41334 grep -v '^ *+' conftest.er1 >conftest.err
41335 rm -f conftest.er1
41336 cat conftest.err >&5
41337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338 (exit $ac_status); } &&
bb9e79c0 41339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341 (eval $ac_try) 2>&5
41342 ac_status=$?
41343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344 (exit $ac_status); }; } &&
41345 { ac_try='test -s conftest.$ac_objext'
41346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347 (eval $ac_try) 2>&5
41348 ac_status=$?
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); }; }; then
41351 ac_cv_func_which_gethostbyname_r=five
41352else
41353 echo "$as_me: failed program was:" >&5
41354sed 's/^/| /' conftest.$ac_ext >&5
41355
41356fi
41357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41358
41359fi
41360
41361#
41362# THREE ARGUMENTS
41363# (e.g. AIX, HP-UX, Tru64)
41364#
41365
41366if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41367
41368cat >conftest.$ac_ext <<_ACEOF
41369/* confdefs.h. */
41370_ACEOF
41371cat confdefs.h >>conftest.$ac_ext
41372cat >>conftest.$ac_ext <<_ACEOF
41373/* end confdefs.h. */
41374#include <netdb.h>
41375int
41376main ()
41377{
41378
41379 char *name = "www.gnu.org";
41380 struct hostent ret;
41381 struct hostent_data data;
41382 (void)gethostbyname_r(name, &ret, &data) /* ; */
41383
41384 ;
41385 return 0;
41386}
41387_ACEOF
41388rm -f conftest.$ac_objext
41389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41390 (eval $ac_compile) 2>conftest.er1
41391 ac_status=$?
41392 grep -v '^ *+' conftest.er1 >conftest.err
41393 rm -f conftest.er1
41394 cat conftest.err >&5
41395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396 (exit $ac_status); } &&
bb9e79c0 41397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41399 (eval $ac_try) 2>&5
41400 ac_status=$?
41401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402 (exit $ac_status); }; } &&
41403 { ac_try='test -s conftest.$ac_objext'
41404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41405 (eval $ac_try) 2>&5
41406 ac_status=$?
41407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408 (exit $ac_status); }; }; then
41409 ac_cv_func_which_gethostbyname_r=three
41410else
41411 echo "$as_me: failed program was:" >&5
41412sed 's/^/| /' conftest.$ac_ext >&5
41413
41414fi
41415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41416
41417fi
41418
2f6c5bb5 41419################################################################
004ee6da
RL
41420
41421
41422fi
41423
41424case "$ac_cv_func_which_gethostbyname_r" in
41425 three)
41426 echo "$as_me:$LINENO: result: three" >&5
41427echo "${ECHO_T}three" >&6
41428 cat >>confdefs.h <<\_ACEOF
41429#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41430_ACEOF
41431
41432 ;;
41433
41434 five)
41435 echo "$as_me:$LINENO: result: five" >&5
41436echo "${ECHO_T}five" >&6
41437 cat >>confdefs.h <<\_ACEOF
41438#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41439_ACEOF
41440
41441 ;;
41442
41443 six)
41444 echo "$as_me:$LINENO: result: six" >&5
41445echo "${ECHO_T}six" >&6
41446 cat >>confdefs.h <<\_ACEOF
41447#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41448_ACEOF
41449
41450 ;;
41451
41452 no)
41453 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41454echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41455 ;;
41456
41457 unknown)
41458 echo "$as_me:$LINENO: result: can't tell" >&5
41459echo "${ECHO_T}can't tell" >&6
41460 ;;
41461
41462 *)
41463 { { echo "$as_me:$LINENO: error: internal error" >&5
41464echo "$as_me: error: internal error" >&2;}
41465 { (exit 1); exit 1; }; }
41466 ;;
41467esac
41468
5ec3bc43
JS
41469ac_ext=cc
41470ac_cpp='$CXXCPP $CPPFLAGS'
41471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41474
41475
41476
41477 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41478 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41479 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41480echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41481if test "${ac_cv_func_gethostbyname+set}" = set; then
41482 echo $ECHO_N "(cached) $ECHO_C" >&6
41483else
41484 cat >conftest.$ac_ext <<_ACEOF
41485/* confdefs.h. */
41486_ACEOF
41487cat confdefs.h >>conftest.$ac_ext
41488cat >>conftest.$ac_ext <<_ACEOF
41489/* end confdefs.h. */
41490/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41492#define gethostbyname innocuous_gethostbyname
41493
41494/* System header to define __stub macros and hopefully few prototypes,
41495 which can conflict with char gethostbyname (); below.
41496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41497 <limits.h> exists even on freestanding compilers. */
41498
41499#ifdef __STDC__
41500# include <limits.h>
41501#else
41502# include <assert.h>
41503#endif
41504
41505#undef gethostbyname
41506
41507/* Override any gcc2 internal prototype to avoid an error. */
41508#ifdef __cplusplus
41509extern "C"
41510{
41511#endif
41512/* We use char because int might match the return type of a gcc2
41513 builtin and then its argument prototype would still apply. */
41514char gethostbyname ();
41515/* The GNU C library defines this for functions which it implements
41516 to always fail with ENOSYS. Some functions are actually named
41517 something starting with __ and the normal name is an alias. */
41518#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41519choke me
41520#else
41521char (*f) () = gethostbyname;
41522#endif
41523#ifdef __cplusplus
41524}
41525#endif
41526
41527int
41528main ()
41529{
41530return f != gethostbyname;
41531 ;
41532 return 0;
41533}
41534_ACEOF
41535rm -f conftest.$ac_objext conftest$ac_exeext
41536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41537 (eval $ac_link) 2>conftest.er1
41538 ac_status=$?
41539 grep -v '^ *+' conftest.er1 >conftest.err
41540 rm -f conftest.er1
41541 cat conftest.err >&5
41542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543 (exit $ac_status); } &&
bb9e79c0 41544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41546 (eval $ac_try) 2>&5
41547 ac_status=$?
41548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41549 (exit $ac_status); }; } &&
41550 { ac_try='test -s conftest$ac_exeext'
41551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41552 (eval $ac_try) 2>&5
41553 ac_status=$?
41554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555 (exit $ac_status); }; }; then
41556 ac_cv_func_gethostbyname=yes
41557else
41558 echo "$as_me: failed program was:" >&5
41559sed 's/^/| /' conftest.$ac_ext >&5
41560
41561ac_cv_func_gethostbyname=no
41562fi
41563rm -f conftest.err conftest.$ac_objext \
41564 conftest$ac_exeext conftest.$ac_ext
41565fi
41566echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41567echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41568if test $ac_cv_func_gethostbyname = yes; then
41569 cat >>confdefs.h <<\_ACEOF
41570#define HAVE_GETHOSTBYNAME 1
41571_ACEOF
41572
41573fi
41574
41575 fi
3ecd9f92 41576
81c330c6
VZ
41577echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41578echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41579if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41580 echo $ECHO_N "(cached) $ECHO_C" >&6
41581else
3ecd9f92
MW
41582
41583 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41584/* confdefs.h. */
41585_ACEOF
41586cat confdefs.h >>conftest.$ac_ext
41587cat >>conftest.$ac_ext <<_ACEOF
41588/* end confdefs.h. */
81c330c6 41589#include <netdb.h>
004ee6da
RL
41590int
41591main ()
41592{
41593
81c330c6
VZ
41594 char *name;
41595 char *proto;
41596 struct servent *se, *res;
41597 char buffer[2048];
41598 int buflen = 2048;
41599 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41600
41601 ;
41602 return 0;
41603}
41604_ACEOF
41605rm -f conftest.$ac_objext
41606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41607 (eval $ac_compile) 2>conftest.er1
41608 ac_status=$?
41609 grep -v '^ *+' conftest.er1 >conftest.err
41610 rm -f conftest.er1
41611 cat conftest.err >&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); } &&
bb9e79c0 41614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41617 ac_status=$?
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; } &&
41620 { ac_try='test -s conftest.$ac_objext'
41621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622 (eval $ac_try) 2>&5
41623 ac_status=$?
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); }; }; then
81c330c6 41626 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41627else
41628 echo "$as_me: failed program was:" >&5
41629sed 's/^/| /' conftest.$ac_ext >&5
41630
3ecd9f92 41631
81c330c6 41632 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41633/* confdefs.h. */
41634_ACEOF
41635cat confdefs.h >>conftest.$ac_ext
41636cat >>conftest.$ac_ext <<_ACEOF
41637/* end confdefs.h. */
81c330c6 41638#include <netdb.h>
004ee6da
RL
41639int
41640main ()
41641{
41642
81c330c6
VZ
41643 char *name;
41644 char *proto;
41645 struct servent *se;
41646 char buffer[2048];
41647 int buflen = 2048;
41648 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41649
41650 ;
41651 return 0;
41652}
41653_ACEOF
41654rm -f conftest.$ac_objext
41655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41656 (eval $ac_compile) 2>conftest.er1
41657 ac_status=$?
41658 grep -v '^ *+' conftest.er1 >conftest.err
41659 rm -f conftest.er1
41660 cat conftest.err >&5
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); } &&
bb9e79c0 41663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41665 (eval $ac_try) 2>&5
41666 ac_status=$?
41667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41668 (exit $ac_status); }; } &&
41669 { ac_try='test -s conftest.$ac_objext'
41670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41671 (eval $ac_try) 2>&5
41672 ac_status=$?
41673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41674 (exit $ac_status); }; }; then
81c330c6 41675 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41676else
41677 echo "$as_me: failed program was:" >&5
41678sed 's/^/| /' conftest.$ac_ext >&5
41679
3ecd9f92 41680
81c330c6 41681 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41682/* confdefs.h. */
41683_ACEOF
41684cat confdefs.h >>conftest.$ac_ext
41685cat >>conftest.$ac_ext <<_ACEOF
41686/* end confdefs.h. */
81c330c6 41687#include <netdb.h>
004ee6da
RL
41688int
41689main ()
41690{
41691
81c330c6
VZ
41692 char *name;
41693 char *proto;
41694 struct servent *se;
41695 struct servent_data data;
41696 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41697
41698 ;
41699 return 0;
41700}
41701_ACEOF
41702rm -f conftest.$ac_objext
41703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41704 (eval $ac_compile) 2>conftest.er1
41705 ac_status=$?
41706 grep -v '^ *+' conftest.er1 >conftest.err
41707 rm -f conftest.er1
41708 cat conftest.err >&5
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); } &&
bb9e79c0 41711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41713 (eval $ac_try) 2>&5
41714 ac_status=$?
41715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716 (exit $ac_status); }; } &&
41717 { ac_try='test -s conftest.$ac_objext'
41718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41719 (eval $ac_try) 2>&5
41720 ac_status=$?
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); }; }; then
81c330c6 41723 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41724else
41725 echo "$as_me: failed program was:" >&5
41726sed 's/^/| /' conftest.$ac_ext >&5
41727
41728ac_cv_func_which_getservbyname_r=no
81c330c6 41729
004ee6da
RL
41730fi
41731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41732
3ecd9f92 41733
004ee6da
RL
41734fi
41735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41736
3ecd9f92 41737
004ee6da
RL
41738fi
41739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41740
004ee6da 41741
3ecd9f92
MW
41742fi
41743echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41744echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41745
41746if test $ac_cv_func_which_getservbyname_r = six; then
41747 cat >>confdefs.h <<\_ACEOF
41748#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41749_ACEOF
41750
41751elif test $ac_cv_func_which_getservbyname_r = five; then
41752 cat >>confdefs.h <<\_ACEOF
41753#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41754_ACEOF
41755
41756elif test $ac_cv_func_which_getservbyname_r = four; then
41757 cat >>confdefs.h <<\_ACEOF
41758#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41759_ACEOF
41760
004ee6da
RL
41761fi
41762
41763
41764 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41765 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41766
41767for ac_func in getservbyname
41768do
41769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41770echo "$as_me:$LINENO: checking for $ac_func" >&5
41771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41772if eval "test \"\${$as_ac_var+set}\" = set"; then
41773 echo $ECHO_N "(cached) $ECHO_C" >&6
41774else
41775 cat >conftest.$ac_ext <<_ACEOF
41776/* confdefs.h. */
41777_ACEOF
41778cat confdefs.h >>conftest.$ac_ext
41779cat >>conftest.$ac_ext <<_ACEOF
41780/* end confdefs.h. */
41781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41783#define $ac_func innocuous_$ac_func
41784
41785/* System header to define __stub macros and hopefully few prototypes,
41786 which can conflict with char $ac_func (); below.
41787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41788 <limits.h> exists even on freestanding compilers. */
41789
41790#ifdef __STDC__
41791# include <limits.h>
41792#else
41793# include <assert.h>
41794#endif
41795
41796#undef $ac_func
41797
41798/* Override any gcc2 internal prototype to avoid an error. */
41799#ifdef __cplusplus
41800extern "C"
41801{
41802#endif
41803/* We use char because int might match the return type of a gcc2
41804 builtin and then its argument prototype would still apply. */
41805char $ac_func ();
41806/* The GNU C library defines this for functions which it implements
41807 to always fail with ENOSYS. Some functions are actually named
41808 something starting with __ and the normal name is an alias. */
41809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41810choke me
41811#else
41812char (*f) () = $ac_func;
41813#endif
41814#ifdef __cplusplus
41815}
41816#endif
41817
41818int
41819main ()
41820{
41821return f != $ac_func;
41822 ;
41823 return 0;
41824}
41825_ACEOF
41826rm -f conftest.$ac_objext conftest$ac_exeext
41827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41828 (eval $ac_link) 2>conftest.er1
41829 ac_status=$?
41830 grep -v '^ *+' conftest.er1 >conftest.err
41831 rm -f conftest.er1
41832 cat conftest.err >&5
41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } &&
bb9e79c0 41835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41837 (eval $ac_try) 2>&5
41838 ac_status=$?
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); }; } &&
41841 { ac_try='test -s conftest$ac_exeext'
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; }; then
41847 eval "$as_ac_var=yes"
41848else
41849 echo "$as_me: failed program was:" >&5
41850sed 's/^/| /' conftest.$ac_ext >&5
41851
41852eval "$as_ac_var=no"
41853fi
41854rm -f conftest.err conftest.$ac_objext \
41855 conftest$ac_exeext conftest.$ac_ext
41856fi
41857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41859if test `eval echo '${'$as_ac_var'}'` = yes; then
41860 cat >>confdefs.h <<_ACEOF
41861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41862_ACEOF
41863 cat >>confdefs.h <<\_ACEOF
41864#define HAVE_GETSERVBYNAME 1
41865_ACEOF
41866
41867fi
41868done
41869
41870 fi
41871
004ee6da
RL
41872if test "$wxUSE_THREADS" = "yes"; then
41873 cat >>confdefs.h <<\_ACEOF
41874#define wxUSE_THREADS 1
41875_ACEOF
41876
41877
41878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41879else
56632e81 41880 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41881 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41882echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41883 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41884 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41885 echo "$as_me:$LINENO: result: yes" >&5
41886echo "${ECHO_T}yes" >&6
41887 else
41888 echo "$as_me:$LINENO: result: no" >&5
41889echo "${ECHO_T}no" >&6
41890 fi
41891 fi
41892fi
41893
41894if test "$WXGTK20" = 1 ; then
41895 cat >>confdefs.h <<_ACEOF
41896#define __WXGTK20__ $WXGTK20
41897_ACEOF
41898
41899 WXGTK12=1
41900fi
41901
41902if test "$WXGTK12" = 1 ; then
41903 cat >>confdefs.h <<_ACEOF
41904#define __WXGTK12__ $WXGTK12
41905_ACEOF
41906
41907fi
41908
41909if test "$WXGTK127" = 1 ; then
41910 cat >>confdefs.h <<_ACEOF
41911#define __WXGTK127__ $WXGTK127
41912_ACEOF
41913
41914fi
41915
41916if test "$WXGPE" = 1 ; then
41917 cat >>confdefs.h <<_ACEOF
41918#define __WXGPE__ $WXGPE
41919_ACEOF
41920
41921fi
41922
41923DEBUG_CFLAGS=
41924if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41925 DEBUG_CFLAGS="-g"
41926 wxUSE_OPTIMISE=no
41927fi
41928
41929if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41930 wxUSE_DEBUG_INFO=yes
41931 if test "$GCC" = yes; then
41932 DEBUG_CFLAGS="-ggdb"
41933 fi
41934fi
41935
41936if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41937 cat >>confdefs.h <<\_ACEOF
41938#define WXDEBUG 1
41939_ACEOF
41940
41941 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41942else
41943 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41944 if test "x$wxGTK_VERSION" = "x1" ; then
41945 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41946 fi
004ee6da
RL
41947 fi
41948fi
41949
41950if test "$wxUSE_MEM_TRACING" = "yes" ; then
41951 cat >>confdefs.h <<\_ACEOF
41952#define wxUSE_MEMORY_TRACING 1
41953_ACEOF
41954
41955 cat >>confdefs.h <<\_ACEOF
41956#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41957_ACEOF
41958
41959 cat >>confdefs.h <<\_ACEOF
41960#define wxUSE_DEBUG_NEW_ALWAYS 1
41961_ACEOF
41962
41963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41964fi
41965
41966if test "$wxUSE_DMALLOC" = "yes" ; then
41967 DMALLOC_LIBS="-ldmallocthcxx"
41968fi
41969
41970PROFILE_FLAGS=
41971if test "$wxUSE_PROFILE" = "yes" ; then
41972 PROFILE_FLAGS=" -pg"
41973fi
41974
41975if test "$GCC" = "yes" ; then
41976 if test "$wxUSE_NO_RTTI" = "yes" ; then
41977 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41978 fi
41979 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41980 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41981 fi
41982 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41983 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41984 fi
41985
41986 case "${host}" in
41987 powerpc*-*-aix* )
41988 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41989 ;;
41990 *-hppa* )
41991 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41992 ;;
41993 esac
41994fi
41995
41996OPTIMISE_CFLAGS=
41997if test "$wxUSE_OPTIMISE" = "no" ; then
41998 if test "$GCC" = yes ; then
41999 OPTIMISE_CFLAGS="-O0"
42000 fi
42001else
42002 if test "$GCC" = yes ; then
e5efa97e
VZ
42003 case "${host}" in
42004 *-pc-os2_emx | *-pc-os2-emx )
42005 OPTIMISE_CFLAGS="-O2"
42006 ;;
42007 *)
42008 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42009 ;;
42010 esac
004ee6da
RL
42011 else
42012 OPTIMISE_CFLAGS="-O"
42013 fi
42014fi
42015
42016
42017if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42018 cat >>confdefs.h <<\_ACEOF
42019#define WXWIN_COMPATIBILITY_2_4 1
42020_ACEOF
42021
42022
42023 WXWIN_COMPATIBILITY_2_6="yes"
42024fi
42025
42026if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42027 cat >>confdefs.h <<\_ACEOF
42028#define WXWIN_COMPATIBILITY_2_6 1
42029_ACEOF
42030
42031fi
42032
42033
42034if test "$wxUSE_GUI" = "yes"; then
42035 cat >>confdefs.h <<\_ACEOF
42036#define wxUSE_GUI 1
42037_ACEOF
42038
42039
42040 fi
42041
42042
42043if test "$wxUSE_UNIX" = "yes"; then
42044 cat >>confdefs.h <<\_ACEOF
42045#define wxUSE_UNIX 1
42046_ACEOF
42047
42048fi
42049
42050
42051if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42052
42053 HAVE_DL_FUNCS=0
42054 HAVE_SHL_FUNCS=0
42055 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42056 if test "$USE_DARWIN" = 1; then
42057 HAVE_DL_FUNCS=1
42058 elif test "$USE_DOS" = 1; then
42059 HAVE_DL_FUNCS=0
42060 else
42061
42062for ac_func in dlopen
42063do
42064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42065echo "$as_me:$LINENO: checking for $ac_func" >&5
42066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42067if eval "test \"\${$as_ac_var+set}\" = set"; then
42068 echo $ECHO_N "(cached) $ECHO_C" >&6
42069else
42070 cat >conftest.$ac_ext <<_ACEOF
42071/* confdefs.h. */
42072_ACEOF
42073cat confdefs.h >>conftest.$ac_ext
42074cat >>conftest.$ac_ext <<_ACEOF
42075/* end confdefs.h. */
42076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42078#define $ac_func innocuous_$ac_func
42079
42080/* System header to define __stub macros and hopefully few prototypes,
42081 which can conflict with char $ac_func (); below.
42082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42083 <limits.h> exists even on freestanding compilers. */
42084
42085#ifdef __STDC__
42086# include <limits.h>
42087#else
42088# include <assert.h>
42089#endif
42090
42091#undef $ac_func
42092
42093/* Override any gcc2 internal prototype to avoid an error. */
42094#ifdef __cplusplus
42095extern "C"
42096{
42097#endif
42098/* We use char because int might match the return type of a gcc2
42099 builtin and then its argument prototype would still apply. */
42100char $ac_func ();
42101/* The GNU C library defines this for functions which it implements
42102 to always fail with ENOSYS. Some functions are actually named
42103 something starting with __ and the normal name is an alias. */
42104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42105choke me
42106#else
42107char (*f) () = $ac_func;
42108#endif
42109#ifdef __cplusplus
42110}
42111#endif
42112
42113int
42114main ()
42115{
42116return f != $ac_func;
a848cd7e
SC
42117 ;
42118 return 0;
42119}
42120_ACEOF
42121rm -f conftest.$ac_objext conftest$ac_exeext
42122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42123 (eval $ac_link) 2>conftest.er1
a848cd7e 42124 ac_status=$?
ac1cb8d3
VS
42125 grep -v '^ *+' conftest.er1 >conftest.err
42126 rm -f conftest.er1
42127 cat conftest.err >&5
a848cd7e
SC
42128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42129 (exit $ac_status); } &&
bb9e79c0 42130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42132 (eval $ac_try) 2>&5
42133 ac_status=$?
42134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135 (exit $ac_status); }; } &&
42136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42138 (eval $ac_try) 2>&5
42139 ac_status=$?
42140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141 (exit $ac_status); }; }; then
42142 eval "$as_ac_var=yes"
42143else
42144 echo "$as_me: failed program was:" >&5
42145sed 's/^/| /' conftest.$ac_ext >&5
42146
42147eval "$as_ac_var=no"
42148fi
ac1cb8d3
VS
42149rm -f conftest.err conftest.$ac_objext \
42150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42151fi
42152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42154if test `eval echo '${'$as_ac_var'}'` = yes; then
42155 cat >>confdefs.h <<_ACEOF
42156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42157_ACEOF
42158
42159 cat >>confdefs.h <<\_ACEOF
42160#define HAVE_DLOPEN 1
42161_ACEOF
42162
42163 HAVE_DL_FUNCS=1
42164
42165else
42166
42167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42168echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42169if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42170 echo $ECHO_N "(cached) $ECHO_C" >&6
42171else
42172 ac_check_lib_save_LIBS=$LIBS
42173LIBS="-ldl $LIBS"
42174cat >conftest.$ac_ext <<_ACEOF
42175/* confdefs.h. */
42176_ACEOF
42177cat confdefs.h >>conftest.$ac_ext
42178cat >>conftest.$ac_ext <<_ACEOF
42179/* end confdefs.h. */
42180
42181/* Override any gcc2 internal prototype to avoid an error. */
42182#ifdef __cplusplus
42183extern "C"
42184#endif
42185/* We use char because int might match the return type of a gcc2
42186 builtin and then its argument prototype would still apply. */
42187char dlopen ();
42188int
42189main ()
42190{
42191dlopen ();
42192 ;
42193 return 0;
42194}
42195_ACEOF
42196rm -f conftest.$ac_objext conftest$ac_exeext
42197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42198 (eval $ac_link) 2>conftest.er1
a848cd7e 42199 ac_status=$?
ac1cb8d3
VS
42200 grep -v '^ *+' conftest.er1 >conftest.err
42201 rm -f conftest.er1
42202 cat conftest.err >&5
a848cd7e
SC
42203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204 (exit $ac_status); } &&
bb9e79c0 42205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42207 (eval $ac_try) 2>&5
42208 ac_status=$?
42209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42210 (exit $ac_status); }; } &&
42211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42213 (eval $ac_try) 2>&5
42214 ac_status=$?
42215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216 (exit $ac_status); }; }; then
42217 ac_cv_lib_dl_dlopen=yes
42218else
42219 echo "$as_me: failed program was:" >&5
42220sed 's/^/| /' conftest.$ac_ext >&5
42221
42222ac_cv_lib_dl_dlopen=no
42223fi
ac1cb8d3
VS
42224rm -f conftest.err conftest.$ac_objext \
42225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42226LIBS=$ac_check_lib_save_LIBS
42227fi
42228echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42229echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42230if test $ac_cv_lib_dl_dlopen = yes; then
42231
42232 cat >>confdefs.h <<\_ACEOF
42233#define HAVE_DLOPEN 1
42234_ACEOF
42235
42236 HAVE_DL_FUNCS=1
42237 DL_LINK=" -ldl$DL_LINK"
42238
42239else
42240
42241
42242for ac_func in shl_load
42243do
42244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42245echo "$as_me:$LINENO: checking for $ac_func" >&5
42246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42247if eval "test \"\${$as_ac_var+set}\" = set"; then
42248 echo $ECHO_N "(cached) $ECHO_C" >&6
42249else
42250 cat >conftest.$ac_ext <<_ACEOF
42251/* confdefs.h. */
42252_ACEOF
42253cat confdefs.h >>conftest.$ac_ext
42254cat >>conftest.$ac_ext <<_ACEOF
42255/* end confdefs.h. */
ac1cb8d3
VS
42256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42258#define $ac_func innocuous_$ac_func
42259
a848cd7e
SC
42260/* System header to define __stub macros and hopefully few prototypes,
42261 which can conflict with char $ac_func (); below.
42262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42264
a848cd7e
SC
42265#ifdef __STDC__
42266# include <limits.h>
42267#else
42268# include <assert.h>
42269#endif
ac1cb8d3
VS
42270
42271#undef $ac_func
42272
a848cd7e
SC
42273/* Override any gcc2 internal prototype to avoid an error. */
42274#ifdef __cplusplus
42275extern "C"
42276{
42277#endif
42278/* We use char because int might match the return type of a gcc2
42279 builtin and then its argument prototype would still apply. */
42280char $ac_func ();
42281/* The GNU C library defines this for functions which it implements
42282 to always fail with ENOSYS. Some functions are actually named
42283 something starting with __ and the normal name is an alias. */
42284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42285choke me
42286#else
42287char (*f) () = $ac_func;
42288#endif
42289#ifdef __cplusplus
42290}
42291#endif
42292
42293int
42294main ()
42295{
42296return f != $ac_func;
42297 ;
42298 return 0;
42299}
42300_ACEOF
42301rm -f conftest.$ac_objext conftest$ac_exeext
42302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42303 (eval $ac_link) 2>conftest.er1
a848cd7e 42304 ac_status=$?
ac1cb8d3
VS
42305 grep -v '^ *+' conftest.er1 >conftest.err
42306 rm -f conftest.er1
42307 cat conftest.err >&5
a848cd7e
SC
42308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309 (exit $ac_status); } &&
bb9e79c0 42310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312 (eval $ac_try) 2>&5
42313 ac_status=$?
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); }; } &&
42316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318 (eval $ac_try) 2>&5
42319 ac_status=$?
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); }; }; then
42322 eval "$as_ac_var=yes"
42323else
42324 echo "$as_me: failed program was:" >&5
42325sed 's/^/| /' conftest.$ac_ext >&5
42326
42327eval "$as_ac_var=no"
42328fi
ac1cb8d3
VS
42329rm -f conftest.err conftest.$ac_objext \
42330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42331fi
42332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42334if test `eval echo '${'$as_ac_var'}'` = yes; then
42335 cat >>confdefs.h <<_ACEOF
42336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42337_ACEOF
42338
42339 cat >>confdefs.h <<\_ACEOF
42340#define HAVE_SHL_LOAD 1
42341_ACEOF
42342
42343 HAVE_SHL_FUNCS=1
42344
42345else
42346
42347 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42348echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42349if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42350 echo $ECHO_N "(cached) $ECHO_C" >&6
42351else
42352 ac_check_lib_save_LIBS=$LIBS
42353LIBS="-lshl_load $LIBS"
42354cat >conftest.$ac_ext <<_ACEOF
42355/* confdefs.h. */
42356_ACEOF
42357cat confdefs.h >>conftest.$ac_ext
42358cat >>conftest.$ac_ext <<_ACEOF
42359/* end confdefs.h. */
42360
42361/* Override any gcc2 internal prototype to avoid an error. */
42362#ifdef __cplusplus
42363extern "C"
42364#endif
42365/* We use char because int might match the return type of a gcc2
42366 builtin and then its argument prototype would still apply. */
42367char dld ();
42368int
42369main ()
42370{
42371dld ();
42372 ;
42373 return 0;
42374}
42375_ACEOF
42376rm -f conftest.$ac_objext conftest$ac_exeext
42377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42378 (eval $ac_link) 2>conftest.er1
a848cd7e 42379 ac_status=$?
ac1cb8d3
VS
42380 grep -v '^ *+' conftest.er1 >conftest.err
42381 rm -f conftest.er1
42382 cat conftest.err >&5
a848cd7e
SC
42383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42384 (exit $ac_status); } &&
bb9e79c0 42385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42387 (eval $ac_try) 2>&5
42388 ac_status=$?
42389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390 (exit $ac_status); }; } &&
42391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42393 (eval $ac_try) 2>&5
42394 ac_status=$?
42395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42396 (exit $ac_status); }; }; then
42397 ac_cv_lib_shl_load_dld=yes
42398else
42399 echo "$as_me: failed program was:" >&5
42400sed 's/^/| /' conftest.$ac_ext >&5
42401
42402ac_cv_lib_shl_load_dld=no
42403fi
ac1cb8d3
VS
42404rm -f conftest.err conftest.$ac_objext \
42405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42406LIBS=$ac_check_lib_save_LIBS
42407fi
42408echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42409echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42410if test $ac_cv_lib_shl_load_dld = yes; then
42411
42412 HAVE_SHL_FUNCS=1
42413 DL_LINK=" -ldld$DL_LINK"
42414
42415fi
42416
42417
42418fi
42419done
42420
42421
42422fi
42423
42424
42425fi
42426done
42427
42428
42429 if test "$HAVE_DL_FUNCS" = 1; then
42430
42431for ac_func in dlerror
42432do
42433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42434echo "$as_me:$LINENO: checking for $ac_func" >&5
42435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42436if eval "test \"\${$as_ac_var+set}\" = set"; then
42437 echo $ECHO_N "(cached) $ECHO_C" >&6
42438else
42439 cat >conftest.$ac_ext <<_ACEOF
42440/* confdefs.h. */
42441_ACEOF
42442cat confdefs.h >>conftest.$ac_ext
42443cat >>conftest.$ac_ext <<_ACEOF
42444/* end confdefs.h. */
ac1cb8d3
VS
42445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42447#define $ac_func innocuous_$ac_func
42448
a848cd7e
SC
42449/* System header to define __stub macros and hopefully few prototypes,
42450 which can conflict with char $ac_func (); below.
42451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42452 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42453
a848cd7e
SC
42454#ifdef __STDC__
42455# include <limits.h>
42456#else
42457# include <assert.h>
42458#endif
ac1cb8d3
VS
42459
42460#undef $ac_func
42461
a848cd7e
SC
42462/* Override any gcc2 internal prototype to avoid an error. */
42463#ifdef __cplusplus
42464extern "C"
42465{
42466#endif
42467/* We use char because int might match the return type of a gcc2
42468 builtin and then its argument prototype would still apply. */
42469char $ac_func ();
42470/* The GNU C library defines this for functions which it implements
42471 to always fail with ENOSYS. Some functions are actually named
42472 something starting with __ and the normal name is an alias. */
42473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42474choke me
42475#else
42476char (*f) () = $ac_func;
42477#endif
42478#ifdef __cplusplus
42479}
42480#endif
42481
42482int
42483main ()
42484{
42485return f != $ac_func;
42486 ;
42487 return 0;
42488}
42489_ACEOF
42490rm -f conftest.$ac_objext conftest$ac_exeext
42491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42492 (eval $ac_link) 2>conftest.er1
a848cd7e 42493 ac_status=$?
ac1cb8d3
VS
42494 grep -v '^ *+' conftest.er1 >conftest.err
42495 rm -f conftest.er1
42496 cat conftest.err >&5
a848cd7e
SC
42497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498 (exit $ac_status); } &&
bb9e79c0 42499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42501 (eval $ac_try) 2>&5
42502 ac_status=$?
42503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42504 (exit $ac_status); }; } &&
42505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42507 (eval $ac_try) 2>&5
42508 ac_status=$?
42509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42510 (exit $ac_status); }; }; then
42511 eval "$as_ac_var=yes"
42512else
42513 echo "$as_me: failed program was:" >&5
42514sed 's/^/| /' conftest.$ac_ext >&5
42515
42516eval "$as_ac_var=no"
42517fi
ac1cb8d3
VS
42518rm -f conftest.err conftest.$ac_objext \
42519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42520fi
42521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42522echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42523if test `eval echo '${'$as_ac_var'}'` = yes; then
42524 cat >>confdefs.h <<_ACEOF
42525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42526_ACEOF
42527 cat >>confdefs.h <<\_ACEOF
42528#define HAVE_DLERROR 1
42529_ACEOF
42530
42531else
42532
42533 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42534echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42535if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42536 echo $ECHO_N "(cached) $ECHO_C" >&6
42537else
42538 ac_check_lib_save_LIBS=$LIBS
42539LIBS="-ldl $LIBS"
42540cat >conftest.$ac_ext <<_ACEOF
42541/* confdefs.h. */
42542_ACEOF
42543cat confdefs.h >>conftest.$ac_ext
42544cat >>conftest.$ac_ext <<_ACEOF
42545/* end confdefs.h. */
42546
42547/* Override any gcc2 internal prototype to avoid an error. */
42548#ifdef __cplusplus
42549extern "C"
42550#endif
42551/* We use char because int might match the return type of a gcc2
42552 builtin and then its argument prototype would still apply. */
42553char dlerror ();
42554int
42555main ()
42556{
42557dlerror ();
42558 ;
42559 return 0;
42560}
42561_ACEOF
42562rm -f conftest.$ac_objext conftest$ac_exeext
42563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42564 (eval $ac_link) 2>conftest.er1
a848cd7e 42565 ac_status=$?
ac1cb8d3
VS
42566 grep -v '^ *+' conftest.er1 >conftest.err
42567 rm -f conftest.er1
42568 cat conftest.err >&5
a848cd7e
SC
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); } &&
bb9e79c0 42571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573 (eval $ac_try) 2>&5
42574 ac_status=$?
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); }; } &&
42577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42579 (eval $ac_try) 2>&5
42580 ac_status=$?
42581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42582 (exit $ac_status); }; }; then
42583 ac_cv_lib_dl_dlerror=yes
42584else
42585 echo "$as_me: failed program was:" >&5
42586sed 's/^/| /' conftest.$ac_ext >&5
42587
42588ac_cv_lib_dl_dlerror=no
42589fi
ac1cb8d3
VS
42590rm -f conftest.err conftest.$ac_objext \
42591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42592LIBS=$ac_check_lib_save_LIBS
42593fi
42594echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42595echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42596if test $ac_cv_lib_dl_dlerror = yes; then
42597 cat >>confdefs.h <<\_ACEOF
42598#define HAVE_DLERROR 1
42599_ACEOF
42600
42601fi
42602
42603
42604
42605fi
42606done
42607
42608 fi
42609 fi
42610
42611 if test "$HAVE_DL_FUNCS" = 0; then
42612 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42613 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42614 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42615echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42616 wxUSE_DYNAMIC_LOADER=no
42617 wxUSE_DYNLIB_CLASS=no
42618 else
42619 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42620echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42621 fi
42622 fi
42623 fi
42624 fi
42625fi
42626
42627if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42628 cat >>confdefs.h <<\_ACEOF
42629#define wxUSE_DYNAMIC_LOADER 1
42630_ACEOF
42631
42632fi
42633if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42634 cat >>confdefs.h <<\_ACEOF
42635#define wxUSE_DYNLIB_CLASS 1
42636_ACEOF
42637
42638fi
42639
42640
42641
42642if test "$wxUSE_PLUGINS" = "yes" ; then
42643 if test "$wxUSE_SHARED" = "no" ; then
42644 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42645echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42646 wxUSE_PLUGINS=no
42647 fi
42648 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42649 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42650echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42651 wxUSE_PLUGINS=no
42652 fi
42653 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42654 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42655echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42656 wxUSE_PLUGINS=no
42657 fi
42658 if test "$wxUSE_PLUGINS" = "yes" ; then
42659 cat >>confdefs.h <<\_ACEOF
42660#define wxUSE_PLUGINS 1
42661_ACEOF
42662
42663 fi
42664fi
42665
42666
42667if test "$wxUSE_STL" = "yes"; then
42668 cat >>confdefs.h <<\_ACEOF
42669#define wxUSE_STL 1
42670_ACEOF
42671
42672fi
42673
42674if test "$wxUSE_APPLE_IEEE" = "yes"; then
42675 cat >>confdefs.h <<\_ACEOF
42676#define wxUSE_APPLE_IEEE 1
42677_ACEOF
42678
42679fi
42680
42681if test "$wxUSE_TIMER" = "yes"; then
42682 cat >>confdefs.h <<\_ACEOF
42683#define wxUSE_TIMER 1
42684_ACEOF
42685
42686fi
42687
9c112555 42688if test "$USE_UNIX" = "1" ; then
31714590
VZ
42689 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42690echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42691if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42692 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42693else
d12aef51
VZ
42694
42695 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42696/* confdefs.h. */
42697_ACEOF
42698cat confdefs.h >>conftest.$ac_ext
42699cat >>conftest.$ac_ext <<_ACEOF
42700/* end confdefs.h. */
d12aef51 42701
31714590 42702 #include <sys/ioctl.h>
d12aef51
VZ
42703 #include <sys/soundcard.h>
42704
42705int
42706main ()
42707{
42708
31714590 42709 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42710
42711 ;
42712 return 0;
42713}
a848cd7e 42714_ACEOF
d12aef51
VZ
42715rm -f conftest.$ac_objext conftest$ac_exeext
42716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42717 (eval $ac_link) 2>conftest.er1
a848cd7e 42718 ac_status=$?
ac1cb8d3
VS
42719 grep -v '^ *+' conftest.er1 >conftest.err
42720 rm -f conftest.er1
42721 cat conftest.err >&5
a848cd7e
SC
42722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723 (exit $ac_status); } &&
bb9e79c0 42724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42726 (eval $ac_try) 2>&5
42727 ac_status=$?
42728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42729 (exit $ac_status); }; } &&
d12aef51 42730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42732 (eval $ac_try) 2>&5
42733 ac_status=$?
42734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735 (exit $ac_status); }; }; then
d12aef51 42736 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42737else
42738 echo "$as_me: failed program was:" >&5
42739sed 's/^/| /' conftest.$ac_ext >&5
42740
a848cd7e 42741
d12aef51
VZ
42742 saveLibs="$LIBS"
42743 LIBS="$saveLibs -lossaudio"
42744 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42745/* confdefs.h. */
42746_ACEOF
42747cat confdefs.h >>conftest.$ac_ext
42748cat >>conftest.$ac_ext <<_ACEOF
42749/* end confdefs.h. */
d12aef51 42750
31714590 42751 #include <sys/ioctl.h>
d12aef51
VZ
42752 #include <sys/soundcard.h>
42753
42754int
42755main ()
42756{
42757
31714590 42758 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42759
42760 ;
42761 return 0;
42762}
a848cd7e 42763_ACEOF
d12aef51
VZ
42764rm -f conftest.$ac_objext conftest$ac_exeext
42765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42766 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42767 ac_status=$?
42768 grep -v '^ *+' conftest.er1 >conftest.err
42769 rm -f conftest.er1
42770 cat conftest.err >&5
42771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42772 (exit $ac_status); } &&
bb9e79c0 42773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42775 (eval $ac_try) 2>&5
42776 ac_status=$?
42777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778 (exit $ac_status); }; } &&
42779 { ac_try='test -s conftest$ac_exeext'
42780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42781 (eval $ac_try) 2>&5
42782 ac_status=$?
42783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42784 (exit $ac_status); }; }; then
42785 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42786else
42787 echo "$as_me: failed program was:" >&5
42788sed 's/^/| /' conftest.$ac_ext >&5
42789
a848cd7e 42790
d12aef51
VZ
42791 LIBS="$saveLibs"
42792 ac_cv_header_sys_soundcard=no
42793
42794
a848cd7e 42795fi
d12aef51
VZ
42796rm -f conftest.err conftest.$ac_objext \
42797 conftest$ac_exeext conftest.$ac_ext
42798
a848cd7e
SC
42799
42800fi
d12aef51
VZ
42801rm -f conftest.err conftest.$ac_objext \
42802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42803
42804fi
d12aef51
VZ
42805echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42806echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42807
d12aef51
VZ
42808 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42809 cat >>confdefs.h <<\_ACEOF
42810#define HAVE_SYS_SOUNDCARD_H 1
42811_ACEOF
a848cd7e 42812
d12aef51
VZ
42813 else
42814 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42815 fi
9c112555
MW
42816fi
42817WITH_PLUGIN_SDL=0
42818if test "$wxUSE_SOUND" = "yes"; then
42819 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42820 if test "$wxUSE_LIBSDL" != "no"; then
42821
42822# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42823if test "${with_sdl_prefix+set}" = set; then
42824 withval="$with_sdl_prefix"
42825 sdl_prefix="$withval"
42826else
42827 sdl_prefix=""
42828fi;
42829
42830# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42831if test "${with_sdl_exec_prefix+set}" = set; then
42832 withval="$with_sdl_exec_prefix"
42833 sdl_exec_prefix="$withval"
42834else
42835 sdl_exec_prefix=""
42836fi;
42837# Check whether --enable-sdltest or --disable-sdltest was given.
42838if test "${enable_sdltest+set}" = set; then
42839 enableval="$enable_sdltest"
42840
42841else
42842 enable_sdltest=yes
42843fi;
42844
42845 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42846 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42847 if test x${SDL_CONFIG+set} != xset ; then
42848 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42849 fi
a848cd7e
SC
42850 fi
42851 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42852 sdl_args="$sdl_args --prefix=$sdl_prefix"
42853 if test x${SDL_CONFIG+set} != xset ; then
42854 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42855 fi
a848cd7e
SC
42856 fi
42857
3ecd9f92
MW
42858 if test "x$prefix" != xNONE; then
42859 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42860 fi
a848cd7e
SC
42861 # Extract the first word of "sdl-config", so it can be a program name with args.
42862set dummy sdl-config; ac_word=$2
42863echo "$as_me:$LINENO: checking for $ac_word" >&5
42864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42865if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42866 echo $ECHO_N "(cached) $ECHO_C" >&6
42867else
42868 case $SDL_CONFIG in
42869 [\\/]* | ?:[\\/]*)
42870 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42871 ;;
42872 *)
42873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42874for as_dir in $PATH
42875do
42876 IFS=$as_save_IFS
42877 test -z "$as_dir" && as_dir=.
42878 for ac_exec_ext in '' $ac_executable_extensions; do
42879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42880 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42882 break 2
42883 fi
42884done
42885done
42886
42887 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42888 ;;
42889esac
42890fi
42891SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42892
42893if test -n "$SDL_CONFIG"; then
42894 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42895echo "${ECHO_T}$SDL_CONFIG" >&6
42896else
42897 echo "$as_me:$LINENO: result: no" >&5
42898echo "${ECHO_T}no" >&6
42899fi
42900
42901 min_sdl_version=1.2.0
42902 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42903echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42904 no_sdl=""
42905 if test "$SDL_CONFIG" = "no" ; then
42906 no_sdl=yes
42907 else
42908 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42909 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42910
42911 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42913 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42915 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42917 if test "x$enable_sdltest" = "xyes" ; then
42918 ac_save_CFLAGS="$CFLAGS"
94acd38e 42919 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42920 ac_save_LIBS="$LIBS"
42921 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42922 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42923 LIBS="$LIBS $SDL_LIBS"
42924 rm -f conf.sdltest
42925 if test "$cross_compiling" = yes; then
42926 echo $ac_n "cross compiling; assumed OK... $ac_c"
42927else
42928 cat >conftest.$ac_ext <<_ACEOF
42929/* confdefs.h. */
42930_ACEOF
42931cat confdefs.h >>conftest.$ac_ext
42932cat >>conftest.$ac_ext <<_ACEOF
42933/* end confdefs.h. */
42934
42935#include <stdio.h>
42936#include <stdlib.h>
42937#include <string.h>
42938#include "SDL.h"
42939
42940char*
42941my_strdup (char *str)
42942{
42943 char *new_str;
42944
42945 if (str)
42946 {
42947 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42948 strcpy (new_str, str);
42949 }
42950 else
42951 new_str = NULL;
42952
42953 return new_str;
42954}
42955
42956int main (int argc, char *argv[])
42957{
42958 int major, minor, micro;
42959 char *tmp_version;
42960
42961 /* This hangs on some systems (?)
42962 system ("touch conf.sdltest");
42963 */
42964 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42965
42966 /* HP/UX 9 (%@#!) writes to sscanf strings */
42967 tmp_version = my_strdup("$min_sdl_version");
42968 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42969 printf("%s, bad version string\n", "$min_sdl_version");
42970 exit(1);
42971 }
42972
42973 if (($sdl_major_version > major) ||
42974 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42975 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42976 {
42977 return 0;
42978 }
42979 else
42980 {
42981 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42982 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42983 printf("*** best to upgrade to the required version.\n");
42984 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42985 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42986 printf("*** config.cache before re-running configure\n");
42987 return 1;
42988 }
42989}
42990
42991
42992_ACEOF
42993rm -f conftest$ac_exeext
42994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42995 (eval $ac_link) 2>&5
42996 ac_status=$?
42997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000 (eval $ac_try) 2>&5
43001 ac_status=$?
43002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003 (exit $ac_status); }; }; then
43004 :
43005else
43006 echo "$as_me: program exited with status $ac_status" >&5
43007echo "$as_me: failed program was:" >&5
43008sed 's/^/| /' conftest.$ac_ext >&5
43009
43010( exit $ac_status )
43011no_sdl=yes
43012fi
ac1cb8d3 43013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43014fi
43015 CFLAGS="$ac_save_CFLAGS"
94acd38e 43016 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43017 LIBS="$ac_save_LIBS"
43018 fi
43019 fi
43020 if test "x$no_sdl" = x ; then
43021 echo "$as_me:$LINENO: result: yes" >&5
43022echo "${ECHO_T}yes" >&6
43023
43024 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 43025 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43026 cat >>confdefs.h <<\_ACEOF
43027#define wxUSE_LIBSDL 1
43028_ACEOF
43029
43030
43031 else
43032 echo "$as_me:$LINENO: result: no" >&5
43033echo "${ECHO_T}no" >&6
43034 if test "$SDL_CONFIG" = "no" ; then
43035 echo "*** The sdl-config script installed by SDL could not be found"
43036 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43037 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43038 echo "*** full path to sdl-config."
43039 else
43040 if test -f conf.sdltest ; then
43041 :
43042 else
43043 echo "*** Could not run SDL test program, checking why..."
43044 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43045 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43046 LIBS="$LIBS $SDL_LIBS"
43047 cat >conftest.$ac_ext <<_ACEOF
43048/* confdefs.h. */
43049_ACEOF
43050cat confdefs.h >>conftest.$ac_ext
43051cat >>conftest.$ac_ext <<_ACEOF
43052/* end confdefs.h. */
43053
43054#include <stdio.h>
43055#include "SDL.h"
43056
43057int main(int argc, char *argv[])
43058{ return 0; }
43059#undef main
43060#define main K_and_R_C_main
43061
43062int
43063main ()
43064{
43065 return 0;
43066 ;
43067 return 0;
43068}
43069_ACEOF
43070rm -f conftest.$ac_objext conftest$ac_exeext
43071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43072 (eval $ac_link) 2>conftest.er1
a848cd7e 43073 ac_status=$?
ac1cb8d3
VS
43074 grep -v '^ *+' conftest.er1 >conftest.err
43075 rm -f conftest.er1
43076 cat conftest.err >&5
a848cd7e
SC
43077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078 (exit $ac_status); } &&
bb9e79c0 43079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081 (eval $ac_try) 2>&5
43082 ac_status=$?
43083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084 (exit $ac_status); }; } &&
43085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43087 (eval $ac_try) 2>&5
43088 ac_status=$?
43089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090 (exit $ac_status); }; }; then
43091 echo "*** The test program compiled, but did not run. This usually means"
43092 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43093 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43094 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43095 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43096 echo "*** is required on your system"
43097 echo "***"
43098 echo "*** If you have an old version installed, it is best to remove it, although"
43099 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43100else
43101 echo "$as_me: failed program was:" >&5
43102sed 's/^/| /' conftest.$ac_ext >&5
43103
43104 echo "*** The test program failed to compile or link. See the file config.log for the"
43105 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43106 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43107 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43108fi
ac1cb8d3
VS
43109rm -f conftest.err conftest.$ac_objext \
43110 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43111 CFLAGS="$ac_save_CFLAGS"
94acd38e 43112 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43113 LIBS="$ac_save_LIBS"
43114 fi
43115 fi
43116 SDL_CFLAGS=""
43117 SDL_LIBS=""
43118 wxUSE_LIBSDL="no"
43119 fi
43120
43121
43122 rm -f conf.sdltest
43123
43124 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43125 WITH_PLUGIN_SDL=1
43126 fi
43127 fi
43128 fi
43129
43130 cat >>confdefs.h <<\_ACEOF
43131#define wxUSE_SOUND 1
43132_ACEOF
43133
43134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43135fi
43136
d1c38808
VZ
43137if test "$WXGTK20" = 1; then
43138 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43139 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43140
43141
3ecd9f92
MW
43142pkg_failed=no
43143echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43144echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43145
3ecd9f92
MW
43146if test -n "$PKG_CONFIG"; then
43147 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43148 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43149 else
43150 if test -n "$PKG_CONFIG" && \
43151 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43152 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43153 ac_status=$?
43154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43155 (exit $ac_status); }; then
43156 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43157else
3ecd9f92
MW
43158 pkg_failed=yes
43159fi
43160 fi
43161else
43162 pkg_failed=untried
d1c38808 43163fi
d1c38808 43164if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43165 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43166 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43167 else
43168 if test -n "$PKG_CONFIG" && \
43169 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43170 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43171 ac_status=$?
43172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43173 (exit $ac_status); }; then
43174 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43175else
3ecd9f92
MW
43176 pkg_failed=yes
43177fi
43178 fi
43179else
43180 pkg_failed=untried
d1c38808
VZ
43181fi
43182
d1c38808 43183
d1c38808 43184
3ecd9f92 43185if test $pkg_failed = yes; then
d1c38808 43186
3ecd9f92
MW
43187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43188 _pkg_short_errors_supported=yes
43189else
43190 _pkg_short_errors_supported=no
43191fi
43192 if test $_pkg_short_errors_supported = yes; then
43193 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43194 else
43195 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43196 fi
3ecd9f92
MW
43197 # Put the nasty error message in config.log where it belongs
43198 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43199
43200
3ecd9f92
MW
43201 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43202echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43203 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43204
43205
3ecd9f92 43206elif test $pkg_failed = untried; then
d1c38808
VZ
43207
43208 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43209echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43210 wxUSE_LIBGNOMEPRINT="no"
43211
43212
3ecd9f92
MW
43213else
43214 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43215 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43216 echo "$as_me:$LINENO: result: yes" >&5
43217echo "${ECHO_T}yes" >&6
d1c38808 43218
3ecd9f92
MW
43219 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43220 cat >>confdefs.h <<\_ACEOF
43221#define wxUSE_LIBGNOMEPRINT 1
43222_ACEOF
43223
43224
43225fi
d1c38808
VZ
43226 fi
43227 fi
43228fi
43229
2b850ae1
RR
43230if test "$WXGTK20" = 1; then
43231 if test "$wxUSE_MIMETYPE" = "yes" ; then
43232 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43233
43234
3ecd9f92
MW
43235pkg_failed=no
43236echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43237echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43238
3ecd9f92
MW
43239if test -n "$PKG_CONFIG"; then
43240 if test -n "$GNOMEVFS_CFLAGS"; then
43241 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43242 else
43243 if test -n "$PKG_CONFIG" && \
43244 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43245 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43246 ac_status=$?
43247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248 (exit $ac_status); }; then
43249 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43250else
3ecd9f92
MW
43251 pkg_failed=yes
43252fi
43253 fi
43254else
43255 pkg_failed=untried
2b850ae1 43256fi
2b850ae1 43257if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43258 if test -n "$GNOMEVFS_LIBS"; then
43259 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43260 else
43261 if test -n "$PKG_CONFIG" && \
43262 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43263 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43264 ac_status=$?
43265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266 (exit $ac_status); }; then
43267 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43268else
3ecd9f92
MW
43269 pkg_failed=yes
43270fi
43271 fi
43272else
43273 pkg_failed=untried
2b850ae1
RR
43274fi
43275
2b850ae1 43276
2b850ae1 43277
3ecd9f92 43278if test $pkg_failed = yes; then
2b850ae1 43279
3ecd9f92
MW
43280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43281 _pkg_short_errors_supported=yes
43282else
43283 _pkg_short_errors_supported=no
43284fi
43285 if test $_pkg_short_errors_supported = yes; then
43286 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43287 else
43288 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43289 fi
3ecd9f92
MW
43290 # Put the nasty error message in config.log where it belongs
43291 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43292
43293
3ecd9f92
MW
43294 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43295echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43296 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43297
43298
3ecd9f92 43299elif test $pkg_failed = untried; then
2b850ae1
RR
43300
43301 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43302echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43303 wxUSE_LIBGNOMEVFS="no"
43304
43305
3ecd9f92
MW
43306else
43307 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43308 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43309 echo "$as_me:$LINENO: result: yes" >&5
43310echo "${ECHO_T}yes" >&6
2b850ae1 43311
3ecd9f92
MW
43312 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43313 cat >>confdefs.h <<\_ACEOF
43314#define wxUSE_LIBGNOMEVFS 1
43315_ACEOF
43316
43317
43318fi
2b850ae1
RR
43319 fi
43320 fi
43321fi
43322
3565d135
RR
43323if test "$WXGTK20" = 1; then
43324 if test "$wxUSE_LIBHILDON" = "yes" ; then
43325
3ecd9f92
MW
43326pkg_failed=no
43327echo "$as_me:$LINENO: checking for HILDON" >&5
43328echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43329
3ecd9f92
MW
43330if test -n "$PKG_CONFIG"; then
43331 if test -n "$HILDON_CFLAGS"; then
43332 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43333 else
43334 if test -n "$PKG_CONFIG" && \
43335 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43336 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; then
43340 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43341else
3ecd9f92
MW
43342 pkg_failed=yes
43343fi
43344 fi
43345else
43346 pkg_failed=untried
3565d135 43347fi
3565d135 43348if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43349 if test -n "$HILDON_LIBS"; then
43350 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43351 else
43352 if test -n "$PKG_CONFIG" && \
43353 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43354 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43355 ac_status=$?
43356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357 (exit $ac_status); }; then
43358 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43359else
3ecd9f92
MW
43360 pkg_failed=yes
43361fi
43362 fi
43363else
43364 pkg_failed=untried
3565d135
RR
43365fi
43366
3565d135 43367
3565d135 43368
3ecd9f92 43369if test $pkg_failed = yes; then
3565d135 43370
3ecd9f92
MW
43371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43372 _pkg_short_errors_supported=yes
43373else
43374 _pkg_short_errors_supported=no
43375fi
43376 if test $_pkg_short_errors_supported = yes; then
43377 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43378 else
43379 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43380 fi
3ecd9f92
MW
43381 # Put the nasty error message in config.log where it belongs
43382 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43383
43384
3ecd9f92
MW
43385 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43386echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43387 wxUSE_LIBHILDON="no"
3565d135 43388
3565d135 43389
3ecd9f92
MW
43390elif test $pkg_failed = untried; then
43391
43392 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43393echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43394 wxUSE_LIBHILDON="no"
43395
43396
43397else
43398 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43399 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43400 echo "$as_me:$LINENO: result: yes" >&5
43401echo "${ECHO_T}yes" >&6
3565d135
RR
43402
43403 EXTRALIBS_HILDON="$HILDON_LIBS"
43404 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43405 cat >>confdefs.h <<\_ACEOF
43406#define wxUSE_LIBHILDON 1
43407_ACEOF
43408
43409
3ecd9f92 43410fi
3565d135
RR
43411 fi
43412fi
d1c38808 43413
a848cd7e
SC
43414if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43415 cat >>confdefs.h <<\_ACEOF
43416#define wxUSE_CMDLINE_PARSER 1
43417_ACEOF
43418
43419fi
43420
43421if test "$wxUSE_STOPWATCH" = "yes"; then
43422 cat >>confdefs.h <<\_ACEOF
43423#define wxUSE_STOPWATCH 1
43424_ACEOF
43425
43426fi
43427
43428if test "$wxUSE_DATETIME" = "yes"; then
43429 cat >>confdefs.h <<\_ACEOF
43430#define wxUSE_DATETIME 1
43431_ACEOF
43432
43433fi
43434
43435if test "$wxUSE_FILE" = "yes"; then
43436 cat >>confdefs.h <<\_ACEOF
43437#define wxUSE_FILE 1
43438_ACEOF
43439
43440fi
43441
43442if test "$wxUSE_FFILE" = "yes"; then
43443 cat >>confdefs.h <<\_ACEOF
43444#define wxUSE_FFILE 1
43445_ACEOF
43446
43447fi
43448
9e8e867f 43449if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43450 if test "$wxUSE_STREAMS" != yes; then
43451 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43452echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43453 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43454 else
43455 cat >>confdefs.h <<\_ACEOF
9e8e867f 43456#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43457_ACEOF
43458
26e422a9 43459 fi
81f90336
MW
43460fi
43461
43462if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43463 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43464 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43465echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43466 elif test "$wxUSE_ZLIB" = "no"; then
43467 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43468echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43469 else
43470 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43471#define wxUSE_ZIPSTREAM 1
43472_ACEOF
43473
81f90336 43474 fi
a848cd7e
SC
43475fi
43476
26e422a9
MW
43477if test "$wxUSE_TARSTREAM" = "yes"; then
43478 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43479 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43480echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43481 else
43482 cat >>confdefs.h <<\_ACEOF
43483#define wxUSE_TARSTREAM 1
43484_ACEOF
43485
43486 fi
43487fi
43488
916af76f 43489if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43490 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43491 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43492echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43493 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43494 else
43495 cat >>confdefs.h <<\_ACEOF
916af76f 43496#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43497_ACEOF
43498
43499 fi
43500fi
43501
26e422a9 43502if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43503 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43504 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43505echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43506 else
43507 cat >>confdefs.h <<\_ACEOF
43508#define wxUSE_FS_ARCHIVE 1
43509_ACEOF
43510
43511 fi
43512fi
43513
916af76f
MW
43514if test "$wxUSE_FS_ZIP" = "yes"; then
43515 if test "$wxUSE_FS_ARCHIVE" != yes; then
43516 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43517echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43518 else
43519 cat >>confdefs.h <<\_ACEOF
43520#define wxUSE_FS_ZIP 1
43521_ACEOF
43522
43523 fi
43524fi
43525
a848cd7e 43526if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43527 if test "$USE_UNIX" != 1; then
43528 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43529echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43530 wxUSE_ON_FATAL_EXCEPTION=no
43531 else
43532 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43533#define wxUSE_ON_FATAL_EXCEPTION 1
43534_ACEOF
43535
18228ab4 43536 fi
a848cd7e
SC
43537fi
43538
eaff0f0d
VZ
43539if test "$wxUSE_STACKWALKER" = "yes"; then
43540 cat >>confdefs.h <<\_ACEOF
43541#define wxUSE_STACKWALKER 1
43542_ACEOF
43543
43544fi
43545
36b6448c 43546if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43547 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43548 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43549echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43550 wxUSE_DEBUGREPORT=no
43551 else
43552 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43553#define wxUSE_DEBUGREPORT 1
43554_ACEOF
43555
21dfc162
MW
43556 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43558 fi
dfe0c803 43559 fi
36b6448c
VZ
43560fi
43561
a848cd7e
SC
43562if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43563 cat >>confdefs.h <<\_ACEOF
43564#define wxUSE_SNGLINST_CHECKER 1
43565_ACEOF
43566
43567fi
43568
43569if test "$wxUSE_BUSYINFO" = "yes"; then
43570 cat >>confdefs.h <<\_ACEOF
43571#define wxUSE_BUSYINFO 1
43572_ACEOF
43573
43574fi
43575
43576if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43577 cat >>confdefs.h <<\_ACEOF
43578#define wxUSE_STD_IOSTREAM 1
43579_ACEOF
43580
43581fi
43582
59746b65
MW
43583if test "$wxUSE_STD_STRING" = "yes"; then
43584 cat >>confdefs.h <<\_ACEOF
43585#define wxUSE_STD_STRING 1
43586_ACEOF
43587
43588fi
43589
07158944
VZ
43590if test "$wxUSE_STDPATHS" = "yes"; then
43591 cat >>confdefs.h <<\_ACEOF
43592#define wxUSE_STDPATHS 1
43593_ACEOF
43594
43595fi
43596
a848cd7e
SC
43597if test "$wxUSE_TEXTBUFFER" = "yes"; then
43598 cat >>confdefs.h <<\_ACEOF
43599#define wxUSE_TEXTBUFFER 1
43600_ACEOF
43601
43602fi
43603
43604if test "$wxUSE_TEXTFILE" = "yes"; then
43605 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43606 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43607echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43608 else
43609 cat >>confdefs.h <<\_ACEOF
43610#define wxUSE_TEXTFILE 1
43611_ACEOF
43612
43613 fi
43614fi
43615
43616if test "$wxUSE_CONFIG" = "yes" ; then
43617 if test "$wxUSE_TEXTFILE" != "yes"; then
43618 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43619echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43620 else
43621 cat >>confdefs.h <<\_ACEOF
43622#define wxUSE_CONFIG 1
89be85c2
VS
43623_ACEOF
43624
43625 cat >>confdefs.h <<\_ACEOF
43626#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43627_ACEOF
43628
43629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43630 fi
43631fi
43632
43633if test "$wxUSE_INTL" = "yes" ; then
43634 if test "$wxUSE_FILE" != "yes"; then
43635 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43636echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43637 else
43638 cat >>confdefs.h <<\_ACEOF
43639#define wxUSE_INTL 1
43640_ACEOF
43641
43642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43643 GUIDIST="$GUIDIST INTL_DIST"
43644 fi
43645fi
43646
43647if test "$wxUSE_LOG" = "yes"; then
43648 cat >>confdefs.h <<\_ACEOF
43649#define wxUSE_LOG 1
43650_ACEOF
43651
43652
43653 if test "$wxUSE_LOGGUI" = "yes"; then
43654 cat >>confdefs.h <<\_ACEOF
43655#define wxUSE_LOGGUI 1
43656_ACEOF
43657
43658 fi
43659
43660 if test "$wxUSE_LOGWINDOW" = "yes"; then
43661 cat >>confdefs.h <<\_ACEOF
43662#define wxUSE_LOGWINDOW 1
43663_ACEOF
43664
43665 fi
43666
43667 if test "$wxUSE_LOGDIALOG" = "yes"; then
43668 cat >>confdefs.h <<\_ACEOF
43669#define wxUSE_LOG_DIALOG 1
43670_ACEOF
43671
43672 fi
0b78747f
MW
43673
43674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43675fi
43676
43677if test "$wxUSE_LONGLONG" = "yes"; then
43678 cat >>confdefs.h <<\_ACEOF
43679#define wxUSE_LONGLONG 1
43680_ACEOF
43681
43682fi
43683
43684if test "$wxUSE_GEOMETRY" = "yes"; then
43685 cat >>confdefs.h <<\_ACEOF
43686#define wxUSE_GEOMETRY 1
43687_ACEOF
43688
43689fi
43690
a848cd7e
SC
43691if test "$wxUSE_STREAMS" = "yes" ; then
43692 cat >>confdefs.h <<\_ACEOF
43693#define wxUSE_STREAMS 1
43694_ACEOF
43695
43696fi
43697
8b6682b9
JS
43698if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43699 cat >>confdefs.h <<\_ACEOF
43700#define wxUSE_PRINTF_POS_PARAMS 1
43701_ACEOF
43702
43703fi
43704
43705
a848cd7e
SC
43706
43707if test "$wxUSE_DATETIME" = "yes"; then
43708
43709for ac_func in strptime
43710do
43711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43712echo "$as_me:$LINENO: checking for $ac_func" >&5
43713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43714if eval "test \"\${$as_ac_var+set}\" = set"; then
43715 echo $ECHO_N "(cached) $ECHO_C" >&6
43716else
43717 cat >conftest.$ac_ext <<_ACEOF
43718/* confdefs.h. */
43719_ACEOF
43720cat confdefs.h >>conftest.$ac_ext
43721cat >>conftest.$ac_ext <<_ACEOF
43722/* end confdefs.h. */
ac1cb8d3
VS
43723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43725#define $ac_func innocuous_$ac_func
43726
a848cd7e
SC
43727/* System header to define __stub macros and hopefully few prototypes,
43728 which can conflict with char $ac_func (); below.
43729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43730 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43731
a848cd7e
SC
43732#ifdef __STDC__
43733# include <limits.h>
43734#else
43735# include <assert.h>
43736#endif
ac1cb8d3
VS
43737
43738#undef $ac_func
43739
a848cd7e
SC
43740/* Override any gcc2 internal prototype to avoid an error. */
43741#ifdef __cplusplus
43742extern "C"
43743{
43744#endif
43745/* We use char because int might match the return type of a gcc2
43746 builtin and then its argument prototype would still apply. */
43747char $ac_func ();
43748/* The GNU C library defines this for functions which it implements
43749 to always fail with ENOSYS. Some functions are actually named
43750 something starting with __ and the normal name is an alias. */
43751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43752choke me
43753#else
43754char (*f) () = $ac_func;
43755#endif
43756#ifdef __cplusplus
43757}
43758#endif
43759
43760int
43761main ()
43762{
43763return f != $ac_func;
43764 ;
43765 return 0;
43766}
43767_ACEOF
43768rm -f conftest.$ac_objext conftest$ac_exeext
43769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43770 (eval $ac_link) 2>conftest.er1
a848cd7e 43771 ac_status=$?
ac1cb8d3
VS
43772 grep -v '^ *+' conftest.er1 >conftest.err
43773 rm -f conftest.er1
43774 cat conftest.err >&5
a848cd7e
SC
43775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43776 (exit $ac_status); } &&
bb9e79c0 43777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43779 (eval $ac_try) 2>&5
43780 ac_status=$?
43781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782 (exit $ac_status); }; } &&
43783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43785 (eval $ac_try) 2>&5
43786 ac_status=$?
43787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788 (exit $ac_status); }; }; then
43789 eval "$as_ac_var=yes"
43790else
43791 echo "$as_me: failed program was:" >&5
43792sed 's/^/| /' conftest.$ac_ext >&5
43793
43794eval "$as_ac_var=no"
43795fi
ac1cb8d3
VS
43796rm -f conftest.err conftest.$ac_objext \
43797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43798fi
43799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43801if test `eval echo '${'$as_ac_var'}'` = yes; then
43802 cat >>confdefs.h <<_ACEOF
43803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43804_ACEOF
43805
43806fi
43807done
43808
f536f005
VZ
43809 if test "$ac_cv_func_strptime" = "yes"; then
43810 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43811echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43812if test "${wx_cv_func_strptime_decl+set}" = set; then
43813 echo $ECHO_N "(cached) $ECHO_C" >&6
43814else
43815
f536f005
VZ
43816 cat >conftest.$ac_ext <<_ACEOF
43817/* confdefs.h. */
43818_ACEOF
43819cat confdefs.h >>conftest.$ac_ext
43820cat >>conftest.$ac_ext <<_ACEOF
43821/* end confdefs.h. */
43822
43823 #include <time.h>
43824
43825int
43826main ()
43827{
43828
43829 struct tm t;
43830 strptime("foo", "bar", &t);
43831
43832 ;
43833 return 0;
43834}
43835_ACEOF
43836rm -f conftest.$ac_objext
43837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43838 (eval $ac_compile) 2>conftest.er1
43839 ac_status=$?
43840 grep -v '^ *+' conftest.er1 >conftest.err
43841 rm -f conftest.er1
43842 cat conftest.err >&5
43843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844 (exit $ac_status); } &&
bb9e79c0 43845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43847 (eval $ac_try) 2>&5
43848 ac_status=$?
43849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850 (exit $ac_status); }; } &&
43851 { ac_try='test -s conftest.$ac_objext'
43852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43853 (eval $ac_try) 2>&5
43854 ac_status=$?
43855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43856 (exit $ac_status); }; }; then
43857 wx_cv_func_strptime_decl=yes
43858else
43859 echo "$as_me: failed program was:" >&5
43860sed 's/^/| /' conftest.$ac_ext >&5
43861
43862wx_cv_func_strptime_decl=no
43863
43864fi
43865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43866
43867
43868fi
43869echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43870echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43871 fi
43872 if test "$wx_cv_func_strptime_decl" = "yes"; then
43873 cat >>confdefs.h <<\_ACEOF
43874#define HAVE_STRPTIME_DECL 1
43875_ACEOF
43876
43877 fi
a848cd7e
SC
43878
43879 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43880echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43881if test "${wx_cv_var_timezone+set}" = set; then
43882 echo $ECHO_N "(cached) $ECHO_C" >&6
43883else
43884
43885 cat >conftest.$ac_ext <<_ACEOF
43886/* confdefs.h. */
43887_ACEOF
43888cat confdefs.h >>conftest.$ac_ext
43889cat >>conftest.$ac_ext <<_ACEOF
43890/* end confdefs.h. */
43891
43892 #include <time.h>
43893
43894int
43895main ()
43896{
43897
43898 int tz;
43899 tz = timezone;
43900
43901 ;
43902 return 0;
43903}
43904_ACEOF
43905rm -f conftest.$ac_objext
43906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43907 (eval $ac_compile) 2>conftest.er1
a848cd7e 43908 ac_status=$?
ac1cb8d3
VS
43909 grep -v '^ *+' conftest.er1 >conftest.err
43910 rm -f conftest.er1
43911 cat conftest.err >&5
a848cd7e
SC
43912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913 (exit $ac_status); } &&
bb9e79c0 43914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43916 (eval $ac_try) 2>&5
43917 ac_status=$?
43918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919 (exit $ac_status); }; } &&
43920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43922 (eval $ac_try) 2>&5
43923 ac_status=$?
43924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43925 (exit $ac_status); }; }; then
43926
43927 wx_cv_var_timezone=timezone
43928
43929else
43930 echo "$as_me: failed program was:" >&5
43931sed 's/^/| /' conftest.$ac_ext >&5
43932
43933
43934 cat >conftest.$ac_ext <<_ACEOF
43935/* confdefs.h. */
43936_ACEOF
43937cat confdefs.h >>conftest.$ac_ext
43938cat >>conftest.$ac_ext <<_ACEOF
43939/* end confdefs.h. */
43940
43941 #include <time.h>
43942
43943int
43944main ()
43945{
43946
43947 int tz;
43948 tz = _timezone;
43949
43950 ;
43951 return 0;
43952}
43953_ACEOF
43954rm -f conftest.$ac_objext
43955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43956 (eval $ac_compile) 2>conftest.er1
a848cd7e 43957 ac_status=$?
ac1cb8d3
VS
43958 grep -v '^ *+' conftest.er1 >conftest.err
43959 rm -f conftest.er1
43960 cat conftest.err >&5
a848cd7e
SC
43961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962 (exit $ac_status); } &&
bb9e79c0 43963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43965 (eval $ac_try) 2>&5
43966 ac_status=$?
43967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43968 (exit $ac_status); }; } &&
43969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43971 (eval $ac_try) 2>&5
43972 ac_status=$?
43973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43974 (exit $ac_status); }; }; then
43975
43976 wx_cv_var_timezone=_timezone
43977
43978else
43979 echo "$as_me: failed program was:" >&5
43980sed 's/^/| /' conftest.$ac_ext >&5
43981
43982
43983 cat >conftest.$ac_ext <<_ACEOF
43984/* confdefs.h. */
43985_ACEOF
43986cat confdefs.h >>conftest.$ac_ext
43987cat >>conftest.$ac_ext <<_ACEOF
43988/* end confdefs.h. */
43989
43990 #include <time.h>
43991
43992int
43993main ()
43994{
43995
43996 int tz;
43997 tz = __timezone;
43998
43999 ;
44000 return 0;
44001}
44002_ACEOF
44003rm -f conftest.$ac_objext
44004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44005 (eval $ac_compile) 2>conftest.er1
a848cd7e 44006 ac_status=$?
ac1cb8d3
VS
44007 grep -v '^ *+' conftest.er1 >conftest.err
44008 rm -f conftest.er1
44009 cat conftest.err >&5
a848cd7e
SC
44010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); } &&
bb9e79c0 44012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44014 (eval $ac_try) 2>&5
44015 ac_status=$?
44016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44017 (exit $ac_status); }; } &&
44018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44020 (eval $ac_try) 2>&5
44021 ac_status=$?
44022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44023 (exit $ac_status); }; }; then
44024
44025 wx_cv_var_timezone=__timezone
44026
44027else
44028 echo "$as_me: failed program was:" >&5
44029sed 's/^/| /' conftest.$ac_ext >&5
44030
44031
44032 if test "$USE_DOS" = 0 ; then
44033 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44034echo "$as_me: WARNING: no timezone variable" >&2;}
44035 fi
44036
44037
44038fi
ac1cb8d3 44039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44040
44041
44042fi
ac1cb8d3 44043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44044
44045
44046fi
ac1cb8d3 44047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44048
44049
44050fi
44051echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44052echo "${ECHO_T}$wx_cv_var_timezone" >&6
44053
44054 if test "x$wx_cv_var_timezone" != x ; then
44055 cat >>confdefs.h <<_ACEOF
44056#define WX_TIMEZONE $wx_cv_var_timezone
44057_ACEOF
44058
44059 fi
44060
44061
44062for ac_func in localtime
44063do
44064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44065echo "$as_me:$LINENO: checking for $ac_func" >&5
44066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44067if eval "test \"\${$as_ac_var+set}\" = set"; then
44068 echo $ECHO_N "(cached) $ECHO_C" >&6
44069else
44070 cat >conftest.$ac_ext <<_ACEOF
44071/* confdefs.h. */
44072_ACEOF
44073cat confdefs.h >>conftest.$ac_ext
44074cat >>conftest.$ac_ext <<_ACEOF
44075/* end confdefs.h. */
ac1cb8d3
VS
44076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44078#define $ac_func innocuous_$ac_func
44079
a848cd7e
SC
44080/* System header to define __stub macros and hopefully few prototypes,
44081 which can conflict with char $ac_func (); below.
44082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44083 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44084
a848cd7e
SC
44085#ifdef __STDC__
44086# include <limits.h>
44087#else
44088# include <assert.h>
44089#endif
ac1cb8d3
VS
44090
44091#undef $ac_func
44092
a848cd7e
SC
44093/* Override any gcc2 internal prototype to avoid an error. */
44094#ifdef __cplusplus
44095extern "C"
44096{
44097#endif
44098/* We use char because int might match the return type of a gcc2
44099 builtin and then its argument prototype would still apply. */
44100char $ac_func ();
44101/* The GNU C library defines this for functions which it implements
44102 to always fail with ENOSYS. Some functions are actually named
44103 something starting with __ and the normal name is an alias. */
44104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44105choke me
44106#else
44107char (*f) () = $ac_func;
44108#endif
44109#ifdef __cplusplus
44110}
44111#endif
44112
44113int
44114main ()
44115{
44116return f != $ac_func;
44117 ;
44118 return 0;
44119}
44120_ACEOF
44121rm -f conftest.$ac_objext conftest$ac_exeext
44122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44123 (eval $ac_link) 2>conftest.er1
a848cd7e 44124 ac_status=$?
ac1cb8d3
VS
44125 grep -v '^ *+' conftest.er1 >conftest.err
44126 rm -f conftest.er1
44127 cat conftest.err >&5
a848cd7e
SC
44128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129 (exit $ac_status); } &&
bb9e79c0 44130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44132 (eval $ac_try) 2>&5
44133 ac_status=$?
44134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135 (exit $ac_status); }; } &&
44136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44138 (eval $ac_try) 2>&5
44139 ac_status=$?
44140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141 (exit $ac_status); }; }; then
44142 eval "$as_ac_var=yes"
44143else
44144 echo "$as_me: failed program was:" >&5
44145sed 's/^/| /' conftest.$ac_ext >&5
44146
44147eval "$as_ac_var=no"
44148fi
ac1cb8d3
VS
44149rm -f conftest.err conftest.$ac_objext \
44150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44151fi
44152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44154if test `eval echo '${'$as_ac_var'}'` = yes; then
44155 cat >>confdefs.h <<_ACEOF
44156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44157_ACEOF
44158
44159fi
44160done
44161
44162
44163 if test "$ac_cv_func_localtime" = "yes"; then
44164 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44165echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44166if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44167 echo $ECHO_N "(cached) $ECHO_C" >&6
44168else
44169
44170 cat >conftest.$ac_ext <<_ACEOF
44171/* confdefs.h. */
44172_ACEOF
44173cat confdefs.h >>conftest.$ac_ext
44174cat >>conftest.$ac_ext <<_ACEOF
44175/* end confdefs.h. */
44176
44177 #include <time.h>
44178
44179int
44180main ()
44181{
44182
44183 struct tm tm;
44184 tm.tm_gmtoff++;
44185
44186 ;
44187 return 0;
44188}
44189_ACEOF
44190rm -f conftest.$ac_objext
44191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44192 (eval $ac_compile) 2>conftest.er1
a848cd7e 44193 ac_status=$?
ac1cb8d3
VS
44194 grep -v '^ *+' conftest.er1 >conftest.err
44195 rm -f conftest.er1
44196 cat conftest.err >&5
a848cd7e
SC
44197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198 (exit $ac_status); } &&
bb9e79c0 44199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44201 (eval $ac_try) 2>&5
44202 ac_status=$?
44203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44204 (exit $ac_status); }; } &&
44205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44207 (eval $ac_try) 2>&5
44208 ac_status=$?
44209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210 (exit $ac_status); }; }; then
44211
44212 wx_cv_struct_tm_has_gmtoff=yes
44213
44214else
44215 echo "$as_me: failed program was:" >&5
44216sed 's/^/| /' conftest.$ac_ext >&5
44217
44218wx_cv_struct_tm_has_gmtoff=no
44219
44220fi
ac1cb8d3 44221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44222
44223fi
44224echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44225echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44226 fi
44227
44228 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44229 cat >>confdefs.h <<\_ACEOF
44230#define WX_GMTOFF_IN_TM 1
44231_ACEOF
44232
44233 fi
44234
44235
44236
44237for ac_func in gettimeofday ftime
44238do
44239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44240echo "$as_me:$LINENO: checking for $ac_func" >&5
44241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44242if eval "test \"\${$as_ac_var+set}\" = set"; then
44243 echo $ECHO_N "(cached) $ECHO_C" >&6
44244else
44245 cat >conftest.$ac_ext <<_ACEOF
44246/* confdefs.h. */
44247_ACEOF
44248cat confdefs.h >>conftest.$ac_ext
44249cat >>conftest.$ac_ext <<_ACEOF
44250/* end confdefs.h. */
ac1cb8d3
VS
44251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44253#define $ac_func innocuous_$ac_func
44254
a848cd7e
SC
44255/* System header to define __stub macros and hopefully few prototypes,
44256 which can conflict with char $ac_func (); below.
44257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44259
a848cd7e
SC
44260#ifdef __STDC__
44261# include <limits.h>
44262#else
44263# include <assert.h>
44264#endif
ac1cb8d3
VS
44265
44266#undef $ac_func
44267
a848cd7e
SC
44268/* Override any gcc2 internal prototype to avoid an error. */
44269#ifdef __cplusplus
44270extern "C"
44271{
44272#endif
44273/* We use char because int might match the return type of a gcc2
44274 builtin and then its argument prototype would still apply. */
44275char $ac_func ();
44276/* The GNU C library defines this for functions which it implements
44277 to always fail with ENOSYS. Some functions are actually named
44278 something starting with __ and the normal name is an alias. */
44279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44280choke me
44281#else
44282char (*f) () = $ac_func;
44283#endif
44284#ifdef __cplusplus
44285}
44286#endif
44287
44288int
44289main ()
44290{
44291return f != $ac_func;
44292 ;
44293 return 0;
44294}
44295_ACEOF
44296rm -f conftest.$ac_objext conftest$ac_exeext
44297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44298 (eval $ac_link) 2>conftest.er1
a848cd7e 44299 ac_status=$?
ac1cb8d3
VS
44300 grep -v '^ *+' conftest.er1 >conftest.err
44301 rm -f conftest.er1
44302 cat conftest.err >&5
a848cd7e
SC
44303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304 (exit $ac_status); } &&
bb9e79c0 44305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307 (eval $ac_try) 2>&5
44308 ac_status=$?
44309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310 (exit $ac_status); }; } &&
44311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44313 (eval $ac_try) 2>&5
44314 ac_status=$?
44315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316 (exit $ac_status); }; }; then
44317 eval "$as_ac_var=yes"
44318else
44319 echo "$as_me: failed program was:" >&5
44320sed 's/^/| /' conftest.$ac_ext >&5
44321
44322eval "$as_ac_var=no"
44323fi
ac1cb8d3
VS
44324rm -f conftest.err conftest.$ac_objext \
44325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44326fi
44327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44329if test `eval echo '${'$as_ac_var'}'` = yes; then
44330 cat >>confdefs.h <<_ACEOF
44331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44332_ACEOF
44333 break
44334fi
44335done
44336
44337
44338 if test "$ac_cv_func_gettimeofday" = "yes"; then
44339 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44340echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44341if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44342 echo $ECHO_N "(cached) $ECHO_C" >&6
44343else
44344
5d7b7554 44345 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44346/* confdefs.h. */
44347_ACEOF
44348cat confdefs.h >>conftest.$ac_ext
44349cat >>conftest.$ac_ext <<_ACEOF
44350/* end confdefs.h. */
44351
44352 #include <sys/time.h>
44353 #include <unistd.h>
44354
44355int
44356main ()
44357{
44358
44359 struct timeval tv;
44360 gettimeofday(&tv, NULL);
44361
44362 ;
44363 return 0;
44364}
44365_ACEOF
44366rm -f conftest.$ac_objext
44367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44368 (eval $ac_compile) 2>conftest.er1
a848cd7e 44369 ac_status=$?
ac1cb8d3
VS
44370 grep -v '^ *+' conftest.er1 >conftest.err
44371 rm -f conftest.er1
44372 cat conftest.err >&5
a848cd7e
SC
44373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44374 (exit $ac_status); } &&
bb9e79c0 44375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44377 (eval $ac_try) 2>&5
44378 ac_status=$?
44379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380 (exit $ac_status); }; } &&
44381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44383 (eval $ac_try) 2>&5
44384 ac_status=$?
44385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44386 (exit $ac_status); }; }; then
44387 wx_cv_func_gettimeofday_has_2_args=yes
44388else
44389 echo "$as_me: failed program was:" >&5
44390sed 's/^/| /' conftest.$ac_ext >&5
44391
44392cat >conftest.$ac_ext <<_ACEOF
44393/* confdefs.h. */
44394_ACEOF
44395cat confdefs.h >>conftest.$ac_ext
44396cat >>conftest.$ac_ext <<_ACEOF
44397/* end confdefs.h. */
44398
44399 #include <sys/time.h>
44400 #include <unistd.h>
44401
44402int
44403main ()
44404{
44405
44406 struct timeval tv;
44407 gettimeofday(&tv);
44408
44409 ;
44410 return 0;
44411}
44412_ACEOF
44413rm -f conftest.$ac_objext
44414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44415 (eval $ac_compile) 2>conftest.er1
a848cd7e 44416 ac_status=$?
ac1cb8d3
VS
44417 grep -v '^ *+' conftest.er1 >conftest.err
44418 rm -f conftest.er1
44419 cat conftest.err >&5
a848cd7e
SC
44420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44421 (exit $ac_status); } &&
bb9e79c0 44422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44424 (eval $ac_try) 2>&5
44425 ac_status=$?
44426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44427 (exit $ac_status); }; } &&
44428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44430 (eval $ac_try) 2>&5
44431 ac_status=$?
44432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44433 (exit $ac_status); }; }; then
44434 wx_cv_func_gettimeofday_has_2_args=no
44435else
44436 echo "$as_me: failed program was:" >&5
44437sed 's/^/| /' conftest.$ac_ext >&5
44438
44439
44440 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44441echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44442 wx_cv_func_gettimeofday_has_2_args=unknown
44443
44444
44445fi
ac1cb8d3 44446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44447
44448fi
ac1cb8d3 44449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44450
44451fi
44452echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44453echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44454
44455 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44456 cat >>confdefs.h <<\_ACEOF
44457#define WX_GETTIMEOFDAY_NO_TZ 1
44458_ACEOF
44459
44460 fi
44461 fi
44462
44463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44464fi
44465
44466
44467if test "$wxUSE_SOCKETS" = "yes"; then
44468 if test "$wxUSE_MGL" = "1"; then
44469 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44470echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44471 wxUSE_SOCKETS="no"
44472 fi
44473fi
44474
44475if test "$wxUSE_SOCKETS" = "yes"; then
44476 if test "$TOOLKIT" != "MSW"; then
44477 echo "$as_me:$LINENO: checking for socket" >&5
44478echo $ECHO_N "checking for socket... $ECHO_C" >&6
44479if test "${ac_cv_func_socket+set}" = set; then
44480 echo $ECHO_N "(cached) $ECHO_C" >&6
44481else
44482 cat >conftest.$ac_ext <<_ACEOF
44483/* confdefs.h. */
44484_ACEOF
44485cat confdefs.h >>conftest.$ac_ext
44486cat >>conftest.$ac_ext <<_ACEOF
44487/* end confdefs.h. */
ac1cb8d3
VS
44488/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44490#define socket innocuous_socket
44491
a848cd7e
SC
44492/* System header to define __stub macros and hopefully few prototypes,
44493 which can conflict with char socket (); below.
44494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44496
a848cd7e
SC
44497#ifdef __STDC__
44498# include <limits.h>
44499#else
44500# include <assert.h>
44501#endif
ac1cb8d3
VS
44502
44503#undef socket
44504
a848cd7e
SC
44505/* Override any gcc2 internal prototype to avoid an error. */
44506#ifdef __cplusplus
44507extern "C"
44508{
44509#endif
44510/* We use char because int might match the return type of a gcc2
44511 builtin and then its argument prototype would still apply. */
44512char socket ();
44513/* The GNU C library defines this for functions which it implements
44514 to always fail with ENOSYS. Some functions are actually named
44515 something starting with __ and the normal name is an alias. */
44516#if defined (__stub_socket) || defined (__stub___socket)
44517choke me
44518#else
44519char (*f) () = socket;
44520#endif
44521#ifdef __cplusplus
44522}
44523#endif
44524
44525int
44526main ()
44527{
44528return f != socket;
44529 ;
44530 return 0;
44531}
44532_ACEOF
44533rm -f conftest.$ac_objext conftest$ac_exeext
44534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44535 (eval $ac_link) 2>conftest.er1
a848cd7e 44536 ac_status=$?
ac1cb8d3
VS
44537 grep -v '^ *+' conftest.er1 >conftest.err
44538 rm -f conftest.er1
44539 cat conftest.err >&5
a848cd7e
SC
44540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44541 (exit $ac_status); } &&
bb9e79c0 44542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44544 (eval $ac_try) 2>&5
44545 ac_status=$?
44546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547 (exit $ac_status); }; } &&
44548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44550 (eval $ac_try) 2>&5
44551 ac_status=$?
44552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44553 (exit $ac_status); }; }; then
44554 ac_cv_func_socket=yes
44555else
44556 echo "$as_me: failed program was:" >&5
44557sed 's/^/| /' conftest.$ac_ext >&5
44558
44559ac_cv_func_socket=no
44560fi
ac1cb8d3
VS
44561rm -f conftest.err conftest.$ac_objext \
44562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44563fi
44564echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44565echo "${ECHO_T}$ac_cv_func_socket" >&6
44566if test $ac_cv_func_socket = yes; then
44567 :
44568else
44569
44570 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44571echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44572if test "${ac_cv_lib_socket_socket+set}" = set; then
44573 echo $ECHO_N "(cached) $ECHO_C" >&6
44574else
44575 ac_check_lib_save_LIBS=$LIBS
44576LIBS="-lsocket $LIBS"
44577cat >conftest.$ac_ext <<_ACEOF
44578/* confdefs.h. */
44579_ACEOF
44580cat confdefs.h >>conftest.$ac_ext
44581cat >>conftest.$ac_ext <<_ACEOF
44582/* end confdefs.h. */
44583
44584/* Override any gcc2 internal prototype to avoid an error. */
44585#ifdef __cplusplus
44586extern "C"
44587#endif
44588/* We use char because int might match the return type of a gcc2
44589 builtin and then its argument prototype would still apply. */
44590char socket ();
44591int
44592main ()
44593{
44594socket ();
44595 ;
44596 return 0;
44597}
44598_ACEOF
44599rm -f conftest.$ac_objext conftest$ac_exeext
44600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44601 (eval $ac_link) 2>conftest.er1
a848cd7e 44602 ac_status=$?
ac1cb8d3
VS
44603 grep -v '^ *+' conftest.er1 >conftest.err
44604 rm -f conftest.er1
44605 cat conftest.err >&5
a848cd7e
SC
44606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607 (exit $ac_status); } &&
bb9e79c0 44608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44610 (eval $ac_try) 2>&5
44611 ac_status=$?
44612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44613 (exit $ac_status); }; } &&
44614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44616 (eval $ac_try) 2>&5
44617 ac_status=$?
44618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619 (exit $ac_status); }; }; then
44620 ac_cv_lib_socket_socket=yes
44621else
44622 echo "$as_me: failed program was:" >&5
44623sed 's/^/| /' conftest.$ac_ext >&5
44624
44625ac_cv_lib_socket_socket=no
44626fi
ac1cb8d3
VS
44627rm -f conftest.err conftest.$ac_objext \
44628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44629LIBS=$ac_check_lib_save_LIBS
44630fi
44631echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44632echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44633if test $ac_cv_lib_socket_socket = yes; then
44634 if test "$INET_LINK" != " -lsocket"; then
44635 INET_LINK="$INET_LINK -lsocket"
44636 fi
44637else
44638
44639 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44640echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44641 wxUSE_SOCKETS=no
44642
44643
44644fi
44645
44646
44647
44648fi
44649
44650 fi
44651fi
44652
44653if test "$wxUSE_SOCKETS" = "yes" ; then
44654 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44655 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44656echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44657if test "${wx_cv_type_getsockname3+set}" = set; then
44658 echo $ECHO_N "(cached) $ECHO_C" >&6
44659else
44660
44661 cat >conftest.$ac_ext <<_ACEOF
44662/* confdefs.h. */
44663_ACEOF
44664cat confdefs.h >>conftest.$ac_ext
44665cat >>conftest.$ac_ext <<_ACEOF
44666/* end confdefs.h. */
44667
44668 #include <sys/types.h>
44669 #include <sys/socket.h>
44670
44671int
44672main ()
44673{
44674
44675 socklen_t len;
44676 getsockname(0, 0, &len);
44677
44678 ;
44679 return 0;
44680}
44681_ACEOF
44682rm -f conftest.$ac_objext
44683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44684 (eval $ac_compile) 2>conftest.er1
a848cd7e 44685 ac_status=$?
ac1cb8d3
VS
44686 grep -v '^ *+' conftest.er1 >conftest.err
44687 rm -f conftest.er1
44688 cat conftest.err >&5
a848cd7e
SC
44689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690 (exit $ac_status); } &&
bb9e79c0 44691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44693 (eval $ac_try) 2>&5
44694 ac_status=$?
44695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696 (exit $ac_status); }; } &&
44697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44699 (eval $ac_try) 2>&5
44700 ac_status=$?
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); }; }; then
44703 wx_cv_type_getsockname3=socklen_t
44704else
44705 echo "$as_me: failed program was:" >&5
44706sed 's/^/| /' conftest.$ac_ext >&5
44707
44708
6459a506 44709 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44710 if test "$GCC" = yes ; then
c92ad099 44711 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44712 fi
44713
44714 cat >conftest.$ac_ext <<_ACEOF
44715/* confdefs.h. */
44716_ACEOF
44717cat confdefs.h >>conftest.$ac_ext
44718cat >>conftest.$ac_ext <<_ACEOF
44719/* end confdefs.h. */
44720
44721 #include <sys/types.h>
44722 #include <sys/socket.h>
44723
44724int
44725main ()
44726{
44727
44728 size_t len;
44729 getsockname(0, 0, &len);
44730
44731 ;
44732 return 0;
44733}
44734_ACEOF
44735rm -f conftest.$ac_objext
44736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44737 (eval $ac_compile) 2>conftest.er1
a848cd7e 44738 ac_status=$?
ac1cb8d3
VS
44739 grep -v '^ *+' conftest.er1 >conftest.err
44740 rm -f conftest.er1
44741 cat conftest.err >&5
a848cd7e
SC
44742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44743 (exit $ac_status); } &&
bb9e79c0 44744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44746 (eval $ac_try) 2>&5
44747 ac_status=$?
44748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44749 (exit $ac_status); }; } &&
44750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44752 (eval $ac_try) 2>&5
44753 ac_status=$?
44754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44755 (exit $ac_status); }; }; then
44756 wx_cv_type_getsockname3=size_t
44757else
44758 echo "$as_me: failed program was:" >&5
44759sed 's/^/| /' conftest.$ac_ext >&5
44760
44761cat >conftest.$ac_ext <<_ACEOF
44762/* confdefs.h. */
44763_ACEOF
44764cat confdefs.h >>conftest.$ac_ext
44765cat >>conftest.$ac_ext <<_ACEOF
44766/* end confdefs.h. */
44767
44768 #include <sys/types.h>
44769 #include <sys/socket.h>
44770
44771int
44772main ()
44773{
44774
44775 int len;
44776 getsockname(0, 0, &len);
44777
44778 ;
44779 return 0;
44780}
44781_ACEOF
44782rm -f conftest.$ac_objext
44783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44784 (eval $ac_compile) 2>conftest.er1
a848cd7e 44785 ac_status=$?
ac1cb8d3
VS
44786 grep -v '^ *+' conftest.er1 >conftest.err
44787 rm -f conftest.er1
44788 cat conftest.err >&5
a848cd7e
SC
44789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44790 (exit $ac_status); } &&
bb9e79c0 44791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44793 (eval $ac_try) 2>&5
44794 ac_status=$?
44795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44796 (exit $ac_status); }; } &&
44797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44799 (eval $ac_try) 2>&5
44800 ac_status=$?
44801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802 (exit $ac_status); }; }; then
44803 wx_cv_type_getsockname3=int
44804else
44805 echo "$as_me: failed program was:" >&5
44806sed 's/^/| /' conftest.$ac_ext >&5
44807
44808wx_cv_type_getsockname3=unknown
44809
44810fi
ac1cb8d3 44811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44812
44813fi
ac1cb8d3 44814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44815
6459a506 44816 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44817
44818
44819fi
ac1cb8d3 44820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44821
44822fi
44823echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44824echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44825
44826 if test "$wx_cv_type_getsockname3" = "unknown"; then
44827 wxUSE_SOCKETS=no
44828 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44829echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44830 else
44831 cat >>confdefs.h <<_ACEOF
9e03e02d 44832#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44833_ACEOF
44834
44835 fi
44836 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44837echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44838if test "${wx_cv_type_getsockopt5+set}" = set; then
44839 echo $ECHO_N "(cached) $ECHO_C" >&6
44840else
44841
44842 cat >conftest.$ac_ext <<_ACEOF
44843/* confdefs.h. */
44844_ACEOF
44845cat confdefs.h >>conftest.$ac_ext
44846cat >>conftest.$ac_ext <<_ACEOF
44847/* end confdefs.h. */
44848
44849 #include <sys/types.h>
44850 #include <sys/socket.h>
44851
44852int
44853main ()
44854{
44855
44856 socklen_t len;
44857 getsockopt(0, 0, 0, 0, &len);
44858
44859 ;
44860 return 0;
44861}
44862_ACEOF
44863rm -f conftest.$ac_objext
44864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44865 (eval $ac_compile) 2>conftest.er1
44866 ac_status=$?
44867 grep -v '^ *+' conftest.er1 >conftest.err
44868 rm -f conftest.er1
44869 cat conftest.err >&5
44870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44871 (exit $ac_status); } &&
bb9e79c0 44872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44874 (eval $ac_try) 2>&5
44875 ac_status=$?
44876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877 (exit $ac_status); }; } &&
44878 { ac_try='test -s conftest.$ac_objext'
44879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44880 (eval $ac_try) 2>&5
44881 ac_status=$?
44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883 (exit $ac_status); }; }; then
44884 wx_cv_type_getsockopt5=socklen_t
44885else
44886 echo "$as_me: failed program was:" >&5
44887sed 's/^/| /' conftest.$ac_ext >&5
44888
44889
6459a506 44890 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44891 if test "$GCC" = yes ; then
c92ad099 44892 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44893 fi
44894
44895 cat >conftest.$ac_ext <<_ACEOF
44896/* confdefs.h. */
44897_ACEOF
44898cat confdefs.h >>conftest.$ac_ext
44899cat >>conftest.$ac_ext <<_ACEOF
44900/* end confdefs.h. */
44901
44902 #include <sys/types.h>
44903 #include <sys/socket.h>
44904
44905int
44906main ()
44907{
44908
44909 size_t len;
44910 getsockopt(0, 0, 0, 0, &len);
44911
44912 ;
44913 return 0;
44914}
44915_ACEOF
44916rm -f conftest.$ac_objext
44917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44918 (eval $ac_compile) 2>conftest.er1
44919 ac_status=$?
44920 grep -v '^ *+' conftest.er1 >conftest.err
44921 rm -f conftest.er1
44922 cat conftest.err >&5
44923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44924 (exit $ac_status); } &&
bb9e79c0 44925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44927 (eval $ac_try) 2>&5
44928 ac_status=$?
44929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44930 (exit $ac_status); }; } &&
44931 { ac_try='test -s conftest.$ac_objext'
44932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44933 (eval $ac_try) 2>&5
44934 ac_status=$?
44935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936 (exit $ac_status); }; }; then
44937 wx_cv_type_getsockopt5=size_t
44938else
44939 echo "$as_me: failed program was:" >&5
44940sed 's/^/| /' conftest.$ac_ext >&5
44941
44942cat >conftest.$ac_ext <<_ACEOF
44943/* confdefs.h. */
44944_ACEOF
44945cat confdefs.h >>conftest.$ac_ext
44946cat >>conftest.$ac_ext <<_ACEOF
44947/* end confdefs.h. */
44948
44949 #include <sys/types.h>
44950 #include <sys/socket.h>
44951
44952int
44953main ()
44954{
44955
44956 int len;
44957 getsockopt(0, 0, 0, 0, &len);
44958
44959 ;
44960 return 0;
44961}
44962_ACEOF
44963rm -f conftest.$ac_objext
44964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44965 (eval $ac_compile) 2>conftest.er1
44966 ac_status=$?
44967 grep -v '^ *+' conftest.er1 >conftest.err
44968 rm -f conftest.er1
44969 cat conftest.err >&5
44970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44971 (exit $ac_status); } &&
bb9e79c0 44972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44974 (eval $ac_try) 2>&5
44975 ac_status=$?
44976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44977 (exit $ac_status); }; } &&
44978 { ac_try='test -s conftest.$ac_objext'
44979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44980 (eval $ac_try) 2>&5
44981 ac_status=$?
44982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44983 (exit $ac_status); }; }; then
44984 wx_cv_type_getsockopt5=int
44985else
44986 echo "$as_me: failed program was:" >&5
44987sed 's/^/| /' conftest.$ac_ext >&5
44988
44989wx_cv_type_getsockopt5=unknown
44990
44991fi
44992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44993
44994fi
44995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44996
6459a506 44997 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44998
44999
45000fi
45001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45002
45003fi
45004echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45005echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
45006
45007 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45008 wxUSE_SOCKETS=no
45009 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45010echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45011 else
45012 cat >>confdefs.h <<_ACEOF
45013#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45014_ACEOF
45015
45016 fi
45017 fi
45018fi
45019
45020if test "$wxUSE_SOCKETS" = "yes" ; then
45021 cat >>confdefs.h <<\_ACEOF
45022#define wxUSE_SOCKETS 1
45023_ACEOF
45024
45025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45026fi
45027
45028if test "$wxUSE_PROTOCOL" = "yes"; then
45029 if test "$wxUSE_SOCKETS" != "yes"; then
45030 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45031echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45032 wxUSE_PROTOCOL=no
45033 fi
45034fi
45035
45036if test "$wxUSE_PROTOCOL" = "yes"; then
45037 cat >>confdefs.h <<\_ACEOF
45038#define wxUSE_PROTOCOL 1
45039_ACEOF
45040
45041
45042 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45043 cat >>confdefs.h <<\_ACEOF
45044#define wxUSE_PROTOCOL_HTTP 1
45045_ACEOF
45046
45047 fi
45048 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45049 cat >>confdefs.h <<\_ACEOF
45050#define wxUSE_PROTOCOL_FTP 1
45051_ACEOF
45052
45053 fi
45054 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45055 cat >>confdefs.h <<\_ACEOF
45056#define wxUSE_PROTOCOL_FILE 1
45057_ACEOF
45058
45059 fi
45060else
45061 if test "$wxUSE_FS_INET" = "yes"; then
45062 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45063echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45064 wxUSE_FS_INET="no"
45065 fi
45066fi
45067
45068if test "$wxUSE_URL" = "yes"; then
45069 if test "$wxUSE_PROTOCOL" != "yes"; then
45070 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45071echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45072 wxUSE_URL=no
45073 fi
45074 if test "$wxUSE_URL" = "yes"; then
45075 cat >>confdefs.h <<\_ACEOF
45076#define wxUSE_URL 1
45077_ACEOF
45078
45079 fi
45080fi
45081
ca5c6ac3
VZ
45082if test "$wxUSE_VARIANT" = "yes"; then
45083 cat >>confdefs.h <<\_ACEOF
45084#define wxUSE_VARIANT 1
45085_ACEOF
45086
45087fi
45088
a848cd7e
SC
45089if test "$wxUSE_FS_INET" = "yes"; then
45090 cat >>confdefs.h <<\_ACEOF
45091#define wxUSE_FS_INET 1
45092_ACEOF
45093
45094fi
45095
45096
ee45c548
MW
45097if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45098 wxUSE_JOYSTICK=no
45099
45100 if test "$TOOLKIT" = "MSW"; then
45101 wxUSE_JOYSTICK=yes
45102
45103 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45104 if test "$USE_DARWIN" = 1; then
45105 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45106echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
45107 cat >conftest.$ac_ext <<_ACEOF
45108/* confdefs.h. */
45109_ACEOF
45110cat confdefs.h >>conftest.$ac_ext
45111cat >>conftest.$ac_ext <<_ACEOF
45112/* end confdefs.h. */
45113 #include <IOKit/hid/IOHIDLib.h>
45114int
45115main ()
45116{
45117 IOHIDQueueInterface *qi = NULL;
45118 IOHIDCallbackFunction cb = NULL;
45119 qi->setEventCallout(NULL, cb, NULL, NULL);
45120 ;
45121 return 0;
45122}
45123_ACEOF
45124rm -f conftest.$ac_objext
45125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45126 (eval $ac_compile) 2>conftest.er1
45127 ac_status=$?
45128 grep -v '^ *+' conftest.er1 >conftest.err
45129 rm -f conftest.er1
45130 cat conftest.err >&5
45131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45132 (exit $ac_status); } &&
bb9e79c0 45133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
45134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45135 (eval $ac_try) 2>&5
45136 ac_status=$?
45137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45138 (exit $ac_status); }; } &&
45139 { ac_try='test -s conftest.$ac_objext'
45140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45141 (eval $ac_try) 2>&5
45142 ac_status=$?
45143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144 (exit $ac_status); }; }; then
45145 wxUSE_JOYSTICK=yes
a848cd7e 45146
ee45c548
MW
45147else
45148 echo "$as_me: failed program was:" >&5
45149sed 's/^/| /' conftest.$ac_ext >&5
45150
45151fi
45152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
45153 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45154echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45155 fi
45156
45157 else
a848cd7e
SC
45158
45159for ac_header in linux/joystick.h
45160do
45161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45162if eval "test \"\${$as_ac_Header+set}\" = set"; then
45163 echo "$as_me:$LINENO: checking for $ac_header" >&5
45164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45165if eval "test \"\${$as_ac_Header+set}\" = set"; then
45166 echo $ECHO_N "(cached) $ECHO_C" >&6
45167fi
45168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45170else
45171 # Is the header compilable?
45172echo "$as_me:$LINENO: checking $ac_header usability" >&5
45173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45174cat >conftest.$ac_ext <<_ACEOF
45175/* confdefs.h. */
45176_ACEOF
45177cat confdefs.h >>conftest.$ac_ext
45178cat >>conftest.$ac_ext <<_ACEOF
45179/* end confdefs.h. */
45180$ac_includes_default
45181#include <$ac_header>
45182_ACEOF
45183rm -f conftest.$ac_objext
45184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45185 (eval $ac_compile) 2>conftest.er1
a848cd7e 45186 ac_status=$?
ac1cb8d3
VS
45187 grep -v '^ *+' conftest.er1 >conftest.err
45188 rm -f conftest.er1
45189 cat conftest.err >&5
a848cd7e
SC
45190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45191 (exit $ac_status); } &&
bb9e79c0 45192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45194 (eval $ac_try) 2>&5
45195 ac_status=$?
45196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197 (exit $ac_status); }; } &&
45198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200 (eval $ac_try) 2>&5
45201 ac_status=$?
45202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 (exit $ac_status); }; }; then
45204 ac_header_compiler=yes
45205else
45206 echo "$as_me: failed program was:" >&5
45207sed 's/^/| /' conftest.$ac_ext >&5
45208
45209ac_header_compiler=no
45210fi
ac1cb8d3 45211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45213echo "${ECHO_T}$ac_header_compiler" >&6
45214
45215# Is the header present?
45216echo "$as_me:$LINENO: checking $ac_header presence" >&5
45217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45218cat >conftest.$ac_ext <<_ACEOF
45219/* confdefs.h. */
45220_ACEOF
45221cat confdefs.h >>conftest.$ac_ext
45222cat >>conftest.$ac_ext <<_ACEOF
45223/* end confdefs.h. */
45224#include <$ac_header>
45225_ACEOF
45226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45228 ac_status=$?
45229 grep -v '^ *+' conftest.er1 >conftest.err
45230 rm -f conftest.er1
45231 cat conftest.err >&5
45232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45233 (exit $ac_status); } >/dev/null; then
45234 if test -s conftest.err; then
5d7b7554
VZ
45235 ac_cpp_err=$ac_cxx_preproc_warn_flag
45236 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45237 else
45238 ac_cpp_err=
45239 fi
45240else
45241 ac_cpp_err=yes
45242fi
45243if test -z "$ac_cpp_err"; then
45244 ac_header_preproc=yes
45245else
45246 echo "$as_me: failed program was:" >&5
45247sed 's/^/| /' conftest.$ac_ext >&5
45248
45249 ac_header_preproc=no
45250fi
45251rm -f conftest.err conftest.$ac_ext
45252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45253echo "${ECHO_T}$ac_header_preproc" >&6
45254
45255# So? What about this header?
5d7b7554 45256case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45257 yes:no: )
a848cd7e
SC
45258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45262 ac_header_preproc=yes
a848cd7e 45263 ;;
ac1cb8d3 45264 no:yes:* )
a848cd7e
SC
45265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45272echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45277 (
45278 cat <<\_ASBOX
ac1cb8d3
VS
45279## ----------------------------------------- ##
45280## Report this to wx-dev@lists.wxwidgets.org ##
45281## ----------------------------------------- ##
a848cd7e
SC
45282_ASBOX
45283 ) |
45284 sed "s/^/$as_me: WARNING: /" >&2
45285 ;;
45286esac
45287echo "$as_me:$LINENO: checking for $ac_header" >&5
45288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45289if eval "test \"\${$as_ac_Header+set}\" = set"; then
45290 echo $ECHO_N "(cached) $ECHO_C" >&6
45291else
ac1cb8d3 45292 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45293fi
45294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45296
45297fi
45298if test `eval echo '${'$as_ac_Header'}'` = yes; then
45299 cat >>confdefs.h <<_ACEOF
45300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45301_ACEOF
ee45c548 45302 wxUSE_JOYSTICK=yes
a848cd7e
SC
45303fi
45304
45305done
45306
ee45c548 45307 fi
4cb1d3da 45308
ee45c548
MW
45309 if test "$wxUSE_JOYSTICK" = "yes"; then
45310 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45311#define wxUSE_JOYSTICK 1
45312_ACEOF
45313
ee45c548
MW
45314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45315 else
45316 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45317echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45318 fi
45319fi
45320
45321
45322
45323if test "$wxUSE_FONTMAP" = "yes" ; then
45324 cat >>confdefs.h <<\_ACEOF
45325#define wxUSE_FONTMAP 1
45326_ACEOF
45327
45328fi
45329
45330if test "$wxUSE_UNICODE" = "yes" ; then
45331 cat >>confdefs.h <<\_ACEOF
45332#define wxUSE_UNICODE 1
45333_ACEOF
45334
45335
45336 if test "$USE_WIN32" != 1; then
45337 wxUSE_UNICODE_MSLU=no
45338 fi
45339
45340 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45341 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45342echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45343if test "${ac_cv_lib_unicows_main+set}" = set; then
45344 echo $ECHO_N "(cached) $ECHO_C" >&6
45345else
45346 ac_check_lib_save_LIBS=$LIBS
45347LIBS="-lunicows $LIBS"
45348cat >conftest.$ac_ext <<_ACEOF
45349/* confdefs.h. */
45350_ACEOF
45351cat confdefs.h >>conftest.$ac_ext
45352cat >>conftest.$ac_ext <<_ACEOF
45353/* end confdefs.h. */
45354
45355
45356int
45357main ()
45358{
45359main ();
45360 ;
45361 return 0;
45362}
45363_ACEOF
45364rm -f conftest.$ac_objext conftest$ac_exeext
45365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45366 (eval $ac_link) 2>conftest.er1
a848cd7e 45367 ac_status=$?
ac1cb8d3
VS
45368 grep -v '^ *+' conftest.er1 >conftest.err
45369 rm -f conftest.er1
45370 cat conftest.err >&5
a848cd7e
SC
45371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45372 (exit $ac_status); } &&
bb9e79c0 45373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45375 (eval $ac_try) 2>&5
45376 ac_status=$?
45377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45378 (exit $ac_status); }; } &&
45379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45381 (eval $ac_try) 2>&5
45382 ac_status=$?
45383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45384 (exit $ac_status); }; }; then
45385 ac_cv_lib_unicows_main=yes
45386else
45387 echo "$as_me: failed program was:" >&5
45388sed 's/^/| /' conftest.$ac_ext >&5
45389
45390ac_cv_lib_unicows_main=no
45391fi
ac1cb8d3
VS
45392rm -f conftest.err conftest.$ac_objext \
45393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45394LIBS=$ac_check_lib_save_LIBS
45395fi
45396echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45397echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45398if test $ac_cv_lib_unicows_main = yes; then
45399
45400 cat >>confdefs.h <<\_ACEOF
45401#define wxUSE_UNICODE_MSLU 1
45402_ACEOF
45403
45404
45405else
45406
45407 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45408 Applications will only run on Windows NT/2000/XP!" >&5
45409echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45410 Applications will only run on Windows NT/2000/XP!" >&2;}
45411 wxUSE_UNICODE_MSLU=no
45412
45413fi
45414
45415 fi
45416fi
45417
45418if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45419 cat >>confdefs.h <<\_ACEOF
45420#define wxUSE_EXPERIMENTAL_PRINTF 1
45421_ACEOF
45422
45423fi
45424
45425
45426if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45427 cat >>confdefs.h <<\_ACEOF
45428#define wxUSE_POSTSCRIPT 1
45429_ACEOF
45430
45431fi
45432
45433cat >>confdefs.h <<\_ACEOF
45434#define wxUSE_AFM_FOR_POSTSCRIPT 1
45435_ACEOF
45436
45437
45438cat >>confdefs.h <<\_ACEOF
45439#define wxUSE_NORMALIZED_PS_FONTS 1
45440_ACEOF
45441
45442
45443
45444if test "$wxUSE_CONSTRAINTS" = "yes"; then
45445 cat >>confdefs.h <<\_ACEOF
45446#define wxUSE_CONSTRAINTS 1
45447_ACEOF
45448
45449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45450fi
45451
8a7b1113
VZ
45452if test "$wxUSE_MDI" = "yes"; then
45453 cat >>confdefs.h <<\_ACEOF
45454#define wxUSE_MDI 1
45455_ACEOF
45456
45457
45458 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45459 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45460#define wxUSE_MDI_ARCHITECTURE 1
45461_ACEOF
45462
8a7b1113
VZ
45463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45464 fi
a848cd7e
SC
45465fi
45466
45467if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45468 cat >>confdefs.h <<\_ACEOF
45469#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45470_ACEOF
45471
45472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45473 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45475 fi
45476fi
45477
45478if test "$wxUSE_HELP" = "yes"; then
45479 cat >>confdefs.h <<\_ACEOF
45480#define wxUSE_HELP 1
45481_ACEOF
45482
45483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45484
45485 if test "$wxUSE_MSW" = 1; then
45486 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45487 cat >>confdefs.h <<\_ACEOF
45488#define wxUSE_MS_HTML_HELP 1
45489_ACEOF
45490
45491 fi
45492 fi
45493
45494 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45495 if test "$wxUSE_HTML" = "yes"; then
45496 cat >>confdefs.h <<\_ACEOF
45497#define wxUSE_WXHTML_HELP 1
45498_ACEOF
45499
45500 else
45501 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45502echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45503 wxUSE_WXHTML_HELP=no
45504 fi
45505 fi
45506fi
45507
45508if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45509 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45510 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45511echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45512 else
45513 cat >>confdefs.h <<\_ACEOF
45514#define wxUSE_PRINTING_ARCHITECTURE 1
45515_ACEOF
45516
45517 fi
45518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45519fi
45520
45521if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45522 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45523echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45524 { (exit 1); exit 1; }; }
45525fi
45526
45527
efdf6afe
VZ
45528if test "$wxUSE_METAFILE" = "yes"; then
45529 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45530 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45531echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45532 wxUSE_METAFILE=no
45533 fi
45534fi
45535
45536
a848cd7e
SC
45537if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45538 -o "$wxUSE_CLIPBOARD" = "yes" \
45539 -o "$wxUSE_OLE" = "yes" \
45540 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45541
45542for ac_header in ole2.h
45543do
45544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45545if eval "test \"\${$as_ac_Header+set}\" = set"; then
45546 echo "$as_me:$LINENO: checking for $ac_header" >&5
45547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45548if eval "test \"\${$as_ac_Header+set}\" = set"; then
45549 echo $ECHO_N "(cached) $ECHO_C" >&6
45550fi
45551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45553else
45554 # Is the header compilable?
45555echo "$as_me:$LINENO: checking $ac_header usability" >&5
45556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45557cat >conftest.$ac_ext <<_ACEOF
45558/* confdefs.h. */
45559_ACEOF
45560cat confdefs.h >>conftest.$ac_ext
45561cat >>conftest.$ac_ext <<_ACEOF
45562/* end confdefs.h. */
45563$ac_includes_default
45564#include <$ac_header>
45565_ACEOF
45566rm -f conftest.$ac_objext
45567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45568 (eval $ac_compile) 2>conftest.er1
a848cd7e 45569 ac_status=$?
ac1cb8d3
VS
45570 grep -v '^ *+' conftest.er1 >conftest.err
45571 rm -f conftest.er1
45572 cat conftest.err >&5
a848cd7e
SC
45573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45574 (exit $ac_status); } &&
bb9e79c0 45575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45577 (eval $ac_try) 2>&5
45578 ac_status=$?
45579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580 (exit $ac_status); }; } &&
45581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45583 (eval $ac_try) 2>&5
45584 ac_status=$?
45585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45586 (exit $ac_status); }; }; then
45587 ac_header_compiler=yes
45588else
45589 echo "$as_me: failed program was:" >&5
45590sed 's/^/| /' conftest.$ac_ext >&5
45591
45592ac_header_compiler=no
45593fi
ac1cb8d3 45594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45596echo "${ECHO_T}$ac_header_compiler" >&6
45597
45598# Is the header present?
45599echo "$as_me:$LINENO: checking $ac_header presence" >&5
45600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45601cat >conftest.$ac_ext <<_ACEOF
45602/* confdefs.h. */
45603_ACEOF
45604cat confdefs.h >>conftest.$ac_ext
45605cat >>conftest.$ac_ext <<_ACEOF
45606/* end confdefs.h. */
45607#include <$ac_header>
45608_ACEOF
45609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45611 ac_status=$?
45612 grep -v '^ *+' conftest.er1 >conftest.err
45613 rm -f conftest.er1
45614 cat conftest.err >&5
45615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45616 (exit $ac_status); } >/dev/null; then
45617 if test -s conftest.err; then
5d7b7554
VZ
45618 ac_cpp_err=$ac_cxx_preproc_warn_flag
45619 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45620 else
45621 ac_cpp_err=
45622 fi
45623else
45624 ac_cpp_err=yes
45625fi
45626if test -z "$ac_cpp_err"; then
45627 ac_header_preproc=yes
45628else
45629 echo "$as_me: failed program was:" >&5
45630sed 's/^/| /' conftest.$ac_ext >&5
45631
45632 ac_header_preproc=no
45633fi
45634rm -f conftest.err conftest.$ac_ext
45635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45636echo "${ECHO_T}$ac_header_preproc" >&6
45637
45638# So? What about this header?
5d7b7554 45639case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45640 yes:no: )
a848cd7e
SC
45641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45645 ac_header_preproc=yes
a848cd7e 45646 ;;
ac1cb8d3 45647 no:yes:* )
a848cd7e
SC
45648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45660 (
45661 cat <<\_ASBOX
ac1cb8d3
VS
45662## ----------------------------------------- ##
45663## Report this to wx-dev@lists.wxwidgets.org ##
45664## ----------------------------------------- ##
a848cd7e
SC
45665_ASBOX
45666 ) |
45667 sed "s/^/$as_me: WARNING: /" >&2
45668 ;;
45669esac
45670echo "$as_me:$LINENO: checking for $ac_header" >&5
45671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45672if eval "test \"\${$as_ac_Header+set}\" = set"; then
45673 echo $ECHO_N "(cached) $ECHO_C" >&6
45674else
ac1cb8d3 45675 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45676fi
45677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45679
45680fi
45681if test `eval echo '${'$as_ac_Header'}'` = yes; then
45682 cat >>confdefs.h <<_ACEOF
45683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45684_ACEOF
45685
45686fi
45687
45688done
45689
45690
45691 if test "$ac_cv_header_ole2_h" = "yes" ; then
45692 if test "$GCC" = yes ; then
a848cd7e
SC
45693 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45694echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45695 cat >conftest.$ac_ext <<_ACEOF
45696/* confdefs.h. */
45697_ACEOF
45698cat confdefs.h >>conftest.$ac_ext
45699cat >>conftest.$ac_ext <<_ACEOF
45700/* end confdefs.h. */
45701#include <windows.h>
45702 #include <ole2.h>
45703int
45704main ()
45705{
45706
45707 ;
45708 return 0;
45709}
45710_ACEOF
45711rm -f conftest.$ac_objext
45712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45713 (eval $ac_compile) 2>conftest.er1
a848cd7e 45714 ac_status=$?
ac1cb8d3
VS
45715 grep -v '^ *+' conftest.er1 >conftest.err
45716 rm -f conftest.er1
45717 cat conftest.err >&5
a848cd7e
SC
45718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719 (exit $ac_status); } &&
bb9e79c0 45720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722 (eval $ac_try) 2>&5
45723 ac_status=$?
45724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725 (exit $ac_status); }; } &&
45726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45728 (eval $ac_try) 2>&5
45729 ac_status=$?
45730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45731 (exit $ac_status); }; }; then
45732 echo "$as_me:$LINENO: result: no" >&5
45733echo "${ECHO_T}no" >&6
45734else
45735 echo "$as_me: failed program was:" >&5
45736sed 's/^/| /' conftest.$ac_ext >&5
45737
45738echo "$as_me:$LINENO: result: yes" >&5
45739echo "${ECHO_T}yes" >&6
5ff751d6 45740 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45741fi
ac1cb8d3 45742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45743 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45744 if test "$wxUSE_OLE" = "yes" ; then
45745 cat >>confdefs.h <<\_ACEOF
45746#define wxUSE_OLE 1
f43426c1
RD
45747_ACEOF
45748
45749 cat >>confdefs.h <<\_ACEOF
45750#define wxUSE_OLE_AUTOMATION 1
45751_ACEOF
45752
45753 cat >>confdefs.h <<\_ACEOF
45754#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45755_ACEOF
45756
0b78747f 45757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45758 fi
45759 fi
45760
45761 if test "$wxUSE_DATAOBJ" = "yes" ; then
45762 cat >>confdefs.h <<\_ACEOF
45763#define wxUSE_DATAOBJ 1
45764_ACEOF
45765
45766 fi
45767 else
45768 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45769echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45770
45771 wxUSE_CLIPBOARD=no
45772 wxUSE_DRAG_AND_DROP=no
45773 wxUSE_DATAOBJ=no
45774 wxUSE_OLE=no
45775 fi
45776
45777 if test "$wxUSE_METAFILE" = "yes"; then
45778 cat >>confdefs.h <<\_ACEOF
45779#define wxUSE_METAFILE 1
45780_ACEOF
45781
45782
45783 cat >>confdefs.h <<\_ACEOF
45784#define wxUSE_ENH_METAFILE 1
45785_ACEOF
45786
45787 fi
45788fi
45789
45790if test "$wxUSE_IPC" = "yes"; then
0b78747f 45791 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45792 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45793echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45794 wxUSE_IPC=no
a848cd7e
SC
45795 fi
45796
0b78747f
MW
45797 if test "$wxUSE_IPC" = "yes"; then
45798 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45799#define wxUSE_IPC 1
45800_ACEOF
45801
0b78747f
MW
45802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45803 fi
a848cd7e
SC
45804fi
45805
eb730a0c 45806if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45807 if test "$wxUSE_MGL" = 1; then
45808 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45809echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45810 wxUSE_DATAOBJ=no
45811 else
45812 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45813#define wxUSE_DATAOBJ 1
45814_ACEOF
45815
2113bc77 45816 fi
eb730a0c
JS
45817else
45818 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45819echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45820 wxUSE_CLIPBOARD=no
45821 wxUSE_DRAG_AND_DROP=no
45822fi
45823
a848cd7e
SC
45824if test "$wxUSE_CLIPBOARD" = "yes"; then
45825 if test "$wxUSE_MGL" = 1; then
45826 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45827echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45828 wxUSE_CLIPBOARD=no
45829 fi
45830
45831 if test "$wxUSE_CLIPBOARD" = "yes"; then
45832 cat >>confdefs.h <<\_ACEOF
45833#define wxUSE_CLIPBOARD 1
45834_ACEOF
45835
a848cd7e
SC
45836 fi
45837fi
45838
45839if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45840 if test "$wxUSE_GTK" = 1; then
45841 if test "$WXGTK12" != 1; then
45842 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45843echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45844 wxUSE_DRAG_AND_DROP=no
45845 fi
45846 fi
45847
45848 if test "$wxUSE_MOTIF" = 1; then
45849 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45850echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45851 wxUSE_DRAG_AND_DROP=no
45852 fi
45853
45854 if test "$wxUSE_X11" = 1; then
45855 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45856echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45857 wxUSE_DRAG_AND_DROP=no
45858 fi
45859
45860 if test "$wxUSE_MGL" = 1; then
45861 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45862echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45863 wxUSE_DRAG_AND_DROP=no
45864 fi
45865
45866 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45867 cat >>confdefs.h <<\_ACEOF
45868#define wxUSE_DRAG_AND_DROP 1
45869_ACEOF
45870
45871 fi
45872
45873fi
45874
45875if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45877fi
45878
45879if test "$wxUSE_SPLINES" = "yes" ; then
45880 cat >>confdefs.h <<\_ACEOF
45881#define wxUSE_SPLINES 1
45882_ACEOF
45883
45884fi
45885
fbe2ca43
SN
45886if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45887 cat >>confdefs.h <<\_ACEOF
45888#define wxUSE_MOUSEWHEEL 1
45889_ACEOF
45890
45891fi
45892
a848cd7e
SC
45893
45894USES_CONTROLS=0
45895if test "$wxUSE_CONTROLS" = "yes"; then
45896 USES_CONTROLS=1
45897fi
45898
45899if test "$wxUSE_ACCEL" = "yes"; then
45900 cat >>confdefs.h <<\_ACEOF
45901#define wxUSE_ACCEL 1
45902_ACEOF
45903
45904 USES_CONTROLS=1
45905fi
45906
7067783d 45907if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45908 cat >>confdefs.h <<\_ACEOF
45909#define wxUSE_ANIMATIONCTRL 1
45910_ACEOF
45911
45912 USES_CONTROLS=1
45913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45914fi
45915
a848cd7e
SC
45916if test "$wxUSE_BUTTON" = "yes"; then
45917 cat >>confdefs.h <<\_ACEOF
45918#define wxUSE_BUTTON 1
45919_ACEOF
45920
45921 USES_CONTROLS=1
45922fi
45923
45924if test "$wxUSE_BMPBUTTON" = "yes"; then
45925 cat >>confdefs.h <<\_ACEOF
45926#define wxUSE_BMPBUTTON 1
45927_ACEOF
45928
45929 USES_CONTROLS=1
45930fi
45931
45932if test "$wxUSE_CALCTRL" = "yes"; then
45933 cat >>confdefs.h <<\_ACEOF
45934#define wxUSE_CALENDARCTRL 1
45935_ACEOF
45936
45937 USES_CONTROLS=1
45938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45939fi
45940
45941if test "$wxUSE_CARET" = "yes"; then
45942 cat >>confdefs.h <<\_ACEOF
45943#define wxUSE_CARET 1
45944_ACEOF
45945
45946 USES_CONTROLS=1
45947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45948fi
45949
bd915ace
RR
45950if test "$wxUSE_COLLPANE" = "yes"; then
45951 cat >>confdefs.h <<\_ACEOF
45952#define wxUSE_COLLPANE 1
45953_ACEOF
45954
45955 USES_CONTROLS=1
45956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45957fi
45958
a848cd7e
SC
45959if test "$wxUSE_COMBOBOX" = "yes"; then
45960 cat >>confdefs.h <<\_ACEOF
45961#define wxUSE_COMBOBOX 1
45962_ACEOF
45963
45964 USES_CONTROLS=1
45965fi
45966
a57d600f 45967if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45968 cat >>confdefs.h <<\_ACEOF
a57d600f 45969#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45970_ACEOF
45971
45972 USES_CONTROLS=1
45973fi
45974
a848cd7e
SC
45975if test "$wxUSE_CHOICE" = "yes"; then
45976 cat >>confdefs.h <<\_ACEOF
45977#define wxUSE_CHOICE 1
45978_ACEOF
45979
45980 USES_CONTROLS=1
45981fi
45982
92bbdbcd
WS
45983if test "$wxUSE_CHOICEBOOK" = "yes"; then
45984 cat >>confdefs.h <<\_ACEOF
45985#define wxUSE_CHOICEBOOK 1
45986_ACEOF
45987
45988 USES_CONTROLS=1
45989fi
45990
a848cd7e
SC
45991if test "$wxUSE_CHECKBOX" = "yes"; then
45992 cat >>confdefs.h <<\_ACEOF
45993#define wxUSE_CHECKBOX 1
45994_ACEOF
45995
45996 USES_CONTROLS=1
45997fi
45998
45999if test "$wxUSE_CHECKLST" = "yes"; then
46000 cat >>confdefs.h <<\_ACEOF
46001#define wxUSE_CHECKLISTBOX 1
46002_ACEOF
46003
46004 USES_CONTROLS=1
46005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46006fi
46007
e9263684
VZ
46008if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46009 cat >>confdefs.h <<\_ACEOF
46010#define wxUSE_COLOURPICKERCTRL 1
46011_ACEOF
46012
46013 USES_CONTROLS=1
46014fi
46015
da98e9be
VZ
46016if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46017 cat >>confdefs.h <<\_ACEOF
46018#define wxUSE_DATEPICKCTRL 1
46019_ACEOF
46020
46021 USES_CONTROLS=1
46022fi
46023
e9263684
VZ
46024if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46025 cat >>confdefs.h <<\_ACEOF
46026#define wxUSE_DIRPICKERCTRL 1
46027_ACEOF
46028
46029 USES_CONTROLS=1
46030fi
46031
46032if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46033 cat >>confdefs.h <<\_ACEOF
46034#define wxUSE_FILEPICKERCTRL 1
46035_ACEOF
46036
46037 USES_CONTROLS=1
46038fi
46039
46040if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46041 cat >>confdefs.h <<\_ACEOF
46042#define wxUSE_FONTPICKERCTRL 1
46043_ACEOF
46044
46045 USES_CONTROLS=1
46046fi
46047
a848cd7e
SC
46048if test "$wxUSE_DISPLAY" = "yes"; then
46049 cat >>confdefs.h <<\_ACEOF
46050#define wxUSE_DISPLAY 1
46051_ACEOF
46052
0b78747f 46053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
46054fi
46055
88bbc332
RR
46056if test "$wxUSE_DETECT_SM" = "yes"; then
46057 cat >>confdefs.h <<\_ACEOF
46058#define wxUSE_DETECT_SM 1
46059_ACEOF
46060
46061fi
46062
a848cd7e
SC
46063if test "$wxUSE_GAUGE" = "yes"; then
46064 cat >>confdefs.h <<\_ACEOF
46065#define wxUSE_GAUGE 1
46066_ACEOF
46067
46068 USES_CONTROLS=1
46069fi
46070
46071if test "$wxUSE_GRID" = "yes"; then
46072 cat >>confdefs.h <<\_ACEOF
46073#define wxUSE_GRID 1
46074_ACEOF
46075
46076 USES_CONTROLS=1
46077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46078fi
46079
6954625c
VZ
46080if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46081 cat >>confdefs.h <<\_ACEOF
46082#define wxUSE_HYPERLINKCTRL 1
46083_ACEOF
46084
46085 USES_CONTROLS=1
46086fi
46087
95a46303
RR
46088if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46089 cat >>confdefs.h <<\_ACEOF
46090#define wxUSE_BITMAPCOMBOBOX 1
46091_ACEOF
46092
46093 USES_CONTROLS=1
46094fi
46095
20e34ecc
RR
46096if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46097 cat >>confdefs.h <<\_ACEOF
46098#define wxUSE_DATAVIEWCTRL 1
46099_ACEOF
46100
46101 USES_CONTROLS=1
46102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46103fi
46104
a848cd7e
SC
46105if test "$wxUSE_IMAGLIST" = "yes"; then
46106 cat >>confdefs.h <<\_ACEOF
46107#define wxUSE_IMAGLIST 1
46108_ACEOF
46109
46110fi
46111
46112if test "$wxUSE_LISTBOOK" = "yes"; then
46113 cat >>confdefs.h <<\_ACEOF
46114#define wxUSE_LISTBOOK 1
46115_ACEOF
46116
46117 USES_CONTROLS=1
46118fi
46119
46120if test "$wxUSE_LISTBOX" = "yes"; then
46121 cat >>confdefs.h <<\_ACEOF
46122#define wxUSE_LISTBOX 1
46123_ACEOF
46124
46125 USES_CONTROLS=1
0b78747f 46126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46127fi
46128
46129if test "$wxUSE_LISTCTRL" = "yes"; then
46130 if test "$wxUSE_IMAGLIST" = "yes"; then
46131 cat >>confdefs.h <<\_ACEOF
46132#define wxUSE_LISTCTRL 1
46133_ACEOF
46134
46135 USES_CONTROLS=1
46136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46137 else
46138 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46139echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46140 fi
46141fi
46142
46143if test "$wxUSE_NOTEBOOK" = "yes"; then
46144 cat >>confdefs.h <<\_ACEOF
46145#define wxUSE_NOTEBOOK 1
46146_ACEOF
46147
46148 USES_CONTROLS=1
46149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46150fi
46151
a57d600f 46152if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46153 cat >>confdefs.h <<\_ACEOF
a57d600f 46154#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46155_ACEOF
46156
46157 USES_CONTROLS=1
46158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46159fi
46160
a848cd7e
SC
46161
46162if test "$wxUSE_RADIOBOX" = "yes"; then
46163 cat >>confdefs.h <<\_ACEOF
46164#define wxUSE_RADIOBOX 1
46165_ACEOF
46166
46167 USES_CONTROLS=1
46168fi
46169
46170if test "$wxUSE_RADIOBTN" = "yes"; then
46171 cat >>confdefs.h <<\_ACEOF
46172#define wxUSE_RADIOBTN 1
46173_ACEOF
46174
46175 USES_CONTROLS=1
46176fi
46177
46178if test "$wxUSE_SASH" = "yes"; then
46179 cat >>confdefs.h <<\_ACEOF
46180#define wxUSE_SASH 1
46181_ACEOF
46182
46183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46184fi
46185
46186if test "$wxUSE_SCROLLBAR" = "yes"; then
46187 cat >>confdefs.h <<\_ACEOF
46188#define wxUSE_SCROLLBAR 1
46189_ACEOF
46190
46191 USES_CONTROLS=1
46192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46193fi
46194
46195if test "$wxUSE_SLIDER" = "yes"; then
46196 cat >>confdefs.h <<\_ACEOF
46197#define wxUSE_SLIDER 1
46198_ACEOF
46199
46200 USES_CONTROLS=1
46201fi
46202
46203if test "$wxUSE_SPINBTN" = "yes"; then
46204 cat >>confdefs.h <<\_ACEOF
46205#define wxUSE_SPINBTN 1
46206_ACEOF
46207
46208 USES_CONTROLS=1
46209fi
46210
46211if test "$wxUSE_SPINCTRL" = "yes"; then
46212 cat >>confdefs.h <<\_ACEOF
46213#define wxUSE_SPINCTRL 1
46214_ACEOF
46215
46216 USES_CONTROLS=1
46217fi
46218
46219if test "$wxUSE_SPLITTER" = "yes"; then
46220 cat >>confdefs.h <<\_ACEOF
46221#define wxUSE_SPLITTER 1
46222_ACEOF
46223
46224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46225fi
46226
46227if test "$wxUSE_STATBMP" = "yes"; then
46228 cat >>confdefs.h <<\_ACEOF
46229#define wxUSE_STATBMP 1
46230_ACEOF
46231
46232 USES_CONTROLS=1
46233fi
46234
46235if test "$wxUSE_STATBOX" = "yes"; then
46236 cat >>confdefs.h <<\_ACEOF
46237#define wxUSE_STATBOX 1
46238_ACEOF
46239
46240 USES_CONTROLS=1
46241fi
46242
46243if test "$wxUSE_STATTEXT" = "yes"; then
46244 cat >>confdefs.h <<\_ACEOF
46245#define wxUSE_STATTEXT 1
46246_ACEOF
46247
46248 USES_CONTROLS=1
46249fi
46250
46251if test "$wxUSE_STATLINE" = "yes"; then
46252 cat >>confdefs.h <<\_ACEOF
46253#define wxUSE_STATLINE 1
46254_ACEOF
46255
46256 USES_CONTROLS=1
46257fi
46258
46259if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46260 cat >>confdefs.h <<\_ACEOF
46261#define wxUSE_NATIVE_STATUSBAR 1
46262_ACEOF
46263
a848cd7e
SC
46264 cat >>confdefs.h <<\_ACEOF
46265#define wxUSE_STATUSBAR 1
46266_ACEOF
46267
46268 USES_CONTROLS=1
46269
46270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46271fi
46272
f10e38c4 46273if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46274 cat >>confdefs.h <<\_ACEOF
46275#define wxUSE_TAB_DIALOG 1
46276_ACEOF
46277
a848cd7e
SC
46278fi
46279
46280if test "$wxUSE_TEXTCTRL" = "yes"; then
46281 cat >>confdefs.h <<\_ACEOF
46282#define wxUSE_TEXTCTRL 1
46283_ACEOF
46284
46285 USES_CONTROLS=1
46286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46287fi
46288
46289if test "$wxUSE_TOGGLEBTN" = "yes"; then
46290 if test "$wxUSE_COCOA" = 1 ; then
46291 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46292echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46293 wxUSE_TOGGLEBTN=no
46294 fi
a848cd7e
SC
46295
46296 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46297 cat >>confdefs.h <<\_ACEOF
46298#define wxUSE_TOGGLEBTN 1
46299_ACEOF
46300
46301 USES_CONTROLS=1
46302 fi
46303fi
46304
a848cd7e
SC
46305if test "$wxUSE_TOOLBAR" = "yes"; then
46306 cat >>confdefs.h <<\_ACEOF
46307#define wxUSE_TOOLBAR 1
46308_ACEOF
46309
46310 USES_CONTROLS=1
46311
452b6243
VS
46312 if test "$wxUSE_UNIVERSAL" = "yes"; then
46313 wxUSE_TOOLBAR_NATIVE="no"
46314 else
46315 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46316 cat >>confdefs.h <<\_ACEOF
46317#define wxUSE_TOOLBAR_NATIVE 1
46318_ACEOF
46319
a848cd7e
SC
46320 fi
46321
46322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46323fi
46324
46325if test "$wxUSE_TOOLTIPS" = "yes"; then
46326 if test "$wxUSE_MOTIF" = 1; then
46327 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46328echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46329 else
46330 if test "$wxUSE_UNIVERSAL" = "yes"; then
46331 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46332echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46333 else
46334 cat >>confdefs.h <<\_ACEOF
46335#define wxUSE_TOOLTIPS 1
46336_ACEOF
46337
46338 fi
46339 fi
46340fi
46341
0093c2fc
VZ
46342if test "$wxUSE_TREEBOOK" = "yes"; then
46343 cat >>confdefs.h <<\_ACEOF
46344#define wxUSE_TREEBOOK 1
46345_ACEOF
46346
46347 USES_CONTROLS=1
46348fi
46349
5ec3bc43
JS
46350if test "$wxUSE_TOOLBOOK" = "yes"; then
46351 cat >>confdefs.h <<\_ACEOF
46352#define wxUSE_TOOLBOOK 1
46353_ACEOF
46354
46355 USES_CONTROLS=1
46356fi
46357
a848cd7e
SC
46358if test "$wxUSE_TREECTRL" = "yes"; then
46359 if test "$wxUSE_IMAGLIST" = "yes"; then
46360 cat >>confdefs.h <<\_ACEOF
46361#define wxUSE_TREECTRL 1
46362_ACEOF
46363
46364 USES_CONTROLS=1
46365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46366 else
46367 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46368echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46369 fi
46370fi
46371
46372if test "$wxUSE_POPUPWIN" = "yes"; then
46373 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46374 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46375echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46376 else
46377 if test "$wxUSE_PM" = 1; then
46378 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46379echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46380 else
46381 cat >>confdefs.h <<\_ACEOF
46382#define wxUSE_POPUPWIN 1
46383_ACEOF
46384
0b78747f 46385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46386
46387 USES_CONTROLS=1
46388 fi
46389 fi
46390fi
46391
0dcd06dd 46392if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
46393 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46394 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
46395echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
46396 else
46397 cat >>confdefs.h <<\_ACEOF
46398#define wxUSE_DIALUP_MANAGER 1
46399_ACEOF
46400
46401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46402 fi
46403fi
46404
a848cd7e
SC
46405if test "$wxUSE_TIPWINDOW" = "yes"; then
46406 if test "$wxUSE_PM" = 1; then
46407 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46408echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46409 else
46410 cat >>confdefs.h <<\_ACEOF
46411#define wxUSE_TIPWINDOW 1
46412_ACEOF
46413
46414 fi
46415fi
46416
46417if test "$USES_CONTROLS" = 1; then
46418 cat >>confdefs.h <<\_ACEOF
46419#define wxUSE_CONTROLS 1
46420_ACEOF
46421
46422fi
46423
46424
46425if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46426 cat >>confdefs.h <<\_ACEOF
46427#define wxUSE_ACCESSIBILITY 1
46428_ACEOF
46429
46430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46431fi
46432
38b4a946
VZ
46433if test "$wxUSE_DC_CACHEING" = "yes"; then
46434 cat >>confdefs.h <<\_ACEOF
46435#define wxUSE_DC_CACHEING 1
46436_ACEOF
46437
46438fi
46439
a848cd7e
SC
46440if test "$wxUSE_DRAGIMAGE" = "yes"; then
46441 cat >>confdefs.h <<\_ACEOF
46442#define wxUSE_DRAGIMAGE 1
46443_ACEOF
46444
46445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46446fi
46447
46448if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46449 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46450 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46451echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46452 else
46453 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46454#define wxUSE_EXCEPTIONS 1
46455_ACEOF
46456
07bea8f0
VS
46457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46458 fi
a848cd7e
SC
46459fi
46460
46461USE_HTML=0
46462if test "$wxUSE_HTML" = "yes"; then
46463 cat >>confdefs.h <<\_ACEOF
46464#define wxUSE_HTML 1
46465_ACEOF
46466
46467 USE_HTML=1
46468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46469 if test "$wxUSE_MAC" = 1; then
46470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46471 fi
a848cd7e 46472fi
646b6ec1 46473if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46474 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46475 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46476 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46477 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46478echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46479if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46480 echo $ECHO_N "(cached) $ECHO_C" >&6
46481else
46482 cat >conftest.$ac_ext <<_ACEOF
46483/* confdefs.h. */
46484_ACEOF
46485cat confdefs.h >>conftest.$ac_ext
46486cat >>conftest.$ac_ext <<_ACEOF
46487/* end confdefs.h. */
46488#include <Carbon/Carbon.h>
46489
46490#include <WebKit/HIWebView.h>
46491_ACEOF
46492rm -f conftest.$ac_objext
46493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46494 (eval $ac_compile) 2>conftest.er1
46495 ac_status=$?
46496 grep -v '^ *+' conftest.er1 >conftest.err
46497 rm -f conftest.er1
46498 cat conftest.err >&5
46499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46500 (exit $ac_status); } &&
bb9e79c0 46501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46503 (eval $ac_try) 2>&5
46504 ac_status=$?
46505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506 (exit $ac_status); }; } &&
46507 { ac_try='test -s conftest.$ac_objext'
46508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46509 (eval $ac_try) 2>&5
46510 ac_status=$?
46511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46512 (exit $ac_status); }; }; then
46513 ac_cv_header_WebKit_HIWebView_h=yes
46514else
46515 echo "$as_me: failed program was:" >&5
46516sed 's/^/| /' conftest.$ac_ext >&5
46517
46518ac_cv_header_WebKit_HIWebView_h=no
46519fi
46520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46521fi
46522echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46523echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46524if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46525
46526 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46527#define wxUSE_WEBKIT 1
46528_ACEOF
46529
07bea8f0
VS
46530 WEBKIT_LINK="-framework WebKit"
46531
46532else
46533
46534 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46535echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46536 wxUSE_WEBKIT=no
46537
646b6ec1
VS
46538fi
46539
07bea8f0
VS
46540
46541 CPPFLAGS="$old_CPPFLAGS"
46542 elif test "$wxUSE_COCOA" = 1; then
46543 cat >>confdefs.h <<\_ACEOF
46544#define wxUSE_WEBKIT 1
46545_ACEOF
46546
46547 else
46548 wxUSE_WEBKIT=no
46549 fi
46550fi
46551
9a8f0513
VS
46552USE_XRC=0
46553if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46554 if test "$wxUSE_XML" != "yes"; then
46555 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46556echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46557 wxUSE_XRC=no
46558 else
46559 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46560#define wxUSE_XRC 1
46561_ACEOF
46562
d2ebf0b7
VS
46563 USE_XRC=1
46564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46565 fi
9a8f0513 46566fi
07bea8f0 46567
3f60522a
JS
46568USE_AUI=0
46569if test "$wxUSE_AUI" = "yes"; then
46570 cat >>confdefs.h <<\_ACEOF
46571#define wxUSE_AUI 1
46572_ACEOF
46573
46574 USE_AUI=1
46575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46576fi
46577
a848cd7e
SC
46578if test "$wxUSE_MENUS" = "yes"; then
46579 cat >>confdefs.h <<\_ACEOF
46580#define wxUSE_MENUS 1
46581_ACEOF
46582
46583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46584fi
46585
46586if test "$wxUSE_METAFILE" = "yes"; then
46587 cat >>confdefs.h <<\_ACEOF
46588#define wxUSE_METAFILE 1
46589_ACEOF
46590
46591fi
46592
46593if test "$wxUSE_MIMETYPE" = "yes"; then
46594 cat >>confdefs.h <<\_ACEOF
46595#define wxUSE_MIMETYPE 1
46596_ACEOF
46597
46598fi
46599
46600if test "$wxUSE_MINIFRAME" = "yes"; then
46601 cat >>confdefs.h <<\_ACEOF
46602#define wxUSE_MINIFRAME 1
46603_ACEOF
46604
46605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46606fi
46607
46608if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46609 cat >>confdefs.h <<\_ACEOF
46610#define wxUSE_SYSTEM_OPTIONS 1
46611_ACEOF
46612
46613 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46614 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46616 fi
46617fi
46618
46619
46620if test "$wxUSE_VALIDATORS" = "yes"; then
46621 cat >>confdefs.h <<\_ACEOF
46622#define wxUSE_VALIDATORS 1
46623_ACEOF
46624
46625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46626fi
46627
46628if test "$wxUSE_PALETTE" = "yes" ; then
46629 cat >>confdefs.h <<\_ACEOF
46630#define wxUSE_PALETTE 1
46631_ACEOF
46632
46633fi
46634
46635if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46636 LIBS=" -lunicows $LIBS"
46637fi
46638
91dea314
MW
46639USE_RICHTEXT=0
46640if test "$wxUSE_RICHTEXT" = "yes"; then
46641 cat >>confdefs.h <<\_ACEOF
46642#define wxUSE_RICHTEXT 1
46643_ACEOF
46644
46645 USE_RICHTEXT=1
46646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46647fi
46648
a848cd7e
SC
46649
46650if test "$wxUSE_IMAGE" = "yes" ; then
46651 cat >>confdefs.h <<\_ACEOF
46652#define wxUSE_IMAGE 1
46653_ACEOF
46654
46655
46656 if test "$wxUSE_GIF" = "yes" ; then
46657 cat >>confdefs.h <<\_ACEOF
46658#define wxUSE_GIF 1
46659_ACEOF
46660
46661 fi
46662
46663 if test "$wxUSE_PCX" = "yes" ; then
46664 cat >>confdefs.h <<\_ACEOF
46665#define wxUSE_PCX 1
46666_ACEOF
46667
46668 fi
46669
bb9e79c0
VZ
46670 if test "$wxUSE_TGA" = "yes" ; then
46671 cat >>confdefs.h <<\_ACEOF
46672#define wxUSE_TGA 1
46673_ACEOF
46674
46675 fi
46676
a848cd7e
SC
46677 if test "$wxUSE_IFF" = "yes" ; then
46678 cat >>confdefs.h <<\_ACEOF
46679#define wxUSE_IFF 1
46680_ACEOF
46681
46682 fi
46683
46684 if test "$wxUSE_PNM" = "yes" ; then
46685 cat >>confdefs.h <<\_ACEOF
46686#define wxUSE_PNM 1
46687_ACEOF
46688
46689 fi
46690
46691 if test "$wxUSE_XPM" = "yes" ; then
46692 cat >>confdefs.h <<\_ACEOF
46693#define wxUSE_XPM 1
46694_ACEOF
46695
46696 fi
46697
46698 if test "$wxUSE_ICO_CUR" = "yes" ; then
46699 cat >>confdefs.h <<\_ACEOF
46700#define wxUSE_ICO_CUR 1
46701_ACEOF
46702
46703 fi
46704fi
46705
46706
319c5ed4
VZ
46707if test "$wxUSE_ABOUTDLG" = "yes"; then
46708 cat >>confdefs.h <<\_ACEOF
46709#define wxUSE_ABOUTDLG 1
46710_ACEOF
46711
46712fi
46713
a848cd7e
SC
46714if test "$wxUSE_CHOICEDLG" = "yes"; then
46715 cat >>confdefs.h <<\_ACEOF
46716#define wxUSE_CHOICEDLG 1
46717_ACEOF
46718
46719fi
46720
46721if test "$wxUSE_COLOURDLG" = "yes"; then
46722 cat >>confdefs.h <<\_ACEOF
46723#define wxUSE_COLOURDLG 1
46724_ACEOF
46725
46726fi
46727
46728if test "$wxUSE_FILEDLG" = "yes"; then
46729 cat >>confdefs.h <<\_ACEOF
46730#define wxUSE_FILEDLG 1
46731_ACEOF
46732
46733fi
46734
46735if test "$wxUSE_FINDREPLDLG" = "yes"; then
46736 cat >>confdefs.h <<\_ACEOF
46737#define wxUSE_FINDREPLDLG 1
46738_ACEOF
46739
46740fi
46741
46742if test "$wxUSE_FONTDLG" = "yes"; then
46743 cat >>confdefs.h <<\_ACEOF
46744#define wxUSE_FONTDLG 1
46745_ACEOF
46746
46747fi
46748
46749if test "$wxUSE_DIRDLG" = "yes"; then
46750 if test "$wxUSE_TREECTRL" != "yes"; then
46751 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46752echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46753 else
46754 cat >>confdefs.h <<\_ACEOF
46755#define wxUSE_DIRDLG 1
46756_ACEOF
46757
46758 fi
46759fi
46760
46761if test "$wxUSE_MSGDLG" = "yes"; then
46762 cat >>confdefs.h <<\_ACEOF
46763#define wxUSE_MSGDLG 1
46764_ACEOF
46765
46766fi
46767
46768if test "$wxUSE_NUMBERDLG" = "yes"; then
46769 cat >>confdefs.h <<\_ACEOF
46770#define wxUSE_NUMBERDLG 1
46771_ACEOF
46772
46773fi
46774
46775if test "$wxUSE_PROGRESSDLG" = "yes"; then
46776 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46777 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46778echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46779 else
46780 cat >>confdefs.h <<\_ACEOF
46781#define wxUSE_PROGRESSDLG 1
46782_ACEOF
46783
46784 fi
46785fi
46786
46787if test "$wxUSE_SPLASH" = "yes"; then
46788 cat >>confdefs.h <<\_ACEOF
46789#define wxUSE_SPLASH 1
46790_ACEOF
46791
2057db16 46792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46793fi
46794
46795if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46796 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46797 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46798echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46799 else
46800 cat >>confdefs.h <<\_ACEOF
46801#define wxUSE_STARTUP_TIPS 1
46802_ACEOF
46803
46804 fi
46805fi
46806
46807if test "$wxUSE_TEXTDLG" = "yes"; then
46808 cat >>confdefs.h <<\_ACEOF
46809#define wxUSE_TEXTDLG 1
46810_ACEOF
46811
46812fi
46813
46814if test "$wxUSE_WIZARDDLG" = "yes"; then
46815 cat >>confdefs.h <<\_ACEOF
46816#define wxUSE_WIZARDDLG 1
46817_ACEOF
46818
46819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46820fi
46821
46822
64b75e64
RD
46823if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46824 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46825 cat >>confdefs.h <<\_ACEOF
46826#define wxUSE_GRAPHICS_CONTEXT 1
46827_ACEOF
46828
46829 elif test "$wxUSE_GTK" != 1; then
46830 cat >>confdefs.h <<\_ACEOF
46831#define wxUSE_GRAPHICS_CONTEXT 1
46832_ACEOF
46833
46834 else
46835
46836pkg_failed=no
46837echo "$as_me:$LINENO: checking for CAIRO" >&5
46838echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46839
46840if test -n "$PKG_CONFIG"; then
46841 if test -n "$CAIRO_CFLAGS"; then
46842 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46843 else
46844 if test -n "$PKG_CONFIG" && \
46845 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46846 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46847 ac_status=$?
46848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46849 (exit $ac_status); }; then
46850 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46851else
46852 pkg_failed=yes
46853fi
46854 fi
46855else
46856 pkg_failed=untried
46857fi
46858if test -n "$PKG_CONFIG"; then
46859 if test -n "$CAIRO_LIBS"; then
46860 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46861 else
46862 if test -n "$PKG_CONFIG" && \
46863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46864 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46865 ac_status=$?
46866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867 (exit $ac_status); }; then
46868 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46869else
46870 pkg_failed=yes
46871fi
46872 fi
46873else
46874 pkg_failed=untried
46875fi
46876
46877
46878
46879if test $pkg_failed = yes; then
46880
46881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46882 _pkg_short_errors_supported=yes
46883else
46884 _pkg_short_errors_supported=no
46885fi
46886 if test $_pkg_short_errors_supported = yes; then
46887 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46888 else
46889 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46890 fi
46891 # Put the nasty error message in config.log where it belongs
46892 echo "$CAIRO_PKG_ERRORS" >&5
46893
ec3edcc9 46894 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46895echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46896
64b75e64 46897elif test $pkg_failed = untried; then
ec3edcc9 46898 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46899echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46900
64b75e64
RD
46901else
46902 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46903 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46904 echo "$as_me:$LINENO: result: yes" >&5
46905echo "${ECHO_T}yes" >&6
ec3edcc9 46906 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
46907#define wxUSE_GRAPHICS_CONTEXT 1
46908_ACEOF
46909
64b75e64
RD
46910fi
46911 fi
46912fi
46913
46914
f10e38c4
VZ
46915USE_MEDIA=0
46916
ce756cb0 46917if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46918 USE_MEDIA=1
46919
ce756cb0 46920 if test "$wxUSE_GTK" = 1; then
c9a66001 46921 wxUSE_GSTREAMER="no"
ce756cb0 46922
f10e38c4
VZ
46923 GST_VERSION_MAJOR=0
46924 GST_VERSION_MINOR=10
2f6c5bb5 46925 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46926
46927 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46928
3ecd9f92
MW
46929pkg_failed=no
46930echo "$as_me:$LINENO: checking for GST" >&5
46931echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46932
3ecd9f92
MW
46933if test -n "$PKG_CONFIG"; then
46934 if test -n "$GST_CFLAGS"; then
46935 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46936 else
46937 if test -n "$PKG_CONFIG" && \
46938 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46939 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46940 ac_status=$?
46941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942 (exit $ac_status); }; then
46943 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46944else
3ecd9f92
MW
46945 pkg_failed=yes
46946fi
46947 fi
46948else
46949 pkg_failed=untried
dae87f93 46950fi
dae87f93 46951if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46952 if test -n "$GST_LIBS"; then
46953 pkg_cv_GST_LIBS="$GST_LIBS"
46954 else
46955 if test -n "$PKG_CONFIG" && \
46956 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46957 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46958 ac_status=$?
46959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46960 (exit $ac_status); }; then
46961 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46962else
3ecd9f92
MW
46963 pkg_failed=yes
46964fi
46965 fi
46966else
46967 pkg_failed=untried
dae87f93
RN
46968fi
46969
dae87f93 46970
2f6c5bb5 46971
3ecd9f92 46972if test $pkg_failed = yes; then
ce756cb0 46973
3ecd9f92
MW
46974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46975 _pkg_short_errors_supported=yes
46976else
46977 _pkg_short_errors_supported=no
46978fi
46979 if test $_pkg_short_errors_supported = yes; then
46980 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46981 else
46982 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46983 fi
3ecd9f92
MW
46984 # Put the nasty error message in config.log where it belongs
46985 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46986
46987
3ecd9f92
MW
46988 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46989echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46990 GST_VERSION_MINOR=8
dae87f93 46991
ce756cb0 46992
3ecd9f92 46993elif test $pkg_failed = untried; then
dae87f93 46994
2f6c5bb5
VZ
46995 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46996echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46997 GST_VERSION_MINOR=8
dae87f93 46998
2f6c5bb5 46999
3ecd9f92
MW
47000else
47001 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47002 GST_LIBS=$pkg_cv_GST_LIBS
47003 echo "$as_me:$LINENO: result: yes" >&5
47004echo "${ECHO_T}yes" >&6
47005
47006 wxUSE_GSTREAMER="yes"
47007 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47008
3ecd9f92 47009fi
2f6c5bb5
VZ
47010 else
47011 GST_VERSION_MINOR=8
f10e38c4 47012 fi
dae87f93 47013
2f6c5bb5
VZ
47014 if test $GST_VERSION_MINOR = "8"; then
47015 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47016
3ecd9f92
MW
47017pkg_failed=no
47018echo "$as_me:$LINENO: checking for GST" >&5
47019echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 47020
3ecd9f92
MW
47021if test -n "$PKG_CONFIG"; then
47022 if test -n "$GST_CFLAGS"; then
47023 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47024 else
47025 if test -n "$PKG_CONFIG" && \
47026 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47027 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47028 ac_status=$?
47029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47030 (exit $ac_status); }; then
47031 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47032else
3ecd9f92
MW
47033 pkg_failed=yes
47034fi
47035 fi
47036else
47037 pkg_failed=untried
dae87f93 47038fi
f10e38c4 47039if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47040 if test -n "$GST_LIBS"; then
47041 pkg_cv_GST_LIBS="$GST_LIBS"
47042 else
47043 if test -n "$PKG_CONFIG" && \
47044 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47045 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47046 ac_status=$?
47047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47048 (exit $ac_status); }; then
47049 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47050else
3ecd9f92
MW
47051 pkg_failed=yes
47052fi
47053 fi
47054else
47055 pkg_failed=untried
dae87f93
RN
47056fi
47057
ce756cb0 47058
2f6c5bb5 47059
3ecd9f92 47060if test $pkg_failed = yes; then
dae87f93 47061
3ecd9f92
MW
47062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47063 _pkg_short_errors_supported=yes
47064else
47065 _pkg_short_errors_supported=no
47066fi
47067 if test $_pkg_short_errors_supported = yes; then
47068 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47069 else
47070 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47071 fi
3ecd9f92
MW
47072 # Put the nasty error message in config.log where it belongs
47073 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47074
47075
3ecd9f92
MW
47076 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47077echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47078
3ecd9f92 47079elif test $pkg_failed = untried; then
ce756cb0 47080
2f6c5bb5
VZ
47081 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47082echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47083
3ecd9f92
MW
47084else
47085 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47086 GST_LIBS=$pkg_cv_GST_LIBS
47087 echo "$as_me:$LINENO: result: yes" >&5
47088echo "${ECHO_T}yes" >&6
47089 wxUSE_GSTREAMER="yes"
47090fi
dae87f93 47091 fi
ce756cb0 47092
f10e38c4 47093
dae87f93 47094 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47095 case "${host}" in
47096 *-*-solaris2* )
47097 if "$GCC" = yes; then
47098 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47099 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47100 fi
47101 esac
47102
47103 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47104 LIBS="$GST_LIBS $LIBS"
47105
dae87f93 47106 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47107#define wxUSE_GSTREAMER 1
47108_ACEOF
47109
2f6c5bb5
VZ
47110 else
47111 USE_MEDIA=0
ce756cb0
RN
47112 fi
47113 fi
2f6c5bb5
VZ
47114
47115 if test $USE_MEDIA = 1; then
47116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47117 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47118#define wxUSE_MEDIACTRL 1
47119_ACEOF
47120
2f6c5bb5 47121 fi
ce756cb0
RN
47122fi
47123
47124
a848cd7e
SC
47125if test "$cross_compiling" = "yes"; then
47126 OSINFO="\"$host\""
47127else
47128 OSINFO=`uname -s -r -m`
47129 OSINFO="\"$OSINFO\""
47130fi
47131
47132cat >>confdefs.h <<_ACEOF
47133#define WXWIN_OS_DESCRIPTION $OSINFO
47134_ACEOF
47135
47136
47137
47138if test "x$prefix" != "xNONE"; then
47139 wxPREFIX=$prefix
47140else
47141 wxPREFIX=$ac_default_prefix
47142fi
47143
47144cat >>confdefs.h <<_ACEOF
47145#define wxINSTALL_PREFIX "$wxPREFIX"
47146_ACEOF
47147
47148
a848cd7e
SC
47149
47150
47151CORE_BASE_LIBS="net base"
47152CORE_GUI_LIBS="adv core"
47153
47154if test "$wxUSE_XML" = "yes" ; then
47155 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47156fi
47157if test "$wxUSE_ODBC" != "no" ; then
47158 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47159 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47160fi
47161if test "$wxUSE_HTML" = "yes" ; then
47162 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47163fi
61639efb
VZ
47164if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47165 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47166fi
9a8f0513
VS
47167if test "$wxUSE_XRC" = "yes" ; then
47168 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47169fi
3f60522a
JS
47170if test "$wxUSE_AUI" = "yes" ; then
47171 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47172fi
a848cd7e
SC
47173
47174if test "$wxUSE_GUI" != "yes"; then
47175 CORE_GUI_LIBS=""
47176fi
47177
47178
47179
47180
47181
5d7b7554
VZ
47182ac_ext=c
47183ac_cpp='$CPP $CPPFLAGS'
47184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47186ac_compiler_gnu=$ac_cv_c_compiler_gnu
47187
a848cd7e
SC
47188
47189
a848cd7e 47190if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47191 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47192 if test "$USE_DARWIN" = 1; then
47193 LDFLAGS="$LDFLAGS -framework QuickTime"
47194 else
47195 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47196 fi
07bea8f0 47197 fi
5dcf30a0 47198 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47199 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47200 else
47201 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47202 fi
a848cd7e
SC
47203fi
47204if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47205 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47206 if test "$wxUSE_MEDIACTRL" = "yes"; then
47207 LDFLAGS="$LDFLAGS -framework QuickTime"
47208 fi
a848cd7e 47209fi
19b27e78
MW
47210if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47211 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47212fi
a848cd7e 47213
a848cd7e
SC
47214LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47215
a848cd7e
SC
47216if test "$wxUSE_GUI" = "yes"; then
47217
47218
8bce5cda
MW
47219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47220 dynamic erase event exec font image minimal mobile \
47221 mobile/wxedit mobile/styles propsize render \
9e39d889 47222 rotate shaped vscroll widgets"
a848cd7e
SC
47223
47224 if test "$wxUSE_MONOLITHIC" != "yes"; then
47225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47226 fi
0b78747f 47227 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47229 if test "$wxUSE_UNIVERSAL" != "yes"; then
47230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47231 fi
47232 fi
47233 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47235 fi
a848cd7e
SC
47236else
47237 SAMPLES_SUBDIRS="console"
47238fi
47239
47240
48f625bc 47241if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47242 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47243elif test "$GCC" = yes ; then
47244 CWARNINGS="-Wall -Wundef"
47245fi
47246
48f625bc 47247if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47248 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47249elif test "$GXX" = yes ; then
47250 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47251fi
a848cd7e 47252
a848cd7e 47253
5ff751d6
VZ
47254WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47255WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47256
47257
c92ad099 47258CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 47259 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47260 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47261 $CPPFLAGS `
5ff751d6 47262
8aeeb05c 47263C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47264CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47265CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47266
47267WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47268
a848cd7e 47269
95986553
DE
47270if test "x$MWCC" = "xyes"; then
47271
47272 CC="$CC -cwd source -I-"
47273 CXX="$CXX -cwd source -I-"
47274fi
47275
a848cd7e 47276
0c3c69fc 47277LIBS=`echo $LIBS`
a848cd7e
SC
47278EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47279EXTRALIBS_XML="$EXPAT_LINK"
47280EXTRALIBS_HTML="$MSPACK_LINK"
47281EXTRALIBS_ODBC="$ODBC_LINK"
47282if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47283 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47284fi
47285if test "$wxUSE_OPENGL" = "yes"; then
47286 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47287fi
47288
8aeeb05c 47289LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47290
5ff751d6 47291WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47292
47293if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47294 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47295fi
47296if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47297 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47298fi
47299if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47300 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47301fi
47302if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47303 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47304fi
47305if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47306 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47307fi
47308if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47309 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47310fi
47311if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47312 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47313fi
47314
47315for i in $wxconfig_3rdparty ; do
5ff751d6 47316 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47317done
47318
47319
47320if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47321 WXUNIV=1
4353a8df
VZ
47322
47323 case "$wxUNIV_THEMES" in
47324 ''|all)
47325 cat >>confdefs.h <<\_ACEOF
47326#define wxUSE_ALL_THEMES 1
47327_ACEOF
47328
47329 ;;
47330
47331 *)
47332 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47333 cat >>confdefs.h <<_ACEOF
47334#define wxUSE_THEME_$t 1
47335_ACEOF
47336
47337 done
47338 esac
a848cd7e
SC
47339else
47340 WXUNIV=0
47341fi
47342
47343
47344
47345
47346
47347
47348
47349
47350
47351if test $wxUSE_MONOLITHIC = "yes" ; then
47352 MONOLITHIC=1
47353else
47354 MONOLITHIC=0
47355fi
47356
47357if test $wxUSE_PLUGINS = "yes" ; then
47358 USE_PLUGINS=1
47359else
47360 USE_PLUGINS=0
47361fi
47362
47363if test $wxUSE_ODBC != "no" ; then
47364 USE_ODBC=1
47365else
47366 USE_ODBC=0
47367fi
47368
16358932
VZ
47369if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47370 USE_QA=1
47371else
47372 USE_QA=0
47373fi
47374
a848cd7e
SC
47375if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47376 OFFICIAL_BUILD=1
47377else
47378 OFFICIAL_BUILD=0
47379fi
47380
47381
47382
47383
47384
47385
47386
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
ceec2216 47399
d1c38808 47400
3565d135 47401
2b850ae1 47402
a848cd7e
SC
47403
47404
47405TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47406
47407
47408
47409
47410
47411
47412
47413
4d4ff94c
VZ
47414case "$TOOLKIT" in
47415 GTK)
c2e9ada4 47416 TOOLKIT_DESC="GTK+"
4d4ff94c 47417 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47418 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47419 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47420 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47421 fi
47422 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47423 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47424 fi
47425 if test "$wxUSE_LIBHILDON" = "yes"; then
47426 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47427 fi
47428
47429 if test "$TOOLKIT_EXTRA" != ""; then
47430 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47431 fi
4d4ff94c 47432 fi
9a8f0513 47433 ;;
4d4ff94c 47434
c2e9ada4
VZ
47435 ?*)
47436 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47437 ;;
47438
4d4ff94c 47439 *)
c2e9ada4 47440 TOOLKIT_DESC="base only"
9a8f0513 47441 ;;
4d4ff94c 47442esac
a848cd7e 47443
fb00f58d
JS
47444if test "$wxUSE_WINE" = "yes"; then
47445 BAKEFILE_FORCE_PLATFORM=win32
47446fi
47447
7afc46ab 47448if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47449 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47450 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47451 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47452 else
47453 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47454 fi
47455 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47456 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47457 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47458 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47459 bk_use_pch=no
47460 fi
47461 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47462 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47463fi
47464
a81d5bb6
MW
47465if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47466then
47467 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47468echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47469if test "${wx_cv_gcc_pch_bug+set}" = set; then
47470 echo $ECHO_N "(cached) $ECHO_C" >&6
47471else
47472
6d952fd7
MW
47473 echo '#include <stdio.h>
47474 const wchar_t test_var[] = L"awidetest";' > conftest.h
47475
47476 echo '#include "conftest.h"
47477 int main()
47478 {
be49c6ec 47479 printf("%ls", test_var);
6d952fd7
MW
47480 return 0;
47481 }' > conftest.cpp
47482
47483 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47484
b2983f42 47485 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47486 then
6d952fd7 47487 wx_cv_gcc_pch_bug=
a81d5bb6 47488
6c7f5e56 47489 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47490 then
6c7f5e56
MW
47491 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47492 grep awidetest >/dev/null
6d952fd7
MW
47493 then
47494 wx_cv_gcc_pch_bug=no
47495 else
a81d5bb6 47496 wx_cv_gcc_pch_bug=yes
6d952fd7 47497 fi
a81d5bb6
MW
47498 fi
47499 fi
47500
6c7f5e56 47501 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47502
47503fi
47504echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47505echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47506
47507 if test "$wx_cv_gcc_pch_bug" = yes; then
47508 bk_use_pch=no
47509 fi
47510fi
47511
9a8f0513 47512
1e9e8aba
DE
47513
47514
a848cd7e 47515 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47516 if test "x${host}" = "x" ; then
47517 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47518echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47519 { (exit 1); exit 1; }; }
47520 fi
47521
a848cd7e
SC
47522 BAKEFILE_HOST="${host}"
47523 fi
47524
47525 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47526
47527 if test -n "$ac_tool_prefix"; then
47528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47530echo "$as_me:$LINENO: checking for $ac_word" >&5
47531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47532if test "${ac_cv_prog_RANLIB+set}" = set; then
47533 echo $ECHO_N "(cached) $ECHO_C" >&6
47534else
47535 if test -n "$RANLIB"; then
47536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47537else
47538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47539for as_dir in $PATH
47540do
47541 IFS=$as_save_IFS
47542 test -z "$as_dir" && as_dir=.
47543 for ac_exec_ext in '' $ac_executable_extensions; do
47544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47547 break 2
47548 fi
47549done
47550done
47551
47552fi
47553fi
47554RANLIB=$ac_cv_prog_RANLIB
47555if test -n "$RANLIB"; then
47556 echo "$as_me:$LINENO: result: $RANLIB" >&5
47557echo "${ECHO_T}$RANLIB" >&6
47558else
47559 echo "$as_me:$LINENO: result: no" >&5
47560echo "${ECHO_T}no" >&6
47561fi
47562
47563fi
47564if test -z "$ac_cv_prog_RANLIB"; then
47565 ac_ct_RANLIB=$RANLIB
47566 # Extract the first word of "ranlib", so it can be a program name with args.
47567set dummy ranlib; ac_word=$2
47568echo "$as_me:$LINENO: checking for $ac_word" >&5
47569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47571 echo $ECHO_N "(cached) $ECHO_C" >&6
47572else
47573 if test -n "$ac_ct_RANLIB"; then
47574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47575else
47576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47577for as_dir in $PATH
47578do
47579 IFS=$as_save_IFS
47580 test -z "$as_dir" && as_dir=.
47581 for ac_exec_ext in '' $ac_executable_extensions; do
47582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47583 ac_cv_prog_ac_ct_RANLIB="ranlib"
47584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47585 break 2
47586 fi
47587done
47588done
47589
47590 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47591fi
47592fi
47593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47594if test -n "$ac_ct_RANLIB"; then
47595 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47596echo "${ECHO_T}$ac_ct_RANLIB" >&6
47597else
47598 echo "$as_me:$LINENO: result: no" >&5
47599echo "${ECHO_T}no" >&6
47600fi
47601
47602 RANLIB=$ac_ct_RANLIB
47603else
47604 RANLIB="$ac_cv_prog_RANLIB"
47605fi
47606
47607 # Find a good install program. We prefer a C program (faster),
47608# so one script is as good as another. But avoid the broken or
47609# incompatible versions:
47610# SysV /etc/install, /usr/sbin/install
47611# SunOS /usr/etc/install
47612# IRIX /sbin/install
47613# AIX /bin/install
47614# AmigaOS /C/install, which installs bootblocks on floppy discs
47615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47616# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47618# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47619# ./install, which can be erroneously created by make from ./install.sh.
47620echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47621echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47622if test -z "$INSTALL"; then
47623if test "${ac_cv_path_install+set}" = set; then
47624 echo $ECHO_N "(cached) $ECHO_C" >&6
47625else
47626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47627for as_dir in $PATH
47628do
47629 IFS=$as_save_IFS
47630 test -z "$as_dir" && as_dir=.
47631 # Account for people who put trailing slashes in PATH elements.
47632case $as_dir/ in
47633 ./ | .// | /cC/* | \
47634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47635 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47636 /usr/ucb/* ) ;;
47637 *)
47638 # OSF1 and SCO ODT 3.0 have their own names for install.
47639 # Don't use installbsd from OSF since it installs stuff as root
47640 # by default.
47641 for ac_prog in ginstall scoinst install; do
47642 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47643 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47644 if test $ac_prog = install &&
47645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47646 # AIX install. It has an incompatible calling convention.
47647 :
47648 elif test $ac_prog = install &&
47649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47650 # program-specific install script used by HP pwplus--don't use.
47651 :
47652 else
47653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47654 break 3
47655 fi
47656 fi
a848cd7e
SC
47657 done
47658 done
47659 ;;
47660esac
47661done
47662
47663
47664fi
47665 if test "${ac_cv_path_install+set}" = set; then
47666 INSTALL=$ac_cv_path_install
47667 else
47668 # As a last resort, use the slow shell script. We don't cache a
47669 # path for INSTALL within a source directory, because that will
47670 # break other packages using the cache if that directory is
47671 # removed, or if the path is relative.
47672 INSTALL=$ac_install_sh
47673 fi
47674fi
47675echo "$as_me:$LINENO: result: $INSTALL" >&5
47676echo "${ECHO_T}$INSTALL" >&6
47677
47678# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47679# It thinks the first close brace ends the variable substitution.
47680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47681
47682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47683
47684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47685
47686 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47687echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47688LN_S=$as_ln_s
47689if test "$LN_S" = "ln -s"; then
47690 echo "$as_me:$LINENO: result: yes" >&5
47691echo "${ECHO_T}yes" >&6
47692else
47693 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47694echo "${ECHO_T}no, using $LN_S" >&6
47695fi
47696
47697
47698 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47699echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47700set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47701if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47702 echo $ECHO_N "(cached) $ECHO_C" >&6
47703else
47704 cat >conftest.make <<\_ACEOF
47705all:
47706 @echo 'ac_maketemp="$(MAKE)"'
47707_ACEOF
47708# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47709eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47710if test -n "$ac_maketemp"; then
47711 eval ac_cv_prog_make_${ac_make}_set=yes
47712else
47713 eval ac_cv_prog_make_${ac_make}_set=no
47714fi
47715rm -f conftest.make
47716fi
47717if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47718 echo "$as_me:$LINENO: result: yes" >&5
47719echo "${ECHO_T}yes" >&6
47720 SET_MAKE=
47721else
47722 echo "$as_me:$LINENO: result: no" >&5
47723echo "${ECHO_T}no" >&6
47724 SET_MAKE="MAKE=${MAKE-make}"
47725fi
47726
47727
47728
47729 if test -n "$ac_tool_prefix"; then
47730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47731set dummy ${ac_tool_prefix}ar; ac_word=$2
47732echo "$as_me:$LINENO: checking for $ac_word" >&5
47733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47734if test "${ac_cv_prog_AR+set}" = set; then
47735 echo $ECHO_N "(cached) $ECHO_C" >&6
47736else
47737 if test -n "$AR"; then
47738 ac_cv_prog_AR="$AR" # Let the user override the test.
47739else
47740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47741for as_dir in $PATH
47742do
47743 IFS=$as_save_IFS
47744 test -z "$as_dir" && as_dir=.
47745 for ac_exec_ext in '' $ac_executable_extensions; do
47746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47747 ac_cv_prog_AR="${ac_tool_prefix}ar"
47748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47749 break 2
47750 fi
47751done
47752done
47753
47754fi
47755fi
47756AR=$ac_cv_prog_AR
47757if test -n "$AR"; then
47758 echo "$as_me:$LINENO: result: $AR" >&5
47759echo "${ECHO_T}$AR" >&6
47760else
47761 echo "$as_me:$LINENO: result: no" >&5
47762echo "${ECHO_T}no" >&6
47763fi
47764
47765fi
47766if test -z "$ac_cv_prog_AR"; then
47767 ac_ct_AR=$AR
47768 # Extract the first word of "ar", so it can be a program name with args.
47769set dummy ar; ac_word=$2
47770echo "$as_me:$LINENO: checking for $ac_word" >&5
47771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47772if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47773 echo $ECHO_N "(cached) $ECHO_C" >&6
47774else
47775 if test -n "$ac_ct_AR"; then
47776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47777else
47778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47779for as_dir in $PATH
47780do
47781 IFS=$as_save_IFS
47782 test -z "$as_dir" && as_dir=.
47783 for ac_exec_ext in '' $ac_executable_extensions; do
47784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47785 ac_cv_prog_ac_ct_AR="ar"
47786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47787 break 2
47788 fi
47789done
47790done
47791
47792 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47793fi
47794fi
47795ac_ct_AR=$ac_cv_prog_ac_ct_AR
47796if test -n "$ac_ct_AR"; then
47797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47798echo "${ECHO_T}$ac_ct_AR" >&6
47799else
47800 echo "$as_me:$LINENO: result: no" >&5
47801echo "${ECHO_T}no" >&6
47802fi
47803
47804 AR=$ac_ct_AR
47805else
47806 AR="$ac_cv_prog_AR"
47807fi
47808
47809 if test -n "$ac_tool_prefix"; then
47810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47811set dummy ${ac_tool_prefix}strip; ac_word=$2
47812echo "$as_me:$LINENO: checking for $ac_word" >&5
47813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47814if test "${ac_cv_prog_STRIP+set}" = set; then
47815 echo $ECHO_N "(cached) $ECHO_C" >&6
47816else
47817 if test -n "$STRIP"; then
47818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47819else
47820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47821for as_dir in $PATH
47822do
47823 IFS=$as_save_IFS
47824 test -z "$as_dir" && as_dir=.
47825 for ac_exec_ext in '' $ac_executable_extensions; do
47826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47829 break 2
47830 fi
47831done
47832done
47833
47834fi
47835fi
47836STRIP=$ac_cv_prog_STRIP
47837if test -n "$STRIP"; then
47838 echo "$as_me:$LINENO: result: $STRIP" >&5
47839echo "${ECHO_T}$STRIP" >&6
47840else
47841 echo "$as_me:$LINENO: result: no" >&5
47842echo "${ECHO_T}no" >&6
47843fi
47844
47845fi
47846if test -z "$ac_cv_prog_STRIP"; then
47847 ac_ct_STRIP=$STRIP
47848 # Extract the first word of "strip", so it can be a program name with args.
47849set dummy strip; ac_word=$2
47850echo "$as_me:$LINENO: checking for $ac_word" >&5
47851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47853 echo $ECHO_N "(cached) $ECHO_C" >&6
47854else
47855 if test -n "$ac_ct_STRIP"; then
47856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47857else
47858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47859for as_dir in $PATH
47860do
47861 IFS=$as_save_IFS
47862 test -z "$as_dir" && as_dir=.
47863 for ac_exec_ext in '' $ac_executable_extensions; do
47864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47865 ac_cv_prog_ac_ct_STRIP="strip"
47866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47867 break 2
47868 fi
47869done
47870done
47871
47872 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47873fi
47874fi
47875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47876if test -n "$ac_ct_STRIP"; then
47877 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47878echo "${ECHO_T}$ac_ct_STRIP" >&6
47879else
47880 echo "$as_me:$LINENO: result: no" >&5
47881echo "${ECHO_T}no" >&6
47882fi
47883
47884 STRIP=$ac_ct_STRIP
47885else
47886 STRIP="$ac_cv_prog_STRIP"
47887fi
47888
47889 if test -n "$ac_tool_prefix"; then
47890 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47891set dummy ${ac_tool_prefix}nm; ac_word=$2
47892echo "$as_me:$LINENO: checking for $ac_word" >&5
47893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47894if test "${ac_cv_prog_NM+set}" = set; then
47895 echo $ECHO_N "(cached) $ECHO_C" >&6
47896else
47897 if test -n "$NM"; then
47898 ac_cv_prog_NM="$NM" # Let the user override the test.
47899else
47900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47901for as_dir in $PATH
47902do
47903 IFS=$as_save_IFS
47904 test -z "$as_dir" && as_dir=.
47905 for ac_exec_ext in '' $ac_executable_extensions; do
47906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47907 ac_cv_prog_NM="${ac_tool_prefix}nm"
47908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47909 break 2
47910 fi
47911done
47912done
47913
47914fi
47915fi
47916NM=$ac_cv_prog_NM
47917if test -n "$NM"; then
47918 echo "$as_me:$LINENO: result: $NM" >&5
47919echo "${ECHO_T}$NM" >&6
47920else
47921 echo "$as_me:$LINENO: result: no" >&5
47922echo "${ECHO_T}no" >&6
47923fi
47924
47925fi
47926if test -z "$ac_cv_prog_NM"; then
47927 ac_ct_NM=$NM
47928 # Extract the first word of "nm", so it can be a program name with args.
47929set dummy nm; ac_word=$2
47930echo "$as_me:$LINENO: checking for $ac_word" >&5
47931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47932if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47933 echo $ECHO_N "(cached) $ECHO_C" >&6
47934else
47935 if test -n "$ac_ct_NM"; then
47936 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47937else
47938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47939for as_dir in $PATH
47940do
47941 IFS=$as_save_IFS
47942 test -z "$as_dir" && as_dir=.
47943 for ac_exec_ext in '' $ac_executable_extensions; do
47944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47945 ac_cv_prog_ac_ct_NM="nm"
47946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47947 break 2
47948 fi
47949done
47950done
47951
47952 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47953fi
47954fi
47955ac_ct_NM=$ac_cv_prog_ac_ct_NM
47956if test -n "$ac_ct_NM"; then
47957 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47958echo "${ECHO_T}$ac_ct_NM" >&6
47959else
47960 echo "$as_me:$LINENO: result: no" >&5
47961echo "${ECHO_T}no" >&6
47962fi
47963
47964 NM=$ac_ct_NM
47965else
47966 NM="$ac_cv_prog_NM"
47967fi
47968
47969
47970 case ${BAKEFILE_HOST} in
47971 *-hp-hpux* )
1e9e8aba 47972 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47973 ;;
47974 *) INSTALL_DIR="$INSTALL -d"
47975 ;;
47976 esac
47977
47978
47979 LDFLAGS_GUI=
47980 case ${BAKEFILE_HOST} in
47981 *-*-cygwin* | *-*-mingw32* )
47982 LDFLAGS_GUI="-mwindows"
47983 esac
47984
47985
47986 fi
47987
47988 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47989echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47990if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47991 echo $ECHO_N "(cached) $ECHO_C" >&6
47992else
47993
47994 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47995 egrep -s GNU > /dev/null); then
47996 bakefile_cv_prog_makeisgnu="yes"
47997 else
47998 bakefile_cv_prog_makeisgnu="no"
47999 fi
48000
48001fi
48002echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48003echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
48004
48005 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48006 IF_GNU_MAKE=""
48007 else
48008 IF_GNU_MAKE="#"
48009 fi
48010
48011
48012
48013 PLATFORM_UNIX=0
48014 PLATFORM_WIN32=0
48015 PLATFORM_MSDOS=0
48016 PLATFORM_MAC=0
1e9e8aba 48017 PLATFORM_MACOS=0
a848cd7e
SC
48018 PLATFORM_MACOSX=0
48019 PLATFORM_OS2=0
1e9e8aba 48020 PLATFORM_BEOS=0
a848cd7e
SC
48021
48022 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48023 case "${BAKEFILE_HOST}" in
810b94f0 48024 *-*-mingw32* )
a848cd7e
SC
48025 PLATFORM_WIN32=1
48026 ;;
48027 *-pc-msdosdjgpp )
48028 PLATFORM_MSDOS=1
48029 ;;
48030 *-pc-os2_emx | *-pc-os2-emx )
48031 PLATFORM_OS2=1
48032 ;;
47bd5406 48033 *-*-darwin* )
a848cd7e
SC
48034 PLATFORM_MAC=1
48035 PLATFORM_MACOSX=1
48036 ;;
1e9e8aba
DE
48037 *-*-beos* )
48038 PLATFORM_BEOS=1
48039 ;;
48040 powerpc-apple-macos* )
48041 PLATFORM_MAC=1
48042 PLATFORM_MACOS=1
48043 ;;
a848cd7e
SC
48044 * )
48045 PLATFORM_UNIX=1
48046 ;;
48047 esac
48048 else
48049 case "$BAKEFILE_FORCE_PLATFORM" in
48050 win32 )
48051 PLATFORM_WIN32=1
48052 ;;
48053 msdos )
48054 PLATFORM_MSDOS=1
48055 ;;
48056 os2 )
48057 PLATFORM_OS2=1
48058 ;;
48059 darwin )
48060 PLATFORM_MAC=1
48061 PLATFORM_MACOSX=1
48062 ;;
48063 unix )
48064 PLATFORM_UNIX=1
48065 ;;
1e9e8aba
DE
48066 beos )
48067 PLATFORM_BEOS=1
48068 ;;
a848cd7e
SC
48069 * )
48070 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48071echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48072 { (exit 1); exit 1; }; }
48073 ;;
48074 esac
48075 fi
48076
48077
48078
48079
48080
48081
48082
48083
48084
1e9e8aba
DE
48085
48086
a848cd7e
SC
48087 # Check whether --enable-omf or --disable-omf was given.
48088if test "${enable_omf+set}" = set; then
48089 enableval="$enable_omf"
48090 bk_os2_use_omf="$enableval"
48091fi;
48092
48093 case "${BAKEFILE_HOST}" in
48094 *-*-darwin* )
47bd5406
VZ
48095 if test "x$GCC" = "xyes"; then
48096 CFLAGS="$CFLAGS -fno-common"
48097 CXXFLAGS="$CXXFLAGS -fno-common"
48098 fi
48099 if test "x$XLCC" = "xyes"; then
48100 CFLAGS="$CFLAGS -qnocommon"
48101 CXXFLAGS="$CXXFLAGS -qnocommon"
48102 fi
a848cd7e
SC
48103 ;;
48104
48105 *-pc-os2_emx | *-pc-os2-emx )
48106 if test "x$bk_os2_use_omf" = "xyes" ; then
48107 AR=emxomfar
48108 RANLIB=:
48109 LDFLAGS="-Zomf $LDFLAGS"
48110 CFLAGS="-Zomf $CFLAGS"
48111 CXXFLAGS="-Zomf $CXXFLAGS"
48112 OS2_LIBEXT="lib"
48113 else
48114 OS2_LIBEXT="a"
48115 fi
48116 ;;
1e9e8aba
DE
48117
48118 i*86-*-beos* )
48119 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48120 ;;
a848cd7e
SC
48121 esac
48122
48123
48124 SO_SUFFIX="so"
48125 SO_SUFFIX_MODULE="so"
48126 EXEEXT=""
48127 LIBPREFIX="lib"
48128 LIBEXT=".a"
48129 DLLPREFIX="lib"
48130 DLLPREFIX_MODULE=""
48131 DLLIMP_SUFFIX=""
810b94f0 48132 dlldir="$libdir"
a848cd7e
SC
48133
48134 case "${BAKEFILE_HOST}" in
48135 *-hp-hpux* )
48136 SO_SUFFIX="sl"
48137 SO_SUFFIX_MODULE="sl"
48138 ;;
48139 *-*-aix* )
48140 SO_SUFFIX="a"
48141 SO_SUFFIX_MODULE="a"
48142 ;;
810b94f0
MW
48143 *-*-cygwin* )
48144 SO_SUFFIX="dll"
48145 SO_SUFFIX_MODULE="dll"
48146 DLLIMP_SUFFIX="dll.a"
48147 EXEEXT=".exe"
48148 DLLPREFIX="cyg"
48149 dlldir="$bindir"
48150 ;;
48151 *-*-mingw32* )
a848cd7e
SC
48152 SO_SUFFIX="dll"
48153 SO_SUFFIX_MODULE="dll"
48154 DLLIMP_SUFFIX="dll.a"
48155 EXEEXT=".exe"
48156 DLLPREFIX=""
810b94f0 48157 dlldir="$bindir"
a848cd7e
SC
48158 ;;
48159 *-pc-msdosdjgpp )
48160 EXEEXT=".exe"
48161 DLLPREFIX=""
810b94f0 48162 dlldir="$bindir"
a848cd7e
SC
48163 ;;
48164 *-pc-os2_emx | *-pc-os2-emx )
48165 SO_SUFFIX="dll"
48166 SO_SUFFIX_MODULE="dll"
48167 DLLIMP_SUFFIX=$OS2_LIBEXT
48168 EXEEXT=".exe"
48169 DLLPREFIX=""
48170 LIBPREFIX=""
48171 LIBEXT=".$OS2_LIBEXT"
810b94f0 48172 dlldir="$bindir"
a848cd7e 48173 ;;
47bd5406 48174 *-*-darwin* )
a848cd7e
SC
48175 SO_SUFFIX="dylib"
48176 SO_SUFFIX_MODULE="bundle"
48177 ;;
48178 esac
48179
48180 if test "x$DLLIMP_SUFFIX" = "x" ; then
48181 DLLIMP_SUFFIX="$SO_SUFFIX"
48182 fi
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193
810b94f0 48194
1e9e8aba
DE
48195 PIC_FLAG=""
48196 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48197 PIC_FLAG="-fPIC"
48198 fi
48199
1e9e8aba
DE
48200 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48201 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48202 WINDOWS_IMPLIB=0
1e9e8aba 48203
a848cd7e
SC
48204 case "${BAKEFILE_HOST}" in
48205 *-hp-hpux* )
1e9e8aba 48206 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48207 LDFLAGS="$LDFLAGS -L/usr/lib"
48208
48209 SHARED_LD_CC="${CC} -b -o"
48210 SHARED_LD_CXX="${CXX} -b -o"
48211 PIC_FLAG="+Z"
48212 fi
48213 ;;
48214
48215 *-*-linux* )
48216 if test "x$GCC" != "xyes"; then
48217 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48218echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48219if test "${bakefile_cv_prog_icc+set}" = set; then
48220 echo $ECHO_N "(cached) $ECHO_C" >&6
48221else
48222
48223 cat >conftest.$ac_ext <<_ACEOF
48224/* confdefs.h. */
48225_ACEOF
48226cat confdefs.h >>conftest.$ac_ext
48227cat >>conftest.$ac_ext <<_ACEOF
48228/* end confdefs.h. */
48229
48230int
48231main ()
48232{
48233
48234 #ifndef __INTEL_COMPILER
e5efa97e 48235 This is not ICC
a848cd7e
SC
48236 #endif
48237
48238 ;
48239 return 0;
48240}
48241_ACEOF
48242rm -f conftest.$ac_objext
48243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48244 (eval $ac_compile) 2>conftest.er1
a848cd7e 48245 ac_status=$?
ac1cb8d3
VS
48246 grep -v '^ *+' conftest.er1 >conftest.err
48247 rm -f conftest.er1
48248 cat conftest.err >&5
a848cd7e
SC
48249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48250 (exit $ac_status); } &&
bb9e79c0 48251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48253 (eval $ac_try) 2>&5
48254 ac_status=$?
48255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48256 (exit $ac_status); }; } &&
48257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48259 (eval $ac_try) 2>&5
48260 ac_status=$?
48261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48262 (exit $ac_status); }; }; then
48263 bakefile_cv_prog_icc=yes
48264else
48265 echo "$as_me: failed program was:" >&5
48266sed 's/^/| /' conftest.$ac_ext >&5
48267
48268bakefile_cv_prog_icc=no
48269
48270fi
ac1cb8d3 48271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48272
48273fi
48274echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48275echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48276 if test "$bakefile_cv_prog_icc" = "yes"; then
48277 PIC_FLAG="-KPIC"
48278 fi
48279 fi
48280 ;;
48281
48282 *-*-solaris2* )
48283 if test "x$GCC" != xyes ; then
48284 SHARED_LD_CC="${CC} -G -o"
48285 SHARED_LD_CXX="${CXX} -G -o"
48286 PIC_FLAG="-KPIC"
48287 fi
48288 ;;
48289
48290 *-*-darwin* )
48291
473276a9
VS
48292D='$'
48293cat <<EOF >shared-ld-sh
a848cd7e
SC
48294#!/bin/sh
48295#-----------------------------------------------------------------------------
48296#-- Name: distrib/mac/shared-ld-sh
48297#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48298#-- Author: Gilles Depeyrot
48299#-- Copyright: (c) 2002 Gilles Depeyrot
48300#-- Licence: any use permitted
48301#-----------------------------------------------------------------------------
48302
48303verbose=0
48304args=""
48305objects=""
48306linking_flag="-dynamiclib"
810b94f0 48307ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48308
473276a9
VS
48309while test ${D}# -gt 0; do
48310 case ${D}1 in
a848cd7e
SC
48311
48312 -v)
48313 verbose=1
48314 ;;
48315
48316 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48317 # collect these options and values
473276a9 48318 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48319 shift
48320 ;;
48321
810b94f0
MW
48322 -s|-Wl,*)
48323 # collect these load args
48324 ldargs="${D}{ldargs} ${D}1"
2113bc77 48325 ;;
810b94f0
MW
48326
48327 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48328 # collect these options
473276a9 48329 args="${D}{args} ${D}1"
a848cd7e
SC
48330 ;;
48331
48332 -dynamiclib|-bundle)
473276a9 48333 linking_flag="${D}1"
a848cd7e
SC
48334 ;;
48335
48336 -*)
473276a9 48337 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48338 exit 1
48339 ;;
48340
48341 *.o | *.a | *.dylib)
48342 # collect object files
473276a9 48343 objects="${D}{objects} ${D}1"
a848cd7e
SC
48344 ;;
48345
48346 *)
473276a9 48347 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48348 exit 1
48349 ;;
48350
48351 esac
48352 shift
48353done
48354
810b94f0
MW
48355status=0
48356
a848cd7e
SC
48357#
48358# Link one module containing all the others
48359#
473276a9 48360if test ${D}{verbose} = 1; then
810b94f0 48361 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48362fi
810b94f0 48363c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48364status=${D}?
a848cd7e
SC
48365
48366#
810b94f0
MW
48367# Link the shared library from the single module created, but only if the
48368# previous command didn't fail:
a848cd7e 48369#
810b94f0
MW
48370if test ${D}{status} = 0; then
48371 if test ${D}{verbose} = 1; then
48372 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48373 fi
48374 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48375 status=${D}?
a848cd7e
SC
48376fi
48377
48378#
48379# Remove intermediate module
48380#
473276a9 48381rm -f master.${D}${D}.o
a848cd7e 48382
810b94f0 48383exit ${D}status
a848cd7e 48384EOF
473276a9 48385
583d6b4b
VZ
48386 chmod +x shared-ld-sh
48387
48388 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48389 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48390
48391
48392 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48393echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48394if test "${bakefile_cv_gcc31+set}" = set; then
48395 echo $ECHO_N "(cached) $ECHO_C" >&6
48396else
48397
48398 cat >conftest.$ac_ext <<_ACEOF
48399/* confdefs.h. */
48400_ACEOF
48401cat confdefs.h >>conftest.$ac_ext
48402cat >>conftest.$ac_ext <<_ACEOF
48403/* end confdefs.h. */
48404
48405int
48406main ()
48407{
48408
48409 #if (__GNUC__ < 3) || \
48410 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48411 This is old gcc
583d6b4b 48412 #endif
a848cd7e 48413
583d6b4b
VZ
48414 ;
48415 return 0;
48416}
48417_ACEOF
48418rm -f conftest.$ac_objext
48419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48420 (eval $ac_compile) 2>conftest.er1
48421 ac_status=$?
48422 grep -v '^ *+' conftest.er1 >conftest.err
48423 rm -f conftest.er1
48424 cat conftest.err >&5
48425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48426 (exit $ac_status); } &&
bb9e79c0 48427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48429 (eval $ac_try) 2>&5
48430 ac_status=$?
48431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48432 (exit $ac_status); }; } &&
48433 { ac_try='test -s conftest.$ac_objext'
48434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48435 (eval $ac_try) 2>&5
48436 ac_status=$?
48437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48438 (exit $ac_status); }; }; then
48439
48440 bakefile_cv_gcc31=yes
48441
48442else
48443 echo "$as_me: failed program was:" >&5
48444sed 's/^/| /' conftest.$ac_ext >&5
48445
48446
48447 bakefile_cv_gcc31=no
48448
48449
48450fi
48451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48452
48453fi
48454echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48455echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48456 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48457 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48458 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48459 else
48460 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48461 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48462 fi
48463
47bd5406
VZ
48464 if test "x$GCC" == "xyes"; then
48465 PIC_FLAG="-dynamic -fPIC"
48466 fi
48467 if test "x$XLCC" = "xyes"; then
48468 PIC_FLAG="-dynamic -DPIC"
48469 fi
a848cd7e
SC
48470 ;;
48471
48472 *-*-aix* )
f6b50c59 48473 if test "x$GCC" = "xyes"; then
583d6b4b 48474 PIC_FLAG=""
f6b50c59 48475
583d6b4b
VZ
48476 case "${BAKEFILE_HOST}" in
48477 *-*-aix5* )
48478 LD_EXPFULL="-Wl,-bexpfull"
48479 ;;
48480 esac
f6b50c59 48481
583d6b4b
VZ
48482 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48483 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48484 else
48485 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48486set dummy makeC++SharedLib; ac_word=$2
48487echo "$as_me:$LINENO: checking for $ac_word" >&5
48488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48489if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48490 echo $ECHO_N "(cached) $ECHO_C" >&6
48491else
48492 if test -n "$AIX_CXX_LD"; then
48493 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48494else
48495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48496for as_dir in $PATH
48497do
48498 IFS=$as_save_IFS
48499 test -z "$as_dir" && as_dir=.
48500 for ac_exec_ext in '' $ac_executable_extensions; do
48501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48502 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48504 break 2
48505 fi
48506done
48507done
48508
48509 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48510fi
48511fi
48512AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48513if test -n "$AIX_CXX_LD"; then
48514 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48515echo "${ECHO_T}$AIX_CXX_LD" >&6
48516else
48517 echo "$as_me:$LINENO: result: no" >&5
48518echo "${ECHO_T}no" >&6
48519fi
48520
f6b50c59 48521 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48522 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48523 fi
48524 ;;
48525
48526 *-*-beos* )
1e9e8aba
DE
48527 SHARED_LD_CC="${LD} -nostart -o"
48528 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48529 ;;
48530
48531 *-*-irix* )
48532 if test "x$GCC" != "xyes"; then
48533 PIC_FLAG="-KPIC"
48534 fi
48535 ;;
48536
48537 *-*-cygwin* | *-*-mingw32* )
48538 PIC_FLAG=""
1e9e8aba
DE
48539 SHARED_LD_CC="\$(CC) -shared -o"
48540 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48541 WINDOWS_IMPLIB=1
a848cd7e
SC
48542 ;;
48543
48544 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48545 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48546 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48547 PIC_FLAG=""
473276a9
VS
48548
48549D='$'
48550cat <<EOF >dllar.sh
48551#!/bin/sh
48552#
48553# dllar - a tool to build both a .dll and an .a file
48554# from a set of object (.o) files for EMX/OS2.
48555#
48556# Written by Andrew Zabolotny, bit@freya.etu.ru
48557# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48558#
48559# This script will accept a set of files on the command line.
48560# All the public symbols from the .o files will be exported into
48561# a .DEF file, then linker will be run (through gcc) against them to
48562# build a shared library consisting of all given .o files. All libraries
48563# (.a) will be first decompressed into component .o files then act as
48564# described above. You can optionally give a description (-d "description")
48565# which will be put into .DLL. To see the list of accepted options (as well
48566# as command-line format) simply run this program without options. The .DLL
48567# is built to be imported by name (there is no guarantee that new versions
48568# of the library you build will have same ordinals for same symbols).
48569#
48570# dllar is free software; you can redistribute it and/or modify
48571# it under the terms of the GNU General Public License as published by
48572# the Free Software Foundation; either version 2, or (at your option)
48573# any later version.
48574#
48575# dllar is distributed in the hope that it will be useful,
48576# but WITHOUT ANY WARRANTY; without even the implied warranty of
48577# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48578# GNU General Public License for more details.
48579#
48580# You should have received a copy of the GNU General Public License
48581# along with dllar; see the file COPYING. If not, write to the Free
48582# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48583# 02111-1307, USA.
48584
48585# To successfuly run this program you will need:
48586# - Current drive should have LFN support (HPFS, ext2, network, etc)
48587# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48588# - gcc
48589# (used to build the .dll)
48590# - emxexp
48591# (used to create .def file from .o files)
48592# - emximp
48593# (used to create .a file from .def file)
48594# - GNU text utilites (cat, sort, uniq)
48595# used to process emxexp output
48596# - GNU file utilities (mv, rm)
48597# - GNU sed
48598# - lxlite (optional, see flag below)
48599# (used for general .dll cleanup)
48600#
48601
48602flag_USE_LXLITE=1;
48603
48604#
48605# helper functions
48606# basnam, variant of basename, which does _not_ remove the path, _iff_
48607# second argument (suffix to remove) is given
48608basnam(){
48609 case ${D}# in
48610 1)
1e9e8aba 48611 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48612 ;;
48613 2)
48614 echo ${D}1 | sed 's/'${D}2'${D}//'
48615 ;;
48616 *)
48617 echo "error in basnam ${D}*"
48618 exit 8
48619 ;;
48620 esac
48621}
48622
48623# Cleanup temporary files and output
48624CleanUp() {
48625 cd ${D}curDir
48626 for i in ${D}inputFiles ; do
48627 case ${D}i in
48628 *!)
48629 rm -rf \`basnam ${D}i !\`
48630 ;;
48631 *)
48632 ;;
48633 esac
48634 done
48635
48636 # Kill result in case of failure as there is just to many stupid make/nmake
48637 # things out there which doesn't do this.
1e9e8aba 48638 if [ ${D}# -eq 0 ]; then
473276a9
VS
48639 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48640 fi
48641}
48642
48643# Print usage and exit script with rc=1.
48644PrintHelp() {
b1d22ded
DE
48645 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48646 echo ' [-name-mangler-script script.sh]'
48647 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48648 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48649 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48650 echo ' [*.o] [*.a]'
473276a9
VS
48651 echo '*> "output_file" should have no extension.'
48652 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48653 echo ' The import library name is derived from this and is set to "name".a,'
48654 echo ' unless overridden by -import'
48655 echo '*> "importlib_name" should have no extension.'
48656 echo ' If it has the .o, or .a extension, it is automatically removed.'
48657 echo ' This name is used as the import library name and may be longer and'
48658 echo ' more descriptive than the DLL name which has to follow the old '
48659 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48660 echo '*> "script.sh may be given to override the output_file name by a'
48661 echo ' different name. It is mainly useful if the regular make process'
48662 echo ' of some package does not take into account OS/2 restriction of'
48663 echo ' DLL name lengths. It takes the importlib name as input and is'
48664 echo ' supposed to procude a shorter name as output. The script should'
48665 echo ' expect to get importlib_name without extension and should produce'
48666 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48667 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48668 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48669 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48670 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48671 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48672 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48673 echo ' If the last character of a symbol is "*", all symbols beginning'
48674 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48675 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48676 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48677 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48678 echo ' C runtime DLLs.'
b1d22ded 48679 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48680 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48681 echo ' unchanged to GCC at the end of command line.'
48682 echo '*> If you create a DLL from a library and you do not specify -o,'
48683 echo ' the basename for DLL and import library will be set to library name,'
48684 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48685 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48686 echo ' library will be renamed into gcc_s.a.'
48687 echo '--------'
48688 echo 'Example:'
48689 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48690 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48691 CleanUp
48692 exit 1
48693}
48694
48695# Execute a command.
48696# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48697# @Uses Whatever CleanUp() uses.
48698doCommand() {
48699 echo "${D}*"
48700 eval ${D}*
48701 rcCmd=${D}?
48702
1e9e8aba 48703 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48704 echo "command failed, exit code="${D}rcCmd
48705 CleanUp
48706 exit ${D}rcCmd
48707 fi
48708}
48709
48710# main routine
48711# setup globals
48712cmdLine=${D}*
48713outFile=""
48714outimpFile=""
48715inputFiles=""
b1d22ded 48716renameScript=""
473276a9
VS
48717description=""
48718CC=gcc.exe
48719CFLAGS="-s -Zcrtdll"
48720EXTRA_CFLAGS=""
48721EXPORT_BY_ORDINALS=0
48722exclude_symbols=""
48723library_flags=""
48724curDir=\`pwd\`
48725curDirS=curDir
48726case ${D}curDirS in
48727*/)
48728 ;;
48729*)
48730 curDirS=${D}{curDirS}"/"
48731 ;;
48732esac
48733# Parse commandline
48734libsToLink=0
b1d22ded 48735omfLinking=0
1e9e8aba 48736while [ ${D}1 ]; do
473276a9
VS
48737 case ${D}1 in
48738 -ord*)
48739 EXPORT_BY_ORDINALS=1;
48740 ;;
48741 -o*)
48742 shift
48743 outFile=${D}1
48744 ;;
48745 -i*)
48746 shift
48747 outimpFile=${D}1
48748 ;;
b1d22ded
DE
48749 -name-mangler-script)
48750 shift
48751 renameScript=${D}1
48752 ;;
473276a9
VS
48753 -d*)
48754 shift
48755 description=${D}1
48756 ;;
48757 -f*)
48758 shift
48759 CFLAGS=${D}1
48760 ;;
48761 -c*)
48762 shift
48763 CC=${D}1
48764 ;;
48765 -h*)
48766 PrintHelp
48767 ;;
48768 -ex*)
48769 shift
48770 exclude_symbols=${D}{exclude_symbols}${D}1" "
48771 ;;
48772 -libf*)
48773 shift
48774 library_flags=${D}{library_flags}${D}1" "
48775 ;;
48776 -nocrt*)
48777 CFLAGS="-s"
48778 ;;
48779 -nolxl*)
48780 flag_USE_LXLITE=0
48781 ;;
48782 -* | /*)
48783 case ${D}1 in
48784 -L* | -l*)
48785 libsToLink=1
48786 ;;
b1d22ded
DE
48787 -Zomf)
48788 omfLinking=1
48789 ;;
473276a9
VS
48790 *)
48791 ;;
48792 esac
48793 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48794 ;;
b1d22ded
DE
48795 *.dll)
48796 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48797 if [ ${D}omfLinking -eq 1 ]; then
48798 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48799 else
48800 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48801 fi
48802 ;;
473276a9
VS
48803 *)
48804 found=0;
1e9e8aba 48805 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48806 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48807 else
48808 for file in ${D}1 ; do
1e9e8aba 48809 if [ -f ${D}file ]; then
473276a9
VS
48810 inputFiles="${D}{inputFiles} ${D}file"
48811 found=1
48812 fi
48813 done
1e9e8aba 48814 if [ ${D}found -eq 0 ]; then
473276a9
VS
48815 echo "ERROR: No file(s) found: "${D}1
48816 exit 8
48817 fi
48818 fi
48819 ;;
48820 esac
48821 shift
48822done # iterate cmdline words
48823
48824#
1e9e8aba 48825if [ -z "${D}inputFiles" ]; then
473276a9
VS
48826 echo "dllar: no input files"
48827 PrintHelp
48828fi
48829
48830# Now extract all .o files from .a files
48831newInputFiles=""
48832for file in ${D}inputFiles ; do
48833 case ${D}file in
48834 *.a | *.lib)
48835 case ${D}file in
48836 *.a)
48837 suffix=".a"
48838 AR="ar"
48839 ;;
48840 *.lib)
48841 suffix=".lib"
48842 AR="emxomfar"
48843 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48844 ;;
48845 *)
48846 ;;
48847 esac
48848 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48849 mkdir ${D}dirname
1e9e8aba 48850 if [ ${D}? -ne 0 ]; then
473276a9
VS
48851 echo "Failed to create subdirectory ./${D}dirname"
48852 CleanUp
48853 exit 8;
48854 fi
48855 # Append '!' to indicate archive
48856 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48857 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48858 cd ${D}curDir
48859 found=0;
48860 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48861 if [ -f ${D}subfile ]; then
473276a9 48862 found=1
1e9e8aba 48863 if [ -s ${D}subfile ]; then
473276a9
VS
48864 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48865 newInputFiles="${D}newInputFiles ${D}subfile"
48866 fi
48867 fi
48868 done
1e9e8aba
DE
48869 if [ ${D}found -eq 0 ]; then
48870 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48871 fi
48872 ;;
48873 *)
48874 newInputFiles="${D}{newInputFiles} ${D}file"
48875 ;;
48876 esac
48877done
48878inputFiles="${D}newInputFiles"
48879
48880# Output filename(s).
48881do_backup=0;
1e9e8aba 48882if [ -z ${D}outFile ]; then
473276a9
VS
48883 do_backup=1;
48884 set outFile ${D}inputFiles; outFile=${D}2
48885fi
48886
48887# If it is an archive, remove the '!' and the '_%' suffixes
48888case ${D}outFile in
48889*_%!)
48890 outFile=\`basnam ${D}outFile _%!\`
48891 ;;
48892*)
48893 ;;
48894esac
48895case ${D}outFile in
48896*.dll)
48897 outFile=\`basnam ${D}outFile .dll\`
48898 ;;
48899*.DLL)
48900 outFile=\`basnam ${D}outFile .DLL\`
48901 ;;
48902*.o)
48903 outFile=\`basnam ${D}outFile .o\`
48904 ;;
48905*.obj)
48906 outFile=\`basnam ${D}outFile .obj\`
48907 ;;
48908*.a)
48909 outFile=\`basnam ${D}outFile .a\`
48910 ;;
48911*.lib)
48912 outFile=\`basnam ${D}outFile .lib\`
48913 ;;
48914*)
48915 ;;
48916esac
48917case ${D}outimpFile in
48918*.a)
48919 outimpFile=\`basnam ${D}outimpFile .a\`
48920 ;;
48921*.lib)
48922 outimpFile=\`basnam ${D}outimpFile .lib\`
48923 ;;
48924*)
48925 ;;
48926esac
1e9e8aba 48927if [ -z ${D}outimpFile ]; then
473276a9
VS
48928 outimpFile=${D}outFile
48929fi
48930defFile="${D}{outFile}.def"
48931arcFile="${D}{outimpFile}.a"
48932arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48933
48934#create ${D}dllFile as something matching 8.3 restrictions,
48935if [ -z ${D}renameScript ] ; then
48936 dllFile="${D}outFile"
48937else
48938 dllFile=\`${D}renameScript ${D}outimpFile\`
48939fi
473276a9 48940
1e9e8aba
DE
48941if [ ${D}do_backup -ne 0 ] ; then
48942 if [ -f ${D}arcFile ] ; then
473276a9
VS
48943 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48944 fi
1e9e8aba 48945 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48946 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48947 fi
48948fi
48949
48950# Extract public symbols from all the object files.
48951tmpdefFile=${D}{defFile}_%
48952rm -f ${D}tmpdefFile
48953for file in ${D}inputFiles ; do
48954 case ${D}file in
48955 *!)
48956 ;;
48957 *)
48958 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48959 ;;
48960 esac
48961done
48962
48963# Create the def file.
48964rm -f ${D}defFile
48965echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48966dllFile="${D}{dllFile}.dll"
48967if [ ! -z ${D}description ]; then
1e9e8aba 48968 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48969fi
48970echo "EXPORTS" >> ${D}defFile
48971
48972doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48973grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48974
48975# Checks if the export is ok or not.
48976for word in ${D}exclude_symbols; do
48977 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48978 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48979done
48980
48981
1e9e8aba
DE
48982if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48983 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48984 sed '
48985 N
48986 : loop
1e9e8aba 48987 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48988 t loop
48989 ' > ${D}{tmpdefFile}%
48990 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48991else
48992 rm -f ${D}{tmpdefFile}%
48993fi
48994cat ${D}tmpdefFile >> ${D}defFile
48995rm -f ${D}tmpdefFile
48996
48997# Do linking, create implib, and apply lxlite.
48998gccCmdl="";
48999for file in ${D}inputFiles ; do
49000 case ${D}file in
49001 *!)
49002 ;;
49003 *)
49004 gccCmdl="${D}gccCmdl ${D}file"
49005 ;;
49006 esac
49007done
49008doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49009touch "${D}{outFile}.dll"
49010
49011doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49012if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49013 add_flags="";
1e9e8aba 49014 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49015 add_flags="-ynd"
49016 fi
49017 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49018fi
49019doCommand "emxomf -s -l ${D}arcFile"
49020
49021# Successful exit.
49022CleanUp 1
49023exit 0
49024EOF
49025
49026 chmod +x dllar.sh
a848cd7e
SC
49027 ;;
49028
1e9e8aba 49029 powerpc-apple-macos* | \
0ad5d837 49030 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
49031 *-*-sunos4* | \
49032 *-*-osf* | \
49033 *-*-dgux5* | \
47a7e797
MW
49034 *-*-sysv5* | \
49035 *-pc-msdosdjgpp )
a848cd7e
SC
49036 ;;
49037
49038 *)
3ecd9f92 49039 esac
a848cd7e 49040
2057db16
VS
49041 if test "x$PIC_FLAG" != "x" ; then
49042 PIC_FLAG="$PIC_FLAG -DPIC"
49043 fi
49044
a848cd7e
SC
49045 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49046 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49047 fi
49048 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49049 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49050 fi
49051
49052
49053
49054
49055
49056
49057
49058
810b94f0 49059
a848cd7e
SC
49060 USE_SOVERSION=0
49061 USE_SOVERLINUX=0
49062 USE_SOVERSOLARIS=0
810b94f0 49063 USE_SOVERCYGWIN=0
a848cd7e
SC
49064 USE_SOSYMLINKS=0
49065 USE_MACVERSION=0
49066 SONAME_FLAG=
49067
49068 case "${BAKEFILE_HOST}" in
0ad5d837 49069 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49070 SONAME_FLAG="-Wl,-soname,"
49071 USE_SOVERSION=1
49072 USE_SOVERLINUX=1
49073 USE_SOSYMLINKS=1
49074 ;;
49075
a848cd7e
SC
49076 *-*-solaris2* )
49077 SONAME_FLAG="-h "
49078 USE_SOVERSION=1
49079 USE_SOVERSOLARIS=1
49080 USE_SOSYMLINKS=1
49081 ;;
49082
49083 *-*-darwin* )
49084 USE_MACVERSION=1
49085 USE_SOVERSION=1
49086 USE_SOSYMLINKS=1
49087 ;;
810b94f0
MW
49088
49089 *-*-cygwin* )
49090 USE_SOVERSION=1
49091 USE_SOVERCYGWIN=1
49092 ;;
a848cd7e
SC
49093 esac
49094
49095
49096
49097
49098
49099
49100
49101
49102
810b94f0 49103
f10e38c4
VZ
49104 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49105if test "${enable_dependency_tracking+set}" = set; then
49106 enableval="$enable_dependency_tracking"
49107 bk_use_trackdeps="$enableval"
49108fi;
49109
a848cd7e
SC
49110 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49111echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49112
f10e38c4
VZ
49113 if test "x$bk_use_trackdeps" = "xno" ; then
49114 DEPS_TRACKING=0
49115 echo "$as_me:$LINENO: result: disabled" >&5
49116echo "${ECHO_T}disabled" >&6
49117 else
49118 DEPS_TRACKING=1
49119
49120 if test "x$GCC" = "xyes"; then
49121 DEPSMODE=gcc
49122 case "${BAKEFILE_HOST}" in
49123 *-*-darwin* )
49124 DEPSFLAG="-no-cpp-precomp -MMD"
49125 ;;
49126 * )
49127 DEPSFLAG="-MMD"
49128 ;;
49129 esac
49130 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 49131echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49132 elif test "x$MWCC" = "xyes"; then
49133 DEPSMODE=mwcc
49134 DEPSFLAG="-MM"
49135 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 49136echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49137 elif test "x$SUNCC" = "xyes"; then
49138 DEPSMODE=unixcc
49139 DEPSFLAG="-xM1"
49140 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 49141echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49142 elif test "x$SGICC" = "xyes"; then
49143 DEPSMODE=unixcc
49144 DEPSFLAG="-M"
49145 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 49146echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49147 elif test "x$HPCC" = "xyes"; then
49148 DEPSMODE=unixcc
49149 DEPSFLAG="+make"
49150 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 49151echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49152 elif test "x$COMPAQCC" = "xyes"; then
49153 DEPSMODE=gcc
49154 DEPSFLAG="-MD"
49155 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 49156echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49157 else
49158 DEPS_TRACKING=0
49159 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 49160echo "${ECHO_T}none" >&6
f10e38c4 49161 fi
a848cd7e 49162
f10e38c4 49163 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49164
49165D='$'
49166cat <<EOF >bk-deps
a848cd7e
SC
49167#!/bin/sh
49168
49169# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49170# script. It is used to track C/C++ files dependencies in portable way.
49171#
49172# Permission is given to use this file in any way.
49173
473276a9 49174DEPSMODE=${DEPSMODE}
a848cd7e 49175DEPSDIR=.deps
0ad5d837 49176DEPSFLAG="${DEPSFLAG}"
a848cd7e 49177
473276a9 49178mkdir -p ${D}DEPSDIR
a848cd7e 49179
473276a9 49180if test ${D}DEPSMODE = gcc ; then
0ad5d837 49181 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49182 status=${D}?
49183 if test ${D}{status} != 0 ; then
49184 exit ${D}{status}
a848cd7e
SC
49185 fi
49186 # move created file to the location we want it in:
473276a9
VS
49187 while test ${D}# -gt 0; do
49188 case "${D}1" in
a848cd7e
SC
49189 -o )
49190 shift
473276a9 49191 objfile=${D}1
a848cd7e
SC
49192 ;;
49193 -* )
49194 ;;
49195 * )
473276a9 49196 srcfile=${D}1
a848cd7e
SC
49197 ;;
49198 esac
49199 shift
49200 done
1e9e8aba
DE
49201 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49202 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49203 if test -f ${D}depfile ; then
49204 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49205 rm -f ${D}depfile
a848cd7e 49206 else
a1aa0349 49207 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49208 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49209 if test ! -f ${D}depfile ; then
49210 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49211 depfile="${D}objfile.d"
49212 fi
473276a9
VS
49213 if test -f ${D}depfile ; then
49214 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49215 rm -f ${D}depfile
a848cd7e
SC
49216 fi
49217 fi
49218 exit 0
81f90336 49219elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49220 ${D}* || exit ${D}?
81f90336
MW
49221 # Run mwcc again with -MM and redirect into the dep file we want
49222 # NOTE: We can't use shift here because we need ${D}* to be valid
49223 prevarg=
49224 for arg in ${D}* ; do
49225 if test "${D}prevarg" = "-o"; then
49226 objfile=${D}arg
49227 else
49228 case "${D}arg" in
49229 -* )
49230 ;;
49231 * )
49232 srcfile=${D}arg
49233 ;;
49234 esac
49235 fi
49236 prevarg="${D}arg"
49237 done
0ad5d837 49238 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49239 exit 0
0ad5d837 49240elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49241 ${D}* || exit ${D}?
a9e5b1f0
MW
49242 # Run compiler again with deps flag and redirect into the dep file.
49243 # It doesn't work if the '-o FILE' option is used, but without it the
49244 # dependency file will contain the wrong name for the object. So it is
49245 # removed from the command line, and the dep file is fixed with sed.
49246 cmd=""
49247 while test ${D}# -gt 0; do
49248 case "${D}1" in
49249 -o )
49250 shift
49251 objfile=${D}1
49252 ;;
49253 * )
49254 eval arg${D}#=\\${D}1
49255 cmd="${D}cmd \\${D}arg${D}#"
49256 ;;
49257 esac
49258 shift
49259 done
0ad5d837 49260 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49261 exit 0
a848cd7e 49262else
473276a9
VS
49263 ${D}*
49264 exit ${D}?
a848cd7e
SC
49265fi
49266EOF
473276a9 49267
f10e38c4
VZ
49268 chmod +x bk-deps
49269 fi
a848cd7e
SC
49270 fi
49271
49272
49273
49274
a848cd7e
SC
49275 case ${BAKEFILE_HOST} in
49276 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49277 if test -n "$ac_tool_prefix"; then
49278 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49279set dummy ${ac_tool_prefix}windres; ac_word=$2
49280echo "$as_me:$LINENO: checking for $ac_word" >&5
49281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49282if test "${ac_cv_prog_WINDRES+set}" = set; then
49283 echo $ECHO_N "(cached) $ECHO_C" >&6
49284else
49285 if test -n "$WINDRES"; then
49286 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49287else
49288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49289for as_dir in $PATH
49290do
49291 IFS=$as_save_IFS
49292 test -z "$as_dir" && as_dir=.
49293 for ac_exec_ext in '' $ac_executable_extensions; do
49294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49295 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49297 break 2
49298 fi
49299done
49300done
49301
49302fi
49303fi
49304WINDRES=$ac_cv_prog_WINDRES
49305if test -n "$WINDRES"; then
49306 echo "$as_me:$LINENO: result: $WINDRES" >&5
49307echo "${ECHO_T}$WINDRES" >&6
49308else
49309 echo "$as_me:$LINENO: result: no" >&5
49310echo "${ECHO_T}no" >&6
49311fi
49312
49313fi
49314if test -z "$ac_cv_prog_WINDRES"; then
49315 ac_ct_WINDRES=$WINDRES
49316 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49317set dummy windres; ac_word=$2
49318echo "$as_me:$LINENO: checking for $ac_word" >&5
49319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49320if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49321 echo $ECHO_N "(cached) $ECHO_C" >&6
49322else
8ced02f6
DE
49323 if test -n "$ac_ct_WINDRES"; then
49324 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49325else
49326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49327for as_dir in $PATH
49328do
49329 IFS=$as_save_IFS
49330 test -z "$as_dir" && as_dir=.
49331 for ac_exec_ext in '' $ac_executable_extensions; do
49332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49333 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49335 break 2
49336 fi
49337done
49338done
49339
a848cd7e
SC
49340fi
49341fi
8ced02f6
DE
49342ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49343if test -n "$ac_ct_WINDRES"; then
49344 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49345echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49346else
49347 echo "$as_me:$LINENO: result: no" >&5
49348echo "${ECHO_T}no" >&6
49349fi
49350
8ced02f6
DE
49351 WINDRES=$ac_ct_WINDRES
49352else
49353 WINDRES="$ac_cv_prog_WINDRES"
49354fi
49355
a848cd7e
SC
49356 ;;
49357
1e9e8aba 49358 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49359 # Extract the first word of "Rez", so it can be a program name with args.
49360set dummy Rez; ac_word=$2
49361echo "$as_me:$LINENO: checking for $ac_word" >&5
49362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49363if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49364 echo $ECHO_N "(cached) $ECHO_C" >&6
49365else
8ced02f6
DE
49366 if test -n "$REZ"; then
49367 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49368else
49369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49370for as_dir in $PATH
49371do
49372 IFS=$as_save_IFS
49373 test -z "$as_dir" && as_dir=.
49374 for ac_exec_ext in '' $ac_executable_extensions; do
49375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49376 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49378 break 2
49379 fi
49380done
49381done
49382
8ced02f6 49383 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49384fi
49385fi
8ced02f6
DE
49386REZ=$ac_cv_prog_REZ
49387if test -n "$REZ"; then
49388 echo "$as_me:$LINENO: result: $REZ" >&5
49389echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49390else
49391 echo "$as_me:$LINENO: result: no" >&5
49392echo "${ECHO_T}no" >&6
49393fi
49394
49395 # Extract the first word of "SetFile", so it can be a program name with args.
49396set dummy SetFile; ac_word=$2
49397echo "$as_me:$LINENO: checking for $ac_word" >&5
49398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49399if test "${ac_cv_prog_SETFILE+set}" = set; then
49400 echo $ECHO_N "(cached) $ECHO_C" >&6
49401else
49402 if test -n "$SETFILE"; then
49403 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49404else
49405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49406for as_dir in $PATH
49407do
49408 IFS=$as_save_IFS
49409 test -z "$as_dir" && as_dir=.
49410 for ac_exec_ext in '' $ac_executable_extensions; do
49411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49412 ac_cv_prog_SETFILE="SetFile"
49413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49414 break 2
49415 fi
49416done
49417done
49418
49419 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49420fi
49421fi
49422SETFILE=$ac_cv_prog_SETFILE
49423if test -n "$SETFILE"; then
49424 echo "$as_me:$LINENO: result: $SETFILE" >&5
49425echo "${ECHO_T}$SETFILE" >&6
49426else
49427 echo "$as_me:$LINENO: result: no" >&5
49428echo "${ECHO_T}no" >&6
49429fi
49430
49431 ;;
49432 esac
49433
49434
49435
49436
49437
8ced02f6 49438
f10e38c4 49439 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 49440
dcc1b6ad 49441
f10e38c4 49442BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 49443
646b6ec1 49444
74b84332 49445
a848cd7e
SC
49446 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49447if test "${enable_precomp_headers+set}" = set; then
49448 enableval="$enable_precomp_headers"
49449 bk_use_pch="$enableval"
49450fi;
49451
49452 GCC_PCH=0
f10e38c4
VZ
49453 ICC_PCH=0
49454 USE_PCH=0
a848cd7e 49455
5c60e845
MW
49456 case ${BAKEFILE_HOST} in
49457 *-*-cygwin* )
49458 bk_use_pch="no"
49459 ;;
49460 esac
49461
a848cd7e
SC
49462 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49463 if test "x$GCC" = "xyes"; then
49464 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49465echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49466 cat >conftest.$ac_ext <<_ACEOF
49467/* confdefs.h. */
49468_ACEOF
49469cat confdefs.h >>conftest.$ac_ext
49470cat >>conftest.$ac_ext <<_ACEOF
49471/* end confdefs.h. */
49472
49473int
49474main ()
49475{
49476
49477 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49478 There is no PCH support
a848cd7e
SC
49479 #endif
49480 #if (__GNUC__ < 3)
e5efa97e 49481 There is no PCH support
a848cd7e
SC
49482 #endif
49483 #if (__GNUC__ == 3) && \
49484 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49485 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49486 ( defined(__INTEL_COMPILER) )
e5efa97e 49487 There is no PCH support
a848cd7e
SC
49488 #endif
49489
49490 ;
49491 return 0;
49492}
49493_ACEOF
49494rm -f conftest.$ac_objext
49495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49496 (eval $ac_compile) 2>conftest.er1
a848cd7e 49497 ac_status=$?
ac1cb8d3
VS
49498 grep -v '^ *+' conftest.er1 >conftest.err
49499 rm -f conftest.er1
49500 cat conftest.err >&5
a848cd7e
SC
49501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49502 (exit $ac_status); } &&
bb9e79c0 49503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49505 (eval $ac_try) 2>&5
49506 ac_status=$?
49507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49508 (exit $ac_status); }; } &&
49509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49511 (eval $ac_try) 2>&5
49512 ac_status=$?
49513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49514 (exit $ac_status); }; }; then
49515
49516 echo "$as_me:$LINENO: result: yes" >&5
49517echo "${ECHO_T}yes" >&6
a848cd7e
SC
49518 GCC_PCH=1
49519
49520else
49521 echo "$as_me: failed program was:" >&5
49522sed 's/^/| /' conftest.$ac_ext >&5
49523
49524
f10e38c4
VZ
49525 cat >conftest.$ac_ext <<_ACEOF
49526/* confdefs.h. */
49527_ACEOF
49528cat confdefs.h >>conftest.$ac_ext
49529cat >>conftest.$ac_ext <<_ACEOF
49530/* end confdefs.h. */
49531
49532int
49533main ()
49534{
49535
49536 #if !defined(__INTEL_COMPILER) || \
49537 (__INTEL_COMPILER < 800)
e5efa97e 49538 There is no PCH support
f10e38c4
VZ
49539 #endif
49540
49541 ;
49542 return 0;
49543}
49544_ACEOF
49545rm -f conftest.$ac_objext
49546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49547 (eval $ac_compile) 2>conftest.er1
49548 ac_status=$?
49549 grep -v '^ *+' conftest.er1 >conftest.err
49550 rm -f conftest.er1
49551 cat conftest.err >&5
49552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49553 (exit $ac_status); } &&
bb9e79c0 49554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49556 (eval $ac_try) 2>&5
49557 ac_status=$?
49558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49559 (exit $ac_status); }; } &&
49560 { ac_try='test -s conftest.$ac_objext'
49561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49562 (eval $ac_try) 2>&5
49563 ac_status=$?
49564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49565 (exit $ac_status); }; }; then
49566
49567 echo "$as_me:$LINENO: result: yes" >&5
49568echo "${ECHO_T}yes" >&6
49569 ICC_PCH=1
49570
49571else
49572 echo "$as_me: failed program was:" >&5
49573sed 's/^/| /' conftest.$ac_ext >&5
49574
49575
49576 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49577echo "${ECHO_T}no" >&6
49578
49579fi
ac1cb8d3 49580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49581
49582fi
49583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49584 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49585 USE_PCH=1
1e9e8aba
DE
49586
49587D='$'
49588cat <<EOF >bk-make-pch
a848cd7e
SC
49589#!/bin/sh
49590
49591# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49592# script. It is used to generated precompiled headers.
49593#
49594# Permission is given to use this file in any way.
49595
1e9e8aba
DE
49596outfile="${D}{1}"
49597header="${D}{2}"
a848cd7e
SC
49598shift
49599shift
49600
f10e38c4
VZ
49601compiler=""
49602headerfile=""
49603
1e9e8aba 49604while test ${D}{#} -gt 0; do
f10e38c4 49605 add_to_cmdline=1
1e9e8aba 49606 case "${D}{1}" in
a848cd7e 49607 -I* )
1e9e8aba
DE
49608 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49609 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49610 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49611 fi
49612 ;;
f10e38c4
VZ
49613 -use-pch|-use_pch )
49614 shift
49615 add_to_cmdline=0
49616 ;;
a848cd7e 49617 esac
f10e38c4
VZ
49618 if test ${D}add_to_cmdline = 1 ; then
49619 compiler="${D}{compiler} ${D}{1}"
49620 fi
a848cd7e
SC
49621 shift
49622done
49623
1e9e8aba 49624if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49625 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49626else
1e9e8aba
DE
49627 if test -f ${D}{outfile} ; then
49628 rm -f ${D}{outfile}
a848cd7e 49629 else
1e9e8aba 49630 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49631 fi
1e9e8aba 49632 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49633 mkdir -p .deps
f10e38c4
VZ
49634 if test "x${GCC_PCH}" = "x1" ; then
49635 # can do this because gcc is >= 3.4:
49636 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49637 elif test "x${ICC_PCH}" = "x1" ; then
49638 filename=pch_gen-${D}${D}
49639 file=${D}{filename}.c
49640 dfile=${D}{filename}.d
49641 cat > ${D}file <<EOT
49642#include "${D}header"
49643EOT
49644 # using -MF icc complains about differing command lines in creation/use
49645 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49646 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49647 rm -f ${D}file ${D}dfile ${D}{filename}.o
49648 fi
1e9e8aba 49649 exit ${D}{?}
a848cd7e
SC
49650fi
49651EOF
1e9e8aba 49652
a848cd7e
SC
49653 chmod +x bk-make-pch
49654 fi
49655 fi
49656 fi
49657
49658
49659
f10e38c4 49660
a848cd7e
SC
49661 COND_BUILD_DEBUG="#"
49662 if test "x$BUILD" = "xdebug" ; then
49663 COND_BUILD_DEBUG=""
49664 fi
49665
49666 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49667 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49668 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49669 fi
49670
49671 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49672 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49673 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49674 fi
49675
49676 COND_BUILD_DEBUG_UNICODE_0="#"
49677 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49678 COND_BUILD_DEBUG_UNICODE_0=""
49679 fi
49680
49681 COND_BUILD_DEBUG_UNICODE_1="#"
49682 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49683 COND_BUILD_DEBUG_UNICODE_1=""
49684 fi
49685
49686 COND_BUILD_RELEASE="#"
49687 if test "x$BUILD" = "xrelease" ; then
49688 COND_BUILD_RELEASE=""
49689 fi
49690
49691 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49692 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49693 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49694 fi
49695
49696 COND_BUILD_RELEASE_UNICODE_0="#"
49697 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49698 COND_BUILD_RELEASE_UNICODE_0=""
49699 fi
49700
49701 COND_BUILD_RELEASE_UNICODE_1="#"
49702 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49703 COND_BUILD_RELEASE_UNICODE_1=""
49704 fi
49705
49706 COND_DEBUG_FLAG_1="#"
49707 if test "x$DEBUG_FLAG" = "x1" ; then
49708 COND_DEBUG_FLAG_1=""
49709 fi
49710
49711 COND_DEBUG_INFO_0="#"
49712 if test "x$DEBUG_INFO" = "x0" ; then
49713 COND_DEBUG_INFO_0=""
49714 fi
49715
49716 COND_DEBUG_INFO_1="#"
49717 if test "x$DEBUG_INFO" = "x1" ; then
49718 COND_DEBUG_INFO_1=""
49719 fi
49720
49721 COND_DEPS_TRACKING_0="#"
49722 if test "x$DEPS_TRACKING" = "x0" ; then
49723 COND_DEPS_TRACKING_0=""
49724 fi
49725
49726 COND_DEPS_TRACKING_1="#"
49727 if test "x$DEPS_TRACKING" = "x1" ; then
49728 COND_DEPS_TRACKING_1=""
49729 fi
49730
49731 COND_GCC_PCH_1="#"
49732 if test "x$GCC_PCH" = "x1" ; then
49733 COND_GCC_PCH_1=""
49734 fi
49735
f10e38c4
VZ
49736 COND_ICC_PCH_1="#"
49737 if test "x$ICC_PCH" = "x1" ; then
49738 COND_ICC_PCH_1=""
49739 fi
49740
a848cd7e
SC
49741 COND_MONOLITHIC_0="#"
49742 if test "x$MONOLITHIC" = "x0" ; then
49743 COND_MONOLITHIC_0=""
49744 fi
49745
49746 COND_MONOLITHIC_0_SHARED_0="#"
49747 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49748 COND_MONOLITHIC_0_SHARED_0=""
49749 fi
49750
3f60522a
JS
49751 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49752 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49753 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49754 fi
49755
a848cd7e
SC
49756 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49757 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49758 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49759 fi
49760
90970d69
DE
49761 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49762 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49763 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49764 fi
49765
f10e38c4
VZ
49766 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49767 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49768 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49769 fi
49770
a848cd7e
SC
49771 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49772 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49773 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49774 fi
49775
6671c68b
VZ
49776 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49777 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49778 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49779 fi
49780
a848cd7e
SC
49781 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49782 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49783 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49784 fi
49785
8b6682b9
JS
49786 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49787 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49788 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49789 fi
49790
ceec2216
RL
49791 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49792 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49793 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49794 fi
49795
a848cd7e
SC
49796 COND_MONOLITHIC_0_SHARED_1="#"
49797 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49798 COND_MONOLITHIC_0_SHARED_1=""
49799 fi
49800
3f60522a
JS
49801 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49802 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49803 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49804 fi
49805
a848cd7e
SC
49806 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49807 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49808 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49809 fi
49810
90970d69
DE
49811 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49812 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49813 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49814 fi
49815
f10e38c4
VZ
49816 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49817 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49818 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49819 fi
49820
a848cd7e
SC
49821 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49822 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49824 fi
49825
6671c68b
VZ
49826 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49827 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49828 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49829 fi
49830
a848cd7e
SC
49831 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49832 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49833 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49834 fi
49835
8b6682b9
JS
49836 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49837 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49838 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49839 fi
49840
ceec2216
RL
49841 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49842 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49843 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49844 fi
49845
e5efa97e
VZ
49846 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49847 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49848 COND_MONOLITHIC_0_USE_MEDIA_1=""
49849 fi
49850
a848cd7e
SC
49851 COND_MONOLITHIC_0_USE_ODBC_1="#"
49852 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49853 COND_MONOLITHIC_0_USE_ODBC_1=""
49854 fi
49855
49856 COND_MONOLITHIC_1="#"
49857 if test "x$MONOLITHIC" = "x1" ; then
49858 COND_MONOLITHIC_1=""
49859 fi
49860
49861 COND_MONOLITHIC_1_SHARED_0="#"
49862 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49863 COND_MONOLITHIC_1_SHARED_0=""
49864 fi
49865
49866 COND_MONOLITHIC_1_SHARED_1="#"
49867 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49868 COND_MONOLITHIC_1_SHARED_1=""
49869 fi
49870
49871 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49872 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49873 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49874 fi
49875
49876 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49877 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49878 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49879 fi
49880
eb730a0c
JS
49881 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49882 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49883 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49884 fi
49885
a848cd7e
SC
49886 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49887 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49888 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49889 fi
49890
49891 COND_PLATFORM_MACOSX_1="#"
49892 if test "x$PLATFORM_MACOSX" = "x1" ; then
49893 COND_PLATFORM_MACOSX_1=""
49894 fi
49895
a30f955f
VS
49896 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49897 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49898 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49899 fi
49900
a848cd7e
SC
49901 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49902 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49903 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49904 fi
49905
49906 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49907 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49908 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49909 fi
49910
49911 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49912 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49913 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49914 fi
49915
fc480dc1
DE
49916 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49917 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49918 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49919 fi
49920
1e9e8aba
DE
49921 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49922 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49923 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49924 fi
49925
ebee3cd0
VS
49926 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49927 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49928 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49929 fi
49930
49931 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49932 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49933 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49934 fi
49935
a848cd7e
SC
49936 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49937 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49938 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49939 fi
49940
49941 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49942 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49943 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49944 fi
49945
b48a2016
DE
49946 COND_PLATFORM_MACOS_1="#"
49947 if test "x$PLATFORM_MACOS" = "x1" ; then
49948 COND_PLATFORM_MACOS_1=""
49949 fi
49950
083508af
MW
49951 COND_PLATFORM_MAC_1="#"
49952 if test "x$PLATFORM_MAC" = "x1" ; then
49953 COND_PLATFORM_MAC_1=""
49954 fi
49955
e5efa97e
VZ
49956 COND_PLATFORM_MSDOS_0="#"
49957 if test "x$PLATFORM_MSDOS" = "x0" ; then
49958 COND_PLATFORM_MSDOS_0=""
49959 fi
49960
83d8eb47
MW
49961 COND_PLATFORM_MSDOS_1="#"
49962 if test "x$PLATFORM_MSDOS" = "x1" ; then
49963 COND_PLATFORM_MSDOS_1=""
49964 fi
49965
a848cd7e
SC
49966 COND_PLATFORM_OS2_1="#"
49967 if test "x$PLATFORM_OS2" = "x1" ; then
49968 COND_PLATFORM_OS2_1=""
49969 fi
49970
49971 COND_PLATFORM_UNIX_0="#"
49972 if test "x$PLATFORM_UNIX" = "x0" ; then
49973 COND_PLATFORM_UNIX_0=""
49974 fi
49975
49976 COND_PLATFORM_UNIX_1="#"
49977 if test "x$PLATFORM_UNIX" = "x1" ; then
49978 COND_PLATFORM_UNIX_1=""
49979 fi
49980
49981 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49982 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49983 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49984 fi
49985
49986 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49987 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49988 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49989 fi
49990
49991 COND_PLATFORM_WIN32_0="#"
49992 if test "x$PLATFORM_WIN32" = "x0" ; then
49993 COND_PLATFORM_WIN32_0=""
49994 fi
49995
49996 COND_PLATFORM_WIN32_1="#"
49997 if test "x$PLATFORM_WIN32" = "x1" ; then
49998 COND_PLATFORM_WIN32_1=""
49999 fi
50000
50001 COND_SHARED_0="#"
50002 if test "x$SHARED" = "x0" ; then
50003 COND_SHARED_0=""
50004 fi
50005
083508af
MW
50006 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50007 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50008 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50009 fi
50010
50011 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50012 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50013 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50014 fi
50015
50016 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50017 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50018 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50019 fi
50020
a848cd7e
SC
50021 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50022 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50023 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50024 fi
50025
50026 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50027 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50028 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50029 fi
50030
50031 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50032 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50033 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50034 fi
50035
50036 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50037 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50038 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50039 fi
50040
083508af
MW
50041 COND_SHARED_0_USE_XRC_1="#"
50042 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50043 COND_SHARED_0_USE_XRC_1=""
50044 fi
50045
a848cd7e
SC
50046 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
50047 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50048 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
50049 fi
50050
50051 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
50052 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50053 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
50054 fi
50055
50056 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
50057 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50058 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
50059 fi
50060
50061 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50062 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50063 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50064 fi
50065
50066 COND_SHARED_1="#"
50067 if test "x$SHARED" = "x1" ; then
50068 COND_SHARED_1=""
50069 fi
50070
50071 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50072 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50073 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50074 fi
50075
083508af
MW
50076 COND_SHARED_1_USE_XRC_1="#"
50077 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50078 COND_SHARED_1_USE_XRC_1=""
50079 fi
50080
a30f955f
VS
50081 COND_TOOLKIT_="#"
50082 if test "x$TOOLKIT" = "x" ; then
50083 COND_TOOLKIT_=""
50084 fi
50085
a848cd7e
SC
50086 COND_TOOLKIT_COCOA="#"
50087 if test "x$TOOLKIT" = "xCOCOA" ; then
50088 COND_TOOLKIT_COCOA=""
50089 fi
50090
a49baeab
DE
50091 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50092 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50093 COND_TOOLKIT_COCOA_USE_GUI_1=""
50094 fi
50095
a848cd7e
SC
50096 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50097 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50098 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50099 fi
50100
b3c86150
VS
50101 COND_TOOLKIT_DFB="#"
50102 if test "x$TOOLKIT" = "xDFB" ; then
50103 COND_TOOLKIT_DFB=""
50104 fi
50105
50106 COND_TOOLKIT_DFB_USE_GUI_1="#"
50107 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50108 COND_TOOLKIT_DFB_USE_GUI_1=""
50109 fi
50110
a848cd7e
SC
50111 COND_TOOLKIT_GTK="#"
50112 if test "x$TOOLKIT" = "xGTK" ; then
50113 COND_TOOLKIT_GTK=""
50114 fi
50115
d044deea
MW
50116 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50117 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50118 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50119 fi
50120
50121 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50122 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50123 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50124 fi
50125
50126 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50127 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50128 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50129 fi
50130
50131 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50132 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50133 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50134 fi
50135
50136 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50137 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50138 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50139 fi
50140
50141 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50142 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50143 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50144 fi
50145
a848cd7e
SC
50146 COND_TOOLKIT_GTK_USE_GUI_1="#"
50147 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50148 COND_TOOLKIT_GTK_USE_GUI_1=""
50149 fi
50150
a848cd7e
SC
50151 COND_TOOLKIT_MAC="#"
50152 if test "x$TOOLKIT" = "xMAC" ; then
50153 COND_TOOLKIT_MAC=""
50154 fi
50155
50156 COND_TOOLKIT_MAC_USE_GUI_1="#"
50157 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50158 COND_TOOLKIT_MAC_USE_GUI_1=""
50159 fi
50160
50161 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50162 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50163 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50164 fi
50165
50166 COND_TOOLKIT_MGL="#"
50167 if test "x$TOOLKIT" = "xMGL" ; then
50168 COND_TOOLKIT_MGL=""
50169 fi
50170
50171 COND_TOOLKIT_MGL_USE_GUI_1="#"
50172 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50173 COND_TOOLKIT_MGL_USE_GUI_1=""
50174 fi
50175
50176 COND_TOOLKIT_MOTIF="#"
50177 if test "x$TOOLKIT" = "xMOTIF" ; then
50178 COND_TOOLKIT_MOTIF=""
50179 fi
50180
50181 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50182 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50183 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50184 fi
50185
50186 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50187 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50188 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50189 fi
50190
50191 COND_TOOLKIT_MSW="#"
50192 if test "x$TOOLKIT" = "xMSW" ; then
50193 COND_TOOLKIT_MSW=""
50194 fi
50195
50196 COND_TOOLKIT_MSW_USE_GUI_1="#"
50197 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50198 COND_TOOLKIT_MSW_USE_GUI_1=""
50199 fi
50200
50201 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50202 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50203 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50204 fi
50205
0ee4059d
DE
50206 COND_TOOLKIT_MSW_WXUNIV_0="#"
50207 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50208 COND_TOOLKIT_MSW_WXUNIV_0=""
50209 fi
50210
a848cd7e
SC
50211 COND_TOOLKIT_PM="#"
50212 if test "x$TOOLKIT" = "xPM" ; then
50213 COND_TOOLKIT_PM=""
50214 fi
50215
50216 COND_TOOLKIT_PM_USE_GUI_1="#"
50217 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50218 COND_TOOLKIT_PM_USE_GUI_1=""
50219 fi
50220
50221 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50222 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50223 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50224 fi
50225
3fd9c298
DE
50226 COND_TOOLKIT_WINCE="#"
50227 if test "x$TOOLKIT" = "xWINCE" ; then
50228 COND_TOOLKIT_WINCE=""
50229 fi
50230
50231 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50232 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50233 COND_TOOLKIT_WINCE_USE_GUI_1=""
50234 fi
50235
50236 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50237 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50238 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50239 fi
50240
0ee4059d
DE
50241 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50242 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50243 COND_TOOLKIT_WINCE_WXUNIV_0=""
50244 fi
50245
a848cd7e
SC
50246 COND_TOOLKIT_X11="#"
50247 if test "x$TOOLKIT" = "xX11" ; then
50248 COND_TOOLKIT_X11=""
50249 fi
50250
50251 COND_TOOLKIT_X11_USE_GUI_1="#"
50252 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50253 COND_TOOLKIT_X11_USE_GUI_1=""
50254 fi
50255
50256 COND_UNICODE_1="#"
50257 if test "x$UNICODE" = "x1" ; then
50258 COND_UNICODE_1=""
50259 fi
50260
50261 COND_USE_EXCEPTIONS_0="#"
50262 if test "x$USE_EXCEPTIONS" = "x0" ; then
50263 COND_USE_EXCEPTIONS_0=""
50264 fi
50265
50266 COND_USE_EXCEPTIONS_1="#"
50267 if test "x$USE_EXCEPTIONS" = "x1" ; then
50268 COND_USE_EXCEPTIONS_1=""
50269 fi
50270
50271 COND_USE_GUI_0="#"
50272 if test "x$USE_GUI" = "x0" ; then
50273 COND_USE_GUI_0=""
50274 fi
50275
50276 COND_USE_GUI_1="#"
50277 if test "x$USE_GUI" = "x1" ; then
50278 COND_USE_GUI_1=""
50279 fi
50280
50281 COND_USE_GUI_1_WXUNIV_0="#"
50282 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50283 COND_USE_GUI_1_WXUNIV_0=""
50284 fi
50285
50286 COND_USE_GUI_1_WXUNIV_1="#"
50287 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50288 COND_USE_GUI_1_WXUNIV_1=""
50289 fi
50290
50291 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50292 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50293 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50294 fi
50295
50296 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50297 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50298 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50299 fi
50300
50301 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50302 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50303 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50304 fi
50305
083508af
MW
50306 COND_USE_ODBC_1="#"
50307 if test "x$USE_ODBC" = "x1" ; then
50308 COND_USE_ODBC_1=""
50309 fi
50310
50311 COND_USE_OPENGL_1="#"
50312 if test "x$USE_OPENGL" = "x1" ; then
50313 COND_USE_OPENGL_1=""
50314 fi
50315
f10e38c4
VZ
50316 COND_USE_PCH_1="#"
50317 if test "x$USE_PCH" = "x1" ; then
50318 COND_USE_PCH_1=""
50319 fi
50320
a848cd7e
SC
50321 COND_USE_PLUGINS_0="#"
50322 if test "x$USE_PLUGINS" = "x0" ; then
50323 COND_USE_PLUGINS_0=""
50324 fi
50325
0b78747f
MW
50326 COND_USE_RTTI_0="#"
50327 if test "x$USE_RTTI" = "x0" ; then
50328 COND_USE_RTTI_0=""
50329 fi
50330
50331 COND_USE_RTTI_1="#"
50332 if test "x$USE_RTTI" = "x1" ; then
50333 COND_USE_RTTI_1=""
50334 fi
50335
a848cd7e
SC
50336 COND_USE_SOSYMLINKS_1="#"
50337 if test "x$USE_SOSYMLINKS" = "x1" ; then
50338 COND_USE_SOSYMLINKS_1=""
50339 fi
50340
eb730a0c
JS
50341 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50342 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50343 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50344 fi
50345
a848cd7e
SC
50346 COND_USE_SOVERLINUX_1="#"
50347 if test "x$USE_SOVERLINUX" = "x1" ; then
50348 COND_USE_SOVERLINUX_1=""
50349 fi
50350
50351 COND_USE_SOVERSION_0="#"
50352 if test "x$USE_SOVERSION" = "x0" ; then
50353 COND_USE_SOVERSION_0=""
50354 fi
50355
50356 COND_USE_SOVERSOLARIS_1="#"
50357 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50358 COND_USE_SOVERSOLARIS_1=""
50359 fi
50360
0b78747f
MW
50361 COND_USE_THREADS_0="#"
50362 if test "x$USE_THREADS" = "x0" ; then
50363 COND_USE_THREADS_0=""
50364 fi
50365
50366 COND_USE_THREADS_1="#"
50367 if test "x$USE_THREADS" = "x1" ; then
50368 COND_USE_THREADS_1=""
50369 fi
50370
a13a7f89
RL
50371 COND_USE_XRC_1="#"
50372 if test "x$USE_XRC" = "x1" ; then
50373 COND_USE_XRC_1=""
50374 fi
50375
eb730a0c
JS
50376 COND_WINDOWS_IMPLIB_1="#"
50377 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50378 COND_WINDOWS_IMPLIB_1=""
50379 fi
50380
a848cd7e
SC
50381 COND_WITH_PLUGIN_SDL_1="#"
50382 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50383 COND_WITH_PLUGIN_SDL_1=""
50384 fi
50385
1e6eb025
VZ
50386 COND_WXUNIV_0="#"
50387 if test "x$WXUNIV" = "x0" ; then
50388 COND_WXUNIV_0=""
50389 fi
50390
a848cd7e
SC
50391 COND_WXUNIV_1="#"
50392 if test "x$WXUNIV" = "x1" ; then
50393 COND_WXUNIV_1=""
50394 fi
50395
50396 COND_WXUSE_EXPAT_BUILTIN="#"
50397 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50398 COND_WXUSE_EXPAT_BUILTIN=""
50399 fi
50400
50401 COND_WXUSE_LIBJPEG_BUILTIN="#"
50402 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50403 COND_WXUSE_LIBJPEG_BUILTIN=""
50404 fi
50405
50406 COND_WXUSE_LIBPNG_BUILTIN="#"
50407 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50408 COND_WXUSE_LIBPNG_BUILTIN=""
50409 fi
50410
50411 COND_WXUSE_LIBTIFF_BUILTIN="#"
50412 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50413 COND_WXUSE_LIBTIFF_BUILTIN=""
50414 fi
50415
50416 COND_WXUSE_ODBC_BUILTIN="#"
50417 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50418 COND_WXUSE_ODBC_BUILTIN=""
50419 fi
50420
50421 COND_WXUSE_REGEX_BUILTIN="#"
50422 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50423 COND_WXUSE_REGEX_BUILTIN=""
50424 fi
50425
50426 COND_WXUSE_ZLIB_BUILTIN="#"
50427 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50428 COND_WXUSE_ZLIB_BUILTIN=""
50429 fi
50430
50431
50432
810b94f0
MW
50433 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50434 { { 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
50435echo "$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;}
50436 { (exit 1); exit 1; }; }
50437 fi
50438
2057db16
VS
50439 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50440 { { 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
50441echo "$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;}
50442 { (exit 1); exit 1; }; }
50443 fi
50444
a848cd7e 50445
a81d5bb6
MW
50446if test $GCC_PCH = 1
50447then
50448 if test "$wx_cv_gcc_pch_bug" = yes; then
50449 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50450echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50451 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50452echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50453 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50454echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50455 fi
50456
50457 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50458fi
50459
7afc46ab
KO
50460
50461if test "$wxUSE_MAC" = 1 ; then
95768535 50462 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50463 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50464 mv temp bk-deps
50465 chmod +x bk-deps
50466 fi
50467fi
50468
ceec2216
RL
50469if test "$wxUSE_SHARED" = "yes"; then
50470
50471 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50472 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50473
5b674b9d
DE
50474 case "${host}" in
50475 *-pc-os2_emx | *-pc-os2-emx )
50476 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50477 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50478 cp -p ${srcdir}/src/os2/dllnames.sh .
50479 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50480 ;;
50481 esac
ceec2216
RL
50482else
50483
50484 EXE_LINKER="$CXX -o"
50485
50486fi
69120ee4
VZ
50487if test "$wxUSE_OMF" = "yes"; then
50488 case "${host}" in
50489 *-pc-os2_emx | *-pc-os2-emx )
50490 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50491 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50492 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50493 ;;
50494 esac
50495fi
a848cd7e 50496
5ff751d6 50497WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50498
50499SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50500
50501
50502
50503
50504
50505
50506
50507
50508
50509
50510
50511
50512
50513
50514
50515
50516
50517
50518
50519
50520
50521
50522
50523
50524
50525
50526
50527
50528
50529
50530
50531
50532
50533
50534
50535
50536
50537
50538
50539
50540
50541
a848cd7e
SC
50542
50543
50544
50545
50546
50547
50548
50549
50550
50551
50552
50553
a848cd7e
SC
50554
50555
ddd14b14 50556
370d2fd7 50557
8ced02f6 50558
a848cd7e
SC
50559
50560
50561echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50562echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50563set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50564if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50565 echo $ECHO_N "(cached) $ECHO_C" >&6
50566else
50567 cat >conftest.make <<\_ACEOF
50568all:
50569 @echo 'ac_maketemp="$(MAKE)"'
50570_ACEOF
50571# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50572eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50573if test -n "$ac_maketemp"; then
50574 eval ac_cv_prog_make_${ac_make}_set=yes
50575else
50576 eval ac_cv_prog_make_${ac_make}_set=no
50577fi
50578rm -f conftest.make
50579fi
50580if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50581 echo "$as_me:$LINENO: result: yes" >&5
50582echo "${ECHO_T}yes" >&6
50583 SET_MAKE=
50584else
50585 echo "$as_me:$LINENO: result: no" >&5
50586echo "${ECHO_T}no" >&6
50587 SET_MAKE="MAKE=${MAKE-make}"
50588fi
50589
50590
a848cd7e 50591
ceec2216
RL
50592 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50593
a848cd7e 50594
5c60e845
MW
50595if test "$USE_WIN32" = 1; then
50596 ac_config_commands="$ac_config_commands
50597 rcdefs.h
50598 "
50599
50600fi
50601
ceec2216 50602 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50603
a848cd7e 50604
ceec2216 50605 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50606
ceec2216
RL
50607
50608 ac_config_files="$ac_config_files version-script Makefile"
50609
50610
5c60e845 50611 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50612
50613
9103d280 50614
1c14217d 50615if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50616if test "$wxUSE_GUI" = "yes"; then
50617 SUBDIRS="samples demos utils contrib"
50618else SUBDIRS="samples utils"
50619fi
50620
50621
50622
50623# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50624if test "${with_cppunit_prefix+set}" = set; then
50625 withval="$with_cppunit_prefix"
50626 cppunit_config_prefix="$withval"
50627else
50628 cppunit_config_prefix=""
50629fi;
50630
50631# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50632if test "${with_cppunit_exec_prefix+set}" = set; then
50633 withval="$with_cppunit_exec_prefix"
50634 cppunit_config_exec_prefix="$withval"
50635else
50636 cppunit_config_exec_prefix=""
50637fi;
50638
50639 if test x$cppunit_config_exec_prefix != x ; then
50640 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50641 if test x${CPPUNIT_CONFIG+set} != xset ; then
50642 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50643 fi
50644 fi
50645 if test x$cppunit_config_prefix != x ; then
50646 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50647 if test x${CPPUNIT_CONFIG+set} != xset ; then
50648 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50649 fi
50650 fi
50651
50652 # Extract the first word of "cppunit-config", so it can be a program name with args.
50653set dummy cppunit-config; ac_word=$2
50654echo "$as_me:$LINENO: checking for $ac_word" >&5
50655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50656if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50657 echo $ECHO_N "(cached) $ECHO_C" >&6
50658else
50659 case $CPPUNIT_CONFIG in
50660 [\\/]* | ?:[\\/]*)
50661 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50662 ;;
50663 *)
50664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50665for as_dir in $PATH
50666do
50667 IFS=$as_save_IFS
50668 test -z "$as_dir" && as_dir=.
50669 for ac_exec_ext in '' $ac_executable_extensions; do
50670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50671 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50673 break 2
50674 fi
50675done
50676done
50677
50678 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50679 ;;
50680esac
50681fi
50682CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50683
50684if test -n "$CPPUNIT_CONFIG"; then
50685 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50686echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50687else
50688 echo "$as_me:$LINENO: result: no" >&5
50689echo "${ECHO_T}no" >&6
50690fi
50691
50692 cppunit_version_min=1.8.0
50693
50694 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50695echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50696 no_cppunit=""
50697 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50698 echo "$as_me:$LINENO: result: no" >&5
50699echo "${ECHO_T}no" >&6
a848cd7e
SC
50700 no_cppunit=yes
50701 else
50702 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50703 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50704 cppunit_version=`$CPPUNIT_CONFIG --version`
50705
50706 cppunit_major_version=`echo $cppunit_version | \
50707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50708 cppunit_minor_version=`echo $cppunit_version | \
50709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50710 cppunit_micro_version=`echo $cppunit_version | \
50711 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50712
50713 cppunit_major_min=`echo $cppunit_version_min | \
50714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50715 cppunit_minor_min=`echo $cppunit_version_min | \
50716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50717 cppunit_micro_min=`echo $cppunit_version_min | \
50718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50719
50720 cppunit_version_proper=`expr \
50721 $cppunit_major_version \> $cppunit_major_min \| \
50722 $cppunit_major_version \= $cppunit_major_min \& \
50723 $cppunit_minor_version \> $cppunit_minor_min \| \
50724 $cppunit_major_version \= $cppunit_major_min \& \
50725 $cppunit_minor_version \= $cppunit_minor_min \& \
50726 $cppunit_micro_version \>= $cppunit_micro_min `
50727
50728 if test "$cppunit_version_proper" = "1" ; then
50729 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50730echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50731 else
50732 echo "$as_me:$LINENO: result: no" >&5
50733echo "${ECHO_T}no" >&6
50734 no_cppunit=yes
50735 fi
50736 fi
50737
50738 if test "x$no_cppunit" = x ; then
c2218763 50739 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50740 else
50741 CPPUNIT_CFLAGS=""
50742 CPPUNIT_LIBS=""
c2218763 50743 :
a848cd7e
SC
50744 fi
50745
50746
50747
50748
50749
50750for subdir in `echo $SUBDIRS`; do
50751 if test -d ${srcdir}/${subdir} ; then
50752 if test "$wxUSE_GUI" = "yes"; then
50753 if test ${subdir} = "samples"; then
50754 makefiles="samples/Makefile.in $makefiles"
50755 for sample in `echo $SAMPLES_SUBDIRS`; do
50756 if test -d $srcdir/samples/$sample; then
50757 makefiles="samples/$sample/Makefile.in $makefiles"
50758 fi
50759 done
9c112555
MW
50760 else
50761 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50762 eval "disabled=\$$disabled_var"
50763 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50764 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50765 fi
50766 else if test ${subdir} = "samples"; then
50767 makefiles="samples/Makefile.in samples/console/Makefile.in"
50768 elif test ${subdir} = "utils"; then
6537ccf8
VS
50769 makefiles=""
50770 for util in HelpGen tex2rtf ; do
50771 if test -d $srcdir/utils/$util ; then
50772 makefiles="utils/$util/Makefile.in \
50773 utils/$util/src/Makefile.in \
50774 $makefiles"
50775 fi
50776 done
a848cd7e
SC
50777 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50778 fi
50779 fi
50780
50781 for mkin in $makefiles ; do
50782 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50783 ac_config_files="$ac_config_files $mk"
50784
50785 done
50786 fi
50787done
1c14217d 50788fi
a848cd7e
SC
50789cat >confcache <<\_ACEOF
50790# This file is a shell script that caches the results of configure
50791# tests run on this system so they can be shared between configure
50792# scripts and configure runs, see configure's option --config-cache.
50793# It is not useful on other systems. If it contains results you don't
50794# want to keep, you may remove or edit it.
50795#
50796# config.status only pays attention to the cache file if you give it
50797# the --recheck option to rerun configure.
50798#
50799# `ac_cv_env_foo' variables (set or unset) will be overridden when
50800# loading this file, other *unset* `ac_cv_foo' will be assigned the
50801# following values.
50802
50803_ACEOF
50804
50805# The following way of writing the cache mishandles newlines in values,
50806# but we know of no workaround that is simple, portable, and efficient.
50807# So, don't put newlines in cache variables' values.
50808# Ultrix sh set writes to stderr and can't be redirected directly,
50809# and sets the high bit in the cache file unless we assign to the vars.
50810{
50811 (set) 2>&1 |
50812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50813 *ac_space=\ *)
50814 # `set' does not quote correctly, so add quotes (double-quote
50815 # substitution turns \\\\ into \\, and sed turns \\ into \).
50816 sed -n \
ac1cb8d3
VS
50817 "s/'/'\\\\''/g;
50818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50819 ;;
50820 *)
50821 # `set' quotes correctly as required by POSIX, so do not add quotes.
50822 sed -n \
ac1cb8d3 50823 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50824 ;;
50825 esac;
50826} |
50827 sed '
50828 t clear
50829 : clear
50830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50831 t end
50832 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50833 : end' >>confcache
50834if diff $cache_file confcache >/dev/null 2>&1; then :; else
50835 if test -w $cache_file; then
50836 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50837 cat confcache >$cache_file
50838 else
50839 echo "not updating unwritable cache $cache_file"
50840 fi
50841fi
50842rm -f confcache
50843
50844test "x$prefix" = xNONE && prefix=$ac_default_prefix
50845# Let make expand exec_prefix.
50846test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50847
50848# VPATH may cause trouble with some makes, so we remove $(srcdir),
50849# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50850# trailing colons and then remove the whole line if VPATH becomes empty
50851# (actually we leave an empty line to preserve line numbers).
50852if test "x$srcdir" = x.; then
ac1cb8d3 50853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50854s/:*\$(srcdir):*/:/;
50855s/:*\${srcdir}:*/:/;
50856s/:*@srcdir@:*/:/;
ac1cb8d3 50857s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50858s/:*$//;
ac1cb8d3 50859s/^[^=]*=[ ]*$//;
a848cd7e
SC
50860}'
50861fi
50862
50863DEFS=-DHAVE_CONFIG_H
50864
50865ac_libobjs=
50866ac_ltlibobjs=
50867for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50868 # 1. Remove the extension, and $U if already installed.
50869 ac_i=`echo "$ac_i" |
ac1cb8d3 50870 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50871 # 2. Add them.
50872 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50873 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50874done
50875LIBOBJS=$ac_libobjs
50876
50877LTLIBOBJS=$ac_ltlibobjs
50878
50879
50880
50881: ${CONFIG_STATUS=./config.status}
50882ac_clean_files_save=$ac_clean_files
50883ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50884{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50885echo "$as_me: creating $CONFIG_STATUS" >&6;}
50886cat >$CONFIG_STATUS <<_ACEOF
50887#! $SHELL
50888# Generated by $as_me.
50889# Run this file to recreate the current configuration.
50890# Compiler output produced by configure, useful for debugging
50891# configure, is in config.log if it exists.
50892
50893debug=false
50894ac_cs_recheck=false
50895ac_cs_silent=false
50896SHELL=\${CONFIG_SHELL-$SHELL}
50897_ACEOF
50898
50899cat >>$CONFIG_STATUS <<\_ACEOF
50900## --------------------- ##
50901## M4sh Initialization. ##
50902## --------------------- ##
50903
50904# Be Bourne compatible
50905if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50906 emulate sh
50907 NULLCMD=:
50908 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50909 # is contrary to our usage. Disable this feature.
50910 alias -g '${1+"$@"}'='"$@"'
50911elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50912 set -o posix
50913fi
ac1cb8d3 50914DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50915
50916# Support unset when possible.
ac1cb8d3 50917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50918 as_unset=unset
50919else
50920 as_unset=false
50921fi
50922
50923
50924# Work around bugs in pre-3.0 UWIN ksh.
50925$as_unset ENV MAIL MAILPATH
50926PS1='$ '
50927PS2='> '
50928PS4='+ '
50929
50930# NLS nuisances.
50931for as_var in \
50932 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50933 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50934 LC_TELEPHONE LC_TIME
50935do
ac1cb8d3 50936 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50937 eval $as_var=C; export $as_var
50938 else
50939 $as_unset $as_var
50940 fi
50941done
50942
50943# Required to use basename.
50944if expr a : '\(a\)' >/dev/null 2>&1; then
50945 as_expr=expr
50946else
50947 as_expr=false
50948fi
50949
50950if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50951 as_basename=basename
50952else
50953 as_basename=false
50954fi
50955
50956
50957# Name of the executable.
50958as_me=`$as_basename "$0" ||
50959$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50960 X"$0" : 'X\(//\)$' \| \
50961 X"$0" : 'X\(/\)$' \| \
50962 . : '\(.\)' 2>/dev/null ||
50963echo X/"$0" |
50964 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50965 /^X\/\(\/\/\)$/{ s//\1/; q; }
50966 /^X\/\(\/\).*/{ s//\1/; q; }
50967 s/.*/./; q'`
50968
50969
50970# PATH needs CR, and LINENO needs CR and PATH.
50971# Avoid depending upon Character Ranges.
50972as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50973as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50974as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50975as_cr_digits='0123456789'
50976as_cr_alnum=$as_cr_Letters$as_cr_digits
50977
50978# The user is always right.
50979if test "${PATH_SEPARATOR+set}" != set; then
50980 echo "#! /bin/sh" >conf$$.sh
50981 echo "exit 0" >>conf$$.sh
50982 chmod +x conf$$.sh
50983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50984 PATH_SEPARATOR=';'
50985 else
50986 PATH_SEPARATOR=:
50987 fi
50988 rm -f conf$$.sh
50989fi
50990
50991
50992 as_lineno_1=$LINENO
50993 as_lineno_2=$LINENO
50994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50995 test "x$as_lineno_1" != "x$as_lineno_2" &&
50996 test "x$as_lineno_3" = "x$as_lineno_2" || {
50997 # Find who we are. Look in the path if we contain no path at all
50998 # relative or not.
50999 case $0 in
51000 *[\\/]* ) as_myself=$0 ;;
51001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51002for as_dir in $PATH
51003do
51004 IFS=$as_save_IFS
51005 test -z "$as_dir" && as_dir=.
51006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51007done
51008
51009 ;;
51010 esac
51011 # We did not find ourselves, most probably we were run as `sh COMMAND'
51012 # in which case we are not to be found in the path.
51013 if test "x$as_myself" = x; then
51014 as_myself=$0
51015 fi
51016 if test ! -f "$as_myself"; then
51017 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51018echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51019 { (exit 1); exit 1; }; }
51020 fi
51021 case $CONFIG_SHELL in
51022 '')
51023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51024for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51025do
51026 IFS=$as_save_IFS
51027 test -z "$as_dir" && as_dir=.
51028 for as_base in sh bash ksh sh5; do
51029 case $as_dir in
51030 /*)
51031 if ("$as_dir/$as_base" -c '
51032 as_lineno_1=$LINENO
51033 as_lineno_2=$LINENO
51034 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51035 test "x$as_lineno_1" != "x$as_lineno_2" &&
51036 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51037 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51038 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51039 CONFIG_SHELL=$as_dir/$as_base
51040 export CONFIG_SHELL
51041 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51042 fi;;
51043 esac
51044 done
51045done
51046;;
51047 esac
51048
51049 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51050 # uniformly replaced by the line number. The first 'sed' inserts a
51051 # line-number line before each line; the second 'sed' does the real
51052 # work. The second script uses 'N' to pair each line-number line
51053 # with the numbered line, and appends trailing '-' during
51054 # substitution so that $LINENO is not a special case at line end.
51055 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51056 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51057 sed '=' <$as_myself |
51058 sed '
51059 N
51060 s,$,-,
51061 : loop
51062 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51063 t loop
51064 s,-$,,
51065 s,^['$as_cr_digits']*\n,,
51066 ' >$as_me.lineno &&
51067 chmod +x $as_me.lineno ||
51068 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51069echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51070 { (exit 1); exit 1; }; }
51071
51072 # Don't try to exec as it changes $[0], causing all sort of problems
51073 # (the dirname of $[0] is not the place where we might find the
51074 # original and so on. Autoconf is especially sensible to this).
51075 . ./$as_me.lineno
51076 # Exit status is that of the last command.
51077 exit
51078}
51079
51080
51081case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51082 *c*,-n*) ECHO_N= ECHO_C='
51083' ECHO_T=' ' ;;
51084 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51085 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51086esac
51087
51088if expr a : '\(a\)' >/dev/null 2>&1; then
51089 as_expr=expr
51090else
51091 as_expr=false
51092fi
51093
51094rm -f conf$$ conf$$.exe conf$$.file
51095echo >conf$$.file
51096if ln -s conf$$.file conf$$ 2>/dev/null; then
51097 # We could just check for DJGPP; but this test a) works b) is more generic
51098 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51099 if test -f conf$$.exe; then
51100 # Don't use ln at all; we don't have any links
51101 as_ln_s='cp -p'
51102 else
51103 as_ln_s='ln -s'
51104 fi
51105elif ln conf$$.file conf$$ 2>/dev/null; then
51106 as_ln_s=ln
51107else
51108 as_ln_s='cp -p'
51109fi
51110rm -f conf$$ conf$$.exe conf$$.file
51111
51112if mkdir -p . 2>/dev/null; then
51113 as_mkdir_p=:
51114else
ac1cb8d3 51115 test -d ./-p && rmdir ./-p
a848cd7e
SC
51116 as_mkdir_p=false
51117fi
51118
51119as_executable_p="test -f"
51120
51121# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51122as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51123
51124# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51125as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51126
51127
51128# IFS
51129# We need space, tab and new line, in precisely that order.
51130as_nl='
51131'
51132IFS=" $as_nl"
51133
51134# CDPATH.
51135$as_unset CDPATH
51136
51137exec 6>&1
51138
51139# Open the log real soon, to keep \$[0] and so on meaningful, and to
51140# report actual input values of CONFIG_FILES etc. instead of their
51141# values after options handling. Logging --version etc. is OK.
51142exec 5>>config.log
51143{
51144 echo
51145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51146## Running $as_me. ##
51147_ASBOX
51148} >&5
51149cat >&5 <<_CSEOF
51150
f1e3914f 51151This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 51152generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51153
51154 CONFIG_FILES = $CONFIG_FILES
51155 CONFIG_HEADERS = $CONFIG_HEADERS
51156 CONFIG_LINKS = $CONFIG_LINKS
51157 CONFIG_COMMANDS = $CONFIG_COMMANDS
51158 $ $0 $@
51159
51160_CSEOF
51161echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51162echo >&5
51163_ACEOF
51164
51165# Files that config.status was made for.
51166if test -n "$ac_config_files"; then
51167 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51168fi
51169
51170if test -n "$ac_config_headers"; then
51171 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51172fi
51173
51174if test -n "$ac_config_links"; then
51175 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51176fi
51177
51178if test -n "$ac_config_commands"; then
51179 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51180fi
51181
51182cat >>$CONFIG_STATUS <<\_ACEOF
51183
51184ac_cs_usage="\
51185\`$as_me' instantiates files from templates according to the
51186current configuration.
51187
51188Usage: $0 [OPTIONS] [FILE]...
51189
51190 -h, --help print this help, then exit
51191 -V, --version print version number, then exit
51192 -q, --quiet do not print progress messages
51193 -d, --debug don't remove temporary files
51194 --recheck update $as_me by reconfiguring in the same conditions
51195 --file=FILE[:TEMPLATE]
ac1cb8d3 51196 instantiate the configuration file FILE
a848cd7e 51197 --header=FILE[:TEMPLATE]
ac1cb8d3 51198 instantiate the configuration header FILE
a848cd7e
SC
51199
51200Configuration files:
51201$config_files
51202
51203Configuration headers:
51204$config_headers
51205
51206Configuration commands:
51207$config_commands
51208
51209Report bugs to <bug-autoconf@gnu.org>."
51210_ACEOF
51211
51212cat >>$CONFIG_STATUS <<_ACEOF
51213ac_cs_version="\\
f1e3914f 51214wxWidgets config.status 2.7.1
ac1cb8d3 51215configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51216 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51217
ac1cb8d3 51218Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51219This config.status script is free software; the Free Software Foundation
51220gives unlimited permission to copy, distribute and modify it."
51221srcdir=$srcdir
51222INSTALL="$INSTALL"
51223_ACEOF
51224
51225cat >>$CONFIG_STATUS <<\_ACEOF
51226# If no file are specified by the user, then we need to provide default
51227# value. By we need to know if files were specified by the user.
51228ac_need_defaults=:
51229while test $# != 0
51230do
51231 case $1 in
51232 --*=*)
51233 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51234 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51235 ac_shift=:
51236 ;;
51237 -*)
51238 ac_option=$1
51239 ac_optarg=$2
51240 ac_shift=shift
51241 ;;
51242 *) # This is not an option, so the user has probably given explicit
51243 # arguments.
51244 ac_option=$1
51245 ac_need_defaults=false;;
51246 esac
51247
51248 case $ac_option in
51249 # Handling of the options.
51250_ACEOF
51251cat >>$CONFIG_STATUS <<\_ACEOF
51252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51253 ac_cs_recheck=: ;;
51254 --version | --vers* | -V )
51255 echo "$ac_cs_version"; exit 0 ;;
51256 --he | --h)
51257 # Conflict between --help and --header
51258 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51259Try \`$0 --help' for more information." >&5
51260echo "$as_me: error: ambiguous option: $1
51261Try \`$0 --help' for more information." >&2;}
51262 { (exit 1); exit 1; }; };;
51263 --help | --hel | -h )
51264 echo "$ac_cs_usage"; exit 0 ;;
51265 --debug | --d* | -d )
51266 debug=: ;;
51267 --file | --fil | --fi | --f )
51268 $ac_shift
51269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51270 ac_need_defaults=false;;
51271 --header | --heade | --head | --hea )
51272 $ac_shift
51273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51274 ac_need_defaults=false;;
51275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51277 ac_cs_silent=: ;;
51278
51279 # This is an error.
51280 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51281Try \`$0 --help' for more information." >&5
51282echo "$as_me: error: unrecognized option: $1
51283Try \`$0 --help' for more information." >&2;}
51284 { (exit 1); exit 1; }; } ;;
51285
51286 *) ac_config_targets="$ac_config_targets $1" ;;
51287
51288 esac
51289 shift
51290done
51291
51292ac_configure_extra_args=
51293
51294if $ac_cs_silent; then
51295 exec 6>/dev/null
51296 ac_configure_extra_args="$ac_configure_extra_args --silent"
51297fi
51298
51299_ACEOF
51300cat >>$CONFIG_STATUS <<_ACEOF
51301if \$ac_cs_recheck; then
51302 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51303 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51304fi
51305
51306_ACEOF
51307
51308cat >>$CONFIG_STATUS <<_ACEOF
51309#
51310# INIT-COMMANDS section.
51311#
51312
5c60e845
MW
51313
51314 CPP="$CPP"
51315 infile="$srcdir/include/wx/msw/genrcdefs.h"
51316 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51317
51318
ceec2216
RL
51319 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51320 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51321 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51322 LN_S="${LN_S}"
a848cd7e
SC
51323
51324
51325_ACEOF
51326
51327
51328
51329cat >>$CONFIG_STATUS <<\_ACEOF
51330for ac_config_target in $ac_config_targets
51331do
51332 case "$ac_config_target" in
51333 # Handling of arguments.
ceec2216
RL
51334 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51335 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51336 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51338 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51339 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51340 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51341 "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
51342 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51343echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51344 { (exit 1); exit 1; }; };;
51345 esac
51346done
51347
51348# If the user did not use the arguments to specify the items to instantiate,
51349# then the envvar interface is used. Set only those that are not.
51350# We use the long form for the default assignment because of an extremely
51351# bizarre bug on SunOS 4.1.3.
51352if $ac_need_defaults; then
51353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51356fi
51357
51358# Have a temporary directory for convenience. Make it in the build tree
51359# simply because there is no reason to put it here, and in addition,
51360# creating and moving files from /tmp can sometimes cause problems.
51361# Create a temporary directory, and hook for its removal unless debugging.
51362$debug ||
51363{
51364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51365 trap '{ (exit 1); exit 1; }' 1 2 13 15
51366}
51367
51368# Create a (secure) tmp directory for tmp files.
51369
51370{
51371 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51372 test -n "$tmp" && test -d "$tmp"
51373} ||
51374{
51375 tmp=./confstat$$-$RANDOM
51376 (umask 077 && mkdir $tmp)
51377} ||
51378{
51379 echo "$me: cannot create a temporary directory in ." >&2
51380 { (exit 1); exit 1; }
51381}
51382
51383_ACEOF
51384
51385cat >>$CONFIG_STATUS <<_ACEOF
51386
51387#
51388# CONFIG_FILES section.
51389#
51390
51391# No need to generate the scripts if there are no CONFIG_FILES.
51392# This happens for instance when ./config.status config.h
51393if test -n "\$CONFIG_FILES"; then
51394 # Protect against being on the right side of a sed subst in config.status.
51395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51397s,@SHELL@,$SHELL,;t t
51398s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51399s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51400s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51401s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51402s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51403s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51404s,@exec_prefix@,$exec_prefix,;t t
51405s,@prefix@,$prefix,;t t
51406s,@program_transform_name@,$program_transform_name,;t t
51407s,@bindir@,$bindir,;t t
51408s,@sbindir@,$sbindir,;t t
51409s,@libexecdir@,$libexecdir,;t t
51410s,@datadir@,$datadir,;t t
51411s,@sysconfdir@,$sysconfdir,;t t
51412s,@sharedstatedir@,$sharedstatedir,;t t
51413s,@localstatedir@,$localstatedir,;t t
51414s,@libdir@,$libdir,;t t
51415s,@includedir@,$includedir,;t t
51416s,@oldincludedir@,$oldincludedir,;t t
51417s,@infodir@,$infodir,;t t
51418s,@mandir@,$mandir,;t t
51419s,@build_alias@,$build_alias,;t t
51420s,@host_alias@,$host_alias,;t t
51421s,@target_alias@,$target_alias,;t t
51422s,@DEFS@,$DEFS,;t t
51423s,@ECHO_C@,$ECHO_C,;t t
51424s,@ECHO_N@,$ECHO_N,;t t
51425s,@ECHO_T@,$ECHO_T,;t t
51426s,@LIBS@,$LIBS,;t t
51427s,@build@,$build,;t t
51428s,@build_cpu@,$build_cpu,;t t
51429s,@build_vendor@,$build_vendor,;t t
51430s,@build_os@,$build_os,;t t
51431s,@host@,$host,;t t
51432s,@host_cpu@,$host_cpu,;t t
51433s,@host_vendor@,$host_vendor,;t t
51434s,@host_os@,$host_os,;t t
51435s,@target@,$target,;t t
51436s,@target_cpu@,$target_cpu,;t t
51437s,@target_vendor@,$target_vendor,;t t
51438s,@target_os@,$target_os,;t t
51439s,@CC@,$CC,;t t
51440s,@CFLAGS@,$CFLAGS,;t t
51441s,@LDFLAGS@,$LDFLAGS,;t t
51442s,@CPPFLAGS@,$CPPFLAGS,;t t
51443s,@ac_ct_CC@,$ac_ct_CC,;t t
51444s,@EXEEXT@,$EXEEXT,;t t
51445s,@OBJEXT@,$OBJEXT,;t t
51446s,@CPP@,$CPP,;t t
51447s,@EGREP@,$EGREP,;t t
51448s,@CXX@,$CXX,;t t
51449s,@CXXFLAGS@,$CXXFLAGS,;t t
51450s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51451s,@RANLIB@,$RANLIB,;t t
51452s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51453s,@AR@,$AR,;t t
8c80d384 51454s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51455s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51456s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51457s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51458s,@STRIP@,$STRIP,;t t
8c80d384 51459s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51460s,@WINDRES@,$WINDRES,;t t
51461s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51462s,@DLLTOOL@,$DLLTOOL,;t t
51463s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51464s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51465s,@LN_S@,$LN_S,;t t
51466s,@CXXCPP@,$CXXCPP,;t t
51467s,@subdirs@,$subdirs,;t t
51468s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51469s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51470s,@GTK_LIBS@,$GTK_LIBS,;t t
51471s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51472s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51473s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51474s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51475s,@X_CFLAGS@,$X_CFLAGS,;t t
51476s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51477s,@X_LIBS@,$X_LIBS,;t t
51478s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51479s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51480s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51481s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51482s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51483s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51484s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51485s,@REZ@,$REZ,;t t
a848cd7e
SC
51486s,@DEREZ@,$DEREZ,;t t
51487s,@SETFILE@,$SETFILE,;t t
51488s,@LIBICONV@,$LIBICONV,;t t
51489s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51490s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51491s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51492s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51493s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51494s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51495s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51496s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51497s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51498s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51499s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51500s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51501s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51502s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51503s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51504s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51505s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51506s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51507s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51508s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51509s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51510s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51511s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51512s,@VENDOR@,$VENDOR,;t t
51513s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51514s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51515s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51516s,@WXUNIV@,$WXUNIV,;t t
51517s,@MONOLITHIC@,$MONOLITHIC,;t t
51518s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51519s,@EXTRALIBS@,$EXTRALIBS,;t t
51520s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51521s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51522s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51523s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51524s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51525s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51526s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51527s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51528s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51529s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51530s,@UNICODE@,$UNICODE,;t t
51531s,@BUILD@,$BUILD,;t t
51532s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51533s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51534s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51535s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51536s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51537s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51538s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51539s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51540s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51541s,@SET_MAKE@,$SET_MAKE,;t t
51542s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
51543s,@NM@,$NM,;t t
51544s,@ac_ct_NM@,$ac_ct_NM,;t t
51545s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51546s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51547s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51548s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51549s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51550s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51551s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51552s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51553s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51554s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51555s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51556s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51557s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51558s,@LIBPREFIX@,$LIBPREFIX,;t t
51559s,@LIBEXT@,$LIBEXT,;t t
51560s,@DLLPREFIX@,$DLLPREFIX,;t t
51561s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51562s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51563s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51564s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51565s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51566s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51567s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51568s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51569s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51570s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51571s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51572s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51573s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51574s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51575s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51576s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51577s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51578s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51579s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51580s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51581s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51582s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51583s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51584s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51585s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51586s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51587s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51588s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51589s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51590s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51591s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51592s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51593s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51594s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51595s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51596s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51597s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51598s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51599s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51600s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51601s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51602s,@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 51603s,@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 51604s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51605s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51606s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51607s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51608s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51609s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51610s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51611s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51612s,@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 51613s,@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 51614s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51615s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51616s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51617s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51618s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51619s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51620s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51621s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51622s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51623s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51624s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51625s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51626s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51627s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51628s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51629s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51630s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51631s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51632s,@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
51633s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51634s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51635s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51636s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51637s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51638s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51639s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51640s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51641s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51642s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51643s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51644s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51645s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51646s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51647s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51648s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51649s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51650s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51651s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51652s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51653s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51654s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51655s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51656s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51657s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51658s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51659s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51660s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51661s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51662s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51663s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51664s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51665s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51666s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51667s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51668s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51669s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51670s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51671s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51672s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51673s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51674s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51675s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51676s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51677s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51678s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51679s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51680s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51681s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51682s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51683s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51684s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51685s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51686s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51687s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51688s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51689s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51690s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51691s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51692s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51693s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51694s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51695s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51696s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51697s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51698s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51699s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51700s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51701s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51702s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51703s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51704s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51705s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51706s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51707s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51708s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51709s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51710s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51711s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51712s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51713s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51714s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51715s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51716s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51717s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51718s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51719s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51720s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51721s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51722s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51723s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51724s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51725s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51726s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51727s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51728s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51729s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51730s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51731s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51732s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51733s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51734s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51735s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51736s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51737s,@USE_GUI@,$USE_GUI,;t t
51738s,@AFMINSTALL@,$AFMINSTALL,;t t
51739s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51740s,@TOOLKIT@,$TOOLKIT,;t t
51741s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51742s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51743s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51744s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51745s,@WIDGET_SET@,$WIDGET_SET,;t t
51746s,@WX_RELEASE@,$WX_RELEASE,;t t
51747s,@WX_VERSION@,$WX_VERSION,;t t
51748s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51749s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51750s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51751s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51752s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51753s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51754s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51755s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51756s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51757s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51758s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51759s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51760s,@DISTDIR@,$DISTDIR,;t t
51761s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51762s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51763s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51764s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51765s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51766s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51767s,@RESFLAGS@,$RESFLAGS,;t t
51768s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51769s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51770s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51771s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51772s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51773s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51774s,@GCC@,$GCC,;t t
a848cd7e
SC
51775s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51776s,@LIBOBJS@,$LIBOBJS,;t t
51777s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51778CEOF
51779
51780_ACEOF
51781
51782 cat >>$CONFIG_STATUS <<\_ACEOF
51783 # Split the substitutions into bite-sized pieces for seds with
51784 # small command number limits, like on Digital OSF/1 and HP-UX.
51785 ac_max_sed_lines=48
51786 ac_sed_frag=1 # Number of current file.
51787 ac_beg=1 # First line for current file.
51788 ac_end=$ac_max_sed_lines # Line after last line for current file.
51789 ac_more_lines=:
51790 ac_sed_cmds=
51791 while $ac_more_lines; do
51792 if test $ac_beg -gt 1; then
51793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51794 else
51795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51796 fi
51797 if test ! -s $tmp/subs.frag; then
51798 ac_more_lines=false
51799 else
51800 # The purpose of the label and of the branching condition is to
51801 # speed up the sed processing (if there are no `@' at all, there
51802 # is no need to browse any of the substitutions).
51803 # These are the two extra sed commands mentioned above.
51804 (echo ':t
51805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51806 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51808 else
ac1cb8d3 51809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51810 fi
51811 ac_sed_frag=`expr $ac_sed_frag + 1`
51812 ac_beg=$ac_end
51813 ac_end=`expr $ac_end + $ac_max_sed_lines`
51814 fi
51815 done
51816 if test -z "$ac_sed_cmds"; then
51817 ac_sed_cmds=cat
51818 fi
51819fi # test -n "$CONFIG_FILES"
51820
51821_ACEOF
51822cat >>$CONFIG_STATUS <<\_ACEOF
51823for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51825 case $ac_file in
51826 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51827 cat >$tmp/stdin
51828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51832 * ) ac_file_in=$ac_file.in ;;
51833 esac
51834
51835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51838 X"$ac_file" : 'X\(//\)[^/]' \| \
51839 X"$ac_file" : 'X\(//\)$' \| \
51840 X"$ac_file" : 'X\(/\)' \| \
51841 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51842echo X"$ac_file" |
51843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51845 /^X\(\/\/\)$/{ s//\1/; q; }
51846 /^X\(\/\).*/{ s//\1/; q; }
51847 s/.*/./; q'`
51848 { if $as_mkdir_p; then
51849 mkdir -p "$ac_dir"
51850 else
51851 as_dir="$ac_dir"
51852 as_dirs=
51853 while test ! -d "$as_dir"; do
51854 as_dirs="$as_dir $as_dirs"
51855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51857 X"$as_dir" : 'X\(//\)[^/]' \| \
51858 X"$as_dir" : 'X\(//\)$' \| \
51859 X"$as_dir" : 'X\(/\)' \| \
51860 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51861echo X"$as_dir" |
51862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51864 /^X\(\/\/\)$/{ s//\1/; q; }
51865 /^X\(\/\).*/{ s//\1/; q; }
51866 s/.*/./; q'`
51867 done
51868 test ! -n "$as_dirs" || mkdir $as_dirs
51869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51871 { (exit 1); exit 1; }; }; }
51872
51873 ac_builddir=.
51874
51875if test "$ac_dir" != .; then
51876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51877 # A "../" for each directory in $ac_dir_suffix.
51878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51879else
51880 ac_dir_suffix= ac_top_builddir=
51881fi
51882
51883case $srcdir in
51884 .) # No --srcdir option. We are building in place.
51885 ac_srcdir=.
51886 if test -z "$ac_top_builddir"; then
51887 ac_top_srcdir=.
51888 else
51889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51890 fi ;;
51891 [\\/]* | ?:[\\/]* ) # Absolute path.
51892 ac_srcdir=$srcdir$ac_dir_suffix;
51893 ac_top_srcdir=$srcdir ;;
51894 *) # Relative path.
51895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51897esac
ac1cb8d3
VS
51898
51899# Do not use `cd foo && pwd` to compute absolute paths, because
51900# the directories may not exist.
51901case `pwd` in
51902.) ac_abs_builddir="$ac_dir";;
51903*)
51904 case "$ac_dir" in
51905 .) ac_abs_builddir=`pwd`;;
51906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51908 esac;;
51909esac
51910case $ac_abs_builddir in
51911.) ac_abs_top_builddir=${ac_top_builddir}.;;
51912*)
51913 case ${ac_top_builddir}. in
51914 .) ac_abs_top_builddir=$ac_abs_builddir;;
51915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51917 esac;;
51918esac
51919case $ac_abs_builddir in
51920.) ac_abs_srcdir=$ac_srcdir;;
51921*)
51922 case $ac_srcdir in
51923 .) ac_abs_srcdir=$ac_abs_builddir;;
51924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51926 esac;;
51927esac
51928case $ac_abs_builddir in
51929.) ac_abs_top_srcdir=$ac_top_srcdir;;
51930*)
51931 case $ac_top_srcdir in
51932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51935 esac;;
51936esac
a848cd7e
SC
51937
51938
51939 case $INSTALL in
51940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51941 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51942 esac
51943
a848cd7e
SC
51944 # Let's still pretend it is `configure' which instantiates (i.e., don't
51945 # use $as_me), people would be surprised to read:
51946 # /* config.h. Generated by config.status. */
51947 if test x"$ac_file" = x-; then
51948 configure_input=
51949 else
51950 configure_input="$ac_file. "
51951 fi
51952 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51953 sed 's,.*/,,'` by configure."
a848cd7e
SC
51954
51955 # First look for the input files in the build tree, otherwise in the
51956 # src tree.
51957 ac_file_inputs=`IFS=:
51958 for f in $ac_file_in; do
51959 case $f in
51960 -) echo $tmp/stdin ;;
51961 [\\/$]*)
ac1cb8d3
VS
51962 # Absolute (can't be DOS-style, as IFS=:)
51963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51964echo "$as_me: error: cannot find input file: $f" >&2;}
51965 { (exit 1); exit 1; }; }
ac1cb8d3 51966 echo "$f";;
a848cd7e 51967 *) # Relative
ac1cb8d3
VS
51968 if test -f "$f"; then
51969 # Build tree
51970 echo "$f"
51971 elif test -f "$srcdir/$f"; then
51972 # Source tree
51973 echo "$srcdir/$f"
51974 else
51975 # /dev/null tree
51976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51977echo "$as_me: error: cannot find input file: $f" >&2;}
51978 { (exit 1); exit 1; }; }
ac1cb8d3 51979 fi;;
a848cd7e
SC
51980 esac
51981 done` || { (exit 1); exit 1; }
bb9e79c0
VZ
51982
51983 if test x"$ac_file" != x-; then
51984 { echo "$as_me:$LINENO: creating $ac_file" >&5
51985echo "$as_me: creating $ac_file" >&6;}
51986 rm -f "$ac_file"
51987 fi
a848cd7e
SC
51988_ACEOF
51989cat >>$CONFIG_STATUS <<_ACEOF
51990 sed "$ac_vpsub
51991$extrasub
51992_ACEOF
51993cat >>$CONFIG_STATUS <<\_ACEOF
51994:t
51995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51996s,@configure_input@,$configure_input,;t t
51997s,@srcdir@,$ac_srcdir,;t t
51998s,@abs_srcdir@,$ac_abs_srcdir,;t t
51999s,@top_srcdir@,$ac_top_srcdir,;t t
52000s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52001s,@builddir@,$ac_builddir,;t t
52002s,@abs_builddir@,$ac_abs_builddir,;t t
52003s,@top_builddir@,$ac_top_builddir,;t t
52004s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52005s,@INSTALL@,$ac_INSTALL,;t t
52006" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52007 rm -f $tmp/stdin
52008 if test x"$ac_file" != x-; then
52009 mv $tmp/out $ac_file
52010 else
52011 cat $tmp/out
52012 rm -f $tmp/out
52013 fi
52014
ceec2216
RL
52015 # Run the commands associated with the file.
52016 case $ac_file in
52017 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
52018 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
52019 esac
a848cd7e
SC
52020done
52021_ACEOF
52022cat >>$CONFIG_STATUS <<\_ACEOF
52023
52024#
52025# CONFIG_HEADER section.
52026#
52027
52028# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52029# NAME is the cpp macro being defined and VALUE is the value it is being given.
52030#
52031# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
52032ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52033ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
52034ac_dC=' '
52035ac_dD=',;t'
52036# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 52037ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
52038ac_uB='$,\1#\2define\3'
52039ac_uC=' '
52040ac_uD=',;t'
52041
52042for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52044 case $ac_file in
52045 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52046 cat >$tmp/stdin
52047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52051 * ) ac_file_in=$ac_file.in ;;
52052 esac
52053
52054 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52055echo "$as_me: creating $ac_file" >&6;}
52056
52057 # First look for the input files in the build tree, otherwise in the
52058 # src tree.
52059 ac_file_inputs=`IFS=:
52060 for f in $ac_file_in; do
52061 case $f in
52062 -) echo $tmp/stdin ;;
52063 [\\/$]*)
ac1cb8d3
VS
52064 # Absolute (can't be DOS-style, as IFS=:)
52065 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52066echo "$as_me: error: cannot find input file: $f" >&2;}
52067 { (exit 1); exit 1; }; }
ac1cb8d3
VS
52068 # Do quote $f, to prevent DOS paths from being IFS'd.
52069 echo "$f";;
a848cd7e 52070 *) # Relative
ac1cb8d3
VS
52071 if test -f "$f"; then
52072 # Build tree
52073 echo "$f"
52074 elif test -f "$srcdir/$f"; then
52075 # Source tree
52076 echo "$srcdir/$f"
52077 else
52078 # /dev/null tree
52079 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52080echo "$as_me: error: cannot find input file: $f" >&2;}
52081 { (exit 1); exit 1; }; }
ac1cb8d3 52082 fi;;
a848cd7e
SC
52083 esac
52084 done` || { (exit 1); exit 1; }
52085 # Remove the trailing spaces.
ac1cb8d3 52086 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
52087
52088_ACEOF
52089
52090# Transform confdefs.h into two sed scripts, `conftest.defines' and
52091# `conftest.undefs', that substitutes the proper values into
52092# config.h.in to produce config.h. The first handles `#define'
52093# templates, and the second `#undef' templates.
52094# And first: Protect against being on the right side of a sed subst in
52095# config.status. Protect against being in an unquoted here document
52096# in config.status.
52097rm -f conftest.defines conftest.undefs
52098# Using a here document instead of a string reduces the quoting nightmare.
52099# Putting comments in sed scripts is not portable.
52100#
52101# `end' is used to avoid that the second main sed command (meant for
52102# 0-ary CPP macros) applies to n-ary macro definitions.
52103# See the Autoconf documentation for `clear'.
52104cat >confdef2sed.sed <<\_ACEOF
52105s/[\\&,]/\\&/g
52106s,[\\$`],\\&,g
52107t clear
52108: clear
ac1cb8d3 52109s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 52110t end
ac1cb8d3 52111s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
52112: end
52113_ACEOF
52114# If some macros were called several times there might be several times
52115# the same #defines, which is useless. Nevertheless, we may not want to
52116# sort them, since we want the *last* AC-DEFINE to be honored.
52117uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52118sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52119rm -f confdef2sed.sed
52120
52121# This sed command replaces #undef with comments. This is necessary, for
52122# example, in the case of _POSIX_SOURCE, which is predefined and required
52123# on some systems where configure will not decide to define it.
52124cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 52125s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
52126_ACEOF
52127
52128# Break up conftest.defines because some shells have a limit on the size
52129# of here documents, and old seds have small limits too (100 cmds).
52130echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 52131echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
52132echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52133echo ' :' >>$CONFIG_STATUS
52134rm -f conftest.tail
52135while grep . conftest.defines >/dev/null
52136do
52137 # Write a limited-size here document to $tmp/defines.sed.
52138 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52139 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 52140 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
52141 # Work around the forget-to-reset-the-flag bug.
52142 echo 't clr' >>$CONFIG_STATUS
52143 echo ': clr' >>$CONFIG_STATUS
52144 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52145 echo 'CEOF
52146 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52147 rm -f $tmp/in
52148 mv $tmp/out $tmp/in
52149' >>$CONFIG_STATUS
52150 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52151 rm -f conftest.defines
52152 mv conftest.tail conftest.defines
52153done
52154rm -f conftest.defines
52155echo ' fi # grep' >>$CONFIG_STATUS
52156echo >>$CONFIG_STATUS
52157
52158# Break up conftest.undefs because some shells have a limit on the size
52159# of here documents, and old seds have small limits too (100 cmds).
52160echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52161rm -f conftest.tail
52162while grep . conftest.undefs >/dev/null
52163do
52164 # Write a limited-size here document to $tmp/undefs.sed.
52165 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52166 # Speed up: don't consider the non `#undef'
ac1cb8d3 52167 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52168 # Work around the forget-to-reset-the-flag bug.
52169 echo 't clr' >>$CONFIG_STATUS
52170 echo ': clr' >>$CONFIG_STATUS
52171 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52172 echo 'CEOF
52173 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52174 rm -f $tmp/in
52175 mv $tmp/out $tmp/in
52176' >>$CONFIG_STATUS
52177 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52178 rm -f conftest.undefs
52179 mv conftest.tail conftest.undefs
52180done
52181rm -f conftest.undefs
52182
52183cat >>$CONFIG_STATUS <<\_ACEOF
52184 # Let's still pretend it is `configure' which instantiates (i.e., don't
52185 # use $as_me), people would be surprised to read:
52186 # /* config.h. Generated by config.status. */
52187 if test x"$ac_file" = x-; then
52188 echo "/* Generated by configure. */" >$tmp/config.h
52189 else
52190 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52191 fi
52192 cat $tmp/in >>$tmp/config.h
52193 rm -f $tmp/in
52194 if test x"$ac_file" != x-; then
52195 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52197echo "$as_me: $ac_file is unchanged" >&6;}
52198 else
52199 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52200$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52201 X"$ac_file" : 'X\(//\)[^/]' \| \
52202 X"$ac_file" : 'X\(//\)$' \| \
52203 X"$ac_file" : 'X\(/\)' \| \
52204 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52205echo X"$ac_file" |
52206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52208 /^X\(\/\/\)$/{ s//\1/; q; }
52209 /^X\(\/\).*/{ s//\1/; q; }
52210 s/.*/./; q'`
52211 { if $as_mkdir_p; then
52212 mkdir -p "$ac_dir"
52213 else
52214 as_dir="$ac_dir"
52215 as_dirs=
52216 while test ! -d "$as_dir"; do
52217 as_dirs="$as_dir $as_dirs"
52218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52220 X"$as_dir" : 'X\(//\)[^/]' \| \
52221 X"$as_dir" : 'X\(//\)$' \| \
52222 X"$as_dir" : 'X\(/\)' \| \
52223 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52224echo X"$as_dir" |
52225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52227 /^X\(\/\/\)$/{ s//\1/; q; }
52228 /^X\(\/\).*/{ s//\1/; q; }
52229 s/.*/./; q'`
52230 done
52231 test ! -n "$as_dirs" || mkdir $as_dirs
52232 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52233echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52234 { (exit 1); exit 1; }; }; }
52235
52236 rm -f $ac_file
52237 mv $tmp/config.h $ac_file
52238 fi
52239 else
52240 cat $tmp/config.h
52241 rm -f $tmp/config.h
52242 fi
52243done
52244_ACEOF
52245cat >>$CONFIG_STATUS <<\_ACEOF
52246
52247#
52248# CONFIG_COMMANDS section.
52249#
52250for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52251 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52252 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52253 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52254$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52255 X"$ac_dest" : 'X\(//\)[^/]' \| \
52256 X"$ac_dest" : 'X\(//\)$' \| \
52257 X"$ac_dest" : 'X\(/\)' \| \
52258 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52259echo X"$ac_dest" |
52260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52262 /^X\(\/\/\)$/{ s//\1/; q; }
52263 /^X\(\/\).*/{ s//\1/; q; }
52264 s/.*/./; q'`
ac1cb8d3
VS
52265 { if $as_mkdir_p; then
52266 mkdir -p "$ac_dir"
52267 else
52268 as_dir="$ac_dir"
52269 as_dirs=
52270 while test ! -d "$as_dir"; do
52271 as_dirs="$as_dir $as_dirs"
52272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52274 X"$as_dir" : 'X\(//\)[^/]' \| \
52275 X"$as_dir" : 'X\(//\)$' \| \
52276 X"$as_dir" : 'X\(/\)' \| \
52277 . : '\(.\)' 2>/dev/null ||
52278echo X"$as_dir" |
52279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52281 /^X\(\/\/\)$/{ s//\1/; q; }
52282 /^X\(\/\).*/{ s//\1/; q; }
52283 s/.*/./; q'`
52284 done
52285 test ! -n "$as_dirs" || mkdir $as_dirs
52286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52287echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52288 { (exit 1); exit 1; }; }; }
52289
a848cd7e
SC
52290 ac_builddir=.
52291
52292if test "$ac_dir" != .; then
52293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52294 # A "../" for each directory in $ac_dir_suffix.
52295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52296else
52297 ac_dir_suffix= ac_top_builddir=
52298fi
52299
52300case $srcdir in
52301 .) # No --srcdir option. We are building in place.
52302 ac_srcdir=.
52303 if test -z "$ac_top_builddir"; then
52304 ac_top_srcdir=.
52305 else
52306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52307 fi ;;
52308 [\\/]* | ?:[\\/]* ) # Absolute path.
52309 ac_srcdir=$srcdir$ac_dir_suffix;
52310 ac_top_srcdir=$srcdir ;;
52311 *) # Relative path.
52312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52313 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52314esac
ac1cb8d3
VS
52315
52316# Do not use `cd foo && pwd` to compute absolute paths, because
52317# the directories may not exist.
52318case `pwd` in
52319.) ac_abs_builddir="$ac_dir";;
52320*)
52321 case "$ac_dir" in
52322 .) ac_abs_builddir=`pwd`;;
52323 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52324 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52325 esac;;
52326esac
52327case $ac_abs_builddir in
52328.) ac_abs_top_builddir=${ac_top_builddir}.;;
52329*)
52330 case ${ac_top_builddir}. in
52331 .) ac_abs_top_builddir=$ac_abs_builddir;;
52332 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52333 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52334 esac;;
52335esac
52336case $ac_abs_builddir in
52337.) ac_abs_srcdir=$ac_srcdir;;
52338*)
52339 case $ac_srcdir in
52340 .) ac_abs_srcdir=$ac_abs_builddir;;
52341 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52342 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52343 esac;;
52344esac
52345case $ac_abs_builddir in
52346.) ac_abs_top_srcdir=$ac_top_srcdir;;
52347*)
52348 case $ac_top_srcdir in
52349 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52350 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52351 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52352 esac;;
52353esac
a848cd7e
SC
52354
52355
52356 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52357echo "$as_me: executing $ac_dest commands" >&6;}
52358 case $ac_dest in
5c60e845
MW
52359 rcdefs.h )
52360 mkdir -p $outdir &&
52361 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52362 ;;
ceec2216
RL
52363 wx-config ) rm -f wx-config
52364 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52365 ;;
a848cd7e
SC
52366 esac
52367done
52368_ACEOF
52369
52370cat >>$CONFIG_STATUS <<\_ACEOF
52371
52372{ (exit 0); exit 0; }
52373_ACEOF
52374chmod +x $CONFIG_STATUS
52375ac_clean_files=$ac_clean_files_save
52376
52377
52378# configure is writing to config.log, and then calls config.status.
52379# config.status does its own redirection, appending to config.log.
52380# Unfortunately, on DOS this fails, as config.log is still kept open
52381# by configure, so config.status won't be able to write to it; its
52382# output is simply discarded. So we exec the FD to /dev/null,
52383# effectively closing config.log, so it can be properly (re)opened and
52384# appended to by config.status. When coming back to configure, we
52385# need to make the FD available again.
52386if test "$no_create" != yes; then
52387 ac_cs_success=:
52388 ac_config_status_args=
52389 test "$silent" = yes &&
52390 ac_config_status_args="$ac_config_status_args --quiet"
52391 exec 5>/dev/null
52392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52393 exec 5>>config.log
52394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52395 # would make configure fail if this is the last instruction.
52396 $ac_cs_success || { (exit 1); exit 1; }
52397fi
52398
52399#
52400# CONFIG_SUBDIRS section.
52401#
52402if test "$no_recursion" != yes; then
52403
52404 # Remove --cache-file and --srcdir arguments so they do not pile up.
52405 ac_sub_configure_args=
52406 ac_prev=
52407 for ac_arg in $ac_configure_args; do
52408 if test -n "$ac_prev"; then
52409 ac_prev=
52410 continue
52411 fi
52412 case $ac_arg in
52413 -cache-file | --cache-file | --cache-fil | --cache-fi \
52414 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52415 ac_prev=cache_file ;;
52416 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52417 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52418 | --c=*)
52419 ;;
52420 --config-cache | -C)
52421 ;;
52422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52423 ac_prev=srcdir ;;
52424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52425 ;;
52426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52427 ac_prev=prefix ;;
52428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52429 ;;
52430 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52431 esac
52432 done
52433
52434 # Always prepend --prefix to ensure using the same prefix
52435 # in subdir configurations.
52436 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52437
52438 ac_popdir=`pwd`
52439 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52440
52441 # Do not complain, so a configure script can configure whichever
52442 # parts of a large source tree are present.
52443 test -d $srcdir/$ac_dir || continue
52444
52445 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52446echo "$as_me: configuring in $ac_dir" >&6;}
52447 { if $as_mkdir_p; then
52448 mkdir -p "$ac_dir"
52449 else
52450 as_dir="$ac_dir"
52451 as_dirs=
52452 while test ! -d "$as_dir"; do
52453 as_dirs="$as_dir $as_dirs"
52454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52456 X"$as_dir" : 'X\(//\)[^/]' \| \
52457 X"$as_dir" : 'X\(//\)$' \| \
52458 X"$as_dir" : 'X\(/\)' \| \
52459 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52460echo X"$as_dir" |
52461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52463 /^X\(\/\/\)$/{ s//\1/; q; }
52464 /^X\(\/\).*/{ s//\1/; q; }
52465 s/.*/./; q'`
52466 done
52467 test ! -n "$as_dirs" || mkdir $as_dirs
52468 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52469echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52470 { (exit 1); exit 1; }; }; }
52471
52472 ac_builddir=.
52473
52474if test "$ac_dir" != .; then
52475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52476 # A "../" for each directory in $ac_dir_suffix.
52477 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52478else
52479 ac_dir_suffix= ac_top_builddir=
52480fi
52481
52482case $srcdir in
52483 .) # No --srcdir option. We are building in place.
52484 ac_srcdir=.
52485 if test -z "$ac_top_builddir"; then
52486 ac_top_srcdir=.
52487 else
52488 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52489 fi ;;
52490 [\\/]* | ?:[\\/]* ) # Absolute path.
52491 ac_srcdir=$srcdir$ac_dir_suffix;
52492 ac_top_srcdir=$srcdir ;;
52493 *) # Relative path.
52494 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52495 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52496esac
ac1cb8d3
VS
52497
52498# Do not use `cd foo && pwd` to compute absolute paths, because
52499# the directories may not exist.
52500case `pwd` in
52501.) ac_abs_builddir="$ac_dir";;
52502*)
52503 case "$ac_dir" in
52504 .) ac_abs_builddir=`pwd`;;
52505 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52506 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52507 esac;;
52508esac
52509case $ac_abs_builddir in
52510.) ac_abs_top_builddir=${ac_top_builddir}.;;
52511*)
52512 case ${ac_top_builddir}. in
52513 .) ac_abs_top_builddir=$ac_abs_builddir;;
52514 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52515 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52516 esac;;
52517esac
52518case $ac_abs_builddir in
52519.) ac_abs_srcdir=$ac_srcdir;;
52520*)
52521 case $ac_srcdir in
52522 .) ac_abs_srcdir=$ac_abs_builddir;;
52523 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52524 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52525 esac;;
52526esac
52527case $ac_abs_builddir in
52528.) ac_abs_top_srcdir=$ac_top_srcdir;;
52529*)
52530 case $ac_top_srcdir in
52531 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52532 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52533 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52534 esac;;
52535esac
a848cd7e
SC
52536
52537
52538 cd $ac_dir
52539
52540 # Check for guested configure; otherwise get Cygnus style configure.
52541 if test -f $ac_srcdir/configure.gnu; then
52542 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52543 elif test -f $ac_srcdir/configure; then
52544 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52545 elif test -f $ac_srcdir/configure.in; then
52546 ac_sub_configure=$ac_configure
52547 else
52548 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52549echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52550 ac_sub_configure=
52551 fi
52552
52553 # The recursion is here.
52554 if test -n "$ac_sub_configure"; then
52555 # Make the cache file name correct relative to the subdirectory.
52556 case $cache_file in
52557 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52558 *) # Relative path.
ac1cb8d3 52559 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52560 esac
52561
52562 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52563echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52564 # The eval makes quoting arguments work.
52565 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52566 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52567 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52568echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52569 { (exit 1); exit 1; }; }
52570 fi
52571
bb9e79c0 52572 cd "$ac_popdir"
a848cd7e
SC
52573 done
52574fi
52575
52576
52577echo
77ffb593 52578echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52579echo ""
c2e9ada4 52580echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52581echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52582
77ffb593
JS
52583echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52584echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52585echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52586
77ffb593 52587echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52588echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52589echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52590
77ffb593 52591echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52592echo " jpeg ${wxUSE_LIBJPEG-none}"
52593echo " png ${wxUSE_LIBPNG-none}"
52594echo " regex ${wxUSE_REGEX}"
52595echo " tiff ${wxUSE_LIBTIFF-none}"
52596if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52597echo " xpm ${wxUSE_LIBXPM-none}"
52598fi
52599echo " zlib ${wxUSE_ZLIB}"
52600echo " odbc ${wxUSE_ODBC}"
52601echo " expat ${wxUSE_EXPAT}"
52602echo " libmspack ${wxUSE_LIBMSPACK}"
52603echo " sdl ${wxUSE_LIBSDL}"
52604
52605echo ""
52606