]> git.saurik.com Git - wxWidgets.git/blame - configure
adding wxArrayDouble for later use in graphics context APIs
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
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'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
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"
b3c86150 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 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
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
dd8df4fc 865\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
dd8df4fc 931 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e 1012 --enable-url use wxURL class
ca5c6ac3 1013 --enable-variant use wxVariant class
a848cd7e
SC
1014 --enable-protocol use wxProtocol class
1015 --enable-protocol-http HTTP support in wxProtocol
1016 --enable-protocol-ftp FTP support in wxProtocol
1017 --enable-protocol-file FILE support in wxProtocol
1018 --enable-threads use threads
1019 --enable-docview use document view architecture
1020 --enable-help use help subsystem
1021 --enable-mshtmlhelp use MS HTML Help (win32)
1022 --enable-html use wxHTML sub-library
1023 --enable-htmlhelp use wxHTML-based help
9a8f0513 1024 --enable-xrc use XRC resources sub-library
3f60522a 1025 --enable-aui use AUI docking library
a848cd7e
SC
1026 --enable-constraints use layout-constraints system
1027 --enable-printarch use printing architecture
1028 --enable-mdi use multiple document interface architecture
8a7b1113 1029 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1030 --enable-loggui use standard GUI logger
1031 --enable-logwin use wxLogWindow
1032 --enable-logdialog use wxLogDialog
646b6ec1 1033 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1034 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1035 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1036 --enable-prologio not available; see contrib
1037 --enable-resources not available; see contrib
1038 --enable-clipboard use wxClipboard class
1039 --enable-dnd use Drag'n'Drop classes
1040 --enable-metafile use win32 metafiles
1041 --enable-controls use all usual controls
1042 --enable-accel use accelerators
1043 --enable-button use wxButton class
1044 --enable-bmpbutton use wxBitmapButton class
95a46303 1045 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1046 --enable-calendar use wxCalendarCtrl class
1047 --enable-caret use wxCaret class
1048 --enable-checkbox use wxCheckBox class
1049 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1050 --enable-choice use wxChoice class
92bbdbcd 1051 --enable-choicebook use wxChoicebook class
e9263684 1052 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1053 --enable-combobox use wxComboBox class
a57d600f 1054 --enable-comboctrl use wxComboCtrl class
da98e9be 1055 --enable-datepick use wxDatePickerCtrl class
e9263684 1056 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1057 --enable-display use wxDisplay class
e9263684
VZ
1058 --enable-filepicker use wxFilePickerCtrl class
1059 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1060 --enable-gauge use wxGauge class
1061 --enable-grid use wxGrid class
20e34ecc 1062 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1063 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1064 --enable-imaglist use wxImageList class
1065 --enable-listbook use wxListbook class
1066 --enable-listbox use wxListBox class
1067 --enable-listctrl use wxListCtrl class
1068 --enable-notebook use wxNotebook class
a57d600f 1069 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1070 --enable-radiobox use wxRadioBox class
1071 --enable-radiobtn use wxRadioButton class
1072 --enable-sash use wxSashWindow class
1073 --enable-scrollbar use wxScrollBar class and scrollable windows
1074 --enable-slider use wxSlider class
1075 --enable-spinbtn use wxSpinButton class
1076 --enable-spinctrl use wxSpinCtrl class
1077 --enable-splitter use wxSplitterWindow class
1078 --enable-statbmp use wxStaticBitmap class
1079 --enable-statbox use wxStaticBox class
1080 --enable-statline use wxStaticLine class
1081 --enable-stattext use wxStaticText class
1082 --enable-statusbar use wxStatusBar class
1083 --enable-tabdialog use wxTabControl class
1084 --enable-textctrl use wxTextCtrl class
1085 --enable-togglebtn use wxToggleButton class
1086 --enable-toolbar use wxToolBar class
1087 --enable-tbarnative use native wxToolBar class
0093c2fc 1088 --enable-treebook use wxTreebook class
5ec3bc43 1089 --enable-toolbook use wxToolbook class
a848cd7e
SC
1090 --enable-treectrl use wxTreeCtrl class
1091 --enable-tipwindow use wxTipWindow class
1092 --enable-popupwin use wxPopUpWindow class
1093 --enable-commondlg use all common dialogs
1094 --enable-choicedlg use wxChoiceDialog
1095 --enable-coldlg use wxColourDialog
1096 --enable-filedlg use wxFileDialog
1097 --enable-finddlg use wxFindReplaceDialog
1098 --enable-fontdlg use wxFontDialog
1099 --enable-dirdlg use wxDirDialog
1100 --enable-msgdlg use wxMessageDialog
1101 --enable-numberdlg use wxNumberEntryDialog
1102 --enable-splash use wxSplashScreen
1103 --enable-textdlg use wxTextDialog
1104 --enable-tipdlg use startup tips
1105 --enable-progressdlg use wxProgressDialog
1106 --enable-wizarddlg use wxWizard
1107 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1108 --enable-miniframe use wxMiniFrame class
1109 --enable-tooltips use wxToolTip class
1110 --enable-splines use spline drawing code
fbe2ca43 1111 --enable-mousewheel use mousewheel
a848cd7e
SC
1112 --enable-validators use wxValidator and derived classes
1113 --enable-busyinfo use wxBusyInfo
4cb1d3da 1114 --enable-joystick use wxJoystick
38b4a946 1115 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1116 --enable-dragimage use wxDragImage
1117 --enable-accessibility enable accessibility support
38b4a946 1118 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1119 --enable-palette use wxPalette class
1120 --enable-image use wxImage class
1121 --enable-gif use gif images (GIF file format)
1122 --enable-pcx use pcx images (PCX file format)
1123 --enable-iff use iff images (IFF file format)
1124 --enable-pnm use pnm images (PNM file format)
1125 --enable-xpm use xpm images (XPM file format)
1126 --enable-icocur use Windows ICO and CUR formats
77ffb593 1127 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1128 --enable-vendor=VENDOR vendor name (win32 DLL only)
1129 --disable-largefile omit support for large files
1130 --disable-gtktest do not try to compile and run a test GTK+ program
1131 --disable-gtktest Do not try to compile and run a test GTK program
1132 --disable-sdltest Do not try to compile and run a test SDL program
1133 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1134 --disable-dependency-tracking
1135 don't use dependency tracking even if the compiler
1136 can
ebee3cd0
VS
1137 --disable-precomp-headers
1138 don't use precompiled headers even if compiler can
a848cd7e
SC
1139
1140Optional Packages:
1141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1143 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1144 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1145 --with-motif use Motif/Lesstif
1146 --with-mac use Mac OS X
1147 --with-cocoa use Cocoa
1148 --with-wine use Wine
1149 --with-msw use MS-Windows
1150 --with-pm use OS/2 Presentation Manager
1151 --with-mgl use SciTech MGL
b3c86150 1152 --with-directfb use DirectFB
a848cd7e
SC
1153 --with-microwin use MicroWindows
1154 --with-x11 use X11
1155 --with-libpng use libpng (PNG image format)
1156 --with-libjpeg use libjpeg (JPEG file format)
1157 --with-libtiff use libtiff (TIFF file format)
1158 --with-libxpm use libxpm (XPM file format)
1159 --with-libmspack use libmspack (CHM help files loading)
1160 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1161 --with-gnomeprint use GNOME print for printing under GNOME
1162 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1163 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1164 --with-opengl use OpenGL (or Mesa)
1165 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1166 --with-regex enable support for wxRegEx class
1167 --with-zlib use zlib for LZW compression
1168 --with-odbc use the IODBC and wxODBC classes
1169 --with-expat enable XML support using expat parser
ceec2216 1170 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1171 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1172 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1173 --with-x use the X Window System
1174 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1175 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1176 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1177 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1178 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1179
1180Some influential environment variables:
dcc1b6ad
VS
1181 CC C compiler command
1182 CFLAGS C compiler flags
1183 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1184 nonstandard directory <lib dir>
1185 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186 headers in a nonstandard directory <include dir>
1187 CPP C preprocessor
1188 CXX C++ compiler command
1189 CXXFLAGS C++ compiler flags
1190 CXXCPP C++ preprocessor
3ecd9f92 1191 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1192 DIRECTFB_CFLAGS
1193 C compiler flags for DIRECTFB, overriding pkg-config
1194 DIRECTFB_LIBS
1195 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1196 PANGOX_CFLAGS
1197 C compiler flags for PANGOX, overriding pkg-config
1198 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1199 PANGOFT2_CFLAGS
1200 C compiler flags for PANGOFT2, overriding pkg-config
1201 PANGOFT2_LIBS
1202 linker flags for PANGOFT2, overriding pkg-config
1203 PANGOXFT_CFLAGS
1204 C compiler flags for PANGOXFT, overriding pkg-config
1205 PANGOXFT_LIBS
1206 linker flags for PANGOXFT, overriding pkg-config
1207 LIBGNOMEPRINTUI_CFLAGS
1208 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1209 LIBGNOMEPRINTUI_LIBS
1210 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1211 GNOMEVFS_CFLAGS
1212 C compiler flags for GNOMEVFS, overriding pkg-config
1213 GNOMEVFS_LIBS
1214 linker flags for GNOMEVFS, overriding pkg-config
1215 HILDON_CFLAGS
1216 C compiler flags for HILDON, overriding pkg-config
1217 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1218 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1219 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1220
1221Use these variables to override the choices made by `configure' or to help
1222it to find libraries and programs with nonstandard names/locations.
1223
77ffb593 1224Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1225_ACEOF
1226fi
1227
1228if test "$ac_init_help" = "recursive"; then
1229 # If there are subdirs, report their specific --help.
1230 ac_popdir=`pwd`
1231 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1232 test -d $ac_dir || continue
1233 ac_builddir=.
1234
1235if test "$ac_dir" != .; then
1236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1237 # A "../" for each directory in $ac_dir_suffix.
1238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1239else
1240 ac_dir_suffix= ac_top_builddir=
1241fi
1242
1243case $srcdir in
1244 .) # No --srcdir option. We are building in place.
1245 ac_srcdir=.
1246 if test -z "$ac_top_builddir"; then
1247 ac_top_srcdir=.
1248 else
1249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1250 fi ;;
1251 [\\/]* | ?:[\\/]* ) # Absolute path.
1252 ac_srcdir=$srcdir$ac_dir_suffix;
1253 ac_top_srcdir=$srcdir ;;
1254 *) # Relative path.
1255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1257esac
ac1cb8d3
VS
1258
1259# Do not use `cd foo && pwd` to compute absolute paths, because
1260# the directories may not exist.
1261case `pwd` in
1262.) ac_abs_builddir="$ac_dir";;
1263*)
1264 case "$ac_dir" in
1265 .) ac_abs_builddir=`pwd`;;
1266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1268 esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_top_builddir=${ac_top_builddir}.;;
1272*)
1273 case ${ac_top_builddir}. in
1274 .) ac_abs_top_builddir=$ac_abs_builddir;;
1275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1277 esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_srcdir=$ac_srcdir;;
1281*)
1282 case $ac_srcdir in
1283 .) ac_abs_srcdir=$ac_abs_builddir;;
1284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1286 esac;;
1287esac
1288case $ac_abs_builddir in
1289.) ac_abs_top_srcdir=$ac_top_srcdir;;
1290*)
1291 case $ac_top_srcdir in
1292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1295 esac;;
1296esac
a848cd7e
SC
1297
1298 cd $ac_dir
1299 # Check for guested configure; otherwise get Cygnus style configure.
1300 if test -f $ac_srcdir/configure.gnu; then
1301 echo
1302 $SHELL $ac_srcdir/configure.gnu --help=recursive
1303 elif test -f $ac_srcdir/configure; then
1304 echo
1305 $SHELL $ac_srcdir/configure --help=recursive
1306 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1307 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1308 echo
1309 $ac_configure --help
1310 else
1311 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1312 fi
ca5c6ac3 1313 cd "$ac_popdir"
a848cd7e
SC
1314 done
1315fi
1316
1317test -n "$ac_init_help" && exit 0
1318if $ac_init_version; then
1319 cat <<\_ACEOF
dd8df4fc 1320wxWidgets configure 2.7.0
ac1cb8d3 1321generated by GNU Autoconf 2.59
a848cd7e 1322
ac1cb8d3 1323Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1324This configure script is free software; the Free Software Foundation
1325gives unlimited permission to copy, distribute and modify it.
1326_ACEOF
1327 exit 0
1328fi
1329exec 5>config.log
1330cat >&5 <<_ACEOF
1331This file contains any messages produced by compilers while
1332running configure, to aid debugging if configure makes a mistake.
1333
dd8df4fc 1334It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1335generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1336
1337 $ $0 $@
1338
1339_ACEOF
1340{
1341cat <<_ASUNAME
1342## --------- ##
1343## Platform. ##
1344## --------- ##
1345
1346hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1347uname -m = `(uname -m) 2>/dev/null || echo unknown`
1348uname -r = `(uname -r) 2>/dev/null || echo unknown`
1349uname -s = `(uname -s) 2>/dev/null || echo unknown`
1350uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351
1352/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1353/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1354
1355/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1356/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1357/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1358hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1359/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1360/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1361/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1362
1363_ASUNAME
1364
1365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366for as_dir in $PATH
1367do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 echo "PATH: $as_dir"
1371done
1372
1373} >&5
1374
1375cat >&5 <<_ACEOF
1376
1377
1378## ----------- ##
1379## Core tests. ##
1380## ----------- ##
1381
1382_ACEOF
1383
1384
1385# Keep a trace of the command line.
1386# Strip out --no-create and --no-recursion so they do not pile up.
1387# Strip out --silent because we don't want to record it for future runs.
1388# Also quote any args containing shell meta-characters.
1389# Make two passes to allow for proper duplicate-argument suppression.
1390ac_configure_args=
1391ac_configure_args0=
1392ac_configure_args1=
1393ac_sep=
1394ac_must_keep_next=false
1395for ac_pass in 1 2
1396do
1397 for ac_arg
1398 do
1399 case $ac_arg in
1400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402 | -silent | --silent | --silen | --sile | --sil)
1403 continue ;;
1404 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1405 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406 esac
1407 case $ac_pass in
1408 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1409 2)
1410 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1411 if test $ac_must_keep_next = true; then
ac1cb8d3 1412 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1413 else
ac1cb8d3
VS
1414 case $ac_arg in
1415 *=* | --config-cache | -C | -disable-* | --disable-* \
1416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1418 | -with-* | --with-* | -without-* | --without-* | --x)
1419 case "$ac_configure_args0 " in
1420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421 esac
1422 ;;
1423 -* ) ac_must_keep_next=true ;;
1424 esac
a848cd7e
SC
1425 fi
1426 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1427 # Get rid of the leading space.
1428 ac_sep=" "
1429 ;;
1430 esac
1431 done
1432done
1433$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1434$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1435
1436# When interrupted or exit'd, cleanup temporary files, and complete
1437# config.log. We remove comments because anyway the quotes in there
1438# would cause problems or look ugly.
1439# WARNING: Be sure not to use single quotes in there, as some shells,
1440# such as our DU 5.0 friend, will then `close' the trap.
1441trap 'exit_status=$?
1442 # Save into config.log some information that might help in debugging.
1443 {
1444 echo
1445
1446 cat <<\_ASBOX
1447## ---------------- ##
1448## Cache variables. ##
1449## ---------------- ##
1450_ASBOX
1451 echo
1452 # The following way of writing the cache mishandles newlines in values,
1453{
1454 (set) 2>&1 |
1455 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1456 *ac_space=\ *)
1457 sed -n \
ac1cb8d3
VS
1458 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1460 ;;
1461 *)
1462 sed -n \
ac1cb8d3 1463 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1464 ;;
1465 esac;
1466}
1467 echo
1468
1469 cat <<\_ASBOX
1470## ----------------- ##
1471## Output variables. ##
1472## ----------------- ##
1473_ASBOX
1474 echo
1475 for ac_var in $ac_subst_vars
1476 do
1477 eval ac_val=$`echo $ac_var`
1478 echo "$ac_var='"'"'$ac_val'"'"'"
1479 done | sort
1480 echo
1481
1482 if test -n "$ac_subst_files"; then
1483 cat <<\_ASBOX
1484## ------------- ##
1485## Output files. ##
1486## ------------- ##
1487_ASBOX
1488 echo
1489 for ac_var in $ac_subst_files
1490 do
1491 eval ac_val=$`echo $ac_var`
ac1cb8d3 1492 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1493 done | sort
1494 echo
1495 fi
1496
1497 if test -s confdefs.h; then
1498 cat <<\_ASBOX
1499## ----------- ##
1500## confdefs.h. ##
1501## ----------- ##
1502_ASBOX
1503 echo
1504 sed "/^$/d" confdefs.h | sort
1505 echo
1506 fi
1507 test "$ac_signal" != 0 &&
1508 echo "$as_me: caught signal $ac_signal"
1509 echo "$as_me: exit $exit_status"
1510 } >&5
ac1cb8d3 1511 rm -f core *.core &&
a848cd7e
SC
1512 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1513 exit $exit_status
1514 ' 0
1515for ac_signal in 1 2 13 15; do
1516 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1517done
1518ac_signal=0
1519
1520# confdefs.h avoids OS command line length limits that DEFS can exceed.
1521rm -rf conftest* confdefs.h
1522# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1523echo >confdefs.h
1524
1525# Predefined preprocessor variables.
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_NAME "$PACKAGE_NAME"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1534_ACEOF
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538#define PACKAGE_VERSION "$PACKAGE_VERSION"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_STRING "$PACKAGE_STRING"
1544_ACEOF
1545
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1549_ACEOF
1550
1551
1552# Let the site file select an alternate cache file if it wants to.
1553# Prefer explicitly selected file to automatically selected ones.
1554if test -z "$CONFIG_SITE"; then
1555 if test "x$prefix" != xNONE; then
1556 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1557 else
1558 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1559 fi
1560fi
1561for ac_site_file in $CONFIG_SITE; do
1562 if test -r "$ac_site_file"; then
1563 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1564echo "$as_me: loading site script $ac_site_file" >&6;}
1565 sed 's/^/| /' "$ac_site_file" >&5
1566 . "$ac_site_file"
1567 fi
1568done
1569
1570if test -r "$cache_file"; then
1571 # Some versions of bash will fail to source /dev/null (special
1572 # files actually), so we avoid doing that.
1573 if test -f "$cache_file"; then
1574 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1575echo "$as_me: loading cache $cache_file" >&6;}
1576 case $cache_file in
1577 [\\/]* | ?:[\\/]* ) . $cache_file;;
1578 *) . ./$cache_file;;
1579 esac
1580 fi
1581else
1582 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1583echo "$as_me: creating cache $cache_file" >&6;}
1584 >$cache_file
1585fi
1586
1587# Check that the precious variables saved in the cache have kept the same
1588# value.
1589ac_cache_corrupted=false
1590for ac_var in `(set) 2>&1 |
ac1cb8d3 1591 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1593 eval ac_new_set=\$ac_env_${ac_var}_set
1594 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1595 eval ac_new_val="\$ac_env_${ac_var}_value"
1596 case $ac_old_set,$ac_new_set in
1597 set,)
1598 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1599echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1600 ac_cache_corrupted=: ;;
1601 ,set)
1602 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1603echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1604 ac_cache_corrupted=: ;;
1605 ,);;
1606 *)
1607 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1608 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1609echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1610 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1611echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1612 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1613echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1614 ac_cache_corrupted=:
a848cd7e
SC
1615 fi;;
1616 esac
1617 # Pass precious variables to config.status.
1618 if test "$ac_new_set" = set; then
1619 case $ac_new_val in
1620 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1621 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 *) ac_arg=$ac_var=$ac_new_val ;;
1623 esac
1624 case " $ac_configure_args " in
1625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1626 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1627 esac
1628 fi
1629done
1630if $ac_cache_corrupted; then
1631 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1632echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1633 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1634echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1635 { (exit 1); exit 1; }; }
1636fi
1637
1638ac_ext=c
1639ac_cpp='$CPP $CPPFLAGS'
1640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673ac_aux_dir=
1674for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1675 if test -f $ac_dir/install-sh; then
1676 ac_aux_dir=$ac_dir
1677 ac_install_sh="$ac_aux_dir/install-sh -c"
1678 break
1679 elif test -f $ac_dir/install.sh; then
1680 ac_aux_dir=$ac_dir
1681 ac_install_sh="$ac_aux_dir/install.sh -c"
1682 break
1683 elif test -f $ac_dir/shtool; then
1684 ac_aux_dir=$ac_dir
1685 ac_install_sh="$ac_aux_dir/shtool install -c"
1686 break
1687 fi
1688done
1689if test -z "$ac_aux_dir"; then
1690 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1691echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1692 { (exit 1); exit 1; }; }
1693fi
1694ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1695ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1696ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1697
1698# Make sure we can run config.sub.
1699$ac_config_sub sun4 >/dev/null 2>&1 ||
1700 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1701echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1702 { (exit 1); exit 1; }; }
1703
1704echo "$as_me:$LINENO: checking build system type" >&5
1705echo $ECHO_N "checking build system type... $ECHO_C" >&6
1706if test "${ac_cv_build+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709 ac_cv_build_alias=$build_alias
1710test -z "$ac_cv_build_alias" &&
1711 ac_cv_build_alias=`$ac_config_guess`
1712test -z "$ac_cv_build_alias" &&
1713 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1714echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1715 { (exit 1); exit 1; }; }
1716ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1717 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1718echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1719 { (exit 1); exit 1; }; }
1720
1721fi
1722echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1723echo "${ECHO_T}$ac_cv_build" >&6
1724build=$ac_cv_build
1725build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1728
1729
1730echo "$as_me:$LINENO: checking host system type" >&5
1731echo $ECHO_N "checking host system type... $ECHO_C" >&6
1732if test "${ac_cv_host+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735 ac_cv_host_alias=$host_alias
1736test -z "$ac_cv_host_alias" &&
1737 ac_cv_host_alias=$ac_cv_build_alias
1738ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1740echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743fi
1744echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1745echo "${ECHO_T}$ac_cv_host" >&6
1746host=$ac_cv_host
1747host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1750
1751
1752echo "$as_me:$LINENO: checking target system type" >&5
1753echo $ECHO_N "checking target system type... $ECHO_C" >&6
1754if test "${ac_cv_target+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757 ac_cv_target_alias=$target_alias
1758test "x$ac_cv_target_alias" = "x" &&
1759 ac_cv_target_alias=$ac_cv_host_alias
1760ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1761 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1762echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1763 { (exit 1); exit 1; }; }
1764
1765fi
1766echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1767echo "${ECHO_T}$ac_cv_target" >&6
1768target=$ac_cv_target
1769target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1772
1773
1774# The aliases save the names the user supplied, while $host etc.
1775# will get canonicalized.
1776test -n "$target_alias" &&
1777 test "$program_prefix$program_suffix$program_transform_name" = \
1778 NONENONEs,x,x, &&
1779 program_prefix=${target_alias}-
1780
1781
1782
ceec2216 1783wx_major_version_number=2
dd8df4fc
VZ
1784wx_minor_version_number=7
1785wx_release_number=0
5b5d4ef2 1786wx_subrelease_number=1
a848cd7e 1787
ceec2216
RL
1788WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1789WX_VERSION=$WX_RELEASE.$wx_release_number
1790WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1791
ceec2216 1792WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1793
a848cd7e
SC
1794
1795
1796
1797USE_UNIX=1
1798USE_OS2=0
1799USE_WIN32=0
1800USE_DOS=0
1801USE_BEOS=0
1802USE_MAC=0
1803
1804USE_AIX=
1805USE_BSD= USE_DARWIN= USE_FREEBSD=
1806USE_GNU= USE_HPUX=
1807USE_LINUX=
1808USE_NETBSD=
1809USE_OPENBSD=
1810USE_OSF= USE_SGI=
1811USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1812USE_ULTRIX=
1813USE_UNIXWARE=
1814
1815USE_ALPHA=
1816
1817NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1818
b3c86150 1819ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1820
1821DEFAULT_wxUSE_COCOA=0
1822DEFAULT_wxUSE_GTK=0
1823DEFAULT_wxUSE_MAC=0
1824DEFAULT_wxUSE_MGL=0
1825DEFAULT_wxUSE_MICROWIN=0
1826DEFAULT_wxUSE_MOTIF=0
1827DEFAULT_wxUSE_MSW=0
1828DEFAULT_wxUSE_PM=0
1829DEFAULT_wxUSE_X11=0
b3c86150 1830DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1831
1832DEFAULT_DEFAULT_wxUSE_COCOA=0
1833DEFAULT_DEFAULT_wxUSE_GTK=0
1834DEFAULT_DEFAULT_wxUSE_MAC=0
1835DEFAULT_DEFAULT_wxUSE_MGL=0
1836DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1837DEFAULT_DEFAULT_wxUSE_MOTIF=0
1838DEFAULT_DEFAULT_wxUSE_MSW=0
1839DEFAULT_DEFAULT_wxUSE_PM=0
1840DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1841DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1842
1843PROGRAM_EXT=
1844SO_SUFFIX=so
1845SAMPLES_RPATH_FLAG=
1846SAMPLES_RPATH_POSTLINK=
1847
a03b8b04
RD
1848DEFAULT_STD_FLAG=yes
1849
a848cd7e
SC
1850case "${host}" in
1851 *-hp-hpux* )
1852 USE_HPUX=1
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1854 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1855 SO_SUFFIX=sl
1856 cat >>confdefs.h <<\_ACEOF
1857#define __HPUX__ 1
1858_ACEOF
1859
2eef8513 1860
c92ad099 1861 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1862 ;;
1863 *-*-linux* )
1864 USE_LINUX=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __LINUX__ 1
1867_ACEOF
1868
1869 TMP=`uname -m`
1870 if test "x$TMP" = "xalpha"; then
1871 USE_ALPHA=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 fi
1877 DEFAULT_DEFAULT_wxUSE_GTK=1
1878 ;;
1879 *-*-gnu* | *-*-k*bsd*-gnu )
1880 USE_GNU=1
1881 TMP=`uname -m`
1882 if test "x$TMP" = "xalpha"; then
1883 USE_ALPHA=1
1884 cat >>confdefs.h <<\_ACEOF
1885#define __ALPHA__ 1
1886_ACEOF
1887
1888 fi
1889 DEFAULT_DEFAULT_wxUSE_GTK=1
1890 ;;
1891 *-*-irix5* | *-*-irix6* )
1892 USE_SGI=1
1893 USE_SVR4=1
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SGI__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SVR4__ 1
1900_ACEOF
1901
1902 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1903 ;;
1904 *-*-solaris2* )
1905 USE_SUN=1
1906 USE_SOLARIS=1
1907 USE_SVR4=1
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SUN__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SOLARIS__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SVR4__ 1
1918_ACEOF
1919
1920 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1921 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1922 ;;
1923 *-*-sunos4* )
1924 USE_SUN=1
1925 USE_SUNOS=1
1926 USE_BSD=1
1927 cat >>confdefs.h <<\_ACEOF
1928#define __SUN__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SUNOS__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __BSD__ 1
1937_ACEOF
1938
1939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940 ;;
1941 *-*-freebsd*)
1942 USE_BSD=1
1943 USE_FREEBSD=1
1944 cat >>confdefs.h <<\_ACEOF
1945#define __FREEBSD__ 1
1946_ACEOF
1947
1948 cat >>confdefs.h <<\_ACEOF
1949#define __BSD__ 1
1950_ACEOF
1951
1952 DEFAULT_DEFAULT_wxUSE_GTK=1
1953 ;;
c9a66001 1954 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1955 USE_BSD=1
1956 USE_OPENBSD=1
1957 cat >>confdefs.h <<\_ACEOF
1958#define __OPENBSD__ 1
1959_ACEOF
1960
1961 cat >>confdefs.h <<\_ACEOF
1962#define __BSD__ 1
1963_ACEOF
1964
1965 DEFAULT_DEFAULT_wxUSE_GTK=1
1966 ;;
1967 *-*-netbsd*)
1968 USE_BSD=1
1969 USE_NETBSD=1
1970 cat >>confdefs.h <<\_ACEOF
1971#define __NETBSD__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1979 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1980
def7c04a 1981 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1982 ;;
1983 *-*-osf* )
1984 USE_ALPHA=1
1985 USE_OSF=1
1986 cat >>confdefs.h <<\_ACEOF
1987#define __ALPHA__ 1
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define __OSF__ 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1995 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1996 ;;
1997 *-*-dgux5* )
1998 USE_ALPHA=1
1999 USE_SVR4=1
2000 cat >>confdefs.h <<\_ACEOF
2001#define __ALPHA__ 1
2002_ACEOF
2003
2004 cat >>confdefs.h <<\_ACEOF
2005#define __SVR4__ 1
2006_ACEOF
2007
2008 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2009 ;;
2010 *-*-sysv5* )
2011 USE_SYSV=1
2012 USE_SVR4=1
2013 cat >>confdefs.h <<\_ACEOF
2014#define __SYSV__ 1
2015_ACEOF
2016
2017 cat >>confdefs.h <<\_ACEOF
2018#define __SVR4__ 1
2019_ACEOF
2020
2021 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2022 ;;
2023 *-*-aix* )
2024 USE_AIX=1
2025 USE_SYSV=1
2026 USE_SVR4=1
2027 SO_SUFFIX=a
2028 cat >>confdefs.h <<\_ACEOF
2029#define __AIX__ 1
2030_ACEOF
2031
2032 cat >>confdefs.h <<\_ACEOF
2033#define __SYSV__ 1
2034_ACEOF
2035
2036 cat >>confdefs.h <<\_ACEOF
2037#define __SVR4__ 1
2038_ACEOF
2039
2040 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2041 ;;
2042
2043 *-*-*UnixWare*)
2044 USE_SYSV=1
2045 USE_SVR4=1
2046 USE_UNIXWARE=1
2047 cat >>confdefs.h <<\_ACEOF
2048#define __UNIXWARE__ 1
2049_ACEOF
2050
2051 ;;
2052
2053 *-*-cygwin* | *-*-mingw32* )
2054 SO_SUFFIX=dll
2055 PROGRAM_EXT=".exe"
a848cd7e 2056 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2057 DEFAULT_STD_FLAG=no
a848cd7e
SC
2058 ;;
2059
2060 *-pc-msdosdjgpp )
2061 USE_UNIX=0
2062 USE_DOS=1
2063 cat >>confdefs.h <<\_ACEOF
2064#define __DOS__ 1
2065_ACEOF
2066
2067 PROGRAM_EXT=".exe"
2068 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2069 ;;
2070
2071 *-pc-os2_emx | *-pc-os2-emx )
2072 cat >>confdefs.h <<\_ACEOF
2073#define __EMX__ 1
2074_ACEOF
2075
2076 USE_OS2=1
2077 cat >>confdefs.h <<\_ACEOF
2078#define __OS2__ 1
2079_ACEOF
2080
2081 PROGRAM_EXT=".exe"
2082 DEFAULT_DEFAULT_wxUSE_PM=1
2083 CXX=gcc
2084 LDFLAGS="$LDFLAGS -Zcrtdll"
2085 ac_executable_extensions=".exe"
2086 export ac_executable_extensions
2087 ac_save_IFS="$IFS"
2088 IFS='\\'
2089 ac_TEMP_PATH=
2090 for ac_dir in $PATH; do
2091 IFS=$ac_save_IFS
2092 if test -z "$ac_TEMP_PATH"; then
2093 ac_TEMP_PATH="$ac_dir"
2094 else
2095 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2096 fi
2097 done
2098 export PATH="$ac_TEMP_PATH"
2099 unset ac_TEMP_PATH
a03b8b04 2100 DEFAULT_STD_FLAG=no
a848cd7e
SC
2101 ;;
2102
cfda0ea8 2103 *-*-darwin* )
a848cd7e
SC
2104 USE_BSD=1
2105 USE_DARWIN=1
2106 SO_SUFFIX=dylib
2107 cat >>confdefs.h <<\_ACEOF
2108#define __BSD__ 1
2109_ACEOF
2110
2111 cat >>confdefs.h <<\_ACEOF
2112#define __DARWIN__ 1
a848cd7e
SC
2113_ACEOF
2114
2115 cat >>confdefs.h <<\_ACEOF
2116#define TARGET_CARBON 1
2117_ACEOF
2118
2119 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2120 DEFAULT_STD_FLAG=no
a848cd7e 2121 ;;
1e9e8aba
DE
2122 powerpc-apple-macos* )
2123 USE_UNIX=0
2124 ac_cv_c_bigendian=yes
2125 SO_SUFFIX=shlib
2126 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2127 DEFAULT_STD_FLAG=no
1e9e8aba 2128 ;;
a848cd7e
SC
2129
2130 *-*-beos* )
2131 USE_BEOS=1
2132 cat >>confdefs.h <<\_ACEOF
2133#define __BEOS__ 1
2134_ACEOF
2135
2136 ;;
2137
2138 *)
c9a66001
VZ
2139 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2140echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2141 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2142echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2143
2144 DEFAULT_DEFAULT_wxUSE_X11=1
2145 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2146esac
2147
2148
2149
2150
2151 wx_arg_cache_file="configarg.cache"
2152 echo "loading argument cache $wx_arg_cache_file"
2153 rm -f ${wx_arg_cache_file}.tmp
2154 touch ${wx_arg_cache_file}.tmp
2155 touch ${wx_arg_cache_file}
2156
2157
2158DEBUG_CONFIGURE=0
2159if test $DEBUG_CONFIGURE = 1; then
2160 DEFAULT_wxUSE_UNIVERSAL=no
2161 DEFAULT_wxUSE_STL=no
2162
2163 DEFAULT_wxUSE_NANOX=no
2164
2165 DEFAULT_wxUSE_THREADS=yes
2166
5acfd58d 2167 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2168 DEFAULT_wxUSE_OPTIMISE=no
2169 DEFAULT_wxUSE_PROFILE=no
2170 DEFAULT_wxUSE_NO_DEPS=no
2171 DEFAULT_wxUSE_NO_RTTI=no
2172 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2173 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2174 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2175 DEFAULT_wxUSE_PERMISSIVE=no
2176 DEFAULT_wxUSE_DEBUG_FLAG=yes
2177 DEFAULT_wxUSE_DEBUG_INFO=yes
2178 DEFAULT_wxUSE_DEBUG_GDB=yes
2179 DEFAULT_wxUSE_MEM_TRACING=no
2180 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2181 DEFAULT_wxUSE_DMALLOC=no
2182 DEFAULT_wxUSE_APPLE_IEEE=no
2183
2184 DEFAULT_wxUSE_EXCEPTIONS=no
2185 DEFAULT_wxUSE_LOG=yes
2186 DEFAULT_wxUSE_LOGWINDOW=no
2187 DEFAULT_wxUSE_LOGGUI=no
2188 DEFAULT_wxUSE_LOGDIALOG=no
2189
2190 DEFAULT_wxUSE_GUI=yes
2191 DEFAULT_wxUSE_CONTROLS=no
2192
2193 DEFAULT_wxUSE_REGEX=no
2194 DEFAULT_wxUSE_XML=no
2195 DEFAULT_wxUSE_EXPAT=no
2196 DEFAULT_wxUSE_ZLIB=no
2197 DEFAULT_wxUSE_LIBPNG=no
2198 DEFAULT_wxUSE_LIBJPEG=no
2199 DEFAULT_wxUSE_LIBTIFF=no
2200 DEFAULT_wxUSE_LIBXPM=no
2201 DEFAULT_wxUSE_LIBMSPACK=no
2202 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2203 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2204 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2205 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2206 DEFAULT_wxUSE_ODBC=no
2207 DEFAULT_wxUSE_OPENGL=no
2208
2209 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2210 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2211 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2212 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2213 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2214 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2215 DEFAULT_wxUSE_CMDLINE_PARSER=no
2216 DEFAULT_wxUSE_DATETIME=no
2217 DEFAULT_wxUSE_TIMER=no
2218 DEFAULT_wxUSE_STOPWATCH=no
2219 DEFAULT_wxUSE_FILE=no
2220 DEFAULT_wxUSE_FFILE=no
07158944 2221 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2222 DEFAULT_wxUSE_TEXTBUFFER=no
2223 DEFAULT_wxUSE_TEXTFILE=no
2224 DEFAULT_wxUSE_SOUND=no
3b57de8b 2225 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2226 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2227 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2228 DEFAULT_wxUSE_INTL=no
2229 DEFAULT_wxUSE_CONFIG=no
2230 DEFAULT_wxUSE_FONTMAP=no
2231 DEFAULT_wxUSE_STREAMS=no
2232 DEFAULT_wxUSE_SOCKETS=no
2233 DEFAULT_wxUSE_OLE=no
2234 DEFAULT_wxUSE_DATAOBJ=no
2235 DEFAULT_wxUSE_DIALUP_MANAGER=no
2236 DEFAULT_wxUSE_JOYSTICK=no
2237 DEFAULT_wxUSE_DYNLIB_CLASS=no
2238 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2239 DEFAULT_wxUSE_LONGLONG=no
2240 DEFAULT_wxUSE_GEOMETRY=no
2241
2242 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2243 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2244 DEFAULT_wxUSE_POSTSCRIPT=no
2245
2246 DEFAULT_wxUSE_CLIPBOARD=no
2247 DEFAULT_wxUSE_TOOLTIPS=no
2248 DEFAULT_wxUSE_DRAG_AND_DROP=no
2249 DEFAULT_wxUSE_DRAGIMAGE=no
2250 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2251 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2252
8a7b1113 2253 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2254 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2255 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2256 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2257
2258 DEFAULT_wxUSE_RESOURCES=no
2259 DEFAULT_wxUSE_CONSTRAINTS=no
2260 DEFAULT_wxUSE_IPC=no
2261 DEFAULT_wxUSE_HELP=no
2262 DEFAULT_wxUSE_MS_HTML_HELP=no
2263 DEFAULT_wxUSE_WXHTML_HELP=no
2264 DEFAULT_wxUSE_TREELAYOUT=no
2265 DEFAULT_wxUSE_METAFILE=no
2266 DEFAULT_wxUSE_MIMETYPE=no
2267 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2268 DEFAULT_wxUSE_PROTOCOL=no
2269 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2270 DEFAULT_wxUSE_PROTOCOL_FTP=no
2271 DEFAULT_wxUSE_PROTOCOL_FILE=no
2272 DEFAULT_wxUSE_URL=no
ca5c6ac3 2273 DEFAULT_wxUSE_VARIANT=no
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_COMMONDLGS=no
2276 DEFAULT_wxUSE_CHOICEDLG=no
2277 DEFAULT_wxUSE_COLOURDLG=no
2278 DEFAULT_wxUSE_DIRDLG=no
2279 DEFAULT_wxUSE_FILEDLG=no
2280 DEFAULT_wxUSE_FINDREPLDLG=no
2281 DEFAULT_wxUSE_FONTDLG=no
2282 DEFAULT_wxUSE_MSGDLG=no
2283 DEFAULT_wxUSE_NUMBERDLG=no
2284 DEFAULT_wxUSE_TEXTDLG=no
2285 DEFAULT_wxUSE_SPLASH=no
2286 DEFAULT_wxUSE_STARTUP_TIPS=no
2287 DEFAULT_wxUSE_PROGRESSDLG=no
2288 DEFAULT_wxUSE_WIZARDDLG=no
2289
2290 DEFAULT_wxUSE_MENUS=no
2291 DEFAULT_wxUSE_MINIFRAME=no
2292 DEFAULT_wxUSE_HTML=no
91dea314 2293 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2294 DEFAULT_wxUSE_XRC=no
3f60522a 2295 DEFAULT_wxUSE_AUI=no
646b6ec1 2296 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2297 DEFAULT_wxUSE_FILESYSTEM=no
2298 DEFAULT_wxUSE_FS_INET=no
2299 DEFAULT_wxUSE_FS_ZIP=no
2300 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2301 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2302 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2303 DEFAULT_wxUSE_VALIDATORS=no
2304
2305 DEFAULT_wxUSE_ACCEL=no
2306 DEFAULT_wxUSE_BUTTON=no
2307 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2308 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2309 DEFAULT_wxUSE_CALCTRL=no
2310 DEFAULT_wxUSE_CARET=no
2311 DEFAULT_wxUSE_CHECKBOX=no
2312 DEFAULT_wxUSE_CHECKLST=no
2313 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2314 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2315 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2316 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2317 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2318 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2319 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2320 DEFAULT_wxUSE_DIRPICKERCTRL=no
2321 DEFAULT_wxUSE_FILEPICKERCTRL=no
2322 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2323 DEFAULT_wxUSE_GAUGE=no
2324 DEFAULT_wxUSE_GRID=no
6954625c 2325 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2326 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2327 DEFAULT_wxUSE_IMAGLIST=no
2328 DEFAULT_wxUSE_LISTBOOK=no
2329 DEFAULT_wxUSE_LISTBOX=no
2330 DEFAULT_wxUSE_LISTCTRL=no
2331 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2332 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2333 DEFAULT_wxUSE_RADIOBOX=no
2334 DEFAULT_wxUSE_RADIOBTN=no
2335 DEFAULT_wxUSE_SASH=no
2336 DEFAULT_wxUSE_SCROLLBAR=no
2337 DEFAULT_wxUSE_SLIDER=no
2338 DEFAULT_wxUSE_SPINBTN=no
2339 DEFAULT_wxUSE_SPINCTRL=no
2340 DEFAULT_wxUSE_SPLITTER=no
2341 DEFAULT_wxUSE_STATBMP=no
2342 DEFAULT_wxUSE_STATBOX=no
2343 DEFAULT_wxUSE_STATLINE=no
2344 DEFAULT_wxUSE_STATTEXT=no
2345 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2346 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2347 DEFAULT_wxUSE_TEXTCTRL=no
2348 DEFAULT_wxUSE_TOGGLEBTN=no
2349 DEFAULT_wxUSE_TOOLBAR=no
2350 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2351 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2352 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2353 DEFAULT_wxUSE_TREECTRL=no
2354 DEFAULT_wxUSE_POPUPWIN=no
2355 DEFAULT_wxUSE_TIPWINDOW=no
2356
2357 DEFAULT_wxUSE_UNICODE=no
2358 DEFAULT_wxUSE_UNICODE_MSLU=no
2359 DEFAULT_wxUSE_WCSRTOMBS=no
2360
2361 DEFAULT_wxUSE_PALETTE=no
2362 DEFAULT_wxUSE_IMAGE=no
2363 DEFAULT_wxUSE_GIF=no
2364 DEFAULT_wxUSE_PCX=no
2365 DEFAULT_wxUSE_PNM=no
2366 DEFAULT_wxUSE_IFF=no
2367 DEFAULT_wxUSE_XPM=no
2368 DEFAULT_wxUSE_ICO_CUR=no
2369 DEFAULT_wxUSE_ACCESSIBILITY=no
2370
2371 DEFAULT_wxUSE_MONOLITHIC=no
2372 DEFAULT_wxUSE_PLUGINS=no
2373 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2374else
2375 DEFAULT_wxUSE_UNIVERSAL=no
2376 DEFAULT_wxUSE_STL=no
2377
2378 DEFAULT_wxUSE_NANOX=no
2379
2380 DEFAULT_wxUSE_THREADS=yes
2381
5acfd58d 2382 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2383 DEFAULT_wxUSE_OPTIMISE=yes
2384 DEFAULT_wxUSE_PROFILE=no
2385 DEFAULT_wxUSE_NO_DEPS=no
2386 DEFAULT_wxUSE_NO_RTTI=no
2387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2388 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2389 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2390 DEFAULT_wxUSE_PERMISSIVE=no
2391 DEFAULT_wxUSE_DEBUG_FLAG=no
2392 DEFAULT_wxUSE_DEBUG_INFO=no
2393 DEFAULT_wxUSE_DEBUG_GDB=no
2394 DEFAULT_wxUSE_MEM_TRACING=no
2395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2396 DEFAULT_wxUSE_DMALLOC=no
2397 DEFAULT_wxUSE_APPLE_IEEE=yes
2398
2399 DEFAULT_wxUSE_EXCEPTIONS=yes
2400 DEFAULT_wxUSE_LOG=yes
2401 DEFAULT_wxUSE_LOGWINDOW=yes
2402 DEFAULT_wxUSE_LOGGUI=yes
2403 DEFAULT_wxUSE_LOGDIALOG=yes
2404
2405 DEFAULT_wxUSE_GUI=yes
2406
2407 DEFAULT_wxUSE_REGEX=yes
2408 DEFAULT_wxUSE_XML=yes
2409 DEFAULT_wxUSE_EXPAT=yes
2410 DEFAULT_wxUSE_ZLIB=yes
2411 DEFAULT_wxUSE_LIBPNG=yes
2412 DEFAULT_wxUSE_LIBJPEG=yes
2413 DEFAULT_wxUSE_LIBTIFF=yes
2414 DEFAULT_wxUSE_LIBXPM=yes
2415 DEFAULT_wxUSE_LIBMSPACK=yes
2416 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2417 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2418 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2419 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2420 DEFAULT_wxUSE_ODBC=no
52cb607e 2421 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2422
2423 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2424 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2425 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2426 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2427 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2428 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2429 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2430 DEFAULT_wxUSE_DATETIME=yes
2431 DEFAULT_wxUSE_TIMER=yes
2432 DEFAULT_wxUSE_STOPWATCH=yes
2433 DEFAULT_wxUSE_FILE=yes
2434 DEFAULT_wxUSE_FFILE=yes
07158944 2435 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2436 DEFAULT_wxUSE_TEXTBUFFER=yes
2437 DEFAULT_wxUSE_TEXTFILE=yes
2438 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2439 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2440 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2441 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2442 DEFAULT_wxUSE_INTL=yes
2443 DEFAULT_wxUSE_CONFIG=yes
2444 DEFAULT_wxUSE_FONTMAP=yes
2445 DEFAULT_wxUSE_STREAMS=yes
2446 DEFAULT_wxUSE_SOCKETS=yes
2447 DEFAULT_wxUSE_OLE=yes
2448 DEFAULT_wxUSE_DATAOBJ=yes
2449 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2450 DEFAULT_wxUSE_JOYSTICK=yes
2451 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2452 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2453 DEFAULT_wxUSE_LONGLONG=yes
2454 DEFAULT_wxUSE_GEOMETRY=yes
2455
2456 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2457 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2458 DEFAULT_wxUSE_POSTSCRIPT=yes
2459
2460 DEFAULT_wxUSE_CLIPBOARD=yes
2461 DEFAULT_wxUSE_TOOLTIPS=yes
2462 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2463 DEFAULT_wxUSE_DRAGIMAGE=yes
2464 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2465 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2466
8a7b1113 2467 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2468 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2469 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2470 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2471
2472 DEFAULT_wxUSE_RESOURCES=no
2473 DEFAULT_wxUSE_CONSTRAINTS=yes
2474 DEFAULT_wxUSE_IPC=yes
2475 DEFAULT_wxUSE_HELP=yes
2476 DEFAULT_wxUSE_MS_HTML_HELP=yes
2477 DEFAULT_wxUSE_WXHTML_HELP=yes
2478 DEFAULT_wxUSE_TREELAYOUT=yes
2479 DEFAULT_wxUSE_METAFILE=yes
2480 DEFAULT_wxUSE_MIMETYPE=yes
2481 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2482 DEFAULT_wxUSE_PROTOCOL=yes
2483 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2484 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2485 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2486 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2487 DEFAULT_wxUSE_VARIANT=yes
a848cd7e
SC
2488
2489 DEFAULT_wxUSE_COMMONDLGS=yes
2490 DEFAULT_wxUSE_CHOICEDLG=yes
2491 DEFAULT_wxUSE_COLOURDLG=yes
2492 DEFAULT_wxUSE_DIRDLG=yes
2493 DEFAULT_wxUSE_FILEDLG=yes
2494 DEFAULT_wxUSE_FINDREPLDLG=yes
2495 DEFAULT_wxUSE_FONTDLG=yes
2496 DEFAULT_wxUSE_MSGDLG=yes
2497 DEFAULT_wxUSE_NUMBERDLG=yes
2498 DEFAULT_wxUSE_TEXTDLG=yes
2499 DEFAULT_wxUSE_SPLASH=yes
2500 DEFAULT_wxUSE_STARTUP_TIPS=yes
2501 DEFAULT_wxUSE_PROGRESSDLG=yes
2502 DEFAULT_wxUSE_WIZARDDLG=yes
2503
2504 DEFAULT_wxUSE_MENUS=yes
2505 DEFAULT_wxUSE_MINIFRAME=yes
2506 DEFAULT_wxUSE_HTML=yes
91dea314 2507 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2508 DEFAULT_wxUSE_XRC=yes
3f60522a 2509 DEFAULT_wxUSE_AUI=yes
646b6ec1 2510 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2511 DEFAULT_wxUSE_FILESYSTEM=yes
2512 DEFAULT_wxUSE_FS_INET=yes
2513 DEFAULT_wxUSE_FS_ZIP=yes
2514 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2515 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2516 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2517 DEFAULT_wxUSE_VALIDATORS=yes
2518
2519 DEFAULT_wxUSE_ACCEL=yes
2520 DEFAULT_wxUSE_BUTTON=yes
2521 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2522 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2523 DEFAULT_wxUSE_CALCTRL=yes
2524 DEFAULT_wxUSE_CARET=yes
2525 DEFAULT_wxUSE_CHECKBOX=yes
2526 DEFAULT_wxUSE_CHECKLST=yes
2527 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2528 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2529 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2530 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2531 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2532 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2533 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2534 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2535 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2536 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2537 DEFAULT_wxUSE_GAUGE=yes
2538 DEFAULT_wxUSE_GRID=yes
6954625c 2539 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2540 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2541 DEFAULT_wxUSE_IMAGLIST=yes
2542 DEFAULT_wxUSE_LISTBOOK=yes
2543 DEFAULT_wxUSE_LISTBOX=yes
2544 DEFAULT_wxUSE_LISTCTRL=yes
2545 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2546 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2547 DEFAULT_wxUSE_RADIOBOX=yes
2548 DEFAULT_wxUSE_RADIOBTN=yes
2549 DEFAULT_wxUSE_SASH=yes
2550 DEFAULT_wxUSE_SCROLLBAR=yes
2551 DEFAULT_wxUSE_SLIDER=yes
2552 DEFAULT_wxUSE_SPINBTN=yes
2553 DEFAULT_wxUSE_SPINCTRL=yes
2554 DEFAULT_wxUSE_SPLITTER=yes
2555 DEFAULT_wxUSE_STATBMP=yes
2556 DEFAULT_wxUSE_STATBOX=yes
2557 DEFAULT_wxUSE_STATLINE=yes
2558 DEFAULT_wxUSE_STATTEXT=yes
2559 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2560 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2561 DEFAULT_wxUSE_TEXTCTRL=yes
2562 DEFAULT_wxUSE_TOGGLEBTN=yes
2563 DEFAULT_wxUSE_TOOLBAR=yes
2564 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2565 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2566 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2567 DEFAULT_wxUSE_TREECTRL=yes
2568 DEFAULT_wxUSE_POPUPWIN=yes
2569 DEFAULT_wxUSE_TIPWINDOW=yes
2570
78de529b 2571 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2572 DEFAULT_wxUSE_UNICODE_MSLU=yes
2573 DEFAULT_wxUSE_WCSRTOMBS=no
2574
2575 DEFAULT_wxUSE_PALETTE=yes
2576 DEFAULT_wxUSE_IMAGE=yes
2577 DEFAULT_wxUSE_GIF=yes
2578 DEFAULT_wxUSE_PCX=yes
2579 DEFAULT_wxUSE_IFF=no
2580 DEFAULT_wxUSE_PNM=yes
2581 DEFAULT_wxUSE_XPM=yes
2582 DEFAULT_wxUSE_ICO_CUR=yes
2583 DEFAULT_wxUSE_ACCESSIBILITY=no
2584
2585 DEFAULT_wxUSE_MONOLITHIC=no
2586 DEFAULT_wxUSE_PLUGINS=no
2587 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2588
f34ca037 2589 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2590fi
2591
2592
2593
f34ca037 2594
a848cd7e
SC
2595for toolkit in `echo $ALL_TOOLKITS`; do
2596 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2597 if test "x$LINE" != "x" ; then
2598 has_toolkit_in_cache=1
2599 eval "DEFAULT_$LINE"
2600 eval "CACHE_$toolkit=1"
f34ca037
MW
2601
2602 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2603 if test "x$LINE" != "x" ; then
2604 eval "DEFAULT_$LINE"
2605 fi
a848cd7e
SC
2606 fi
2607done
2608
2609
2610
2611 enablestring=
2612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2613echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2614 no_cache=0
2615 # Check whether --enable-gui or --disable-gui was given.
2616if test "${enable_gui+set}" = set; then
2617 enableval="$enable_gui"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_gui='wxUSE_GUI=yes'
2621 else
2622 ac_cv_use_gui='wxUSE_GUI=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2635
2636fi;
2637
2638 eval "$ac_cv_use_gui"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxUSE_GUI" = yes; then
2644 echo "$as_me:$LINENO: result: yes" >&5
2645echo "${ECHO_T}yes" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6
2649 fi
2650
2651
2652 enablestring=
2653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2654echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2655 no_cache=0
2656 # Check whether --enable-monolithic or --disable-monolithic was given.
2657if test "${enable_monolithic+set}" = set; then
2658 enableval="$enable_monolithic"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2662 else
2663 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2664 fi
2665
2666else
2667
2668 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2676
2677fi;
2678
2679 eval "$ac_cv_use_monolithic"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_MONOLITHIC" = yes; then
2685 echo "$as_me:$LINENO: result: yes" >&5
2686echo "${ECHO_T}yes" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690 fi
2691
2692
2693 enablestring=
2694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2695echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2696 no_cache=0
2697 # Check whether --enable-plugins or --disable-plugins was given.
2698if test "${enable_plugins+set}" = set; then
2699 enableval="$enable_plugins"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2703 else
2704 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2705 fi
2706
2707else
2708
2709 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2717
2718fi;
2719
2720 eval "$ac_cv_use_plugins"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_PLUGINS" = yes; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727echo "${ECHO_T}yes" >&6
2728 else
2729 echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
2731 fi
2732
2733
1c14217d
VZ
2734 withstring=without
2735 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2736echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2737 no_cache=0
2738
2739# Check whether --with-subdirs or --without-subdirs was given.
2740if test "${with_subdirs+set}" = set; then
2741 withval="$with_subdirs"
2742
2743 if test "$withval" = yes; then
2744 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2745 else
2746 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2747 fi
2748
2749else
2750
2751 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2759
2760fi;
2761
2762 eval "$ac_cv_use_subdirs"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxWITH_SUBDIRS" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
2770 else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773 fi
2774
2775
a848cd7e
SC
2776if test "$wxUSE_GUI" = "yes"; then
2777
2778
2779 enablestring=
2780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2781echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2782 no_cache=0
2783 # Check whether --enable-universal or --disable-universal was given.
2784if test "${enable_universal+set}" = set; then
2785 enableval="$enable_universal"
2786
2787 if test "$enableval" = yes; then
2788 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2789 else
2790 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2791 fi
2792
2793else
2794
2795 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2796 if test "x$LINE" != x ; then
2797 eval "DEFAULT_$LINE"
2798 else
2799 no_cache=1
2800 fi
2801
2802 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2803
2804fi;
2805
2806 eval "$ac_cv_use_universal"
2807 if test "$no_cache" != 1; then
2808 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2809 fi
2810
2811 if test "$wxUSE_UNIVERSAL" = yes; then
2812 echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
2814 else
2815 echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6
2817 fi
2818
2819
2820# Check whether --with-gtk or --without-gtk was given.
2821if test "${with_gtk+set}" = set; then
2822 withval="$with_gtk"
2823 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2824fi;
2825
2826# Check whether --with-motif or --without-motif was given.
2827if test "${with_motif+set}" = set; then
2828 withval="$with_motif"
2829 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2830fi;
2831
2832# Check whether --with-mac or --without-mac was given.
2833if test "${with_mac+set}" = set; then
2834 withval="$with_mac"
c228d3a4 2835 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2836fi;
2837
2838# Check whether --with-cocoa or --without-cocoa was given.
2839if test "${with_cocoa+set}" = set; then
2840 withval="$with_cocoa"
c228d3a4 2841 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2842fi;
2843
2844# Check whether --with-wine or --without-wine was given.
2845if test "${with_wine+set}" = set; then
2846 withval="$with_wine"
2847 wxUSE_WINE="$withval" CACHE_WINE=1
2848fi;
2849
2850# Check whether --with-msw or --without-msw was given.
2851if test "${with_msw+set}" = set; then
2852 withval="$with_msw"
2853 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2854fi;
2855
2856# Check whether --with-pm or --without-pm was given.
2857if test "${with_pm+set}" = set; then
2858 withval="$with_pm"
2859 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2860fi;
2861
2862# Check whether --with-mgl or --without-mgl was given.
2863if test "${with_mgl+set}" = set; then
2864 withval="$with_mgl"
2865 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2866fi;
2867
b3c86150
VS
2868# Check whether --with-directfb or --without-directfb was given.
2869if test "${with_directfb+set}" = set; then
2870 withval="$with_directfb"
2871 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2872fi;
2873
a848cd7e
SC
2874# Check whether --with-microwin or --without-microwin was given.
2875if test "${with_microwin+set}" = set; then
2876 withval="$with_microwin"
2877 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2878fi;
2879
2880# Check whether --with-x11 or --without-x11 was given.
2881if test "${with_x11+set}" = set; then
2882 withval="$with_x11"
2883 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2884fi;
2885
2886 enablestring=
2887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2888echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2889 no_cache=0
2890 # Check whether --enable-nanox or --disable-nanox was given.
2891if test "${enable_nanox+set}" = set; then
2892 enableval="$enable_nanox"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_nanox='wxUSE_NANOX=yes'
2896 else
2897 ac_cv_use_nanox='wxUSE_NANOX=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2910
2911fi;
2912
2913 eval "$ac_cv_use_nanox"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_NANOX" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 else
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 fi
2925
2926
f34ca037
MW
2927# Check whether --enable-gtk2 or --disable-gtk2 was given.
2928if test "${enable_gtk2+set}" = set; then
2929 enableval="$enable_gtk2"
2930 wxUSE_GTK2="$enableval"
2931fi;
a848cd7e 2932
a848cd7e
SC
2933 enablestring=
2934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2935echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2936 no_cache=0
2937 # Check whether --enable-gpe or --disable-gpe was given.
2938if test "${enable_gpe+set}" = set; then
2939 enableval="$enable_gpe"
2940
2941 if test "$enableval" = yes; then
2942 ac_cv_use_gpe='wxUSE_GPE=yes'
2943 else
2944 ac_cv_use_gpe='wxUSE_GPE=no'
2945 fi
2946
2947else
2948
2949 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2957
2958fi;
2959
2960 eval "$ac_cv_use_gpe"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$wxUSE_GPE" = yes; then
2966 echo "$as_me:$LINENO: result: yes" >&5
2967echo "${ECHO_T}yes" >&6
2968 else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971 fi
2972
2973
2974
2975 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2976echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2977 no_cache=0
2978
2979# Check whether --with-libpng or --without-libpng was given.
2980if test "${with_libpng+set}" = set; then
2981 withval="$with_libpng"
2982
2983 if test "$withval" = yes; then
2984 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2985 elif test "$withval" = no; then
2986 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2987 elif test "$withval" = sys; then
2988 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2989 elif test "$withval" = builtin; then
2990 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997else
2998
2999 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3000 if test "x$LINE" != x ; then
3001 eval "DEFAULT_$LINE"
3002 else
3003 no_cache=1
3004 fi
3005
3006 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3007
3008fi;
3009
3010 eval "$ac_cv_use_libpng"
3011 if test "$no_cache" != 1; then
3012 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3013 fi
3014
3015 if test "$wxUSE_LIBPNG" = yes; then
3016 echo "$as_me:$LINENO: result: yes" >&5
3017echo "${ECHO_T}yes" >&6
3018 elif test "$wxUSE_LIBPNG" = no; then
3019 echo "$as_me:$LINENO: result: no" >&5
3020echo "${ECHO_T}no" >&6
3021 elif test "$wxUSE_LIBPNG" = sys; then
3022 echo "$as_me:$LINENO: result: system version" >&5
3023echo "${ECHO_T}system version" >&6
3024 elif test "$wxUSE_LIBPNG" = builtin; then
3025 echo "$as_me:$LINENO: result: builtin version" >&5
3026echo "${ECHO_T}builtin version" >&6
3027 else
3028 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3029echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3030 { (exit 1); exit 1; }; }
3031 fi
3032
3033
3034 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3035echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3036 no_cache=0
3037
3038# Check whether --with-libjpeg or --without-libjpeg was given.
3039if test "${with_libjpeg+set}" = set; then
3040 withval="$with_libjpeg"
3041
3042 if test "$withval" = yes; then
3043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3044 elif test "$withval" = no; then
3045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3046 elif test "$withval" = sys; then
3047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3048 elif test "$withval" = builtin; then
3049 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3050 else
3051 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3052echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3053 { (exit 1); exit 1; }; }
3054 fi
3055
3056else
3057
3058 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3066
3067fi;
3068
3069 eval "$ac_cv_use_libjpeg"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_LIBJPEG" = yes; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076echo "${ECHO_T}yes" >&6
3077 elif test "$wxUSE_LIBJPEG" = no; then
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080 elif test "$wxUSE_LIBJPEG" = sys; then
3081 echo "$as_me:$LINENO: result: system version" >&5
3082echo "${ECHO_T}system version" >&6
3083 elif test "$wxUSE_LIBJPEG" = builtin; then
3084 echo "$as_me:$LINENO: result: builtin version" >&5
3085echo "${ECHO_T}builtin version" >&6
3086 else
3087 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3088echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3089 { (exit 1); exit 1; }; }
3090 fi
3091
3092
3093 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3094echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3095 no_cache=0
3096
3097# Check whether --with-libtiff or --without-libtiff was given.
3098if test "${with_libtiff+set}" = set; then
3099 withval="$with_libtiff"
3100
3101 if test "$withval" = yes; then
3102 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3103 elif test "$withval" = no; then
3104 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3105 elif test "$withval" = sys; then
3106 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3107 elif test "$withval" = builtin; then
3108 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3109 else
3110 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3111echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3112 { (exit 1); exit 1; }; }
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3125
3126fi;
3127
3128 eval "$ac_cv_use_libtiff"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_LIBTIFF" = yes; then
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
3136 elif test "$wxUSE_LIBTIFF" = no; then
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139 elif test "$wxUSE_LIBTIFF" = sys; then
3140 echo "$as_me:$LINENO: result: system version" >&5
3141echo "${ECHO_T}system version" >&6
3142 elif test "$wxUSE_LIBTIFF" = builtin; then
3143 echo "$as_me:$LINENO: result: builtin version" >&5
3144echo "${ECHO_T}builtin version" >&6
3145 else
3146 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3147echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3148 { (exit 1); exit 1; }; }
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3153echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3154 no_cache=0
3155
3156# Check whether --with-libxpm or --without-libxpm was given.
3157if test "${with_libxpm+set}" = set; then
3158 withval="$with_libxpm"
3159
3160 if test "$withval" = yes; then
3161 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3162 elif test "$withval" = no; then
3163 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3164 elif test "$withval" = sys; then
3165 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3166 elif test "$withval" = builtin; then
3167 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3168 else
3169 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3170echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3171 { (exit 1); exit 1; }; }
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3184
3185fi;
3186
3187 eval "$ac_cv_use_libxpm"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_LIBXPM" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194echo "${ECHO_T}yes" >&6
3195 elif test "$wxUSE_LIBXPM" = no; then
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198 elif test "$wxUSE_LIBXPM" = sys; then
3199 echo "$as_me:$LINENO: result: system version" >&5
3200echo "${ECHO_T}system version" >&6
3201 elif test "$wxUSE_LIBXPM" = builtin; then
3202 echo "$as_me:$LINENO: result: builtin version" >&5
3203echo "${ECHO_T}builtin version" >&6
3204 else
3205 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3206echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
1c14217d
VZ
3211 withstring=
3212 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3213echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3214 no_cache=0
3215
3216# Check whether --with-libmspack or --without-libmspack was given.
3217if test "${with_libmspack+set}" = set; then
3218 withval="$with_libmspack"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3222 else
3223 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3224 fi
3225
3226else
3227
3228 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3229 if test "x$LINE" != x ; then
3230 eval "DEFAULT_$LINE"
3231 else
3232 no_cache=1
3233 fi
3234
3235 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3236
3237fi;
3238
3239 eval "$ac_cv_use_libmspack"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_LIBMSPACK" = yes; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246echo "${ECHO_T}yes" >&6
3247 else
3248 echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250 fi
3251
3252
1c14217d
VZ
3253 withstring=
3254 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3255echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3256 no_cache=0
3257
3258# Check whether --with-sdl or --without-sdl was given.
3259if test "${with_sdl+set}" = set; then
3260 withval="$with_sdl"
3261
3262 if test "$withval" = yes; then
3263 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3264 else
3265 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3266 fi
3267
3268else
3269
3270 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3271 if test "x$LINE" != x ; then
3272 eval "DEFAULT_$LINE"
3273 else
3274 no_cache=1
3275 fi
3276
3277 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3278
3279fi;
3280
3281 eval "$ac_cv_use_sdl"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_LIBSDL" = yes; then
3287 echo "$as_me:$LINENO: result: yes" >&5
3288echo "${ECHO_T}yes" >&6
3289 else
3290 echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6
3292 fi
3293
3294
1c14217d
VZ
3295 withstring=
3296 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3297echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3298 no_cache=0
3299
3300# Check whether --with-gnomeprint or --without-gnomeprint was given.
3301if test "${with_gnomeprint+set}" = set; then
3302 withval="$with_gnomeprint"
3303
3304 if test "$withval" = yes; then
3305 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3306 else
3307 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3320
3321fi;
3322
3323 eval "$ac_cv_use_gnomeprint"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 else
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 fi
3335
3336
2b850ae1
RR
3337 withstring=
3338 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3339echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3340 no_cache=0
3341
3342# Check whether --with-gnomevfs or --without-gnomevfs was given.
3343if test "${with_gnomevfs+set}" = set; then
3344 withval="$with_gnomevfs"
3345
3346 if test "$withval" = yes; then
3347 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3348 else
3349 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3350 fi
3351
3352else
3353
3354 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3362
3363fi;
3364
3365 eval "$ac_cv_use_gnomevfs"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
3373 else
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376 fi
3377
3378
3565d135
RR
3379 withstring=
3380 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3381echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3382 no_cache=0
3383
3384# Check whether --with-hildon or --without-hildon was given.
3385if test "${with_hildon+set}" = set; then
3386 withval="$with_hildon"
3387
3388 if test "$withval" = yes; then
3389 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3390 else
3391 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3392 fi
3393
3394else
3395
3396 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3404
3405fi;
3406
3407 eval "$ac_cv_use_hildon"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_LIBHILDON" = yes; then
3413 echo "$as_me:$LINENO: result: yes" >&5
3414echo "${ECHO_T}yes" >&6
3415 else
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
3418 fi
3419
3420
1c14217d
VZ
3421 withstring=
3422 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3423echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3424 no_cache=0
3425
3426# Check whether --with-opengl or --without-opengl was given.
3427if test "${with_opengl+set}" = set; then
3428 withval="$with_opengl"
3429
3430 if test "$withval" = yes; then
3431 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3432 else
3433 ac_cv_use_opengl='wxUSE_OPENGL=no'
3434 fi
3435
3436else
3437
3438 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3446
3447fi;
3448
3449 eval "$ac_cv_use_opengl"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_OPENGL" = yes; then
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
3457 else
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
3460 fi
3461
3462
3463fi
3464
3465
1c14217d
VZ
3466 withstring=
3467 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3468echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3469 no_cache=0
3470
3471# Check whether --with-dmalloc or --without-dmalloc was given.
3472if test "${with_dmalloc+set}" = set; then
3473 withval="$with_dmalloc"
3474
3475 if test "$withval" = yes; then
3476 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3477 else
3478 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3491
3492fi;
3493
3494 eval "$ac_cv_use_dmalloc"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_DMALLOC" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 echo "$as_me:$LINENO: checking for --with-regex" >&5
3509echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3510 no_cache=0
3511
3512# Check whether --with-regex or --without-regex was given.
3513if test "${with_regex+set}" = set; then
3514 withval="$with_regex"
3515
3516 if test "$withval" = yes; then
3517 ac_cv_use_regex='wxUSE_REGEX=yes'
3518 elif test "$withval" = no; then
3519 ac_cv_use_regex='wxUSE_REGEX=no'
3520 elif test "$withval" = sys; then
3521 ac_cv_use_regex='wxUSE_REGEX=sys'
3522 elif test "$withval" = builtin; then
3523 ac_cv_use_regex='wxUSE_REGEX=builtin'
3524 else
3525 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3526echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3527 { (exit 1); exit 1; }; }
3528 fi
3529
3530else
3531
3532 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3540
3541fi;
3542
3543 eval "$ac_cv_use_regex"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_REGEX" = yes; then
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
3551 elif test "$wxUSE_REGEX" = no; then
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554 elif test "$wxUSE_REGEX" = sys; then
3555 echo "$as_me:$LINENO: result: system version" >&5
3556echo "${ECHO_T}system version" >&6
3557 elif test "$wxUSE_REGEX" = builtin; then
3558 echo "$as_me:$LINENO: result: builtin version" >&5
3559echo "${ECHO_T}builtin version" >&6
3560 else
3561 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3562echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3563 { (exit 1); exit 1; }; }
3564 fi
3565
3566
3567 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3568echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3569 no_cache=0
3570
3571# Check whether --with-zlib or --without-zlib was given.
3572if test "${with_zlib+set}" = set; then
3573 withval="$with_zlib"
3574
3575 if test "$withval" = yes; then
3576 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3577 elif test "$withval" = no; then
3578 ac_cv_use_zlib='wxUSE_ZLIB=no'
3579 elif test "$withval" = sys; then
3580 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3581 elif test "$withval" = builtin; then
3582 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3583 else
3584 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3585echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3586 { (exit 1); exit 1; }; }
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3599
3600fi;
3601
3602 eval "$ac_cv_use_zlib"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_ZLIB" = yes; then
3608 echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6
3610 elif test "$wxUSE_ZLIB" = no; then
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613 elif test "$wxUSE_ZLIB" = sys; then
3614 echo "$as_me:$LINENO: result: system version" >&5
3615echo "${ECHO_T}system version" >&6
3616 elif test "$wxUSE_ZLIB" = builtin; then
3617 echo "$as_me:$LINENO: result: builtin version" >&5
3618echo "${ECHO_T}builtin version" >&6
3619 else
3620 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3621echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3622 { (exit 1); exit 1; }; }
3623 fi
3624
3625
3626 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3627echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3628 no_cache=0
3629
3630# Check whether --with-odbc or --without-odbc was given.
3631if test "${with_odbc+set}" = set; then
3632 withval="$with_odbc"
3633
3634 if test "$withval" = yes; then
3635 ac_cv_use_odbc='wxUSE_ODBC=yes'
3636 elif test "$withval" = no; then
3637 ac_cv_use_odbc='wxUSE_ODBC=no'
3638 elif test "$withval" = sys; then
3639 ac_cv_use_odbc='wxUSE_ODBC=sys'
3640 elif test "$withval" = builtin; then
3641 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3642 else
3643 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3644echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3645 { (exit 1); exit 1; }; }
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3658
3659fi;
3660
3661 eval "$ac_cv_use_odbc"
3662 if test "$no_cache" != 1; then
3663 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3664 fi
3665
3666 if test "$wxUSE_ODBC" = yes; then
3667 echo "$as_me:$LINENO: result: yes" >&5
3668echo "${ECHO_T}yes" >&6
3669 elif test "$wxUSE_ODBC" = no; then
3670 echo "$as_me:$LINENO: result: no" >&5
3671echo "${ECHO_T}no" >&6
3672 elif test "$wxUSE_ODBC" = sys; then
3673 echo "$as_me:$LINENO: result: system version" >&5
3674echo "${ECHO_T}system version" >&6
3675 elif test "$wxUSE_ODBC" = builtin; then
3676 echo "$as_me:$LINENO: result: builtin version" >&5
3677echo "${ECHO_T}builtin version" >&6
3678 else
3679 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3680echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3681 { (exit 1); exit 1; }; }
3682 fi
3683
3684
3685 echo "$as_me:$LINENO: checking for --with-expat" >&5
3686echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3687 no_cache=0
3688
3689# Check whether --with-expat or --without-expat was given.
3690if test "${with_expat+set}" = set; then
3691 withval="$with_expat"
3692
3693 if test "$withval" = yes; then
3694 ac_cv_use_expat='wxUSE_EXPAT=yes'
3695 elif test "$withval" = no; then
3696 ac_cv_use_expat='wxUSE_EXPAT=no'
3697 elif test "$withval" = sys; then
3698 ac_cv_use_expat='wxUSE_EXPAT=sys'
3699 elif test "$withval" = builtin; then
3700 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3701 else
3702 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3703echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3704 { (exit 1); exit 1; }; }
3705 fi
3706
3707else
3708
3709 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3710 if test "x$LINE" != x ; then
3711 eval "DEFAULT_$LINE"
3712 else
3713 no_cache=1
3714 fi
3715
3716 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3717
3718fi;
3719
3720 eval "$ac_cv_use_expat"
3721 if test "$no_cache" != 1; then
3722 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3723 fi
3724
3725 if test "$wxUSE_EXPAT" = yes; then
3726 echo "$as_me:$LINENO: result: yes" >&5
3727echo "${ECHO_T}yes" >&6
3728 elif test "$wxUSE_EXPAT" = no; then
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
3731 elif test "$wxUSE_EXPAT" = sys; then
3732 echo "$as_me:$LINENO: result: system version" >&5
3733echo "${ECHO_T}system version" >&6
3734 elif test "$wxUSE_EXPAT" = builtin; then
3735 echo "$as_me:$LINENO: result: builtin version" >&5
3736echo "${ECHO_T}builtin version" >&6
3737 else
3738 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3739echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3740 { (exit 1); exit 1; }; }
3741 fi
3742
3743
3744
3745
3746 enablestring=
3747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3748echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3749 no_cache=0
3750 # Check whether --enable-shared or --disable-shared was given.
3751if test "${enable_shared+set}" = set; then
3752 enableval="$enable_shared"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_shared='wxUSE_SHARED=yes'
3756 else
3757 ac_cv_use_shared='wxUSE_SHARED=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3770
3771fi;
3772
3773 eval "$ac_cv_use_shared"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_SHARED" = yes; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780echo "${ECHO_T}yes" >&6
3781 else
3782 echo "$as_me:$LINENO: result: no" >&5
3783echo "${ECHO_T}no" >&6
3784 fi
3785
3786
3787 enablestring=
3788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3789echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3790 no_cache=0
3791 # Check whether --enable-optimise or --disable-optimise was given.
3792if test "${enable_optimise+set}" = set; then
3793 enableval="$enable_optimise"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3797 else
3798 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3799 fi
3800
3801else
3802
3803 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3811
3812fi;
3813
3814 eval "$ac_cv_use_optimise"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_OPTIMISE" = yes; then
3820 echo "$as_me:$LINENO: result: yes" >&5
3821echo "${ECHO_T}yes" >&6
3822 else
3823 echo "$as_me:$LINENO: result: no" >&5
3824echo "${ECHO_T}no" >&6
3825 fi
3826
3827
3828 enablestring=
3829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3830echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3831 no_cache=0
3832 # Check whether --enable-debug or --disable-debug was given.
3833if test "${enable_debug+set}" = set; then
3834 enableval="$enable_debug"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_debug='wxUSE_DEBUG=yes'
3838 else
3839 ac_cv_use_debug='wxUSE_DEBUG=no'
3840 fi
3841
3842else
3843
3844 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3852
3853fi;
3854
3855 eval "$ac_cv_use_debug"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_DEBUG" = yes; then
3861 echo "$as_me:$LINENO: result: yes" >&5
3862echo "${ECHO_T}yes" >&6
3863 else
3864 echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
3866 fi
3867
3868
3869 enablestring=
3870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3871echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3872 no_cache=0
3873 # Check whether --enable-stl or --disable-stl was given.
3874if test "${enable_stl+set}" = set; then
3875 enableval="$enable_stl"
3876
3877 if test "$enableval" = yes; then
3878 ac_cv_use_stl='wxUSE_STL=yes'
3879 else
3880 ac_cv_use_stl='wxUSE_STL=no'
3881 fi
3882
3883else
3884
3885 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3893
3894fi;
3895
3896 eval "$ac_cv_use_stl"
3897 if test "$no_cache" != 1; then
3898 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3899 fi
3900
3901 if test "$wxUSE_STL" = yes; then
3902 echo "$as_me:$LINENO: result: yes" >&5
3903echo "${ECHO_T}yes" >&6
3904 else
3905 echo "$as_me:$LINENO: result: no" >&5
3906echo "${ECHO_T}no" >&6
3907 fi
3908
3909if test "$USE_OS2" = "1"; then
69120ee4 3910 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3911
3912 enablestring=
3913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3914echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3915 no_cache=0
3916 # Check whether --enable-omf or --disable-omf was given.
3917if test "${enable_omf+set}" = set; then
3918 enableval="$enable_omf"
3919
3920 if test "$enableval" = yes; then
3921 ac_cv_use_omf='wxUSE_OMF=yes'
3922 else
3923 ac_cv_use_omf='wxUSE_OMF=no'
3924 fi
3925
3926else
3927
3928 LINE=`grep "wxUSE_OMF" ${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_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3936
3937fi;
3938
3939 eval "$ac_cv_use_omf"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_OMF" = 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
3952fi
3953
3954if test "$wxUSE_DEBUG" = "yes"; then
3955 DEFAULT_wxUSE_DEBUG_FLAG=yes
3956 DEFAULT_wxUSE_DEBUG_INFO=yes
3957 BUILD=debug
3958elif test "$wxUSE_DEBUG" = "no"; then
3959 DEFAULT_wxUSE_DEBUG_FLAG=no
3960 DEFAULT_wxUSE_DEBUG_INFO=no
3961 BUILD=release
3962fi
3963
3964
3965 enablestring=
3966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3967echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3968 no_cache=0
3969 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3970if test "${enable_debug_flag+set}" = set; then
3971 enableval="$enable_debug_flag"
3972
3973 if test "$enableval" = yes; then
3974 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3975 else
3976 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3977 fi
3978
3979else
3980
3981 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3989
3990fi;
3991
3992 eval "$ac_cv_use_debug_flag"
3993 if test "$no_cache" != 1; then
3994 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3995 fi
3996
3997 if test "$wxUSE_DEBUG_FLAG" = yes; then
3998 echo "$as_me:$LINENO: result: yes" >&5
3999echo "${ECHO_T}yes" >&6
4000 else
4001 echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
4003 fi
4004
4005
4006 enablestring=
4007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4008echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4009 no_cache=0
4010 # Check whether --enable-debug_info or --disable-debug_info was given.
4011if test "${enable_debug_info+set}" = set; then
4012 enableval="$enable_debug_info"
4013
4014 if test "$enableval" = yes; then
4015 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4016 else
4017 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4018 fi
4019
4020else
4021
4022 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4023 if test "x$LINE" != x ; then
4024 eval "DEFAULT_$LINE"
4025 else
4026 no_cache=1
4027 fi
4028
4029 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4030
4031fi;
4032
4033 eval "$ac_cv_use_debug_info"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_DEBUG_INFO" = yes; then
4039 echo "$as_me:$LINENO: result: yes" >&5
4040echo "${ECHO_T}yes" >&6
4041 else
4042 echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6
4044 fi
4045
4046
4047 enablestring=
4048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4049echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4050 no_cache=0
4051 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4052if test "${enable_debug_gdb+set}" = set; then
4053 enableval="$enable_debug_gdb"
4054
4055 if test "$enableval" = yes; then
4056 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4057 else
4058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4059 fi
4060
4061else
4062
4063 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4064 if test "x$LINE" != x ; then
4065 eval "DEFAULT_$LINE"
4066 else
4067 no_cache=1
4068 fi
4069
4070 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4071
4072fi;
4073
4074 eval "$ac_cv_use_debug_gdb"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_DEBUG_GDB" = yes; then
4080 echo "$as_me:$LINENO: result: yes" >&5
4081echo "${ECHO_T}yes" >&6
4082 else
4083 echo "$as_me:$LINENO: result: no" >&5
4084echo "${ECHO_T}no" >&6
4085 fi
4086
4087
4088 enablestring=
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4091 no_cache=0
4092 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4093if test "${enable_debug_cntxt+set}" = set; then
4094 enableval="$enable_debug_cntxt"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4098 else
4099 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4100 fi
4101
4102else
4103
4104 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4112
4113fi;
4114
4115 eval "$ac_cv_use_debug_cntxt"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126 fi
4127
4128
4129 enablestring=
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4132 no_cache=0
4133 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4134if test "${enable_mem_tracing+set}" = set; then
4135 enableval="$enable_mem_tracing"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4139 else
4140 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4153
4154fi;
4155
4156 eval "$ac_cv_use_mem_tracing"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_MEM_TRACING" = yes; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
4170 enablestring=
4171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4172echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4173 no_cache=0
4174 # Check whether --enable-profile or --disable-profile was given.
4175if test "${enable_profile+set}" = set; then
4176 enableval="$enable_profile"
4177
4178 if test "$enableval" = yes; then
4179 ac_cv_use_profile='wxUSE_PROFILE=yes'
4180 else
4181 ac_cv_use_profile='wxUSE_PROFILE=no'
4182 fi
4183
4184else
4185
4186 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
4193 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4194
4195fi;
4196
4197 eval "$ac_cv_use_profile"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_PROFILE" = yes; then
4203 echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208 fi
4209
4210
4211 enablestring=
4212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4213echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4214 no_cache=0
4215 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4216if test "${enable_no_rtti+set}" = set; then
4217 enableval="$enable_no_rtti"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4221 else
4222 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4235
4236fi;
4237
4238 eval "$ac_cv_use_no_rtti"
4239 if test "$no_cache" != 1; then
4240 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4241 fi
4242
4243 if test "$wxUSE_NO_RTTI" = yes; then
4244 echo "$as_me:$LINENO: result: yes" >&5
4245echo "${ECHO_T}yes" >&6
4246 else
4247 echo "$as_me:$LINENO: result: no" >&5
4248echo "${ECHO_T}no" >&6
4249 fi
4250
4251
4252 enablestring=
4253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4254echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4255 no_cache=0
4256 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4257if test "${enable_no_exceptions+set}" = set; then
4258 enableval="$enable_no_exceptions"
4259
4260 if test "$enableval" = yes; then
4261 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4262 else
4263 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4264 fi
4265
4266else
4267
4268 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4276
4277fi;
4278
4279 eval "$ac_cv_use_no_exceptions"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4285 echo "$as_me:$LINENO: result: yes" >&5
4286echo "${ECHO_T}yes" >&6
4287 else
4288 echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290 fi
4291
4292
4293 enablestring=
4294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4295echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4296 no_cache=0
4297 # Check whether --enable-permissive or --disable-permissive was given.
4298if test "${enable_permissive+set}" = set; then
4299 enableval="$enable_permissive"
4300
4301 if test "$enableval" = yes; then
4302 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4303 else
4304 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4305 fi
4306
4307else
4308
4309 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4310 if test "x$LINE" != x ; then
4311 eval "DEFAULT_$LINE"
4312 else
4313 no_cache=1
4314 fi
4315
4316 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4317
4318fi;
4319
4320 eval "$ac_cv_use_permissive"
4321 if test "$no_cache" != 1; then
4322 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4323 fi
4324
4325 if test "$wxUSE_PERMISSIVE" = yes; then
4326 echo "$as_me:$LINENO: result: yes" >&5
4327echo "${ECHO_T}yes" >&6
4328 else
4329 echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6
4331 fi
4332
4333
4334 enablestring=
4335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4336echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4337 no_cache=0
4338 # Check whether --enable-no_deps or --disable-no_deps was given.
4339if test "${enable_no_deps+set}" = set; then
4340 enableval="$enable_no_deps"
4341
4342 if test "$enableval" = yes; then
4343 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4344 else
4345 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4346 fi
4347
4348else
4349
4350 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4358
4359fi;
4360
4361 eval "$ac_cv_use_no_deps"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_NO_DEPS" = yes; then
4367 echo "$as_me:$LINENO: result: yes" >&5
4368echo "${ECHO_T}yes" >&6
4369 else
4370 echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372 fi
4373
4374
95768535 4375 enablestring=
7afc46ab
KO
4376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4377echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4378 no_cache=0
4379 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4380if test "${enable_universal_binary+set}" = set; then
4381 enableval="$enable_universal_binary"
4382
95768535 4383 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4384
4385else
4386
4387 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
95768535 4390 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4391 else
4392 no_cache=1
95768535 4393 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4394 fi
4395
7afc46ab
KO
4396fi;
4397
95768535 4398 eval "$wx_cv_use_universal_binary"
7afc46ab 4399 if test "$no_cache" != 1; then
95768535 4400 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4401 fi
4402
95768535
MW
4403 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4404echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4405
4406
a848cd7e 4407
dee1a63f
MB
4408 enablestring=enable
4409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4410echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4411 no_cache=0
dee1a63f
MB
4412 # Check whether --enable-compat24 or --disable-compat24 was given.
4413if test "${enable_compat24+set}" = set; then
4414 enableval="$enable_compat24"
a848cd7e
SC
4415
4416 if test "$enableval" = yes; then
dee1a63f 4417 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4418 else
dee1a63f 4419 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4420 fi
4421
4422else
4423
dee1a63f 4424 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4425 if test "x$LINE" != x ; then
4426 eval "DEFAULT_$LINE"
4427 else
4428 no_cache=1
4429 fi
4430
dee1a63f 4431 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4432
4433fi;
4434
dee1a63f 4435 eval "$ac_cv_use_compat24"
a848cd7e 4436 if test "$no_cache" != 1; then
dee1a63f 4437 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4438 fi
4439
dee1a63f 4440 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4441 echo "$as_me:$LINENO: result: yes" >&5
4442echo "${ECHO_T}yes" >&6
4443 else
4444 echo "$as_me:$LINENO: result: no" >&5
4445echo "${ECHO_T}no" >&6
4446 fi
4447
4448
4449 enablestring=disable
dee1a63f
MB
4450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4451echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4452 no_cache=0
dee1a63f
MB
4453 # Check whether --enable-compat26 or --disable-compat26 was given.
4454if test "${enable_compat26+set}" = set; then
4455 enableval="$enable_compat26"
a848cd7e
SC
4456
4457 if test "$enableval" = yes; then
dee1a63f 4458 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4459 else
dee1a63f 4460 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4461 fi
4462
4463else
4464
dee1a63f 4465 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
dee1a63f 4472 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4473
4474fi;
4475
dee1a63f 4476 eval "$ac_cv_use_compat26"
a848cd7e 4477 if test "$no_cache" != 1; then
dee1a63f 4478 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4479 fi
4480
dee1a63f 4481 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4482 echo "$as_me:$LINENO: result: yes" >&5
4483echo "${ECHO_T}yes" >&6
4484 else
4485 echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6
4487 fi
4488
4489
ffa0583f
RL
4490
4491 enablestring=
4492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4493echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4494 no_cache=0
4495 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4496if test "${enable_rpath+set}" = set; then
4497 enableval="$enable_rpath"
ffa0583f
RL
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_rpath='wxUSE_RPATH=yes'
4501 else
4502 ac_cv_use_rpath='wxUSE_RPATH=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4515
a848cd7e
SC
4516fi;
4517
ffa0583f
RL
4518 eval "$ac_cv_use_rpath"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_RPATH" = yes; then
4524 echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526 else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529 fi
4530
a848cd7e
SC
4531
4532
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-intl or --disable-intl was given.
4540if test "${enable_intl+set}" = set; then
4541 enableval="$enable_intl"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_intl='wxUSE_INTL=yes'
4545 else
4546 ac_cv_use_intl='wxUSE_INTL=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4559
4560fi;
4561
4562 eval "$ac_cv_use_intl"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_INTL" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576 enablestring=
4577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4578echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4579 no_cache=0
4580 # Check whether --enable-config or --disable-config was given.
4581if test "${enable_config+set}" = set; then
4582 enableval="$enable_config"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_config='wxUSE_CONFIG=yes'
4586 else
4587 ac_cv_use_config='wxUSE_CONFIG=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4600
4601fi;
4602
4603 eval "$ac_cv_use_config"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_CONFIG" = yes; then
4609 echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614 fi
4615
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-protocols or --disable-protocols was given.
4623if test "${enable_protocols+set}" = set; then
4624 enableval="$enable_protocols"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4628 else
4629 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4642
4643fi;
4644
4645 eval "$ac_cv_use_protocols"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_PROTOCOL" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-ftp or --disable-ftp was given.
4664if test "${enable_ftp+set}" = set; then
4665 enableval="$enable_ftp"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4669 else
4670 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4683
4684fi;
4685
4686 eval "$ac_cv_use_ftp"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-http or --disable-http was given.
4705if test "${enable_http+set}" = set; then
4706 enableval="$enable_http"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4710 else
4711 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4724
4725fi;
4726
4727 eval "$ac_cv_use_http"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-fileproto or --disable-fileproto was given.
4746if test "${enable_fileproto+set}" = set; then
4747 enableval="$enable_fileproto"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4751 else
4752 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4765
4766fi;
4767
4768 eval "$ac_cv_use_fileproto"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-sockets or --disable-sockets was given.
4787if test "${enable_sockets+set}" = set; then
4788 enableval="$enable_sockets"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4792 else
4793 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4806
4807fi;
4808
4809 eval "$ac_cv_use_sockets"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_SOCKETS" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-ole or --disable-ole was given.
4828if test "${enable_ole+set}" = set; then
4829 enableval="$enable_ole"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_ole='wxUSE_OLE=yes'
4833 else
4834 ac_cv_use_ole='wxUSE_OLE=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4847
4848fi;
4849
4850 eval "$ac_cv_use_ole"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_OLE" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-dataobj or --disable-dataobj was given.
4869if test "${enable_dataobj+set}" = set; then
4870 enableval="$enable_dataobj"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4874 else
4875 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4888
4889fi;
4890
4891 eval "$ac_cv_use_dataobj"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_DATAOBJ" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905
4906 enablestring=
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4909 no_cache=0
4910 # Check whether --enable-ipc or --disable-ipc was given.
4911if test "${enable_ipc+set}" = set; then
4912 enableval="$enable_ipc"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_ipc='wxUSE_IPC=yes'
4916 else
4917 ac_cv_use_ipc='wxUSE_IPC=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4930
4931fi;
4932
4933 eval "$ac_cv_use_ipc"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_IPC" = yes; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
4947
4948 enablestring=
4949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4950echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4951 no_cache=0
4952 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4953if test "${enable_apple_ieee+set}" = set; then
4954 enableval="$enable_apple_ieee"
4955
4956 if test "$enableval" = yes; then
4957 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4958 else
4959 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4960 fi
4961
4962else
4963
4964 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4965 if test "x$LINE" != x ; then
4966 eval "DEFAULT_$LINE"
4967 else
4968 no_cache=1
4969 fi
4970
4971 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4972
4973fi;
4974
4975 eval "$ac_cv_use_apple_ieee"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_APPLE_IEEE" = yes; then
4981 echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983 else
4984 echo "$as_me:$LINENO: result: no" >&5
4985echo "${ECHO_T}no" >&6
4986 fi
4987
4988
81f90336
MW
4989 enablestring=
4990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4991echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4992 no_cache=0
4993 # Check whether --enable-arcstream or --disable-arcstream was given.
4994if test "${enable_arcstream+set}" = set; then
4995 enableval="$enable_arcstream"
4996
4997 if test "$enableval" = yes; then
9e8e867f 4998 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4999 else
9e8e867f 5000 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5001 fi
5002
5003else
5004
9e8e867f 5005 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5006 if test "x$LINE" != x ; then
5007 eval "DEFAULT_$LINE"
5008 else
5009 no_cache=1
5010 fi
5011
9e8e867f 5012 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5013
5014fi;
5015
5016 eval "$ac_cv_use_arcstream"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5019 fi
5020
9e8e867f 5021 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5022 echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027 fi
5028
5029
a848cd7e 5030 enablestring=
36b6448c
VZ
5031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5032echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5033 no_cache=0
36b6448c
VZ
5034 # Check whether --enable-backtrace or --disable-backtrace was given.
5035if test "${enable_backtrace+set}" = set; then
5036 enableval="$enable_backtrace"
a848cd7e
SC
5037
5038 if test "$enableval" = yes; then
36b6448c 5039 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5040 else
36b6448c 5041 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5042 fi
5043
5044else
5045
36b6448c 5046 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
36b6448c 5053 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5054
5055fi;
5056
36b6448c 5057 eval "$ac_cv_use_backtrace"
a848cd7e 5058 if test "$no_cache" != 1; then
36b6448c 5059 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5060 fi
5061
36b6448c 5062 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5063 echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068 fi
5069
5070
eaff0f0d 5071 enablestring=
36b6448c
VZ
5072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5073echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5074 no_cache=0
36b6448c
VZ
5075 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5076if test "${enable_catch_segvs+set}" = set; then
5077 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5078
5079 if test "$enableval" = yes; then
36b6448c 5080 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5081 else
36b6448c 5082 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5083 fi
5084
5085else
5086
36b6448c 5087 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5088 if test "x$LINE" != x ; then
5089 eval "DEFAULT_$LINE"
5090 else
5091 no_cache=1
5092 fi
5093
36b6448c 5094 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5095
5096fi;
5097
36b6448c 5098 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5099 if test "$no_cache" != 1; then
36b6448c 5100 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5101 fi
5102
36b6448c 5103 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5104 echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106 else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109 fi
5110
5111
a848cd7e
SC
5112 enablestring=
5113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5114echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5115 no_cache=0
5116 # Check whether --enable-cmdline or --disable-cmdline was given.
5117if test "${enable_cmdline+set}" = set; then
5118 enableval="$enable_cmdline"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5122 else
5123 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5124 fi
5125
5126else
5127
5128 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5136
5137fi;
5138
5139 eval "$ac_cv_use_cmdline"
5140 if test "$no_cache" != 1; then
5141 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5142 fi
5143
5144 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5145 echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147 else
5148 echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150 fi
5151
5152
5153 enablestring=
5154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5155echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5156 no_cache=0
5157 # Check whether --enable-datetime or --disable-datetime was given.
5158if test "${enable_datetime+set}" = set; then
5159 enableval="$enable_datetime"
5160
5161 if test "$enableval" = yes; then
5162 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5163 else
5164 ac_cv_use_datetime='wxUSE_DATETIME=no'
5165 fi
5166
5167else
5168
5169 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5170 if test "x$LINE" != x ; then
5171 eval "DEFAULT_$LINE"
5172 else
5173 no_cache=1
5174 fi
5175
5176 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5177
5178fi;
5179
5180 eval "$ac_cv_use_datetime"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_DATETIME" = yes; then
5186 echo "$as_me:$LINENO: result: yes" >&5
5187echo "${ECHO_T}yes" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191 fi
5192
5193
36b6448c
VZ
5194 enablestring=
5195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5196echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5197 no_cache=0
5198 # Check whether --enable-debugreport or --disable-debugreport was given.
5199if test "${enable_debugreport+set}" = set; then
5200 enableval="$enable_debugreport"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5204 else
5205 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5218
5219fi;
5220
5221 eval "$ac_cv_use_debugreport"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_DEBUGREPORT" = yes; then
5227 echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232 fi
5233
5234
a848cd7e
SC
5235 enablestring=
5236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5237echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5238 no_cache=0
5239 # Check whether --enable-dialupman or --disable-dialupman was given.
5240if test "${enable_dialupman+set}" = set; then
5241 enableval="$enable_dialupman"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5245 else
5246 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5259
5260fi;
5261
5262 eval "$ac_cv_use_dialupman"
5263 if test "$no_cache" != 1; then
5264 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5265 fi
5266
5267 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5268 echo "$as_me:$LINENO: result: yes" >&5
5269echo "${ECHO_T}yes" >&6
5270 else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273 fi
5274
5275
5276 enablestring=
5277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5278echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5279 no_cache=0
5280 # Check whether --enable-dynlib or --disable-dynlib was given.
5281if test "${enable_dynlib+set}" = set; then
5282 enableval="$enable_dynlib"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5286 else
5287 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5288 fi
5289
5290else
5291
5292 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5300
5301fi;
5302
5303 eval "$ac_cv_use_dynlib"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5309 echo "$as_me:$LINENO: result: yes" >&5
5310echo "${ECHO_T}yes" >&6
5311 else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314 fi
5315
5316
5317 enablestring=
5318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5319echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5320 no_cache=0
5321 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5322if test "${enable_dynamicloader+set}" = set; then
5323 enableval="$enable_dynamicloader"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5327 else
5328 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5329 fi
5330
5331else
5332
5333 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5341
5342fi;
5343
5344 eval "$ac_cv_use_dynamicloader"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5350 echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355 fi
5356
5357
5358 enablestring=
5359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5360echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5361 no_cache=0
5362 # Check whether --enable-exceptions or --disable-exceptions was given.
5363if test "${enable_exceptions+set}" = set; then
5364 enableval="$enable_exceptions"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5368 else
5369 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5382
5383fi;
5384
5385 eval "$ac_cv_use_exceptions"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_EXCEPTIONS" = yes; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
5396 fi
5397
5398
5399 enablestring=
5400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5401echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5402 no_cache=0
5403 # Check whether --enable-ffile or --disable-ffile was given.
5404if test "${enable_ffile+set}" = set; then
5405 enableval="$enable_ffile"
5406
5407 if test "$enableval" = yes; then
5408 ac_cv_use_ffile='wxUSE_FFILE=yes'
5409 else
5410 ac_cv_use_ffile='wxUSE_FFILE=no'
5411 fi
5412
5413else
5414
5415 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5423
5424fi;
5425
5426 eval "$ac_cv_use_ffile"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_FFILE" = yes; then
5432 echo "$as_me:$LINENO: result: yes" >&5
5433echo "${ECHO_T}yes" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437 fi
5438
5439
5440 enablestring=
5441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5442echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5443 no_cache=0
5444 # Check whether --enable-file or --disable-file was given.
5445if test "${enable_file+set}" = set; then
5446 enableval="$enable_file"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_file='wxUSE_FILE=yes'
5450 else
5451 ac_cv_use_file='wxUSE_FILE=no'
5452 fi
5453
5454else
5455
5456 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5464
5465fi;
5466
5467 eval "$ac_cv_use_file"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_FILE" = yes; then
5473 echo "$as_me:$LINENO: result: yes" >&5
5474echo "${ECHO_T}yes" >&6
5475 else
5476 echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478 fi
5479
5480
5481 enablestring=
5482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5483echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5484 no_cache=0
5485 # Check whether --enable-filesystem or --disable-filesystem was given.
5486if test "${enable_filesystem+set}" = set; then
5487 enableval="$enable_filesystem"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5491 else
5492 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5493 fi
5494
5495else
5496
5497 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5505
5506fi;
5507
5508 eval "$ac_cv_use_filesystem"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_FILESYSTEM" = yes; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515echo "${ECHO_T}yes" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6
5519 fi
5520
5521
5522 enablestring=
5523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5524echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5525 no_cache=0
5526 # Check whether --enable-fontmap or --disable-fontmap was given.
5527if test "${enable_fontmap+set}" = set; then
5528 enableval="$enable_fontmap"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5532 else
5533 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5534 fi
5535
5536else
5537
5538 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5546
5547fi;
5548
5549 eval "$ac_cv_use_fontmap"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_FONTMAP" = yes; then
5555 echo "$as_me:$LINENO: result: yes" >&5
5556echo "${ECHO_T}yes" >&6
5557 else
5558 echo "$as_me:$LINENO: result: no" >&5
5559echo "${ECHO_T}no" >&6
5560 fi
5561
5562
5563 enablestring=
5564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5565echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5566 no_cache=0
5567 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5568if test "${enable_fs_inet+set}" = set; then
5569 enableval="$enable_fs_inet"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5573 else
5574 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5575 fi
5576
5577else
5578
5579 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5587
5588fi;
5589
5590 eval "$ac_cv_use_fs_inet"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_FS_INET" = yes; then
5596 echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598 else
5599 echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601 fi
5602
5603
5604 enablestring=
5605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5606echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5607 no_cache=0
5608 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5609if test "${enable_fs_zip+set}" = set; then
5610 enableval="$enable_fs_zip"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5614 else
5615 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5616 fi
5617
5618else
5619
5620 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5628
5629fi;
5630
5631 eval "$ac_cv_use_fs_zip"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_FS_ZIP" = yes; then
5637 echo "$as_me:$LINENO: result: yes" >&5
5638echo "${ECHO_T}yes" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642 fi
5643
5644
5645 enablestring=
5646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5647echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5648 no_cache=0
5649 # Check whether --enable-geometry or --disable-geometry was given.
5650if test "${enable_geometry+set}" = set; then
5651 enableval="$enable_geometry"
5652
5653 if test "$enableval" = yes; then
5654 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5655 else
5656 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5657 fi
5658
5659else
5660
5661 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5669
5670fi;
5671
5672 eval "$ac_cv_use_geometry"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_GEOMETRY" = yes; then
5678 echo "$as_me:$LINENO: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
5680 else
5681 echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683 fi
5684
5685
5686 enablestring=
5687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5688echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5689 no_cache=0
5690 # Check whether --enable-log or --disable-log was given.
5691if test "${enable_log+set}" = set; then
5692 enableval="$enable_log"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_log='wxUSE_LOG=yes'
5696 else
5697 ac_cv_use_log='wxUSE_LOG=no'
5698 fi
5699
5700else
5701
5702 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5710
5711fi;
5712
5713 eval "$ac_cv_use_log"
5714 if test "$no_cache" != 1; then
5715 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5716 fi
5717
5718 if test "$wxUSE_LOG" = yes; then
5719 echo "$as_me:$LINENO: result: yes" >&5
5720echo "${ECHO_T}yes" >&6
5721 else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724 fi
5725
5726
5727 enablestring=
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5730 no_cache=0
5731 # Check whether --enable-longlong or --disable-longlong was given.
5732if test "${enable_longlong+set}" = set; then
5733 enableval="$enable_longlong"
5734
5735 if test "$enableval" = yes; then
5736 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5737 else
5738 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5739 fi
5740
5741else
5742
5743 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5751
5752fi;
5753
5754 eval "$ac_cv_use_longlong"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_LONGLONG" = yes; then
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
5762 else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765 fi
5766
5767
5768 enablestring=
5769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5770echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5771 no_cache=0
5772 # Check whether --enable-mimetype or --disable-mimetype was given.
5773if test "${enable_mimetype+set}" = set; then
5774 enableval="$enable_mimetype"
5775
5776 if test "$enableval" = yes; then
5777 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5778 else
5779 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5780 fi
5781
5782else
5783
5784 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5785 if test "x$LINE" != x ; then
5786 eval "DEFAULT_$LINE"
5787 else
5788 no_cache=1
5789 fi
5790
5791 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5792
5793fi;
5794
5795 eval "$ac_cv_use_mimetype"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_MIMETYPE" = yes; then
5801 echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806 fi
5807
5808
5809 enablestring=
5810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5811echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5812 no_cache=0
5813 # Check whether --enable-mslu or --disable-mslu was given.
5814if test "${enable_mslu+set}" = set; then
5815 enableval="$enable_mslu"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5819 else
5820 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5833
5834fi;
5835
5836 eval "$ac_cv_use_mslu"
5837 if test "$no_cache" != 1; then
5838 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5839 fi
5840
5841 if test "$wxUSE_UNICODE_MSLU" = yes; then
5842 echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847 fi
5848
5849
5850 enablestring=
5851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5852echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5853 no_cache=0
5854 # Check whether --enable-snglinst or --disable-snglinst was given.
5855if test "${enable_snglinst+set}" = set; then
5856 enableval="$enable_snglinst"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5860 else
5861 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5862 fi
5863
5864else
5865
5866 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5874
5875fi;
5876
5877 eval "$ac_cv_use_snglinst"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5883 echo "$as_me:$LINENO: result: yes" >&5
5884echo "${ECHO_T}yes" >&6
5885 else
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
5888 fi
5889
5890
5891 enablestring=
07158944
VZ
5892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5893echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5894 no_cache=0
07158944
VZ
5895 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5896if test "${enable_std_iostreams+set}" = set; then
5897 enableval="$enable_std_iostreams"
a848cd7e
SC
5898
5899 if test "$enableval" = yes; then
07158944 5900 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5901 else
07158944 5902 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5903 fi
5904
5905else
5906
07158944 5907 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5908 if test "x$LINE" != x ; then
5909 eval "DEFAULT_$LINE"
5910 else
5911 no_cache=1
5912 fi
5913
07158944 5914 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5915
5916fi;
5917
07158944 5918 eval "$ac_cv_use_std_iostreams"
a848cd7e 5919 if test "$no_cache" != 1; then
07158944 5920 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5921 fi
5922
07158944 5923 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5924 echo "$as_me:$LINENO: result: yes" >&5
5925echo "${ECHO_T}yes" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929 fi
5930
5931
59746b65
MW
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-std_string or --disable-std_string was given.
5937if test "${enable_std_string+set}" = set; then
5938 enableval="$enable_std_string"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5942 else
5943 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5956
5957fi;
5958
5959 eval "$ac_cv_use_std_string"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_STD_STRING" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
a848cd7e 5973 enablestring=
07158944
VZ
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5976 no_cache=0
07158944
VZ
5977 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5978if test "${enable_stdpaths+set}" = set; then
5979 enableval="$enable_stdpaths"
a848cd7e
SC
5980
5981 if test "$enableval" = yes; then
07158944 5982 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5983 else
07158944 5984 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5985 fi
5986
5987else
5988
07158944 5989 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
07158944 5996 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5997
5998fi;
5999
07158944 6000 eval "$ac_cv_use_stdpaths"
a848cd7e 6001 if test "$no_cache" != 1; then
07158944 6002 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6003 fi
6004
07158944 6005 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6019if test "${enable_stopwatch+set}" = set; then
6020 enableval="$enable_stopwatch"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6024 else
6025 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6038
6039fi;
6040
6041 eval "$ac_cv_use_stopwatch"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_STOPWATCH" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
07158944
VZ
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-streams or --disable-streams was given.
6060if test "${enable_streams+set}" = set; then
6061 enableval="$enable_streams"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_streams='wxUSE_STREAMS=yes'
6065 else
6066 ac_cv_use_streams='wxUSE_STREAMS=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6079
6080fi;
6081
6082 eval "$ac_cv_use_streams"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_STREAMS" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
a848cd7e
SC
6096 enablestring=
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6099 no_cache=0
6100 # Check whether --enable-system_options or --disable-system_options was given.
6101if test "${enable_system_options+set}" = set; then
6102 enableval="$enable_system_options"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6106 else
6107 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6120
6121fi;
6122
6123 eval "$ac_cv_use_system_options"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-textbuf or --disable-textbuf was given.
6142if test "${enable_textbuf+set}" = set; then
6143 enableval="$enable_textbuf"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6147 else
6148 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6161
6162fi;
6163
6164 eval "$ac_cv_use_textbuf"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_TEXTBUFFER" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
6178 enablestring=
6179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6180echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6181 no_cache=0
6182 # Check whether --enable-textfile or --disable-textfile was given.
6183if test "${enable_textfile+set}" = set; then
6184 enableval="$enable_textfile"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6188 else
6189 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6202
6203fi;
6204
6205 eval "$ac_cv_use_textfile"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_TEXTFILE" = yes; then
6211 echo "$as_me:$LINENO: result: yes" >&5
6212echo "${ECHO_T}yes" >&6
6213 else
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216 fi
6217
6218
6219 enablestring=
6220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6221echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6222 no_cache=0
6223 # Check whether --enable-timer or --disable-timer was given.
6224if test "${enable_timer+set}" = set; then
6225 enableval="$enable_timer"
6226
6227 if test "$enableval" = yes; then
6228 ac_cv_use_timer='wxUSE_TIMER=yes'
6229 else
6230 ac_cv_use_timer='wxUSE_TIMER=no'
6231 fi
6232
6233else
6234
6235 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6243
6244fi;
6245
6246 eval "$ac_cv_use_timer"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_TIMER" = yes; then
6252 echo "$as_me:$LINENO: result: yes" >&5
6253echo "${ECHO_T}yes" >&6
6254 else
6255 echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6
6257 fi
6258
6259
6260 enablestring=
6261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6262echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6263 no_cache=0
6264 # Check whether --enable-unicode or --disable-unicode was given.
6265if test "${enable_unicode+set}" = set; then
6266 enableval="$enable_unicode"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6270 else
6271 ac_cv_use_unicode='wxUSE_UNICODE=no'
6272 fi
6273
6274else
6275
6276 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6284
6285fi;
6286
6287 eval "$ac_cv_use_unicode"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_UNICODE" = yes; then
6293 echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298 fi
6299
6300
6301 enablestring=
6302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6303echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6304 no_cache=0
6305 # Check whether --enable-sound or --disable-sound was given.
6306if test "${enable_sound+set}" = set; then
6307 enableval="$enable_sound"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_sound='wxUSE_SOUND=yes'
6311 else
6312 ac_cv_use_sound='wxUSE_SOUND=no'
6313 fi
6314
6315else
6316
6317 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6325
6326fi;
6327
6328 eval "$ac_cv_use_sound"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_SOUND" = yes; then
6334 echo "$as_me:$LINENO: result: yes" >&5
6335echo "${ECHO_T}yes" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339 fi
6340
6341
3b57de8b
RL
6342 enablestring=
6343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6344echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6345 no_cache=0
6346 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6347if test "${enable_mediactrl+set}" = set; then
6348 enableval="$enable_mediactrl"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6352 else
6353 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6366
6367fi;
6368
6369 eval "$ac_cv_use_mediactrl"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_MEDIACTRL" = yes; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 else
6378 echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380 fi
6381
6382
f10e38c4
VZ
6383 enablestring=
6384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6385echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6386 no_cache=0
6387 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6388if test "${enable_gstreamer8+set}" = set; then
6389 enableval="$enable_gstreamer8"
6390
6391 if test "$enableval" = yes; then
6392 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6393 else
6394 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6395 fi
6396
6397else
6398
6399 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6407
6408fi;
6409
6410 eval "$ac_cv_use_gstreamer8"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_GSTREAMER8" = yes; then
6416 echo "$as_me:$LINENO: result: yes" >&5
6417echo "${ECHO_T}yes" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6
6421 fi
6422
6423
a848cd7e 6424 enablestring=
8b6682b9
JS
6425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6426echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6427 no_cache=0
8b6682b9
JS
6428 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6429if test "${enable_printfposparam+set}" = set; then
6430 enableval="$enable_printfposparam"
a848cd7e
SC
6431
6432 if test "$enableval" = yes; then
8b6682b9 6433 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6434 else
8b6682b9 6435 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6436 fi
6437
6438else
6439
8b6682b9 6440 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6441 if test "x$LINE" != x ; then
6442 eval "DEFAULT_$LINE"
6443 else
6444 no_cache=1
6445 fi
6446
8b6682b9 6447 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6448
6449fi;
6450
8b6682b9 6451 eval "$ac_cv_use_printfposparam"
a848cd7e 6452 if test "$no_cache" != 1; then
8b6682b9 6453 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6454 fi
6455
8b6682b9 6456 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6457 echo "$as_me:$LINENO: result: yes" >&5
6458echo "${ECHO_T}yes" >&6
6459 else
6460 echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462 fi
6463
6464
6465 enablestring=
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6468 no_cache=0
6469 # Check whether --enable-zipstream or --disable-zipstream was given.
6470if test "${enable_zipstream+set}" = set; then
6471 enableval="$enable_zipstream"
6472
6473 if test "$enableval" = yes; then
6474 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6475 else
6476 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6477 fi
6478
6479else
6480
6481 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
6488 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6489
6490fi;
6491
6492 eval "$ac_cv_use_zipstream"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_ZIPSTREAM" = yes; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500 else
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
6503 fi
6504
6505
a848cd7e
SC
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-url or --disable-url was given.
6512if test "${enable_url+set}" = set; then
6513 enableval="$enable_url"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_url='wxUSE_URL=yes'
6517 else
6518 ac_cv_use_url='wxUSE_URL=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6531
6532fi;
6533
6534 eval "$ac_cv_use_url"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_URL" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
ca5c6ac3
VZ
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-variant or --disable-variant was given.
6553if test "${enable_variant+set}" = set; then
6554 enableval="$enable_variant"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_variant='wxUSE_VARIANT=yes'
6558 else
6559 ac_cv_use_variant='wxUSE_VARIANT=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6572
6573fi;
6574
6575 eval "$ac_cv_use_variant"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_VARIANT" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
a848cd7e
SC
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-protocol or --disable-protocol was given.
6594if test "${enable_protocol+set}" = set; then
6595 enableval="$enable_protocol"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6599 else
6600 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6613
6614fi;
6615
6616 eval "$ac_cv_use_protocol"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_PROTOCOL" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6635if test "${enable_protocol_http+set}" = set; then
6636 enableval="$enable_protocol_http"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6640 else
6641 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6654
6655fi;
6656
6657 eval "$ac_cv_use_protocol_http"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6676if test "${enable_protocol_ftp+set}" = set; then
6677 enableval="$enable_protocol_ftp"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6681 else
6682 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6695
6696fi;
6697
6698 eval "$ac_cv_use_protocol_ftp"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6717if test "${enable_protocol_file+set}" = set; then
6718 enableval="$enable_protocol_file"
6719
6720 if test "$enableval" = yes; then
6721 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6722 else
6723 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6724 fi
6725
6726else
6727
6728 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6736
6737fi;
6738
6739 eval "$ac_cv_use_protocol_file"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6742 fi
6743
6744 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-threads or --disable-threads was given.
6761if test "${enable_threads+set}" = set; then
6762 enableval="$enable_threads"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_threads='wxUSE_THREADS=yes'
6766 else
6767 ac_cv_use_threads='wxUSE_THREADS=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6780
6781fi;
6782
6783 eval "$ac_cv_use_threads"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_THREADS" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797if test "$wxUSE_GUI" = "yes"; then
6798
6799
6800
6801 enablestring=
6802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6803echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6804 no_cache=0
6805 # Check whether --enable-docview or --disable-docview was given.
6806if test "${enable_docview+set}" = set; then
6807 enableval="$enable_docview"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6811 else
6812 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6813 fi
6814
6815else
6816
6817 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6825
6826fi;
6827
6828 eval "$ac_cv_use_docview"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6834 echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6
6836 else
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
6839 fi
6840
6841
6842 enablestring=
6843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6844echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6845 no_cache=0
6846 # Check whether --enable-help or --disable-help was given.
6847if test "${enable_help+set}" = set; then
6848 enableval="$enable_help"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_help='wxUSE_HELP=yes'
6852 else
6853 ac_cv_use_help='wxUSE_HELP=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6866
6867fi;
6868
6869 eval "$ac_cv_use_help"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_HELP" = yes; then
6875 echo "$as_me:$LINENO: result: yes" >&5
6876echo "${ECHO_T}yes" >&6
6877 else
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880 fi
6881
6882
6883 enablestring=
6884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6885echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6886 no_cache=0
6887 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6888if test "${enable_mshtmlhelp+set}" = set; then
6889 enableval="$enable_mshtmlhelp"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6893 else
6894 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6907
6908fi;
6909
6910 eval "$ac_cv_use_mshtmlhelp"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_MS_HTML_HELP" = yes; then
6916 echo "$as_me:$LINENO: result: yes" >&5
6917echo "${ECHO_T}yes" >&6
6918 else
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
6921 fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-html or --disable-html was given.
6929if test "${enable_html+set}" = set; then
6930 enableval="$enable_html"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_html='wxUSE_HTML=yes'
6934 else
6935 ac_cv_use_html='wxUSE_HTML=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6948
6949fi;
6950
6951 eval "$ac_cv_use_html"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_HTML" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6970if test "${enable_htmlhelp+set}" = set; then
6971 enableval="$enable_htmlhelp"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6975 else
6976 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6989
6990fi;
6991
6992 eval "$ac_cv_use_htmlhelp"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_WXHTML_HELP" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
9a8f0513
VS
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-xrc or --disable-xrc was given.
7011if test "${enable_xrc+set}" = set; then
7012 enableval="$enable_xrc"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_xrc='wxUSE_XRC=yes'
7016 else
7017 ac_cv_use_xrc='wxUSE_XRC=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7030
7031fi;
7032
7033 eval "$ac_cv_use_xrc"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_XRC" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
3f60522a
JS
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-aui or --disable-aui was given.
7052if test "${enable_aui+set}" = set; then
7053 enableval="$enable_aui"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_aui='wxUSE_AUI=yes'
7057 else
7058 ac_cv_use_aui='wxUSE_AUI=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7071
7072fi;
7073
7074 eval "$ac_cv_use_aui"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_AUI" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
a848cd7e
SC
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-constraints or --disable-constraints was given.
7093if test "${enable_constraints+set}" = set; then
7094 enableval="$enable_constraints"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7098 else
7099 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7112
7113fi;
7114
7115 eval "$ac_cv_use_constraints"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CONSTRAINTS" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-printarch or --disable-printarch was given.
7134if test "${enable_printarch+set}" = set; then
7135 enableval="$enable_printarch"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7139 else
7140 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7153
7154fi;
7155
7156 eval "$ac_cv_use_printarch"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-mdi or --disable-mdi was given.
7175if test "${enable_mdi+set}" = set; then
7176 enableval="$enable_mdi"
7177
7178 if test "$enableval" = yes; then
8a7b1113 7179 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7180 else
8a7b1113 7181 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7182 fi
7183
7184else
7185
8a7b1113 7186 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
8a7b1113 7193 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7194
7195fi;
7196
7197 eval "$ac_cv_use_mdi"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7200 fi
7201
8a7b1113
VZ
7202 if test "$wxUSE_MDI" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7216if test "${enable_mdidoc+set}" = set; then
7217 enableval="$enable_mdidoc"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7221 else
7222 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7223 fi
7224
7225else
7226
7227 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7235
7236fi;
7237
7238 eval "$ac_cv_use_mdidoc"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7241 fi
7242
a848cd7e
SC
7243 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249 fi
7250
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-loggui or --disable-loggui was given.
7257if test "${enable_loggui+set}" = set; then
7258 enableval="$enable_loggui"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7262 else
7263 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7276
7277fi;
7278
7279 eval "$ac_cv_use_loggui"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_LOGGUI" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-logwin or --disable-logwin was given.
7298if test "${enable_logwin+set}" = set; then
7299 enableval="$enable_logwin"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7303 else
7304 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7317
7318fi;
7319
7320 eval "$ac_cv_use_logwin"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_LOGWINDOW" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-logdialog or --disable-logdialog was given.
7339if test "${enable_logdialog+set}" = set; then
7340 enableval="$enable_logdialog"
7341
7342 if test "$enableval" = yes; then
7343 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7344 else
7345 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7346 fi
7347
7348else
7349
7350 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7358
7359fi;
7360
7361 eval "$ac_cv_use_logdialog"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_LOGDIALOG" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
7372 fi
7373
7374
646b6ec1
VS
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-webkit or --disable-webkit was given.
7380if test "${enable_webkit+set}" = set; then
7381 enableval="$enable_webkit"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7385 else
7386 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7399
7400fi;
7401
7402 eval "$ac_cv_use_webkit"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_WEBKIT" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413 fi
7414
7415
91dea314
MW
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-html or --disable-html was given.
7421if test "${enable_html+set}" = set; then
7422 enableval="$enable_html"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7426 else
7427 ac_cv_use_html='wxUSE_RICHTEXT=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7440
7441fi;
7442
7443 eval "$ac_cv_use_html"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_RICHTEXT" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454 fi
7455
7456
a848cd7e
SC
7457
7458 enablestring=
7459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7460echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7461 no_cache=0
7462 # Check whether --enable-postscript or --disable-postscript was given.
7463if test "${enable_postscript+set}" = set; then
7464 enableval="$enable_postscript"
7465
7466 if test "$enableval" = yes; then
7467 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7468 else
7469 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7470 fi
7471
7472else
7473
7474 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7475 if test "x$LINE" != x ; then
7476 eval "DEFAULT_$LINE"
7477 else
7478 no_cache=1
7479 fi
7480
7481 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7482
7483fi;
7484
7485 eval "$ac_cv_use_postscript"
7486 if test "$no_cache" != 1; then
7487 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7488 fi
7489
7490 if test "$wxUSE_POSTSCRIPT" = yes; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492echo "${ECHO_T}yes" >&6
7493 else
7494 echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6
7496 fi
7497
7498
7499
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-prologio or --disable-prologio was given.
7507if test "${enable_prologio+set}" = set; then
7508 enableval="$enable_prologio"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7512 else
7513 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7526
7527fi;
7528
7529 eval "$ac_cv_use_prologio"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_PROLOGIO" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-resources or --disable-resources was given.
7548if test "${enable_resources+set}" = set; then
7549 enableval="$enable_resources"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7553 else
7554 ac_cv_use_resources='wxUSE_RESOURCES=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7567
7568fi;
7569
7570 eval "$ac_cv_use_resources"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_RESOURCES" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584
7585
7586 enablestring=
7587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7588echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7589 no_cache=0
7590 # Check whether --enable-clipboard or --disable-clipboard was given.
7591if test "${enable_clipboard+set}" = set; then
7592 enableval="$enable_clipboard"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7596 else
7597 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7610
7611fi;
7612
7613 eval "$ac_cv_use_clipboard"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_CLIPBOARD" = yes; then
7619 echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6
7621 else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-dnd or --disable-dnd was given.
7632if test "${enable_dnd+set}" = set; then
7633 enableval="$enable_dnd"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7637 else
7638 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7651
7652fi;
7653
7654 eval "$ac_cv_use_dnd"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-metafile or --disable-metafile was given.
7673if test "${enable_metafile+set}" = set; then
7674 enableval="$enable_metafile"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7678 else
7679 ac_cv_use_metafile='wxUSE_METAFILE=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7692
7693fi;
7694
7695 eval "$ac_cv_use_metafile"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_METAFILE" = 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
7710
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-controls or --disable-controls was given.
7717if test "${enable_controls+set}" = set; then
7718 enableval="$enable_controls"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7722 else
7723 ac_cv_use_controls='wxUSE_CONTROLS=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7736
7737fi;
7738
7739 eval "$ac_cv_use_controls"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_CONTROLS" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753if test "$wxUSE_CONTROLS" = "yes"; then
7754 DEFAULT_wxUSE_ACCEL=yes
7755 DEFAULT_wxUSE_BMPBUTTON=yes
7756 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7757 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7758 DEFAULT_wxUSE_CARET=yes
7759 DEFAULT_wxUSE_COMBOBOX=yes
7760 DEFAULT_wxUSE_CHECKBOX=yes
7761 DEFAULT_wxUSE_CHECKLISTBOX=yes
7762 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7763 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7764 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7765 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7766 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7767 DEFAULT_wxUSE_DISPLAY=yes
7768 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7769 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7770 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7771 DEFAULT_wxUSE_GAUGE=yes
7772 DEFAULT_wxUSE_GRID=yes
6954625c 7773 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7774 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7775 DEFAULT_wxUSE_IMAGLIST=yes
7776 DEFAULT_wxUSE_LISTBOOK=yes
7777 DEFAULT_wxUSE_LISTBOX=yes
7778 DEFAULT_wxUSE_LISTCTRL=yes
7779 DEFAULT_wxUSE_NOTEBOOK=yes
7780 DEFAULT_wxUSE_RADIOBOX=yes
7781 DEFAULT_wxUSE_RADIOBTN=yes
7782 DEFAULT_wxUSE_SASH=yes
7783 DEFAULT_wxUSE_SCROLLBAR=yes
7784 DEFAULT_wxUSE_SLIDER=yes
7785 DEFAULT_wxUSE_SPINBTN=yes
7786 DEFAULT_wxUSE_SPINCTRL=yes
7787 DEFAULT_wxUSE_SPLITTER=yes
7788 DEFAULT_wxUSE_STATBMP=yes
7789 DEFAULT_wxUSE_STATBOX=yes
7790 DEFAULT_wxUSE_STATLINE=yes
7791 DEFAULT_wxUSE_STATUSBAR=yes
7792 DEFAULT_wxUSE_TAB_DIALOG=yes
7793 DEFAULT_wxUSE_TOGGLEBTN=yes
7794 DEFAULT_wxUSE_TOOLBAR=yes
7795 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7796 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7797 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7798 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7799 DEFAULT_wxUSE_TREECTRL=yes
7800 DEFAULT_wxUSE_POPUPWIN=yes
7801 DEFAULT_wxUSE_TIPWINDOW=yes
7802elif test "$wxUSE_CONTROLS" = "no"; then
7803 DEFAULT_wxUSE_ACCEL=no
7804 DEFAULT_wxUSE_BMPBUTTON=no
7805 DEFAULT_wxUSE_BUTTON=no
7806 DEFAULT_wxUSE_CALCTRL=no
7807 DEFAULT_wxUSE_CARET=no
7808 DEFAULT_wxUSE_COMBOBOX=no
7809 DEFAULT_wxUSE_CHECKBOX=no
7810 DEFAULT_wxUSE_CHECKLISTBOX=no
7811 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7812 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7813 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7814 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7815 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7816 DEFAULT_wxUSE_DISPLAY=no
7817 DEFAULT_wxUSE_DIRPICKERCTRL=no
7818 DEFAULT_wxUSE_FILEPICKERCTRL=no
7819 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7820 DEFAULT_wxUSE_GAUGE=no
7821 DEFAULT_wxUSE_GRID=no
6954625c 7822 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7823 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7824 DEFAULT_wxUSE_IMAGLIST=no
7825 DEFAULT_wxUSE_LISTBOOK=no
7826 DEFAULT_wxUSE_LISTBOX=no
7827 DEFAULT_wxUSE_LISTCTRL=no
7828 DEFAULT_wxUSE_NOTEBOOK=no
7829 DEFAULT_wxUSE_RADIOBOX=no
7830 DEFAULT_wxUSE_RADIOBTN=no
7831 DEFAULT_wxUSE_SASH=no
7832 DEFAULT_wxUSE_SCROLLBAR=no
7833 DEFAULT_wxUSE_SLIDER=no
7834 DEFAULT_wxUSE_SPINBTN=no
7835 DEFAULT_wxUSE_SPINCTRL=no
7836 DEFAULT_wxUSE_SPLITTER=no
7837 DEFAULT_wxUSE_STATBMP=no
7838 DEFAULT_wxUSE_STATBOX=no
7839 DEFAULT_wxUSE_STATLINE=no
7840 DEFAULT_wxUSE_STATUSBAR=no
7841 DEFAULT_wxUSE_TAB_DIALOG=no
7842 DEFAULT_wxUSE_TOGGLEBTN=no
7843 DEFAULT_wxUSE_TOOLBAR=no
7844 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7845 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7846 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7847 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7848 DEFAULT_wxUSE_TREECTRL=no
7849 DEFAULT_wxUSE_POPUPWIN=no
7850 DEFAULT_wxUSE_TIPWINDOW=no
7851fi
7852
a848cd7e
SC
7853
7854 enablestring=
7855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7856echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7857 no_cache=0
7858 # Check whether --enable-accel or --disable-accel was given.
7859if test "${enable_accel+set}" = set; then
7860 enableval="$enable_accel"
7861
7862 if test "$enableval" = yes; then
7863 ac_cv_use_accel='wxUSE_ACCEL=yes'
7864 else
7865 ac_cv_use_accel='wxUSE_ACCEL=no'
7866 fi
7867
7868else
7869
7870 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7878
7879fi;
7880
7881 eval "$ac_cv_use_accel"
7882 if test "$no_cache" != 1; then
7883 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7884 fi
7885
7886 if test "$wxUSE_ACCEL" = yes; then
7887 echo "$as_me:$LINENO: result: yes" >&5
7888echo "${ECHO_T}yes" >&6
7889 else
7890 echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
7892 fi
7893
7894
7895 enablestring=
7896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7897echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7898 no_cache=0
7899 # Check whether --enable-button or --disable-button was given.
7900if test "${enable_button+set}" = set; then
7901 enableval="$enable_button"
7902
7903 if test "$enableval" = yes; then
7904 ac_cv_use_button='wxUSE_BUTTON=yes'
7905 else
7906 ac_cv_use_button='wxUSE_BUTTON=no'
7907 fi
7908
7909else
7910
7911 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7912 if test "x$LINE" != x ; then
7913 eval "DEFAULT_$LINE"
7914 else
7915 no_cache=1
7916 fi
7917
7918 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7919
7920fi;
7921
7922 eval "$ac_cv_use_button"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_BUTTON" = yes; then
7928 echo "$as_me:$LINENO: result: yes" >&5
7929echo "${ECHO_T}yes" >&6
7930 else
7931 echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6
7933 fi
7934
7935
7936 enablestring=
7937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7938echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7939 no_cache=0
7940 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7941if test "${enable_bmpbutton+set}" = set; then
7942 enableval="$enable_bmpbutton"
7943
7944 if test "$enableval" = yes; then
7945 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7946 else
7947 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7948 fi
7949
7950else
7951
7952 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7960
7961fi;
7962
7963 eval "$ac_cv_use_bmpbutton"
7964 if test "$no_cache" != 1; then
7965 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7966 fi
7967
7968 if test "$wxUSE_BMPBUTTON" = yes; then
7969 echo "$as_me:$LINENO: result: yes" >&5
7970echo "${ECHO_T}yes" >&6
7971 else
7972 echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
7974 fi
7975
7976
95a46303
RR
7977 enablestring=
7978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
7979echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
7980 no_cache=0
7981 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
7982if test "${enable_bmpcombobox+set}" = set; then
7983 enableval="$enable_bmpcombobox"
7984
7985 if test "$enableval" = yes; then
7986 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
7987 else
7988 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
7989 fi
7990
7991else
7992
7993 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
7994 if test "x$LINE" != x ; then
7995 eval "DEFAULT_$LINE"
7996 else
7997 no_cache=1
7998 fi
7999
8000 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8001
8002fi;
8003
8004 eval "$ac_cv_use_bmpcombobox"
8005 if test "$no_cache" != 1; then
8006 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8007 fi
8008
8009 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8010 echo "$as_me:$LINENO: result: yes" >&5
8011echo "${ECHO_T}yes" >&6
8012 else
8013 echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
8015 fi
8016
8017
a848cd7e
SC
8018 enablestring=
8019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8020echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8021 no_cache=0
8022 # Check whether --enable-calendar or --disable-calendar was given.
8023if test "${enable_calendar+set}" = set; then
8024 enableval="$enable_calendar"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8028 else
8029 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8030 fi
8031
8032else
8033
8034 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8042
8043fi;
8044
8045 eval "$ac_cv_use_calendar"
8046 if test "$no_cache" != 1; then
8047 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8048 fi
8049
8050 if test "$wxUSE_CALCTRL" = yes; then
8051 echo "$as_me:$LINENO: result: yes" >&5
8052echo "${ECHO_T}yes" >&6
8053 else
8054 echo "$as_me:$LINENO: result: no" >&5
8055echo "${ECHO_T}no" >&6
8056 fi
8057
8058
8059 enablestring=
8060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8061echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8062 no_cache=0
8063 # Check whether --enable-caret or --disable-caret was given.
8064if test "${enable_caret+set}" = set; then
8065 enableval="$enable_caret"
8066
8067 if test "$enableval" = yes; then
8068 ac_cv_use_caret='wxUSE_CARET=yes'
8069 else
8070 ac_cv_use_caret='wxUSE_CARET=no'
8071 fi
8072
8073else
8074
8075 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8076 if test "x$LINE" != x ; then
8077 eval "DEFAULT_$LINE"
8078 else
8079 no_cache=1
8080 fi
8081
8082 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8083
8084fi;
8085
8086 eval "$ac_cv_use_caret"
8087 if test "$no_cache" != 1; then
8088 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8089 fi
8090
8091 if test "$wxUSE_CARET" = yes; then
8092 echo "$as_me:$LINENO: result: yes" >&5
8093echo "${ECHO_T}yes" >&6
8094 else
8095 echo "$as_me:$LINENO: result: no" >&5
8096echo "${ECHO_T}no" >&6
8097 fi
8098
8099
8100 enablestring=
8101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8102echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8103 no_cache=0
8104 # Check whether --enable-checkbox or --disable-checkbox was given.
8105if test "${enable_checkbox+set}" = set; then
8106 enableval="$enable_checkbox"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8110 else
8111 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8112 fi
8113
8114else
8115
8116 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8124
8125fi;
8126
8127 eval "$ac_cv_use_checkbox"
8128 if test "$no_cache" != 1; then
8129 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8130 fi
8131
8132 if test "$wxUSE_CHECKBOX" = yes; then
8133 echo "$as_me:$LINENO: result: yes" >&5
8134echo "${ECHO_T}yes" >&6
8135 else
8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
8138 fi
8139
8140
8141 enablestring=
8142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8143echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8144 no_cache=0
8145 # Check whether --enable-checklst or --disable-checklst was given.
8146if test "${enable_checklst+set}" = set; then
8147 enableval="$enable_checklst"
8148
8149 if test "$enableval" = yes; then
8150 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8151 else
8152 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8153 fi
8154
8155else
8156
8157 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8165
8166fi;
8167
8168 eval "$ac_cv_use_checklst"
8169 if test "$no_cache" != 1; then
8170 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8171 fi
8172
8173 if test "$wxUSE_CHECKLST" = yes; then
8174 echo "$as_me:$LINENO: result: yes" >&5
8175echo "${ECHO_T}yes" >&6
8176 else
8177 echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6
8179 fi
8180
8181
8182 enablestring=
8183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8184echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8185 no_cache=0
8186 # Check whether --enable-choice or --disable-choice was given.
8187if test "${enable_choice+set}" = set; then
8188 enableval="$enable_choice"
8189
8190 if test "$enableval" = yes; then
8191 ac_cv_use_choice='wxUSE_CHOICE=yes'
8192 else
8193 ac_cv_use_choice='wxUSE_CHOICE=no'
8194 fi
8195
8196else
8197
8198 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8199 if test "x$LINE" != x ; then
8200 eval "DEFAULT_$LINE"
8201 else
8202 no_cache=1
8203 fi
8204
8205 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8206
8207fi;
8208
8209 eval "$ac_cv_use_choice"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_CHOICE" = yes; then
8215 echo "$as_me:$LINENO: result: yes" >&5
8216echo "${ECHO_T}yes" >&6
8217 else
8218 echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6
8220 fi
8221
8222
92bbdbcd
WS
8223 enablestring=
8224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8225echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8226 no_cache=0
8227 # Check whether --enable-choicebook or --disable-choicebook was given.
8228if test "${enable_choicebook+set}" = set; then
8229 enableval="$enable_choicebook"
8230
8231 if test "$enableval" = yes; then
8232 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8233 else
8234 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8235 fi
8236
8237else
8238
8239 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8240 if test "x$LINE" != x ; then
8241 eval "DEFAULT_$LINE"
8242 else
8243 no_cache=1
8244 fi
8245
8246 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8247
8248fi;
8249
8250 eval "$ac_cv_use_choicebook"
8251 if test "$no_cache" != 1; then
8252 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8253 fi
8254
8255 if test "$wxUSE_CHOICEBOOK" = yes; then
8256 echo "$as_me:$LINENO: result: yes" >&5
8257echo "${ECHO_T}yes" >&6
8258 else
8259 echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
8261 fi
8262
8263
e9263684
VZ
8264 enablestring=
8265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8266echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8267 no_cache=0
8268 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8269if test "${enable_colourpicker+set}" = set; then
8270 enableval="$enable_colourpicker"
8271
8272 if test "$enableval" = yes; then
8273 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8274 else
8275 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8276 fi
8277
8278else
8279
8280 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8281 if test "x$LINE" != x ; then
8282 eval "DEFAULT_$LINE"
8283 else
8284 no_cache=1
8285 fi
8286
8287 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8288
8289fi;
8290
8291 eval "$ac_cv_use_colourpicker"
8292 if test "$no_cache" != 1; then
8293 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8294 fi
8295
8296 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8297 echo "$as_me:$LINENO: result: yes" >&5
8298echo "${ECHO_T}yes" >&6
8299 else
8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
8302 fi
8303
8304
a848cd7e
SC
8305 enablestring=
8306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8307echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8308 no_cache=0
8309 # Check whether --enable-combobox or --disable-combobox was given.
8310if test "${enable_combobox+set}" = set; then
8311 enableval="$enable_combobox"
8312
8313 if test "$enableval" = yes; then
8314 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8315 else
8316 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8317 fi
8318
8319else
8320
8321 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8329
8330fi;
8331
8332 eval "$ac_cv_use_combobox"
8333 if test "$no_cache" != 1; then
8334 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8335 fi
8336
8337 if test "$wxUSE_COMBOBOX" = yes; then
8338 echo "$as_me:$LINENO: result: yes" >&5
8339echo "${ECHO_T}yes" >&6
8340 else
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
8343 fi
8344
8345
642bcba9 8346 enablestring=
a57d600f
VZ
8347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8348echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8349 no_cache=0
a57d600f
VZ
8350 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8351if test "${enable_comboctrl+set}" = set; then
8352 enableval="$enable_comboctrl"
642bcba9
VZ
8353
8354 if test "$enableval" = yes; then
a57d600f 8355 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8356 else
a57d600f 8357 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8358 fi
8359
8360else
8361
a57d600f 8362 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8363 if test "x$LINE" != x ; then
8364 eval "DEFAULT_$LINE"
8365 else
8366 no_cache=1
8367 fi
8368
a57d600f 8369 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8370
8371fi;
8372
a57d600f 8373 eval "$ac_cv_use_comboctrl"
642bcba9 8374 if test "$no_cache" != 1; then
a57d600f 8375 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8376 fi
8377
a57d600f 8378 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8379 echo "$as_me:$LINENO: result: yes" >&5
8380echo "${ECHO_T}yes" >&6
8381 else
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
8384 fi
8385
8386
da98e9be
VZ
8387 enablestring=
8388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8389echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8390 no_cache=0
8391 # Check whether --enable-datepick or --disable-datepick was given.
8392if test "${enable_datepick+set}" = set; then
8393 enableval="$enable_datepick"
8394
8395 if test "$enableval" = yes; then
8396 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8397 else
8398 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8399 fi
8400
8401else
8402
8403 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
8410 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8411
8412fi;
8413
8414 eval "$ac_cv_use_datepick"
8415 if test "$no_cache" != 1; then
8416 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8417 fi
8418
8419 if test "$wxUSE_DATEPICKCTRL" = yes; then
8420 echo "$as_me:$LINENO: result: yes" >&5
8421echo "${ECHO_T}yes" >&6
8422 else
8423 echo "$as_me:$LINENO: result: no" >&5
8424echo "${ECHO_T}no" >&6
8425 fi
8426
8427
e9263684
VZ
8428 enablestring=
8429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8430echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8431 no_cache=0
8432 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8433if test "${enable_dirpicker+set}" = set; then
8434 enableval="$enable_dirpicker"
8435
8436 if test "$enableval" = yes; then
8437 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8438 else
8439 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8440 fi
8441
8442else
8443
8444 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8452
8453fi;
8454
8455 eval "$ac_cv_use_dirpicker"
8456 if test "$no_cache" != 1; then
8457 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8458 fi
8459
8460 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8461 echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
8463 else
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
8466 fi
8467
8468
a848cd7e
SC
8469 enablestring=
8470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8471echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8472 no_cache=0
8473 # Check whether --enable-display or --disable-display was given.
8474if test "${enable_display+set}" = set; then
8475 enableval="$enable_display"
8476
8477 if test "$enableval" = yes; then
8478 ac_cv_use_display='wxUSE_DISPLAY=yes'
8479 else
8480 ac_cv_use_display='wxUSE_DISPLAY=no'
8481 fi
8482
8483else
8484
8485 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8493
8494fi;
8495
8496 eval "$ac_cv_use_display"
8497 if test "$no_cache" != 1; then
8498 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8499 fi
8500
8501 if test "$wxUSE_DISPLAY" = yes; then
8502 echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
8504 else
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
8507 fi
8508
8509
e9263684
VZ
8510 enablestring=
8511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8512echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8513 no_cache=0
8514 # Check whether --enable-filepicker or --disable-filepicker was given.
8515if test "${enable_filepicker+set}" = set; then
8516 enableval="$enable_filepicker"
8517
8518 if test "$enableval" = yes; then
8519 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8520 else
8521 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8522 fi
8523
8524else
8525
8526 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
8533 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8534
8535fi;
8536
8537 eval "$ac_cv_use_filepicker"
8538 if test "$no_cache" != 1; then
8539 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8540 fi
8541
8542 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8543 echo "$as_me:$LINENO: result: yes" >&5
8544echo "${ECHO_T}yes" >&6
8545 else
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
8548 fi
8549
8550
8551 enablestring=
8552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8553echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8554 no_cache=0
8555 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8556if test "${enable_fontpicker+set}" = set; then
8557 enableval="$enable_fontpicker"
8558
8559 if test "$enableval" = yes; then
8560 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8561 else
8562 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8563 fi
8564
8565else
8566
8567 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8568 if test "x$LINE" != x ; then
8569 eval "DEFAULT_$LINE"
8570 else
8571 no_cache=1
8572 fi
8573
8574 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8575
8576fi;
8577
8578 eval "$ac_cv_use_fontpicker"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8584 echo "$as_me:$LINENO: result: yes" >&5
8585echo "${ECHO_T}yes" >&6
8586 else
8587 echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6
8589 fi
8590
8591
a848cd7e
SC
8592 enablestring=
8593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8594echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8595 no_cache=0
8596 # Check whether --enable-gauge or --disable-gauge was given.
8597if test "${enable_gauge+set}" = set; then
8598 enableval="$enable_gauge"
8599
8600 if test "$enableval" = yes; then
8601 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8602 else
8603 ac_cv_use_gauge='wxUSE_GAUGE=no'
8604 fi
8605
8606else
8607
8608 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8609 if test "x$LINE" != x ; then
8610 eval "DEFAULT_$LINE"
8611 else
8612 no_cache=1
8613 fi
8614
8615 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8616
8617fi;
8618
8619 eval "$ac_cv_use_gauge"
8620 if test "$no_cache" != 1; then
8621 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8622 fi
8623
8624 if test "$wxUSE_GAUGE" = yes; then
8625 echo "$as_me:$LINENO: result: yes" >&5
8626echo "${ECHO_T}yes" >&6
8627 else
8628 echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6
8630 fi
8631
8632
8633 enablestring=
8634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8635echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8636 no_cache=0
8637 # Check whether --enable-grid or --disable-grid was given.
8638if test "${enable_grid+set}" = set; then
8639 enableval="$enable_grid"
8640
8641 if test "$enableval" = yes; then
8642 ac_cv_use_grid='wxUSE_GRID=yes'
8643 else
8644 ac_cv_use_grid='wxUSE_GRID=no'
8645 fi
8646
8647else
8648
8649 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8650 if test "x$LINE" != x ; then
8651 eval "DEFAULT_$LINE"
8652 else
8653 no_cache=1
8654 fi
8655
8656 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8657
8658fi;
8659
8660 eval "$ac_cv_use_grid"
8661 if test "$no_cache" != 1; then
8662 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8663 fi
8664
8665 if test "$wxUSE_GRID" = yes; then
8666 echo "$as_me:$LINENO: result: yes" >&5
8667echo "${ECHO_T}yes" >&6
8668 else
8669 echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6
8671 fi
8672
8673
20e34ecc
RR
8674 enablestring=
8675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8676echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8677 no_cache=0
8678 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8679if test "${enable_dataviewctrl+set}" = set; then
8680 enableval="$enable_dataviewctrl"
8681
8682 if test "$enableval" = yes; then
8683 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8684 else
8685 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8686 fi
8687
8688else
8689
8690 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8691 if test "x$LINE" != x ; then
8692 eval "DEFAULT_$LINE"
8693 else
8694 no_cache=1
8695 fi
8696
8697 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8698
8699fi;
8700
8701 eval "$ac_cv_use_dataviewctrl"
8702 if test "$no_cache" != 1; then
8703 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8704 fi
8705
8706 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8707 echo "$as_me:$LINENO: result: yes" >&5
8708echo "${ECHO_T}yes" >&6
8709 else
8710 echo "$as_me:$LINENO: result: no" >&5
8711echo "${ECHO_T}no" >&6
8712 fi
8713
8714
6954625c
VZ
8715 enablestring=
8716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8717echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8718 no_cache=0
8719 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8720if test "${enable_hyperlink+set}" = set; then
8721 enableval="$enable_hyperlink"
8722
8723 if test "$enableval" = yes; then
8724 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8725 else
8726 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8727 fi
8728
8729else
8730
8731 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8732 if test "x$LINE" != x ; then
8733 eval "DEFAULT_$LINE"
8734 else
8735 no_cache=1
8736 fi
8737
8738 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8739
8740fi;
8741
8742 eval "$ac_cv_use_hyperlink"
8743 if test "$no_cache" != 1; then
8744 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8745 fi
8746
8747 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8748 echo "$as_me:$LINENO: result: yes" >&5
8749echo "${ECHO_T}yes" >&6
8750 else
8751 echo "$as_me:$LINENO: result: no" >&5
8752echo "${ECHO_T}no" >&6
8753 fi
8754
8755
a848cd7e
SC
8756 enablestring=
8757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8758echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8759 no_cache=0
8760 # Check whether --enable-imaglist or --disable-imaglist was given.
8761if test "${enable_imaglist+set}" = set; then
8762 enableval="$enable_imaglist"
8763
8764 if test "$enableval" = yes; then
8765 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8766 else
8767 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8768 fi
8769
8770else
8771
8772 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8773 if test "x$LINE" != x ; then
8774 eval "DEFAULT_$LINE"
8775 else
8776 no_cache=1
8777 fi
8778
8779 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8780
8781fi;
8782
8783 eval "$ac_cv_use_imaglist"
8784 if test "$no_cache" != 1; then
8785 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8786 fi
8787
8788 if test "$wxUSE_IMAGLIST" = yes; then
8789 echo "$as_me:$LINENO: result: yes" >&5
8790echo "${ECHO_T}yes" >&6
8791 else
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
8794 fi
8795
8796
8797 enablestring=
8798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8799echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8800 no_cache=0
8801 # Check whether --enable-listbook or --disable-listbook was given.
8802if test "${enable_listbook+set}" = set; then
8803 enableval="$enable_listbook"
8804
8805 if test "$enableval" = yes; then
8806 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8807 else
8808 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8809 fi
8810
8811else
8812
8813 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8814 if test "x$LINE" != x ; then
8815 eval "DEFAULT_$LINE"
8816 else
8817 no_cache=1
8818 fi
8819
8820 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8821
8822fi;
8823
8824 eval "$ac_cv_use_listbook"
8825 if test "$no_cache" != 1; then
8826 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8827 fi
8828
8829 if test "$wxUSE_LISTBOOK" = yes; then
8830 echo "$as_me:$LINENO: result: yes" >&5
8831echo "${ECHO_T}yes" >&6
8832 else
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
8835 fi
8836
8837
8838 enablestring=
8839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8840echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8841 no_cache=0
8842 # Check whether --enable-listbox or --disable-listbox was given.
8843if test "${enable_listbox+set}" = set; then
8844 enableval="$enable_listbox"
8845
8846 if test "$enableval" = yes; then
8847 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8848 else
8849 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8850 fi
8851
8852else
8853
8854 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8855 if test "x$LINE" != x ; then
8856 eval "DEFAULT_$LINE"
8857 else
8858 no_cache=1
8859 fi
8860
8861 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8862
8863fi;
8864
8865 eval "$ac_cv_use_listbox"
8866 if test "$no_cache" != 1; then
8867 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8868 fi
8869
8870 if test "$wxUSE_LISTBOX" = yes; then
8871 echo "$as_me:$LINENO: result: yes" >&5
8872echo "${ECHO_T}yes" >&6
8873 else
8874 echo "$as_me:$LINENO: result: no" >&5
8875echo "${ECHO_T}no" >&6
8876 fi
8877
8878
8879 enablestring=
8880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8881echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8882 no_cache=0
8883 # Check whether --enable-listctrl or --disable-listctrl was given.
8884if test "${enable_listctrl+set}" = set; then
8885 enableval="$enable_listctrl"
8886
8887 if test "$enableval" = yes; then
8888 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8889 else
8890 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8891 fi
8892
8893else
8894
8895 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8896 if test "x$LINE" != x ; then
8897 eval "DEFAULT_$LINE"
8898 else
8899 no_cache=1
8900 fi
8901
8902 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8903
8904fi;
8905
8906 eval "$ac_cv_use_listctrl"
8907 if test "$no_cache" != 1; then
8908 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8909 fi
8910
8911 if test "$wxUSE_LISTCTRL" = yes; then
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
8914 else
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
8917 fi
8918
8919
8920 enablestring=
8921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8922echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8923 no_cache=0
8924 # Check whether --enable-notebook or --disable-notebook was given.
8925if test "${enable_notebook+set}" = set; then
8926 enableval="$enable_notebook"
8927
8928 if test "$enableval" = yes; then
8929 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8930 else
8931 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8932 fi
8933
8934else
8935
8936 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8937 if test "x$LINE" != x ; then
8938 eval "DEFAULT_$LINE"
8939 else
8940 no_cache=1
8941 fi
8942
8943 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8944
8945fi;
8946
8947 eval "$ac_cv_use_notebook"
8948 if test "$no_cache" != 1; then
8949 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8950 fi
8951
8952 if test "$wxUSE_NOTEBOOK" = yes; then
8953 echo "$as_me:$LINENO: result: yes" >&5
8954echo "${ECHO_T}yes" >&6
8955 else
8956 echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
8958 fi
8959
8960
642bcba9 8961 enablestring=
a57d600f
VZ
8962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8963echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8964 no_cache=0
a57d600f
VZ
8965 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8966if test "${enable_odcombobox+set}" = set; then
8967 enableval="$enable_odcombobox"
642bcba9
VZ
8968
8969 if test "$enableval" = yes; then
a57d600f 8970 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8971 else
a57d600f 8972 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8973 fi
8974
8975else
8976
a57d600f 8977 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8978 if test "x$LINE" != x ; then
8979 eval "DEFAULT_$LINE"
8980 else
8981 no_cache=1
8982 fi
8983
a57d600f 8984 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8985
8986fi;
8987
a57d600f 8988 eval "$ac_cv_use_odcombobox"
642bcba9 8989 if test "$no_cache" != 1; then
a57d600f 8990 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8991 fi
8992
a57d600f 8993 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8994 echo "$as_me:$LINENO: result: yes" >&5
8995echo "${ECHO_T}yes" >&6
8996 else
8997 echo "$as_me:$LINENO: result: no" >&5
8998echo "${ECHO_T}no" >&6
8999 fi
9000
9001
a848cd7e
SC
9002 enablestring=
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9005 no_cache=0
9006 # Check whether --enable-radiobox or --disable-radiobox was given.
9007if test "${enable_radiobox+set}" = set; then
9008 enableval="$enable_radiobox"
9009
9010 if test "$enableval" = yes; then
9011 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9012 else
9013 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9014 fi
9015
9016else
9017
9018 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9026
9027fi;
9028
9029 eval "$ac_cv_use_radiobox"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_RADIOBOX" = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
9040 fi
9041
9042
9043 enablestring=
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9046 no_cache=0
9047 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9048if test "${enable_radiobtn+set}" = set; then
9049 enableval="$enable_radiobtn"
9050
9051 if test "$enableval" = yes; then
9052 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9053 else
9054 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9055 fi
9056
9057else
9058
9059 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9067
9068fi;
9069
9070 eval "$ac_cv_use_radiobtn"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_RADIOBTN" = yes; then
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081 fi
9082
9083
9084 enablestring=
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9087 no_cache=0
9088 # Check whether --enable-sash or --disable-sash was given.
9089if test "${enable_sash+set}" = set; then
9090 enableval="$enable_sash"
9091
9092 if test "$enableval" = yes; then
9093 ac_cv_use_sash='wxUSE_SASH=yes'
9094 else
9095 ac_cv_use_sash='wxUSE_SASH=no'
9096 fi
9097
9098else
9099
9100 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9108
9109fi;
9110
9111 eval "$ac_cv_use_sash"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_SASH" = yes; then
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
9122 fi
9123
9124
9125 enablestring=
9126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9127echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9128 no_cache=0
9129 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9130if test "${enable_scrollbar+set}" = set; then
9131 enableval="$enable_scrollbar"
9132
9133 if test "$enableval" = yes; then
9134 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9135 else
9136 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9137 fi
9138
9139else
9140
9141 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9142 if test "x$LINE" != x ; then
9143 eval "DEFAULT_$LINE"
9144 else
9145 no_cache=1
9146 fi
9147
9148 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9149
9150fi;
9151
9152 eval "$ac_cv_use_scrollbar"
9153 if test "$no_cache" != 1; then
9154 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9155 fi
9156
9157 if test "$wxUSE_SCROLLBAR" = yes; then
9158 echo "$as_me:$LINENO: result: yes" >&5
9159echo "${ECHO_T}yes" >&6
9160 else
9161 echo "$as_me:$LINENO: result: no" >&5
9162echo "${ECHO_T}no" >&6
9163 fi
9164
9165
9166 enablestring=
9167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9168echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9169 no_cache=0
9170 # Check whether --enable-slider or --disable-slider was given.
9171if test "${enable_slider+set}" = set; then
9172 enableval="$enable_slider"
9173
9174 if test "$enableval" = yes; then
9175 ac_cv_use_slider='wxUSE_SLIDER=yes'
9176 else
9177 ac_cv_use_slider='wxUSE_SLIDER=no'
9178 fi
9179
9180else
9181
9182 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9183 if test "x$LINE" != x ; then
9184 eval "DEFAULT_$LINE"
9185 else
9186 no_cache=1
9187 fi
9188
9189 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9190
9191fi;
9192
9193 eval "$ac_cv_use_slider"
9194 if test "$no_cache" != 1; then
9195 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9196 fi
9197
9198 if test "$wxUSE_SLIDER" = yes; then
9199 echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6
9201 else
9202 echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204 fi
9205
9206
9207 enablestring=
9208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9209echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9210 no_cache=0
9211 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9212if test "${enable_spinbtn+set}" = set; then
9213 enableval="$enable_spinbtn"
9214
9215 if test "$enableval" = yes; then
9216 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9217 else
9218 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9219 fi
9220
9221else
9222
9223 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9224 if test "x$LINE" != x ; then
9225 eval "DEFAULT_$LINE"
9226 else
9227 no_cache=1
9228 fi
9229
9230 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9231
9232fi;
9233
9234 eval "$ac_cv_use_spinbtn"
9235 if test "$no_cache" != 1; then
9236 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9237 fi
9238
9239 if test "$wxUSE_SPINBTN" = yes; then
9240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242 else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245 fi
9246
9247
9248 enablestring=
9249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9250echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9251 no_cache=0
9252 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9253if test "${enable_spinctrl+set}" = set; then
9254 enableval="$enable_spinctrl"
9255
9256 if test "$enableval" = yes; then
9257 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9258 else
9259 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9260 fi
9261
9262else
9263
9264 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9265 if test "x$LINE" != x ; then
9266 eval "DEFAULT_$LINE"
9267 else
9268 no_cache=1
9269 fi
9270
9271 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9272
9273fi;
9274
9275 eval "$ac_cv_use_spinctrl"
9276 if test "$no_cache" != 1; then
9277 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9278 fi
9279
9280 if test "$wxUSE_SPINCTRL" = yes; then
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286 fi
9287
9288
9289 enablestring=
9290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9291echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9292 no_cache=0
9293 # Check whether --enable-splitter or --disable-splitter was given.
9294if test "${enable_splitter+set}" = set; then
9295 enableval="$enable_splitter"
9296
9297 if test "$enableval" = yes; then
9298 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9299 else
9300 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9301 fi
9302
9303else
9304
9305 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9306 if test "x$LINE" != x ; then
9307 eval "DEFAULT_$LINE"
9308 else
9309 no_cache=1
9310 fi
9311
9312 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9313
9314fi;
9315
9316 eval "$ac_cv_use_splitter"
9317 if test "$no_cache" != 1; then
9318 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9319 fi
9320
9321 if test "$wxUSE_SPLITTER" = yes; then
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
9324 else
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
9327 fi
9328
9329
9330 enablestring=
9331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9332echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9333 no_cache=0
9334 # Check whether --enable-statbmp or --disable-statbmp was given.
9335if test "${enable_statbmp+set}" = set; then
9336 enableval="$enable_statbmp"
9337
9338 if test "$enableval" = yes; then
9339 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9340 else
9341 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9342 fi
9343
9344else
9345
9346 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9347 if test "x$LINE" != x ; then
9348 eval "DEFAULT_$LINE"
9349 else
9350 no_cache=1
9351 fi
9352
9353 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9354
9355fi;
9356
9357 eval "$ac_cv_use_statbmp"
9358 if test "$no_cache" != 1; then
9359 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9360 fi
9361
9362 if test "$wxUSE_STATBMP" = yes; then
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368 fi
9369
9370
9371 enablestring=
9372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9373echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9374 no_cache=0
9375 # Check whether --enable-statbox or --disable-statbox was given.
9376if test "${enable_statbox+set}" = set; then
9377 enableval="$enable_statbox"
9378
9379 if test "$enableval" = yes; then
9380 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9381 else
9382 ac_cv_use_statbox='wxUSE_STATBOX=no'
9383 fi
9384
9385else
9386
9387 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9388 if test "x$LINE" != x ; then
9389 eval "DEFAULT_$LINE"
9390 else
9391 no_cache=1
9392 fi
9393
9394 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9395
9396fi;
9397
9398 eval "$ac_cv_use_statbox"
9399 if test "$no_cache" != 1; then
9400 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9401 fi
9402
9403 if test "$wxUSE_STATBOX" = yes; then
9404 echo "$as_me:$LINENO: result: yes" >&5
9405echo "${ECHO_T}yes" >&6
9406 else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409 fi
9410
9411
9412 enablestring=
9413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9414echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9415 no_cache=0
9416 # Check whether --enable-statline or --disable-statline was given.
9417if test "${enable_statline+set}" = set; then
9418 enableval="$enable_statline"
9419
9420 if test "$enableval" = yes; then
9421 ac_cv_use_statline='wxUSE_STATLINE=yes'
9422 else
9423 ac_cv_use_statline='wxUSE_STATLINE=no'
9424 fi
9425
9426else
9427
9428 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9429 if test "x$LINE" != x ; then
9430 eval "DEFAULT_$LINE"
9431 else
9432 no_cache=1
9433 fi
9434
9435 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9436
9437fi;
9438
9439 eval "$ac_cv_use_statline"
9440 if test "$no_cache" != 1; then
9441 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9442 fi
9443
9444 if test "$wxUSE_STATLINE" = yes; then
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
9450 fi
9451
9452
9453 enablestring=
9454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9455echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9456 no_cache=0
9457 # Check whether --enable-stattext or --disable-stattext was given.
9458if test "${enable_stattext+set}" = set; then
9459 enableval="$enable_stattext"
9460
9461 if test "$enableval" = yes; then
9462 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9463 else
9464 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9465 fi
9466
9467else
9468
9469 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9470 if test "x$LINE" != x ; then
9471 eval "DEFAULT_$LINE"
9472 else
9473 no_cache=1
9474 fi
9475
9476 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9477
9478fi;
9479
9480 eval "$ac_cv_use_stattext"
9481 if test "$no_cache" != 1; then
9482 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9483 fi
9484
9485 if test "$wxUSE_STATTEXT" = yes; then
9486 echo "$as_me:$LINENO: result: yes" >&5
9487echo "${ECHO_T}yes" >&6
9488 else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491 fi
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-statusbar or --disable-statusbar was given.
9499if test "${enable_statusbar+set}" = set; then
9500 enableval="$enable_statusbar"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9504 else
9505 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9518
9519fi;
9520
9521 eval "$ac_cv_use_statusbar"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_STATUSBAR" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9540if test "${enable_tabdialog+set}" = set; then
9541 enableval="$enable_tabdialog"
9542
9543 if test "$enableval" = yes; then
f10e38c4 9544 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9545 else
f10e38c4 9546 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9547 fi
9548
9549else
9550
f10e38c4 9551 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
f10e38c4 9558 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9559
9560fi;
9561
9562 eval "$ac_cv_use_tabdialog"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9565 fi
9566
f10e38c4 9567 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576 enablestring=
9577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9578echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9579 no_cache=0
9580 # Check whether --enable-textctrl or --disable-textctrl was given.
9581if test "${enable_textctrl+set}" = set; then
9582 enableval="$enable_textctrl"
9583
9584 if test "$enableval" = yes; then
9585 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9586 else
9587 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9588 fi
9589
9590else
9591
9592 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9593 if test "x$LINE" != x ; then
9594 eval "DEFAULT_$LINE"
9595 else
9596 no_cache=1
9597 fi
9598
9599 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9600
9601fi;
9602
9603 eval "$ac_cv_use_textctrl"
9604 if test "$no_cache" != 1; then
9605 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9606 fi
9607
9608 if test "$wxUSE_TEXTCTRL" = yes; then
9609 echo "$as_me:$LINENO: result: yes" >&5
9610echo "${ECHO_T}yes" >&6
9611 else
9612 echo "$as_me:$LINENO: result: no" >&5
9613echo "${ECHO_T}no" >&6
9614 fi
9615
9616
9617 enablestring=
9618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9619echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9620 no_cache=0
9621 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9622if test "${enable_togglebtn+set}" = set; then
9623 enableval="$enable_togglebtn"
9624
9625 if test "$enableval" = yes; then
9626 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9627 else
9628 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9629 fi
9630
9631else
9632
9633 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9634 if test "x$LINE" != x ; then
9635 eval "DEFAULT_$LINE"
9636 else
9637 no_cache=1
9638 fi
9639
9640 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9641
9642fi;
9643
9644 eval "$ac_cv_use_togglebtn"
9645 if test "$no_cache" != 1; then
9646 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9647 fi
9648
9649 if test "$wxUSE_TOGGLEBTN" = yes; then
9650 echo "$as_me:$LINENO: result: yes" >&5
9651echo "${ECHO_T}yes" >&6
9652 else
9653 echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655 fi
9656
9657
9658 enablestring=
9659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9660echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9661 no_cache=0
9662 # Check whether --enable-toolbar or --disable-toolbar was given.
9663if test "${enable_toolbar+set}" = set; then
9664 enableval="$enable_toolbar"
9665
9666 if test "$enableval" = yes; then
9667 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9668 else
9669 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9670 fi
9671
9672else
9673
9674 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9675 if test "x$LINE" != x ; then
9676 eval "DEFAULT_$LINE"
9677 else
9678 no_cache=1
9679 fi
9680
9681 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9682
9683fi;
9684
9685 eval "$ac_cv_use_toolbar"
9686 if test "$no_cache" != 1; then
9687 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9688 fi
9689
9690 if test "$wxUSE_TOOLBAR" = yes; then
9691 echo "$as_me:$LINENO: result: yes" >&5
9692echo "${ECHO_T}yes" >&6
9693 else
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
9696 fi
9697
9698
9699 enablestring=
9700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9701echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9702 no_cache=0
9703 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9704if test "${enable_tbarnative+set}" = set; then
9705 enableval="$enable_tbarnative"
9706
9707 if test "$enableval" = yes; then
9708 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9709 else
9710 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9711 fi
9712
9713else
9714
9715 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9716 if test "x$LINE" != x ; then
9717 eval "DEFAULT_$LINE"
9718 else
9719 no_cache=1
9720 fi
9721
9722 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9723
9724fi;
9725
9726 eval "$ac_cv_use_tbarnative"
9727 if test "$no_cache" != 1; then
9728 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9729 fi
9730
9731 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9732 echo "$as_me:$LINENO: result: yes" >&5
9733echo "${ECHO_T}yes" >&6
9734 else
9735 echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737 fi
9738
9739
0093c2fc
VZ
9740 enablestring=
9741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9742echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9743 no_cache=0
9744 # Check whether --enable-treebook or --disable-treebook was given.
9745if test "${enable_treebook+set}" = set; then
9746 enableval="$enable_treebook"
9747
9748 if test "$enableval" = yes; then
9749 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9750 else
9751 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9752 fi
9753
9754else
9755
9756 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9757 if test "x$LINE" != x ; then
9758 eval "DEFAULT_$LINE"
9759 else
9760 no_cache=1
9761 fi
9762
9763 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9764
9765fi;
9766
9767 eval "$ac_cv_use_treebook"
9768 if test "$no_cache" != 1; then
9769 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9770 fi
9771
9772 if test "$wxUSE_TREEBOOK" = yes; then
9773 echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6
9775 else
9776 echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
9778 fi
9779
9780
5ec3bc43
JS
9781 enablestring=
9782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9783echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9784 no_cache=0
9785 # Check whether --enable-toolbook or --disable-toolbook was given.
9786if test "${enable_toolbook+set}" = set; then
9787 enableval="$enable_toolbook"
9788
9789 if test "$enableval" = yes; then
9790 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9791 else
9792 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9793 fi
9794
9795else
9796
9797 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9798 if test "x$LINE" != x ; then
9799 eval "DEFAULT_$LINE"
9800 else
9801 no_cache=1
9802 fi
9803
9804 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9805
9806fi;
9807
9808 eval "$ac_cv_use_toolbook"
9809 if test "$no_cache" != 1; then
9810 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9811 fi
9812
9813 if test "$wxUSE_TOOLBOOK" = yes; then
9814 echo "$as_me:$LINENO: result: yes" >&5
9815echo "${ECHO_T}yes" >&6
9816 else
9817 echo "$as_me:$LINENO: result: no" >&5
9818echo "${ECHO_T}no" >&6
9819 fi
9820
9821
a848cd7e
SC
9822 enablestring=
9823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9824echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9825 no_cache=0
9826 # Check whether --enable-treectrl or --disable-treectrl was given.
9827if test "${enable_treectrl+set}" = set; then
9828 enableval="$enable_treectrl"
9829
9830 if test "$enableval" = yes; then
9831 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9832 else
9833 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9834 fi
9835
9836else
9837
9838 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9839 if test "x$LINE" != x ; then
9840 eval "DEFAULT_$LINE"
9841 else
9842 no_cache=1
9843 fi
9844
9845 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9846
9847fi;
9848
9849 eval "$ac_cv_use_treectrl"
9850 if test "$no_cache" != 1; then
9851 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9852 fi
9853
9854 if test "$wxUSE_TREECTRL" = yes; then
9855 echo "$as_me:$LINENO: result: yes" >&5
9856echo "${ECHO_T}yes" >&6
9857 else
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
9860 fi
9861
9862
9863 enablestring=
9864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9865echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9866 no_cache=0
9867 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9868if test "${enable_tipwindow+set}" = set; then
9869 enableval="$enable_tipwindow"
9870
9871 if test "$enableval" = yes; then
9872 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9873 else
9874 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9875 fi
9876
9877else
9878
9879 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9880 if test "x$LINE" != x ; then
9881 eval "DEFAULT_$LINE"
9882 else
9883 no_cache=1
9884 fi
9885
9886 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9887
9888fi;
9889
9890 eval "$ac_cv_use_tipwindow"
9891 if test "$no_cache" != 1; then
9892 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9893 fi
9894
9895 if test "$wxUSE_TIPWINDOW" = yes; then
9896 echo "$as_me:$LINENO: result: yes" >&5
9897echo "${ECHO_T}yes" >&6
9898 else
9899 echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6
9901 fi
9902
9903
9904 enablestring=
9905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9906echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9907 no_cache=0
9908 # Check whether --enable-popupwin or --disable-popupwin was given.
9909if test "${enable_popupwin+set}" = set; then
9910 enableval="$enable_popupwin"
9911
9912 if test "$enableval" = yes; then
9913 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9914 else
9915 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9916 fi
9917
9918else
9919
9920 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9921 if test "x$LINE" != x ; then
9922 eval "DEFAULT_$LINE"
9923 else
9924 no_cache=1
9925 fi
9926
9927 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9928
9929fi;
9930
9931 eval "$ac_cv_use_popupwin"
9932 if test "$no_cache" != 1; then
9933 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9934 fi
9935
9936 if test "$wxUSE_POPUPWIN" = yes; then
9937 echo "$as_me:$LINENO: result: yes" >&5
9938echo "${ECHO_T}yes" >&6
9939 else
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
9942 fi
9943
9944
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-commondlg or --disable-commondlg was given.
9952if test "${enable_commondlg+set}" = set; then
9953 enableval="$enable_commondlg"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9957 else
9958 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9971
9972fi;
9973
9974 eval "$ac_cv_use_commondlg"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_COMMONDLGS" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988 enablestring=
9989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9990echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9991 no_cache=0
9992 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9993if test "${enable_choicedlg+set}" = set; then
9994 enableval="$enable_choicedlg"
9995
9996 if test "$enableval" = yes; then
9997 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9998 else
9999 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10000 fi
10001
10002else
10003
10004 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10005 if test "x$LINE" != x ; then
10006 eval "DEFAULT_$LINE"
10007 else
10008 no_cache=1
10009 fi
10010
10011 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10012
10013fi;
10014
10015 eval "$ac_cv_use_choicedlg"
10016 if test "$no_cache" != 1; then
10017 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10018 fi
10019
10020 if test "$wxUSE_CHOICEDLG" = yes; then
10021 echo "$as_me:$LINENO: result: yes" >&5
10022echo "${ECHO_T}yes" >&6
10023 else
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
10026 fi
10027
10028
10029 enablestring=
10030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10031echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10032 no_cache=0
10033 # Check whether --enable-coldlg or --disable-coldlg was given.
10034if test "${enable_coldlg+set}" = set; then
10035 enableval="$enable_coldlg"
10036
10037 if test "$enableval" = yes; then
10038 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10039 else
10040 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10041 fi
10042
10043else
10044
10045 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10046 if test "x$LINE" != x ; then
10047 eval "DEFAULT_$LINE"
10048 else
10049 no_cache=1
10050 fi
10051
10052 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10053
10054fi;
10055
10056 eval "$ac_cv_use_coldlg"
10057 if test "$no_cache" != 1; then
10058 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10059 fi
10060
10061 if test "$wxUSE_COLOURDLG" = yes; then
10062 echo "$as_me:$LINENO: result: yes" >&5
10063echo "${ECHO_T}yes" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066echo "${ECHO_T}no" >&6
10067 fi
10068
10069
10070 enablestring=
10071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10072echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10073 no_cache=0
10074 # Check whether --enable-filedlg or --disable-filedlg was given.
10075if test "${enable_filedlg+set}" = set; then
10076 enableval="$enable_filedlg"
10077
10078 if test "$enableval" = yes; then
10079 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10080 else
10081 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10082 fi
10083
10084else
10085
10086 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10087 if test "x$LINE" != x ; then
10088 eval "DEFAULT_$LINE"
10089 else
10090 no_cache=1
10091 fi
10092
10093 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10094
10095fi;
10096
10097 eval "$ac_cv_use_filedlg"
10098 if test "$no_cache" != 1; then
10099 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10100 fi
10101
10102 if test "$wxUSE_FILEDLG" = yes; then
10103 echo "$as_me:$LINENO: result: yes" >&5
10104echo "${ECHO_T}yes" >&6
10105 else
10106 echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6
10108 fi
10109
10110
10111 enablestring=
10112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10113echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10114 no_cache=0
10115 # Check whether --enable-finddlg or --disable-finddlg was given.
10116if test "${enable_finddlg+set}" = set; then
10117 enableval="$enable_finddlg"
10118
10119 if test "$enableval" = yes; then
10120 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10121 else
10122 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10123 fi
10124
10125else
10126
10127 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10128 if test "x$LINE" != x ; then
10129 eval "DEFAULT_$LINE"
10130 else
10131 no_cache=1
10132 fi
10133
10134 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10135
10136fi;
10137
10138 eval "$ac_cv_use_finddlg"
10139 if test "$no_cache" != 1; then
10140 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10141 fi
10142
10143 if test "$wxUSE_FINDREPLDLG" = yes; then
10144 echo "$as_me:$LINENO: result: yes" >&5
10145echo "${ECHO_T}yes" >&6
10146 else
10147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
10149 fi
10150
10151
10152 enablestring=
10153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10154echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10155 no_cache=0
10156 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10157if test "${enable_fontdlg+set}" = set; then
10158 enableval="$enable_fontdlg"
10159
10160 if test "$enableval" = yes; then
10161 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10162 else
10163 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10164 fi
10165
10166else
10167
10168 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10169 if test "x$LINE" != x ; then
10170 eval "DEFAULT_$LINE"
10171 else
10172 no_cache=1
10173 fi
10174
10175 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10176
10177fi;
10178
10179 eval "$ac_cv_use_fontdlg"
10180 if test "$no_cache" != 1; then
10181 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10182 fi
10183
10184 if test "$wxUSE_FONTDLG" = yes; then
10185 echo "$as_me:$LINENO: result: yes" >&5
10186echo "${ECHO_T}yes" >&6
10187 else
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
10190 fi
10191
10192
10193 enablestring=
10194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10195echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10196 no_cache=0
10197 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10198if test "${enable_dirdlg+set}" = set; then
10199 enableval="$enable_dirdlg"
10200
10201 if test "$enableval" = yes; then
10202 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10203 else
10204 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10205 fi
10206
10207else
10208
10209 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10210 if test "x$LINE" != x ; then
10211 eval "DEFAULT_$LINE"
10212 else
10213 no_cache=1
10214 fi
10215
10216 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10217
10218fi;
10219
10220 eval "$ac_cv_use_dirdlg"
10221 if test "$no_cache" != 1; then
10222 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10223 fi
10224
10225 if test "$wxUSE_DIRDLG" = yes; then
10226 echo "$as_me:$LINENO: result: yes" >&5
10227echo "${ECHO_T}yes" >&6
10228 else
10229 echo "$as_me:$LINENO: result: no" >&5
10230echo "${ECHO_T}no" >&6
10231 fi
10232
10233
10234 enablestring=
10235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10236echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10237 no_cache=0
10238 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10239if test "${enable_msgdlg+set}" = set; then
10240 enableval="$enable_msgdlg"
10241
10242 if test "$enableval" = yes; then
10243 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10244 else
10245 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10246 fi
10247
10248else
10249
10250 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10251 if test "x$LINE" != x ; then
10252 eval "DEFAULT_$LINE"
10253 else
10254 no_cache=1
10255 fi
10256
10257 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10258
10259fi;
10260
10261 eval "$ac_cv_use_msgdlg"
10262 if test "$no_cache" != 1; then
10263 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10264 fi
10265
10266 if test "$wxUSE_MSGDLG" = yes; then
10267 echo "$as_me:$LINENO: result: yes" >&5
10268echo "${ECHO_T}yes" >&6
10269 else
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
10272 fi
10273
10274
10275 enablestring=
10276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10277echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10278 no_cache=0
10279 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10280if test "${enable_numberdlg+set}" = set; then
10281 enableval="$enable_numberdlg"
10282
10283 if test "$enableval" = yes; then
10284 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10285 else
10286 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10287 fi
10288
10289else
10290
10291 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10292 if test "x$LINE" != x ; then
10293 eval "DEFAULT_$LINE"
10294 else
10295 no_cache=1
10296 fi
10297
10298 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10299
10300fi;
10301
10302 eval "$ac_cv_use_numberdlg"
10303 if test "$no_cache" != 1; then
10304 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10305 fi
10306
10307 if test "$wxUSE_NUMBERDLG" = yes; then
10308 echo "$as_me:$LINENO: result: yes" >&5
10309echo "${ECHO_T}yes" >&6
10310 else
10311 echo "$as_me:$LINENO: result: no" >&5
10312echo "${ECHO_T}no" >&6
10313 fi
10314
10315
10316 enablestring=
10317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10318echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10319 no_cache=0
10320 # Check whether --enable-splash or --disable-splash was given.
10321if test "${enable_splash+set}" = set; then
10322 enableval="$enable_splash"
10323
10324 if test "$enableval" = yes; then
10325 ac_cv_use_splash='wxUSE_SPLASH=yes'
10326 else
10327 ac_cv_use_splash='wxUSE_SPLASH=no'
10328 fi
10329
10330else
10331
10332 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10333 if test "x$LINE" != x ; then
10334 eval "DEFAULT_$LINE"
10335 else
10336 no_cache=1
10337 fi
10338
10339 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10340
10341fi;
10342
10343 eval "$ac_cv_use_splash"
10344 if test "$no_cache" != 1; then
10345 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10346 fi
10347
10348 if test "$wxUSE_SPLASH" = yes; then
10349 echo "$as_me:$LINENO: result: yes" >&5
10350echo "${ECHO_T}yes" >&6
10351 else
10352 echo "$as_me:$LINENO: result: no" >&5
10353echo "${ECHO_T}no" >&6
10354 fi
10355
10356
10357 enablestring=
10358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10359echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10360 no_cache=0
10361 # Check whether --enable-textdlg or --disable-textdlg was given.
10362if test "${enable_textdlg+set}" = set; then
10363 enableval="$enable_textdlg"
10364
10365 if test "$enableval" = yes; then
10366 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10367 else
10368 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10369 fi
10370
10371else
10372
10373 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10374 if test "x$LINE" != x ; then
10375 eval "DEFAULT_$LINE"
10376 else
10377 no_cache=1
10378 fi
10379
10380 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10381
10382fi;
10383
10384 eval "$ac_cv_use_textdlg"
10385 if test "$no_cache" != 1; then
10386 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10387 fi
10388
10389 if test "$wxUSE_TEXTDLG" = yes; then
10390 echo "$as_me:$LINENO: result: yes" >&5
10391echo "${ECHO_T}yes" >&6
10392 else
10393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
10395 fi
10396
10397
10398 enablestring=
10399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10400echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10401 no_cache=0
10402 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10403if test "${enable_tipdlg+set}" = set; then
10404 enableval="$enable_tipdlg"
10405
10406 if test "$enableval" = yes; then
10407 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10408 else
10409 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10410 fi
10411
10412else
10413
10414 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10415 if test "x$LINE" != x ; then
10416 eval "DEFAULT_$LINE"
10417 else
10418 no_cache=1
10419 fi
10420
10421 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10422
10423fi;
10424
10425 eval "$ac_cv_use_tipdlg"
10426 if test "$no_cache" != 1; then
10427 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10428 fi
10429
10430 if test "$wxUSE_STARTUP_TIPS" = yes; then
10431 echo "$as_me:$LINENO: result: yes" >&5
10432echo "${ECHO_T}yes" >&6
10433 else
10434 echo "$as_me:$LINENO: result: no" >&5
10435echo "${ECHO_T}no" >&6
10436 fi
10437
10438
10439 enablestring=
10440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10441echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10442 no_cache=0
10443 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10444if test "${enable_progressdlg+set}" = set; then
10445 enableval="$enable_progressdlg"
10446
10447 if test "$enableval" = yes; then
10448 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10449 else
10450 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10451 fi
10452
10453else
10454
10455 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10456 if test "x$LINE" != x ; then
10457 eval "DEFAULT_$LINE"
10458 else
10459 no_cache=1
10460 fi
10461
10462 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10463
10464fi;
10465
10466 eval "$ac_cv_use_progressdlg"
10467 if test "$no_cache" != 1; then
10468 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10469 fi
10470
10471 if test "$wxUSE_PROGRESSDLG" = yes; then
10472 echo "$as_me:$LINENO: result: yes" >&5
10473echo "${ECHO_T}yes" >&6
10474 else
10475 echo "$as_me:$LINENO: result: no" >&5
10476echo "${ECHO_T}no" >&6
10477 fi
10478
10479
10480 enablestring=
10481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10482echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10483 no_cache=0
10484 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10485if test "${enable_wizarddlg+set}" = set; then
10486 enableval="$enable_wizarddlg"
10487
10488 if test "$enableval" = yes; then
10489 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10490 else
10491 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10492 fi
10493
10494else
10495
10496 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10497 if test "x$LINE" != x ; then
10498 eval "DEFAULT_$LINE"
10499 else
10500 no_cache=1
10501 fi
10502
10503 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10504
10505fi;
10506
10507 eval "$ac_cv_use_wizarddlg"
10508 if test "$no_cache" != 1; then
10509 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10510 fi
10511
10512 if test "$wxUSE_WIZARDDLG" = yes; then
10513 echo "$as_me:$LINENO: result: yes" >&5
10514echo "${ECHO_T}yes" >&6
10515 else
10516 echo "$as_me:$LINENO: result: no" >&5
10517echo "${ECHO_T}no" >&6
10518 fi
10519
10520
10521
10522
10523 enablestring=
10524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10525echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10526 no_cache=0
10527 # Check whether --enable-menus or --disable-menus was given.
10528if test "${enable_menus+set}" = set; then
10529 enableval="$enable_menus"
10530
10531 if test "$enableval" = yes; then
10532 ac_cv_use_menus='wxUSE_MENUS=yes'
10533 else
10534 ac_cv_use_menus='wxUSE_MENUS=no'
10535 fi
10536
10537else
10538
10539 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10540 if test "x$LINE" != x ; then
10541 eval "DEFAULT_$LINE"
10542 else
10543 no_cache=1
10544 fi
10545
10546 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10547
10548fi;
10549
10550 eval "$ac_cv_use_menus"
10551 if test "$no_cache" != 1; then
10552 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10553 fi
10554
10555 if test "$wxUSE_MENUS" = yes; then
10556 echo "$as_me:$LINENO: result: yes" >&5
10557echo "${ECHO_T}yes" >&6
10558 else
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
10561 fi
10562
10563
10564 enablestring=
10565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10566echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10567 no_cache=0
10568 # Check whether --enable-miniframe or --disable-miniframe was given.
10569if test "${enable_miniframe+set}" = set; then
10570 enableval="$enable_miniframe"
10571
10572 if test "$enableval" = yes; then
10573 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10574 else
10575 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10576 fi
10577
10578else
10579
10580 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10581 if test "x$LINE" != x ; then
10582 eval "DEFAULT_$LINE"
10583 else
10584 no_cache=1
10585 fi
10586
10587 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10588
10589fi;
10590
10591 eval "$ac_cv_use_miniframe"
10592 if test "$no_cache" != 1; then
10593 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10594 fi
10595
10596 if test "$wxUSE_MINIFRAME" = yes; then
10597 echo "$as_me:$LINENO: result: yes" >&5
10598echo "${ECHO_T}yes" >&6
10599 else
10600 echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
10602 fi
10603
10604
10605 enablestring=
10606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10607echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10608 no_cache=0
10609 # Check whether --enable-tooltips or --disable-tooltips was given.
10610if test "${enable_tooltips+set}" = set; then
10611 enableval="$enable_tooltips"
10612
10613 if test "$enableval" = yes; then
10614 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10615 else
10616 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10617 fi
10618
10619else
10620
10621 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10622 if test "x$LINE" != x ; then
10623 eval "DEFAULT_$LINE"
10624 else
10625 no_cache=1
10626 fi
10627
10628 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10629
10630fi;
10631
10632 eval "$ac_cv_use_tooltips"
10633 if test "$no_cache" != 1; then
10634 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10635 fi
10636
10637 if test "$wxUSE_TOOLTIPS" = yes; then
10638 echo "$as_me:$LINENO: result: yes" >&5
10639echo "${ECHO_T}yes" >&6
10640 else
10641 echo "$as_me:$LINENO: result: no" >&5
10642echo "${ECHO_T}no" >&6
10643 fi
10644
10645
10646 enablestring=
10647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10648echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10649 no_cache=0
10650 # Check whether --enable-splines or --disable-splines was given.
10651if test "${enable_splines+set}" = set; then
10652 enableval="$enable_splines"
10653
10654 if test "$enableval" = yes; then
10655 ac_cv_use_splines='wxUSE_SPLINES=yes'
10656 else
10657 ac_cv_use_splines='wxUSE_SPLINES=no'
10658 fi
10659
10660else
10661
10662 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10663 if test "x$LINE" != x ; then
10664 eval "DEFAULT_$LINE"
10665 else
10666 no_cache=1
10667 fi
10668
10669 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10670
10671fi;
10672
10673 eval "$ac_cv_use_splines"
10674 if test "$no_cache" != 1; then
10675 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10676 fi
10677
10678 if test "$wxUSE_SPLINES" = yes; then
10679 echo "$as_me:$LINENO: result: yes" >&5
10680echo "${ECHO_T}yes" >&6
10681 else
10682 echo "$as_me:$LINENO: result: no" >&5
10683echo "${ECHO_T}no" >&6
10684 fi
10685
10686
fbe2ca43
SN
10687 enablestring=
10688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10689echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10690 no_cache=0
10691 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10692if test "${enable_mousewheel+set}" = set; then
10693 enableval="$enable_mousewheel"
10694
10695 if test "$enableval" = yes; then
10696 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10697 else
10698 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10699 fi
10700
10701else
10702
10703 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10704 if test "x$LINE" != x ; then
10705 eval "DEFAULT_$LINE"
10706 else
10707 no_cache=1
10708 fi
10709
10710 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10711
10712fi;
10713
10714 eval "$ac_cv_use_mousewheel"
10715 if test "$no_cache" != 1; then
10716 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10717 fi
10718
10719 if test "$wxUSE_MOUSEWHEEL" = yes; then
10720 echo "$as_me:$LINENO: result: yes" >&5
10721echo "${ECHO_T}yes" >&6
10722 else
10723 echo "$as_me:$LINENO: result: no" >&5
10724echo "${ECHO_T}no" >&6
10725 fi
10726
10727
a848cd7e
SC
10728 enablestring=
10729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10730echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10731 no_cache=0
10732 # Check whether --enable-validators or --disable-validators was given.
10733if test "${enable_validators+set}" = set; then
10734 enableval="$enable_validators"
10735
10736 if test "$enableval" = yes; then
10737 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10738 else
10739 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10740 fi
10741
10742else
10743
10744 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10745 if test "x$LINE" != x ; then
10746 eval "DEFAULT_$LINE"
10747 else
10748 no_cache=1
10749 fi
10750
10751 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10752
10753fi;
10754
10755 eval "$ac_cv_use_validators"
10756 if test "$no_cache" != 1; then
10757 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10758 fi
10759
10760 if test "$wxUSE_VALIDATORS" = yes; then
10761 echo "$as_me:$LINENO: result: yes" >&5
10762echo "${ECHO_T}yes" >&6
10763 else
10764 echo "$as_me:$LINENO: result: no" >&5
10765echo "${ECHO_T}no" >&6
10766 fi
10767
10768
10769 enablestring=
10770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10771echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10772 no_cache=0
10773 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10774if test "${enable_busyinfo+set}" = set; then
10775 enableval="$enable_busyinfo"
10776
10777 if test "$enableval" = yes; then
10778 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10779 else
10780 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10781 fi
10782
10783else
10784
10785 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10786 if test "x$LINE" != x ; then
10787 eval "DEFAULT_$LINE"
10788 else
10789 no_cache=1
10790 fi
10791
10792 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10793
10794fi;
10795
10796 eval "$ac_cv_use_busyinfo"
10797 if test "$no_cache" != 1; then
10798 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10799 fi
10800
10801 if test "$wxUSE_BUSYINFO" = yes; then
10802 echo "$as_me:$LINENO: result: yes" >&5
10803echo "${ECHO_T}yes" >&6
10804 else
10805 echo "$as_me:$LINENO: result: no" >&5
10806echo "${ECHO_T}no" >&6
10807 fi
10808
10809
10810 enablestring=
10811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10812echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10813 no_cache=0
10814 # Check whether --enable-joystick or --disable-joystick was given.
10815if test "${enable_joystick+set}" = set; then
10816 enableval="$enable_joystick"
10817
10818 if test "$enableval" = yes; then
10819 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10820 else
10821 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10822 fi
10823
10824else
10825
10826 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10827 if test "x$LINE" != x ; then
10828 eval "DEFAULT_$LINE"
10829 else
10830 no_cache=1
10831 fi
10832
10833 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10834
10835fi;
10836
10837 eval "$ac_cv_use_joystick"
10838 if test "$no_cache" != 1; then
10839 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10840 fi
10841
10842 if test "$wxUSE_JOYSTICK" = yes; then
10843 echo "$as_me:$LINENO: result: yes" >&5
10844echo "${ECHO_T}yes" >&6
10845 else
10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
10848 fi
10849
10850
10851 enablestring=
10852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10853echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10854 no_cache=0
10855 # Check whether --enable-metafile or --disable-metafile was given.
10856if test "${enable_metafile+set}" = set; then
10857 enableval="$enable_metafile"
10858
10859 if test "$enableval" = yes; then
10860 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10861 else
10862 ac_cv_use_metafile='wxUSE_METAFILE=no'
10863 fi
10864
10865else
10866
10867 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10868 if test "x$LINE" != x ; then
10869 eval "DEFAULT_$LINE"
10870 else
10871 no_cache=1
10872 fi
10873
10874 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10875
10876fi;
10877
10878 eval "$ac_cv_use_metafile"
10879 if test "$no_cache" != 1; then
10880 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10881 fi
10882
10883 if test "$wxUSE_METAFILE" = yes; then
10884 echo "$as_me:$LINENO: result: yes" >&5
10885echo "${ECHO_T}yes" >&6
10886 else
10887 echo "$as_me:$LINENO: result: no" >&5
10888echo "${ECHO_T}no" >&6
10889 fi
10890
10891
10892 enablestring=
10893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10894echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10895 no_cache=0
10896 # Check whether --enable-dragimage or --disable-dragimage was given.
10897if test "${enable_dragimage+set}" = set; then
10898 enableval="$enable_dragimage"
10899
10900 if test "$enableval" = yes; then
10901 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10902 else
10903 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10904 fi
10905
10906else
10907
10908 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10909 if test "x$LINE" != x ; then
10910 eval "DEFAULT_$LINE"
10911 else
10912 no_cache=1
10913 fi
10914
10915 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10916
10917fi;
10918
10919 eval "$ac_cv_use_dragimage"
10920 if test "$no_cache" != 1; then
10921 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10922 fi
10923
10924 if test "$wxUSE_DRAGIMAGE" = yes; then
10925 echo "$as_me:$LINENO: result: yes" >&5
10926echo "${ECHO_T}yes" >&6
10927 else
10928 echo "$as_me:$LINENO: result: no" >&5
10929echo "${ECHO_T}no" >&6
10930 fi
10931
10932
10933 enablestring=
10934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10935echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10936 no_cache=0
10937 # Check whether --enable-accessibility or --disable-accessibility was given.
10938if test "${enable_accessibility+set}" = set; then
10939 enableval="$enable_accessibility"
10940
10941 if test "$enableval" = yes; then
10942 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10943 else
10944 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10945 fi
10946
10947else
10948
10949 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10950 if test "x$LINE" != x ; then
10951 eval "DEFAULT_$LINE"
10952 else
10953 no_cache=1
10954 fi
10955
10956 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10957
10958fi;
10959
10960 eval "$ac_cv_use_accessibility"
10961 if test "$no_cache" != 1; then
10962 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10963 fi
10964
10965 if test "$wxUSE_ACCESSIBILITY" = yes; then
10966 echo "$as_me:$LINENO: result: yes" >&5
10967echo "${ECHO_T}yes" >&6
10968 else
10969 echo "$as_me:$LINENO: result: no" >&5
10970echo "${ECHO_T}no" >&6
10971 fi
10972
10973
38b4a946
VZ
10974if test "$wxUSE_MSW" = "1"; then
10975
10976 enablestring=
10977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10978echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10979 no_cache=0
10980 # Check whether --enable-dccache or --disable-dccache was given.
10981if test "${enable_dccache+set}" = set; then
10982 enableval="$enable_dccache"
10983
10984 if test "$enableval" = yes; then
10985 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10986 else
10987 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10988 fi
10989
10990else
10991
10992 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10993 if test "x$LINE" != x ; then
10994 eval "DEFAULT_$LINE"
10995 else
10996 no_cache=1
10997 fi
10998
10999 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11000
11001fi;
11002
11003 eval "$ac_cv_use_dccache"
11004 if test "$no_cache" != 1; then
11005 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11006 fi
11007
11008 if test "$wxUSE_DC_CACHEING" = yes; then
11009 echo "$as_me:$LINENO: result: yes" >&5
11010echo "${ECHO_T}yes" >&6
11011 else
11012 echo "$as_me:$LINENO: result: no" >&5
11013echo "${ECHO_T}no" >&6
11014 fi
11015
11016fi
11017
a848cd7e
SC
11018
11019
11020 enablestring=
11021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11022echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11023 no_cache=0
11024 # Check whether --enable-palette or --disable-palette was given.
11025if test "${enable_palette+set}" = set; then
11026 enableval="$enable_palette"
11027
11028 if test "$enableval" = yes; then
11029 ac_cv_use_palette='wxUSE_PALETTE=yes'
11030 else
11031 ac_cv_use_palette='wxUSE_PALETTE=no'
11032 fi
11033
11034else
11035
11036 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11037 if test "x$LINE" != x ; then
11038 eval "DEFAULT_$LINE"
11039 else
11040 no_cache=1
11041 fi
11042
11043 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11044
11045fi;
11046
11047 eval "$ac_cv_use_palette"
11048 if test "$no_cache" != 1; then
11049 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11050 fi
11051
11052 if test "$wxUSE_PALETTE" = yes; then
11053 echo "$as_me:$LINENO: result: yes" >&5
11054echo "${ECHO_T}yes" >&6
11055 else
11056 echo "$as_me:$LINENO: result: no" >&5
11057echo "${ECHO_T}no" >&6
11058 fi
11059
11060
11061 enablestring=
11062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11063echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11064 no_cache=0
11065 # Check whether --enable-image or --disable-image was given.
11066if test "${enable_image+set}" = set; then
11067 enableval="$enable_image"
11068
11069 if test "$enableval" = yes; then
11070 ac_cv_use_image='wxUSE_IMAGE=yes'
11071 else
11072 ac_cv_use_image='wxUSE_IMAGE=no'
11073 fi
11074
11075else
11076
11077 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11078 if test "x$LINE" != x ; then
11079 eval "DEFAULT_$LINE"
11080 else
11081 no_cache=1
11082 fi
11083
11084 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11085
11086fi;
11087
11088 eval "$ac_cv_use_image"
11089 if test "$no_cache" != 1; then
11090 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11091 fi
11092
11093 if test "$wxUSE_IMAGE" = yes; then
11094 echo "$as_me:$LINENO: result: yes" >&5
11095echo "${ECHO_T}yes" >&6
11096 else
11097 echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6
11099 fi
11100
11101
11102 enablestring=
11103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11104echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11105 no_cache=0
11106 # Check whether --enable-gif or --disable-gif was given.
11107if test "${enable_gif+set}" = set; then
11108 enableval="$enable_gif"
11109
11110 if test "$enableval" = yes; then
11111 ac_cv_use_gif='wxUSE_GIF=yes'
11112 else
11113 ac_cv_use_gif='wxUSE_GIF=no'
11114 fi
11115
11116else
11117
11118 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11119 if test "x$LINE" != x ; then
11120 eval "DEFAULT_$LINE"
11121 else
11122 no_cache=1
11123 fi
11124
11125 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11126
11127fi;
11128
11129 eval "$ac_cv_use_gif"
11130 if test "$no_cache" != 1; then
11131 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11132 fi
11133
11134 if test "$wxUSE_GIF" = yes; then
11135 echo "$as_me:$LINENO: result: yes" >&5
11136echo "${ECHO_T}yes" >&6
11137 else
11138 echo "$as_me:$LINENO: result: no" >&5
11139echo "${ECHO_T}no" >&6
11140 fi
11141
11142
11143 enablestring=
11144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11145echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11146 no_cache=0
11147 # Check whether --enable-pcx or --disable-pcx was given.
11148if test "${enable_pcx+set}" = set; then
11149 enableval="$enable_pcx"
11150
11151 if test "$enableval" = yes; then
11152 ac_cv_use_pcx='wxUSE_PCX=yes'
11153 else
11154 ac_cv_use_pcx='wxUSE_PCX=no'
11155 fi
11156
11157else
11158
11159 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11160 if test "x$LINE" != x ; then
11161 eval "DEFAULT_$LINE"
11162 else
11163 no_cache=1
11164 fi
11165
11166 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11167
11168fi;
11169
11170 eval "$ac_cv_use_pcx"
11171 if test "$no_cache" != 1; then
11172 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11173 fi
11174
11175 if test "$wxUSE_PCX" = yes; then
11176 echo "$as_me:$LINENO: result: yes" >&5
11177echo "${ECHO_T}yes" >&6
11178 else
11179 echo "$as_me:$LINENO: result: no" >&5
11180echo "${ECHO_T}no" >&6
11181 fi
11182
11183
11184 enablestring=
11185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11186echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11187 no_cache=0
11188 # Check whether --enable-iff or --disable-iff was given.
11189if test "${enable_iff+set}" = set; then
11190 enableval="$enable_iff"
11191
11192 if test "$enableval" = yes; then
11193 ac_cv_use_iff='wxUSE_IFF=yes'
11194 else
11195 ac_cv_use_iff='wxUSE_IFF=no'
11196 fi
11197
11198else
11199
11200 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11201 if test "x$LINE" != x ; then
11202 eval "DEFAULT_$LINE"
11203 else
11204 no_cache=1
11205 fi
11206
11207 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11208
11209fi;
11210
11211 eval "$ac_cv_use_iff"
11212 if test "$no_cache" != 1; then
11213 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11214 fi
11215
11216 if test "$wxUSE_IFF" = yes; then
11217 echo "$as_me:$LINENO: result: yes" >&5
11218echo "${ECHO_T}yes" >&6
11219 else
11220 echo "$as_me:$LINENO: result: no" >&5
11221echo "${ECHO_T}no" >&6
11222 fi
11223
11224
11225 enablestring=
11226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11227echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11228 no_cache=0
11229 # Check whether --enable-pnm or --disable-pnm was given.
11230if test "${enable_pnm+set}" = set; then
11231 enableval="$enable_pnm"
11232
11233 if test "$enableval" = yes; then
11234 ac_cv_use_pnm='wxUSE_PNM=yes'
11235 else
11236 ac_cv_use_pnm='wxUSE_PNM=no'
11237 fi
11238
11239else
11240
11241 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11242 if test "x$LINE" != x ; then
11243 eval "DEFAULT_$LINE"
11244 else
11245 no_cache=1
11246 fi
11247
11248 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11249
11250fi;
11251
11252 eval "$ac_cv_use_pnm"
11253 if test "$no_cache" != 1; then
11254 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11255 fi
11256
11257 if test "$wxUSE_PNM" = yes; then
11258 echo "$as_me:$LINENO: result: yes" >&5
11259echo "${ECHO_T}yes" >&6
11260 else
11261 echo "$as_me:$LINENO: result: no" >&5
11262echo "${ECHO_T}no" >&6
11263 fi
11264
11265
11266 enablestring=
11267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11268echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11269 no_cache=0
11270 # Check whether --enable-xpm or --disable-xpm was given.
11271if test "${enable_xpm+set}" = set; then
11272 enableval="$enable_xpm"
11273
11274 if test "$enableval" = yes; then
11275 ac_cv_use_xpm='wxUSE_XPM=yes'
11276 else
11277 ac_cv_use_xpm='wxUSE_XPM=no'
11278 fi
11279
11280else
11281
11282 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11283 if test "x$LINE" != x ; then
11284 eval "DEFAULT_$LINE"
11285 else
11286 no_cache=1
11287 fi
11288
11289 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11290
11291fi;
11292
11293 eval "$ac_cv_use_xpm"
11294 if test "$no_cache" != 1; then
11295 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11296 fi
11297
11298 if test "$wxUSE_XPM" = yes; then
11299 echo "$as_me:$LINENO: result: yes" >&5
11300echo "${ECHO_T}yes" >&6
11301 else
11302 echo "$as_me:$LINENO: result: no" >&5
11303echo "${ECHO_T}no" >&6
11304 fi
11305
11306
11307 enablestring=
11308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11309echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11310 no_cache=0
11311 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11312if test "${enable_ico_cur+set}" = set; then
11313 enableval="$enable_ico_cur"
11314
11315 if test "$enableval" = yes; then
11316 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11317 else
11318 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11319 fi
11320
11321else
11322
11323 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11324 if test "x$LINE" != x ; then
11325 eval "DEFAULT_$LINE"
11326 else
11327 no_cache=1
11328 fi
11329
11330 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11331
11332fi;
11333
11334 eval "$ac_cv_use_ico_cur"
11335 if test "$no_cache" != 1; then
11336 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11337 fi
11338
11339 if test "$wxUSE_ICO_CUR" = yes; then
11340 echo "$as_me:$LINENO: result: yes" >&5
11341echo "${ECHO_T}yes" >&6
11342 else
11343 echo "$as_me:$LINENO: result: no" >&5
11344echo "${ECHO_T}no" >&6
11345 fi
11346
11347
11348fi
11349
11350
11351
ceec2216
RL
11352# Check whether --with-flavour or --without-flavour was given.
11353if test "${with_flavour+set}" = set; then
11354 withval="$with_flavour"
11355 WX_FLAVOUR="$withval"
11356fi;
11357
11358
11359
a848cd7e
SC
11360 enablestring=
11361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11362echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11363 no_cache=0
11364 # Check whether --enable-official_build or --disable-official_build was given.
11365if test "${enable_official_build+set}" = set; then
11366 enableval="$enable_official_build"
11367
11368 if test "$enableval" = yes; then
11369 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11370 else
11371 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11372 fi
11373
11374else
11375
11376 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11377 if test "x$LINE" != x ; then
11378 eval "DEFAULT_$LINE"
11379 else
11380 no_cache=1
11381 fi
11382
11383 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11384
11385fi;
11386
11387 eval "$ac_cv_use_official_build"
11388 if test "$no_cache" != 1; then
11389 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11390 fi
11391
11392 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11393 echo "$as_me:$LINENO: result: yes" >&5
11394echo "${ECHO_T}yes" >&6
11395 else
11396 echo "$as_me:$LINENO: result: no" >&5
11397echo "${ECHO_T}no" >&6
11398 fi
11399
11400# Check whether --enable-vendor or --disable-vendor was given.
11401if test "${enable_vendor+set}" = set; then
11402 enableval="$enable_vendor"
11403 VENDOR="$enableval"
11404fi;
11405if test "x$VENDOR" = "x"; then
11406 VENDOR="custom"
11407fi
11408
a848cd7e
SC
11409
11410
11411
11412 echo "saving argument cache $wx_arg_cache_file"
11413 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11414
11415
11416
11417echo "$as_me:$LINENO: checking for toolkit" >&5
11418echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11419
11420# In Wine, we need to default to MSW, not GTK or MOTIF
11421if test "$wxUSE_WINE" = "yes"; then
11422 DEFAULT_DEFAULT_wxUSE_GTK=0
11423 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11424 DEFAULT_DEFAULT_wxUSE_MSW=1
11425 wxUSE_SHARED=no
11426fi
11427
f597b41c 11428
a848cd7e
SC
11429if test "$wxUSE_GUI" = "yes"; then
11430
11431 if test "$USE_BEOS" = 1; then
11432 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11433echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11434 { (exit 1); exit 1; }; }
11435 fi
11436
11437 if test "$TOOLKIT_GIVEN" = 1; then
11438 for toolkit in `echo $ALL_TOOLKITS`; do
11439 var=wxUSE_$toolkit
11440 eval "value=\$${var}"
f34ca037
MW
11441 if test "x$value" = "xno"; then
11442 eval "$var=0"
11443 elif test "x$value" != "x"; then
11444 eval "$var=1"
11445 fi
11446
11447 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11448 eval "wx${toolkit}_VERSION=$value"
11449 fi
a848cd7e
SC
11450 done
11451 else
11452 for toolkit in `echo $ALL_TOOLKITS`; do
11453 if test "$has_toolkit_in_cache" != 1; then
11454 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11455 else
11456 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11457
11458 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11459 if test "x$version" != "x"; then
11460 eval "wx${toolkit}_VERSION=$version"
11461 fi
a848cd7e
SC
11462 fi
11463 eval "wxUSE_$toolkit=\$${var}"
11464 done
11465 fi
11466
11467 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11468 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11469 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11470
11471 case "${host}" in
11472 *-pc-os2_emx | *-pc-os2-emx )
11473 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11474 esac
11475
11476 case "$NUM_TOOLKITS" in
11477 1)
11478 ;;
11479 0)
11480 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11481echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11482 { (exit 1); exit 1; }; }
11483 ;;
11484 *)
11485 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11486echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11487 { (exit 1); exit 1; }; }
11488 esac
11489
f34ca037
MW
11490 # to be removed when --disable-gtk2 isn't needed
11491 if test "x$wxUSE_GTK2" = "xyes"; then
11492 wxGTK_VERSION=2
11493 elif test "x$wxUSE_GTK2" = "xno"; then
11494 wxGTK_VERSION=1
11495 fi
11496
a848cd7e
SC
11497 for toolkit in `echo $ALL_TOOLKITS`; do
11498 var=wxUSE_$toolkit
11499 eval "value=\$${var}"
11500 if test "x$value" != x; then
11501 cache_var=CACHE_$toolkit
11502 eval "cache=\$${cache_var}"
11503 if test "$cache" = 1; then
11504 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11505 eval "version=\$wx${toolkit}_VERSION"
11506 if test "x$version" != "x"; then
11507 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11508 fi
a848cd7e
SC
11509 fi
11510 if test "$value" = 1; then
11511 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11512 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11513echo "${ECHO_T}$toolkit_echo" >&6
11514 fi
11515 fi
11516 done
11517else
11518 if test "x$host_alias" != "x"; then
11519 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11520echo "${ECHO_T}base ($host_alias hosted) only" >&6
11521 else
11522 echo "$as_me:$LINENO: result: base only" >&5
11523echo "${ECHO_T}base only" >&6
11524 fi
11525fi
11526
11527wants_win32=0
11528doesnt_want_win32=0
11529case "${host}" in
11530 *-*-cygwin*)
11531 if test "$wxUSE_MSW" = 1 ; then
11532 wants_win32=1
7275146d 11533 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11534 else
11535 doesnt_want_win32=1
11536 fi
11537 ;;
11538 *-*-mingw*)
11539 wants_win32=1
11540 ;;
11541esac
11542
11543if test "$wxUSE_WINE" = "yes"; then
11544 wants_win32=1
11545 CC=winegcc
11546 CXX=wineg++
a848cd7e
SC
11547 LDFLAGS_GUI="-mwindows"
11548fi
11549
11550if test "$wants_win32" = 1 ; then
11551 USE_UNIX=0
11552 USE_WIN32=1
11553 cat >>confdefs.h <<\_ACEOF
11554#define __WIN32__ 1
11555_ACEOF
11556
11557 cat >>confdefs.h <<\_ACEOF
11558#define __WIN95__ 1
11559_ACEOF
11560
11561 cat >>confdefs.h <<\_ACEOF
11562#define __WINDOWS__ 1
11563_ACEOF
11564
11565 cat >>confdefs.h <<\_ACEOF
11566#define __GNUWIN32__ 1
11567_ACEOF
11568
11569 cat >>confdefs.h <<\_ACEOF
11570#define STRICT 1
11571_ACEOF
11572
11573 cat >>confdefs.h <<\_ACEOF
11574#define WINVER 0x0400
11575_ACEOF
11576
11577fi
11578if test "$doesnt_want_win32" = 1 ; then
11579 USE_UNIX=1
11580 USE_WIN32=0
11581fi
11582
11583if test "$USE_UNIX" = 1 ; then
11584 wxUSE_UNIX=yes
11585 cat >>confdefs.h <<\_ACEOF
11586#define __UNIX__ 1
11587_ACEOF
11588
11589fi
11590
11591
11592cat >confcache <<\_ACEOF
11593# This file is a shell script that caches the results of configure
11594# tests run on this system so they can be shared between configure
11595# scripts and configure runs, see configure's option --config-cache.
11596# It is not useful on other systems. If it contains results you don't
11597# want to keep, you may remove or edit it.
11598#
11599# config.status only pays attention to the cache file if you give it
11600# the --recheck option to rerun configure.
11601#
11602# `ac_cv_env_foo' variables (set or unset) will be overridden when
11603# loading this file, other *unset* `ac_cv_foo' will be assigned the
11604# following values.
11605
11606_ACEOF
11607
11608# The following way of writing the cache mishandles newlines in values,
11609# but we know of no workaround that is simple, portable, and efficient.
11610# So, don't put newlines in cache variables' values.
11611# Ultrix sh set writes to stderr and can't be redirected directly,
11612# and sets the high bit in the cache file unless we assign to the vars.
11613{
11614 (set) 2>&1 |
11615 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11616 *ac_space=\ *)
11617 # `set' does not quote correctly, so add quotes (double-quote
11618 # substitution turns \\\\ into \\, and sed turns \\ into \).
11619 sed -n \
ac1cb8d3
VS
11620 "s/'/'\\\\''/g;
11621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11622 ;;
11623 *)
11624 # `set' quotes correctly as required by POSIX, so do not add quotes.
11625 sed -n \
ac1cb8d3 11626 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11627 ;;
11628 esac;
11629} |
11630 sed '
11631 t clear
11632 : clear
11633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11634 t end
11635 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11636 : end' >>confcache
11637if diff $cache_file confcache >/dev/null 2>&1; then :; else
11638 if test -w $cache_file; then
11639 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11640 cat confcache >$cache_file
11641 else
11642 echo "not updating unwritable cache $cache_file"
11643 fi
11644fi
11645rm -f confcache
11646
a848cd7e 11647CFLAGS=${CFLAGS:=}
6dcfc289
DE
11648
11649
3006edc0 11650
6dcfc289 11651 ac_ext=c
a848cd7e
SC
11652ac_cpp='$CPP $CPPFLAGS'
11653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11655ac_compiler_gnu=$ac_cv_c_compiler_gnu
11656if test -n "$ac_tool_prefix"; then
11657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11658set dummy ${ac_tool_prefix}gcc; ac_word=$2
11659echo "$as_me:$LINENO: checking for $ac_word" >&5
11660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11661if test "${ac_cv_prog_CC+set}" = set; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11663else
11664 if test -n "$CC"; then
11665 ac_cv_prog_CC="$CC" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678done
11679done
11680
11681fi
11682fi
11683CC=$ac_cv_prog_CC
11684if test -n "$CC"; then
11685 echo "$as_me:$LINENO: result: $CC" >&5
11686echo "${ECHO_T}$CC" >&6
11687else
11688 echo "$as_me:$LINENO: result: no" >&5
11689echo "${ECHO_T}no" >&6
11690fi
11691
11692fi
11693if test -z "$ac_cv_prog_CC"; then
11694 ac_ct_CC=$CC
11695 # Extract the first word of "gcc", so it can be a program name with args.
11696set dummy gcc; ac_word=$2
11697echo "$as_me:$LINENO: checking for $ac_word" >&5
11698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
11702 if test -n "$ac_ct_CC"; then
11703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11704else
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_ac_ct_CC="gcc"
11713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11715 fi
11716done
11717done
11718
11719fi
11720fi
11721ac_ct_CC=$ac_cv_prog_ac_ct_CC
11722if test -n "$ac_ct_CC"; then
11723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11724echo "${ECHO_T}$ac_ct_CC" >&6
11725else
11726 echo "$as_me:$LINENO: result: no" >&5
11727echo "${ECHO_T}no" >&6
11728fi
11729
11730 CC=$ac_ct_CC
11731else
11732 CC="$ac_cv_prog_CC"
11733fi
11734
11735if test -z "$CC"; then
11736 if test -n "$ac_tool_prefix"; then
11737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11738set dummy ${ac_tool_prefix}cc; ac_word=$2
11739echo "$as_me:$LINENO: checking for $ac_word" >&5
11740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741if test "${ac_cv_prog_CC+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 if test -n "$CC"; then
11745 ac_cv_prog_CC="$CC" # Let the user override the test.
11746else
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_CC="${ac_tool_prefix}cc"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758done
11759done
11760
11761fi
11762fi
11763CC=$ac_cv_prog_CC
11764if test -n "$CC"; then
11765 echo "$as_me:$LINENO: result: $CC" >&5
11766echo "${ECHO_T}$CC" >&6
11767else
11768 echo "$as_me:$LINENO: result: no" >&5
11769echo "${ECHO_T}no" >&6
11770fi
11771
11772fi
11773if test -z "$ac_cv_prog_CC"; then
11774 ac_ct_CC=$CC
11775 # Extract the first word of "cc", so it can be a program name with args.
11776set dummy cc; ac_word=$2
11777echo "$as_me:$LINENO: checking for $ac_word" >&5
11778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 if test -n "$ac_ct_CC"; then
11783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_ac_ct_CC="cc"
11793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11795 fi
11796done
11797done
11798
11799fi
11800fi
11801ac_ct_CC=$ac_cv_prog_ac_ct_CC
11802if test -n "$ac_ct_CC"; then
11803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11804echo "${ECHO_T}$ac_ct_CC" >&6
11805else
11806 echo "$as_me:$LINENO: result: no" >&5
11807echo "${ECHO_T}no" >&6
11808fi
11809
11810 CC=$ac_ct_CC
11811else
11812 CC="$ac_cv_prog_CC"
11813fi
11814
11815fi
11816if test -z "$CC"; then
11817 # Extract the first word of "cc", so it can be a program name with args.
11818set dummy cc; ac_word=$2
11819echo "$as_me:$LINENO: checking for $ac_word" >&5
11820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11821if test "${ac_cv_prog_CC+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 if test -n "$CC"; then
11825 ac_cv_prog_CC="$CC" # Let the user override the test.
11826else
11827 ac_prog_rejected=no
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11836 ac_prog_rejected=yes
11837 continue
11838 fi
11839 ac_cv_prog_CC="cc"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844done
11845
11846if test $ac_prog_rejected = yes; then
11847 # We found a bogon in the path, so make sure we never use it.
11848 set dummy $ac_cv_prog_CC
11849 shift
11850 if test $# != 0; then
11851 # We chose a different compiler from the bogus one.
11852 # However, it has the same basename, so the bogon will be chosen
11853 # first if we set CC to just the basename; use the full file name.
11854 shift
11855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11856 fi
11857fi
11858fi
11859fi
11860CC=$ac_cv_prog_CC
11861if test -n "$CC"; then
11862 echo "$as_me:$LINENO: result: $CC" >&5
11863echo "${ECHO_T}$CC" >&6
11864else
11865 echo "$as_me:$LINENO: result: no" >&5
11866echo "${ECHO_T}no" >&6
11867fi
11868
11869fi
11870if test -z "$CC"; then
11871 if test -n "$ac_tool_prefix"; then
11872 for ac_prog in cl
11873 do
11874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11876echo "$as_me:$LINENO: checking for $ac_word" >&5
11877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11878if test "${ac_cv_prog_CC+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 if test -n "$CC"; then
11882 ac_cv_prog_CC="$CC" # Let the user override the test.
11883else
11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11893 break 2
11894 fi
11895done
11896done
11897
11898fi
11899fi
11900CC=$ac_cv_prog_CC
11901if test -n "$CC"; then
11902 echo "$as_me:$LINENO: result: $CC" >&5
11903echo "${ECHO_T}$CC" >&6
11904else
11905 echo "$as_me:$LINENO: result: no" >&5
11906echo "${ECHO_T}no" >&6
11907fi
11908
11909 test -n "$CC" && break
11910 done
11911fi
11912if test -z "$CC"; then
11913 ac_ct_CC=$CC
11914 for ac_prog in cl
11915do
11916 # Extract the first word of "$ac_prog", so it can be a program name with args.
11917set dummy $ac_prog; ac_word=$2
11918echo "$as_me:$LINENO: checking for $ac_word" >&5
11919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
11923 if test -n "$ac_ct_CC"; then
11924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11933 ac_cv_prog_ac_ct_CC="$ac_prog"
11934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937done
11938done
11939
11940fi
11941fi
11942ac_ct_CC=$ac_cv_prog_ac_ct_CC
11943if test -n "$ac_ct_CC"; then
11944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11945echo "${ECHO_T}$ac_ct_CC" >&6
11946else
11947 echo "$as_me:$LINENO: result: no" >&5
11948echo "${ECHO_T}no" >&6
11949fi
11950
11951 test -n "$ac_ct_CC" && break
11952done
11953
11954 CC=$ac_ct_CC
11955fi
11956
11957fi
11958
11959
11960test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11961See \`config.log' for more details." >&5
11962echo "$as_me: error: no acceptable C compiler found in \$PATH
11963See \`config.log' for more details." >&2;}
11964 { (exit 1); exit 1; }; }
11965
11966# Provide some information about the compiler.
11967echo "$as_me:$LINENO:" \
11968 "checking for C compiler version" >&5
11969ac_compiler=`set X $ac_compile; echo $2`
11970{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11971 (eval $ac_compiler --version </dev/null >&5) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }
11975{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11976 (eval $ac_compiler -v </dev/null >&5) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }
11980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11981 (eval $ac_compiler -V </dev/null >&5) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }
11985
11986cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992
11993int
11994main ()
11995{
11996
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001ac_clean_files_save=$ac_clean_files
12002ac_clean_files="$ac_clean_files a.out a.exe b.out"
12003# Try to create an executable without -o first, disregard a.out.
12004# It will help us diagnose broken compilers, and finding out an intuition
12005# of exeext.
ac1cb8d3
VS
12006echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12007echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12008ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12009if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12010 (eval $ac_link_default) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; then
12014 # Find the output, starting from the most likely. This scheme is
12015# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12016# resort.
12017
12018# Be careful to initialize this variable, since it used to be cached.
12019# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12020ac_cv_exeext=
12021# b.out is created by i960 compilers.
12022for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12023do
12024 test -f "$ac_file" || continue
12025 case $ac_file in
12026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12027 ;;
a848cd7e 12028 conftest.$ac_ext )
ac1cb8d3
VS
12029 # This is the source file.
12030 ;;
a848cd7e 12031 [ab].out )
ac1cb8d3
VS
12032 # We found the default executable, but exeext='' is most
12033 # certainly right.
12034 break;;
a848cd7e 12035 *.* )
ac1cb8d3
VS
12036 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12037 # FIXME: I believe we export ac_cv_exeext for Libtool,
12038 # but it would be cool to find out if it's true. Does anybody
12039 # maintain Libtool? --akim.
12040 export ac_cv_exeext
12041 break;;
a848cd7e 12042 * )
ac1cb8d3 12043 break;;
a848cd7e
SC
12044 esac
12045done
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12051See \`config.log' for more details." >&5
12052echo "$as_me: error: C compiler cannot create executables
12053See \`config.log' for more details." >&2;}
12054 { (exit 77); exit 77; }; }
12055fi
12056
12057ac_exeext=$ac_cv_exeext
12058echo "$as_me:$LINENO: result: $ac_file" >&5
12059echo "${ECHO_T}$ac_file" >&6
12060
12061# Check the compiler produces executables we can run. If not, either
12062# the compiler is broken, or we cross compile.
12063echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12064echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12065# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12066# If not cross compiling, check that we can run a simple program.
12067if test "$cross_compiling" != yes; then
12068 if { ac_try='./$ac_file'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 cross_compiling=no
12075 else
12076 if test "$cross_compiling" = maybe; then
12077 cross_compiling=yes
12078 else
12079 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12080If you meant to cross compile, use \`--host'.
12081See \`config.log' for more details." >&5
12082echo "$as_me: error: cannot run C compiled programs.
12083If you meant to cross compile, use \`--host'.
12084See \`config.log' for more details." >&2;}
12085 { (exit 1); exit 1; }; }
12086 fi
12087 fi
12088fi
12089echo "$as_me:$LINENO: result: yes" >&5
12090echo "${ECHO_T}yes" >&6
12091
12092rm -f a.out a.exe conftest$ac_cv_exeext b.out
12093ac_clean_files=$ac_clean_files_save
12094# Check the compiler produces executables we can run. If not, either
12095# the compiler is broken, or we cross compile.
12096echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12097echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12098echo "$as_me:$LINENO: result: $cross_compiling" >&5
12099echo "${ECHO_T}$cross_compiling" >&6
12100
12101echo "$as_me:$LINENO: checking for suffix of executables" >&5
12102echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; then
12108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12109# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12110# work properly (i.e., refer to `conftest.exe'), while it won't with
12111# `rm'.
12112for ac_file in conftest.exe conftest conftest.*; do
12113 test -f "$ac_file" || continue
12114 case $ac_file in
12115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12117 export ac_cv_exeext
12118 break;;
a848cd7e
SC
12119 * ) break;;
12120 esac
12121done
12122else
12123 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12124See \`config.log' for more details." >&5
12125echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12126See \`config.log' for more details." >&2;}
12127 { (exit 1); exit 1; }; }
12128fi
12129
12130rm -f conftest$ac_cv_exeext
12131echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12132echo "${ECHO_T}$ac_cv_exeext" >&6
12133
12134rm -f conftest.$ac_ext
12135EXEEXT=$ac_cv_exeext
12136ac_exeext=$EXEEXT
12137echo "$as_me:$LINENO: checking for suffix of object files" >&5
12138echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12139if test "${ac_cv_objext+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
12142 cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148
12149int
12150main ()
12151{
12152
12153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.o conftest.obj
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; then
12163 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12164 case $ac_file in
12165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12167 break;;
12168 esac
12169done
12170else
12171 echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12175See \`config.log' for more details." >&5
12176echo "$as_me: error: cannot compute suffix of object files: cannot compile
12177See \`config.log' for more details." >&2;}
12178 { (exit 1); exit 1; }; }
12179fi
12180
12181rm -f conftest.$ac_cv_objext conftest.$ac_ext
12182fi
12183echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12184echo "${ECHO_T}$ac_cv_objext" >&6
12185OBJEXT=$ac_cv_objext
12186ac_objext=$OBJEXT
12187echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12188echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12189if test "${ac_cv_c_compiler_gnu+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198
12199int
12200main ()
12201{
12202#ifndef __GNUC__
12203 choke me
12204#endif
12205
12206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12212 (eval $ac_compile) 2>conftest.er1
a848cd7e 12213 ac_status=$?
ac1cb8d3
VS
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
a848cd7e
SC
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
ca5c6ac3 12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_compiler_gnu=yes
12232else
12233 echo "$as_me: failed program was:" >&5
12234sed 's/^/| /' conftest.$ac_ext >&5
12235
12236ac_compiler_gnu=no
12237fi
ac1cb8d3 12238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12239ac_cv_c_compiler_gnu=$ac_compiler_gnu
12240
12241fi
12242echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12243echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12244GCC=`test $ac_compiler_gnu = yes && echo yes`
12245ac_test_CFLAGS=${CFLAGS+set}
12246ac_save_CFLAGS=$CFLAGS
15291213 12247CFLAGS="-g"
a848cd7e
SC
12248echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12249echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12250if test "${ac_cv_prog_cc_g+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
12253 cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h. */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */
12259
12260int
12261main ()
12262{
12263
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext
12269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12270 (eval $ac_compile) 2>conftest.er1
a848cd7e 12271 ac_status=$?
ac1cb8d3
VS
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
a848cd7e
SC
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
ca5c6ac3 12277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_prog_cc_g=yes
12290else
12291 echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294ac_cv_prog_cc_g=no
12295fi
ac1cb8d3 12296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12297fi
12298echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12299echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12300if test "$ac_test_CFLAGS" = set; then
12301 CFLAGS=$ac_save_CFLAGS
12302elif test $ac_cv_prog_cc_g = yes; then
12303 if test "$GCC" = yes; then
12304 CFLAGS="-g -O2"
12305 else
12306 CFLAGS="-g"
12307 fi
12308else
12309 if test "$GCC" = yes; then
12310 CFLAGS="-O2"
12311 else
12312 CFLAGS=
12313 fi
12314fi
12315echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12316echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12317if test "${ac_cv_prog_cc_stdc+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319else
12320 ac_cv_prog_cc_stdc=no
12321ac_save_CC=$CC
12322cat >conftest.$ac_ext <<_ACEOF
12323/* confdefs.h. */
12324_ACEOF
12325cat confdefs.h >>conftest.$ac_ext
12326cat >>conftest.$ac_ext <<_ACEOF
12327/* end confdefs.h. */
12328#include <stdarg.h>
12329#include <stdio.h>
12330#include <sys/types.h>
12331#include <sys/stat.h>
12332/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12333struct buf { int x; };
12334FILE * (*rcsopen) (struct buf *, struct stat *, int);
12335static char *e (p, i)
12336 char **p;
12337 int i;
12338{
12339 return p[i];
12340}
12341static char *f (char * (*g) (char **, int), char **p, ...)
12342{
12343 char *s;
12344 va_list v;
12345 va_start (v,p);
12346 s = g (p, va_arg (v,int));
12347 va_end (v);
12348 return s;
12349}
ac1cb8d3
VS
12350
12351/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12352 function prototypes and stuff, but not '\xHH' hex character constants.
12353 These don't provoke an error unfortunately, instead are silently treated
12354 as 'x'. The following induces an error, until -std1 is added to get
12355 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12356 array size at least. It's necessary to write '\x00'==0 to get something
12357 that's true only with -std1. */
12358int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12359
a848cd7e
SC
12360int test (int i, double x);
12361struct s1 {int (*f) (int a);};
12362struct s2 {int (*f) (double a);};
12363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12364int argc;
12365char **argv;
12366int
12367main ()
12368{
12369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374# Don't try gcc -ansi; that turns off useful extensions and
12375# breaks some systems' header files.
12376# AIX -qlanglvl=ansi
12377# Ultrix and OSF/1 -std1
12378# HP-UX 10.20 and later -Ae
12379# HP-UX older versions -Aa -D_HPUX_SOURCE
12380# SVR4 -Xc -D__EXTENSIONS__
12381for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12382do
12383 CC="$ac_save_CC $ac_arg"
12384 rm -f conftest.$ac_objext
12385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12386 (eval $ac_compile) 2>conftest.er1
a848cd7e 12387 ac_status=$?
ac1cb8d3
VS
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
a848cd7e
SC
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
ca5c6ac3 12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_cv_prog_cc_stdc=$ac_arg
12406break
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411fi
ac1cb8d3 12412rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12413done
12414rm -f conftest.$ac_ext conftest.$ac_objext
12415CC=$ac_save_CC
12416
12417fi
12418
12419case "x$ac_cv_prog_cc_stdc" in
12420 x|xno)
12421 echo "$as_me:$LINENO: result: none needed" >&5
12422echo "${ECHO_T}none needed" >&6 ;;
12423 *)
12424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12425echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12426 CC="$CC $ac_cv_prog_cc_stdc" ;;
12427esac
12428
12429# Some people use a C++ compiler to compile C. Since we use `exit',
12430# in C++ we need to declare it. In case someone uses the same compiler
12431# for both compiling C and C++ we need to have the C++ compiler decide
12432# the declaration of exit, since it's the most demanding environment.
12433cat >conftest.$ac_ext <<_ACEOF
12434#ifndef __cplusplus
12435 choke me
12436#endif
12437_ACEOF
12438rm -f conftest.$ac_objext
12439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12440 (eval $ac_compile) 2>conftest.er1
a848cd7e 12441 ac_status=$?
ac1cb8d3
VS
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
a848cd7e
SC
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
ca5c6ac3 12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 for ac_declaration in \
ac1cb8d3 12460 '' \
a848cd7e
SC
12461 'extern "C" void std::exit (int) throw (); using std::exit;' \
12462 'extern "C" void std::exit (int); using std::exit;' \
12463 'extern "C" void exit (int) throw ();' \
12464 'extern "C" void exit (int);' \
12465 'void exit (int);'
12466do
12467 cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
de59c161 12473$ac_declaration
ac1cb8d3 12474#include <stdlib.h>
a848cd7e
SC
12475int
12476main ()
12477{
12478exit (42);
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12485 (eval $ac_compile) 2>conftest.er1
a848cd7e 12486 ac_status=$?
ac1cb8d3
VS
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
a848cd7e
SC
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
ca5c6ac3 12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 :
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509continue
12510fi
ac1cb8d3 12511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12512 cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_declaration
12519int
12520main ()
12521{
12522exit (42);
12523 ;
12524 return 0;
12525}
12526_ACEOF
12527rm -f conftest.$ac_objext
12528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12529 (eval $ac_compile) 2>conftest.er1
a848cd7e 12530 ac_status=$?
ac1cb8d3
VS
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
a848cd7e
SC
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
ca5c6ac3 12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 break
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553fi
ac1cb8d3 12554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12555done
12556rm -f conftest*
12557if test -n "$ac_declaration"; then
12558 echo '#ifdef __cplusplus' >>confdefs.h
12559 echo $ac_declaration >>confdefs.h
12560 echo '#endif' >>confdefs.h
12561fi
12562
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567fi
ac1cb8d3 12568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12569ac_ext=c
12570ac_cpp='$CPP $CPPFLAGS'
12571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12573ac_compiler_gnu=$ac_cv_c_compiler_gnu
12574
ab0ad5f1
VZ
12575
12576
12577 ac_ext=c
12578ac_cpp='$CPP $CPPFLAGS'
12579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582
12583 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12584echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12585if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587else
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594
12595int
12596main ()
12597{
12598
12599 #ifndef __INTEL_COMPILER
12600 choke me
12601 #endif
12602
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>conftest.er1
12610 ac_status=$?
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
ca5c6ac3 12616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12629else
12630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633bakefile_cv_c_compiler___INTEL_COMPILER=no
12634
12635fi
12636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637
12638
12639fi
12640echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12641echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12642 ac_ext=c
12643ac_cpp='$CPP $CPPFLAGS'
12644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12649 :; INTELCC=yes
12650 else
12651 :;
12652 fi
12653
12654
12655 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12656 if test "xCC" = "xC"; then
12657 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12658echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12659if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662 cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668
12669int
12670main ()
12671{
12672
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677rm -f conftest.$ac_objext conftest.$ac_ext.o
12678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12679 (eval $ac_compile) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; then
12683 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12684 case $ac_file in
12685 conftest.$ac_ext.o)
0093c2fc 12686 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12687 ;;
12688 *)
12689 ;;
12690 esac
12691done
12692else
12693 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12694See \`config.log' for more details." >&5
12695echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12696See \`config.log' for more details." >&2;}
12697 { (exit 1); exit 1; }; }
12698
12699fi
12700
12701rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12702
12703fi
0093c2fc
VZ
12704echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12705echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12706if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12707 if test "c" = "c"; then
0093c2fc 12708 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12709 fi
12710 if test "c" = "cxx"; then
0093c2fc 12711 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12712 fi
12713fi
12714
0093c2fc 12715 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12716 unset ac_cv_prog_cc_g
12717 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12718ac_save_CFLAGS=$CFLAGS
15291213 12719CFLAGS="-g"
480ccd21
DE
12720echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12721echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12722if test "${ac_cv_prog_cc_g+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731
12732int
12733main ()
12734{
12735
12736 ;
12737 return 0;
12738}
12739_ACEOF
12740rm -f conftest.$ac_objext
12741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
ca5c6ac3 12749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_prog_cc_g=yes
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766ac_cv_prog_cc_g=no
12767fi
12768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769fi
12770echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12771echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12772if test "$ac_test_CFLAGS" = set; then
12773 CFLAGS=$ac_save_CFLAGS
12774elif test $ac_cv_prog_cc_g = yes; then
12775 if test "$GCC" = yes; then
12776 CFLAGS="-g -O2"
12777 else
12778 CFLAGS="-g"
12779 fi
12780else
12781 if test "$GCC" = yes; then
12782 CFLAGS="-O2"
12783 else
12784 CFLAGS=
12785 fi
12786fi
3006edc0 12787 fi
ab0ad5f1 12788 fi
3006edc0
VZ
12789
12790 case `uname -s` in
12791 AIX*)
12792 ac_ext=c
12793ac_cpp='$CPP $CPPFLAGS'
12794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796ac_compiler_gnu=$ac_cv_c_compiler_gnu
12797
12798echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12799echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12800if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809
12810int
12811main ()
12812{
12813#ifndef __xlC__
12814 choke me
12815#endif
12816
12817 ;
12818 return 0;
12819}
12820_ACEOF
12821rm -f conftest.$ac_objext
12822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
ca5c6ac3 12830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
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); }; } &&
12836 { ac_try='test -s conftest.$ac_objext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
0093c2fc 12842 bakefile_compiler_xlc=yes
3006edc0
VZ
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
0093c2fc 12847bakefile_compiler_xlc=no
3006edc0
VZ
12848fi
12849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12850 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12851
12852fi
0093c2fc
VZ
12853echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12854echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12855
0093c2fc 12856XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12857ac_ext=c
12858ac_cpp='$CPP $CPPFLAGS'
12859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12861ac_compiler_gnu=$ac_cv_c_compiler_gnu
12862
12863
12864 ;;
12865
12866 Darwin)
12867 ac_ext=c
95986553
DE
12868ac_cpp='$CPP $CPPFLAGS'
12869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872
12873echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12874echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12875if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878 cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884
12885int
12886main ()
12887{
12888#ifndef __MWERKS__
12889 choke me
12890#endif
12891
12892 ;
12893 return 0;
12894}
12895_ACEOF
12896rm -f conftest.$ac_objext
12897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898 (eval $ac_compile) 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
ca5c6ac3 12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 bakefile_compiler_mwerks=yes
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922bakefile_compiler_mwerks=no
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12926
12927fi
12928echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12929echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12930
0e6fa1d9 12931MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12932ac_ext=c
12933ac_cpp='$CPP $CPPFLAGS'
12934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938
3006edc0 12939 ac_ext=c
9273ffba
DE
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12946echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12947if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957int
12958main ()
12959{
12960#ifndef __xlC__
12961 choke me
12962#endif
12963
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
ca5c6ac3 12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
0093c2fc 12989 bakefile_compiler_xlc=yes
9273ffba
DE
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
0093c2fc 12994bakefile_compiler_xlc=no
9273ffba
DE
12995fi
12996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12997 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12998
12999fi
0093c2fc
VZ
13000echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13001echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13002
0093c2fc 13003XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13004ac_ext=c
13005ac_cpp='$CPP $CPPFLAGS'
13006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13008ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009
13010
3006edc0
VZ
13011 ;;
13012
13013 IRIX*)
a848cd7e 13014
6dcfc289 13015
0ad5d837
VZ
13016 ac_ext=c
13017ac_cpp='$CPP $CPPFLAGS'
13018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13020ac_compiler_gnu=$ac_cv_c_compiler_gnu
13021
13022 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13023echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13024if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
13034int
13035main ()
13036{
13037
13038 #ifndef _SGI_COMPILER_VERSION
13039 choke me
13040 #endif
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
ca5c6ac3 13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13068else
13069 echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13073
13074fi
13075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13076
13077
13078fi
13079echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13080echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13081 ac_ext=c
13082ac_cpp='$CPP $CPPFLAGS'
13083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13085ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086
13087 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13088 :; SGICC=yes
13089 else
13090 :;
13091 fi
13092
13093
3006edc0
VZ
13094 ;;
13095
0093c2fc 13096 HP-UX*)
3006edc0
VZ
13097
13098
13099 ac_ext=c
13100ac_cpp='$CPP $CPPFLAGS'
13101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104
0093c2fc
VZ
13105 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13106echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13107if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else
13110 cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
13116
13117int
13118main ()
13119{
13120
0093c2fc 13121 #ifndef __HP_cc
3006edc0
VZ
13122 choke me
13123 #endif
13124
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext
13130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
ca5c6ac3 13138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
0093c2fc 13150 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
0093c2fc 13155bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13156
13157fi
13158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159
13160
13161fi
0093c2fc
VZ
13162echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13163echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13164 ac_ext=c
13165ac_cpp='$CPP $CPPFLAGS'
13166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
0093c2fc
VZ
13170 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13171 :; HPCC=yes
a1aa0349
VZ
13172 else
13173 :;
13174 fi
13175
13176
13177 ;;
13178
0093c2fc 13179 OSF1)
a1aa0349
VZ
13180
13181
13182 ac_ext=c
13183ac_cpp='$CPP $CPPFLAGS'
13184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186ac_compiler_gnu=$ac_cv_c_compiler_gnu
13187
0093c2fc
VZ
13188 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13189echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13190if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199
13200int
13201main ()
13202{
13203
0093c2fc 13204 #ifndef __DECC
a1aa0349
VZ
13205 choke me
13206 #endif
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
ca5c6ac3 13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
0093c2fc 13233 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
0093c2fc 13238bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13239
13240fi
13241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13242
13243
13244fi
0093c2fc
VZ
13245echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13246echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13247 ac_ext=c
13248ac_cpp='$CPP $CPPFLAGS'
13249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251ac_compiler_gnu=$ac_cv_c_compiler_gnu
13252
0093c2fc
VZ
13253 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13254 :; COMPAQCC=yes
13255 else
13256 :;
13257 fi
13258
13259
13260 ;;
13261
13262 SunOS)
13263
13264
13265 ac_ext=c
13266ac_cpp='$CPP $CPPFLAGS'
13267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269ac_compiler_gnu=$ac_cv_c_compiler_gnu
13270
13271 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13272echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13273if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
13276 cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282
13283int
13284main ()
13285{
13286
13287 #ifndef __SUNPRO_C
13288 choke me
13289 #endif
13290
13291 ;
13292 return 0;
13293}
13294_ACEOF
13295rm -f conftest.$ac_objext
13296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
ca5c6ac3 13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 bakefile_cv_c_compiler___SUNPRO_C=yes
13317else
13318 echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321bakefile_cv_c_compiler___SUNPRO_C=no
13322
13323fi
13324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325
13326
13327fi
13328echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13329echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13330 ac_ext=c
13331ac_cpp='$CPP $CPPFLAGS'
13332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334ac_compiler_gnu=$ac_cv_c_compiler_gnu
13335
13336 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13337 :; SUNCC=yes
3006edc0
VZ
13338 else
13339 :;
13340 fi
13341
13342
13343 ;;
13344 esac
ab0ad5f1 13345 fi
a9e5b1f0
MW
13346
13347
3006edc0 13348
a848cd7e
SC
13349ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13355echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13356# On Suns, sometimes $CPP names a directory.
13357if test -n "$CPP" && test -d "$CPP"; then
13358 CPP=
13359fi
13360if test -z "$CPP"; then
13361 if test "${ac_cv_prog_CPP+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 # Double quotes because CPP needs to be expanded
13365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13366 do
13367 ac_preproc_ok=false
13368for ac_c_preproc_warn_flag in '' yes
13369do
13370 # Use a header file that comes with gcc, so configuring glibc
13371 # with a fresh cross-compiler works.
13372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13373 # <limits.h> exists even on freestanding compilers.
13374 # On the NeXT, cc -E runs the code through the compiler's parser,
13375 # not just through cpp. "Syntax error" is here to catch this case.
13376 cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382#ifdef __STDC__
13383# include <limits.h>
13384#else
13385# include <assert.h>
13386#endif
ac1cb8d3 13387 Syntax error
a848cd7e
SC
13388_ACEOF
13389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } >/dev/null; then
13397 if test -s conftest.err; then
13398 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13400 else
13401 ac_cpp_err=
13402 fi
13403else
13404 ac_cpp_err=yes
13405fi
13406if test -z "$ac_cpp_err"; then
13407 :
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 # Broken: fails on valid input.
13413continue
13414fi
13415rm -f conftest.err conftest.$ac_ext
13416
13417 # OK, works on sane cases. Now check whether non-existent headers
13418 # can be detected and how.
13419 cat >conftest.$ac_ext <<_ACEOF
13420/* confdefs.h. */
13421_ACEOF
13422cat confdefs.h >>conftest.$ac_ext
13423cat >>conftest.$ac_ext <<_ACEOF
13424/* end confdefs.h. */
13425#include <ac_nonexistent.h>
13426_ACEOF
13427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null; then
13435 if test -s conftest.err; then
13436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13438 else
13439 ac_cpp_err=
13440 fi
13441else
13442 ac_cpp_err=yes
13443fi
13444if test -z "$ac_cpp_err"; then
13445 # Broken: success on invalid input.
13446continue
13447else
13448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 # Passes both tests.
13452ac_preproc_ok=:
13453break
13454fi
13455rm -f conftest.err conftest.$ac_ext
13456
13457done
13458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459rm -f conftest.err conftest.$ac_ext
13460if $ac_preproc_ok; then
13461 break
13462fi
13463
13464 done
13465 ac_cv_prog_CPP=$CPP
13466
13467fi
13468 CPP=$ac_cv_prog_CPP
13469else
13470 ac_cv_prog_CPP=$CPP
13471fi
13472echo "$as_me:$LINENO: result: $CPP" >&5
13473echo "${ECHO_T}$CPP" >&6
13474ac_preproc_ok=false
13475for ac_c_preproc_warn_flag in '' yes
13476do
13477 # Use a header file that comes with gcc, so configuring glibc
13478 # with a fresh cross-compiler works.
13479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480 # <limits.h> exists even on freestanding compilers.
13481 # On the NeXT, cc -E runs the code through the compiler's parser,
13482 # not just through cpp. "Syntax error" is here to catch this case.
13483 cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489#ifdef __STDC__
13490# include <limits.h>
13491#else
13492# include <assert.h>
13493#endif
ac1cb8d3 13494 Syntax error
a848cd7e
SC
13495_ACEOF
13496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } >/dev/null; then
13504 if test -s conftest.err; then
13505 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13507 else
13508 ac_cpp_err=
13509 fi
13510else
13511 ac_cpp_err=yes
13512fi
13513if test -z "$ac_cpp_err"; then
13514 :
13515else
13516 echo "$as_me: failed program was:" >&5
13517sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 # Broken: fails on valid input.
13520continue
13521fi
13522rm -f conftest.err conftest.$ac_ext
13523
13524 # OK, works on sane cases. Now check whether non-existent headers
13525 # can be detected and how.
13526 cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h. */
13532#include <ac_nonexistent.h>
13533_ACEOF
13534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } >/dev/null; then
13542 if test -s conftest.err; then
13543 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13545 else
13546 ac_cpp_err=
13547 fi
13548else
13549 ac_cpp_err=yes
13550fi
13551if test -z "$ac_cpp_err"; then
13552 # Broken: success on invalid input.
13553continue
13554else
13555 echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558 # Passes both tests.
13559ac_preproc_ok=:
13560break
13561fi
13562rm -f conftest.err conftest.$ac_ext
13563
13564done
13565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13566rm -f conftest.err conftest.$ac_ext
13567if $ac_preproc_ok; then
13568 :
13569else
13570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13571See \`config.log' for more details." >&5
13572echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13573See \`config.log' for more details." >&2;}
13574 { (exit 1); exit 1; }; }
13575fi
13576
13577ac_ext=c
13578ac_cpp='$CPP $CPPFLAGS'
13579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581ac_compiler_gnu=$ac_cv_c_compiler_gnu
13582
13583
13584echo "$as_me:$LINENO: checking for egrep" >&5
13585echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13586if test "${ac_cv_prog_egrep+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13590 then ac_cv_prog_egrep='grep -E'
13591 else ac_cv_prog_egrep='egrep'
13592 fi
13593fi
13594echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13595echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13596 EGREP=$ac_cv_prog_egrep
13597
13598
13599if test $ac_cv_c_compiler_gnu = yes; then
13600 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13601echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13602if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605 ac_pattern="Autoconf.*'x'"
13606 cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612#include <sgtty.h>
13613Autoconf TIOCGETP
13614_ACEOF
13615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13617 ac_cv_prog_gcc_traditional=yes
13618else
13619 ac_cv_prog_gcc_traditional=no
13620fi
13621rm -f conftest*
13622
13623
13624 if test $ac_cv_prog_gcc_traditional = no; then
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631#include <termio.h>
13632Autoconf TCGETA
13633_ACEOF
13634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13635 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13636 ac_cv_prog_gcc_traditional=yes
13637fi
13638rm -f conftest*
13639
13640 fi
13641fi
13642echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13643echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13644 if test $ac_cv_prog_gcc_traditional = yes; then
13645 CC="$CC -traditional"
13646 fi
13647fi
13648
13649
a848cd7e
SC
13650ac_ext=cc
13651ac_cpp='$CXXCPP $CPPFLAGS'
13652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13655
13656
13657CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13658
13659
3006edc0 13660
6dcfc289 13661 ac_ext=cc
a848cd7e
SC
13662ac_cpp='$CXXCPP $CPPFLAGS'
13663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13666if test -n "$ac_tool_prefix"; then
13667 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13668 do
13669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13671echo "$as_me:$LINENO: checking for $ac_word" >&5
13672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13673if test "${ac_cv_prog_CXX+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676 if test -n "$CXX"; then
13677 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690done
13691done
13692
13693fi
13694fi
13695CXX=$ac_cv_prog_CXX
13696if test -n "$CXX"; then
13697 echo "$as_me:$LINENO: result: $CXX" >&5
13698echo "${ECHO_T}$CXX" >&6
13699else
13700 echo "$as_me:$LINENO: result: no" >&5
13701echo "${ECHO_T}no" >&6
13702fi
13703
13704 test -n "$CXX" && break
13705 done
13706fi
13707if test -z "$CXX"; then
13708 ac_ct_CXX=$CXX
13709 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13710do
13711 # Extract the first word of "$ac_prog", so it can be a program name with args.
13712set dummy $ac_prog; ac_word=$2
13713echo "$as_me:$LINENO: checking for $ac_word" >&5
13714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13715if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717else
13718 if test -n "$ac_ct_CXX"; then
13719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13720else
13721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
13727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13728 ac_cv_prog_ac_ct_CXX="$ac_prog"
13729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 break 2
13731 fi
13732done
13733done
13734
13735fi
13736fi
13737ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13738if test -n "$ac_ct_CXX"; then
13739 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13740echo "${ECHO_T}$ac_ct_CXX" >&6
13741else
13742 echo "$as_me:$LINENO: result: no" >&5
13743echo "${ECHO_T}no" >&6
13744fi
13745
13746 test -n "$ac_ct_CXX" && break
13747done
13748test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13749
13750 CXX=$ac_ct_CXX
13751fi
13752
13753
13754# Provide some information about the compiler.
13755echo "$as_me:$LINENO:" \
13756 "checking for C++ compiler version" >&5
13757ac_compiler=`set X $ac_compile; echo $2`
13758{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13759 (eval $ac_compiler --version </dev/null >&5) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }
13763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13764 (eval $ac_compiler -v </dev/null >&5) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }
13768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13769 (eval $ac_compiler -V </dev/null >&5) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }
13773
13774echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13775echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13776if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778else
13779 cat >conftest.$ac_ext <<_ACEOF
13780/* confdefs.h. */
13781_ACEOF
13782cat confdefs.h >>conftest.$ac_ext
13783cat >>conftest.$ac_ext <<_ACEOF
13784/* end confdefs.h. */
13785
13786int
13787main ()
13788{
13789#ifndef __GNUC__
13790 choke me
13791#endif
13792
13793 ;
13794 return 0;
13795}
13796_ACEOF
13797rm -f conftest.$ac_objext
13798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13799 (eval $ac_compile) 2>conftest.er1
a848cd7e 13800 ac_status=$?
ac1cb8d3
VS
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
a848cd7e
SC
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
ca5c6ac3 13806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_compiler_gnu=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823ac_compiler_gnu=no
13824fi
ac1cb8d3 13825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13826ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13827
13828fi
13829echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13830echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13831GXX=`test $ac_compiler_gnu = yes && echo yes`
13832ac_test_CXXFLAGS=${CXXFLAGS+set}
13833ac_save_CXXFLAGS=$CXXFLAGS
13834CXXFLAGS="-g"
13835echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13836echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13837if test "${ac_cv_prog_cxx_g+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839else
13840 cat >conftest.$ac_ext <<_ACEOF
13841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
13846
13847int
13848main ()
13849{
13850
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext
13856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13857 (eval $ac_compile) 2>conftest.er1
a848cd7e 13858 ac_status=$?
ac1cb8d3
VS
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
a848cd7e
SC
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
ca5c6ac3 13864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_prog_cxx_g=yes
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881ac_cv_prog_cxx_g=no
13882fi
ac1cb8d3 13883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13884fi
13885echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13886echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13887if test "$ac_test_CXXFLAGS" = set; then
13888 CXXFLAGS=$ac_save_CXXFLAGS
13889elif test $ac_cv_prog_cxx_g = yes; then
13890 if test "$GXX" = yes; then
15291213 13891 CXXFLAGS="-g -O2"
a848cd7e 13892 else
15291213 13893 CXXFLAGS="-g"
a848cd7e
SC
13894 fi
13895else
13896 if test "$GXX" = yes; then
13897 CXXFLAGS="-O2"
13898 else
13899 CXXFLAGS=
13900 fi
13901fi
13902for ac_declaration in \
ac1cb8d3 13903 '' \
a848cd7e
SC
13904 'extern "C" void std::exit (int) throw (); using std::exit;' \
13905 'extern "C" void std::exit (int); using std::exit;' \
13906 'extern "C" void exit (int) throw ();' \
13907 'extern "C" void exit (int);' \
13908 'void exit (int);'
13909do
13910 cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
de59c161 13916$ac_declaration
ac1cb8d3 13917#include <stdlib.h>
a848cd7e
SC
13918int
13919main ()
13920{
13921exit (42);
13922 ;
13923 return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext
13927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13928 (eval $ac_compile) 2>conftest.er1
a848cd7e 13929 ac_status=$?
ac1cb8d3
VS
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
a848cd7e
SC
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
ca5c6ac3 13935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 :
13948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952continue
13953fi
ac1cb8d3 13954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13955 cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h. */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h. */
13961$ac_declaration
13962int
13963main ()
13964{
13965exit (42);
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970rm -f conftest.$ac_objext
13971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13972 (eval $ac_compile) 2>conftest.er1
a848cd7e 13973 ac_status=$?
ac1cb8d3
VS
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
a848cd7e
SC
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
ca5c6ac3 13979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 break
13992else
13993 echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996fi
ac1cb8d3 13997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13998done
13999rm -f conftest*
14000if test -n "$ac_declaration"; then
14001 echo '#ifdef __cplusplus' >>confdefs.h
14002 echo $ac_declaration >>confdefs.h
14003 echo '#endif' >>confdefs.h
14004fi
14005
14006ac_ext=cc
14007ac_cpp='$CXXCPP $CPPFLAGS'
14008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14011
ab0ad5f1
VZ
14012
14013
14014 ac_ext=cc
14015ac_cpp='$CXXCPP $CPPFLAGS'
14016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14019
14020 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14021echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14022if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024else
14025 cat >conftest.$ac_ext <<_ACEOF
14026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
14031
14032int
14033main ()
14034{
14035
14036 #ifndef __INTEL_COMPILER
14037 choke me
14038 #endif
14039
14040 ;
14041 return 0;
14042}
14043_ACEOF
14044rm -f conftest.$ac_objext
14045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
ca5c6ac3 14053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14066else
14067 echo "$as_me: failed program was:" >&5
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
14070bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14071
14072fi
14073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074
14075
14076fi
14077echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14078echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14079 ac_ext=cc
14080ac_cpp='$CXXCPP $CPPFLAGS'
14081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14084
14085 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14086 :; INTELCXX=yes
14087 else
14088 :;
14089 fi
14090
14091
3006edc0
VZ
14092 if test "x$GCXX" != "xyes"; then
14093 if test "xCXX" = "xC"; then
14094 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14095echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14096if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098else
14099 cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105
14106int
14107main ()
14108{
14109
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext conftest.$ac_ext.o
14115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; then
14120 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14121 case $ac_file in
14122 conftest.$ac_ext.o)
0093c2fc 14123 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14124 ;;
14125 *)
14126 ;;
14127 esac
14128done
14129else
14130 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14131See \`config.log' for more details." >&5
14132echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14133See \`config.log' for more details." >&2;}
14134 { (exit 1); exit 1; }; }
14135
14136fi
14137
14138rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14139
14140fi
0093c2fc
VZ
14141echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14142echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14143if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14144 if test "cxx" = "c"; then
0093c2fc 14145 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14146 fi
14147 if test "cxx" = "cxx"; then
0093c2fc 14148 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14149 fi
14150fi
14151
0093c2fc 14152 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14153 unset ac_cv_prog_cc_g
14154 ac_test_CFLAGS=${CFLAGS+set}
14155ac_save_CFLAGS=$CFLAGS
15291213 14156CFLAGS="-g"
3006edc0
VZ
14157echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14158echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14159if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161else
14162 cat >conftest.$ac_ext <<_ACEOF
14163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
14167/* end confdefs.h. */
14168
14169int
14170main ()
14171{
14172
14173 ;
14174 return 0;
14175}
14176_ACEOF
14177rm -f conftest.$ac_objext
14178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179 (eval $ac_compile) 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
ca5c6ac3 14186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest.$ac_objext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
3006edc0 14198 ac_cv_prog_cc_g=yes
480ccd21
DE
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
3006edc0 14203ac_cv_prog_cc_g=no
480ccd21
DE
14204fi
14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14206fi
3006edc0
VZ
14207echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14208echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14209if test "$ac_test_CFLAGS" = set; then
14210 CFLAGS=$ac_save_CFLAGS
14211elif test $ac_cv_prog_cc_g = yes; then
14212 if test "$GCC" = yes; then
14213 CFLAGS="-g -O2"
480ccd21 14214 else
3006edc0 14215 CFLAGS="-g"
480ccd21
DE
14216 fi
14217else
3006edc0
VZ
14218 if test "$GCC" = yes; then
14219 CFLAGS="-O2"
480ccd21 14220 else
3006edc0 14221 CFLAGS=
480ccd21
DE
14222 fi
14223fi
3006edc0 14224 fi
ab0ad5f1 14225 fi
3006edc0
VZ
14226
14227 case `uname -s` in
14228 AIX*)
14229 ac_ext=cc
14230ac_cpp='$CXXCPP $CPPFLAGS'
14231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14234
14235echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14236echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14237if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246
14247int
14248main ()
14249{
14250#ifndef __xlC__
14251 choke me
14252#endif
14253
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
ca5c6ac3 14267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
0093c2fc 14279 bakefile_compiler_xlc=yes
3006edc0
VZ
14280else
14281 echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
0093c2fc 14284bakefile_compiler_xlc=no
3006edc0
VZ
14285fi
14286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14287 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14288
14289fi
0093c2fc
VZ
14290echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14291echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14292
0093c2fc 14293XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14294ac_ext=cc
14295ac_cpp='$CXXCPP $CPPFLAGS'
14296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14299
14300
14301 ;;
14302
14303 Darwin)
14304 ac_ext=cc
95986553
DE
14305ac_cpp='$CXXCPP $CPPFLAGS'
14306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14309
14310echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14311echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14312if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314else
14315 cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
14321
14322int
14323main ()
14324{
14325#ifndef __MWERKS__
14326 choke me
14327#endif
14328
14329 ;
14330 return 0;
14331}
14332_ACEOF
14333rm -f conftest.$ac_objext
14334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
ca5c6ac3 14342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 bakefile_compiler_mwerks=yes
14355else
14356 echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
14359bakefile_compiler_mwerks=no
14360fi
14361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14362 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14363
14364fi
14365echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14366echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14367
0e6fa1d9 14368MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14369ac_ext=cc
14370ac_cpp='$CXXCPP $CPPFLAGS'
14371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14374
14375
3006edc0 14376 ac_ext=cc
9273ffba
DE
14377ac_cpp='$CXXCPP $CPPFLAGS'
14378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14381
14382echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14383echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14384if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386else
14387 cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h. */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h. */
14393
14394int
14395main ()
14396{
14397#ifndef __xlC__
14398 choke me
14399#endif
14400
14401 ;
14402 return 0;
14403}
14404_ACEOF
14405rm -f conftest.$ac_objext
14406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
ca5c6ac3 14414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
0093c2fc 14426 bakefile_compiler_xlc=yes
9273ffba
DE
14427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
0093c2fc 14431bakefile_compiler_xlc=no
9273ffba
DE
14432fi
14433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14434 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14435
14436fi
0093c2fc
VZ
14437echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14438echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14439
0093c2fc 14440XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14441ac_ext=cc
14442ac_cpp='$CXXCPP $CPPFLAGS'
14443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14446
14447
3006edc0
VZ
14448 ;;
14449
14450 IRIX*)
95986553 14451
6dcfc289 14452
0ad5d837
VZ
14453 ac_ext=cc
14454ac_cpp='$CXXCPP $CPPFLAGS'
14455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14458
14459 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14460echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14461if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463else
14464 cat >conftest.$ac_ext <<_ACEOF
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h. */
14470
14471int
14472main ()
14473{
14474
14475 #ifndef _SGI_COMPILER_VERSION
14476 choke me
14477 #endif
14478
14479 ;
14480 return 0;
14481}
14482_ACEOF
14483rm -f conftest.$ac_objext
14484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485 (eval $ac_compile) 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
ca5c6ac3 14492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14505else
14506 echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14510
14511fi
14512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14513
14514
14515fi
14516echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14517echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14518 ac_ext=cc
14519ac_cpp='$CXXCPP $CPPFLAGS'
14520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14523
14524 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14525 :; SGICXX=yes
14526 else
14527 :;
14528 fi
14529
14530
3006edc0
VZ
14531 ;;
14532
0093c2fc 14533 HP-UX*)
3006edc0
VZ
14534
14535
14536 ac_ext=cc
14537ac_cpp='$CXXCPP $CPPFLAGS'
14538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14541
0093c2fc
VZ
14542 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14543echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14544if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
14547 cat >conftest.$ac_ext <<_ACEOF
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553
14554int
14555main ()
14556{
14557
0093c2fc 14558 #ifndef __HP_aCC
3006edc0
VZ
14559 choke me
14560 #endif
14561
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
ca5c6ac3 14575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
0093c2fc 14587 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
0093c2fc 14592bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14593
14594fi
14595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596
14597
14598fi
0093c2fc
VZ
14599echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14600echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14601 ac_ext=cc
14602ac_cpp='$CXXCPP $CPPFLAGS'
14603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14606
0093c2fc
VZ
14607 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14608 :; HPCXX=yes
a1aa0349
VZ
14609 else
14610 :;
14611 fi
14612
14613
14614 ;;
14615
0093c2fc 14616 OSF1)
a1aa0349
VZ
14617
14618
14619 ac_ext=cc
14620ac_cpp='$CXXCPP $CPPFLAGS'
14621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14624
0093c2fc
VZ
14625 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14626echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14627if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629else
14630 cat >conftest.$ac_ext <<_ACEOF
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
14636
14637int
14638main ()
14639{
14640
0093c2fc 14641 #ifndef __DECCXX
a1aa0349
VZ
14642 choke me
14643 #endif
14644
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext
14650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
ca5c6ac3 14658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
0093c2fc 14670 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
0093c2fc 14675bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14676
14677fi
14678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679
14680
14681fi
0093c2fc
VZ
14682echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14683echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14684 ac_ext=cc
14685ac_cpp='$CXXCPP $CPPFLAGS'
14686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14689
0093c2fc
VZ
14690 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14691 :; COMPAQCXX=yes
14692 else
14693 :;
14694 fi
14695
14696
14697 ;;
14698
14699 SunOS)
14700
14701
14702 ac_ext=cc
14703ac_cpp='$CXXCPP $CPPFLAGS'
14704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14707
14708 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14709echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14710if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712else
14713 cat >conftest.$ac_ext <<_ACEOF
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719
14720int
14721main ()
14722{
14723
14724 #ifndef __SUNPRO_CC
14725 choke me
14726 #endif
14727
14728 ;
14729 return 0;
14730}
14731_ACEOF
14732rm -f conftest.$ac_objext
14733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14734 (eval $ac_compile) 2>conftest.er1
14735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
ca5c6ac3 14741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14754else
14755 echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
14758bakefile_cv_cxx_compiler___SUNPRO_CC=no
14759
14760fi
14761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762
14763
14764fi
14765echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14766echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14767 ac_ext=cc
14768ac_cpp='$CXXCPP $CPPFLAGS'
14769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14772
14773 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14774 :; SUNCXX=yes
3006edc0
VZ
14775 else
14776 :;
ab0ad5f1 14777 fi
a9e5b1f0
MW
14778
14779
3006edc0
VZ
14780 ;;
14781 esac
14782 fi
14783
14784
14785
a848cd7e
SC
14786if test -n "$ac_tool_prefix"; then
14787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14789echo "$as_me:$LINENO: checking for $ac_word" >&5
14790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791if test "${ac_cv_prog_RANLIB+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793else
14794 if test -n "$RANLIB"; then
14795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14796else
14797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798for as_dir in $PATH
14799do
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 for ac_exec_ext in '' $ac_executable_extensions; do
14803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14806 break 2
14807 fi
14808done
14809done
14810
14811fi
14812fi
14813RANLIB=$ac_cv_prog_RANLIB
14814if test -n "$RANLIB"; then
14815 echo "$as_me:$LINENO: result: $RANLIB" >&5
14816echo "${ECHO_T}$RANLIB" >&6
14817else
14818 echo "$as_me:$LINENO: result: no" >&5
14819echo "${ECHO_T}no" >&6
14820fi
14821
14822fi
14823if test -z "$ac_cv_prog_RANLIB"; then
14824 ac_ct_RANLIB=$RANLIB
14825 # Extract the first word of "ranlib", so it can be a program name with args.
14826set dummy ranlib; ac_word=$2
14827echo "$as_me:$LINENO: checking for $ac_word" >&5
14828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14829if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 if test -n "$ac_ct_RANLIB"; then
14833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14834else
14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14836for as_dir in $PATH
14837do
14838 IFS=$as_save_IFS
14839 test -z "$as_dir" && as_dir=.
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14842 ac_cv_prog_ac_ct_RANLIB="ranlib"
14843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14844 break 2
14845 fi
14846done
14847done
14848
14849 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14850fi
14851fi
14852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14853if test -n "$ac_ct_RANLIB"; then
14854 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14855echo "${ECHO_T}$ac_ct_RANLIB" >&6
14856else
14857 echo "$as_me:$LINENO: result: no" >&5
14858echo "${ECHO_T}no" >&6
14859fi
14860
14861 RANLIB=$ac_ct_RANLIB
14862else
14863 RANLIB="$ac_cv_prog_RANLIB"
14864fi
14865
14866
8c80d384
DE
14867if test -n "$ac_tool_prefix"; then
14868 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14869set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14870echo "$as_me:$LINENO: checking for $ac_word" >&5
14871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14872if test "${ac_cv_prog_AR+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874else
14875 if test -n "$AR"; then
14876 ac_cv_prog_AR="$AR" # Let the user override the test.
14877else
14878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879for as_dir in $PATH
14880do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 for ac_exec_ext in '' $ac_executable_extensions; do
14884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14885 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14887 break 2
14888 fi
14889done
14890done
14891
14892fi
14893fi
14894AR=$ac_cv_prog_AR
14895if test -n "$AR"; then
14896 echo "$as_me:$LINENO: result: $AR" >&5
14897echo "${ECHO_T}$AR" >&6
14898else
14899 echo "$as_me:$LINENO: result: no" >&5
14900echo "${ECHO_T}no" >&6
14901fi
14902
8c80d384
DE
14903fi
14904if test -z "$ac_cv_prog_AR"; then
14905 ac_ct_AR=$AR
14906 # Extract the first word of "ar", so it can be a program name with args.
14907set dummy ar; ac_word=$2
14908echo "$as_me:$LINENO: checking for $ac_word" >&5
14909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14910if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912else
14913 if test -n "$ac_ct_AR"; then
14914 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14915else
14916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917for as_dir in $PATH
14918do
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_ac_ct_AR="ar"
14924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14925 break 2
14926 fi
14927done
14928done
14929
14930fi
14931fi
14932ac_ct_AR=$ac_cv_prog_ac_ct_AR
14933if test -n "$ac_ct_AR"; then
14934 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14935echo "${ECHO_T}$ac_ct_AR" >&6
14936else
14937 echo "$as_me:$LINENO: result: no" >&5
14938echo "${ECHO_T}no" >&6
14939fi
14940
14941 AR=$ac_ct_AR
14942else
14943 AR="$ac_cv_prog_AR"
14944fi
14945
a848cd7e 14946if test "x$AR" = "x" ; then
77ffb593
JS
14947 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14948echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14949 { (exit 1); exit 1; }; }
14950fi
14951
14952# Find a good install program. We prefer a C program (faster),
14953# so one script is as good as another. But avoid the broken or
14954# incompatible versions:
14955# SysV /etc/install, /usr/sbin/install
14956# SunOS /usr/etc/install
14957# IRIX /sbin/install
14958# AIX /bin/install
14959# AmigaOS /C/install, which installs bootblocks on floppy discs
14960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14963# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14964# ./install, which can be erroneously created by make from ./install.sh.
14965echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14966echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14967if test -z "$INSTALL"; then
14968if test "${ac_cv_path_install+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972for as_dir in $PATH
14973do
14974 IFS=$as_save_IFS
14975 test -z "$as_dir" && as_dir=.
14976 # Account for people who put trailing slashes in PATH elements.
14977case $as_dir/ in
14978 ./ | .// | /cC/* | \
14979 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14980 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14981 /usr/ucb/* ) ;;
14982 *)
14983 # OSF1 and SCO ODT 3.0 have their own names for install.
14984 # Don't use installbsd from OSF since it installs stuff as root
14985 # by default.
14986 for ac_prog in ginstall scoinst install; do
14987 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14988 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14989 if test $ac_prog = install &&
14990 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14991 # AIX install. It has an incompatible calling convention.
14992 :
14993 elif test $ac_prog = install &&
14994 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14995 # program-specific install script used by HP pwplus--don't use.
14996 :
14997 else
14998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14999 break 3
15000 fi
15001 fi
a848cd7e
SC
15002 done
15003 done
15004 ;;
15005esac
15006done
15007
15008
15009fi
15010 if test "${ac_cv_path_install+set}" = set; then
15011 INSTALL=$ac_cv_path_install
15012 else
15013 # As a last resort, use the slow shell script. We don't cache a
15014 # path for INSTALL within a source directory, because that will
15015 # break other packages using the cache if that directory is
15016 # removed, or if the path is relative.
15017 INSTALL=$ac_install_sh
15018 fi
15019fi
15020echo "$as_me:$LINENO: result: $INSTALL" >&5
15021echo "${ECHO_T}$INSTALL" >&6
15022
15023# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15024# It thinks the first close brace ends the variable substitution.
15025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15026
15027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15028
15029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15030
15031
15032case ${INSTALL} in
15033 /* ) # Absolute
15034 ;;
15035 ?:* ) # Drive letter, considered as absolute.
15036 ;;
15037 *)
15038 INSTALL=`pwd`/${INSTALL} ;;
15039esac
15040
a848cd7e
SC
15041
15042case "${host}" in
15043
cfda0ea8 15044 *-*-darwin* )
a848cd7e
SC
15045 INSTALL_PROGRAM="cp -fp"
15046 INSTALL_DATA="cp -fp"
15047 ;;
15048 *)
15049 ;;
15050esac
15051
8c80d384
DE
15052if test -n "$ac_tool_prefix"; then
15053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15054set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15055echo "$as_me:$LINENO: checking for $ac_word" >&5
15056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15057if test "${ac_cv_prog_STRIP+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059else
15060 if test -n "$STRIP"; then
15061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15062else
15063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064for as_dir in $PATH
15065do
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15073 fi
15074done
15075done
15076
a848cd7e
SC
15077fi
15078fi
15079STRIP=$ac_cv_prog_STRIP
15080if test -n "$STRIP"; then
15081 echo "$as_me:$LINENO: result: $STRIP" >&5
15082echo "${ECHO_T}$STRIP" >&6
15083else
15084 echo "$as_me:$LINENO: result: no" >&5
15085echo "${ECHO_T}no" >&6
15086fi
15087
8c80d384
DE
15088fi
15089if test -z "$ac_cv_prog_STRIP"; then
15090 ac_ct_STRIP=$STRIP
15091 # Extract the first word of "strip", so it can be a program name with args.
15092set dummy strip; ac_word=$2
15093echo "$as_me:$LINENO: checking for $ac_word" >&5
15094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15095if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15097else
15098 if test -n "$ac_ct_STRIP"; then
15099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15100else
15101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15102for as_dir in $PATH
15103do
15104 IFS=$as_save_IFS
15105 test -z "$as_dir" && as_dir=.
15106 for ac_exec_ext in '' $ac_executable_extensions; do
15107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15108 ac_cv_prog_ac_ct_STRIP="strip"
15109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15110 break 2
15111 fi
15112done
15113done
15114
15115 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15116fi
15117fi
15118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15119if test -n "$ac_ct_STRIP"; then
15120 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15121echo "${ECHO_T}$ac_ct_STRIP" >&6
15122else
15123 echo "$as_me:$LINENO: result: no" >&5
15124echo "${ECHO_T}no" >&6
15125fi
15126
15127 STRIP=$ac_ct_STRIP
15128else
15129 STRIP="$ac_cv_prog_STRIP"
15130fi
15131
15132
15133if test "$wxUSE_WINE" = "yes"; then
15134 if test -n "$ac_tool_prefix"; then
15135 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15136set dummy ${ac_tool_prefix}wrc; ac_word=$2
15137echo "$as_me:$LINENO: checking for $ac_word" >&5
15138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15139if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141else
8ced02f6
DE
15142 if test -n "$WINDRES"; then
15143 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15144else
15145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146for as_dir in $PATH
15147do
15148 IFS=$as_save_IFS
15149 test -z "$as_dir" && as_dir=.
15150 for ac_exec_ext in '' $ac_executable_extensions; do
15151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15152 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15154 break 2
15155 fi
15156done
15157done
15158
15159fi
15160fi
8ced02f6
DE
15161WINDRES=$ac_cv_prog_WINDRES
15162if test -n "$WINDRES"; then
15163 echo "$as_me:$LINENO: result: $WINDRES" >&5
15164echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15165else
15166 echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6
15168fi
15169
15170fi
8ced02f6
DE
15171if test -z "$ac_cv_prog_WINDRES"; then
15172 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15173 # Extract the first word of "wrc", so it can be a program name with args.
15174set dummy wrc; ac_word=$2
15175echo "$as_me:$LINENO: checking for $ac_word" >&5
15176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15177if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179else
8ced02f6
DE
15180 if test -n "$ac_ct_WINDRES"; then
15181 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15182else
15183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184for as_dir in $PATH
15185do
15186 IFS=$as_save_IFS
15187 test -z "$as_dir" && as_dir=.
15188 for ac_exec_ext in '' $ac_executable_extensions; do
15189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15190 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15192 break 2
15193 fi
15194done
15195done
15196
15197fi
15198fi
8ced02f6
DE
15199ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15200if test -n "$ac_ct_WINDRES"; then
15201 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15202echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15203else
15204 echo "$as_me:$LINENO: result: no" >&5
15205echo "${ECHO_T}no" >&6
15206fi
15207
8ced02f6 15208 WINDRES=$ac_ct_WINDRES
8c80d384 15209else
8ced02f6 15210 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15211fi
15212
004ee6da 15213 RESCOMP="$WINDRES"
8c80d384
DE
15214else
15215 case "${host}" in
15216 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15217 if test -n "$ac_tool_prefix"; then
15218 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15219set dummy ${ac_tool_prefix}windres; ac_word=$2
15220echo "$as_me:$LINENO: checking for $ac_word" >&5
15221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15222if test "${ac_cv_prog_WINDRES+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224else
15225 if test -n "$WINDRES"; then
15226 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15227else
15228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229for as_dir in $PATH
15230do
15231 IFS=$as_save_IFS
15232 test -z "$as_dir" && as_dir=.
15233 for ac_exec_ext in '' $ac_executable_extensions; do
15234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15235 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15237 break 2
15238 fi
15239done
15240done
15241
15242fi
15243fi
15244WINDRES=$ac_cv_prog_WINDRES
15245if test -n "$WINDRES"; then
15246 echo "$as_me:$LINENO: result: $WINDRES" >&5
15247echo "${ECHO_T}$WINDRES" >&6
15248else
15249 echo "$as_me:$LINENO: result: no" >&5
15250echo "${ECHO_T}no" >&6
15251fi
15252
15253fi
15254if test -z "$ac_cv_prog_WINDRES"; then
15255 ac_ct_WINDRES=$WINDRES
15256 # Extract the first word of "windres", so it can be a program name with args.
15257set dummy windres; ac_word=$2
15258echo "$as_me:$LINENO: checking for $ac_word" >&5
15259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15260if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262else
15263 if test -n "$ac_ct_WINDRES"; then
15264 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15265else
15266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267for as_dir in $PATH
15268do
15269 IFS=$as_save_IFS
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_prog_ac_ct_WINDRES="windres"
15274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15275 break 2
15276 fi
15277done
15278done
15279
15280fi
15281fi
15282ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15283if test -n "$ac_ct_WINDRES"; then
15284 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15285echo "${ECHO_T}$ac_ct_WINDRES" >&6
15286else
15287 echo "$as_me:$LINENO: result: no" >&5
15288echo "${ECHO_T}no" >&6
15289fi
15290
15291 WINDRES=$ac_ct_WINDRES
15292else
15293 WINDRES="$ac_cv_prog_WINDRES"
15294fi
15295
15296 RESCOMP="$WINDRES"
15297 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15298 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15299set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15300echo "$as_me:$LINENO: checking for $ac_word" >&5
15301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15302if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304else
15305 if test -n "$DLLTOOL"; then
15306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15307else
15308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15309for as_dir in $PATH
15310do
15311 IFS=$as_save_IFS
15312 test -z "$as_dir" && as_dir=.
15313 for ac_exec_ext in '' $ac_executable_extensions; do
15314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15315 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15317 break 2
15318 fi
15319done
15320done
15321
15322fi
15323fi
15324DLLTOOL=$ac_cv_prog_DLLTOOL
15325if test -n "$DLLTOOL"; then
15326 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15327echo "${ECHO_T}$DLLTOOL" >&6
15328else
15329 echo "$as_me:$LINENO: result: no" >&5
15330echo "${ECHO_T}no" >&6
15331fi
15332
15333fi
15334if test -z "$ac_cv_prog_DLLTOOL"; then
15335 ac_ct_DLLTOOL=$DLLTOOL
15336 # Extract the first word of "dlltool", so it can be a program name with args.
15337set dummy dlltool; ac_word=$2
15338echo "$as_me:$LINENO: checking for $ac_word" >&5
15339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15340if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 if test -n "$ac_ct_DLLTOOL"; then
15344 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15345else
15346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347for as_dir in $PATH
15348do
15349 IFS=$as_save_IFS
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15355 break 2
15356 fi
15357done
15358done
15359
15360fi
15361fi
15362ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15363if test -n "$ac_ct_DLLTOOL"; then
15364 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15365echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15366else
15367 echo "$as_me:$LINENO: result: no" >&5
15368echo "${ECHO_T}no" >&6
15369fi
15370
15371 DLLTOOL=$ac_ct_DLLTOOL
15372else
15373 DLLTOOL="$ac_cv_prog_DLLTOOL"
15374fi
15375
15376 ;;
15377 esac
15378fi
a848cd7e
SC
15379
15380echo "$as_me:$LINENO: checking if make is GNU make" >&5
15381echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15382if test "${wx_cv_prog_makeisgnu+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384else
15385
15386 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15387 egrep -s GNU > /dev/null); then
15388 wx_cv_prog_makeisgnu="yes"
15389 else
15390 wx_cv_prog_makeisgnu="no"
15391 fi
15392
15393fi
15394echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15395echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15396
15397if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15398 IF_GNU_MAKE=""
15399else
15400 IF_GNU_MAKE="#"
15401fi
15402
15403
15404
15405if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15406echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15407echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15408if test "${wx_cv_prog_makevpath+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411
15412cat - << EOF > confMake
15413check : file
15414 cp \$? \$@
15415 cp \$? final_file
15416EOF
15417
15418if test ! -d sub ; then
15419 mkdir sub
15420fi
15421echo dummy > sub/file
15422${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15423RESULT=$?
15424rm -f sub/file check final_file confMake
15425rmdir sub
15426if test "$RESULT" = 0; then
15427 wx_cv_prog_makevpath="yes"
15428else
15429 wx_cv_prog_makevpath="no"
15430fi
15431
15432fi
15433echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15434echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15435
15436if test "x$wx_cv_prog_makevpath" != "xyes"; then
15437{ { echo "$as_me:$LINENO: error:
15438You need a make-utility that is able to use the variable
15439VPATH correctly.
15440If your version of make does not support VPATH correctly,
15441please install GNU-make (possibly as gmake), and start
15442configure with the following command:
15443export MAKE=gmake; ./configure for sh-type shells
15444setenv MAKE gmake; ./configure for csh-type shells
15445Also please do remember to use gmake in this case every time
15446you are trying to compile.
15447" >&5
15448echo "$as_me: error:
15449You need a make-utility that is able to use the variable
15450VPATH correctly.
15451If your version of make does not support VPATH correctly,
15452please install GNU-make (possibly as gmake), and start
15453configure with the following command:
15454export MAKE=gmake; ./configure for sh-type shells
15455setenv MAKE gmake; ./configure for csh-type shells
15456Also please do remember to use gmake in this case every time
15457you are trying to compile.
15458" >&2;}
15459 { (exit 1); exit 1; }; }
15460fi fi
15461echo "$as_me:$LINENO: checking whether ln -s works" >&5
15462echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15463LN_S=$as_ln_s
15464if test "$LN_S" = "ln -s"; then
15465 echo "$as_me:$LINENO: result: yes" >&5
15466echo "${ECHO_T}yes" >&6
15467else
15468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15469echo "${ECHO_T}no, using $LN_S" >&6
15470fi
15471
15472
bcaab0f9 15473
a848cd7e 15474
2113bc77 15475if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15476 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15477fi
15478
4d7ec9f1
DE
15479case "${host}" in
15480 powerpc-*-darwin* )
15481 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15482echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15483 cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489
15490int
15491main ()
15492{
15493#ifndef __POWERPC__
15494 choke me for lack of PowerPC
15495#endif
15496
15497 ;
15498 return 0;
15499}
15500_ACEOF
15501rm -f conftest.$ac_objext
15502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
ca5c6ac3 15510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 echo "$as_me:$LINENO: result: yes" >&5
15523echo "${ECHO_T}yes" >&6
15524else
15525 echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528echo "$as_me:$LINENO: result: no" >&5
15529echo "${ECHO_T}no" >&6
15530 cat >>confdefs.h <<\_ACEOF
15531#define __POWERPC__ 1
15532_ACEOF
15533
15534
15535fi
15536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15537 ;;
15538esac
15539
15540case "${host}" in
15541 *-*-darwin* )
4d7ec9f1
DE
15542 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15543echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15544 cat >conftest.$ac_ext <<_ACEOF
15545/* confdefs.h. */
15546_ACEOF
15547cat confdefs.h >>conftest.$ac_ext
15548cat >>conftest.$ac_ext <<_ACEOF
15549/* end confdefs.h. */
15550#include <CoreFoundation/CFBase.h>
15551
15552int
15553main ()
15554{
15555
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext
15561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
ca5c6ac3 15569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 echo "$as_me:$LINENO: result: yes" >&5
15582echo "${ECHO_T}yes" >&6
15583else
15584 echo "$as_me: failed program was:" >&5
15585sed 's/^/| /' conftest.$ac_ext >&5
15586
15587echo "$as_me:$LINENO: result: no" >&5
15588echo "${ECHO_T}no" >&6
15589 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15590echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597#define __CF_USE_FRAMEWORK_INCLUDES__
15598#include <CoreFoundation/CFBase.h>
15599
15600int
15601main ()
15602{
15603
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610 (eval $ac_compile) 2>conftest.er1
15611 ac_status=$?
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
ca5c6ac3 15617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 echo "$as_me:$LINENO: result: yes" >&5
15630echo "${ECHO_T}yes" >&6
c92ad099 15631 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15637See \`config.log' for more details." >&5
15638echo "$as_me: error: no. CoreFoundation not available.
15639See \`config.log' for more details." >&2;}
15640 { (exit 1); exit 1; }; }
15641
15642fi
15643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15644
15645
15646fi
15647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648 ;;
15649esac
15650
a848cd7e
SC
15651case "${host}" in
15652 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15653 ac_ext=c
15654ac_cpp='$CPP $CPPFLAGS'
15655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15657ac_compiler_gnu=$ac_cv_c_compiler_gnu
15658
15659 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15660 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15661echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15662if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664else
15665 ac_check_lib_save_LIBS=$LIBS
15666LIBS="-lcExt $LIBS"
15667cat >conftest.$ac_ext <<_ACEOF
15668/* confdefs.h. */
15669_ACEOF
15670cat confdefs.h >>conftest.$ac_ext
15671cat >>conftest.$ac_ext <<_ACEOF
15672/* end confdefs.h. */
15673
15674/* Override any gcc2 internal prototype to avoid an error. */
15675#ifdef __cplusplus
15676extern "C"
15677#endif
15678/* We use char because int might match the return type of a gcc2
15679 builtin and then its argument prototype would still apply. */
15680char drand48 ();
15681int
15682main ()
15683{
15684drand48 ();
15685 ;
15686 return 0;
15687}
15688_ACEOF
15689rm -f conftest.$ac_objext conftest$ac_exeext
15690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15691 (eval $ac_link) 2>conftest.er1
a848cd7e 15692 ac_status=$?
ac1cb8d3
VS
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
a848cd7e
SC
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
ca5c6ac3 15698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 ac_cv_lib_cExt_drand48=yes
15711else
15712 echo "$as_me: failed program was:" >&5
15713sed 's/^/| /' conftest.$ac_ext >&5
15714
15715ac_cv_lib_cExt_drand48=no
15716fi
ac1cb8d3
VS
15717rm -f conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15719LIBS=$ac_check_lib_save_LIBS
15720fi
15721echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15722echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15723if test $ac_cv_lib_cExt_drand48 = yes; then
15724 LIBS="$LIBS -lcExt"
15725fi
15726
15727 else
15728 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15729 fi
69120ee4
VZ
15730 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15731echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15732if test "${wx_cv_gccversion+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734else
15735
391a765e
VS
15736 if test "$cross_compiling" = yes; then
15737 wx_cv_gccversion="EMX2"
15738
15739else
15740 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15741/* confdefs.h. */
15742_ACEOF
15743cat confdefs.h >>conftest.$ac_ext
15744cat >>conftest.$ac_ext <<_ACEOF
15745/* end confdefs.h. */
15746
391a765e 15747 #include <stdio.h>
a848cd7e 15748
391a765e
VS
15749 int main()
15750 {
15751 FILE *f=fopen("conftestval", "w");
15752 if (!f) exit(1);
15753 fprintf(f,
a848cd7e 15754 #if (__GNUC__ < 3)
391a765e
VS
15755 "EMX2"
15756 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15757 "EMX3"
15758 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15759 "Innotek5"
15760 #else
15761 "Innotek6"
a848cd7e 15762 #endif
5039a2df 15763 );
391a765e
VS
15764 exit(0);
15765 }
a848cd7e 15766
a848cd7e 15767_ACEOF
391a765e
VS
15768rm -f conftest$ac_exeext
15769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770 (eval $ac_link) 2>&5
ac1cb8d3
VS
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
391a765e 15779 wx_cv_gccversion=`cat conftestval`
a848cd7e 15780else
391a765e
VS
15781 echo "$as_me: program exited with status $ac_status" >&5
15782echo "$as_me: failed program was:" >&5
a848cd7e
SC
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
391a765e
VS
15785( exit $ac_status )
15786wx_cv_gccversion="EMX2"
a848cd7e 15787fi
391a765e 15788rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15789fi
a848cd7e
SC
15790
15791fi
15792echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15793echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15794 ac_ext=cc
15795ac_cpp='$CXXCPP $CPPFLAGS'
15796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15799
391a765e 15800 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15801 LIBS="$LIBS -lstdcpp"
15802 LDFLAGS="$LDFLAGS -Zsysv-signals"
15803 else
391a765e 15804 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15805 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15806 LDFLAGS="$LDFLAGS -Zsysv-signals"
15807 else
15808 LIBS="$LIBS -lstdc++"
15809 fi
15810 fi
94acd38e
DE
15811 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15812 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15813echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15814 wxUSE_OMF=yes
2da0c077 15815 enable_omf=yes
a848cd7e
SC
15816 fi
15817 ;;
15818 *)
15819
95986553 15820 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15821echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15822if test "${ac_cv_string_strcasecmp+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824else
15825
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832
15833 #include <string.h>
15834
15835int
15836main ()
15837{
15838
15839 strcasecmp("foo", "bar");
15840
15841 ;
15842 return 0;
15843}
15844_ACEOF
15845rm -f conftest.$ac_objext conftest$ac_exeext
15846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15847 (eval $ac_link) 2>conftest.er1
a848cd7e 15848 ac_status=$?
ac1cb8d3
VS
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
a848cd7e
SC
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
ca5c6ac3 15854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_string_strcasecmp=yes
15867else
15868 echo "$as_me: failed program was:" >&5
15869sed 's/^/| /' conftest.$ac_ext >&5
15870
15871ac_cv_string_strcasecmp=no
15872
15873fi
ac1cb8d3
VS
15874rm -f conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15876
15877fi
15878echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15879echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15880
15881 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15882 cat >>confdefs.h <<\_ACEOF
15883#define HAVE_STRCASECMP_IN_STRING_H 1
15884_ACEOF
15885
15886 else
15887 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15888echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15889if test "${ac_cv_strings_strcasecmp+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892
15893 cat >conftest.$ac_ext <<_ACEOF
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
15899
15900 #include <strings.h>
15901
15902int
15903main ()
15904{
15905
15906 strcasecmp("foo", "bar");
15907
15908 ;
15909 return 0;
15910}
15911_ACEOF
15912rm -f conftest.$ac_objext conftest$ac_exeext
15913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15914 (eval $ac_link) 2>conftest.er1
a848cd7e 15915 ac_status=$?
ac1cb8d3
VS
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
a848cd7e
SC
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
ca5c6ac3 15921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_cv_strings_strcasecmp=yes
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938ac_cv_strings_strcasecmp=no
15939
15940fi
ac1cb8d3
VS
15941rm -f conftest.err conftest.$ac_objext \
15942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15943
15944fi
15945echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15946echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15947
0c3c69fc 15948 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15949 cat >>confdefs.h <<\_ACEOF
15950#define HAVE_STRCASECMP_IN_STRINGS_H 1
15951_ACEOF
15952
15953 else
15954 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15955echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15956 { (exit 1); exit 1; }; }
15957 fi
15958 fi
15959
a848cd7e
SC
15960 ;;
15961esac
15962
15963
5d7b7554
VZ
15964ac_ext=cc
15965ac_cpp='$CXXCPP $CPPFLAGS'
15966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15969echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15970echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15971if test -z "$CXXCPP"; then
15972 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15974else
15975 # Double quotes because CXXCPP needs to be expanded
15976 for CXXCPP in "$CXX -E" "/lib/cpp"
15977 do
15978 ac_preproc_ok=false
15979for ac_cxx_preproc_warn_flag in '' yes
15980do
15981 # Use a header file that comes with gcc, so configuring glibc
15982 # with a fresh cross-compiler works.
15983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15984 # <limits.h> exists even on freestanding compilers.
15985 # On the NeXT, cc -E runs the code through the compiler's parser,
15986 # not just through cpp. "Syntax error" is here to catch this case.
15987 cat >conftest.$ac_ext <<_ACEOF
15988/* confdefs.h. */
15989_ACEOF
15990cat confdefs.h >>conftest.$ac_ext
15991cat >>conftest.$ac_ext <<_ACEOF
15992/* end confdefs.h. */
15993#ifdef __STDC__
15994# include <limits.h>
15995#else
15996# include <assert.h>
15997#endif
15998 Syntax error
15999_ACEOF
16000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } >/dev/null; then
16008 if test -s conftest.err; then
16009 ac_cpp_err=$ac_cxx_preproc_warn_flag
16010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16011 else
16012 ac_cpp_err=
16013 fi
16014else
16015 ac_cpp_err=yes
16016fi
16017if test -z "$ac_cpp_err"; then
16018 :
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 # Broken: fails on valid input.
16024continue
16025fi
16026rm -f conftest.err conftest.$ac_ext
16027
16028 # OK, works on sane cases. Now check whether non-existent headers
16029 # can be detected and how.
16030 cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h. */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h. */
16036#include <ac_nonexistent.h>
16037_ACEOF
16038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } >/dev/null; then
16046 if test -s conftest.err; then
16047 ac_cpp_err=$ac_cxx_preproc_warn_flag
16048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16049 else
16050 ac_cpp_err=
16051 fi
16052else
16053 ac_cpp_err=yes
16054fi
16055if test -z "$ac_cpp_err"; then
16056 # Broken: success on invalid input.
16057continue
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 # Passes both tests.
16063ac_preproc_ok=:
16064break
16065fi
16066rm -f conftest.err conftest.$ac_ext
16067
16068done
16069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16070rm -f conftest.err conftest.$ac_ext
16071if $ac_preproc_ok; then
16072 break
16073fi
16074
16075 done
16076 ac_cv_prog_CXXCPP=$CXXCPP
16077
16078fi
16079 CXXCPP=$ac_cv_prog_CXXCPP
16080else
16081 ac_cv_prog_CXXCPP=$CXXCPP
16082fi
16083echo "$as_me:$LINENO: result: $CXXCPP" >&5
16084echo "${ECHO_T}$CXXCPP" >&6
16085ac_preproc_ok=false
16086for ac_cxx_preproc_warn_flag in '' yes
16087do
16088 # Use a header file that comes with gcc, so configuring glibc
16089 # with a fresh cross-compiler works.
16090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16091 # <limits.h> exists even on freestanding compilers.
16092 # On the NeXT, cc -E runs the code through the compiler's parser,
16093 # not just through cpp. "Syntax error" is here to catch this case.
16094 cat >conftest.$ac_ext <<_ACEOF
16095/* confdefs.h. */
16096_ACEOF
16097cat confdefs.h >>conftest.$ac_ext
16098cat >>conftest.$ac_ext <<_ACEOF
16099/* end confdefs.h. */
16100#ifdef __STDC__
16101# include <limits.h>
16102#else
16103# include <assert.h>
16104#endif
16105 Syntax error
16106_ACEOF
16107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } >/dev/null; then
16115 if test -s conftest.err; then
16116 ac_cpp_err=$ac_cxx_preproc_warn_flag
16117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16118 else
16119 ac_cpp_err=
16120 fi
16121else
16122 ac_cpp_err=yes
16123fi
16124if test -z "$ac_cpp_err"; then
16125 :
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 # Broken: fails on valid input.
16131continue
16132fi
16133rm -f conftest.err conftest.$ac_ext
16134
16135 # OK, works on sane cases. Now check whether non-existent headers
16136 # can be detected and how.
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143#include <ac_nonexistent.h>
16144_ACEOF
16145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } >/dev/null; then
16153 if test -s conftest.err; then
16154 ac_cpp_err=$ac_cxx_preproc_warn_flag
16155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16156 else
16157 ac_cpp_err=
16158 fi
16159else
16160 ac_cpp_err=yes
16161fi
16162if test -z "$ac_cpp_err"; then
16163 # Broken: success on invalid input.
16164continue
16165else
16166 echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 # Passes both tests.
16170ac_preproc_ok=:
16171break
16172fi
16173rm -f conftest.err conftest.$ac_ext
16174
16175done
16176# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16177rm -f conftest.err conftest.$ac_ext
16178if $ac_preproc_ok; then
16179 :
16180else
16181 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16182See \`config.log' for more details." >&5
16183echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16184See \`config.log' for more details." >&2;}
16185 { (exit 1); exit 1; }; }
16186fi
16187
16188ac_ext=cc
16189ac_cpp='$CXXCPP $CPPFLAGS'
16190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16193
16194
a848cd7e
SC
16195echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16196echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16197if test "${ac_cv_header_stdc+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206#include <stdlib.h>
16207#include <stdarg.h>
16208#include <string.h>
16209#include <float.h>
16210
16211int
16212main ()
16213{
16214
16215 ;
16216 return 0;
16217}
16218_ACEOF
16219rm -f conftest.$ac_objext
16220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16221 (eval $ac_compile) 2>conftest.er1
a848cd7e 16222 ac_status=$?
ac1cb8d3
VS
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
a848cd7e
SC
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
ca5c6ac3 16228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_header_stdc=yes
16241else
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245ac_cv_header_stdc=no
16246fi
ac1cb8d3 16247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16248
16249if test $ac_cv_header_stdc = yes; then
16250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16251 cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h. */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h. */
16257#include <string.h>
16258
16259_ACEOF
16260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16261 $EGREP "memchr" >/dev/null 2>&1; then
16262 :
16263else
16264 ac_cv_header_stdc=no
16265fi
16266rm -f conftest*
16267
16268fi
16269
16270if test $ac_cv_header_stdc = yes; then
16271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16272 cat >conftest.$ac_ext <<_ACEOF
16273/* confdefs.h. */
16274_ACEOF
16275cat confdefs.h >>conftest.$ac_ext
16276cat >>conftest.$ac_ext <<_ACEOF
16277/* end confdefs.h. */
16278#include <stdlib.h>
16279
16280_ACEOF
16281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16282 $EGREP "free" >/dev/null 2>&1; then
16283 :
16284else
16285 ac_cv_header_stdc=no
16286fi
16287rm -f conftest*
16288
16289fi
16290
16291if test $ac_cv_header_stdc = yes; then
16292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16293 if test "$cross_compiling" = yes; then
16294 :
16295else
16296 cat >conftest.$ac_ext <<_ACEOF
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302#include <ctype.h>
16303#if ((' ' & 0x0FF) == 0x020)
16304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16306#else
16307# define ISLOWER(c) \
ac1cb8d3
VS
16308 (('a' <= (c) && (c) <= 'i') \
16309 || ('j' <= (c) && (c) <= 'r') \
16310 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16312#endif
16313
16314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16315int
16316main ()
16317{
16318 int i;
16319 for (i = 0; i < 256; i++)
16320 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16321 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16322 exit(2);
16323 exit (0);
16324}
16325_ACEOF
16326rm -f conftest$ac_exeext
16327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328 (eval $ac_link) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 :
16338else
16339 echo "$as_me: program exited with status $ac_status" >&5
16340echo "$as_me: failed program was:" >&5
16341sed 's/^/| /' conftest.$ac_ext >&5
16342
16343( exit $ac_status )
16344ac_cv_header_stdc=no
16345fi
ac1cb8d3 16346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347fi
16348fi
16349fi
16350echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16351echo "${ECHO_T}$ac_cv_header_stdc" >&6
16352if test $ac_cv_header_stdc = yes; then
16353
16354cat >>confdefs.h <<\_ACEOF
16355#define STDC_HEADERS 1
16356_ACEOF
16357
16358fi
16359
16360# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16371 inttypes.h stdint.h unistd.h
a848cd7e
SC
16372do
16373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374echo "$as_me:$LINENO: checking for $ac_header" >&5
16375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16376if eval "test \"\${$as_ac_Header+set}\" = set"; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378else
16379 cat >conftest.$ac_ext <<_ACEOF
16380/* confdefs.h. */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h. */
16385$ac_includes_default
16386
16387#include <$ac_header>
16388_ACEOF
16389rm -f conftest.$ac_objext
16390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16391 (eval $ac_compile) 2>conftest.er1
a848cd7e 16392 ac_status=$?
ac1cb8d3
VS
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
a848cd7e
SC
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
ca5c6ac3 16398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 eval "$as_ac_Header=yes"
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415eval "$as_ac_Header=no"
16416fi
ac1cb8d3 16417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16418fi
16419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16421if test `eval echo '${'$as_ac_Header'}'` = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16424_ACEOF
16425
16426fi
16427
16428done
16429
16430
16431
16432for ac_header in stdlib.h
16433do
16434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16435if eval "test \"\${$as_ac_Header+set}\" = set"; then
16436 echo "$as_me:$LINENO: checking for $ac_header" >&5
16437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16438if eval "test \"\${$as_ac_Header+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440fi
16441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16443else
16444 # Is the header compilable?
16445echo "$as_me:$LINENO: checking $ac_header usability" >&5
16446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16447cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454#include <$ac_header>
16455_ACEOF
16456rm -f conftest.$ac_objext
16457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16458 (eval $ac_compile) 2>conftest.er1
a848cd7e 16459 ac_status=$?
ac1cb8d3
VS
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
a848cd7e
SC
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
ca5c6ac3 16465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_header_compiler=yes
16478else
16479 echo "$as_me: failed program was:" >&5
16480sed 's/^/| /' conftest.$ac_ext >&5
16481
16482ac_header_compiler=no
16483fi
ac1cb8d3 16484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16486echo "${ECHO_T}$ac_header_compiler" >&6
16487
16488# Is the header present?
16489echo "$as_me:$LINENO: checking $ac_header presence" >&5
16490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16491cat >conftest.$ac_ext <<_ACEOF
16492/* confdefs.h. */
16493_ACEOF
16494cat confdefs.h >>conftest.$ac_ext
16495cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */
16497#include <$ac_header>
16498_ACEOF
16499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16501 ac_status=$?
16502 grep -v '^ *+' conftest.er1 >conftest.err
16503 rm -f conftest.er1
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } >/dev/null; then
16507 if test -s conftest.err; then
5d7b7554
VZ
16508 ac_cpp_err=$ac_cxx_preproc_warn_flag
16509 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16510 else
16511 ac_cpp_err=
16512 fi
16513else
16514 ac_cpp_err=yes
16515fi
16516if test -z "$ac_cpp_err"; then
16517 ac_header_preproc=yes
16518else
16519 echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_header_preproc=no
16523fi
16524rm -f conftest.err conftest.$ac_ext
16525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16526echo "${ECHO_T}$ac_header_preproc" >&6
16527
16528# So? What about this header?
5d7b7554 16529case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16530 yes:no: )
a848cd7e
SC
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16535 ac_header_preproc=yes
a848cd7e 16536 ;;
ac1cb8d3 16537 no:yes:* )
a848cd7e
SC
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16550 (
16551 cat <<\_ASBOX
ac1cb8d3
VS
16552## ----------------------------------------- ##
16553## Report this to wx-dev@lists.wxwidgets.org ##
16554## ----------------------------------------- ##
a848cd7e
SC
16555_ASBOX
16556 ) |
16557 sed "s/^/$as_me: WARNING: /" >&2
16558 ;;
16559esac
16560echo "$as_me:$LINENO: checking for $ac_header" >&5
16561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16562if eval "test \"\${$as_ac_Header+set}\" = set"; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16564else
ac1cb8d3 16565 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16566fi
16567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16569
16570fi
16571if test `eval echo '${'$as_ac_Header'}'` = yes; then
16572 cat >>confdefs.h <<_ACEOF
16573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16574_ACEOF
16575
16576fi
16577
16578done
16579
16580
16581for ac_header in malloc.h
16582do
16583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16584if eval "test \"\${$as_ac_Header+set}\" = set"; then
16585 echo "$as_me:$LINENO: checking for $ac_header" >&5
16586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16587if eval "test \"\${$as_ac_Header+set}\" = set"; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589fi
16590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16592else
16593 # Is the header compilable?
16594echo "$as_me:$LINENO: checking $ac_header usability" >&5
16595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16596cat >conftest.$ac_ext <<_ACEOF
16597/* confdefs.h. */
16598_ACEOF
16599cat confdefs.h >>conftest.$ac_ext
16600cat >>conftest.$ac_ext <<_ACEOF
16601/* end confdefs.h. */
16602$ac_includes_default
16603#include <$ac_header>
16604_ACEOF
16605rm -f conftest.$ac_objext
16606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16607 (eval $ac_compile) 2>conftest.er1
a848cd7e 16608 ac_status=$?
ac1cb8d3
VS
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
a848cd7e
SC
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
ca5c6ac3 16614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_header_compiler=yes
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631ac_header_compiler=no
16632fi
ac1cb8d3 16633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16635echo "${ECHO_T}$ac_header_compiler" >&6
16636
16637# Is the header present?
16638echo "$as_me:$LINENO: checking $ac_header presence" >&5
16639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16640cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h. */
16646#include <$ac_header>
16647_ACEOF
16648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } >/dev/null; then
16656 if test -s conftest.err; then
5d7b7554
VZ
16657 ac_cpp_err=$ac_cxx_preproc_warn_flag
16658 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16659 else
16660 ac_cpp_err=
16661 fi
16662else
16663 ac_cpp_err=yes
16664fi
16665if test -z "$ac_cpp_err"; then
16666 ac_header_preproc=yes
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 ac_header_preproc=no
16672fi
16673rm -f conftest.err conftest.$ac_ext
16674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16675echo "${ECHO_T}$ac_header_preproc" >&6
16676
16677# So? What about this header?
5d7b7554 16678case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16679 yes:no: )
a848cd7e
SC
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16684 ac_header_preproc=yes
a848cd7e 16685 ;;
ac1cb8d3 16686 no:yes:* )
a848cd7e
SC
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16699 (
16700 cat <<\_ASBOX
ac1cb8d3
VS
16701## ----------------------------------------- ##
16702## Report this to wx-dev@lists.wxwidgets.org ##
16703## ----------------------------------------- ##
a848cd7e
SC
16704_ASBOX
16705 ) |
16706 sed "s/^/$as_me: WARNING: /" >&2
16707 ;;
16708esac
16709echo "$as_me:$LINENO: checking for $ac_header" >&5
16710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16711if eval "test \"\${$as_ac_Header+set}\" = set"; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16713else
ac1cb8d3 16714 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16715fi
16716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16718
16719fi
16720if test `eval echo '${'$as_ac_Header'}'` = yes; then
16721 cat >>confdefs.h <<_ACEOF
16722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16723_ACEOF
16724
16725fi
16726
16727done
16728
16729
16730for ac_header in unistd.h
16731do
16732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16733if eval "test \"\${$as_ac_Header+set}\" = set"; then
16734 echo "$as_me:$LINENO: checking for $ac_header" >&5
16735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16736if eval "test \"\${$as_ac_Header+set}\" = set"; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738fi
16739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16741else
16742 # Is the header compilable?
16743echo "$as_me:$LINENO: checking $ac_header usability" >&5
16744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16745cat >conftest.$ac_ext <<_ACEOF
16746/* confdefs.h. */
16747_ACEOF
16748cat confdefs.h >>conftest.$ac_ext
16749cat >>conftest.$ac_ext <<_ACEOF
16750/* end confdefs.h. */
16751$ac_includes_default
16752#include <$ac_header>
16753_ACEOF
16754rm -f conftest.$ac_objext
16755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16756 (eval $ac_compile) 2>conftest.er1
a848cd7e 16757 ac_status=$?
ac1cb8d3
VS
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
a848cd7e
SC
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
ca5c6ac3 16763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_header_compiler=yes
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780ac_header_compiler=no
16781fi
ac1cb8d3 16782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16784echo "${ECHO_T}$ac_header_compiler" >&6
16785
16786# Is the header present?
16787echo "$as_me:$LINENO: checking $ac_header presence" >&5
16788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795#include <$ac_header>
16796_ACEOF
16797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } >/dev/null; then
16805 if test -s conftest.err; then
5d7b7554
VZ
16806 ac_cpp_err=$ac_cxx_preproc_warn_flag
16807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16808 else
16809 ac_cpp_err=
16810 fi
16811else
16812 ac_cpp_err=yes
16813fi
16814if test -z "$ac_cpp_err"; then
16815 ac_header_preproc=yes
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_header_preproc=no
16821fi
16822rm -f conftest.err conftest.$ac_ext
16823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16824echo "${ECHO_T}$ac_header_preproc" >&6
16825
16826# So? What about this header?
5d7b7554 16827case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16828 yes:no: )
a848cd7e
SC
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16833 ac_header_preproc=yes
a848cd7e 16834 ;;
ac1cb8d3 16835 no:yes:* )
a848cd7e
SC
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16848 (
16849 cat <<\_ASBOX
ac1cb8d3
VS
16850## ----------------------------------------- ##
16851## Report this to wx-dev@lists.wxwidgets.org ##
16852## ----------------------------------------- ##
a848cd7e
SC
16853_ASBOX
16854 ) |
16855 sed "s/^/$as_me: WARNING: /" >&2
16856 ;;
16857esac
16858echo "$as_me:$LINENO: checking for $ac_header" >&5
16859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16860if eval "test \"\${$as_ac_Header+set}\" = set"; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862else
ac1cb8d3 16863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16864fi
16865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16867
16868fi
16869if test `eval echo '${'$as_ac_Header'}'` = yes; then
16870 cat >>confdefs.h <<_ACEOF
16871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16872_ACEOF
16873
16874fi
16875
16876done
16877
16878
16879for ac_header in wchar.h
16880do
16881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16882if eval "test \"\${$as_ac_Header+set}\" = set"; then
16883 echo "$as_me:$LINENO: checking for $ac_header" >&5
16884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16885if eval "test \"\${$as_ac_Header+set}\" = set"; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887fi
16888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16890else
16891 # Is the header compilable?
16892echo "$as_me:$LINENO: checking $ac_header usability" >&5
16893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16894cat >conftest.$ac_ext <<_ACEOF
16895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
16900$ac_includes_default
16901#include <$ac_header>
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16905 (eval $ac_compile) 2>conftest.er1
a848cd7e 16906 ac_status=$?
ac1cb8d3
VS
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
a848cd7e
SC
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
ca5c6ac3 16912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_header_compiler=yes
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929ac_header_compiler=no
16930fi
ac1cb8d3 16931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16933echo "${ECHO_T}$ac_header_compiler" >&6
16934
16935# Is the header present?
16936echo "$as_me:$LINENO: checking $ac_header presence" >&5
16937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16938cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944#include <$ac_header>
16945_ACEOF
16946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } >/dev/null; then
16954 if test -s conftest.err; then
5d7b7554
VZ
16955 ac_cpp_err=$ac_cxx_preproc_warn_flag
16956 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16957 else
16958 ac_cpp_err=
16959 fi
16960else
16961 ac_cpp_err=yes
16962fi
16963if test -z "$ac_cpp_err"; then
16964 ac_header_preproc=yes
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_header_preproc=no
16970fi
16971rm -f conftest.err conftest.$ac_ext
16972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16973echo "${ECHO_T}$ac_header_preproc" >&6
16974
16975# So? What about this header?
5d7b7554 16976case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16977 yes:no: )
a848cd7e
SC
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16982 ac_header_preproc=yes
a848cd7e 16983 ;;
ac1cb8d3 16984 no:yes:* )
a848cd7e
SC
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16997 (
16998 cat <<\_ASBOX
ac1cb8d3
VS
16999## ----------------------------------------- ##
17000## Report this to wx-dev@lists.wxwidgets.org ##
17001## ----------------------------------------- ##
a848cd7e
SC
17002_ASBOX
17003 ) |
17004 sed "s/^/$as_me: WARNING: /" >&2
17005 ;;
17006esac
17007echo "$as_me:$LINENO: checking for $ac_header" >&5
17008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17009if eval "test \"\${$as_ac_Header+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011else
ac1cb8d3 17012 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17013fi
17014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17016
17017fi
17018if test `eval echo '${'$as_ac_Header'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17021_ACEOF
17022
17023fi
17024
17025done
17026
17027
17028if test "$ac_cv_header_wchar_h" != "yes"; then
17029
17030for ac_header in wcstr.h
17031do
17032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17033if eval "test \"\${$as_ac_Header+set}\" = set"; then
17034 echo "$as_me:$LINENO: checking for $ac_header" >&5
17035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17036if eval "test \"\${$as_ac_Header+set}\" = set"; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038fi
17039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17041else
17042 # Is the header compilable?
17043echo "$as_me:$LINENO: checking $ac_header usability" >&5
17044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17045cat >conftest.$ac_ext <<_ACEOF
17046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
17051$ac_includes_default
17052#include <$ac_header>
17053_ACEOF
17054rm -f conftest.$ac_objext
17055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17056 (eval $ac_compile) 2>conftest.er1
a848cd7e 17057 ac_status=$?
ac1cb8d3
VS
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
a848cd7e
SC
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
ca5c6ac3 17063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_header_compiler=yes
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080ac_header_compiler=no
17081fi
ac1cb8d3 17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084echo "${ECHO_T}$ac_header_compiler" >&6
17085
17086# Is the header present?
17087echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17089cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095#include <$ac_header>
17096_ACEOF
17097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null; then
17105 if test -s conftest.err; then
5d7b7554
VZ
17106 ac_cpp_err=$ac_cxx_preproc_warn_flag
17107 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17108 else
17109 ac_cpp_err=
17110 fi
17111else
17112 ac_cpp_err=yes
17113fi
17114if test -z "$ac_cpp_err"; then
17115 ac_header_preproc=yes
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 ac_header_preproc=no
17121fi
17122rm -f conftest.err conftest.$ac_ext
17123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17124echo "${ECHO_T}$ac_header_preproc" >&6
17125
17126# So? What about this header?
5d7b7554 17127case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17128 yes:no: )
a848cd7e
SC
17129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17133 ac_header_preproc=yes
a848cd7e 17134 ;;
ac1cb8d3 17135 no:yes:* )
a848cd7e
SC
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17148 (
17149 cat <<\_ASBOX
ac1cb8d3
VS
17150## ----------------------------------------- ##
17151## Report this to wx-dev@lists.wxwidgets.org ##
17152## ----------------------------------------- ##
a848cd7e
SC
17153_ASBOX
17154 ) |
17155 sed "s/^/$as_me: WARNING: /" >&2
17156 ;;
17157esac
17158echo "$as_me:$LINENO: checking for $ac_header" >&5
17159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17160if eval "test \"\${$as_ac_Header+set}\" = set"; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
ac1cb8d3 17163 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17164fi
17165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17167
17168fi
17169if test `eval echo '${'$as_ac_Header'}'` = yes; then
17170 cat >>confdefs.h <<_ACEOF
17171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17172_ACEOF
17173
17174fi
17175
17176done
17177
17178fi
17179
17180
17181for ac_header in fnmatch.h
17182do
17183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17184if eval "test \"\${$as_ac_Header+set}\" = set"; then
17185 echo "$as_me:$LINENO: checking for $ac_header" >&5
17186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17187if eval "test \"\${$as_ac_Header+set}\" = set"; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189fi
17190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17192else
17193 # Is the header compilable?
17194echo "$as_me:$LINENO: checking $ac_header usability" >&5
17195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17196cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202$ac_includes_default
17203#include <$ac_header>
17204_ACEOF
17205rm -f conftest.$ac_objext
17206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17207 (eval $ac_compile) 2>conftest.er1
a848cd7e 17208 ac_status=$?
ac1cb8d3
VS
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
a848cd7e
SC
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
ca5c6ac3 17214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231ac_header_compiler=no
17232fi
ac1cb8d3 17233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17235echo "${ECHO_T}$ac_header_compiler" >&6
17236
17237# Is the header present?
17238echo "$as_me:$LINENO: checking $ac_header presence" >&5
17239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17240cat >conftest.$ac_ext <<_ACEOF
17241/* confdefs.h. */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h. */
17246#include <$ac_header>
17247_ACEOF
17248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } >/dev/null; then
17256 if test -s conftest.err; then
5d7b7554
VZ
17257 ac_cpp_err=$ac_cxx_preproc_warn_flag
17258 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17259 else
17260 ac_cpp_err=
17261 fi
17262else
17263 ac_cpp_err=yes
17264fi
17265if test -z "$ac_cpp_err"; then
17266 ac_header_preproc=yes
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_header_preproc=no
17272fi
17273rm -f conftest.err conftest.$ac_ext
17274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17275echo "${ECHO_T}$ac_header_preproc" >&6
17276
17277# So? What about this header?
5d7b7554 17278case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17279 yes:no: )
a848cd7e
SC
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17284 ac_header_preproc=yes
a848cd7e 17285 ;;
ac1cb8d3 17286 no:yes:* )
a848cd7e
SC
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17299 (
17300 cat <<\_ASBOX
ac1cb8d3
VS
17301## ----------------------------------------- ##
17302## Report this to wx-dev@lists.wxwidgets.org ##
17303## ----------------------------------------- ##
a848cd7e
SC
17304_ASBOX
17305 ) |
17306 sed "s/^/$as_me: WARNING: /" >&2
17307 ;;
17308esac
17309echo "$as_me:$LINENO: checking for $ac_header" >&5
17310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17311if eval "test \"\${$as_ac_Header+set}\" = set"; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
ac1cb8d3 17314 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17315fi
17316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17318
17319fi
17320if test `eval echo '${'$as_ac_Header'}'` = yes; then
17321 cat >>confdefs.h <<_ACEOF
17322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17323_ACEOF
17324
17325fi
17326
17327done
17328
17329
a848cd7e
SC
17330
17331for ac_header in langinfo.h
17332do
17333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17334if eval "test \"\${$as_ac_Header+set}\" = set"; then
17335 echo "$as_me:$LINENO: checking for $ac_header" >&5
17336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17337if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339fi
17340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17342else
17343 # Is the header compilable?
17344echo "$as_me:$LINENO: checking $ac_header usability" >&5
17345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17346cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
17352$ac_includes_default
17353#include <$ac_header>
17354_ACEOF
17355rm -f conftest.$ac_objext
17356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17357 (eval $ac_compile) 2>conftest.er1
a848cd7e 17358 ac_status=$?
ac1cb8d3
VS
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
a848cd7e
SC
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
ca5c6ac3 17364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_header_compiler=yes
17377else
17378 echo "$as_me: failed program was:" >&5
17379sed 's/^/| /' conftest.$ac_ext >&5
17380
17381ac_header_compiler=no
17382fi
ac1cb8d3 17383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385echo "${ECHO_T}$ac_header_compiler" >&6
17386
17387# Is the header present?
17388echo "$as_me:$LINENO: checking $ac_header presence" >&5
17389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17390cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396#include <$ac_header>
17397_ACEOF
17398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } >/dev/null; then
17406 if test -s conftest.err; then
5d7b7554
VZ
17407 ac_cpp_err=$ac_cxx_preproc_warn_flag
17408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17409 else
17410 ac_cpp_err=
17411 fi
17412else
17413 ac_cpp_err=yes
17414fi
17415if test -z "$ac_cpp_err"; then
17416 ac_header_preproc=yes
17417else
17418 echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_header_preproc=no
17422fi
17423rm -f conftest.err conftest.$ac_ext
17424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17425echo "${ECHO_T}$ac_header_preproc" >&6
17426
17427# So? What about this header?
5d7b7554 17428case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17429 yes:no: )
a848cd7e
SC
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17434 ac_header_preproc=yes
a848cd7e 17435 ;;
ac1cb8d3 17436 no:yes:* )
a848cd7e
SC
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17449 (
17450 cat <<\_ASBOX
ac1cb8d3
VS
17451## ----------------------------------------- ##
17452## Report this to wx-dev@lists.wxwidgets.org ##
17453## ----------------------------------------- ##
a848cd7e
SC
17454_ASBOX
17455 ) |
17456 sed "s/^/$as_me: WARNING: /" >&2
17457 ;;
17458esac
17459echo "$as_me:$LINENO: checking for $ac_header" >&5
17460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17461if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463else
ac1cb8d3 17464 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17465fi
17466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17468
17469fi
17470if test `eval echo '${'$as_ac_Header'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17473_ACEOF
17474
17475fi
17476
17477done
17478
17479
17480case "${host}" in
17481 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17482 if test $ac_cv_header_langinfo_h = "yes" \
17483 -a \( "$wx_cv_gccversion" = "EMX2" \
17484 -o "$wx_cv_gccversion" = "EMX3" \
17485 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17486 LIBS="$LIBS -lintl"
17487 fi
17488 ;;
17489esac
17490
bc023abb
MW
17491if test "$USE_UNIX" = 1 ; then
17492
17493for ac_header in sys/select.h
17494do
17495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17496if eval "test \"\${$as_ac_Header+set}\" = set"; then
17497 echo "$as_me:$LINENO: checking for $ac_header" >&5
17498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17499if eval "test \"\${$as_ac_Header+set}\" = set"; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501fi
17502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17504else
17505 # Is the header compilable?
17506echo "$as_me:$LINENO: checking $ac_header usability" >&5
17507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17508cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514$ac_includes_default
17515#include <$ac_header>
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17519 (eval $ac_compile) 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
ca5c6ac3 17526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_header_compiler=yes
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543ac_header_compiler=no
17544fi
17545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17547echo "${ECHO_T}$ac_header_compiler" >&6
17548
17549# Is the header present?
17550echo "$as_me:$LINENO: checking $ac_header presence" >&5
17551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17552cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558#include <$ac_header>
17559_ACEOF
17560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } >/dev/null; then
17568 if test -s conftest.err; then
17569 ac_cpp_err=$ac_cxx_preproc_warn_flag
17570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17571 else
17572 ac_cpp_err=
17573 fi
17574else
17575 ac_cpp_err=yes
17576fi
17577if test -z "$ac_cpp_err"; then
17578 ac_header_preproc=yes
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 ac_header_preproc=no
17584fi
17585rm -f conftest.err conftest.$ac_ext
17586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17587echo "${ECHO_T}$ac_header_preproc" >&6
17588
17589# So? What about this header?
17590case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17591 yes:no: )
17592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17596 ac_header_preproc=yes
17597 ;;
17598 no:yes:* )
17599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17611 (
17612 cat <<\_ASBOX
17613## ----------------------------------------- ##
17614## Report this to wx-dev@lists.wxwidgets.org ##
17615## ----------------------------------------- ##
17616_ASBOX
17617 ) |
17618 sed "s/^/$as_me: WARNING: /" >&2
17619 ;;
17620esac
17621echo "$as_me:$LINENO: checking for $ac_header" >&5
17622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17623if eval "test \"\${$as_ac_Header+set}\" = set"; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 eval "$as_ac_Header=\$ac_header_preproc"
17627fi
17628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17630
17631fi
17632if test `eval echo '${'$as_ac_Header'}'` = yes; then
17633 cat >>confdefs.h <<_ACEOF
17634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17635_ACEOF
17636
17637fi
17638
17639done
17640
17641fi
17642
a848cd7e
SC
17643
17644echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17645echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17646if test "${ac_cv_c_const+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648else
17649 cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655
17656int
17657main ()
17658{
17659/* FIXME: Include the comments suggested by Paul. */
17660#ifndef __cplusplus
17661 /* Ultrix mips cc rejects this. */
17662 typedef int charset[2];
17663 const charset x;
17664 /* SunOS 4.1.1 cc rejects this. */
17665 char const *const *ccp;
17666 char **p;
17667 /* NEC SVR4.0.2 mips cc rejects this. */
17668 struct point {int x, y;};
17669 static struct point const zero = {0,0};
17670 /* AIX XL C 1.02.0.0 rejects this.
17671 It does not let you subtract one const X* pointer from another in
17672 an arm of an if-expression whose if-part is not a constant
17673 expression */
17674 const char *g = "string";
17675 ccp = &g + (g ? g-g : 0);
17676 /* HPUX 7.0 cc rejects these. */
17677 ++ccp;
17678 p = (char**) ccp;
17679 ccp = (char const *const *) p;
17680 { /* SCO 3.2v4 cc rejects this. */
17681 char *t;
17682 char const *s = 0 ? (char *) 0 : (char const *) 0;
17683
17684 *t++ = 0;
17685 }
17686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17687 int x[] = {25, 17};
17688 const int *foo = &x[0];
17689 ++foo;
17690 }
17691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17692 typedef const int *iptr;
17693 iptr p = 0;
17694 ++p;
17695 }
17696 { /* AIX XL C 1.02.0.0 rejects this saying
17697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17698 struct s { int j; const int *ap[3]; };
17699 struct s *b; b->j = 5;
17700 }
17701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17702 const int foo = 10;
17703 }
17704#endif
17705
17706 ;
17707 return 0;
17708}
17709_ACEOF
17710rm -f conftest.$ac_objext
17711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17712 (eval $ac_compile) 2>conftest.er1
a848cd7e 17713 ac_status=$?
ac1cb8d3
VS
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
a848cd7e
SC
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
ca5c6ac3 17719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_c_const=yes
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736ac_cv_c_const=no
17737fi
ac1cb8d3 17738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17739fi
17740echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17741echo "${ECHO_T}$ac_cv_c_const" >&6
17742if test $ac_cv_c_const = no; then
17743
17744cat >>confdefs.h <<\_ACEOF
17745#define const
17746_ACEOF
17747
17748fi
17749
17750echo "$as_me:$LINENO: checking for inline" >&5
17751echo $ECHO_N "checking for inline... $ECHO_C" >&6
17752if test "${ac_cv_c_inline+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755 ac_cv_c_inline=no
17756for ac_kw in inline __inline__ __inline; do
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763#ifndef __cplusplus
17764typedef int foo_t;
17765static $ac_kw foo_t static_foo () {return 0; }
17766$ac_kw foo_t foo () {return 0; }
17767#endif
17768
17769_ACEOF
17770rm -f conftest.$ac_objext
17771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17772 (eval $ac_compile) 2>conftest.er1
a848cd7e 17773 ac_status=$?
ac1cb8d3
VS
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
a848cd7e
SC
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
ca5c6ac3 17779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_c_inline=$ac_kw; break
17792else
17793 echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796fi
ac1cb8d3 17797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17798done
17799
17800fi
17801echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17802echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17803
17804
a848cd7e
SC
17805case $ac_cv_c_inline in
17806 inline | yes) ;;
ac1cb8d3
VS
17807 *)
17808 case $ac_cv_c_inline in
17809 no) ac_val=;;
17810 *) ac_val=$ac_cv_c_inline;;
17811 esac
17812 cat >>confdefs.h <<_ACEOF
17813#ifndef __cplusplus
17814#define inline $ac_val
17815#endif
de59c161 17816_ACEOF
ac1cb8d3 17817 ;;
a848cd7e
SC
17818esac
17819
17820
17821echo "$as_me:$LINENO: checking for char" >&5
17822echo $ECHO_N "checking for char... $ECHO_C" >&6
17823if test "${ac_cv_type_char+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825else
17826 cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
17833int
17834main ()
17835{
17836if ((char *) 0)
17837 return 0;
17838if (sizeof (char))
17839 return 0;
17840 ;
17841 return 0;
17842}
17843_ACEOF
17844rm -f conftest.$ac_objext
17845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17846 (eval $ac_compile) 2>conftest.er1
a848cd7e 17847 ac_status=$?
ac1cb8d3
VS
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
a848cd7e
SC
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
ca5c6ac3 17853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_type_char=yes
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870ac_cv_type_char=no
17871fi
ac1cb8d3 17872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17873fi
17874echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17875echo "${ECHO_T}$ac_cv_type_char" >&6
17876
17877echo "$as_me:$LINENO: checking size of char" >&5
17878echo $ECHO_N "checking size of char... $ECHO_C" >&6
17879if test "${ac_cv_sizeof_char+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881else
17882 if test "$ac_cv_type_char" = yes; then
17883 # The cast to unsigned long works around a bug in the HP C Compiler
17884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17886 # This bug is HP SR number 8606223364.
17887 if test "$cross_compiling" = yes; then
17888 # Depending upon the size, compute the lo and hi bounds.
17889cat >conftest.$ac_ext <<_ACEOF
17890/* confdefs.h. */
17891_ACEOF
17892cat confdefs.h >>conftest.$ac_ext
17893cat >>conftest.$ac_ext <<_ACEOF
17894/* end confdefs.h. */
17895$ac_includes_default
17896int
17897main ()
17898{
17899static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17900test_array [0] = 0
17901
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17908 (eval $ac_compile) 2>conftest.er1
a848cd7e 17909 ac_status=$?
ac1cb8d3
VS
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
a848cd7e
SC
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
ca5c6ac3 17915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_lo=0 ac_mid=0
17928 while :; do
17929 cat >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$ac_includes_default
17936int
17937main ()
17938{
17939static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17940test_array [0] = 0
17941
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext
17947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17948 (eval $ac_compile) 2>conftest.er1
a848cd7e 17949 ac_status=$?
ac1cb8d3
VS
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
a848cd7e
SC
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
ca5c6ac3 17955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_hi=$ac_mid; break
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17973 if test $ac_lo -le $ac_mid; then
17974 ac_lo= ac_hi=
17975 break
17976 fi
17977 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17978fi
ac1cb8d3 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17980 done
17981else
17982 echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985cat >conftest.$ac_ext <<_ACEOF
17986/* confdefs.h. */
17987_ACEOF
17988cat confdefs.h >>conftest.$ac_ext
17989cat >>conftest.$ac_ext <<_ACEOF
17990/* end confdefs.h. */
17991$ac_includes_default
17992int
17993main ()
17994{
17995static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17996test_array [0] = 0
17997
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext
18003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18004 (eval $ac_compile) 2>conftest.er1
a848cd7e 18005 ac_status=$?
ac1cb8d3
VS
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
a848cd7e
SC
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
ca5c6ac3 18011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_hi=-1 ac_mid=-1
18024 while :; do
18025 cat >conftest.$ac_ext <<_ACEOF
18026/* confdefs.h. */
18027_ACEOF
18028cat confdefs.h >>conftest.$ac_ext
18029cat >>conftest.$ac_ext <<_ACEOF
18030/* end confdefs.h. */
18031$ac_includes_default
18032int
18033main ()
18034{
18035static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18036test_array [0] = 0
18037
18038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest.$ac_objext
18043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18044 (eval $ac_compile) 2>conftest.er1
a848cd7e 18045 ac_status=$?
ac1cb8d3
VS
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
a848cd7e
SC
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
ca5c6ac3 18051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_lo=$ac_mid; break
18064else
18065 echo "$as_me: failed program was:" >&5
18066sed 's/^/| /' conftest.$ac_ext >&5
18067
18068ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18069 if test $ac_mid -le $ac_hi; then
18070 ac_lo= ac_hi=
18071 break
18072 fi
18073 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18074fi
ac1cb8d3 18075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18076 done
18077else
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081ac_lo= ac_hi=
18082fi
ac1cb8d3 18083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18084fi
ac1cb8d3 18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18086# Binary search between lo and hi bounds.
18087while test "x$ac_lo" != "x$ac_hi"; do
18088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095$ac_includes_default
18096int
18097main ()
18098{
18099static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18100test_array [0] = 0
18101
18102 ;
18103 return 0;
18104}
18105_ACEOF
18106rm -f conftest.$ac_objext
18107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18108 (eval $ac_compile) 2>conftest.er1
a848cd7e 18109 ac_status=$?
ac1cb8d3
VS
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
a848cd7e
SC
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
ca5c6ac3 18115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_hi=$ac_mid
18128else
18129 echo "$as_me: failed program was:" >&5
18130sed 's/^/| /' conftest.$ac_ext >&5
18131
18132ac_lo=`expr '(' $ac_mid ')' + 1`
18133fi
ac1cb8d3 18134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18135done
18136case $ac_lo in
18137?*) ac_cv_sizeof_char=$ac_lo;;
18138'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18139See \`config.log' for more details." >&5
18140echo "$as_me: error: cannot compute sizeof (char), 77
18141See \`config.log' for more details." >&2;}
18142 { (exit 1); exit 1; }; } ;;
18143esac
18144else
18145 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18146 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18147echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18148 { (exit 1); exit 1; }; }
18149else
18150 cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156$ac_includes_default
18157long longval () { return (long) (sizeof (char)); }
18158unsigned long ulongval () { return (long) (sizeof (char)); }
18159#include <stdio.h>
18160#include <stdlib.h>
18161int
18162main ()
18163{
18164
18165 FILE *f = fopen ("conftest.val", "w");
18166 if (! f)
18167 exit (1);
18168 if (((long) (sizeof (char))) < 0)
18169 {
18170 long i = longval ();
18171 if (i != ((long) (sizeof (char))))
18172 exit (1);
18173 fprintf (f, "%ld\n", i);
18174 }
18175 else
18176 {
18177 unsigned long i = ulongval ();
18178 if (i != ((long) (sizeof (char))))
18179 exit (1);
18180 fprintf (f, "%lu\n", i);
18181 }
18182 exit (ferror (f) || fclose (f) != 0);
18183
18184 ;
18185 return 0;
18186}
18187_ACEOF
18188rm -f conftest$ac_exeext
18189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_sizeof_char=`cat conftest.val`
18200else
18201 echo "$as_me: program exited with status $ac_status" >&5
18202echo "$as_me: failed program was:" >&5
18203sed 's/^/| /' conftest.$ac_ext >&5
18204
18205( exit $ac_status )
18206{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18207See \`config.log' for more details." >&5
18208echo "$as_me: error: cannot compute sizeof (char), 77
18209See \`config.log' for more details." >&2;}
18210 { (exit 1); exit 1; }; }
18211fi
ac1cb8d3 18212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18213fi
18214fi
18215rm -f conftest.val
18216else
18217 ac_cv_sizeof_char=0
18218fi
18219fi
18220echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18221echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18222cat >>confdefs.h <<_ACEOF
18223#define SIZEOF_CHAR $ac_cv_sizeof_char
18224_ACEOF
18225
18226
18227echo "$as_me:$LINENO: checking for short" >&5
18228echo $ECHO_N "checking for short... $ECHO_C" >&6
18229if test "${ac_cv_type_short+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231else
18232 cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238$ac_includes_default
18239int
18240main ()
18241{
18242if ((short *) 0)
18243 return 0;
18244if (sizeof (short))
18245 return 0;
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext
18251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18252 (eval $ac_compile) 2>conftest.er1
a848cd7e 18253 ac_status=$?
ac1cb8d3
VS
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
a848cd7e
SC
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
ca5c6ac3 18259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_cv_type_short=yes
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_cv_type_short=no
18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18279fi
18280echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18281echo "${ECHO_T}$ac_cv_type_short" >&6
18282
18283echo "$as_me:$LINENO: checking size of short" >&5
18284echo $ECHO_N "checking size of short... $ECHO_C" >&6
18285if test "${ac_cv_sizeof_short+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288 if test "$ac_cv_type_short" = yes; then
18289 # The cast to unsigned long works around a bug in the HP C Compiler
18290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18292 # This bug is HP SR number 8606223364.
18293 if test "$cross_compiling" = yes; then
18294 # Depending upon the size, compute the lo and hi bounds.
18295cat >conftest.$ac_ext <<_ACEOF
18296/* confdefs.h. */
18297_ACEOF
18298cat confdefs.h >>conftest.$ac_ext
18299cat >>conftest.$ac_ext <<_ACEOF
18300/* end confdefs.h. */
18301$ac_includes_default
18302int
18303main ()
18304{
18305static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18306test_array [0] = 0
18307
18308 ;
18309 return 0;
18310}
18311_ACEOF
18312rm -f conftest.$ac_objext
18313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18314 (eval $ac_compile) 2>conftest.er1
a848cd7e 18315 ac_status=$?
ac1cb8d3
VS
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
a848cd7e
SC
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
ca5c6ac3 18321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_lo=0 ac_mid=0
18334 while :; do
18335 cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
18341$ac_includes_default
18342int
18343main ()
18344{
18345static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18346test_array [0] = 0
18347
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext
18353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18354 (eval $ac_compile) 2>conftest.er1
a848cd7e 18355 ac_status=$?
ac1cb8d3
VS
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
a848cd7e
SC
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
ca5c6ac3 18361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_hi=$ac_mid; break
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18379 if test $ac_lo -le $ac_mid; then
18380 ac_lo= ac_hi=
18381 break
18382 fi
18383 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18384fi
ac1cb8d3 18385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18386 done
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397$ac_includes_default
18398int
18399main ()
18400{
18401static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18402test_array [0] = 0
18403
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext
18409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18410 (eval $ac_compile) 2>conftest.er1
a848cd7e 18411 ac_status=$?
ac1cb8d3
VS
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
a848cd7e
SC
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
ca5c6ac3 18417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_hi=-1 ac_mid=-1
18430 while :; do
18431 cat >conftest.$ac_ext <<_ACEOF
18432/* confdefs.h. */
18433_ACEOF
18434cat confdefs.h >>conftest.$ac_ext
18435cat >>conftest.$ac_ext <<_ACEOF
18436/* end confdefs.h. */
18437$ac_includes_default
18438int
18439main ()
18440{
18441static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18442test_array [0] = 0
18443
18444 ;
18445 return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext
18449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18450 (eval $ac_compile) 2>conftest.er1
a848cd7e 18451 ac_status=$?
ac1cb8d3
VS
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
a848cd7e
SC
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
ca5c6ac3 18457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_lo=$ac_mid; break
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18475 if test $ac_mid -le $ac_hi; then
18476 ac_lo= ac_hi=
18477 break
18478 fi
18479 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18480fi
ac1cb8d3 18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18482 done
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487ac_lo= ac_hi=
18488fi
ac1cb8d3 18489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18490fi
ac1cb8d3 18491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18492# Binary search between lo and hi bounds.
18493while test "x$ac_lo" != "x$ac_hi"; do
18494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
ca5c6ac3 18521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_hi=$ac_mid
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538ac_lo=`expr '(' $ac_mid ')' + 1`
18539fi
ac1cb8d3 18540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18541done
18542case $ac_lo in
18543?*) ac_cv_sizeof_short=$ac_lo;;
18544'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18545See \`config.log' for more details." >&5
18546echo "$as_me: error: cannot compute sizeof (short), 77
18547See \`config.log' for more details." >&2;}
18548 { (exit 1); exit 1; }; } ;;
18549esac
18550else
18551 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18552 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18553echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18554 { (exit 1); exit 1; }; }
18555else
18556 cat >conftest.$ac_ext <<_ACEOF
18557/* confdefs.h. */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h. */
18562$ac_includes_default
18563long longval () { return (long) (sizeof (short)); }
18564unsigned long ulongval () { return (long) (sizeof (short)); }
18565#include <stdio.h>
18566#include <stdlib.h>
18567int
18568main ()
18569{
18570
18571 FILE *f = fopen ("conftest.val", "w");
18572 if (! f)
18573 exit (1);
18574 if (((long) (sizeof (short))) < 0)
18575 {
18576 long i = longval ();
18577 if (i != ((long) (sizeof (short))))
18578 exit (1);
18579 fprintf (f, "%ld\n", i);
18580 }
18581 else
18582 {
18583 unsigned long i = ulongval ();
18584 if (i != ((long) (sizeof (short))))
18585 exit (1);
18586 fprintf (f, "%lu\n", i);
18587 }
18588 exit (ferror (f) || fclose (f) != 0);
18589
18590 ;
18591 return 0;
18592}
18593_ACEOF
18594rm -f conftest$ac_exeext
18595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18596 (eval $ac_link) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_sizeof_short=`cat conftest.val`
18606else
18607 echo "$as_me: program exited with status $ac_status" >&5
18608echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611( exit $ac_status )
18612{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18613See \`config.log' for more details." >&5
18614echo "$as_me: error: cannot compute sizeof (short), 77
18615See \`config.log' for more details." >&2;}
18616 { (exit 1); exit 1; }; }
18617fi
ac1cb8d3 18618rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18619fi
18620fi
18621rm -f conftest.val
18622else
18623 ac_cv_sizeof_short=0
18624fi
18625fi
18626echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18627echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18628cat >>confdefs.h <<_ACEOF
18629#define SIZEOF_SHORT $ac_cv_sizeof_short
18630_ACEOF
18631
18632
18633echo "$as_me:$LINENO: checking for void *" >&5
18634echo $ECHO_N "checking for void *... $ECHO_C" >&6
18635if test "${ac_cv_type_void_p+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18637else
18638 cat >conftest.$ac_ext <<_ACEOF
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
18644$ac_includes_default
18645int
18646main ()
18647{
18648if ((void * *) 0)
18649 return 0;
18650if (sizeof (void *))
18651 return 0;
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656rm -f conftest.$ac_objext
18657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18658 (eval $ac_compile) 2>conftest.er1
a848cd7e 18659 ac_status=$?
ac1cb8d3
VS
18660 grep -v '^ *+' conftest.er1 >conftest.err
18661 rm -f conftest.er1
18662 cat conftest.err >&5
a848cd7e
SC
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
ca5c6ac3 18665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 ac_cv_type_void_p=yes
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682ac_cv_type_void_p=no
18683fi
ac1cb8d3 18684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18685fi
18686echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18687echo "${ECHO_T}$ac_cv_type_void_p" >&6
18688
18689echo "$as_me:$LINENO: checking size of void *" >&5
18690echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18691if test "${ac_cv_sizeof_void_p+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693else
18694 if test "$ac_cv_type_void_p" = yes; then
18695 # The cast to unsigned long works around a bug in the HP C Compiler
18696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18698 # This bug is HP SR number 8606223364.
18699 if test "$cross_compiling" = yes; then
18700 # Depending upon the size, compute the lo and hi bounds.
18701cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
18707$ac_includes_default
18708int
18709main ()
18710{
18711static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18712test_array [0] = 0
18713
18714 ;
18715 return 0;
18716}
18717_ACEOF
18718rm -f conftest.$ac_objext
18719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18720 (eval $ac_compile) 2>conftest.er1
a848cd7e 18721 ac_status=$?
ac1cb8d3
VS
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
a848cd7e
SC
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
ca5c6ac3 18727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_lo=0 ac_mid=0
18740 while :; do
18741 cat >conftest.$ac_ext <<_ACEOF
18742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
18747$ac_includes_default
18748int
18749main ()
18750{
18751static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18752test_array [0] = 0
18753
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext
18759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18760 (eval $ac_compile) 2>conftest.er1
a848cd7e 18761 ac_status=$?
ac1cb8d3
VS
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
a848cd7e
SC
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
ca5c6ac3 18767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_hi=$ac_mid; break
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18785 if test $ac_lo -le $ac_mid; then
18786 ac_lo= ac_hi=
18787 break
18788 fi
18789 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18790fi
ac1cb8d3 18791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18792 done
18793else
18794 echo "$as_me: failed program was:" >&5
18795sed 's/^/| /' conftest.$ac_ext >&5
18796
18797cat >conftest.$ac_ext <<_ACEOF
18798/* confdefs.h. */
18799_ACEOF
18800cat confdefs.h >>conftest.$ac_ext
18801cat >>conftest.$ac_ext <<_ACEOF
18802/* end confdefs.h. */
18803$ac_includes_default
18804int
18805main ()
18806{
18807static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18808test_array [0] = 0
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest.$ac_objext
18815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18816 (eval $ac_compile) 2>conftest.er1
a848cd7e 18817 ac_status=$?
ac1cb8d3
VS
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
a848cd7e
SC
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
ca5c6ac3 18823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 ac_hi=-1 ac_mid=-1
18836 while :; do
18837 cat >conftest.$ac_ext <<_ACEOF
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843$ac_includes_default
18844int
18845main ()
18846{
18847static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18848test_array [0] = 0
18849
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext
18855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18856 (eval $ac_compile) 2>conftest.er1
a848cd7e 18857 ac_status=$?
ac1cb8d3
VS
18858 grep -v '^ *+' conftest.er1 >conftest.err
18859 rm -f conftest.er1
18860 cat conftest.err >&5
a848cd7e
SC
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
ca5c6ac3 18863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 ac_lo=$ac_mid; break
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18881 if test $ac_mid -le $ac_hi; then
18882 ac_lo= ac_hi=
18883 break
18884 fi
18885 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18886fi
ac1cb8d3 18887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18888 done
18889else
18890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893ac_lo= ac_hi=
18894fi
ac1cb8d3 18895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18896fi
ac1cb8d3 18897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18898# Binary search between lo and hi bounds.
18899while test "x$ac_lo" != "x$ac_hi"; do
18900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
18907$ac_includes_default
18908int
18909main ()
18910{
18911static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18912test_array [0] = 0
18913
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext
18919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18920 (eval $ac_compile) 2>conftest.er1
a848cd7e 18921 ac_status=$?
ac1cb8d3
VS
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
a848cd7e
SC
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
ca5c6ac3 18927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_hi=$ac_mid
18940else
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944ac_lo=`expr '(' $ac_mid ')' + 1`
18945fi
ac1cb8d3 18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18947done
18948case $ac_lo in
18949?*) ac_cv_sizeof_void_p=$ac_lo;;
18950'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18951See \`config.log' for more details." >&5
18952echo "$as_me: error: cannot compute sizeof (void *), 77
18953See \`config.log' for more details." >&2;}
18954 { (exit 1); exit 1; }; } ;;
18955esac
18956else
18957 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18958 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18959echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18960 { (exit 1); exit 1; }; }
18961else
18962 cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
18968$ac_includes_default
18969long longval () { return (long) (sizeof (void *)); }
18970unsigned long ulongval () { return (long) (sizeof (void *)); }
18971#include <stdio.h>
18972#include <stdlib.h>
18973int
18974main ()
18975{
18976
18977 FILE *f = fopen ("conftest.val", "w");
18978 if (! f)
18979 exit (1);
18980 if (((long) (sizeof (void *))) < 0)
18981 {
18982 long i = longval ();
18983 if (i != ((long) (sizeof (void *))))
18984 exit (1);
18985 fprintf (f, "%ld\n", i);
18986 }
18987 else
18988 {
18989 unsigned long i = ulongval ();
18990 if (i != ((long) (sizeof (void *))))
18991 exit (1);
18992 fprintf (f, "%lu\n", i);
18993 }
18994 exit (ferror (f) || fclose (f) != 0);
18995
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000rm -f conftest$ac_exeext
19001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19002 (eval $ac_link) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_sizeof_void_p=`cat conftest.val`
19012else
19013 echo "$as_me: program exited with status $ac_status" >&5
19014echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017( exit $ac_status )
19018{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19019See \`config.log' for more details." >&5
19020echo "$as_me: error: cannot compute sizeof (void *), 77
19021See \`config.log' for more details." >&2;}
19022 { (exit 1); exit 1; }; }
19023fi
ac1cb8d3 19024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19025fi
19026fi
19027rm -f conftest.val
19028else
19029 ac_cv_sizeof_void_p=0
19030fi
19031fi
19032echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19033echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19034cat >>confdefs.h <<_ACEOF
19035#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19036_ACEOF
19037
19038
19039echo "$as_me:$LINENO: checking for int" >&5
19040echo $ECHO_N "checking for int... $ECHO_C" >&6
19041if test "${ac_cv_type_int+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050$ac_includes_default
19051int
19052main ()
19053{
19054if ((int *) 0)
19055 return 0;
19056if (sizeof (int))
19057 return 0;
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19064 (eval $ac_compile) 2>conftest.er1
a848cd7e 19065 ac_status=$?
ac1cb8d3
VS
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
a848cd7e
SC
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
ca5c6ac3 19071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_type_int=yes
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088ac_cv_type_int=no
19089fi
ac1cb8d3 19090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19091fi
19092echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19093echo "${ECHO_T}$ac_cv_type_int" >&6
19094
19095echo "$as_me:$LINENO: checking size of int" >&5
19096echo $ECHO_N "checking size of int... $ECHO_C" >&6
19097if test "${ac_cv_sizeof_int+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100 if test "$ac_cv_type_int" = yes; then
19101 # The cast to unsigned long works around a bug in the HP C Compiler
19102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19104 # This bug is HP SR number 8606223364.
19105 if test "$cross_compiling" = yes; then
19106 # Depending upon the size, compute the lo and hi bounds.
19107cat >conftest.$ac_ext <<_ACEOF
19108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
19113$ac_includes_default
19114int
19115main ()
19116{
19117static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19118test_array [0] = 0
19119
19120 ;
19121 return 0;
19122}
19123_ACEOF
19124rm -f conftest.$ac_objext
19125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19126 (eval $ac_compile) 2>conftest.er1
a848cd7e 19127 ac_status=$?
ac1cb8d3
VS
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
a848cd7e
SC
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
ca5c6ac3 19133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_lo=0 ac_mid=0
19146 while :; do
19147 cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h. */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h. */
19153$ac_includes_default
19154int
19155main ()
19156{
19157static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19158test_array [0] = 0
19159
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext
19165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19166 (eval $ac_compile) 2>conftest.er1
a848cd7e 19167 ac_status=$?
ac1cb8d3
VS
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
a848cd7e
SC
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
ca5c6ac3 19173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_hi=$ac_mid; break
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19191 if test $ac_lo -le $ac_mid; then
19192 ac_lo= ac_hi=
19193 break
19194 fi
19195 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19196fi
ac1cb8d3 19197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19198 done
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209$ac_includes_default
19210int
19211main ()
19212{
19213static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19214test_array [0] = 0
19215
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19222 (eval $ac_compile) 2>conftest.er1
a848cd7e 19223 ac_status=$?
ac1cb8d3
VS
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
a848cd7e
SC
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
ca5c6ac3 19229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 ac_hi=-1 ac_mid=-1
19242 while :; do
19243 cat >conftest.$ac_ext <<_ACEOF
19244/* confdefs.h. */
19245_ACEOF
19246cat confdefs.h >>conftest.$ac_ext
19247cat >>conftest.$ac_ext <<_ACEOF
19248/* end confdefs.h. */
19249$ac_includes_default
19250int
19251main ()
19252{
19253static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19254test_array [0] = 0
19255
19256 ;
19257 return 0;
19258}
19259_ACEOF
19260rm -f conftest.$ac_objext
19261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19262 (eval $ac_compile) 2>conftest.er1
a848cd7e 19263 ac_status=$?
ac1cb8d3
VS
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
a848cd7e
SC
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
ca5c6ac3 19269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_lo=$ac_mid; break
19282else
19283 echo "$as_me: failed program was:" >&5
19284sed 's/^/| /' conftest.$ac_ext >&5
19285
19286ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19287 if test $ac_mid -le $ac_hi; then
19288 ac_lo= ac_hi=
19289 break
19290 fi
19291 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19292fi
ac1cb8d3 19293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19294 done
19295else
19296 echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299ac_lo= ac_hi=
19300fi
ac1cb8d3 19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19302fi
ac1cb8d3 19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19304# Binary search between lo and hi bounds.
19305while test "x$ac_lo" != "x$ac_hi"; do
19306 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313$ac_includes_default
19314int
19315main ()
19316{
19317static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19318test_array [0] = 0
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19326 (eval $ac_compile) 2>conftest.er1
a848cd7e 19327 ac_status=$?
ac1cb8d3
VS
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
a848cd7e
SC
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
ca5c6ac3 19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_hi=$ac_mid
19346else
19347 echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350ac_lo=`expr '(' $ac_mid ')' + 1`
19351fi
ac1cb8d3 19352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19353done
19354case $ac_lo in
19355?*) ac_cv_sizeof_int=$ac_lo;;
19356'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19357See \`config.log' for more details." >&5
19358echo "$as_me: error: cannot compute sizeof (int), 77
19359See \`config.log' for more details." >&2;}
19360 { (exit 1); exit 1; }; } ;;
19361esac
19362else
19363 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19364 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19365echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19366 { (exit 1); exit 1; }; }
19367else
19368 cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374$ac_includes_default
19375long longval () { return (long) (sizeof (int)); }
19376unsigned long ulongval () { return (long) (sizeof (int)); }
19377#include <stdio.h>
19378#include <stdlib.h>
19379int
19380main ()
19381{
19382
19383 FILE *f = fopen ("conftest.val", "w");
19384 if (! f)
19385 exit (1);
19386 if (((long) (sizeof (int))) < 0)
19387 {
19388 long i = longval ();
19389 if (i != ((long) (sizeof (int))))
19390 exit (1);
19391 fprintf (f, "%ld\n", i);
19392 }
19393 else
19394 {
19395 unsigned long i = ulongval ();
19396 if (i != ((long) (sizeof (int))))
19397 exit (1);
19398 fprintf (f, "%lu\n", i);
19399 }
19400 exit (ferror (f) || fclose (f) != 0);
19401
19402 ;
19403 return 0;
19404}
19405_ACEOF
19406rm -f conftest$ac_exeext
19407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19408 (eval $ac_link) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_sizeof_int=`cat conftest.val`
19418else
19419 echo "$as_me: program exited with status $ac_status" >&5
19420echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
19423( exit $ac_status )
19424{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19425See \`config.log' for more details." >&5
19426echo "$as_me: error: cannot compute sizeof (int), 77
19427See \`config.log' for more details." >&2;}
19428 { (exit 1); exit 1; }; }
19429fi
ac1cb8d3 19430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431fi
19432fi
19433rm -f conftest.val
19434else
19435 ac_cv_sizeof_int=0
19436fi
19437fi
19438echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19439echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19440cat >>confdefs.h <<_ACEOF
19441#define SIZEOF_INT $ac_cv_sizeof_int
19442_ACEOF
19443
19444
19445echo "$as_me:$LINENO: checking for long" >&5
19446echo $ECHO_N "checking for long... $ECHO_C" >&6
19447if test "${ac_cv_type_long+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449else
19450 cat >conftest.$ac_ext <<_ACEOF
19451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
19456$ac_includes_default
19457int
19458main ()
19459{
19460if ((long *) 0)
19461 return 0;
19462if (sizeof (long))
19463 return 0;
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
19469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19470 (eval $ac_compile) 2>conftest.er1
a848cd7e 19471 ac_status=$?
ac1cb8d3
VS
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
a848cd7e
SC
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
ca5c6ac3 19477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19489 ac_cv_type_long=yes
19490else
19491 echo "$as_me: failed program was:" >&5
19492sed 's/^/| /' conftest.$ac_ext >&5
19493
19494ac_cv_type_long=no
19495fi
ac1cb8d3 19496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19497fi
19498echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19499echo "${ECHO_T}$ac_cv_type_long" >&6
19500
19501echo "$as_me:$LINENO: checking size of long" >&5
19502echo $ECHO_N "checking size of long... $ECHO_C" >&6
19503if test "${ac_cv_sizeof_long+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 if test "$ac_cv_type_long" = yes; then
19507 # The cast to unsigned long works around a bug in the HP C Compiler
19508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19510 # This bug is HP SR number 8606223364.
19511 if test "$cross_compiling" = yes; then
19512 # Depending upon the size, compute the lo and hi bounds.
19513cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519$ac_includes_default
19520int
19521main ()
19522{
19523static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19524test_array [0] = 0
19525
19526 ;
19527 return 0;
19528}
19529_ACEOF
19530rm -f conftest.$ac_objext
19531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19532 (eval $ac_compile) 2>conftest.er1
a848cd7e 19533 ac_status=$?
ac1cb8d3
VS
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
a848cd7e
SC
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
ca5c6ac3 19539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_lo=0 ac_mid=0
19552 while :; do
19553 cat >conftest.$ac_ext <<_ACEOF
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h. */
19559$ac_includes_default
19560int
19561main ()
19562{
19563static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19564test_array [0] = 0
19565
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext
19571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19572 (eval $ac_compile) 2>conftest.er1
a848cd7e 19573 ac_status=$?
ac1cb8d3
VS
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
a848cd7e
SC
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
ca5c6ac3 19579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_hi=$ac_mid; break
19592else
19593 echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19597 if test $ac_lo -le $ac_mid; then
19598 ac_lo= ac_hi=
19599 break
19600 fi
19601 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19602fi
ac1cb8d3 19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19604 done
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615$ac_includes_default
19616int
19617main ()
19618{
19619static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19620test_array [0] = 0
19621
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext
19627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19628 (eval $ac_compile) 2>conftest.er1
a848cd7e 19629 ac_status=$?
ac1cb8d3
VS
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
a848cd7e
SC
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
ca5c6ac3 19635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 ac_hi=-1 ac_mid=-1
19648 while :; do
19649 cat >conftest.$ac_ext <<_ACEOF
19650/* confdefs.h. */
19651_ACEOF
19652cat confdefs.h >>conftest.$ac_ext
19653cat >>conftest.$ac_ext <<_ACEOF
19654/* end confdefs.h. */
19655$ac_includes_default
19656int
19657main ()
19658{
19659static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19660test_array [0] = 0
19661
19662 ;
19663 return 0;
19664}
19665_ACEOF
19666rm -f conftest.$ac_objext
19667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19668 (eval $ac_compile) 2>conftest.er1
a848cd7e 19669 ac_status=$?
ac1cb8d3
VS
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
a848cd7e
SC
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
ca5c6ac3 19675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_lo=$ac_mid; break
19688else
19689 echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19693 if test $ac_mid -le $ac_hi; then
19694 ac_lo= ac_hi=
19695 break
19696 fi
19697 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19698fi
ac1cb8d3 19699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19700 done
19701else
19702 echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
19705ac_lo= ac_hi=
19706fi
ac1cb8d3 19707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19708fi
ac1cb8d3 19709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19710# Binary search between lo and hi bounds.
19711while test "x$ac_lo" != "x$ac_hi"; do
19712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19713 cat >conftest.$ac_ext <<_ACEOF
19714/* confdefs.h. */
19715_ACEOF
19716cat confdefs.h >>conftest.$ac_ext
19717cat >>conftest.$ac_ext <<_ACEOF
19718/* end confdefs.h. */
19719$ac_includes_default
19720int
19721main ()
19722{
19723static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19724test_array [0] = 0
19725
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
19731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19732 (eval $ac_compile) 2>conftest.er1
a848cd7e 19733 ac_status=$?
ac1cb8d3
VS
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
a848cd7e
SC
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
ca5c6ac3 19739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19751 ac_hi=$ac_mid
19752else
19753 echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756ac_lo=`expr '(' $ac_mid ')' + 1`
19757fi
ac1cb8d3 19758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19759done
19760case $ac_lo in
19761?*) ac_cv_sizeof_long=$ac_lo;;
19762'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19763See \`config.log' for more details." >&5
19764echo "$as_me: error: cannot compute sizeof (long), 77
19765See \`config.log' for more details." >&2;}
19766 { (exit 1); exit 1; }; } ;;
19767esac
19768else
19769 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19770 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19771echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19772 { (exit 1); exit 1; }; }
19773else
19774 cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
19780$ac_includes_default
19781long longval () { return (long) (sizeof (long)); }
19782unsigned long ulongval () { return (long) (sizeof (long)); }
19783#include <stdio.h>
19784#include <stdlib.h>
19785int
19786main ()
19787{
19788
19789 FILE *f = fopen ("conftest.val", "w");
19790 if (! f)
19791 exit (1);
19792 if (((long) (sizeof (long))) < 0)
19793 {
19794 long i = longval ();
19795 if (i != ((long) (sizeof (long))))
19796 exit (1);
19797 fprintf (f, "%ld\n", i);
19798 }
19799 else
19800 {
19801 unsigned long i = ulongval ();
19802 if (i != ((long) (sizeof (long))))
19803 exit (1);
19804 fprintf (f, "%lu\n", i);
19805 }
19806 exit (ferror (f) || fclose (f) != 0);
19807
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest$ac_exeext
19813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19814 (eval $ac_link) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_cv_sizeof_long=`cat conftest.val`
19824else
19825 echo "$as_me: program exited with status $ac_status" >&5
19826echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829( exit $ac_status )
19830{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19831See \`config.log' for more details." >&5
19832echo "$as_me: error: cannot compute sizeof (long), 77
19833See \`config.log' for more details." >&2;}
19834 { (exit 1); exit 1; }; }
19835fi
ac1cb8d3 19836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19837fi
19838fi
19839rm -f conftest.val
19840else
19841 ac_cv_sizeof_long=0
19842fi
19843fi
19844echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19845echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19846cat >>confdefs.h <<_ACEOF
19847#define SIZEOF_LONG $ac_cv_sizeof_long
19848_ACEOF
19849
19850
19851echo "$as_me:$LINENO: checking for size_t" >&5
19852echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19853if test "${ac_cv_type_size_t+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855else
19856 cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
19862$ac_includes_default
19863int
19864main ()
19865{
19866if ((size_t *) 0)
19867 return 0;
19868if (sizeof (size_t))
19869 return 0;
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874rm -f conftest.$ac_objext
19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19876 (eval $ac_compile) 2>conftest.er1
a848cd7e 19877 ac_status=$?
ac1cb8d3
VS
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
a848cd7e
SC
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
ca5c6ac3 19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_type_size_t=yes
19896else
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900ac_cv_type_size_t=no
19901fi
ac1cb8d3 19902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19903fi
19904echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19905echo "${ECHO_T}$ac_cv_type_size_t" >&6
19906
19907echo "$as_me:$LINENO: checking size of size_t" >&5
19908echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19909if test "${ac_cv_sizeof_size_t+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911else
19912 if test "$ac_cv_type_size_t" = yes; then
19913 # The cast to unsigned long works around a bug in the HP C Compiler
19914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19916 # This bug is HP SR number 8606223364.
19917 if test "$cross_compiling" = yes; then
19918 # Depending upon the size, compute the lo and hi bounds.
19919cat >conftest.$ac_ext <<_ACEOF
19920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925$ac_includes_default
19926int
19927main ()
19928{
19929static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19930test_array [0] = 0
19931
19932 ;
19933 return 0;
19934}
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19938 (eval $ac_compile) 2>conftest.er1
a848cd7e 19939 ac_status=$?
ac1cb8d3
VS
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
a848cd7e
SC
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
ca5c6ac3 19945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_lo=0 ac_mid=0
19958 while :; do
19959 cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966int
19967main ()
19968{
19969static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19970test_array [0] = 0
19971
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19978 (eval $ac_compile) 2>conftest.er1
a848cd7e 19979 ac_status=$?
ac1cb8d3
VS
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
a848cd7e
SC
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
ca5c6ac3 19985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_hi=$ac_mid; break
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20003 if test $ac_lo -le $ac_mid; then
20004 ac_lo= ac_hi=
20005 break
20006 fi
20007 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20008fi
ac1cb8d3 20009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20010 done
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015cat >conftest.$ac_ext <<_ACEOF
20016/* confdefs.h. */
20017_ACEOF
20018cat confdefs.h >>conftest.$ac_ext
20019cat >>conftest.$ac_ext <<_ACEOF
20020/* end confdefs.h. */
20021$ac_includes_default
20022int
20023main ()
20024{
20025static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20026test_array [0] = 0
20027
20028 ;
20029 return 0;
20030}
20031_ACEOF
20032rm -f conftest.$ac_objext
20033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20034 (eval $ac_compile) 2>conftest.er1
a848cd7e 20035 ac_status=$?
ac1cb8d3
VS
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
a848cd7e
SC
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
ca5c6ac3 20041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 ac_hi=-1 ac_mid=-1
20054 while :; do
20055 cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h. */
20061$ac_includes_default
20062int
20063main ()
20064{
20065static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20066test_array [0] = 0
20067
20068 ;
20069 return 0;
20070}
20071_ACEOF
20072rm -f conftest.$ac_objext
20073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20074 (eval $ac_compile) 2>conftest.er1
a848cd7e 20075 ac_status=$?
ac1cb8d3
VS
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
a848cd7e
SC
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
ca5c6ac3 20081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_lo=$ac_mid; break
20094else
20095 echo "$as_me: failed program was:" >&5
20096sed 's/^/| /' conftest.$ac_ext >&5
20097
20098ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20099 if test $ac_mid -le $ac_hi; then
20100 ac_lo= ac_hi=
20101 break
20102 fi
20103 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20104fi
ac1cb8d3 20105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20106 done
20107else
20108 echo "$as_me: failed program was:" >&5
20109sed 's/^/| /' conftest.$ac_ext >&5
20110
20111ac_lo= ac_hi=
20112fi
ac1cb8d3 20113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20114fi
ac1cb8d3 20115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20116# Binary search between lo and hi bounds.
20117while test "x$ac_lo" != "x$ac_hi"; do
20118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20119 cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
20125$ac_includes_default
20126int
20127main ()
20128{
20129static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20130test_array [0] = 0
20131
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext
20137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20138 (eval $ac_compile) 2>conftest.er1
a848cd7e 20139 ac_status=$?
ac1cb8d3
VS
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
a848cd7e
SC
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
ca5c6ac3 20145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_hi=$ac_mid
20158else
20159 echo "$as_me: failed program was:" >&5
20160sed 's/^/| /' conftest.$ac_ext >&5
20161
20162ac_lo=`expr '(' $ac_mid ')' + 1`
20163fi
ac1cb8d3 20164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20165done
20166case $ac_lo in
20167?*) ac_cv_sizeof_size_t=$ac_lo;;
20168'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20169See \`config.log' for more details." >&5
20170echo "$as_me: error: cannot compute sizeof (size_t), 77
20171See \`config.log' for more details." >&2;}
20172 { (exit 1); exit 1; }; } ;;
20173esac
20174else
20175 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20176 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20177echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20178 { (exit 1); exit 1; }; }
20179else
20180 cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
20186$ac_includes_default
20187long longval () { return (long) (sizeof (size_t)); }
20188unsigned long ulongval () { return (long) (sizeof (size_t)); }
20189#include <stdio.h>
20190#include <stdlib.h>
20191int
20192main ()
20193{
20194
20195 FILE *f = fopen ("conftest.val", "w");
20196 if (! f)
20197 exit (1);
20198 if (((long) (sizeof (size_t))) < 0)
20199 {
20200 long i = longval ();
20201 if (i != ((long) (sizeof (size_t))))
20202 exit (1);
20203 fprintf (f, "%ld\n", i);
20204 }
20205 else
20206 {
20207 unsigned long i = ulongval ();
20208 if (i != ((long) (sizeof (size_t))))
20209 exit (1);
20210 fprintf (f, "%lu\n", i);
20211 }
20212 exit (ferror (f) || fclose (f) != 0);
20213
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest$ac_exeext
20219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20220 (eval $ac_link) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_sizeof_size_t=`cat conftest.val`
20230else
20231 echo "$as_me: program exited with status $ac_status" >&5
20232echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235( exit $ac_status )
20236{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20237See \`config.log' for more details." >&5
20238echo "$as_me: error: cannot compute sizeof (size_t), 77
20239See \`config.log' for more details." >&2;}
20240 { (exit 1); exit 1; }; }
20241fi
ac1cb8d3 20242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20243fi
20244fi
20245rm -f conftest.val
20246else
20247 ac_cv_sizeof_size_t=0
20248fi
20249fi
20250echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20251echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20252cat >>confdefs.h <<_ACEOF
20253#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20254_ACEOF
20255
20256
20257
20258case "${host}" in
20259 arm-*-linux* )
20260 echo "$as_me:$LINENO: checking for long long" >&5
20261echo $ECHO_N "checking for long long... $ECHO_C" >&6
20262if test "${ac_cv_type_long_long+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264else
20265 cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271$ac_includes_default
20272int
20273main ()
20274{
20275if ((long long *) 0)
20276 return 0;
20277if (sizeof (long long))
20278 return 0;
20279 ;
20280 return 0;
20281}
20282_ACEOF
20283rm -f conftest.$ac_objext
20284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20285 (eval $ac_compile) 2>conftest.er1
a848cd7e 20286 ac_status=$?
ac1cb8d3
VS
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
a848cd7e
SC
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
ca5c6ac3 20292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_type_long_long=yes
20305else
20306 echo "$as_me: failed program was:" >&5
20307sed 's/^/| /' conftest.$ac_ext >&5
20308
20309ac_cv_type_long_long=no
20310fi
ac1cb8d3 20311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20312fi
20313echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20314echo "${ECHO_T}$ac_cv_type_long_long" >&6
20315
20316echo "$as_me:$LINENO: checking size of long long" >&5
20317echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20318if test "${ac_cv_sizeof_long_long+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
20321 if test "$ac_cv_type_long_long" = yes; then
20322 # The cast to unsigned long works around a bug in the HP C Compiler
20323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20325 # This bug is HP SR number 8606223364.
20326 if test "$cross_compiling" = yes; then
20327 # Depending upon the size, compute the lo and hi bounds.
20328cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
20334$ac_includes_default
20335int
20336main ()
20337{
20338static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20339test_array [0] = 0
20340
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20347 (eval $ac_compile) 2>conftest.er1
a848cd7e 20348 ac_status=$?
ac1cb8d3
VS
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
a848cd7e
SC
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
ca5c6ac3 20354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_lo=0 ac_mid=0
20367 while :; do
20368 cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374$ac_includes_default
20375int
20376main ()
20377{
20378static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20379test_array [0] = 0
20380
20381 ;
20382 return 0;
20383}
20384_ACEOF
20385rm -f conftest.$ac_objext
20386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20387 (eval $ac_compile) 2>conftest.er1
a848cd7e 20388 ac_status=$?
ac1cb8d3
VS
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
a848cd7e
SC
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
ca5c6ac3 20394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; } &&
20400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20406 ac_hi=$ac_mid; break
20407else
20408 echo "$as_me: failed program was:" >&5
20409sed 's/^/| /' conftest.$ac_ext >&5
20410
20411ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20412 if test $ac_lo -le $ac_mid; then
20413 ac_lo= ac_hi=
20414 break
20415 fi
20416 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20417fi
ac1cb8d3 20418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20419 done
20420else
20421 echo "$as_me: failed program was:" >&5
20422sed 's/^/| /' conftest.$ac_ext >&5
20423
20424cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430$ac_includes_default
20431int
20432main ()
20433{
20434static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20435test_array [0] = 0
20436
20437 ;
20438 return 0;
20439}
20440_ACEOF
20441rm -f conftest.$ac_objext
20442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20443 (eval $ac_compile) 2>conftest.er1
a848cd7e 20444 ac_status=$?
ac1cb8d3
VS
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
a848cd7e
SC
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } &&
ca5c6ac3 20450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 ac_hi=-1 ac_mid=-1
20463 while :; do
20464 cat >conftest.$ac_ext <<_ACEOF
20465/* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
20470$ac_includes_default
20471int
20472main ()
20473{
20474static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20475test_array [0] = 0
20476
20477 ;
20478 return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20483 (eval $ac_compile) 2>conftest.er1
a848cd7e 20484 ac_status=$?
ac1cb8d3
VS
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
a848cd7e
SC
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
ca5c6ac3 20490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } &&
20496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_lo=$ac_mid; break
20503else
20504 echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20508 if test $ac_mid -le $ac_hi; then
20509 ac_lo= ac_hi=
20510 break
20511 fi
20512 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20513fi
ac1cb8d3 20514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20515 done
20516else
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520ac_lo= ac_hi=
20521fi
ac1cb8d3 20522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20523fi
ac1cb8d3 20524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20525# Binary search between lo and hi bounds.
20526while test "x$ac_lo" != "x$ac_hi"; do
20527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20528 cat >conftest.$ac_ext <<_ACEOF
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534$ac_includes_default
20535int
20536main ()
20537{
20538static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20539test_array [0] = 0
20540
20541 ;
20542 return 0;
20543}
20544_ACEOF
20545rm -f conftest.$ac_objext
20546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20547 (eval $ac_compile) 2>conftest.er1
a848cd7e 20548 ac_status=$?
ac1cb8d3
VS
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
a848cd7e
SC
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
ca5c6ac3 20554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_hi=$ac_mid
20567else
20568 echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571ac_lo=`expr '(' $ac_mid ')' + 1`
20572fi
ac1cb8d3 20573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20574done
20575case $ac_lo in
20576?*) ac_cv_sizeof_long_long=$ac_lo;;
20577'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20578See \`config.log' for more details." >&5
20579echo "$as_me: error: cannot compute sizeof (long long), 77
20580See \`config.log' for more details." >&2;}
20581 { (exit 1); exit 1; }; } ;;
20582esac
20583else
20584 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20585 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20586echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20587 { (exit 1); exit 1; }; }
20588else
20589 cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595$ac_includes_default
20596long longval () { return (long) (sizeof (long long)); }
20597unsigned long ulongval () { return (long) (sizeof (long long)); }
20598#include <stdio.h>
20599#include <stdlib.h>
20600int
20601main ()
20602{
20603
20604 FILE *f = fopen ("conftest.val", "w");
20605 if (! f)
20606 exit (1);
20607 if (((long) (sizeof (long long))) < 0)
20608 {
20609 long i = longval ();
20610 if (i != ((long) (sizeof (long long))))
20611 exit (1);
20612 fprintf (f, "%ld\n", i);
20613 }
20614 else
20615 {
20616 unsigned long i = ulongval ();
20617 if (i != ((long) (sizeof (long long))))
20618 exit (1);
20619 fprintf (f, "%lu\n", i);
20620 }
20621 exit (ferror (f) || fclose (f) != 0);
20622
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest$ac_exeext
20628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20629 (eval $ac_link) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_sizeof_long_long=`cat conftest.val`
20639else
20640 echo "$as_me: program exited with status $ac_status" >&5
20641echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
20644( exit $ac_status )
20645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20646See \`config.log' for more details." >&5
20647echo "$as_me: error: cannot compute sizeof (long long), 77
20648See \`config.log' for more details." >&2;}
20649 { (exit 1); exit 1; }; }
20650fi
ac1cb8d3 20651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20652fi
20653fi
20654rm -f conftest.val
20655else
20656 ac_cv_sizeof_long_long=0
20657fi
20658fi
20659echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20660echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20661cat >>confdefs.h <<_ACEOF
20662#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20663_ACEOF
20664
20665
20666 ;;
20667 *-hp-hpux* )
20668 echo "$as_me:$LINENO: checking for long long" >&5
20669echo $ECHO_N "checking for long long... $ECHO_C" >&6
20670if test "${ac_cv_type_long_long+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673 cat >conftest.$ac_ext <<_ACEOF
20674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
20679$ac_includes_default
20680int
20681main ()
20682{
20683if ((long long *) 0)
20684 return 0;
20685if (sizeof (long long))
20686 return 0;
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext
20692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20693 (eval $ac_compile) 2>conftest.er1
a848cd7e 20694 ac_status=$?
ac1cb8d3
VS
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
a848cd7e
SC
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
ca5c6ac3 20700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; } &&
20706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_type_long_long=yes
20713else
20714 echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717ac_cv_type_long_long=no
20718fi
ac1cb8d3 20719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20720fi
20721echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20722echo "${ECHO_T}$ac_cv_type_long_long" >&6
20723
20724echo "$as_me:$LINENO: checking size of long long" >&5
20725echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20726if test "${ac_cv_sizeof_long_long+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
20729 if test "$ac_cv_type_long_long" = yes; then
20730 # The cast to unsigned long works around a bug in the HP C Compiler
20731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20733 # This bug is HP SR number 8606223364.
20734 if test "$cross_compiling" = yes; then
20735 # Depending upon the size, compute the lo and hi bounds.
20736cat >conftest.$ac_ext <<_ACEOF
20737/* confdefs.h. */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h. */
20742$ac_includes_default
20743int
20744main ()
20745{
20746static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20747test_array [0] = 0
20748
20749 ;
20750 return 0;
20751}
20752_ACEOF
20753rm -f conftest.$ac_objext
20754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20755 (eval $ac_compile) 2>conftest.er1
a848cd7e 20756 ac_status=$?
ac1cb8d3
VS
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
a848cd7e
SC
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
ca5c6ac3 20762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 ac_lo=0 ac_mid=0
20775 while :; do
20776 cat >conftest.$ac_ext <<_ACEOF
20777/* confdefs.h. */
20778_ACEOF
20779cat confdefs.h >>conftest.$ac_ext
20780cat >>conftest.$ac_ext <<_ACEOF
20781/* end confdefs.h. */
20782$ac_includes_default
20783int
20784main ()
20785{
20786static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20787test_array [0] = 0
20788
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext
20794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20795 (eval $ac_compile) 2>conftest.er1
a848cd7e 20796 ac_status=$?
ac1cb8d3
VS
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
a848cd7e
SC
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } &&
ca5c6ac3 20802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_hi=$ac_mid; break
20815else
20816 echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20820 if test $ac_lo -le $ac_mid; then
20821 ac_lo= ac_hi=
20822 break
20823 fi
20824 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20825fi
ac1cb8d3 20826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20827 done
20828else
20829 echo "$as_me: failed program was:" >&5
20830sed 's/^/| /' conftest.$ac_ext >&5
20831
20832cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838$ac_includes_default
20839int
20840main ()
20841{
20842static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20843test_array [0] = 0
20844
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849rm -f conftest.$ac_objext
20850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20851 (eval $ac_compile) 2>conftest.er1
a848cd7e 20852 ac_status=$?
ac1cb8d3
VS
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
a848cd7e
SC
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } &&
ca5c6ac3 20858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_hi=-1 ac_mid=-1
20871 while :; do
20872 cat >conftest.$ac_ext <<_ACEOF
20873/* confdefs.h. */
20874_ACEOF
20875cat confdefs.h >>conftest.$ac_ext
20876cat >>conftest.$ac_ext <<_ACEOF
20877/* end confdefs.h. */
20878$ac_includes_default
20879int
20880main ()
20881{
20882static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20883test_array [0] = 0
20884
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20891 (eval $ac_compile) 2>conftest.er1
a848cd7e 20892 ac_status=$?
ac1cb8d3
VS
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
a848cd7e
SC
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
ca5c6ac3 20898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_lo=$ac_mid; break
20911else
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20916 if test $ac_mid -le $ac_hi; then
20917 ac_lo= ac_hi=
20918 break
20919 fi
20920 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20921fi
ac1cb8d3 20922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20923 done
20924else
20925 echo "$as_me: failed program was:" >&5
20926sed 's/^/| /' conftest.$ac_ext >&5
20927
20928ac_lo= ac_hi=
20929fi
ac1cb8d3 20930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20931fi
ac1cb8d3 20932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20933# Binary search between lo and hi bounds.
20934while test "x$ac_lo" != "x$ac_hi"; do
20935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20936 cat >conftest.$ac_ext <<_ACEOF
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
20941/* end confdefs.h. */
20942$ac_includes_default
20943int
20944main ()
20945{
20946static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20947test_array [0] = 0
20948
20949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext
20954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20955 (eval $ac_compile) 2>conftest.er1
a848cd7e 20956 ac_status=$?
ac1cb8d3
VS
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
a848cd7e
SC
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
ca5c6ac3 20962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_hi=$ac_mid
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979ac_lo=`expr '(' $ac_mid ')' + 1`
20980fi
ac1cb8d3 20981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20982done
20983case $ac_lo in
20984?*) ac_cv_sizeof_long_long=$ac_lo;;
20985'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20986See \`config.log' for more details." >&5
20987echo "$as_me: error: cannot compute sizeof (long long), 77
20988See \`config.log' for more details." >&2;}
20989 { (exit 1); exit 1; }; } ;;
20990esac
20991else
20992 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20993 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20994echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20995 { (exit 1); exit 1; }; }
20996else
20997 cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h. */
21003$ac_includes_default
21004long longval () { return (long) (sizeof (long long)); }
21005unsigned long ulongval () { return (long) (sizeof (long long)); }
21006#include <stdio.h>
21007#include <stdlib.h>
21008int
21009main ()
21010{
21011
21012 FILE *f = fopen ("conftest.val", "w");
21013 if (! f)
21014 exit (1);
21015 if (((long) (sizeof (long long))) < 0)
21016 {
21017 long i = longval ();
21018 if (i != ((long) (sizeof (long long))))
21019 exit (1);
21020 fprintf (f, "%ld\n", i);
21021 }
21022 else
21023 {
21024 unsigned long i = ulongval ();
21025 if (i != ((long) (sizeof (long long))))
21026 exit (1);
21027 fprintf (f, "%lu\n", i);
21028 }
21029 exit (ferror (f) || fclose (f) != 0);
21030
21031 ;
21032 return 0;
21033}
21034_ACEOF
21035rm -f conftest$ac_exeext
21036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21037 (eval $ac_link) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_cv_sizeof_long_long=`cat conftest.val`
21047else
21048 echo "$as_me: program exited with status $ac_status" >&5
21049echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052( exit $ac_status )
21053{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21054See \`config.log' for more details." >&5
21055echo "$as_me: error: cannot compute sizeof (long long), 77
21056See \`config.log' for more details." >&2;}
21057 { (exit 1); exit 1; }; }
21058fi
ac1cb8d3 21059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21060fi
21061fi
21062rm -f conftest.val
21063else
21064 ac_cv_sizeof_long_long=0
21065fi
21066fi
21067echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21068echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21069cat >>confdefs.h <<_ACEOF
21070#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21071_ACEOF
21072
21073
21074 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21075 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21076 fi
21077 ;;
21078 * )
21079 echo "$as_me:$LINENO: checking for long long" >&5
21080echo $ECHO_N "checking for long long... $ECHO_C" >&6
21081if test "${ac_cv_type_long_long+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083else
21084 cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
21090$ac_includes_default
21091int
21092main ()
21093{
21094if ((long long *) 0)
21095 return 0;
21096if (sizeof (long long))
21097 return 0;
21098 ;
21099 return 0;
21100}
21101_ACEOF
21102rm -f conftest.$ac_objext
21103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21104 (eval $ac_compile) 2>conftest.er1
a848cd7e 21105 ac_status=$?
ac1cb8d3
VS
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
a848cd7e
SC
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
ca5c6ac3 21111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_type_long_long=yes
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128ac_cv_type_long_long=no
21129fi
ac1cb8d3 21130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21131fi
21132echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21133echo "${ECHO_T}$ac_cv_type_long_long" >&6
21134
21135echo "$as_me:$LINENO: checking size of long long" >&5
21136echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21137if test "${ac_cv_sizeof_long_long+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139else
21140 if test "$ac_cv_type_long_long" = yes; then
21141 # The cast to unsigned long works around a bug in the HP C Compiler
21142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21144 # This bug is HP SR number 8606223364.
21145 if test "$cross_compiling" = yes; then
21146 # Depending upon the size, compute the lo and hi bounds.
21147cat >conftest.$ac_ext <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
21153$ac_includes_default
21154int
21155main ()
21156{
21157static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21158test_array [0] = 0
21159
21160 ;
21161 return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21166 (eval $ac_compile) 2>conftest.er1
a848cd7e 21167 ac_status=$?
ac1cb8d3
VS
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
a848cd7e
SC
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
ca5c6ac3 21173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21185 ac_lo=0 ac_mid=0
21186 while :; do
21187 cat >conftest.$ac_ext <<_ACEOF
21188/* confdefs.h. */
21189_ACEOF
21190cat confdefs.h >>conftest.$ac_ext
21191cat >>conftest.$ac_ext <<_ACEOF
21192/* end confdefs.h. */
21193$ac_includes_default
21194int
21195main ()
21196{
21197static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21198test_array [0] = 0
21199
21200 ;
21201 return 0;
21202}
21203_ACEOF
21204rm -f conftest.$ac_objext
21205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21206 (eval $ac_compile) 2>conftest.er1
a848cd7e 21207 ac_status=$?
ac1cb8d3
VS
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
a848cd7e
SC
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
ca5c6ac3 21213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 ac_hi=$ac_mid; break
21226else
21227 echo "$as_me: failed program was:" >&5
21228sed 's/^/| /' conftest.$ac_ext >&5
21229
21230ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21231 if test $ac_lo -le $ac_mid; then
21232 ac_lo= ac_hi=
21233 break
21234 fi
21235 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21236fi
ac1cb8d3 21237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21238 done
21239else
21240 echo "$as_me: failed program was:" >&5
21241sed 's/^/| /' conftest.$ac_ext >&5
21242
21243cat >conftest.$ac_ext <<_ACEOF
21244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
21249$ac_includes_default
21250int
21251main ()
21252{
21253static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21254test_array [0] = 0
21255
21256 ;
21257 return 0;
21258}
21259_ACEOF
21260rm -f conftest.$ac_objext
21261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21262 (eval $ac_compile) 2>conftest.er1
a848cd7e 21263 ac_status=$?
ac1cb8d3
VS
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
a848cd7e
SC
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
ca5c6ac3 21269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21281 ac_hi=-1 ac_mid=-1
21282 while :; do
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
21289$ac_includes_default
21290int
21291main ()
21292{
21293static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21294test_array [0] = 0
21295
21296 ;
21297 return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21302 (eval $ac_compile) 2>conftest.er1
a848cd7e 21303 ac_status=$?
ac1cb8d3
VS
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
a848cd7e
SC
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
ca5c6ac3 21309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_lo=$ac_mid; break
21322else
21323 echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21327 if test $ac_mid -le $ac_hi; then
21328 ac_lo= ac_hi=
21329 break
21330 fi
21331 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21332fi
ac1cb8d3 21333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21334 done
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339ac_lo= ac_hi=
21340fi
ac1cb8d3 21341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21342fi
ac1cb8d3 21343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21344# Binary search between lo and hi bounds.
21345while test "x$ac_lo" != "x$ac_hi"; do
21346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21347 cat >conftest.$ac_ext <<_ACEOF
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
21353$ac_includes_default
21354int
21355main ()
21356{
21357static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21358test_array [0] = 0
21359
21360 ;
21361 return 0;
21362}
21363_ACEOF
21364rm -f conftest.$ac_objext
21365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21366 (eval $ac_compile) 2>conftest.er1
a848cd7e 21367 ac_status=$?
ac1cb8d3
VS
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
a848cd7e
SC
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
ca5c6ac3 21373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; } &&
21379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 ac_hi=$ac_mid
21386else
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390ac_lo=`expr '(' $ac_mid ')' + 1`
21391fi
ac1cb8d3 21392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21393done
21394case $ac_lo in
21395?*) ac_cv_sizeof_long_long=$ac_lo;;
21396'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21397See \`config.log' for more details." >&5
21398echo "$as_me: error: cannot compute sizeof (long long), 77
21399See \`config.log' for more details." >&2;}
21400 { (exit 1); exit 1; }; } ;;
21401esac
21402else
21403 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21404 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21405echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21406 { (exit 1); exit 1; }; }
21407else
21408 cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h. */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h. */
21414$ac_includes_default
21415long longval () { return (long) (sizeof (long long)); }
21416unsigned long ulongval () { return (long) (sizeof (long long)); }
21417#include <stdio.h>
21418#include <stdlib.h>
21419int
21420main ()
21421{
21422
21423 FILE *f = fopen ("conftest.val", "w");
21424 if (! f)
21425 exit (1);
21426 if (((long) (sizeof (long long))) < 0)
21427 {
21428 long i = longval ();
21429 if (i != ((long) (sizeof (long long))))
21430 exit (1);
21431 fprintf (f, "%ld\n", i);
21432 }
21433 else
21434 {
21435 unsigned long i = ulongval ();
21436 if (i != ((long) (sizeof (long long))))
21437 exit (1);
21438 fprintf (f, "%lu\n", i);
21439 }
21440 exit (ferror (f) || fclose (f) != 0);
21441
21442 ;
21443 return 0;
21444}
21445_ACEOF
21446rm -f conftest$ac_exeext
21447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21448 (eval $ac_link) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_sizeof_long_long=`cat conftest.val`
21458else
21459 echo "$as_me: program exited with status $ac_status" >&5
21460echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
21463( exit $ac_status )
21464{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21465See \`config.log' for more details." >&5
21466echo "$as_me: error: cannot compute sizeof (long long), 77
21467See \`config.log' for more details." >&2;}
21468 { (exit 1); exit 1; }; }
21469fi
ac1cb8d3 21470rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21471fi
21472fi
21473rm -f conftest.val
21474else
21475 ac_cv_sizeof_long_long=0
21476fi
21477fi
21478echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21479echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21480cat >>confdefs.h <<_ACEOF
21481#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21482_ACEOF
21483
21484
21485esac
21486
238ecede
MW
21487echo "$as_me:$LINENO: checking for wchar_t" >&5
21488echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21489if test "${ac_cv_type_wchar_t+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491else
21492 cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
21498
83d8eb47
MW
21499 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21500 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21501 # error "fake wchar_t"
21502 #endif
21503 #ifdef HAVE_WCHAR_H
21504 # ifdef __CYGWIN__
21505 # include <stddef.h>
21506 # endif
21507 # include <wchar.h>
21508 #endif
21509 #ifdef HAVE_STDLIB_H
21510 # include <stdlib.h>
21511 #endif
21512 #include <stdio.h>
21513
21514
21515
21516int
21517main ()
21518{
21519if ((wchar_t *) 0)
21520 return 0;
21521if (sizeof (wchar_t))
21522 return 0;
21523 ;
21524 return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext
21528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529 (eval $ac_compile) 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
ca5c6ac3 21536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_type_wchar_t=yes
21549else
21550 echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
21553ac_cv_type_wchar_t=no
21554fi
21555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556fi
21557echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21558echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21559
a848cd7e
SC
21560echo "$as_me:$LINENO: checking size of wchar_t" >&5
21561echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21562if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564else
238ecede
MW
21565 if test "$ac_cv_type_wchar_t" = yes; then
21566 # The cast to unsigned long works around a bug in the HP C Compiler
21567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21569 # This bug is HP SR number 8606223364.
21570 if test "$cross_compiling" = yes; then
21571 # Depending upon the size, compute the lo and hi bounds.
21572cat >conftest.$ac_ext <<_ACEOF
21573/* confdefs.h. */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h. */
21578
83d8eb47
MW
21579 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21580 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21581 # error "fake wchar_t"
21582 #endif
21583 #ifdef HAVE_WCHAR_H
21584 # ifdef __CYGWIN__
21585 # include <stddef.h>
21586 # endif
21587 # include <wchar.h>
21588 #endif
21589 #ifdef HAVE_STDLIB_H
21590 # include <stdlib.h>
21591 #endif
21592 #include <stdio.h>
21593
21594
21595
21596int
21597main ()
21598{
21599static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21600test_array [0] = 0
21601
21602 ;
21603 return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext
21607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
ca5c6ac3 21615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; } &&
21621 { ac_try='test -s conftest.$ac_objext'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; }; then
21627 ac_lo=0 ac_mid=0
21628 while :; do
21629 cat >conftest.$ac_ext <<_ACEOF
21630/* confdefs.h. */
21631_ACEOF
21632cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h. */
21635
83d8eb47
MW
21636 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21637 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21638 # error "fake wchar_t"
21639 #endif
21640 #ifdef HAVE_WCHAR_H
21641 # ifdef __CYGWIN__
21642 # include <stddef.h>
21643 # endif
21644 # include <wchar.h>
21645 #endif
21646 #ifdef HAVE_STDLIB_H
21647 # include <stdlib.h>
21648 #endif
21649 #include <stdio.h>
21650
21651
21652
21653int
21654main ()
21655{
21656static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21657test_array [0] = 0
21658
21659 ;
21660 return 0;
21661}
21662_ACEOF
21663rm -f conftest.$ac_objext
21664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
ca5c6ac3 21672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_hi=$ac_mid; break
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689ac_lo=`expr $ac_mid + 1`
21690 if test $ac_lo -le $ac_mid; then
21691 ac_lo= ac_hi=
21692 break
21693 fi
21694 ac_mid=`expr 2 '*' $ac_mid + 1`
21695fi
21696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21697 done
21698else
21699 echo "$as_me: failed program was:" >&5
21700sed 's/^/| /' conftest.$ac_ext >&5
21701
21702cat >conftest.$ac_ext <<_ACEOF
21703/* confdefs.h. */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h. */
21708
83d8eb47
MW
21709 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21710 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21711 # error "fake wchar_t"
21712 #endif
21713 #ifdef HAVE_WCHAR_H
21714 # ifdef __CYGWIN__
21715 # include <stddef.h>
21716 # endif
21717 # include <wchar.h>
21718 #endif
21719 #ifdef HAVE_STDLIB_H
21720 # include <stdlib.h>
21721 #endif
21722 #include <stdio.h>
21723
21724
21725
21726int
21727main ()
21728{
21729static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21730test_array [0] = 0
21731
21732 ;
21733 return 0;
21734}
21735_ACEOF
21736rm -f conftest.$ac_objext
21737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21738 (eval $ac_compile) 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
ca5c6ac3 21745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest.$ac_objext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_hi=-1 ac_mid=-1
21758 while :; do
21759 cat >conftest.$ac_ext <<_ACEOF
21760/* confdefs.h. */
21761_ACEOF
21762cat confdefs.h >>conftest.$ac_ext
21763cat >>conftest.$ac_ext <<_ACEOF
21764/* end confdefs.h. */
21765
83d8eb47
MW
21766 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21767 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21768 # error "fake wchar_t"
21769 #endif
21770 #ifdef HAVE_WCHAR_H
21771 # ifdef __CYGWIN__
21772 # include <stddef.h>
21773 # endif
21774 # include <wchar.h>
21775 #endif
21776 #ifdef HAVE_STDLIB_H
21777 # include <stdlib.h>
21778 #endif
21779 #include <stdio.h>
21780
21781
21782
21783int
21784main ()
21785{
21786static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21787test_array [0] = 0
21788
21789 ;
21790 return 0;
21791}
21792_ACEOF
21793rm -f conftest.$ac_objext
21794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795 (eval $ac_compile) 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
ca5c6ac3 21802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest.$ac_objext'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21814 ac_lo=$ac_mid; break
21815else
21816 echo "$as_me: failed program was:" >&5
21817sed 's/^/| /' conftest.$ac_ext >&5
21818
21819ac_hi=`expr '(' $ac_mid ')' - 1`
21820 if test $ac_mid -le $ac_hi; then
21821 ac_lo= ac_hi=
21822 break
21823 fi
21824 ac_mid=`expr 2 '*' $ac_mid`
21825fi
21826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 done
21828else
21829 echo "$as_me: failed program was:" >&5
21830sed 's/^/| /' conftest.$ac_ext >&5
21831
21832ac_lo= ac_hi=
21833fi
21834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21835fi
21836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837# Binary search between lo and hi bounds.
21838while test "x$ac_lo" != "x$ac_hi"; do
21839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21840 cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846
83d8eb47
MW
21847 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21848 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21849 # error "fake wchar_t"
21850 #endif
21851 #ifdef HAVE_WCHAR_H
21852 # ifdef __CYGWIN__
21853 # include <stddef.h>
21854 # endif
21855 # include <wchar.h>
21856 #endif
21857 #ifdef HAVE_STDLIB_H
21858 # include <stdlib.h>
21859 #endif
21860 #include <stdio.h>
a848cd7e 21861
a848cd7e 21862
a848cd7e 21863
238ecede
MW
21864int
21865main ()
21866{
21867static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21868test_array [0] = 0
a848cd7e 21869
238ecede
MW
21870 ;
21871 return 0;
21872}
21873_ACEOF
21874rm -f conftest.$ac_objext
21875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876 (eval $ac_compile) 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
ca5c6ac3 21883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest.$ac_objext'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_hi=$ac_mid
21896else
21897 echo "$as_me: failed program was:" >&5
21898sed 's/^/| /' conftest.$ac_ext >&5
21899
21900ac_lo=`expr '(' $ac_mid ')' + 1`
21901fi
21902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903done
21904case $ac_lo in
21905?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21906'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21907See \`config.log' for more details." >&5
21908echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21909See \`config.log' for more details." >&2;}
21910 { (exit 1); exit 1; }; } ;;
21911esac
21912else
21913 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21914 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21915echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21916 { (exit 1); exit 1; }; }
a848cd7e
SC
21917else
21918 cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h. */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h. */
21924
83d8eb47
MW
21925 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21926 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21927 # error "fake wchar_t"
21928 #endif
21929 #ifdef HAVE_WCHAR_H
21930 # ifdef __CYGWIN__
21931 # include <stddef.h>
21932 # endif
21933 # include <wchar.h>
21934 #endif
21935 #ifdef HAVE_STDLIB_H
21936 # include <stdlib.h>
21937 #endif
21938 #include <stdio.h>
21939
21940
21941
21942long longval () { return (long) (sizeof (wchar_t)); }
21943unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21944#include <stdio.h>
21945#include <stdlib.h>
21946int
21947main ()
21948{
a848cd7e 21949
238ecede
MW
21950 FILE *f = fopen ("conftest.val", "w");
21951 if (! f)
21952 exit (1);
21953 if (((long) (sizeof (wchar_t))) < 0)
21954 {
21955 long i = longval ();
21956 if (i != ((long) (sizeof (wchar_t))))
21957 exit (1);
21958 fprintf (f, "%ld\n", i);
21959 }
21960 else
21961 {
21962 unsigned long i = ulongval ();
21963 if (i != ((long) (sizeof (wchar_t))))
21964 exit (1);
21965 fprintf (f, "%lu\n", i);
21966 }
21967 exit (ferror (f) || fclose (f) != 0);
21968
21969 ;
21970 return 0;
21971}
a848cd7e
SC
21972_ACEOF
21973rm -f conftest$ac_exeext
21974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975 (eval $ac_link) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
238ecede 21984 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21985else
21986 echo "$as_me: program exited with status $ac_status" >&5
21987echo "$as_me: failed program was:" >&5
21988sed 's/^/| /' conftest.$ac_ext >&5
21989
21990( exit $ac_status )
238ecede
MW
21991{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21992See \`config.log' for more details." >&5
21993echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21994See \`config.log' for more details." >&2;}
21995 { (exit 1); exit 1; }; }
a848cd7e 21996fi
ac1cb8d3 21997rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21998fi
a848cd7e 21999fi
238ecede
MW
22000rm -f conftest.val
22001else
22002 ac_cv_sizeof_wchar_t=0
22003fi
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22006echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22007cat >>confdefs.h <<_ACEOF
238ecede 22008#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22009_ACEOF
22010
22011
47a7e797
MW
22012if test "$ac_cv_sizeof_wchar_t" != "0"; then
22013 wxUSE_WCHAR_T=yes
22014else
22015 wxUSE_WCHAR_T=no
22016fi
238ecede 22017
ba3d13e1
VZ
22018echo "$as_me:$LINENO: checking for va_copy" >&5
22019echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22020if test "${wx_cv_func_va_copy+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022else
22023
22024 cat >conftest.$ac_ext <<_ACEOF
22025
22026 #include <stdarg.h>
22027 void foo(char *f, ...)
22028 {
22029 va_list ap1, ap2;
22030 va_start(ap1, f);
22031 va_copy(ap2, ap1);
22032 va_end(ap2);
22033 va_end(ap1);
22034 }
5886b072
VZ
22035 int main()
22036 {
b902e639
VZ
22037 foo("hi", 17);
22038 return 0;
5886b072 22039 }
ba3d13e1
VZ
22040_ACEOF
22041rm -f conftest.$ac_objext conftest$ac_exeext
22042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22043 (eval $ac_link) 2>conftest.er1
22044 ac_status=$?
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
ca5c6ac3 22050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest$ac_exeext'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22062 wx_cv_func_va_copy=yes
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067wx_cv_func_va_copy=no
22068
22069fi
22070rm -f conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
22072
22073
22074fi
22075echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22076echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22077
22078if test $wx_cv_func_va_copy = "yes"; then
22079 cat >>confdefs.h <<\_ACEOF
22080#define HAVE_VA_COPY 1
22081_ACEOF
22082
22083else
22084 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22085echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22086if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089
22090 if test "$cross_compiling" = yes; then
22091 wx_cv_type_va_list_lvalue=yes
22092
22093else
22094 cat >conftest.$ac_ext <<_ACEOF
22095
22096 #include <stdarg.h>
22097 int foo(char *f, ...)
22098 {
22099 va_list ap1, ap2;
22100 va_start(ap1, f);
22101 ap2 = ap1;
22102 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22103 return 1;
22104 va_end(ap2);
22105 va_end(ap1);
22106 return 0;
22107 }
22108 int main()
22109 {
22110 return foo("hi", 17);
22111 }
22112_ACEOF
22113rm -f conftest$ac_exeext
22114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22115 (eval $ac_link) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 wx_cv_type_va_list_lvalue=yes
22125else
22126 echo "$as_me: program exited with status $ac_status" >&5
22127echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130( exit $ac_status )
22131wx_cv_type_va_list_lvalue=no
22132fi
22133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22134fi
22135
22136
22137fi
22138echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22139echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22140
22141 if test $wx_cv_type_va_list_lvalue != "yes"; then
22142 cat >>confdefs.h <<\_ACEOF
22143#define VA_LIST_IS_ARRAY 1
22144_ACEOF
22145
22146 fi
22147fi
22148
ca766534
VS
22149echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22150echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22151if test "${wx_cv_have_variadic_macros+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153else
22154
22155 cat >conftest.$ac_ext <<_ACEOF
22156/* confdefs.h. */
22157_ACEOF
22158cat confdefs.h >>conftest.$ac_ext
22159cat >>conftest.$ac_ext <<_ACEOF
22160/* end confdefs.h. */
22161
22162 #include <stdio.h>
22163 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22164
22165int
22166main ()
22167{
22168
22169 test("%s %d %p", "test", 1, 0);
22170
22171
22172 ;
22173 return 0;
22174}
22175_ACEOF
22176rm -f conftest.$ac_objext
22177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178 (eval $ac_compile) 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
ca5c6ac3 22185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; } &&
22191 { ac_try='test -s conftest.$ac_objext'
22192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; }; then
22197 wx_cv_have_variadic_macros=yes
22198else
22199 echo "$as_me: failed program was:" >&5
22200sed 's/^/| /' conftest.$ac_ext >&5
22201
22202wx_cv_have_variadic_macros=no
22203
22204fi
22205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22206
22207
22208fi
22209echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22210echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22211
22212if test $wx_cv_have_variadic_macros = "yes"; then
22213 cat >>confdefs.h <<\_ACEOF
22214#define HAVE_VARIADIC_MACROS 1
22215_ACEOF
22216
22217fi
22218
a848cd7e
SC
22219# Check whether --enable-largefile or --disable-largefile was given.
22220if test "${enable_largefile+set}" = set; then
22221 enableval="$enable_largefile"
22222
22223fi;
22224if test "$enable_largefile" != no; then
22225 wx_largefile=no
22226
22227 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22228echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22229if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231else
22232
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239#define _FILE_OFFSET_BITS 64
22240 #include <sys/types.h>
22241int
22242main ()
22243{
22244typedef struct {
22245 unsigned int field: sizeof(off_t) == 8;
22246} wxlf;
22247
22248 ;
22249 return 0;
22250}
22251_ACEOF
22252rm -f conftest.$ac_objext
22253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22254 (eval $ac_compile) 2>conftest.er1
a848cd7e 22255 ac_status=$?
ac1cb8d3
VS
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
a848cd7e
SC
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
ca5c6ac3 22261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 ac_cv_sys_file_offset_bits=64
22274else
22275 echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
22278ac_cv_sys_file_offset_bits=no
22279fi
ac1cb8d3 22280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22281
22282
22283fi
22284echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22285echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22286
22287 if test "$ac_cv_sys_file_offset_bits" != no; then
22288 wx_largefile=yes
22289 cat >>confdefs.h <<_ACEOF
22290#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22291_ACEOF
22292
22293 fi
22294
22295 if test "x$wx_largefile" != "xyes"; then
22296
22297 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22298echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22299if test "${ac_cv_sys_large_files+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22301else
22302
22303 cat >conftest.$ac_ext <<_ACEOF
22304/* confdefs.h. */
22305_ACEOF
22306cat confdefs.h >>conftest.$ac_ext
22307cat >>conftest.$ac_ext <<_ACEOF
22308/* end confdefs.h. */
22309#define _LARGE_FILES 1
22310 #include <sys/types.h>
22311int
22312main ()
22313{
22314typedef struct {
22315 unsigned int field: sizeof(off_t) == 8;
22316} wxlf;
22317
22318 ;
22319 return 0;
22320}
22321_ACEOF
22322rm -f conftest.$ac_objext
22323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22324 (eval $ac_compile) 2>conftest.er1
a848cd7e 22325 ac_status=$?
ac1cb8d3
VS
22326 grep -v '^ *+' conftest.er1 >conftest.err
22327 rm -f conftest.er1
22328 cat conftest.err >&5
a848cd7e
SC
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
ca5c6ac3 22331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_sys_large_files=1
22344else
22345 echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348ac_cv_sys_large_files=no
22349fi
ac1cb8d3 22350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22351
22352
22353fi
22354echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22355echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22356
22357 if test "$ac_cv_sys_large_files" != no; then
22358 wx_largefile=yes
22359 cat >>confdefs.h <<_ACEOF
22360#define _LARGE_FILES $ac_cv_sys_large_files
22361_ACEOF
22362
22363 fi
22364
22365 fi
22366
22367 echo "$as_me:$LINENO: checking if large file support is available" >&5
22368echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22369 if test "x$wx_largefile" = "xyes"; then
22370 cat >>confdefs.h <<\_ACEOF
22371#define HAVE_LARGEFILE_SUPPORT 1
22372_ACEOF
22373
22374 fi
22375 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22376echo "${ECHO_T}$wx_largefile" >&6
22377fi
22378
5b674b9d
DE
22379
22380if test "x$wx_largefile" = "xyes"; then
22381 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22382 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22383
22384 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22385 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22386echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22387if test "${wx_cv_STDC_EXT_required+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22389else
22390
00421666
MW
22391 cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h. */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h. */
22397
22398int
22399main ()
22400{
22401
22402 #ifndef __STDC_EXT__
22403 choke me
22404 #endif
22405
22406 ;
22407 return 0;
22408}
22409_ACEOF
22410rm -f conftest.$ac_objext
22411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22412 (eval $ac_compile) 2>conftest.er1
22413 ac_status=$?
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } &&
ca5c6ac3 22419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try='test -s conftest.$ac_objext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 wx_cv_STDC_EXT_required=no
22432else
22433 echo "$as_me: failed program was:" >&5
22434sed 's/^/| /' conftest.$ac_ext >&5
22435
22436wx_cv_STDC_EXT_required=yes
22437
22438fi
22439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22440
22441
22442fi
22443echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22444echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22445 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22446 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22447 fi
22448 fi
5b674b9d 22449 else
5ff751d6 22450 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22451 fi
22452 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22453echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22454if test "${ac_cv_sys_largefile_source+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22456else
22457 while :; do
22458 ac_cv_sys_largefile_source=no
22459 cat >conftest.$ac_ext <<_ACEOF
22460/* confdefs.h. */
22461_ACEOF
22462cat confdefs.h >>conftest.$ac_ext
22463cat >>conftest.$ac_ext <<_ACEOF
22464/* end confdefs.h. */
22465#include <stdio.h>
22466int
22467main ()
22468{
22469return !fseeko;
22470 ;
22471 return 0;
22472}
22473_ACEOF
22474rm -f conftest.$ac_objext
22475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22476 (eval $ac_compile) 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } &&
ca5c6ac3 22483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest.$ac_objext'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 break
22496else
22497 echo "$as_me: failed program was:" >&5
22498sed 's/^/| /' conftest.$ac_ext >&5
22499
22500fi
22501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22502 cat >conftest.$ac_ext <<_ACEOF
22503/* confdefs.h. */
22504_ACEOF
22505cat confdefs.h >>conftest.$ac_ext
22506cat >>conftest.$ac_ext <<_ACEOF
22507/* end confdefs.h. */
22508#define _LARGEFILE_SOURCE 1
22509#include <stdio.h>
22510int
22511main ()
22512{
22513return !fseeko;
22514 ;
22515 return 0;
22516}
22517_ACEOF
22518rm -f conftest.$ac_objext
22519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22520 (eval $ac_compile) 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
ca5c6ac3 22527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest.$ac_objext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_sys_largefile_source=1; break
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544fi
22545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 break
22547done
22548fi
22549echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22550echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22551if test "$ac_cv_sys_largefile_source" != no; then
22552
22553cat >>confdefs.h <<_ACEOF
22554#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22555_ACEOF
22556
22557fi
22558rm -f conftest*
22559
22560# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22561# in glibc 2.1.3, but that breaks too many other things.
22562# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22563echo "$as_me:$LINENO: checking for fseeko" >&5
22564echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22565if test "${ac_cv_func_fseeko+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22567else
22568 cat >conftest.$ac_ext <<_ACEOF
22569/* confdefs.h. */
22570_ACEOF
22571cat confdefs.h >>conftest.$ac_ext
22572cat >>conftest.$ac_ext <<_ACEOF
22573/* end confdefs.h. */
22574#include <stdio.h>
22575int
22576main ()
22577{
22578return fseeko && fseeko (stdin, 0, 0);
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583rm -f conftest.$ac_objext conftest$ac_exeext
22584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22585 (eval $ac_link) 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
ca5c6ac3 22592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; } &&
22598 { ac_try='test -s conftest$ac_exeext'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 ac_cv_func_fseeko=yes
22605else
22606 echo "$as_me: failed program was:" >&5
22607sed 's/^/| /' conftest.$ac_ext >&5
22608
22609ac_cv_func_fseeko=no
22610fi
22611rm -f conftest.err conftest.$ac_objext \
22612 conftest$ac_exeext conftest.$ac_ext
22613fi
22614echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22615echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22616if test $ac_cv_func_fseeko = yes; then
22617
22618cat >>confdefs.h <<\_ACEOF
22619#define HAVE_FSEEKO 1
22620_ACEOF
22621
22622fi
22623
5b674b9d 22624 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22625 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22626 fi
a848cd7e
SC
22627fi
22628
22629echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22630echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22631if test "${ac_cv_c_bigendian+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634 ac_cv_c_bigendian=unknown
22635# See if sys/param.h defines the BYTE_ORDER macro.
22636cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642#include <sys/types.h>
22643#include <sys/param.h>
22644int
22645main ()
22646{
22647
22648#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22649 bogus endian macros
22650#endif
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22657 (eval $ac_compile) 2>conftest.er1
a848cd7e 22658 ac_status=$?
ac1cb8d3
VS
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
a848cd7e
SC
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
ca5c6ac3 22664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } &&
22670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22673 ac_status=$?
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 # It does; now see whether it defined to BIG_ENDIAN or not.
22677cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
22683#include <sys/types.h>
22684#include <sys/param.h>
22685int
22686main ()
22687{
22688
22689#if BYTE_ORDER != BIG_ENDIAN
22690 not big endian
22691#endif
22692 ;
22693 return 0;
22694}
22695_ACEOF
22696rm -f conftest.$ac_objext
22697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22698 (eval $ac_compile) 2>conftest.er1
a848cd7e 22699 ac_status=$?
ac1cb8d3
VS
22700 grep -v '^ *+' conftest.er1 >conftest.err
22701 rm -f conftest.er1
22702 cat conftest.err >&5
a848cd7e
SC
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } &&
ca5c6ac3 22705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; } &&
22711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; }; then
22717 ac_cv_c_bigendian=yes
22718else
22719 echo "$as_me: failed program was:" >&5
22720sed 's/^/| /' conftest.$ac_ext >&5
22721
22722ac_cv_c_bigendian=no
22723fi
ac1cb8d3 22724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22725else
22726 echo "$as_me: failed program was:" >&5
22727sed 's/^/| /' conftest.$ac_ext >&5
22728
22729fi
ac1cb8d3 22730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22731if test $ac_cv_c_bigendian = unknown; then
22732if test "$cross_compiling" = yes; then
22733 ac_cv_c_bigendian=unknown
22734else
22735 cat >conftest.$ac_ext <<_ACEOF
22736/* confdefs.h. */
22737_ACEOF
22738cat confdefs.h >>conftest.$ac_ext
22739cat >>conftest.$ac_ext <<_ACEOF
22740/* end confdefs.h. */
22741main () {
22742 /* Are we little or big endian? From Harbison&Steele. */
22743 union
22744 {
22745 long l;
22746 char c[sizeof (long)];
22747 } u;
22748 u.l = 1;
22749 exit (u.c[sizeof (long) - 1] == 1);
22750}
22751_ACEOF
22752rm -f conftest$ac_exeext
22753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22754 (eval $ac_link) 2>&5
22755 ac_status=$?
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 ac_cv_c_bigendian=no
22764else
22765 echo "$as_me: program exited with status $ac_status" >&5
22766echo "$as_me: failed program was:" >&5
22767sed 's/^/| /' conftest.$ac_ext >&5
22768
22769( exit $ac_status )
22770ac_cv_c_bigendian=yes
22771fi
ac1cb8d3 22772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22773fi
22774fi
22775fi
22776echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22777echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22778if test $ac_cv_c_bigendian = unknown; then
22779 { 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
22780echo "$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;}
22781fi
22782if test $ac_cv_c_bigendian = yes; then
22783 cat >>confdefs.h <<\_ACEOF
22784#define WORDS_BIGENDIAN 1
22785_ACEOF
22786
22787fi
22788
22789
a848cd7e
SC
22790
22791
22792
22793 ac_ext=cc
22794ac_cpp='$CXXCPP $CPPFLAGS'
22795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22798
22799
22800
22801for ac_header in iostream
22802do
22803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22804if eval "test \"\${$as_ac_Header+set}\" = set"; then
22805 echo "$as_me:$LINENO: checking for $ac_header" >&5
22806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22807if eval "test \"\${$as_ac_Header+set}\" = set"; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22809fi
22810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22812else
22813 # Is the header compilable?
22814echo "$as_me:$LINENO: checking $ac_header usability" >&5
22815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22816cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822$ac_includes_default
22823#include <$ac_header>
22824_ACEOF
22825rm -f conftest.$ac_objext
22826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22827 (eval $ac_compile) 2>conftest.er1
a848cd7e 22828 ac_status=$?
ac1cb8d3
VS
22829 grep -v '^ *+' conftest.er1 >conftest.err
22830 rm -f conftest.er1
22831 cat conftest.err >&5
a848cd7e
SC
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } &&
ca5c6ac3 22834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; } &&
22840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 ac_header_compiler=yes
22847else
22848 echo "$as_me: failed program was:" >&5
22849sed 's/^/| /' conftest.$ac_ext >&5
22850
22851ac_header_compiler=no
22852fi
ac1cb8d3 22853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22855echo "${ECHO_T}$ac_header_compiler" >&6
22856
22857# Is the header present?
22858echo "$as_me:$LINENO: checking $ac_header presence" >&5
22859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22860cat >conftest.$ac_ext <<_ACEOF
22861/* confdefs.h. */
22862_ACEOF
22863cat confdefs.h >>conftest.$ac_ext
22864cat >>conftest.$ac_ext <<_ACEOF
22865/* end confdefs.h. */
22866#include <$ac_header>
22867_ACEOF
22868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22870 ac_status=$?
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } >/dev/null; then
22876 if test -s conftest.err; then
22877 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22879 else
22880 ac_cpp_err=
22881 fi
22882else
22883 ac_cpp_err=yes
22884fi
22885if test -z "$ac_cpp_err"; then
22886 ac_header_preproc=yes
22887else
22888 echo "$as_me: failed program was:" >&5
22889sed 's/^/| /' conftest.$ac_ext >&5
22890
22891 ac_header_preproc=no
22892fi
22893rm -f conftest.err conftest.$ac_ext
22894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22895echo "${ECHO_T}$ac_header_preproc" >&6
22896
22897# So? What about this header?
ac1cb8d3
VS
22898case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22899 yes:no: )
a848cd7e
SC
22900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22904 ac_header_preproc=yes
a848cd7e 22905 ;;
ac1cb8d3 22906 no:yes:* )
a848cd7e
SC
22907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22919 (
22920 cat <<\_ASBOX
ac1cb8d3
VS
22921## ----------------------------------------- ##
22922## Report this to wx-dev@lists.wxwidgets.org ##
22923## ----------------------------------------- ##
a848cd7e
SC
22924_ASBOX
22925 ) |
22926 sed "s/^/$as_me: WARNING: /" >&2
22927 ;;
22928esac
22929echo "$as_me:$LINENO: checking for $ac_header" >&5
22930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22931if eval "test \"\${$as_ac_Header+set}\" = set"; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22933else
ac1cb8d3 22934 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22935fi
22936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22938
22939fi
22940if test `eval echo '${'$as_ac_Header'}'` = yes; then
22941 cat >>confdefs.h <<_ACEOF
22942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22943_ACEOF
22944
22945fi
22946
22947done
22948
22949
22950 if test "$ac_cv_header_iostream" = "yes" ; then
22951 :
22952 else
22953 cat >>confdefs.h <<\_ACEOF
22954#define wxUSE_IOSTREAMH 1
22955_ACEOF
22956
22957 fi
22958
5d7b7554
VZ
22959 ac_ext=cc
22960ac_cpp='$CXXCPP $CPPFLAGS'
22961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22964
22965
22966
22967
22968 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22969echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22970if test "${wx_cv_cpp_bool+set}" = set; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22972else
22973
22974
22975
22976 ac_ext=cc
22977ac_cpp='$CXXCPP $CPPFLAGS'
22978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22981
22982
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989
22990
22991int
22992main ()
22993{
22994
22995 bool b = true;
22996
22997 return 0;
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
23004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23005 (eval $ac_compile) 2>conftest.er1
a848cd7e 23006 ac_status=$?
ac1cb8d3
VS
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
a848cd7e
SC
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
ca5c6ac3 23012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024
23025 wx_cv_cpp_bool=yes
23026
23027else
23028 echo "$as_me: failed program was:" >&5
23029sed 's/^/| /' conftest.$ac_ext >&5
23030
23031
23032 wx_cv_cpp_bool=no
23033
23034
23035fi
ac1cb8d3 23036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23037
5d7b7554
VZ
23038 ac_ext=cc
23039ac_cpp='$CXXCPP $CPPFLAGS'
23040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23043
23044
23045fi
23046echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23047echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23048
23049 if test "$wx_cv_cpp_bool" = "yes"; then
23050 cat >>confdefs.h <<\_ACEOF
23051#define HAVE_BOOL 1
23052_ACEOF
23053
23054 fi
23055
23056
23057
23058 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23059echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23060if test "${wx_cv_explicit+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063
23064
23065
23066 ac_ext=cc
23067ac_cpp='$CXXCPP $CPPFLAGS'
23068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23071
23072
23073 cat >conftest.$ac_ext <<_ACEOF
23074/* confdefs.h. */
23075_ACEOF
23076cat confdefs.h >>conftest.$ac_ext
23077cat >>conftest.$ac_ext <<_ACEOF
23078/* end confdefs.h. */
23079
23080 class Foo { public: explicit Foo(int) {} };
23081
23082int
23083main ()
23084{
23085
23086 return 0;
23087
23088 ;
23089 return 0;
23090}
23091_ACEOF
23092rm -f conftest.$ac_objext
23093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23094 (eval $ac_compile) 2>conftest.er1
a848cd7e 23095 ac_status=$?
ac1cb8d3
VS
23096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
a848cd7e
SC
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
ca5c6ac3 23101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; } &&
23107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113
23114 cat >conftest.$ac_ext <<_ACEOF
23115/* confdefs.h. */
23116_ACEOF
23117cat confdefs.h >>conftest.$ac_ext
23118cat >>conftest.$ac_ext <<_ACEOF
23119/* end confdefs.h. */
23120
23121 class Foo { public: explicit Foo(int) {} };
23122 static void TakeFoo(const Foo& foo) { }
23123
23124int
23125main ()
23126{
23127
23128 TakeFoo(17);
23129 return 0;
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
23135rm -f conftest.$ac_objext
23136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23137 (eval $ac_compile) 2>conftest.er1
a848cd7e 23138 ac_status=$?
ac1cb8d3
VS
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
a848cd7e
SC
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } &&
ca5c6ac3 23144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; } &&
23150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }; then
23156 wx_cv_explicit=no
23157else
23158 echo "$as_me: failed program was:" >&5
23159sed 's/^/| /' conftest.$ac_ext >&5
23160
23161wx_cv_explicit=yes
23162
23163fi
ac1cb8d3 23164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23165
23166else
23167 echo "$as_me: failed program was:" >&5
23168sed 's/^/| /' conftest.$ac_ext >&5
23169
23170wx_cv_explicit=no
23171
23172fi
ac1cb8d3 23173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23174
5d7b7554
VZ
23175 ac_ext=cc
23176ac_cpp='$CXXCPP $CPPFLAGS'
23177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23180
23181
23182fi
23183echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23184echo "${ECHO_T}$wx_cv_explicit" >&6
23185
23186 if test "$wx_cv_explicit" = "yes"; then
23187 cat >>confdefs.h <<\_ACEOF
23188#define HAVE_EXPLICIT 1
23189_ACEOF
23190
23191 fi
23192
23193
23194echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23195echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23196if test "${ac_cv_cxx_const_cast+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198else
23199
23200
23201 ac_ext=cc
23202ac_cpp='$CXXCPP $CPPFLAGS'
23203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23206
23207 cat >conftest.$ac_ext <<_ACEOF
23208/* confdefs.h. */
23209_ACEOF
23210cat confdefs.h >>conftest.$ac_ext
23211cat >>conftest.$ac_ext <<_ACEOF
23212/* end confdefs.h. */
23213
23214int
23215main ()
23216{
23217int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23218 ;
23219 return 0;
23220}
23221_ACEOF
23222rm -f conftest.$ac_objext
23223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23224 (eval $ac_compile) 2>conftest.er1
a848cd7e 23225 ac_status=$?
ac1cb8d3
VS
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
a848cd7e
SC
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
ca5c6ac3 23231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; } &&
23237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; }; then
23243 ac_cv_cxx_const_cast=yes
23244else
23245 echo "$as_me: failed program was:" >&5
23246sed 's/^/| /' conftest.$ac_ext >&5
23247
23248ac_cv_cxx_const_cast=no
23249fi
ac1cb8d3 23250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23251 ac_ext=cc
23252ac_cpp='$CXXCPP $CPPFLAGS'
23253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23256
23257
23258fi
23259echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23260echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23261if test "$ac_cv_cxx_const_cast" = yes; then
23262
23263cat >>confdefs.h <<\_ACEOF
23264#define HAVE_CONST_CAST
23265_ACEOF
23266
23267fi
23268
7714864e
RL
23269echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23270echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23271if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23273else
23274
23275
23276 ac_ext=cc
23277ac_cpp='$CXXCPP $CPPFLAGS'
23278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23281
23282 cat >conftest.$ac_ext <<_ACEOF
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
23288#include <typeinfo>
23289class Base { public : Base () {} virtual void f () = 0;};
23290class Derived : public Base { public : Derived () {} virtual void f () {} };
23291class Unrelated { public : Unrelated () {} };
23292int g (Unrelated&) { return 0; }
23293int
23294main ()
23295{
23296
23297Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302rm -f conftest.$ac_objext
23303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23304 (eval $ac_compile) 2>conftest.er1
23305 ac_status=$?
23306 grep -v '^ *+' conftest.er1 >conftest.err
23307 rm -f conftest.er1
23308 cat conftest.err >&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
ca5c6ac3 23311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; } &&
23317 { ac_try='test -s conftest.$ac_objext'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 ac_cv_cxx_reinterpret_cast=yes
23324else
23325 echo "$as_me: failed program was:" >&5
23326sed 's/^/| /' conftest.$ac_ext >&5
23327
23328ac_cv_cxx_reinterpret_cast=no
23329fi
23330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23331 ac_ext=cc
23332ac_cpp='$CXXCPP $CPPFLAGS'
23333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23336
23337
23338fi
23339echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23340echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23341if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23342
23343cat >>confdefs.h <<\_ACEOF
23344#define HAVE_REINTERPRET_CAST
23345_ACEOF
23346
23347fi
23348
a848cd7e
SC
23349echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23350echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23351if test "${ac_cv_cxx_static_cast+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23353else
23354
23355
23356 ac_ext=cc
23357ac_cpp='$CXXCPP $CPPFLAGS'
23358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23361
23362 cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368#include <typeinfo>
23369class Base { public : Base () {} virtual void f () = 0; };
23370class Derived : public Base { public : Derived () {} virtual void f () {} };
23371int g (Derived&) { return 0; }
23372int
23373main ()
23374{
23375
23376Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23377 ;
23378 return 0;
23379}
23380_ACEOF
23381rm -f conftest.$ac_objext
23382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23383 (eval $ac_compile) 2>conftest.er1
a848cd7e 23384 ac_status=$?
ac1cb8d3
VS
23385 grep -v '^ *+' conftest.er1 >conftest.err
23386 rm -f conftest.er1
23387 cat conftest.err >&5
a848cd7e
SC
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } &&
ca5c6ac3 23390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; } &&
23396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_cxx_static_cast=yes
23403else
23404 echo "$as_me: failed program was:" >&5
23405sed 's/^/| /' conftest.$ac_ext >&5
23406
23407ac_cv_cxx_static_cast=no
23408fi
ac1cb8d3 23409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23410 ac_ext=cc
23411ac_cpp='$CXXCPP $CPPFLAGS'
23412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23415
23416
23417fi
23418echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23419echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23420if test "$ac_cv_cxx_static_cast" = yes; then
23421
23422cat >>confdefs.h <<\_ACEOF
23423#define HAVE_STATIC_CAST
23424_ACEOF
23425
23426fi
23427
23428
3c28b7cb 23429if test "x$SUNCXX" = xyes; then
c92ad099 23430 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23431fi
23432
9122d155 23433if test "x$SUNCC" = xyes; then
c92ad099 23434 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23435fi
23436
0ad5d837 23437if test "x$SGICC" = "xyes"; then
c92ad099 23438 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23439fi
23440if test "x$SGICXX" = "xyes"; then
c92ad099 23441 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23442fi
23443
2eef8513 23444if test "x$HPCC" = "xyes"; then
c92ad099 23445 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23446fi
23447if test "x$HPCXX" = "xyes"; then
c92ad099 23448 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23449fi
23450
23451if test "x$COMPAQCXX" = "xyes"; then
23452 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23453fi
23454
f56c22b4 23455if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23456 if test "$wxUSE_UNICODE" = "yes"; then
23457 std_string="std::wstring"
23458 char_type="wchar_t"
23459 else
23460 std_string="std::string"
23461 char_type="char"
23462 fi
23463
23464 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23465echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23466 cat >conftest.$ac_ext <<_ACEOF
23467/* confdefs.h. */
23468_ACEOF
23469cat confdefs.h >>conftest.$ac_ext
23470cat >>conftest.$ac_ext <<_ACEOF
23471/* end confdefs.h. */
23472#include <string>
a848cd7e
SC
23473int
23474main ()
23475{
f56c22b4 23476$std_string foo;
a848cd7e
SC
23477 ;
23478 return 0;
23479}
23480_ACEOF
23481rm -f conftest.$ac_objext
23482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23483 (eval $ac_compile) 2>conftest.er1
a848cd7e 23484 ac_status=$?
ac1cb8d3
VS
23485 grep -v '^ *+' conftest.er1 >conftest.err
23486 rm -f conftest.er1
23487 cat conftest.err >&5
a848cd7e
SC
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } &&
ca5c6ac3 23490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23493 ac_status=$?
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; } &&
23496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; }; then
23502 echo "$as_me:$LINENO: result: yes" >&5
23503echo "${ECHO_T}yes" >&6
0a08f02a
MB
23504 cat >>confdefs.h <<\_ACEOF
23505#define HAVE_STD_WSTRING 1
23506_ACEOF
23507
a848cd7e
SC
23508else
23509 echo "$as_me: failed program was:" >&5
23510sed 's/^/| /' conftest.$ac_ext >&5
23511
23512echo "$as_me:$LINENO: result: no" >&5
23513echo "${ECHO_T}no" >&6
f56c22b4
MW
23514 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23515echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23516 cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
23522
23523 #ifdef HAVE_WCHAR_H
23524 # ifdef __CYGWIN__
23525 # include <stddef.h>
23526 # endif
23527 # include <wchar.h>
23528 #endif
23529 #ifdef HAVE_STDLIB_H
23530 # include <stdlib.h>
23531 #endif
23532 #include <stdio.h>
23533 #include <string>
23534
23535int
23536main ()
23537{
f56c22b4
MW
23538std::basic_string<$char_type> foo;
23539 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23540 ;
23541 return 0;
23542}
23543_ACEOF
23544rm -f conftest.$ac_objext
23545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546 (eval $ac_compile) 2>conftest.er1
23547 ac_status=$?
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
ca5c6ac3 23553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest.$ac_objext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 echo "$as_me:$LINENO: result: yes" >&5
23566echo "${ECHO_T}yes" >&6
23567else
23568 echo "$as_me: failed program was:" >&5
23569sed 's/^/| /' conftest.$ac_ext >&5
23570
23571echo "$as_me:$LINENO: result: no" >&5
23572echo "${ECHO_T}no" >&6
f56c22b4 23573 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23574 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23575echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23576 { (exit 1); exit 1; }; }
23577 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23578 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23579echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23580 { (exit 1); exit 1; }; }
f56c22b4
MW
23581 else
23582 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23583echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23584 wxUSE_STD_STRING=no
23585 fi
23586
0a08f02a 23587
a848cd7e 23588fi
ac1cb8d3 23589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23590
0a08f02a
MB
23591fi
23592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23593fi
23594
23595if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23596 echo "$as_me:$LINENO: checking for std::istream" >&5
23597echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23598if test "${ac_cv_type_std__istream+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601 cat >conftest.$ac_ext <<_ACEOF
23602/* confdefs.h. */
23603_ACEOF
23604cat confdefs.h >>conftest.$ac_ext
23605cat >>conftest.$ac_ext <<_ACEOF
23606/* end confdefs.h. */
23607#include <iostream>
23608
23609int
23610main ()
23611{
23612if ((std::istream *) 0)
23613 return 0;
23614if (sizeof (std::istream))
23615 return 0;
23616 ;
23617 return 0;
23618}
23619_ACEOF
23620rm -f conftest.$ac_objext
23621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23622 (eval $ac_compile) 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } &&
ca5c6ac3 23629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } &&
23635 { ac_try='test -s conftest.$ac_objext'
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; }; then
23641 ac_cv_type_std__istream=yes
23642else
23643 echo "$as_me: failed program was:" >&5
23644sed 's/^/| /' conftest.$ac_ext >&5
23645
23646ac_cv_type_std__istream=no
23647fi
23648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23649fi
23650echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23651echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23652if test $ac_cv_type_std__istream = yes; then
23653
23654cat >>confdefs.h <<_ACEOF
23655#define HAVE_STD__ISTREAM 1
23656_ACEOF
23657
23658
23659else
23660 wxUSE_STD_IOSTREAM=no
23661fi
23662echo "$as_me:$LINENO: checking for std::ostream" >&5
23663echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23664if test "${ac_cv_type_std__ostream+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666else
23667 cat >conftest.$ac_ext <<_ACEOF
23668/* confdefs.h. */
23669_ACEOF
23670cat confdefs.h >>conftest.$ac_ext
23671cat >>conftest.$ac_ext <<_ACEOF
23672/* end confdefs.h. */
23673#include <iostream>
23674
23675int
23676main ()
23677{
23678if ((std::ostream *) 0)
23679 return 0;
23680if (sizeof (std::ostream))
23681 return 0;
23682 ;
23683 return 0;
23684}
23685_ACEOF
23686rm -f conftest.$ac_objext
23687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23688 (eval $ac_compile) 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
ca5c6ac3 23695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; } &&
23701 { ac_try='test -s conftest.$ac_objext'
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23704 ac_status=$?
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; }; then
23707 ac_cv_type_std__ostream=yes
23708else
23709 echo "$as_me: failed program was:" >&5
23710sed 's/^/| /' conftest.$ac_ext >&5
23711
23712ac_cv_type_std__ostream=no
23713fi
23714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23715fi
23716echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23717echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23718if test $ac_cv_type_std__ostream = yes; then
23719
23720cat >>confdefs.h <<_ACEOF
23721#define HAVE_STD__OSTREAM 1
23722_ACEOF
23723
23724
23725else
23726 wxUSE_STD_IOSTREAM=no
23727fi
23728
23729
23730 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23731 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23732 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23733echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23734 { (exit 1); exit 1; }; }
23735 else
23736 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23737echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23738 fi
f56c22b4 23739 fi
0a08f02a
MB
23740fi
23741
23742if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23743 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23744echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23745 cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751#include <string>
0a08f02a
MB
23752 #include <functional>
23753 #include <algorithm>
23754 #include <vector>
23755 #include <list>
a848cd7e
SC
23756int
23757main ()
23758{
0a08f02a
MB
23759std::vector<int> moo;
23760 std::list<int> foo;
23761 std::vector<int>::iterator it =
23762 std::find_if(moo.begin(), moo.end(),
23763 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23764 ;
23765 return 0;
23766}
23767_ACEOF
23768rm -f conftest.$ac_objext
23769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23770 (eval $ac_compile) 2>conftest.er1
a848cd7e 23771 ac_status=$?
ac1cb8d3
VS
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
a848cd7e
SC
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
ca5c6ac3 23777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 echo "$as_me:$LINENO: result: yes" >&5
23790echo "${ECHO_T}yes" >&6
a848cd7e
SC
23791else
23792 echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795echo "$as_me:$LINENO: result: no" >&5
23796echo "${ECHO_T}no" >&6
0a08f02a
MB
23797 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23798echo "$as_me: error: Basic STL functionality missing" >&2;}
23799 { (exit 1); exit 1; }; }
a848cd7e 23800fi
ac1cb8d3 23801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23802
23803 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23804echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23805 cat >conftest.$ac_ext <<_ACEOF
23806/* confdefs.h. */
23807_ACEOF
23808cat confdefs.h >>conftest.$ac_ext
23809cat >>conftest.$ac_ext <<_ACEOF
23810/* end confdefs.h. */
23811#include <string>
23812int
23813main ()
23814{
23815std::string foo, bar;
23816 foo.compare(bar);
23817 foo.compare(1, 1, bar);
23818 foo.compare(1, 1, bar, 1, 1);
23819 foo.compare("");
23820 foo.compare(1, 1, "");
23821 foo.compare(1, 1, "", 2);
23822 ;
23823 return 0;
23824}
23825_ACEOF
23826rm -f conftest.$ac_objext
23827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23828 (eval $ac_compile) 2>conftest.er1
a848cd7e 23829 ac_status=$?
ac1cb8d3
VS
23830 grep -v '^ *+' conftest.er1 >conftest.err
23831 rm -f conftest.er1
23832 cat conftest.err >&5
a848cd7e
SC
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } &&
ca5c6ac3 23835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837 (eval $ac_try) 2>&5
23838 ac_status=$?
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; } &&
23841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843 (eval $ac_try) 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); }; }; then
23847 echo "$as_me:$LINENO: result: yes" >&5
23848echo "${ECHO_T}yes" >&6
23849 cat >>confdefs.h <<\_ACEOF
23850#define HAVE_STD_STRING_COMPARE 1
23851_ACEOF
23852
23853else
23854 echo "$as_me: failed program was:" >&5
23855sed 's/^/| /' conftest.$ac_ext >&5
23856
23857echo "$as_me:$LINENO: result: no" >&5
23858echo "${ECHO_T}no" >&6
23859fi
ac1cb8d3 23860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23861
23862 if test "${ac_cv_header_hash_map+set}" = set; then
23863 echo "$as_me:$LINENO: checking for hash_map" >&5
23864echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23865if test "${ac_cv_header_hash_map+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867fi
23868echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23869echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23870else
23871 # Is the header compilable?
23872echo "$as_me:$LINENO: checking hash_map usability" >&5
23873echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23874cat >conftest.$ac_ext <<_ACEOF
23875/* confdefs.h. */
23876_ACEOF
23877cat confdefs.h >>conftest.$ac_ext
23878cat >>conftest.$ac_ext <<_ACEOF
23879/* end confdefs.h. */
23880$ac_includes_default
23881#include <hash_map>
23882_ACEOF
23883rm -f conftest.$ac_objext
23884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23885 (eval $ac_compile) 2>conftest.er1
bdcade0a 23886 ac_status=$?
ac1cb8d3
VS
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
bdcade0a
MB
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } &&
ca5c6ac3 23892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; } &&
23898 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 ac_header_compiler=yes
23905else
23906 echo "$as_me: failed program was:" >&5
23907sed 's/^/| /' conftest.$ac_ext >&5
23908
23909ac_header_compiler=no
23910fi
ac1cb8d3 23911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23913echo "${ECHO_T}$ac_header_compiler" >&6
23914
23915# Is the header present?
23916echo "$as_me:$LINENO: checking hash_map presence" >&5
23917echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23918cat >conftest.$ac_ext <<_ACEOF
23919/* confdefs.h. */
23920_ACEOF
23921cat confdefs.h >>conftest.$ac_ext
23922cat >>conftest.$ac_ext <<_ACEOF
23923/* end confdefs.h. */
23924#include <hash_map>
23925_ACEOF
23926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23928 ac_status=$?
23929 grep -v '^ *+' conftest.er1 >conftest.err
23930 rm -f conftest.er1
23931 cat conftest.err >&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } >/dev/null; then
23934 if test -s conftest.err; then
23935 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23936 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23937 else
23938 ac_cpp_err=
23939 fi
23940else
23941 ac_cpp_err=yes
23942fi
23943if test -z "$ac_cpp_err"; then
23944 ac_header_preproc=yes
23945else
23946 echo "$as_me: failed program was:" >&5
23947sed 's/^/| /' conftest.$ac_ext >&5
23948
23949 ac_header_preproc=no
23950fi
23951rm -f conftest.err conftest.$ac_ext
23952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23953echo "${ECHO_T}$ac_header_preproc" >&6
23954
23955# So? What about this header?
ac1cb8d3
VS
23956case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23957 yes:no: )
bdcade0a
MB
23958 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23959echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23960 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23961echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23962 ac_header_preproc=yes
bdcade0a 23963 ;;
ac1cb8d3 23964 no:yes:* )
bdcade0a
MB
23965 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23966echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23967 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23968echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23969 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23970echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23971 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23972echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23973 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23974echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23975 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23976echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23977 (
23978 cat <<\_ASBOX
ac1cb8d3
VS
23979## ----------------------------------------- ##
23980## Report this to wx-dev@lists.wxwidgets.org ##
23981## ----------------------------------------- ##
bdcade0a
MB
23982_ASBOX
23983 ) |
23984 sed "s/^/$as_me: WARNING: /" >&2
23985 ;;
23986esac
23987echo "$as_me:$LINENO: checking for hash_map" >&5
23988echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23989if test "${ac_cv_header_hash_map+set}" = set; then
23990 echo $ECHO_N "(cached) $ECHO_C" >&6
23991else
23992 ac_cv_header_hash_map=$ac_header_preproc
23993fi
23994echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23995echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23996
23997fi
23998if test $ac_cv_header_hash_map = yes; then
23999 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24000echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24001 cat >conftest.$ac_ext <<_ACEOF
24002/* confdefs.h. */
24003_ACEOF
24004cat confdefs.h >>conftest.$ac_ext
24005cat >>conftest.$ac_ext <<_ACEOF
24006/* end confdefs.h. */
24007#include <hash_map>
24008 #include <hash_set>
24009int
24010main ()
24011{
24012std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24013 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24014 ;
24015 return 0;
24016}
24017_ACEOF
24018rm -f conftest.$ac_objext
24019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24020 (eval $ac_compile) 2>conftest.er1
bdcade0a 24021 ac_status=$?
ac1cb8d3
VS
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
bdcade0a
MB
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } &&
ca5c6ac3 24027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; } &&
24033 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035 (eval $ac_try) 2>&5
24036 ac_status=$?
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; }; then
24039 echo "$as_me:$LINENO: result: yes" >&5
24040echo "${ECHO_T}yes" >&6
24041 cat >>confdefs.h <<\_ACEOF
24042#define HAVE_HASH_MAP 1
24043_ACEOF
24044
24045 cat >>confdefs.h <<\_ACEOF
24046#define HAVE_STD_HASH_MAP 1
24047_ACEOF
24048
24049else
24050 echo "$as_me: failed program was:" >&5
24051sed 's/^/| /' conftest.$ac_ext >&5
24052
24053echo "$as_me:$LINENO: result: no" >&5
24054echo "${ECHO_T}no" >&6
24055fi
ac1cb8d3 24056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24057
24058fi
24059
24060
24061
24062 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24063 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24064echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24065if test "${ac_cv_header_ext_hash_map+set}" = set; then
24066 echo $ECHO_N "(cached) $ECHO_C" >&6
24067fi
24068echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24069echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24070else
24071 # Is the header compilable?
24072echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24073echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24074cat >conftest.$ac_ext <<_ACEOF
24075/* confdefs.h. */
24076_ACEOF
24077cat confdefs.h >>conftest.$ac_ext
24078cat >>conftest.$ac_ext <<_ACEOF
24079/* end confdefs.h. */
24080$ac_includes_default
24081#include <ext/hash_map>
24082_ACEOF
24083rm -f conftest.$ac_objext
24084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24085 (eval $ac_compile) 2>conftest.er1
bdcade0a 24086 ac_status=$?
ac1cb8d3
VS
24087 grep -v '^ *+' conftest.er1 >conftest.err
24088 rm -f conftest.er1
24089 cat conftest.err >&5
bdcade0a
MB
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
ca5c6ac3 24092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); }; } &&
24098 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }; }; then
24104 ac_header_compiler=yes
24105else
24106 echo "$as_me: failed program was:" >&5
24107sed 's/^/| /' conftest.$ac_ext >&5
24108
24109ac_header_compiler=no
24110fi
ac1cb8d3 24111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24113echo "${ECHO_T}$ac_header_compiler" >&6
24114
24115# Is the header present?
24116echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24117echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24118cat >conftest.$ac_ext <<_ACEOF
24119/* confdefs.h. */
24120_ACEOF
24121cat confdefs.h >>conftest.$ac_ext
24122cat >>conftest.$ac_ext <<_ACEOF
24123/* end confdefs.h. */
24124#include <ext/hash_map>
24125_ACEOF
24126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24128 ac_status=$?
24129 grep -v '^ *+' conftest.er1 >conftest.err
24130 rm -f conftest.er1
24131 cat conftest.err >&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); } >/dev/null; then
24134 if test -s conftest.err; then
24135 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24137 else
24138 ac_cpp_err=
24139 fi
24140else
24141 ac_cpp_err=yes
24142fi
24143if test -z "$ac_cpp_err"; then
24144 ac_header_preproc=yes
24145else
24146 echo "$as_me: failed program was:" >&5
24147sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 ac_header_preproc=no
24150fi
24151rm -f conftest.err conftest.$ac_ext
24152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24153echo "${ECHO_T}$ac_header_preproc" >&6
24154
24155# So? What about this header?
ac1cb8d3
VS
24156case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24157 yes:no: )
bdcade0a
MB
24158 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24159echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24160 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24161echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24162 ac_header_preproc=yes
bdcade0a 24163 ;;
ac1cb8d3 24164 no:yes:* )
bdcade0a
MB
24165 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24166echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24167 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24168echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24169 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24170echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24172echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24173 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24174echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24175 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24176echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24177 (
24178 cat <<\_ASBOX
ac1cb8d3
VS
24179## ----------------------------------------- ##
24180## Report this to wx-dev@lists.wxwidgets.org ##
24181## ----------------------------------------- ##
bdcade0a
MB
24182_ASBOX
24183 ) |
24184 sed "s/^/$as_me: WARNING: /" >&2
24185 ;;
24186esac
24187echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24188echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24189if test "${ac_cv_header_ext_hash_map+set}" = set; then
24190 echo $ECHO_N "(cached) $ECHO_C" >&6
24191else
24192 ac_cv_header_ext_hash_map=$ac_header_preproc
24193fi
24194echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24195echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24196
24197fi
24198if test $ac_cv_header_ext_hash_map = yes; then
24199 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24200echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24201 cat >conftest.$ac_ext <<_ACEOF
24202/* confdefs.h. */
24203_ACEOF
24204cat confdefs.h >>conftest.$ac_ext
24205cat >>conftest.$ac_ext <<_ACEOF
24206/* end confdefs.h. */
24207#include <ext/hash_map>
24208 #include <ext/hash_set>
24209int
24210main ()
24211{
24212__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24213 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24214 ;
24215 return 0;
24216}
24217_ACEOF
24218rm -f conftest.$ac_objext
24219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24220 (eval $ac_compile) 2>conftest.er1
bdcade0a 24221 ac_status=$?
ac1cb8d3
VS
24222 grep -v '^ *+' conftest.er1 >conftest.err
24223 rm -f conftest.er1
24224 cat conftest.err >&5
bdcade0a
MB
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } &&
ca5c6ac3 24227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229 (eval $ac_try) 2>&5
24230 ac_status=$?
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; } &&
24233 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235 (eval $ac_try) 2>&5
24236 ac_status=$?
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); }; }; then
24239 echo "$as_me:$LINENO: result: yes" >&5
24240echo "${ECHO_T}yes" >&6
24241 cat >>confdefs.h <<\_ACEOF
24242#define HAVE_EXT_HASH_MAP 1
24243_ACEOF
24244
24245 cat >>confdefs.h <<\_ACEOF
24246#define HAVE_GNU_CXX_HASH_MAP 1
24247_ACEOF
24248
24249else
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253echo "$as_me:$LINENO: result: no" >&5
24254echo "${ECHO_T}no" >&6
24255fi
ac1cb8d3 24256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24257
24258fi
24259
24260
a848cd7e
SC
24261fi
24262
24263
24264SEARCH_INCLUDE="\
24265 /usr/local/include \
24266 \
24267 /usr/Motif-2.1/include \
24268 /usr/Motif-1.2/include \
24269 /usr/include/Motif1.2 \
a848cd7e
SC
24270 \
24271 /usr/dt/include \
24272 /usr/openwin/include \
24273 \
24274 /usr/include/Xm \
24275 \
24276 /usr/X11R6/include \
24277 /usr/X11R6.4/include \
24278 /usr/X11R5/include \
24279 /usr/X11R4/include \
24280 \
24281 /usr/include/X11R6 \
24282 /usr/include/X11R5 \
24283 /usr/include/X11R4 \
24284 \
24285 /usr/local/X11R6/include \
24286 /usr/local/X11R5/include \
24287 /usr/local/X11R4/include \
24288 \
24289 /usr/local/include/X11R6 \
24290 /usr/local/include/X11R5 \
24291 /usr/local/include/X11R4 \
24292 \
24293 /usr/X11/include \
24294 /usr/include/X11 \
24295 /usr/local/X11/include \
24296 /usr/local/include/X11 \
24297 \
a848cd7e 24298 /usr/XFree86/include/X11 \
e051b34e
MW
24299 /usr/pkg/include \
24300 \
a848cd7e
SC
24301 /usr/openwin/share/include"
24302
6f9cf1e6 24303echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24304echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24305
24306case "${host}" in
24307 *-*-irix6* )
24308 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24310else
24311
c687b303
VZ
24312 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24313 for e in a so sl dylib dll.a; do
24314 libc="$d/libc.$e"
24315 if test -f $libc; then
24316 save_LIBS="$LIBS"
24317 LIBS="$libc"
24318 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24319int main() { return 0; }
24320_ACEOF
24321rm -f conftest.$ac_objext conftest$ac_exeext
24322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24323 (eval $ac_link) 2>conftest.er1
24324 ac_status=$?
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } &&
ca5c6ac3 24330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332 (eval $ac_try) 2>&5
24333 ac_status=$?
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; } &&
24336 { ac_try='test -s conftest$ac_exeext'
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; }; then
24342 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24343else
24344 echo "$as_me: failed program was:" >&5
24345sed 's/^/| /' conftest.$ac_ext >&5
24346
24347fi
24348rm -f conftest.err conftest.$ac_objext \
24349 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24350 LIBS="$save_LIBS"
24351 if test "x$wx_cv_std_libpath" != "x"; then
24352 break 2
24353 fi
24354 fi
24355 done
24356 done
24357 if test "x$wx_cv_std_libpath" = "x"; then
24358 wx_cv_std_libpath="lib"
0ad5d837 24359 fi
0ad5d837
VZ
24360
24361
24362fi
6f9cf1e6
MW
24363
24364 ;;
24365
24366 *-*-solaris2* )
24367 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24368 wx_cv_std_libpath="lib/64"
24369 else
24370 wx_cv_std_libpath="lib"
24371 fi
24372 ;;
24373
24374 *-*-linux* )
24375 if test "$ac_cv_sizeof_void_p" = 8 -a \
24376 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24377 wx_cv_std_libpath="lib64"
24378 else
24379 wx_cv_std_libpath="lib"
24380 fi
c687b303
VZ
24381 ;;
24382
24383 *)
24384 wx_cv_std_libpath="lib";
24385 ;;
24386esac
0ad5d837 24387
6f9cf1e6
MW
24388echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24389echo "${ECHO_T}$wx_cv_std_libpath" >&6
24390
24391SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24392
3eca31dc
MW
24393if test "$build" != "$host" -a "$GCC" = yes; then
24394 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24395 cross_root=`dirname $cross_root`
24396 cross_root=`dirname $cross_root`
24397
24398 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24399 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24400 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24401
24402 if test -z "$PKG_CONFIG_PATH"; then
24403 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24404 export PKG_CONFIG_PATH
24405 fi
24406
24407 if test -z "$x_includes" -o "$x_includes" = NONE; then
24408
24409ac_find_includes=
24410for ac_dir in $SEARCH_INCLUDE /usr/include;
24411 do
24412 if test -f "$ac_dir/X11/Intrinsic.h"; then
24413 ac_find_includes=$ac_dir
24414 break
24415 fi
24416 done
24417
24418 x_includes=$ac_find_includes
24419 fi
24420 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24421
0ad5d837
VZ
24422 ac_find_libraries=
24423 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24424 do
24425 for ac_extension in a so sl dylib dll.a; do
24426 if test -f "$ac_dir/libXt.$ac_extension"; then
24427 ac_find_libraries=$ac_dir
24428 break 2
24429 fi
24430 done
24431 done
24432
24433 x_libraries=$ac_find_libraries
24434 fi
24435 fi
24436fi
24437
a848cd7e
SC
24438
24439cat >confcache <<\_ACEOF
24440# This file is a shell script that caches the results of configure
24441# tests run on this system so they can be shared between configure
24442# scripts and configure runs, see configure's option --config-cache.
24443# It is not useful on other systems. If it contains results you don't
24444# want to keep, you may remove or edit it.
24445#
24446# config.status only pays attention to the cache file if you give it
24447# the --recheck option to rerun configure.
24448#
24449# `ac_cv_env_foo' variables (set or unset) will be overridden when
24450# loading this file, other *unset* `ac_cv_foo' will be assigned the
24451# following values.
24452
24453_ACEOF
24454
24455# The following way of writing the cache mishandles newlines in values,
24456# but we know of no workaround that is simple, portable, and efficient.
24457# So, don't put newlines in cache variables' values.
24458# Ultrix sh set writes to stderr and can't be redirected directly,
24459# and sets the high bit in the cache file unless we assign to the vars.
24460{
24461 (set) 2>&1 |
24462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24463 *ac_space=\ *)
24464 # `set' does not quote correctly, so add quotes (double-quote
24465 # substitution turns \\\\ into \\, and sed turns \\ into \).
24466 sed -n \
ac1cb8d3
VS
24467 "s/'/'\\\\''/g;
24468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24469 ;;
24470 *)
24471 # `set' quotes correctly as required by POSIX, so do not add quotes.
24472 sed -n \
ac1cb8d3 24473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24474 ;;
24475 esac;
24476} |
24477 sed '
24478 t clear
24479 : clear
24480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24481 t end
24482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24483 : end' >>confcache
24484if diff $cache_file confcache >/dev/null 2>&1; then :; else
24485 if test -w $cache_file; then
24486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24487 cat confcache >$cache_file
24488 else
24489 echo "not updating unwritable cache $cache_file"
24490 fi
24491fi
24492rm -f confcache
24493
24494if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24495 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24496echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24497if test "${wx_cv_lib_glibc21+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499else
24500
24501 cat >conftest.$ac_ext <<_ACEOF
24502/* confdefs.h. */
24503_ACEOF
24504cat confdefs.h >>conftest.$ac_ext
24505cat >>conftest.$ac_ext <<_ACEOF
24506/* end confdefs.h. */
24507#include <features.h>
24508int
24509main ()
24510{
24511
24512 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24513 not glibc 2.1
a848cd7e
SC
24514 #endif
24515
24516 ;
24517 return 0;
24518}
24519_ACEOF
24520rm -f conftest.$ac_objext
24521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24522 (eval $ac_compile) 2>conftest.er1
a848cd7e 24523 ac_status=$?
ac1cb8d3
VS
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
a848cd7e
SC
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } &&
ca5c6ac3 24529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; } &&
24535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; }; then
24541
24542 wx_cv_lib_glibc21=yes
24543
24544else
24545 echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
24547
24548
24549 wx_cv_lib_glibc21=no
24550
24551
24552fi
ac1cb8d3 24553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24554
24555fi
24556echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24557echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24558 if test "$wx_cv_lib_glibc21" = "yes"; then
24559 cat >>confdefs.h <<\_ACEOF
24560#define wxHAVE_GLIBC2 1
24561_ACEOF
24562
24563 fi
24564fi
24565
24566if test "x$wx_cv_lib_glibc21" = "xyes"; then
24567 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24568 cat >>confdefs.h <<\_ACEOF
24569#define _GNU_SOURCE 1
24570_ACEOF
24571
24572 fi
24573fi
24574
5d7b7554
VZ
24575have_cos=0
24576have_floor=0
a848cd7e 24577
5d7b7554
VZ
24578for ac_func in cos
24579do
24580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24581echo "$as_me:$LINENO: checking for $ac_func" >&5
24582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24583if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24584 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24585else
5d7b7554 24586 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24587/* confdefs.h. */
24588_ACEOF
24589cat confdefs.h >>conftest.$ac_ext
24590cat >>conftest.$ac_ext <<_ACEOF
24591/* end confdefs.h. */
5d7b7554
VZ
24592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24594#define $ac_func innocuous_$ac_func
24595
24596/* System header to define __stub macros and hopefully few prototypes,
24597 which can conflict with char $ac_func (); below.
24598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24599 <limits.h> exists even on freestanding compilers. */
24600
24601#ifdef __STDC__
24602# include <limits.h>
24603#else
24604# include <assert.h>
24605#endif
24606
24607#undef $ac_func
24608
24609/* Override any gcc2 internal prototype to avoid an error. */
24610#ifdef __cplusplus
24611extern "C"
24612{
24613#endif
24614/* We use char because int might match the return type of a gcc2
24615 builtin and then its argument prototype would still apply. */
24616char $ac_func ();
24617/* The GNU C library defines this for functions which it implements
24618 to always fail with ENOSYS. Some functions are actually named
24619 something starting with __ and the normal name is an alias. */
24620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24621choke me
24622#else
24623char (*f) () = $ac_func;
24624#endif
24625#ifdef __cplusplus
24626}
24627#endif
24628
24629int
24630main ()
24631{
24632return f != $ac_func;
24633 ;
24634 return 0;
24635}
a848cd7e 24636_ACEOF
5d7b7554
VZ
24637rm -f conftest.$ac_objext conftest$ac_exeext
24638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24639 (eval $ac_link) 2>conftest.er1
a848cd7e 24640 ac_status=$?
ac1cb8d3
VS
24641 grep -v '^ *+' conftest.er1 >conftest.err
24642 rm -f conftest.er1
24643 cat conftest.err >&5
a848cd7e
SC
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } &&
ca5c6ac3 24646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
5d7b7554 24652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; }; then
5d7b7554 24658 eval "$as_ac_var=yes"
a848cd7e
SC
24659else
24660 echo "$as_me: failed program was:" >&5
24661sed 's/^/| /' conftest.$ac_ext >&5
24662
5d7b7554 24663eval "$as_ac_var=no"
a848cd7e 24664fi
5d7b7554
VZ
24665rm -f conftest.err conftest.$ac_objext \
24666 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24667fi
5d7b7554
VZ
24668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24670if test `eval echo '${'$as_ac_var'}'` = yes; then
24671 cat >>confdefs.h <<_ACEOF
24672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24673_ACEOF
24674 have_cos=1
a848cd7e 24675fi
5d7b7554 24676done
a848cd7e 24677
ab0f0edd 24678
5d7b7554 24679for ac_func in floor
a848cd7e
SC
24680do
24681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24682echo "$as_me:$LINENO: checking for $ac_func" >&5
24683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24684if eval "test \"\${$as_ac_var+set}\" = set"; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24686else
24687 cat >conftest.$ac_ext <<_ACEOF
24688/* confdefs.h. */
24689_ACEOF
24690cat confdefs.h >>conftest.$ac_ext
24691cat >>conftest.$ac_ext <<_ACEOF
24692/* end confdefs.h. */
ac1cb8d3
VS
24693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24695#define $ac_func innocuous_$ac_func
24696
a848cd7e
SC
24697/* System header to define __stub macros and hopefully few prototypes,
24698 which can conflict with char $ac_func (); below.
24699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24700 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24701
a848cd7e
SC
24702#ifdef __STDC__
24703# include <limits.h>
24704#else
24705# include <assert.h>
24706#endif
ac1cb8d3
VS
24707
24708#undef $ac_func
24709
a848cd7e
SC
24710/* Override any gcc2 internal prototype to avoid an error. */
24711#ifdef __cplusplus
24712extern "C"
24713{
24714#endif
24715/* We use char because int might match the return type of a gcc2
24716 builtin and then its argument prototype would still apply. */
24717char $ac_func ();
24718/* The GNU C library defines this for functions which it implements
24719 to always fail with ENOSYS. Some functions are actually named
24720 something starting with __ and the normal name is an alias. */
24721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24722choke me
24723#else
24724char (*f) () = $ac_func;
24725#endif
24726#ifdef __cplusplus
24727}
24728#endif
24729
24730int
24731main ()
24732{
24733return f != $ac_func;
24734 ;
24735 return 0;
24736}
24737_ACEOF
24738rm -f conftest.$ac_objext conftest$ac_exeext
24739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24740 (eval $ac_link) 2>conftest.er1
a848cd7e 24741 ac_status=$?
ac1cb8d3
VS
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
a848cd7e
SC
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } &&
ca5c6ac3 24747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; } &&
24753 { ac_try='test -s conftest$ac_exeext'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
24759 eval "$as_ac_var=yes"
24760else
24761 echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764eval "$as_ac_var=no"
24765fi
24766rm -f conftest.err conftest.$ac_objext \
24767 conftest$ac_exeext conftest.$ac_ext
24768fi
24769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24771if test `eval echo '${'$as_ac_var'}'` = yes; then
24772 cat >>confdefs.h <<_ACEOF
24773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24774_ACEOF
24775 have_floor=1
24776fi
24777done
24778
24779echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24780echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24781if test "$have_cos" = 1 -a "$have_floor" = 1; then
24782 echo "$as_me:$LINENO: result: yes" >&5
24783echo "${ECHO_T}yes" >&6
24784else
24785 echo "$as_me:$LINENO: result: no" >&5
24786echo "${ECHO_T}no" >&6
24787 LIBS="$LIBS -lm"
24788 # use different functions to avoid configure caching
24789 have_sin=0
24790 have_ceil=0
24791
24792for ac_func in sin
24793do
24794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24795echo "$as_me:$LINENO: checking for $ac_func" >&5
24796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24797if eval "test \"\${$as_ac_var+set}\" = set"; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799else
24800 cat >conftest.$ac_ext <<_ACEOF
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24808#define $ac_func innocuous_$ac_func
24809
24810/* System header to define __stub macros and hopefully few prototypes,
24811 which can conflict with char $ac_func (); below.
24812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24813 <limits.h> exists even on freestanding compilers. */
24814
24815#ifdef __STDC__
24816# include <limits.h>
24817#else
24818# include <assert.h>
24819#endif
24820
24821#undef $ac_func
24822
24823/* Override any gcc2 internal prototype to avoid an error. */
24824#ifdef __cplusplus
24825extern "C"
24826{
24827#endif
24828/* We use char because int might match the return type of a gcc2
24829 builtin and then its argument prototype would still apply. */
24830char $ac_func ();
24831/* The GNU C library defines this for functions which it implements
24832 to always fail with ENOSYS. Some functions are actually named
24833 something starting with __ and the normal name is an alias. */
24834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24835choke me
24836#else
24837char (*f) () = $ac_func;
24838#endif
24839#ifdef __cplusplus
24840}
24841#endif
24842
24843int
24844main ()
24845{
24846return f != $ac_func;
24847 ;
24848 return 0;
24849}
24850_ACEOF
24851rm -f conftest.$ac_objext conftest$ac_exeext
24852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24853 (eval $ac_link) 2>conftest.er1
24854 ac_status=$?
24855 grep -v '^ *+' conftest.er1 >conftest.err
24856 rm -f conftest.er1
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } &&
ca5c6ac3 24860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; } &&
24866 { ac_try='test -s conftest$ac_exeext'
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; }; then
24872 eval "$as_ac_var=yes"
24873else
24874 echo "$as_me: failed program was:" >&5
24875sed 's/^/| /' conftest.$ac_ext >&5
24876
24877eval "$as_ac_var=no"
24878fi
24879rm -f conftest.err conftest.$ac_objext \
24880 conftest$ac_exeext conftest.$ac_ext
24881fi
24882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24884if test `eval echo '${'$as_ac_var'}'` = yes; then
24885 cat >>confdefs.h <<_ACEOF
24886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24887_ACEOF
24888 have_sin=1
24889fi
24890done
24891
24892
24893for ac_func in ceil
24894do
24895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24896echo "$as_me:$LINENO: checking for $ac_func" >&5
24897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24898if eval "test \"\${$as_ac_var+set}\" = set"; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24900else
24901 cat >conftest.$ac_ext <<_ACEOF
24902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
24907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24909#define $ac_func innocuous_$ac_func
24910
24911/* System header to define __stub macros and hopefully few prototypes,
24912 which can conflict with char $ac_func (); below.
24913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24914 <limits.h> exists even on freestanding compilers. */
24915
24916#ifdef __STDC__
24917# include <limits.h>
24918#else
24919# include <assert.h>
24920#endif
24921
24922#undef $ac_func
24923
24924/* Override any gcc2 internal prototype to avoid an error. */
24925#ifdef __cplusplus
24926extern "C"
24927{
24928#endif
24929/* We use char because int might match the return type of a gcc2
24930 builtin and then its argument prototype would still apply. */
24931char $ac_func ();
24932/* The GNU C library defines this for functions which it implements
24933 to always fail with ENOSYS. Some functions are actually named
24934 something starting with __ and the normal name is an alias. */
24935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24936choke me
24937#else
24938char (*f) () = $ac_func;
24939#endif
24940#ifdef __cplusplus
24941}
24942#endif
24943
24944int
24945main ()
24946{
24947return f != $ac_func;
24948 ;
24949 return 0;
24950}
24951_ACEOF
24952rm -f conftest.$ac_objext conftest$ac_exeext
24953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24954 (eval $ac_link) 2>conftest.er1
24955 ac_status=$?
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } &&
ca5c6ac3 24961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest$ac_exeext'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 eval "$as_ac_var=yes"
24974else
24975 echo "$as_me: failed program was:" >&5
24976sed 's/^/| /' conftest.$ac_ext >&5
24977
24978eval "$as_ac_var=no"
24979fi
24980rm -f conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
24982fi
24983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24985if test `eval echo '${'$as_ac_var'}'` = yes; then
24986 cat >>confdefs.h <<_ACEOF
24987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24988_ACEOF
24989 have_ceil=1
24990fi
24991done
24992
24993 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24994echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24995 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24996 echo "$as_me:$LINENO: result: yes" >&5
24997echo "${ECHO_T}yes" >&6
24998 else
24999 echo "$as_me:$LINENO: result: no" >&5
25000echo "${ECHO_T}no" >&6
25001 # not sure we should warn the user, crash, etc.
25002 fi
25003fi
25004
25005
25006
25007if test "$wxUSE_REGEX" != "no"; then
25008 cat >>confdefs.h <<\_ACEOF
25009#define wxUSE_REGEX 1
25010_ACEOF
25011
25012
25013 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25014 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25015echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25016 wxUSE_REGEX=builtin
25017 fi
25018
25019 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25020 if test "${ac_cv_header_regex_h+set}" = set; then
25021 echo "$as_me:$LINENO: checking for regex.h" >&5
25022echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25023if test "${ac_cv_header_regex_h+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025fi
25026echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25027echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25028else
25029 # Is the header compilable?
25030echo "$as_me:$LINENO: checking regex.h usability" >&5
25031echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25032cat >conftest.$ac_ext <<_ACEOF
25033/* confdefs.h. */
25034_ACEOF
25035cat confdefs.h >>conftest.$ac_ext
25036cat >>conftest.$ac_ext <<_ACEOF
25037/* end confdefs.h. */
25038$ac_includes_default
25039#include <regex.h>
25040_ACEOF
25041rm -f conftest.$ac_objext
25042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25043 (eval $ac_compile) 2>conftest.er1
25044 ac_status=$?
25045 grep -v '^ *+' conftest.er1 >conftest.err
25046 rm -f conftest.er1
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } &&
ca5c6ac3 25050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest.$ac_objext'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; }; then
25062 ac_header_compiler=yes
25063else
25064 echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067ac_header_compiler=no
25068fi
25069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25071echo "${ECHO_T}$ac_header_compiler" >&6
25072
25073# Is the header present?
25074echo "$as_me:$LINENO: checking regex.h presence" >&5
25075echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25076cat >conftest.$ac_ext <<_ACEOF
25077/* confdefs.h. */
25078_ACEOF
25079cat confdefs.h >>conftest.$ac_ext
25080cat >>conftest.$ac_ext <<_ACEOF
25081/* end confdefs.h. */
25082#include <regex.h>
25083_ACEOF
25084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25086 ac_status=$?
25087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } >/dev/null; then
25092 if test -s conftest.err; then
25093 ac_cpp_err=$ac_cxx_preproc_warn_flag
25094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25095 else
25096 ac_cpp_err=
25097 fi
25098else
25099 ac_cpp_err=yes
25100fi
25101if test -z "$ac_cpp_err"; then
25102 ac_header_preproc=yes
25103else
25104 echo "$as_me: failed program was:" >&5
25105sed 's/^/| /' conftest.$ac_ext >&5
25106
25107 ac_header_preproc=no
25108fi
25109rm -f conftest.err conftest.$ac_ext
25110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25111echo "${ECHO_T}$ac_header_preproc" >&6
25112
25113# So? What about this header?
25114case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25115 yes:no: )
25116 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25117echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25118 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25119echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25120 ac_header_preproc=yes
25121 ;;
25122 no:yes:* )
25123 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25124echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25125 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25126echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25128echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25129 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25130echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25132echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25133 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25134echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25135 (
25136 cat <<\_ASBOX
25137## ----------------------------------------- ##
25138## Report this to wx-dev@lists.wxwidgets.org ##
25139## ----------------------------------------- ##
25140_ASBOX
25141 ) |
25142 sed "s/^/$as_me: WARNING: /" >&2
25143 ;;
25144esac
25145echo "$as_me:$LINENO: checking for regex.h" >&5
25146echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25147if test "${ac_cv_header_regex_h+set}" = set; then
25148 echo $ECHO_N "(cached) $ECHO_C" >&6
25149else
25150 ac_cv_header_regex_h=$ac_header_preproc
25151fi
25152echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25153echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25154
25155fi
25156if test $ac_cv_header_regex_h = yes; then
25157
25158
25159for ac_func in regcomp re_search
25160do
25161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25162echo "$as_me:$LINENO: checking for $ac_func" >&5
25163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25164if eval "test \"\${$as_ac_var+set}\" = set"; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166else
25167 cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25175#define $ac_func innocuous_$ac_func
25176
25177/* System header to define __stub macros and hopefully few prototypes,
25178 which can conflict with char $ac_func (); below.
25179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25180 <limits.h> exists even on freestanding compilers. */
25181
25182#ifdef __STDC__
25183# include <limits.h>
25184#else
25185# include <assert.h>
25186#endif
25187
25188#undef $ac_func
25189
25190/* Override any gcc2 internal prototype to avoid an error. */
25191#ifdef __cplusplus
25192extern "C"
25193{
25194#endif
25195/* We use char because int might match the return type of a gcc2
25196 builtin and then its argument prototype would still apply. */
25197char $ac_func ();
25198/* The GNU C library defines this for functions which it implements
25199 to always fail with ENOSYS. Some functions are actually named
25200 something starting with __ and the normal name is an alias. */
25201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25202choke me
25203#else
25204char (*f) () = $ac_func;
25205#endif
25206#ifdef __cplusplus
25207}
25208#endif
25209
25210int
25211main ()
25212{
25213return f != $ac_func;
25214 ;
25215 return 0;
25216}
25217_ACEOF
25218rm -f conftest.$ac_objext conftest$ac_exeext
25219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220 (eval $ac_link) 2>conftest.er1
25221 ac_status=$?
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
ca5c6ac3 25227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); }; } &&
25233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25236 ac_status=$?
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; }; then
25239 eval "$as_ac_var=yes"
25240else
25241 echo "$as_me: failed program was:" >&5
25242sed 's/^/| /' conftest.$ac_ext >&5
25243
25244eval "$as_ac_var=no"
25245fi
ac1cb8d3
VS
25246rm -f conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25248fi
25249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25251if test `eval echo '${'$as_ac_var'}'` = yes; then
25252 cat >>confdefs.h <<_ACEOF
25253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25254_ACEOF
25255
25256fi
25257done
25258
25259fi
25260
25261
25262
25263 if test "x$ac_cv_func_regcomp" != "xyes"; then
25264 if test "$wxUSE_REGEX" = "sys" ; then
25265 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25266echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25267 { (exit 1); exit 1; }; }
25268 else
25269 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25270echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25271 wxUSE_REGEX=builtin
25272 fi
25273 else
25274 wxUSE_REGEX=sys
25275 cat >>confdefs.h <<\_ACEOF
25276#define WX_NO_REGEX_ADVANCED 1
25277_ACEOF
25278
25279 fi
25280 fi
25281fi
25282
25283
25284ZLIB_LINK=
25285if test "$wxUSE_ZLIB" != "no" ; then
25286 cat >>confdefs.h <<\_ACEOF
25287#define wxUSE_ZLIB 1
25288_ACEOF
25289
25290
25291 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25292 if test "$USE_DARWIN" = 1; then
25293 system_zlib_h_ok="yes"
25294 else
25295 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25296echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25297if test "${ac_cv_header_zlib_h+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299else
25300 if test "$cross_compiling" = yes; then
25301 unset ac_cv_header_zlib_h
25302
25303else
25304 cat >conftest.$ac_ext <<_ACEOF
25305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
25310
25311 #include <zlib.h>
25312 #include <stdio.h>
25313
25314 int main()
25315 {
25316 FILE *f=fopen("conftestval", "w");
25317 if (!f) exit(1);
25318 fprintf(f, "%s",
25319 ZLIB_VERSION[0] == '1' &&
25320 (ZLIB_VERSION[2] > '1' ||
25321 (ZLIB_VERSION[2] == '1' &&
25322 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25323 exit(0);
25324 }
25325
25326_ACEOF
25327rm -f conftest$ac_exeext
25328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25329 (eval $ac_link) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25338 ac_cv_header_zlib_h=`cat conftestval`
25339else
25340 echo "$as_me: program exited with status $ac_status" >&5
25341echo "$as_me: failed program was:" >&5
25342sed 's/^/| /' conftest.$ac_ext >&5
25343
25344( exit $ac_status )
25345ac_cv_header_zlib_h=no
25346fi
ac1cb8d3 25347rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25348fi
25349
25350fi
25351echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25352echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25353 if test "${ac_cv_header_zlib_h+set}" = set; then
25354 echo "$as_me:$LINENO: checking for zlib.h" >&5
25355echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25356if test "${ac_cv_header_zlib_h+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358fi
25359echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25360echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25361else
25362 # Is the header compilable?
25363echo "$as_me:$LINENO: checking zlib.h usability" >&5
25364echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25365cat >conftest.$ac_ext <<_ACEOF
25366/* confdefs.h. */
25367_ACEOF
25368cat confdefs.h >>conftest.$ac_ext
25369cat >>conftest.$ac_ext <<_ACEOF
25370/* end confdefs.h. */
25371$ac_includes_default
25372#include <zlib.h>
25373_ACEOF
25374rm -f conftest.$ac_objext
25375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25376 (eval $ac_compile) 2>conftest.er1
a848cd7e 25377 ac_status=$?
ac1cb8d3
VS
25378 grep -v '^ *+' conftest.er1 >conftest.err
25379 rm -f conftest.er1
25380 cat conftest.err >&5
a848cd7e
SC
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
ca5c6ac3 25383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; } &&
25389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; }; then
25395 ac_header_compiler=yes
25396else
25397 echo "$as_me: failed program was:" >&5
25398sed 's/^/| /' conftest.$ac_ext >&5
25399
25400ac_header_compiler=no
25401fi
ac1cb8d3 25402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25404echo "${ECHO_T}$ac_header_compiler" >&6
25405
25406# Is the header present?
25407echo "$as_me:$LINENO: checking zlib.h presence" >&5
25408echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25409cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h. */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h. */
25415#include <zlib.h>
25416_ACEOF
25417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25419 ac_status=$?
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } >/dev/null; then
25425 if test -s conftest.err; then
5d7b7554
VZ
25426 ac_cpp_err=$ac_cxx_preproc_warn_flag
25427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25428 else
25429 ac_cpp_err=
25430 fi
25431else
25432 ac_cpp_err=yes
25433fi
25434if test -z "$ac_cpp_err"; then
25435 ac_header_preproc=yes
25436else
25437 echo "$as_me: failed program was:" >&5
25438sed 's/^/| /' conftest.$ac_ext >&5
25439
25440 ac_header_preproc=no
25441fi
25442rm -f conftest.err conftest.$ac_ext
25443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25444echo "${ECHO_T}$ac_header_preproc" >&6
25445
25446# So? What about this header?
5d7b7554 25447case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25448 yes:no: )
a848cd7e
SC
25449 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25450echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25451 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25452echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25453 ac_header_preproc=yes
a848cd7e 25454 ;;
ac1cb8d3 25455 no:yes:* )
a848cd7e
SC
25456 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25457echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25458 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25459echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25460 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25461echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25462 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25463echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25464 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25465echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25466 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25467echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25468 (
25469 cat <<\_ASBOX
ac1cb8d3
VS
25470## ----------------------------------------- ##
25471## Report this to wx-dev@lists.wxwidgets.org ##
25472## ----------------------------------------- ##
a848cd7e
SC
25473_ASBOX
25474 ) |
25475 sed "s/^/$as_me: WARNING: /" >&2
25476 ;;
25477esac
25478echo "$as_me:$LINENO: checking for zlib.h" >&5
25479echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25480if test "${ac_cv_header_zlib_h+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25482else
25483 ac_cv_header_zlib_h=$ac_header_preproc
25484fi
25485echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25486echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25487
25488fi
25489
25490
25491
25492 system_zlib_h_ok=$ac_cv_header_zlib_h
25493 fi
25494
25495 if test "$system_zlib_h_ok" = "yes"; then
25496 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25497echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25498if test "${ac_cv_lib_z_deflate+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500else
25501 ac_check_lib_save_LIBS=$LIBS
25502LIBS="-lz $LIBS"
25503cat >conftest.$ac_ext <<_ACEOF
25504/* confdefs.h. */
25505_ACEOF
25506cat confdefs.h >>conftest.$ac_ext
25507cat >>conftest.$ac_ext <<_ACEOF
25508/* end confdefs.h. */
25509
25510/* Override any gcc2 internal prototype to avoid an error. */
25511#ifdef __cplusplus
25512extern "C"
25513#endif
25514/* We use char because int might match the return type of a gcc2
25515 builtin and then its argument prototype would still apply. */
25516char deflate ();
25517int
25518main ()
25519{
25520deflate ();
25521 ;
25522 return 0;
25523}
25524_ACEOF
25525rm -f conftest.$ac_objext conftest$ac_exeext
25526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25527 (eval $ac_link) 2>conftest.er1
a848cd7e 25528 ac_status=$?
ac1cb8d3
VS
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
a848cd7e
SC
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
ca5c6ac3 25534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_lib_z_deflate=yes
25547else
25548 echo "$as_me: failed program was:" >&5
25549sed 's/^/| /' conftest.$ac_ext >&5
25550
25551ac_cv_lib_z_deflate=no
25552fi
ac1cb8d3
VS
25553rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25555LIBS=$ac_check_lib_save_LIBS
25556fi
25557echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25558echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25559if test $ac_cv_lib_z_deflate = yes; then
25560 ZLIB_LINK=" -lz"
25561fi
25562
25563 fi
25564
25565 if test "x$ZLIB_LINK" = "x" ; then
25566 if test "$wxUSE_ZLIB" = "sys" ; then
25567 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25568echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25569 { (exit 1); exit 1; }; }
25570 else
25571 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25572echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25573 wxUSE_ZLIB=builtin
25574 fi
25575 else
25576 wxUSE_ZLIB=sys
25577 fi
25578 fi
25579fi
25580
25581
25582PNG_LINK=
25583if test "$wxUSE_LIBPNG" != "no" ; then
25584 cat >>confdefs.h <<\_ACEOF
25585#define wxUSE_LIBPNG 1
25586_ACEOF
25587
25588
25589 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25590 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25591echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25592 wxUSE_LIBPNG=sys
25593 fi
25594
25595 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25596 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25597echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25598 wxUSE_LIBPNG=builtin
25599 fi
25600
25601 if test "$wxUSE_MGL" != 1 ; then
25602 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25603 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25604echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25605if test "${ac_cv_header_png_h+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25607else
25608 if test "$cross_compiling" = yes; then
25609 unset ac_cv_header_png_h
25610
25611else
25612 cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h. */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h. */
25618
25619 #include <png.h>
25620 #include <stdio.h>
25621
25622 int main()
25623 {
25624 FILE *f=fopen("conftestval", "w");
25625 if (!f) exit(1);
25626 fprintf(f, "%s",
25627 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25628 exit(0);
25629 }
25630
25631_ACEOF
25632rm -f conftest$ac_exeext
25633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25634 (eval $ac_link) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); }; }; then
25643 ac_cv_header_png_h=`cat conftestval`
25644else
25645 echo "$as_me: program exited with status $ac_status" >&5
25646echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
25648
25649( exit $ac_status )
25650ac_cv_header_png_h=no
25651fi
ac1cb8d3 25652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25653fi
25654
25655fi
25656echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25657echo "${ECHO_T}$ac_cv_header_png_h" >&6
25658 if test "${ac_cv_header_png_h+set}" = set; then
25659 echo "$as_me:$LINENO: checking for png.h" >&5
25660echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25661if test "${ac_cv_header_png_h+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663fi
25664echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25665echo "${ECHO_T}$ac_cv_header_png_h" >&6
25666else
25667 # Is the header compilable?
25668echo "$as_me:$LINENO: checking png.h usability" >&5
25669echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25670cat >conftest.$ac_ext <<_ACEOF
25671/* confdefs.h. */
25672_ACEOF
25673cat confdefs.h >>conftest.$ac_ext
25674cat >>conftest.$ac_ext <<_ACEOF
25675/* end confdefs.h. */
25676$ac_includes_default
25677#include <png.h>
25678_ACEOF
25679rm -f conftest.$ac_objext
25680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25681 (eval $ac_compile) 2>conftest.er1
a848cd7e 25682 ac_status=$?
ac1cb8d3
VS
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
a848cd7e
SC
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } &&
ca5c6ac3 25688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; } &&
25694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25697 ac_status=$?
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; }; then
25700 ac_header_compiler=yes
25701else
25702 echo "$as_me: failed program was:" >&5
25703sed 's/^/| /' conftest.$ac_ext >&5
25704
25705ac_header_compiler=no
25706fi
ac1cb8d3 25707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25709echo "${ECHO_T}$ac_header_compiler" >&6
25710
25711# Is the header present?
25712echo "$as_me:$LINENO: checking png.h presence" >&5
25713echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25714cat >conftest.$ac_ext <<_ACEOF
25715/* confdefs.h. */
25716_ACEOF
25717cat confdefs.h >>conftest.$ac_ext
25718cat >>conftest.$ac_ext <<_ACEOF
25719/* end confdefs.h. */
25720#include <png.h>
25721_ACEOF
25722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25724 ac_status=$?
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } >/dev/null; then
25730 if test -s conftest.err; then
5d7b7554
VZ
25731 ac_cpp_err=$ac_cxx_preproc_warn_flag
25732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25733 else
25734 ac_cpp_err=
25735 fi
25736else
25737 ac_cpp_err=yes
25738fi
25739if test -z "$ac_cpp_err"; then
25740 ac_header_preproc=yes
25741else
25742 echo "$as_me: failed program was:" >&5
25743sed 's/^/| /' conftest.$ac_ext >&5
25744
25745 ac_header_preproc=no
25746fi
25747rm -f conftest.err conftest.$ac_ext
25748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25749echo "${ECHO_T}$ac_header_preproc" >&6
25750
25751# So? What about this header?
5d7b7554 25752case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25753 yes:no: )
a848cd7e
SC
25754 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25755echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25756 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25757echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25758 ac_header_preproc=yes
a848cd7e 25759 ;;
ac1cb8d3 25760 no:yes:* )
a848cd7e
SC
25761 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25762echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25763 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25764echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25766echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25768echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25769 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25770echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25771 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25772echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25773 (
25774 cat <<\_ASBOX
ac1cb8d3
VS
25775## ----------------------------------------- ##
25776## Report this to wx-dev@lists.wxwidgets.org ##
25777## ----------------------------------------- ##
a848cd7e
SC
25778_ASBOX
25779 ) |
25780 sed "s/^/$as_me: WARNING: /" >&2
25781 ;;
25782esac
25783echo "$as_me:$LINENO: checking for png.h" >&5
25784echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25785if test "${ac_cv_header_png_h+set}" = set; then
25786 echo $ECHO_N "(cached) $ECHO_C" >&6
25787else
25788 ac_cv_header_png_h=$ac_header_preproc
25789fi
25790echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25791echo "${ECHO_T}$ac_cv_header_png_h" >&6
25792
25793fi
25794
25795
25796
25797 if test "$ac_cv_header_png_h" = "yes"; then
25798 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25799echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25800if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25802else
25803 ac_check_lib_save_LIBS=$LIBS
25804LIBS="-lpng -lz -lm $LIBS"
25805cat >conftest.$ac_ext <<_ACEOF
25806/* confdefs.h. */
25807_ACEOF
25808cat confdefs.h >>conftest.$ac_ext
25809cat >>conftest.$ac_ext <<_ACEOF
25810/* end confdefs.h. */
25811
25812/* Override any gcc2 internal prototype to avoid an error. */
25813#ifdef __cplusplus
25814extern "C"
25815#endif
25816/* We use char because int might match the return type of a gcc2
25817 builtin and then its argument prototype would still apply. */
25818char png_check_sig ();
25819int
25820main ()
25821{
25822png_check_sig ();
25823 ;
25824 return 0;
25825}
25826_ACEOF
25827rm -f conftest.$ac_objext conftest$ac_exeext
25828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25829 (eval $ac_link) 2>conftest.er1
a848cd7e 25830 ac_status=$?
ac1cb8d3
VS
25831 grep -v '^ *+' conftest.er1 >conftest.err
25832 rm -f conftest.er1
25833 cat conftest.err >&5
a848cd7e
SC
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } &&
ca5c6ac3 25836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; } &&
25842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 ac_cv_lib_png_png_check_sig=yes
25849else
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
25852
25853ac_cv_lib_png_png_check_sig=no
25854fi
ac1cb8d3
VS
25855rm -f conftest.err conftest.$ac_objext \
25856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25857LIBS=$ac_check_lib_save_LIBS
25858fi
25859echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25860echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25861if test $ac_cv_lib_png_png_check_sig = yes; then
25862 PNG_LINK=" -lpng -lz"
25863fi
25864
25865 fi
25866
25867 if test "x$PNG_LINK" = "x" ; then
25868 if test "$wxUSE_LIBPNG" = "sys" ; then
25869 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25870echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25871 { (exit 1); exit 1; }; }
25872 else
25873 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25874echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25875 wxUSE_LIBPNG=builtin
25876 fi
25877 else
25878 wxUSE_LIBPNG=sys
25879 fi
25880 fi
25881 fi
25882
25883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25884fi
25885
25886
25887JPEG_LINK=
25888if test "$wxUSE_LIBJPEG" != "no" ; then
25889 cat >>confdefs.h <<\_ACEOF
25890#define wxUSE_LIBJPEG 1
25891_ACEOF
25892
25893
25894 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25895 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25896echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25897 wxUSE_LIBJPEG=sys
25898 fi
25899
25900 if test "$wxUSE_MGL" != 1 ; then
25901 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25902 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25903echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25904 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
25906else
25907 cat >conftest.$ac_ext <<_ACEOF
25908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
25913
25914 #undef HAVE_STDLIB_H
25915 #include <stdio.h>
25916 #include <jpeglib.h>
25917
25918int
25919main ()
25920{
25921
25922
25923 ;
25924 return 0;
25925}
25926_ACEOF
25927rm -f conftest.$ac_objext
25928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25929 (eval $ac_compile) 2>conftest.er1
a848cd7e 25930 ac_status=$?
ac1cb8d3
VS
25931 grep -v '^ *+' conftest.er1 >conftest.err
25932 rm -f conftest.er1
25933 cat conftest.err >&5
a848cd7e
SC
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
ca5c6ac3 25936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; } &&
25942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; }; then
25948 ac_cv_header_jpeglib_h=yes
25949else
25950 echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953ac_cv_header_jpeglib_h=no
25954
25955fi
ac1cb8d3 25956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25957
25958fi
25959
25960 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25961echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25962
25963 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25964 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25965echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25966if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25968else
25969 ac_check_lib_save_LIBS=$LIBS
25970LIBS="-ljpeg $LIBS"
25971cat >conftest.$ac_ext <<_ACEOF
25972/* confdefs.h. */
25973_ACEOF
25974cat confdefs.h >>conftest.$ac_ext
25975cat >>conftest.$ac_ext <<_ACEOF
25976/* end confdefs.h. */
25977
25978/* Override any gcc2 internal prototype to avoid an error. */
25979#ifdef __cplusplus
25980extern "C"
25981#endif
25982/* We use char because int might match the return type of a gcc2
25983 builtin and then its argument prototype would still apply. */
25984char jpeg_read_header ();
25985int
25986main ()
25987{
25988jpeg_read_header ();
25989 ;
25990 return 0;
25991}
25992_ACEOF
25993rm -f conftest.$ac_objext conftest$ac_exeext
25994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25995 (eval $ac_link) 2>conftest.er1
a848cd7e 25996 ac_status=$?
ac1cb8d3
VS
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
a848cd7e
SC
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } &&
ca5c6ac3 26002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } &&
26008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; }; then
26014 ac_cv_lib_jpeg_jpeg_read_header=yes
26015else
26016 echo "$as_me: failed program was:" >&5
26017sed 's/^/| /' conftest.$ac_ext >&5
26018
26019ac_cv_lib_jpeg_jpeg_read_header=no
26020fi
ac1cb8d3
VS
26021rm -f conftest.err conftest.$ac_objext \
26022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26023LIBS=$ac_check_lib_save_LIBS
26024fi
26025echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26026echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26027if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26028 JPEG_LINK=" -ljpeg"
26029fi
26030
26031 fi
26032
26033 if test "x$JPEG_LINK" = "x" ; then
26034 if test "$wxUSE_LIBJPEG" = "sys" ; then
26035 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26036echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26037 { (exit 1); exit 1; }; }
26038 else
26039 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26040echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26041 wxUSE_LIBJPEG=builtin
26042 fi
26043 else
26044 wxUSE_LIBJPEG=sys
26045 fi
26046 fi
26047 fi
26048fi
26049
26050
26051TIFF_LINK=
26052TIFF_PREREQ_LINKS=-lm
26053if test "$wxUSE_LIBTIFF" != "no" ; then
26054 cat >>confdefs.h <<\_ACEOF
26055#define wxUSE_LIBTIFF 1
26056_ACEOF
26057
26058
26059 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26060 if test "$wxUSE_LIBJPEG" = "sys"; then
26061 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26062 fi
26063 if test "$wxUSE_ZLIB" = "sys"; then
26064 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26065 fi
26066 if test "${ac_cv_header_tiffio_h+set}" = set; then
26067 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26068echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26069if test "${ac_cv_header_tiffio_h+set}" = set; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26071fi
26072echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26073echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26074else
26075 # Is the header compilable?
26076echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26077echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26078cat >conftest.$ac_ext <<_ACEOF
26079/* confdefs.h. */
26080_ACEOF
26081cat confdefs.h >>conftest.$ac_ext
26082cat >>conftest.$ac_ext <<_ACEOF
26083/* end confdefs.h. */
26084$ac_includes_default
26085#include <tiffio.h>
26086_ACEOF
26087rm -f conftest.$ac_objext
26088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26089 (eval $ac_compile) 2>conftest.er1
a848cd7e 26090 ac_status=$?
ac1cb8d3
VS
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
a848cd7e
SC
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
ca5c6ac3 26096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26099 ac_status=$?
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26105 ac_status=$?
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 ac_header_compiler=yes
26109else
26110 echo "$as_me: failed program was:" >&5
26111sed 's/^/| /' conftest.$ac_ext >&5
26112
26113ac_header_compiler=no
26114fi
ac1cb8d3 26115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26117echo "${ECHO_T}$ac_header_compiler" >&6
26118
26119# Is the header present?
26120echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26121echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26122cat >conftest.$ac_ext <<_ACEOF
26123/* confdefs.h. */
26124_ACEOF
26125cat confdefs.h >>conftest.$ac_ext
26126cat >>conftest.$ac_ext <<_ACEOF
26127/* end confdefs.h. */
26128#include <tiffio.h>
26129_ACEOF
26130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26132 ac_status=$?
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } >/dev/null; then
26138 if test -s conftest.err; then
5d7b7554
VZ
26139 ac_cpp_err=$ac_cxx_preproc_warn_flag
26140 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26141 else
26142 ac_cpp_err=
26143 fi
26144else
26145 ac_cpp_err=yes
26146fi
26147if test -z "$ac_cpp_err"; then
26148 ac_header_preproc=yes
26149else
26150 echo "$as_me: failed program was:" >&5
26151sed 's/^/| /' conftest.$ac_ext >&5
26152
26153 ac_header_preproc=no
26154fi
26155rm -f conftest.err conftest.$ac_ext
26156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26157echo "${ECHO_T}$ac_header_preproc" >&6
26158
26159# So? What about this header?
5d7b7554 26160case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26161 yes:no: )
a848cd7e
SC
26162 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26163echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26164 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26165echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26166 ac_header_preproc=yes
a848cd7e 26167 ;;
ac1cb8d3 26168 no:yes:* )
a848cd7e
SC
26169 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26170echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26171 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26172echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26173 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26174echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26176echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26177 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26178echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26179 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26180echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26181 (
26182 cat <<\_ASBOX
ac1cb8d3
VS
26183## ----------------------------------------- ##
26184## Report this to wx-dev@lists.wxwidgets.org ##
26185## ----------------------------------------- ##
a848cd7e
SC
26186_ASBOX
26187 ) |
26188 sed "s/^/$as_me: WARNING: /" >&2
26189 ;;
26190esac
26191echo "$as_me:$LINENO: checking for tiffio.h" >&5
26192echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26193if test "${ac_cv_header_tiffio_h+set}" = set; then
26194 echo $ECHO_N "(cached) $ECHO_C" >&6
26195else
26196 ac_cv_header_tiffio_h=$ac_header_preproc
26197fi
26198echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26199echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26200
26201fi
26202if test $ac_cv_header_tiffio_h = yes; then
26203
26204 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26205echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26206if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26207 echo $ECHO_N "(cached) $ECHO_C" >&6
26208else
26209 ac_check_lib_save_LIBS=$LIBS
26210LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26211cat >conftest.$ac_ext <<_ACEOF
26212/* confdefs.h. */
26213_ACEOF
26214cat confdefs.h >>conftest.$ac_ext
26215cat >>conftest.$ac_ext <<_ACEOF
26216/* end confdefs.h. */
26217
26218/* Override any gcc2 internal prototype to avoid an error. */
26219#ifdef __cplusplus
26220extern "C"
26221#endif
26222/* We use char because int might match the return type of a gcc2
26223 builtin and then its argument prototype would still apply. */
26224char TIFFError ();
26225int
26226main ()
26227{
26228TIFFError ();
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext conftest$ac_exeext
26234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26235 (eval $ac_link) 2>conftest.er1
a848cd7e 26236 ac_status=$?
ac1cb8d3
VS
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
a848cd7e
SC
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
ca5c6ac3 26242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); }; } &&
26248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254 ac_cv_lib_tiff_TIFFError=yes
26255else
26256 echo "$as_me: failed program was:" >&5
26257sed 's/^/| /' conftest.$ac_ext >&5
26258
26259ac_cv_lib_tiff_TIFFError=no
26260fi
ac1cb8d3
VS
26261rm -f conftest.err conftest.$ac_objext \
26262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26263LIBS=$ac_check_lib_save_LIBS
26264fi
26265echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26266echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26267if test $ac_cv_lib_tiff_TIFFError = yes; then
26268 TIFF_LINK=" -ltiff"
26269fi
26270
26271
26272
26273fi
26274
26275
26276
26277 if test "x$TIFF_LINK" = "x" ; then
26278 if test "$wxUSE_LIBTIFF" = "sys" ; then
26279 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26280echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26281 { (exit 1); exit 1; }; }
26282 else
26283 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26284echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26285 wxUSE_LIBTIFF=builtin
26286 fi
26287 else
26288 wxUSE_LIBTIFF=sys
26289 fi
26290 fi
26291fi
26292
26293
47a7e797
MW
26294if test "$wxUSE_WCHAR_T" != "yes"; then
26295 if test "$wxUSE_EXPAT" != "no"; then
26296 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26297echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26298 wxUSE_EXPAT=no
26299 fi
26300 if test "$wxUSE_XML" != "no"; then
26301 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26302echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26303 wxUSE_XML=no
26304 fi
26305fi
26306
a848cd7e
SC
26307if test "$wxUSE_EXPAT" != "no"; then
26308 wxUSE_XML=yes
26309 cat >>confdefs.h <<\_ACEOF
26310#define wxUSE_EXPAT 1
26311_ACEOF
26312
26313 cat >>confdefs.h <<\_ACEOF
26314#define wxUSE_XML 1
26315_ACEOF
26316
26317
26318 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26319 if test "${ac_cv_header_expat_h+set}" = set; then
26320 echo "$as_me:$LINENO: checking for expat.h" >&5
26321echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26322if test "${ac_cv_header_expat_h+set}" = set; then
26323 echo $ECHO_N "(cached) $ECHO_C" >&6
26324fi
26325echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26326echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26327else
26328 # Is the header compilable?
26329echo "$as_me:$LINENO: checking expat.h usability" >&5
26330echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26331cat >conftest.$ac_ext <<_ACEOF
26332/* confdefs.h. */
26333_ACEOF
26334cat confdefs.h >>conftest.$ac_ext
26335cat >>conftest.$ac_ext <<_ACEOF
26336/* end confdefs.h. */
26337$ac_includes_default
26338#include <expat.h>
26339_ACEOF
26340rm -f conftest.$ac_objext
26341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26342 (eval $ac_compile) 2>conftest.er1
a848cd7e 26343 ac_status=$?
ac1cb8d3
VS
26344 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1
26346 cat conftest.err >&5
a848cd7e
SC
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } &&
ca5c6ac3 26349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26351 (eval $ac_try) 2>&5
26352 ac_status=$?
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; } &&
26355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; }; then
26361 ac_header_compiler=yes
26362else
26363 echo "$as_me: failed program was:" >&5
26364sed 's/^/| /' conftest.$ac_ext >&5
26365
26366ac_header_compiler=no
26367fi
ac1cb8d3 26368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26370echo "${ECHO_T}$ac_header_compiler" >&6
26371
26372# Is the header present?
26373echo "$as_me:$LINENO: checking expat.h presence" >&5
26374echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26375cat >conftest.$ac_ext <<_ACEOF
26376/* confdefs.h. */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h. */
26381#include <expat.h>
26382_ACEOF
26383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26385 ac_status=$?
26386 grep -v '^ *+' conftest.er1 >conftest.err
26387 rm -f conftest.er1
26388 cat conftest.err >&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } >/dev/null; then
26391 if test -s conftest.err; then
5d7b7554
VZ
26392 ac_cpp_err=$ac_cxx_preproc_warn_flag
26393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26394 else
26395 ac_cpp_err=
26396 fi
26397else
26398 ac_cpp_err=yes
26399fi
26400if test -z "$ac_cpp_err"; then
26401 ac_header_preproc=yes
26402else
26403 echo "$as_me: failed program was:" >&5
26404sed 's/^/| /' conftest.$ac_ext >&5
26405
26406 ac_header_preproc=no
26407fi
26408rm -f conftest.err conftest.$ac_ext
26409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26410echo "${ECHO_T}$ac_header_preproc" >&6
26411
26412# So? What about this header?
5d7b7554 26413case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26414 yes:no: )
a848cd7e
SC
26415 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26416echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26417 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26418echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26419 ac_header_preproc=yes
a848cd7e 26420 ;;
ac1cb8d3 26421 no:yes:* )
a848cd7e
SC
26422 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26423echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26424 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26425echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26426 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26427echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26428 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26429echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26430 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26431echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26432 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26433echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26434 (
26435 cat <<\_ASBOX
ac1cb8d3
VS
26436## ----------------------------------------- ##
26437## Report this to wx-dev@lists.wxwidgets.org ##
26438## ----------------------------------------- ##
a848cd7e
SC
26439_ASBOX
26440 ) |
26441 sed "s/^/$as_me: WARNING: /" >&2
26442 ;;
26443esac
26444echo "$as_me:$LINENO: checking for expat.h" >&5
26445echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26446if test "${ac_cv_header_expat_h+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26448else
26449 ac_cv_header_expat_h=$ac_header_preproc
26450fi
26451echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26452echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26453
26454fi
26455if test $ac_cv_header_expat_h = yes; then
26456 found_expat_h=1
26457fi
26458
26459
26460 if test "x$found_expat_h" = "x1"; then
26461 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26462echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26463if test "${wx_cv_expat_is_not_broken+set}" = set; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26465else
26466
a848cd7e
SC
26467 cat >conftest.$ac_ext <<_ACEOF
26468/* confdefs.h. */
26469_ACEOF
26470cat confdefs.h >>conftest.$ac_ext
26471cat >>conftest.$ac_ext <<_ACEOF
26472/* end confdefs.h. */
26473#include <expat.h>
26474int
26475main ()
26476{
26477
26478 ;
26479 return 0;
26480}
26481_ACEOF
26482rm -f conftest.$ac_objext
26483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26484 (eval $ac_compile) 2>conftest.er1
a848cd7e 26485 ac_status=$?
ac1cb8d3
VS
26486 grep -v '^ *+' conftest.er1 >conftest.err
26487 rm -f conftest.er1
26488 cat conftest.err >&5
a848cd7e
SC
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } &&
ca5c6ac3 26491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); }; } &&
26497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; }; then
26503 wx_cv_expat_is_not_broken=yes
26504else
26505 echo "$as_me: failed program was:" >&5
26506sed 's/^/| /' conftest.$ac_ext >&5
26507
26508wx_cv_expat_is_not_broken=no
26509
26510fi
ac1cb8d3 26511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26512
26513
26514fi
26515echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26516echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26517 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26518 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26519echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26520if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26522else
26523 ac_check_lib_save_LIBS=$LIBS
26524LIBS="-lexpat $LIBS"
26525cat >conftest.$ac_ext <<_ACEOF
26526/* confdefs.h. */
26527_ACEOF
26528cat confdefs.h >>conftest.$ac_ext
26529cat >>conftest.$ac_ext <<_ACEOF
26530/* end confdefs.h. */
26531
26532/* Override any gcc2 internal prototype to avoid an error. */
26533#ifdef __cplusplus
26534extern "C"
26535#endif
26536/* We use char because int might match the return type of a gcc2
26537 builtin and then its argument prototype would still apply. */
26538char XML_ParserCreate ();
26539int
26540main ()
26541{
26542XML_ParserCreate ();
26543 ;
26544 return 0;
26545}
26546_ACEOF
26547rm -f conftest.$ac_objext conftest$ac_exeext
26548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26549 (eval $ac_link) 2>conftest.er1
a848cd7e 26550 ac_status=$?
ac1cb8d3
VS
26551 grep -v '^ *+' conftest.er1 >conftest.err
26552 rm -f conftest.er1
26553 cat conftest.err >&5
a848cd7e
SC
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
ca5c6ac3 26556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
26568 ac_cv_lib_expat_XML_ParserCreate=yes
26569else
26570 echo "$as_me: failed program was:" >&5
26571sed 's/^/| /' conftest.$ac_ext >&5
26572
26573ac_cv_lib_expat_XML_ParserCreate=no
26574fi
ac1cb8d3
VS
26575rm -f conftest.err conftest.$ac_objext \
26576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26577LIBS=$ac_check_lib_save_LIBS
26578fi
26579echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26580echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26581if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26582 EXPAT_LINK=" -lexpat"
26583fi
26584
26585 fi
26586 fi
26587 if test "x$EXPAT_LINK" = "x" ; then
26588 if test "$wxUSE_EXPAT" = "sys" ; then
26589 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26590echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26591 { (exit 1); exit 1; }; }
26592 else
26593 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26594echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26595 wxUSE_EXPAT=builtin
26596 fi
26597 else
26598 wxUSE_EXPAT=sys
26599 fi
26600 fi
26601 if test "$wxUSE_EXPAT" = "builtin" ; then
26602
26603
26604subdirs="$subdirs src/expat"
26605
26606 fi
26607fi
26608
26609
26610
26611if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26612 if test "${ac_cv_header_mspack_h+set}" = set; then
26613 echo "$as_me:$LINENO: checking for mspack.h" >&5
26614echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26615if test "${ac_cv_header_mspack_h+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26617fi
26618echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26619echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26620else
26621 # Is the header compilable?
26622echo "$as_me:$LINENO: checking mspack.h usability" >&5
26623echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26624cat >conftest.$ac_ext <<_ACEOF
26625/* confdefs.h. */
26626_ACEOF
26627cat confdefs.h >>conftest.$ac_ext
26628cat >>conftest.$ac_ext <<_ACEOF
26629/* end confdefs.h. */
26630$ac_includes_default
26631#include <mspack.h>
26632_ACEOF
26633rm -f conftest.$ac_objext
26634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26635 (eval $ac_compile) 2>conftest.er1
a848cd7e 26636 ac_status=$?
ac1cb8d3
VS
26637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
a848cd7e
SC
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
ca5c6ac3 26642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; } &&
26648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; }; then
26654 ac_header_compiler=yes
26655else
26656 echo "$as_me: failed program was:" >&5
26657sed 's/^/| /' conftest.$ac_ext >&5
26658
26659ac_header_compiler=no
26660fi
ac1cb8d3 26661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663echo "${ECHO_T}$ac_header_compiler" >&6
26664
26665# Is the header present?
26666echo "$as_me:$LINENO: checking mspack.h presence" >&5
26667echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26668cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <mspack.h>
26675_ACEOF
26676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } >/dev/null; then
26684 if test -s conftest.err; then
5d7b7554
VZ
26685 ac_cpp_err=$ac_cxx_preproc_warn_flag
26686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26687 else
26688 ac_cpp_err=
26689 fi
26690else
26691 ac_cpp_err=yes
26692fi
26693if test -z "$ac_cpp_err"; then
26694 ac_header_preproc=yes
26695else
26696 echo "$as_me: failed program was:" >&5
26697sed 's/^/| /' conftest.$ac_ext >&5
26698
26699 ac_header_preproc=no
26700fi
26701rm -f conftest.err conftest.$ac_ext
26702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26703echo "${ECHO_T}$ac_header_preproc" >&6
26704
26705# So? What about this header?
5d7b7554 26706case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26707 yes:no: )
a848cd7e
SC
26708 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26709echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26710 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26711echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26712 ac_header_preproc=yes
a848cd7e 26713 ;;
ac1cb8d3 26714 no:yes:* )
a848cd7e
SC
26715 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26716echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26717 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26718echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26720echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26722echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26723 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26724echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26725 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26726echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26727 (
26728 cat <<\_ASBOX
ac1cb8d3
VS
26729## ----------------------------------------- ##
26730## Report this to wx-dev@lists.wxwidgets.org ##
26731## ----------------------------------------- ##
a848cd7e
SC
26732_ASBOX
26733 ) |
26734 sed "s/^/$as_me: WARNING: /" >&2
26735 ;;
26736esac
26737echo "$as_me:$LINENO: checking for mspack.h" >&5
26738echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26739if test "${ac_cv_header_mspack_h+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741else
26742 ac_cv_header_mspack_h=$ac_header_preproc
26743fi
26744echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26745echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26746
26747fi
26748if test $ac_cv_header_mspack_h = yes; then
26749 found_mspack_h=1
26750fi
26751
26752
26753 if test "x$found_mspack_h" = "x1"; then
26754 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26755echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26756if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758else
26759 ac_check_lib_save_LIBS=$LIBS
26760LIBS="-lmspack $LIBS"
26761cat >conftest.$ac_ext <<_ACEOF
26762/* confdefs.h. */
26763_ACEOF
26764cat confdefs.h >>conftest.$ac_ext
26765cat >>conftest.$ac_ext <<_ACEOF
26766/* end confdefs.h. */
26767
26768/* Override any gcc2 internal prototype to avoid an error. */
26769#ifdef __cplusplus
26770extern "C"
26771#endif
26772/* We use char because int might match the return type of a gcc2
26773 builtin and then its argument prototype would still apply. */
26774char mspack_create_chm_decompressor ();
26775int
26776main ()
26777{
26778mspack_create_chm_decompressor ();
26779 ;
26780 return 0;
26781}
26782_ACEOF
26783rm -f conftest.$ac_objext conftest$ac_exeext
26784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26785 (eval $ac_link) 2>conftest.er1
a848cd7e 26786 ac_status=$?
ac1cb8d3
VS
26787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
a848cd7e
SC
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
ca5c6ac3 26792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; } &&
26798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26805else
26806 echo "$as_me: failed program was:" >&5
26807sed 's/^/| /' conftest.$ac_ext >&5
26808
26809ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26810fi
ac1cb8d3
VS
26811rm -f conftest.err conftest.$ac_objext \
26812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26813LIBS=$ac_check_lib_save_LIBS
26814fi
26815echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26816echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26817if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26818 MSPACK_LINK=" -lmspack"
26819fi
26820
26821 fi
26822 if test "x$MSPACK_LINK" = "x" ; then
26823 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26824 fi
26825fi
26826
26827if test "$wxUSE_LIBMSPACK" != "no"; then
26828 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26829#define wxUSE_LIBMSPACK 1
26830_ACEOF
26831
a848cd7e
SC
26832fi
26833
26834
26835
26836AFMINSTALL=
26837WIN32INSTALL=
26838
26839TOOLKIT=
26840TOOLKIT_INCLUDE=
26841WIDGET_SET=
26842
26843if test "$USE_WIN32" = 1 ; then
26844
26845for ac_header in w32api.h
26846do
26847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26848if eval "test \"\${$as_ac_Header+set}\" = set"; then
26849 echo "$as_me:$LINENO: checking for $ac_header" >&5
26850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26851if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853fi
26854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26856else
26857 # Is the header compilable?
26858echo "$as_me:$LINENO: checking $ac_header usability" >&5
26859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26860cat >conftest.$ac_ext <<_ACEOF
26861/* confdefs.h. */
26862_ACEOF
26863cat confdefs.h >>conftest.$ac_ext
26864cat >>conftest.$ac_ext <<_ACEOF
26865/* end confdefs.h. */
26866$ac_includes_default
26867#include <$ac_header>
26868_ACEOF
26869rm -f conftest.$ac_objext
26870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26871 (eval $ac_compile) 2>conftest.er1
a848cd7e 26872 ac_status=$?
ac1cb8d3
VS
26873 grep -v '^ *+' conftest.er1 >conftest.err
26874 rm -f conftest.er1
26875 cat conftest.err >&5
a848cd7e
SC
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } &&
ca5c6ac3 26878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; } &&
26884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890 ac_header_compiler=yes
26891else
26892 echo "$as_me: failed program was:" >&5
26893sed 's/^/| /' conftest.$ac_ext >&5
26894
26895ac_header_compiler=no
26896fi
ac1cb8d3 26897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26899echo "${ECHO_T}$ac_header_compiler" >&6
26900
26901# Is the header present?
26902echo "$as_me:$LINENO: checking $ac_header presence" >&5
26903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26904cat >conftest.$ac_ext <<_ACEOF
26905/* confdefs.h. */
26906_ACEOF
26907cat confdefs.h >>conftest.$ac_ext
26908cat >>conftest.$ac_ext <<_ACEOF
26909/* end confdefs.h. */
26910#include <$ac_header>
26911_ACEOF
26912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26914 ac_status=$?
26915 grep -v '^ *+' conftest.er1 >conftest.err
26916 rm -f conftest.er1
26917 cat conftest.err >&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } >/dev/null; then
26920 if test -s conftest.err; then
5d7b7554
VZ
26921 ac_cpp_err=$ac_cxx_preproc_warn_flag
26922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26923 else
26924 ac_cpp_err=
26925 fi
26926else
26927 ac_cpp_err=yes
26928fi
26929if test -z "$ac_cpp_err"; then
26930 ac_header_preproc=yes
26931else
26932 echo "$as_me: failed program was:" >&5
26933sed 's/^/| /' conftest.$ac_ext >&5
26934
26935 ac_header_preproc=no
26936fi
26937rm -f conftest.err conftest.$ac_ext
26938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26939echo "${ECHO_T}$ac_header_preproc" >&6
26940
26941# So? What about this header?
5d7b7554 26942case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26943 yes:no: )
a848cd7e
SC
26944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26948 ac_header_preproc=yes
a848cd7e 26949 ;;
ac1cb8d3 26950 no:yes:* )
a848cd7e
SC
26951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26963 (
26964 cat <<\_ASBOX
ac1cb8d3
VS
26965## ----------------------------------------- ##
26966## Report this to wx-dev@lists.wxwidgets.org ##
26967## ----------------------------------------- ##
a848cd7e
SC
26968_ASBOX
26969 ) |
26970 sed "s/^/$as_me: WARNING: /" >&2
26971 ;;
26972esac
26973echo "$as_me:$LINENO: checking for $ac_header" >&5
26974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26975if eval "test \"\${$as_ac_Header+set}\" = set"; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26977else
ac1cb8d3 26978 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26979fi
26980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26982
26983fi
26984if test `eval echo '${'$as_ac_Header'}'` = yes; then
26985 cat >>confdefs.h <<_ACEOF
26986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26987_ACEOF
26988
26989fi
26990
26991done
26992
26993 if test "${ac_cv_header_windows_h+set}" = set; then
26994 echo "$as_me:$LINENO: checking for windows.h" >&5
26995echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26996if test "${ac_cv_header_windows_h+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26998fi
26999echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27000echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27001else
27002 # Is the header compilable?
27003echo "$as_me:$LINENO: checking windows.h usability" >&5
27004echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h. */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h. */
27011$ac_includes_default
27012#include <windows.h>
27013_ACEOF
27014rm -f conftest.$ac_objext
27015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27016 (eval $ac_compile) 2>conftest.er1
a848cd7e 27017 ac_status=$?
ac1cb8d3
VS
27018 grep -v '^ *+' conftest.er1 >conftest.err
27019 rm -f conftest.er1
27020 cat conftest.err >&5
a848cd7e
SC
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } &&
ca5c6ac3 27023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_header_compiler=yes
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040ac_header_compiler=no
27041fi
ac1cb8d3 27042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27044echo "${ECHO_T}$ac_header_compiler" >&6
27045
27046# Is the header present?
27047echo "$as_me:$LINENO: checking windows.h presence" >&5
27048echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27049cat >conftest.$ac_ext <<_ACEOF
27050/* confdefs.h. */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h. */
27055#include <windows.h>
27056_ACEOF
27057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27059 ac_status=$?
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } >/dev/null; then
27065 if test -s conftest.err; then
5d7b7554
VZ
27066 ac_cpp_err=$ac_cxx_preproc_warn_flag
27067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27068 else
27069 ac_cpp_err=
27070 fi
27071else
27072 ac_cpp_err=yes
27073fi
27074if test -z "$ac_cpp_err"; then
27075 ac_header_preproc=yes
27076else
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
27080 ac_header_preproc=no
27081fi
27082rm -f conftest.err conftest.$ac_ext
27083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27084echo "${ECHO_T}$ac_header_preproc" >&6
27085
27086# So? What about this header?
5d7b7554 27087case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27088 yes:no: )
a848cd7e
SC
27089 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27090echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27091 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27092echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27093 ac_header_preproc=yes
a848cd7e 27094 ;;
ac1cb8d3 27095 no:yes:* )
a848cd7e
SC
27096 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27097echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27098 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27099echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27101echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27103echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27104 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27105echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27106 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27107echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27108 (
27109 cat <<\_ASBOX
ac1cb8d3
VS
27110## ----------------------------------------- ##
27111## Report this to wx-dev@lists.wxwidgets.org ##
27112## ----------------------------------------- ##
a848cd7e
SC
27113_ASBOX
27114 ) |
27115 sed "s/^/$as_me: WARNING: /" >&2
27116 ;;
27117esac
27118echo "$as_me:$LINENO: checking for windows.h" >&5
27119echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27120if test "${ac_cv_header_windows_h+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 ac_cv_header_windows_h=$ac_header_preproc
27124fi
27125echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27126echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27127
27128fi
27129if test $ac_cv_header_windows_h = yes; then
27130 :
27131else
27132
27133 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27134echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27135 { (exit 1); exit 1; }; }
27136
27137fi
27138
27139
27140
27141 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27142
27143 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27144 LIBS="$LIBS -loleacc"
27145 fi
27146
27147 case "${host}" in
27148 *-*-cygwin* )
27149 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27150 esac
27151
27152 if test "$wxUSE_ODBC" = "sys" ; then
27153 wxUSE_ODBC = "yes"
27154 fi
27155 if test "$wxUSE_ODBC" = "yes" ; then
27156 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27157 cat >>confdefs.h <<\_ACEOF
27158#define wxUSE_ODBC 1
27159_ACEOF
27160
27161 fi
27162
370d2fd7 27163 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27164 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27165
004ee6da 27166 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27167
a848cd7e 27168 WIN32INSTALL=win32install
5f41d1bf
MW
27169
27170 echo "$as_me:$LINENO: checking for boolean" >&5
27171echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27172if test "${ac_cv_type_boolean+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174else
27175 cat >conftest.$ac_ext <<_ACEOF
27176/* confdefs.h. */
27177_ACEOF
27178cat confdefs.h >>conftest.$ac_ext
27179cat >>conftest.$ac_ext <<_ACEOF
27180/* end confdefs.h. */
27181#include <windows.h>
27182
27183int
27184main ()
27185{
27186if ((boolean *) 0)
27187 return 0;
27188if (sizeof (boolean))
27189 return 0;
27190 ;
27191 return 0;
27192}
27193_ACEOF
27194rm -f conftest.$ac_objext
27195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>conftest.er1
27197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
ca5c6ac3 27203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; } &&
27209 { ac_try='test -s conftest.$ac_objext'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 ac_cv_type_boolean=yes
27216else
27217 echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
27220ac_cv_type_boolean=no
27221fi
27222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27223fi
27224echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27225echo "${ECHO_T}$ac_cv_type_boolean" >&6
27226if test $ac_cv_type_boolean = yes; then
27227
27228cat >>confdefs.h <<_ACEOF
27229#define HAVE_BOOLEAN 1
27230_ACEOF
27231
27232
27233fi
27234
dcfd4ac4
MW
27235
27236
27237for ac_header in pbt.h
27238do
27239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27240if eval "test \"\${$as_ac_Header+set}\" = set"; then
27241 echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245fi
27246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27248else
27249 # Is the header compilable?
27250echo "$as_me:$LINENO: checking $ac_header usability" >&5
27251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27252cat >conftest.$ac_ext <<_ACEOF
27253/* confdefs.h. */
27254_ACEOF
27255cat confdefs.h >>conftest.$ac_ext
27256cat >>conftest.$ac_ext <<_ACEOF
27257/* end confdefs.h. */
27258$ac_includes_default
27259#include <$ac_header>
27260_ACEOF
27261rm -f conftest.$ac_objext
27262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27263 (eval $ac_compile) 2>conftest.er1
27264 ac_status=$?
27265 grep -v '^ *+' conftest.er1 >conftest.err
27266 rm -f conftest.er1
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } &&
ca5c6ac3 27270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; } &&
27276 { ac_try='test -s conftest.$ac_objext'
27277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278 (eval $ac_try) 2>&5
27279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 ac_header_compiler=yes
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287ac_header_compiler=no
27288fi
27289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27291echo "${ECHO_T}$ac_header_compiler" >&6
27292
27293# Is the header present?
27294echo "$as_me:$LINENO: checking $ac_header presence" >&5
27295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27296cat >conftest.$ac_ext <<_ACEOF
27297/* confdefs.h. */
27298_ACEOF
27299cat confdefs.h >>conftest.$ac_ext
27300cat >>conftest.$ac_ext <<_ACEOF
27301/* end confdefs.h. */
27302#include <$ac_header>
27303_ACEOF
27304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27306 ac_status=$?
27307 grep -v '^ *+' conftest.er1 >conftest.err
27308 rm -f conftest.er1
27309 cat conftest.err >&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } >/dev/null; then
27312 if test -s conftest.err; then
27313 ac_cpp_err=$ac_cxx_preproc_warn_flag
27314 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27315 else
27316 ac_cpp_err=
27317 fi
27318else
27319 ac_cpp_err=yes
27320fi
27321if test -z "$ac_cpp_err"; then
27322 ac_header_preproc=yes
27323else
27324 echo "$as_me: failed program was:" >&5
27325sed 's/^/| /' conftest.$ac_ext >&5
27326
27327 ac_header_preproc=no
27328fi
27329rm -f conftest.err conftest.$ac_ext
27330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27331echo "${ECHO_T}$ac_header_preproc" >&6
27332
27333# So? What about this header?
27334case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27335 yes:no: )
27336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27340 ac_header_preproc=yes
27341 ;;
27342 no:yes:* )
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27355 (
27356 cat <<\_ASBOX
27357## ----------------------------------------- ##
27358## Report this to wx-dev@lists.wxwidgets.org ##
27359## ----------------------------------------- ##
27360_ASBOX
27361 ) |
27362 sed "s/^/$as_me: WARNING: /" >&2
27363 ;;
27364esac
27365echo "$as_me:$LINENO: checking for $ac_header" >&5
27366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27367if eval "test \"\${$as_ac_Header+set}\" = set"; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369else
27370 eval "$as_ac_Header=\$ac_header_preproc"
27371fi
27372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27374
27375fi
27376if test `eval echo '${'$as_ac_Header'}'` = yes; then
27377 cat >>confdefs.h <<_ACEOF
27378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27379_ACEOF
27380
27381else
27382 cat >>confdefs.h <<\_ACEOF
27383#define NEED_PBT_H 1
27384_ACEOF
27385
27386fi
27387
27388done
27389
a848cd7e
SC
27390fi
27391
27392if test "$wxUSE_GUI" = "yes"; then
27393 USE_GUI=1
27394
27395 GUI_TK_LIBRARY=
27396
27397 WXGTK12=
27398 WXGTK127=
27399 WXGTK20=
27400 WXGPE=
27401
207bc66c
RN
27402 if test "$wxUSE_COCOA" = 1 ; then
27403 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27404 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27405echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27406 wxUSE_PRINTING_ARCHITECTURE=no
27407 fi
27408 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27409 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27410echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27411 wxUSE_DRAG_AND_DROP=no
27412 fi
27413 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27414 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27415echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27416 wxUSE_DRAGIMAGE=no
27417 fi
27418 fi
27419
a848cd7e
SC
27420 if test "$wxUSE_MSW" = 1 ; then
27421 TOOLKIT=MSW
27422 GUIDIST=MSW_DIST
27423
ceec2216 27424 case "${host}" in
a848cd7e
SC
27425 *-*-mingw32* )
27426 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27427 esac
27428 fi
27429
27430 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27431 ac_ext=c
27432ac_cpp='$CPP $CPPFLAGS'
27433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27435ac_compiler_gnu=$ac_cv_c_compiler_gnu
27436
27437
a848cd7e
SC
27438 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27439echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27440
27441 gtk_version_cached=1
27442 if test "${wx_cv_lib_gtk+set}" = set; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27444else
27445
27446 gtk_version_cached=0
27447 echo "$as_me:$LINENO: result: " >&5
27448echo "${ECHO_T}" >&6
27449
27450 GTK_MODULES=
27451 if test "$wxUSE_THREADS" = "yes"; then
27452 GTK_MODULES=gthread
27453 fi
27454
f597b41c 27455 wx_cv_lib_gtk=
5001df0d
MW
27456 if test "x$wxGTK_VERSION" != "x1"
27457 then
27458 case "${host}" in
27459 *-*-solaris2* )
27460 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27461 enable_gtktest=no
5001df0d
MW
27462 fi
27463 esac
27464
a848cd7e
SC
27465 # Check whether --enable-gtktest or --disable-gtktest was given.
27466if test "${enable_gtktest+set}" = set; then
27467 enableval="$enable_gtktest"
27468
27469else
27470 enable_gtktest=yes
27471fi;
27472
27473 pkg_config_args=gtk+-2.0
27474 for module in . $GTK_MODULES
27475 do
27476 case "$module" in
27477 gthread)
27478 pkg_config_args="$pkg_config_args gthread-2.0"
27479 ;;
27480 esac
27481 done
27482
27483 no_gtk=""
27484
27485 # Extract the first word of "pkg-config", so it can be a program name with args.
27486set dummy pkg-config; ac_word=$2
27487echo "$as_me:$LINENO: checking for $ac_word" >&5
27488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27489if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27490 echo $ECHO_N "(cached) $ECHO_C" >&6
27491else
27492 case $PKG_CONFIG in
27493 [\\/]* | ?:[\\/]*)
27494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27495 ;;
27496 *)
27497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27498for as_dir in $PATH
27499do
27500 IFS=$as_save_IFS
27501 test -z "$as_dir" && as_dir=.
27502 for ac_exec_ext in '' $ac_executable_extensions; do
27503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27506 break 2
27507 fi
27508done
27509done
27510
27511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27512 ;;
27513esac
27514fi
27515PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27516
27517if test -n "$PKG_CONFIG"; then
27518 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27519echo "${ECHO_T}$PKG_CONFIG" >&6
27520else
27521 echo "$as_me:$LINENO: result: no" >&5
27522echo "${ECHO_T}no" >&6
27523fi
27524
27525
27526 if test x$PKG_CONFIG != xno ; then
27527 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27528 :
27529 else
c2218763 27530 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27531 no_gtk=yes
27532 PKG_CONFIG=no
27533 fi
27534 else
27535 no_gtk=yes
27536 fi
27537
27538 min_gtk_version=2.0.0
27539 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27540echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27541
27542 if test x$PKG_CONFIG != xno ; then
27543 ## don't try to run the test against uninstalled libtool libs
27544 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27545 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27546 enable_gtktest=no
27547 fi
27548
27549 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27550 :
27551 else
27552 no_gtk=yes
27553 fi
27554 fi
27555
27556 if test x"$no_gtk" = x ; then
27557 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27558 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27559 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27561 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27563 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27564 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27565 if test "x$enable_gtktest" = "xyes" ; then
27566 ac_save_CFLAGS="$CFLAGS"
27567 ac_save_LIBS="$LIBS"
27568 CFLAGS="$CFLAGS $GTK_CFLAGS"
27569 LIBS="$GTK_LIBS $LIBS"
27570 rm -f conf.gtktest
27571 if test "$cross_compiling" = yes; then
27572 echo $ac_n "cross compiling; assumed OK... $ac_c"
27573else
27574 cat >conftest.$ac_ext <<_ACEOF
27575/* confdefs.h. */
27576_ACEOF
27577cat confdefs.h >>conftest.$ac_ext
27578cat >>conftest.$ac_ext <<_ACEOF
27579/* end confdefs.h. */
27580
27581#include <gtk/gtk.h>
27582#include <stdio.h>
27583#include <stdlib.h>
27584
27585int
27586main ()
27587{
27588 int major, minor, micro;
27589 char *tmp_version;
27590
27591 system ("touch conf.gtktest");
27592
27593 /* HP/UX 9 (%@#!) writes to sscanf strings */
27594 tmp_version = g_strdup("$min_gtk_version");
27595 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27596 printf("%s, bad version string\n", "$min_gtk_version");
27597 exit(1);
27598 }
27599
27600 if ((gtk_major_version != $gtk_config_major_version) ||
27601 (gtk_minor_version != $gtk_config_minor_version) ||
27602 (gtk_micro_version != $gtk_config_micro_version))
27603 {
27604 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27605 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27606 gtk_major_version, gtk_minor_version, gtk_micro_version);
27607 printf ("*** was found! If pkg-config was correct, then it is best\n");
27608 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27609 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27610 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27611 printf("*** required on your system.\n");
27612 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27613 printf("*** to point to the correct configuration files\n");
27614 }
27615 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27616 (gtk_minor_version != GTK_MINOR_VERSION) ||
27617 (gtk_micro_version != GTK_MICRO_VERSION))
27618 {
27619 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27620 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27621 printf("*** library (version %d.%d.%d)\n",
27622 gtk_major_version, gtk_minor_version, gtk_micro_version);
27623 }
27624 else
27625 {
27626 if ((gtk_major_version > major) ||
27627 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27628 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27629 {
27630 return 0;
27631 }
27632 else
27633 {
27634 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27635 gtk_major_version, gtk_minor_version, gtk_micro_version);
27636 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27637 major, minor, micro);
27638 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27639 printf("***\n");
27640 printf("*** If you have already installed a sufficiently new version, this error\n");
27641 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27642 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27643 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27644 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27645 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27646 printf("*** so that the correct libraries are found at run-time))\n");
27647 }
27648 }
27649 return 1;
27650}
27651
27652_ACEOF
27653rm -f conftest$ac_exeext
27654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27655 (eval $ac_link) 2>&5
27656 ac_status=$?
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27661 ac_status=$?
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 :
27665else
27666 echo "$as_me: program exited with status $ac_status" >&5
27667echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670( exit $ac_status )
27671no_gtk=yes
27672fi
ac1cb8d3 27673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27674fi
27675 CFLAGS="$ac_save_CFLAGS"
27676 LIBS="$ac_save_LIBS"
27677 fi
27678 fi
27679 if test "x$no_gtk" = x ; then
27680 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27681echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27682 wx_cv_lib_gtk=2.0
27683 else
27684 echo "$as_me:$LINENO: result: no" >&5
27685echo "${ECHO_T}no" >&6
27686 if test "$PKG_CONFIG" = "no" ; then
27687 echo "*** A new enough version of pkg-config was not found."
27688 echo "*** See http://pkgconfig.sourceforge.net"
27689 else
27690 if test -f conf.gtktest ; then
27691 :
27692 else
27693 echo "*** Could not run GTK+ test program, checking why..."
27694 ac_save_CFLAGS="$CFLAGS"
27695 ac_save_LIBS="$LIBS"
27696 CFLAGS="$CFLAGS $GTK_CFLAGS"
27697 LIBS="$LIBS $GTK_LIBS"
27698 cat >conftest.$ac_ext <<_ACEOF
27699/* confdefs.h. */
27700_ACEOF
27701cat confdefs.h >>conftest.$ac_ext
27702cat >>conftest.$ac_ext <<_ACEOF
27703/* end confdefs.h. */
27704
27705#include <gtk/gtk.h>
27706#include <stdio.h>
27707
27708int
27709main ()
27710{
27711 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27718 (eval $ac_link) 2>conftest.er1
a848cd7e 27719 ac_status=$?
ac1cb8d3
VS
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
a848cd7e
SC
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
ca5c6ac3 27725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; } &&
27731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 echo "*** The test program compiled, but did not run. This usually means"
27738 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27739 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27740 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27741 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27742 echo "*** is required on your system"
27743 echo "***"
27744 echo "*** If you have an old version installed, it is best to remove it, although"
27745 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27746else
27747 echo "$as_me: failed program was:" >&5
27748sed 's/^/| /' conftest.$ac_ext >&5
27749
27750 echo "*** The test program failed to compile or link. See the file config.log for the"
27751 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27752fi
ac1cb8d3
VS
27753rm -f conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27755 CFLAGS="$ac_save_CFLAGS"
27756 LIBS="$ac_save_LIBS"
27757 fi
27758 fi
27759 GTK_CFLAGS=""
27760 GTK_LIBS=""
27761 :
27762 fi
27763
27764
27765 rm -f conf.gtktest
27766
5001df0d
MW
27767
27768 case "${host}" in
27769 *-*-solaris2* )
27770 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27771 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27772 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27773 fi
27774 if test "$wxUSE_SHARED" != "yes"; then
27775 GTK_LIBS="$GTK_LIBS -lX11"
27776 fi
27777 esac
f597b41c
MW
27778 fi
27779
f34ca037
MW
27780 if test -z "$wx_cv_lib_gtk"; then
27781 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27782
27783# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27784if test "${with_gtk_prefix+set}" = set; then
27785 withval="$with_gtk_prefix"
27786 gtk_config_prefix="$withval"
27787else
27788 gtk_config_prefix=""
27789fi;
27790
27791# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27792if test "${with_gtk_exec_prefix+set}" = set; then
27793 withval="$with_gtk_exec_prefix"
27794 gtk_config_exec_prefix="$withval"
27795else
27796 gtk_config_exec_prefix=""
27797fi;
27798# Check whether --enable-gtktest or --disable-gtktest was given.
27799if test "${enable_gtktest+set}" = set; then
27800 enableval="$enable_gtktest"
27801
27802else
27803 enable_gtktest=yes
27804fi;
27805
27806 for module in . $GTK_MODULES
27807 do
27808 case "$module" in
27809 gthread)
27810 gtk_config_args="$gtk_config_args gthread"
27811 ;;
27812 esac
27813 done
27814
27815 if test x$gtk_config_exec_prefix != x ; then
27816 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27817 if test x${GTK_CONFIG+set} != xset ; then
27818 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27819 fi
27820 fi
27821 if test x$gtk_config_prefix != x ; then
27822 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27823 if test x${GTK_CONFIG+set} != xset ; then
27824 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27825 fi
27826 fi
27827
27828 # Extract the first word of "gtk-config", so it can be a program name with args.
27829set dummy gtk-config; ac_word=$2
27830echo "$as_me:$LINENO: checking for $ac_word" >&5
27831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27832if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 case $GTK_CONFIG in
27836 [\\/]* | ?:[\\/]*)
27837 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27838 ;;
27839 *)
27840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27841for as_dir in $PATH
27842do
27843 IFS=$as_save_IFS
27844 test -z "$as_dir" && as_dir=.
27845 for ac_exec_ext in '' $ac_executable_extensions; do
27846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27847 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27849 break 2
27850 fi
27851done
27852done
27853
27854 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27855 ;;
27856esac
27857fi
27858GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27859
27860if test -n "$GTK_CONFIG"; then
27861 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27862echo "${ECHO_T}$GTK_CONFIG" >&6
27863else
27864 echo "$as_me:$LINENO: result: no" >&5
27865echo "${ECHO_T}no" >&6
27866fi
27867
27868 min_gtk_version=1.2.7
27869 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27870echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27871 no_gtk=""
27872 if test "$GTK_CONFIG" = "no" ; then
27873 no_gtk=yes
27874 else
27875 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27876 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27877 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27878 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27879 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27880 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27881 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27883 if test "x$enable_gtktest" = "xyes" ; then
27884 ac_save_CFLAGS="$CFLAGS"
27885 ac_save_LIBS="$LIBS"
27886 CFLAGS="$CFLAGS $GTK_CFLAGS"
27887 LIBS="$GTK_LIBS $LIBS"
27888 rm -f conf.gtktest
27889 if test "$cross_compiling" = yes; then
27890 echo $ac_n "cross compiling; assumed OK... $ac_c"
27891else
27892 cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
27898
27899#include <gtk/gtk.h>
27900#include <stdio.h>
27901#include <stdlib.h>
27902
27903int
27904main ()
27905{
27906 int major, minor, micro;
27907 char *tmp_version;
27908
27909 system ("touch conf.gtktest");
27910
27911 /* HP/UX 9 (%@#!) writes to sscanf strings */
27912 tmp_version = g_strdup("$min_gtk_version");
27913 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27914 printf("%s, bad version string\n", "$min_gtk_version");
27915 exit(1);
27916 }
27917
27918 if ((gtk_major_version != $gtk_config_major_version) ||
27919 (gtk_minor_version != $gtk_config_minor_version) ||
27920 (gtk_micro_version != $gtk_config_micro_version))
27921 {
27922 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27923 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27924 gtk_major_version, gtk_minor_version, gtk_micro_version);
27925 printf ("*** was found! If gtk-config was correct, then it is best\n");
27926 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27927 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27928 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27929 printf("*** required on your system.\n");
27930 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27931 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27932 printf("*** before re-running configure\n");
27933 }
27934#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27935 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27936 (gtk_minor_version != GTK_MINOR_VERSION) ||
27937 (gtk_micro_version != GTK_MICRO_VERSION))
27938 {
27939 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27940 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27941 printf("*** library (version %d.%d.%d)\n",
27942 gtk_major_version, gtk_minor_version, gtk_micro_version);
27943 }
27944#endif /* defined (GTK_MAJOR_VERSION) ... */
27945 else
27946 {
27947 if ((gtk_major_version > major) ||
27948 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27949 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27950 {
27951 return 0;
27952 }
27953 else
27954 {
27955 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27956 gtk_major_version, gtk_minor_version, gtk_micro_version);
27957 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27958 major, minor, micro);
27959 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27960 printf("***\n");
27961 printf("*** If you have already installed a sufficiently new version, this error\n");
27962 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27963 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27964 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27965 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27966 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27967 printf("*** so that the correct libraries are found at run-time))\n");
27968 }
27969 }
27970 return 1;
27971}
27972
27973_ACEOF
27974rm -f conftest$ac_exeext
27975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27976 (eval $ac_link) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; }; then
27985 :
27986else
27987 echo "$as_me: program exited with status $ac_status" >&5
27988echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991( exit $ac_status )
27992no_gtk=yes
27993fi
ac1cb8d3 27994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27995fi
27996 CFLAGS="$ac_save_CFLAGS"
27997 LIBS="$ac_save_LIBS"
27998 fi
27999 fi
28000 if test "x$no_gtk" = x ; then
28001 echo "$as_me:$LINENO: result: yes" >&5
28002echo "${ECHO_T}yes" >&6
28003 wx_cv_lib_gtk=1.2.7
28004 else
28005 echo "$as_me:$LINENO: result: no" >&5
28006echo "${ECHO_T}no" >&6
28007 if test "$GTK_CONFIG" = "no" ; then
28008 echo "*** The gtk-config script installed by GTK could not be found"
28009 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28010 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28011 echo "*** full path to gtk-config."
28012 else
28013 if test -f conf.gtktest ; then
28014 :
28015 else
28016 echo "*** Could not run GTK test program, checking why..."
28017 CFLAGS="$CFLAGS $GTK_CFLAGS"
28018 LIBS="$LIBS $GTK_LIBS"
28019 cat >conftest.$ac_ext <<_ACEOF
28020/* confdefs.h. */
28021_ACEOF
28022cat confdefs.h >>conftest.$ac_ext
28023cat >>conftest.$ac_ext <<_ACEOF
28024/* end confdefs.h. */
28025
28026#include <gtk/gtk.h>
28027#include <stdio.h>
28028
28029int
28030main ()
28031{
28032 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28033 ;
28034 return 0;
28035}
28036_ACEOF
28037rm -f conftest.$ac_objext conftest$ac_exeext
28038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28039 (eval $ac_link) 2>conftest.er1
a848cd7e 28040 ac_status=$?
ac1cb8d3
VS
28041 grep -v '^ *+' conftest.er1 >conftest.err
28042 rm -f conftest.er1
28043 cat conftest.err >&5
a848cd7e
SC
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); } &&
ca5c6ac3 28046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 echo "*** The test program compiled, but did not run. This usually means"
28059 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28060 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28061 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28062 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28063 echo "*** is required on your system"
28064 echo "***"
28065 echo "*** If you have an old version installed, it is best to remove it, although"
28066 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28067 echo "***"
28068 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28069 echo "*** came with the system with the command"
28070 echo "***"
28071 echo "*** rpm --erase --nodeps gtk gtk-devel"
28072else
28073 echo "$as_me: failed program was:" >&5
28074sed 's/^/| /' conftest.$ac_ext >&5
28075
28076 echo "*** The test program failed to compile or link. See the file config.log for the"
28077 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28078 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28079 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28080fi
ac1cb8d3
VS
28081rm -f conftest.err conftest.$ac_objext \
28082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28083 CFLAGS="$ac_save_CFLAGS"
28084 LIBS="$ac_save_LIBS"
28085 fi
28086 fi
28087 GTK_CFLAGS=""
28088 GTK_LIBS=""
28089 :
28090 fi
28091
28092
28093 rm -f conf.gtktest
28094
28095
f34ca037 28096 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28097
28098# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28099if test "${with_gtk_prefix+set}" = set; then
28100 withval="$with_gtk_prefix"
28101 gtk_config_prefix="$withval"
28102else
28103 gtk_config_prefix=""
28104fi;
28105
28106# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28107if test "${with_gtk_exec_prefix+set}" = set; then
28108 withval="$with_gtk_exec_prefix"
28109 gtk_config_exec_prefix="$withval"
28110else
28111 gtk_config_exec_prefix=""
28112fi;
28113# Check whether --enable-gtktest or --disable-gtktest was given.
28114if test "${enable_gtktest+set}" = set; then
28115 enableval="$enable_gtktest"
28116
28117else
28118 enable_gtktest=yes
28119fi;
28120
28121 for module in . $GTK_MODULES
28122 do
28123 case "$module" in
28124 gthread)
28125 gtk_config_args="$gtk_config_args gthread"
28126 ;;
28127 esac
28128 done
28129
28130 if test x$gtk_config_exec_prefix != x ; then
28131 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28132 if test x${GTK_CONFIG+set} != xset ; then
28133 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28134 fi
28135 fi
28136 if test x$gtk_config_prefix != x ; then
28137 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28138 if test x${GTK_CONFIG+set} != xset ; then
28139 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28140 fi
28141 fi
28142
28143 # Extract the first word of "gtk-config", so it can be a program name with args.
28144set dummy gtk-config; ac_word=$2
28145echo "$as_me:$LINENO: checking for $ac_word" >&5
28146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28147if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149else
28150 case $GTK_CONFIG in
28151 [\\/]* | ?:[\\/]*)
28152 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28153 ;;
28154 *)
28155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28156for as_dir in $PATH
28157do
28158 IFS=$as_save_IFS
28159 test -z "$as_dir" && as_dir=.
28160 for ac_exec_ext in '' $ac_executable_extensions; do
28161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28162 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28164 break 2
28165 fi
28166done
28167done
28168
28169 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28170 ;;
28171esac
28172fi
28173GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28174
28175if test -n "$GTK_CONFIG"; then
28176 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28177echo "${ECHO_T}$GTK_CONFIG" >&6
28178else
28179 echo "$as_me:$LINENO: result: no" >&5
28180echo "${ECHO_T}no" >&6
28181fi
28182
28183 min_gtk_version=1.2.3
28184 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28185echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28186 no_gtk=""
28187 if test "$GTK_CONFIG" = "no" ; then
28188 no_gtk=yes
28189 else
28190 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28191 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28192 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28193 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28194 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28196 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28198 if test "x$enable_gtktest" = "xyes" ; then
28199 ac_save_CFLAGS="$CFLAGS"
28200 ac_save_LIBS="$LIBS"
28201 CFLAGS="$CFLAGS $GTK_CFLAGS"
28202 LIBS="$GTK_LIBS $LIBS"
28203 rm -f conf.gtktest
28204 if test "$cross_compiling" = yes; then
28205 echo $ac_n "cross compiling; assumed OK... $ac_c"
28206else
28207 cat >conftest.$ac_ext <<_ACEOF
28208/* confdefs.h. */
28209_ACEOF
28210cat confdefs.h >>conftest.$ac_ext
28211cat >>conftest.$ac_ext <<_ACEOF
28212/* end confdefs.h. */
28213
28214#include <gtk/gtk.h>
28215#include <stdio.h>
28216#include <stdlib.h>
28217
28218int
28219main ()
28220{
28221 int major, minor, micro;
28222 char *tmp_version;
28223
28224 system ("touch conf.gtktest");
28225
28226 /* HP/UX 9 (%@#!) writes to sscanf strings */
28227 tmp_version = g_strdup("$min_gtk_version");
28228 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28229 printf("%s, bad version string\n", "$min_gtk_version");
28230 exit(1);
28231 }
28232
28233 if ((gtk_major_version != $gtk_config_major_version) ||
28234 (gtk_minor_version != $gtk_config_minor_version) ||
28235 (gtk_micro_version != $gtk_config_micro_version))
28236 {
28237 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28238 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28239 gtk_major_version, gtk_minor_version, gtk_micro_version);
28240 printf ("*** was found! If gtk-config was correct, then it is best\n");
28241 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28242 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28243 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28244 printf("*** required on your system.\n");
28245 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28246 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28247 printf("*** before re-running configure\n");
28248 }
28249#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28250 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28251 (gtk_minor_version != GTK_MINOR_VERSION) ||
28252 (gtk_micro_version != GTK_MICRO_VERSION))
28253 {
28254 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28255 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28256 printf("*** library (version %d.%d.%d)\n",
28257 gtk_major_version, gtk_minor_version, gtk_micro_version);
28258 }
28259#endif /* defined (GTK_MAJOR_VERSION) ... */
28260 else
28261 {
28262 if ((gtk_major_version > major) ||
28263 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28264 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28265 {
28266 return 0;
28267 }
28268 else
28269 {
28270 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28271 gtk_major_version, gtk_minor_version, gtk_micro_version);
28272 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28273 major, minor, micro);
28274 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28275 printf("***\n");
28276 printf("*** If you have already installed a sufficiently new version, this error\n");
28277 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28278 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28279 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28280 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28281 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28282 printf("*** so that the correct libraries are found at run-time))\n");
28283 }
28284 }
28285 return 1;
28286}
28287
28288_ACEOF
28289rm -f conftest$ac_exeext
28290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28291 (eval $ac_link) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 :
28301else
28302 echo "$as_me: program exited with status $ac_status" >&5
28303echo "$as_me: failed program was:" >&5
28304sed 's/^/| /' conftest.$ac_ext >&5
28305
28306( exit $ac_status )
28307no_gtk=yes
28308fi
ac1cb8d3 28309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28310fi
28311 CFLAGS="$ac_save_CFLAGS"
28312 LIBS="$ac_save_LIBS"
28313 fi
28314 fi
28315 if test "x$no_gtk" = x ; then
28316 echo "$as_me:$LINENO: result: yes" >&5
28317echo "${ECHO_T}yes" >&6
28318 wx_cv_lib_gtk=1.2.3
28319 else
28320 echo "$as_me:$LINENO: result: no" >&5
28321echo "${ECHO_T}no" >&6
28322 if test "$GTK_CONFIG" = "no" ; then
28323 echo "*** The gtk-config script installed by GTK could not be found"
28324 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28325 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28326 echo "*** full path to gtk-config."
28327 else
28328 if test -f conf.gtktest ; then
28329 :
28330 else
28331 echo "*** Could not run GTK test program, checking why..."
28332 CFLAGS="$CFLAGS $GTK_CFLAGS"
28333 LIBS="$LIBS $GTK_LIBS"
28334 cat >conftest.$ac_ext <<_ACEOF
28335/* confdefs.h. */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h. */
28340
28341#include <gtk/gtk.h>
28342#include <stdio.h>
28343
28344int
28345main ()
28346{
28347 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28348 ;
28349 return 0;
28350}
28351_ACEOF
28352rm -f conftest.$ac_objext conftest$ac_exeext
28353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28354 (eval $ac_link) 2>conftest.er1
a848cd7e 28355 ac_status=$?
ac1cb8d3
VS
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
a848cd7e
SC
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
ca5c6ac3 28361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28363 (eval $ac_try) 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; }; then
28373 echo "*** The test program compiled, but did not run. This usually means"
28374 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28375 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28376 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28377 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28378 echo "*** is required on your system"
28379 echo "***"
28380 echo "*** If you have an old version installed, it is best to remove it, although"
28381 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28382 echo "***"
28383 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28384 echo "*** came with the system with the command"
28385 echo "***"
28386 echo "*** rpm --erase --nodeps gtk gtk-devel"
28387else
28388 echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391 echo "*** The test program failed to compile or link. See the file config.log for the"
28392 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28393 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28394 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28395fi
ac1cb8d3
VS
28396rm -f conftest.err conftest.$ac_objext \
28397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28398 CFLAGS="$ac_save_CFLAGS"
28399 LIBS="$ac_save_LIBS"
28400 fi
28401 fi
28402 GTK_CFLAGS=""
28403 GTK_LIBS=""
28404 :
28405 fi
28406
28407
28408 rm -f conf.gtktest
28409
f34ca037 28410 fi
a848cd7e
SC
28411 fi
28412 fi
28413
28414 if test -z "$wx_cv_lib_gtk"; then
28415 wx_cv_lib_gtk=none
28416 else
28417 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28418 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28419 fi
28420
28421
28422fi
28423
28424
28425 if test "$gtk_version_cached" = 1; then
28426 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28427echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28428 fi
28429
28430 case "$wx_cv_lib_gtk" in
28431 2.0) WXGTK20=1
28432 TOOLKIT_VERSION=2
28433 ;;
28434 1.2.7) WXGTK127=1
28435 WXGTK12=1
28436 ;;
28437 1.2.3) WXGTK12=1
28438 ;;
28439 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28440The development files for GTK+ were not found. For GTK+ 2, please
28441ensure that pkg-config is in the path and that gtk+-2.0.pc is
28442installed. For GTK+ 1.2 please check that gtk-config is in the path,
28443and that the version is 1.2.3 or above. Also check that the
28444libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28445--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28446 " >&5
28447echo "$as_me: error:
f597b41c
MW
28448The development files for GTK+ were not found. For GTK+ 2, please
28449ensure that pkg-config is in the path and that gtk+-2.0.pc is
28450installed. For GTK+ 1.2 please check that gtk-config is in the path,
28451and that the version is 1.2.3 or above. Also check that the
28452libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28453--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28454 " >&2;}
28455 { (exit 1); exit 1; }; }
28456 ;;
28457 esac
28458
28459 if test "$WXGTK20" = 1; then
6954625c 28460 save_CFLAGS="$CFLAGS"
304205f1 28461 save_LIBS="$LIBS"
6954625c 28462 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28463 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28464
58e65954
MW
28465 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28466echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28467if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28469else
28470 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28471/* confdefs.h. */
28472_ACEOF
28473cat confdefs.h >>conftest.$ac_ext
28474cat >>conftest.$ac_ext <<_ACEOF
28475/* end confdefs.h. */
58e65954 28476#include <gtk/gtk.h>
304205f1 28477
d12aef51
VZ
28478int
28479main ()
28480{
58e65954
MW
28481#ifndef gtk_icon_size_lookup
28482 char *p = (char *) gtk_icon_size_lookup;
28483#endif
abc736fd
MW
28484
28485 ;
28486 return 0;
28487}
28488_ACEOF
28489rm -f conftest.$ac_objext
28490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28491 (eval $ac_compile) 2>conftest.er1
28492 ac_status=$?
28493 grep -v '^ *+' conftest.er1 >conftest.err
28494 rm -f conftest.er1
28495 cat conftest.err >&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } &&
ca5c6ac3 28498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; } &&
28504 { ac_try='test -s conftest.$ac_objext'
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; }; then
58e65954 28510 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28511else
28512 echo "$as_me: failed program was:" >&5
28513sed 's/^/| /' conftest.$ac_ext >&5
28514
58e65954
MW
28515ac_cv_have_decl_gtk_icon_size_lookup=no
28516fi
28517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28518fi
28519echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28520echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28521if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28522
58e65954
MW
28523cat >>confdefs.h <<_ACEOF
28524#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28525_ACEOF
28526
58e65954
MW
28527
28528else
28529 cat >>confdefs.h <<_ACEOF
28530#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28531_ACEOF
28532
28533cat >>confdefs.h <<\_ACEOF
28534#define NEED_GTK_ICON_SIZE_LOOKUP 1
28535_ACEOF
abc736fd
MW
28536
28537fi
58e65954
MW
28538
28539
abc736fd 28540
e9263684
VZ
28541 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28542echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28543 cat >conftest.$ac_ext <<_ACEOF
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
28549
28550 #include <gtk/gtk.h>
28551
28552int
28553main ()
28554{
28555
28556 #if !GTK_CHECK_VERSION(2,6,0)
28557 Not GTK+ 2.6
28558 #endif
28559
28560 ;
28561 return 0;
28562}
28563_ACEOF
28564rm -f conftest.$ac_objext
28565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28566 (eval $ac_compile) 2>conftest.er1
28567 ac_status=$?
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
ca5c6ac3 28573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; } &&
28579 { ac_try='test -s conftest.$ac_objext'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; }; then
28585
28586 cat >>confdefs.h <<\_ACEOF
28587#define __WXGTK26__ 1
28588_ACEOF
28589
28590 cat >>confdefs.h <<\_ACEOF
28591#define __WXGTK24__ 1
28592_ACEOF
28593
28594 echo "$as_me:$LINENO: result: yes" >&5
28595echo "${ECHO_T}yes" >&6
28596 ac_wxgtk26=1
28597
28598else
28599 echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602
28603 echo "$as_me:$LINENO: result: no" >&5
28604echo "${ECHO_T}no" >&6
28605 ac_wxgtk26=0
28606
28607fi
28608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28609
28610 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28611 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28612echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28613 cat >conftest.$ac_ext <<_ACEOF
28614/* confdefs.h. */
28615_ACEOF
28616cat confdefs.h >>conftest.$ac_ext
28617cat >>conftest.$ac_ext <<_ACEOF
28618/* end confdefs.h. */
28619
28620 #include <gtk/gtk.h>
28621
28622int
28623main ()
28624{
28625
28626 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28627 Not GTK+ 2.4
9755e73b
VS
28628 #endif
28629
28630 ;
28631 return 0;
28632}
28633_ACEOF
28634rm -f conftest.$ac_objext
28635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28636 (eval $ac_compile) 2>conftest.er1
28637 ac_status=$?
28638 grep -v '^ *+' conftest.er1 >conftest.err
28639 rm -f conftest.er1
28640 cat conftest.err >&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } &&
ca5c6ac3 28643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28646 ac_status=$?
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; } &&
28649 { ac_try='test -s conftest.$ac_objext'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28655
28656 cat >>confdefs.h <<\_ACEOF
28657#define __WXGTK24__ 1
28658_ACEOF
28659
28660 echo "$as_me:$LINENO: result: yes" >&5
28661echo "${ECHO_T}yes" >&6
28662
28663else
28664 echo "$as_me: failed program was:" >&5
28665sed 's/^/| /' conftest.$ac_ext >&5
28666
28667
28668 echo "$as_me:$LINENO: result: no" >&5
28669echo "${ECHO_T}no" >&6
28670
28671fi
28672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28673 fi
9755e73b 28674
6954625c 28675 CFLAGS="$save_CFLAGS"
304205f1 28676 LIBS="$save_LIBS"
a848cd7e
SC
28677 else
28678 if test "$wxUSE_UNICODE" = "yes"; then
28679 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28680echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28681 wxUSE_UNICODE=no
28682 fi
28683 fi
28684
e56f4f9e
VZ
28685 ac_ext=cc
28686ac_cpp='$CXXCPP $CPPFLAGS'
28687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28690
28691
a848cd7e
SC
28692 if test "$USE_DARWIN" != 1; then
28693
28694for ac_func in poll
28695do
28696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28697echo "$as_me:$LINENO: checking for $ac_func" >&5
28698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28699if eval "test \"\${$as_ac_var+set}\" = set"; then
28700 echo $ECHO_N "(cached) $ECHO_C" >&6
28701else
28702 cat >conftest.$ac_ext <<_ACEOF
28703/* confdefs.h. */
28704_ACEOF
28705cat confdefs.h >>conftest.$ac_ext
28706cat >>conftest.$ac_ext <<_ACEOF
28707/* end confdefs.h. */
ac1cb8d3
VS
28708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28710#define $ac_func innocuous_$ac_func
28711
a848cd7e
SC
28712/* System header to define __stub macros and hopefully few prototypes,
28713 which can conflict with char $ac_func (); below.
28714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28715 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28716
a848cd7e
SC
28717#ifdef __STDC__
28718# include <limits.h>
28719#else
28720# include <assert.h>
28721#endif
ac1cb8d3
VS
28722
28723#undef $ac_func
28724
a848cd7e
SC
28725/* Override any gcc2 internal prototype to avoid an error. */
28726#ifdef __cplusplus
28727extern "C"
28728{
28729#endif
28730/* We use char because int might match the return type of a gcc2
28731 builtin and then its argument prototype would still apply. */
28732char $ac_func ();
28733/* The GNU C library defines this for functions which it implements
28734 to always fail with ENOSYS. Some functions are actually named
28735 something starting with __ and the normal name is an alias. */
28736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28737choke me
28738#else
28739char (*f) () = $ac_func;
28740#endif
28741#ifdef __cplusplus
28742}
28743#endif
28744
28745int
28746main ()
28747{
28748return f != $ac_func;
28749 ;
28750 return 0;
28751}
28752_ACEOF
28753rm -f conftest.$ac_objext conftest$ac_exeext
28754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28755 (eval $ac_link) 2>conftest.er1
a848cd7e 28756 ac_status=$?
ac1cb8d3
VS
28757 grep -v '^ *+' conftest.er1 >conftest.err
28758 rm -f conftest.er1
28759 cat conftest.err >&5
a848cd7e
SC
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); } &&
ca5c6ac3 28762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28764 (eval $ac_try) 2>&5
28765 ac_status=$?
28766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); }; } &&
28768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28770 (eval $ac_try) 2>&5
28771 ac_status=$?
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); }; }; then
28774 eval "$as_ac_var=yes"
28775else
28776 echo "$as_me: failed program was:" >&5
28777sed 's/^/| /' conftest.$ac_ext >&5
28778
28779eval "$as_ac_var=no"
28780fi
ac1cb8d3
VS
28781rm -f conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28783fi
28784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28786if test `eval echo '${'$as_ac_var'}'` = yes; then
28787 cat >>confdefs.h <<_ACEOF
28788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28789_ACEOF
28790
28791fi
28792done
28793
28794 fi
28795
28796 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28797 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28798
28799 AFMINSTALL=afminstall
28800 TOOLKIT=GTK
28801 GUIDIST=GTK_DIST
28802
28803 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28804echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28805if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28807else
28808 ac_check_lib_save_LIBS=$LIBS
28809LIBS="-lgdk $LIBS"
28810cat >conftest.$ac_ext <<_ACEOF
28811/* confdefs.h. */
28812_ACEOF
28813cat confdefs.h >>conftest.$ac_ext
28814cat >>conftest.$ac_ext <<_ACEOF
28815/* end confdefs.h. */
28816
28817/* Override any gcc2 internal prototype to avoid an error. */
28818#ifdef __cplusplus
28819extern "C"
28820#endif
28821/* We use char because int might match the return type of a gcc2
28822 builtin and then its argument prototype would still apply. */
28823char gdk_im_open ();
28824int
28825main ()
28826{
28827gdk_im_open ();
28828 ;
28829 return 0;
28830}
28831_ACEOF
28832rm -f conftest.$ac_objext conftest$ac_exeext
28833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28834 (eval $ac_link) 2>conftest.er1
a848cd7e 28835 ac_status=$?
ac1cb8d3
VS
28836 grep -v '^ *+' conftest.er1 >conftest.err
28837 rm -f conftest.er1
28838 cat conftest.err >&5
a848cd7e
SC
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); } &&
ca5c6ac3 28841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; } &&
28847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28849 (eval $ac_try) 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_lib_gdk_gdk_im_open=yes
28854else
28855 echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858ac_cv_lib_gdk_gdk_im_open=no
28859fi
ac1cb8d3
VS
28860rm -f conftest.err conftest.$ac_objext \
28861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28862LIBS=$ac_check_lib_save_LIBS
28863fi
28864echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28865echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28866if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28867 cat >>confdefs.h <<\_ACEOF
28868#define HAVE_XIM 1
28869_ACEOF
28870
28871fi
28872
28873
28874
28875 if test "$wxUSE_GPE" = "yes"; then
28876 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28877echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28878
0ad5d837
VZ
28879 ac_find_libraries=
28880 for ac_dir in $SEARCH_LIB;
a848cd7e 28881 do
3eca31dc 28882 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28883 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28884 ac_find_libraries=$ac_dir
28885 break 2
28886 fi
28887 done
28888 done
28889
28890 if test "$ac_find_libraries" != "" ; then
28891
0ad5d837 28892 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28893 ac_path_to_link=""
28894 else
0ad5d837
VZ
28895 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28896 result=$?
28897 if test $result = 0; then
28898 ac_path_to_link=""
28899 else
28900 ac_path_to_link=" -L$ac_find_libraries"
28901 fi
a848cd7e
SC
28902 fi
28903
28904 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28905 WXGPE=1
0ad5d837
VZ
28906 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28907echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28908 else
28909 echo "$as_me:$LINENO: result: not found" >&5
28910echo "${ECHO_T}not found" >&6
28911 fi
28912
28913 fi
28914 fi
28915
28916 if test "$wxUSE_MGL" = 1; then
28917 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28918echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28919 if test "x$MGL_ROOT" = x ; then
28920 echo "$as_me:$LINENO: result: not found" >&5
28921echo "${ECHO_T}not found" >&6
28922 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28923echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28924 { (exit 1); exit 1; }; }
28925 else
28926 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28927echo "${ECHO_T}$MGL_ROOT" >&6
28928 fi
28929
28930 echo "$as_me:$LINENO: checking for libmgl location" >&5
28931echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28932 case "${host}" in
28933 *-*-linux* )
28934 if test "x$wxUSE_SHARED" = xyes ; then
28935 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28936 else
28937 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28938 fi
28939 ;;
28940 *-pc-msdosdjgpp )
28941 mgl_os_candidates="dos32/dj2"
28942 ;;
28943 *)
28944 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28945echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28946 { (exit 1); exit 1; }; }
28947 esac
28948
28949 mgl_lib_type=""
28950 mgl_os=""
28951
28952 for mgl_os_i in $mgl_os_candidates ; do
28953 if test "x$mgl_os" = x ; then
28954 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28955 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28956 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28957 mgl_lib_type=debug
28958 mgl_os=$mgl_os_i
28959 fi
28960 fi
28961 if test "x$mgl_lib_type" = x ; then
28962 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28963 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28964 mgl_lib_type=release
28965 mgl_os=$mgl_os_i
28966 fi
28967 fi
28968 fi
28969 done
28970
28971 if test "x$mgl_os" = x ; then
28972 echo "$as_me:$LINENO: result: not found" >&5
28973echo "${ECHO_T}not found" >&6
28974 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28975echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28976 { (exit 1); exit 1; }; }
28977 fi
28978 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28979echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28980
28981 wxUSE_UNIVERSAL="yes"
28982
28983 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28984 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28985
28986 AFMINSTALL=afminstall
28987 TOOLKIT=MGL
28988 GUIDIST=MGL_DIST
28989 fi
28990
b3c86150
VS
28991 if test "$wxUSE_DFB" = 1; then
28992
28993
28994if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28995 if test -n "$ac_tool_prefix"; then
28996 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28997set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28998echo "$as_me:$LINENO: checking for $ac_word" >&5
28999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29000if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29001 echo $ECHO_N "(cached) $ECHO_C" >&6
29002else
29003 case $PKG_CONFIG in
29004 [\\/]* | ?:[\\/]*)
29005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29006 ;;
29007 *)
29008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29009for as_dir in $PATH
29010do
29011 IFS=$as_save_IFS
29012 test -z "$as_dir" && as_dir=.
29013 for ac_exec_ext in '' $ac_executable_extensions; do
29014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29017 break 2
29018 fi
29019done
29020done
29021
29022 ;;
29023esac
29024fi
29025PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29026
29027if test -n "$PKG_CONFIG"; then
29028 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29029echo "${ECHO_T}$PKG_CONFIG" >&6
29030else
29031 echo "$as_me:$LINENO: result: no" >&5
29032echo "${ECHO_T}no" >&6
29033fi
29034
29035fi
29036if test -z "$ac_cv_path_PKG_CONFIG"; then
29037 ac_pt_PKG_CONFIG=$PKG_CONFIG
29038 # Extract the first word of "pkg-config", so it can be a program name with args.
29039set dummy pkg-config; ac_word=$2
29040echo "$as_me:$LINENO: checking for $ac_word" >&5
29041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29042if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29043 echo $ECHO_N "(cached) $ECHO_C" >&6
29044else
29045 case $ac_pt_PKG_CONFIG in
29046 [\\/]* | ?:[\\/]*)
29047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29048 ;;
29049 *)
29050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29051for as_dir in $PATH
29052do
29053 IFS=$as_save_IFS
29054 test -z "$as_dir" && as_dir=.
29055 for ac_exec_ext in '' $ac_executable_extensions; do
29056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29059 break 2
29060 fi
29061done
29062done
29063
29064 ;;
29065esac
29066fi
29067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29068
29069if test -n "$ac_pt_PKG_CONFIG"; then
29070 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29071echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29072else
29073 echo "$as_me:$LINENO: result: no" >&5
29074echo "${ECHO_T}no" >&6
29075fi
29076
29077 PKG_CONFIG=$ac_pt_PKG_CONFIG
29078else
29079 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29080fi
29081
29082fi
29083if test -n "$PKG_CONFIG"; then
29084 _pkg_min_version=0.9.0
29085 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29086echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29087 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29088 echo "$as_me:$LINENO: result: yes" >&5
29089echo "${ECHO_T}yes" >&6
29090 else
29091 echo "$as_me:$LINENO: result: no" >&5
29092echo "${ECHO_T}no" >&6
29093 PKG_CONFIG=""
29094 fi
29095
29096fi
29097
29098pkg_failed=no
29099echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29100echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29101
29102if test -n "$PKG_CONFIG"; then
29103 if test -n "$DIRECTFB_CFLAGS"; then
29104 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29105 else
29106 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29107 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29108 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29109 ac_status=$?
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; then
737d3175 29112 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29113else
29114 pkg_failed=yes
29115fi
29116 fi
29117else
29118 pkg_failed=untried
29119fi
29120if test -n "$PKG_CONFIG"; then
29121 if test -n "$DIRECTFB_LIBS"; then
29122 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29123 else
29124 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29125 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29126 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; then
737d3175 29130 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29131else
29132 pkg_failed=yes
29133fi
29134 fi
29135else
29136 pkg_failed=untried
29137fi
29138
29139
29140
29141if test $pkg_failed = yes; then
29142
29143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29144 _pkg_short_errors_supported=yes
29145else
29146 _pkg_short_errors_supported=no
29147fi
29148 if test $_pkg_short_errors_supported = yes; then
737d3175 29149 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29150 else
737d3175 29151 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29152 fi
29153 # Put the nasty error message in config.log where it belongs
29154 echo "$DIRECTFB_PKG_ERRORS" >&5
29155
29156
29157 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29158echo "$as_me: error: DirectFB not found." >&2;}
29159 { (exit 1); exit 1; }; }
29160
29161
29162elif test $pkg_failed = untried; then
29163
29164 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29165echo "$as_me: error: DirectFB not found." >&2;}
29166 { (exit 1); exit 1; }; }
29167
29168
29169else
29170 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29171 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29172 echo "$as_me:$LINENO: result: yes" >&5
29173echo "${ECHO_T}yes" >&6
29174
29175 wxUSE_UNIVERSAL="yes"
29176 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29177 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29178 TOOLKIT=DFB
29179 GUIDIST=DFB_DIST
29180
29181fi
29182 fi
29183
a848cd7e
SC
29184 if test "$wxUSE_MICROWIN" = 1; then
29185 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29186echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29187 if test "x$MICROWINDOWS" = x ; then
29188 echo "$as_me:$LINENO: result: not found" >&5
29189echo "${ECHO_T}not found" >&6
29190 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29191echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29192 { (exit 1); exit 1; }; }
29193 else
29194 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29195echo "${ECHO_T}$MICROWINDOWS" >&6
29196 fi
29197
29198 if test -f $MICROWINDOWS/lib/libmwin.a; then
29199 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29200echo "${ECHO_T}MicroWindows' libraries found." >&6
29201 else
29202 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29203echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29204 { (exit 1); exit 1; }; }
29205 fi
29206
29207 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29208 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29209
29210 wxUSE_UNIVERSAL="yes"
29211
29212 AFMINSTALL=afminstall
29213 TOOLKIT=MICROWIN
29214 GUIDIST=MICROWIN_DIST
29215
29216 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29217 fi
29218
74b84332 29219 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ca5c6ac3
VZ
29220
29221if test "x$ac_path_x_has_been_run" != xyes; then
29222 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29223echo $ECHO_N "checking for X... $ECHO_C" >&6
29224
ca5c6ac3 29225ac_path_x_has_been_run=yes
a848cd7e
SC
29226
29227# Check whether --with-x or --without-x was given.
29228if test "${with_x+set}" = set; then
29229 withval="$with_x"
29230
29231fi;
29232# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29233if test "x$with_x" = xno; then
29234 # The user explicitly disabled X.
29235 have_x=disabled
29236else
29237 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29238 # Both variables are already set.
29239 have_x=yes
29240 else
29241 if test "${ac_cv_have_x+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29243else
29244 # One or both of the vars are not set, and there is no cached value.
29245ac_x_includes=no ac_x_libraries=no
29246rm -fr conftest.dir
29247if mkdir conftest.dir; then
29248 cd conftest.dir
29249 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29250 cat >Imakefile <<'_ACEOF'
29251acfindx:
29252 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29253_ACEOF
29254 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29256 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29258 for ac_extension in a so sl; do
29259 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29260 test -f $ac_im_libdir/libX11.$ac_extension; then
29261 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29262 fi
29263 done
29264 # Screen out bogus values from the imake configuration. They are
29265 # bogus both because they are the default anyway, and because
29266 # using them would break gcc on systems where it needs fixed includes.
29267 case $ac_im_incroot in
29268 /usr/include) ;;
29269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29270 esac
29271 case $ac_im_usrlibdir in
29272 /usr/lib | /lib) ;;
29273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29274 esac
29275 fi
29276 cd ..
29277 rm -fr conftest.dir
29278fi
29279
29280# Standard set of common directories for X headers.
29281# Check X11 before X11Rn because it is often a symlink to the current release.
29282ac_x_header_dirs='
29283/usr/X11/include
29284/usr/X11R6/include
29285/usr/X11R5/include
29286/usr/X11R4/include
29287
29288/usr/include/X11
29289/usr/include/X11R6
29290/usr/include/X11R5
29291/usr/include/X11R4
29292
29293/usr/local/X11/include
29294/usr/local/X11R6/include
29295/usr/local/X11R5/include
29296/usr/local/X11R4/include
29297
29298/usr/local/include/X11
29299/usr/local/include/X11R6
29300/usr/local/include/X11R5
29301/usr/local/include/X11R4
29302
29303/usr/X386/include
29304/usr/x386/include
29305/usr/XFree86/include/X11
29306
29307/usr/include
29308/usr/local/include
29309/usr/unsupported/include
29310/usr/athena/include
29311/usr/local/x11r5/include
29312/usr/lpp/Xamples/include
29313
29314/usr/openwin/include
29315/usr/openwin/share/include'
29316
29317if test "$ac_x_includes" = no; then
ca5c6ac3 29318 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29319 # First, try using that file with no special directory specified.
29320 cat >conftest.$ac_ext <<_ACEOF
29321/* confdefs.h. */
29322_ACEOF
29323cat confdefs.h >>conftest.$ac_ext
29324cat >>conftest.$ac_ext <<_ACEOF
29325/* end confdefs.h. */
ca5c6ac3 29326#include <X11/Xlib.h>
a848cd7e
SC
29327_ACEOF
29328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } >/dev/null; then
29336 if test -s conftest.err; then
5d7b7554
VZ
29337 ac_cpp_err=$ac_cxx_preproc_warn_flag
29338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29339 else
29340 ac_cpp_err=
29341 fi
29342else
29343 ac_cpp_err=yes
29344fi
29345if test -z "$ac_cpp_err"; then
29346 # We can compile using X headers with no special include directory.
29347ac_x_includes=
29348else
29349 echo "$as_me: failed program was:" >&5
29350sed 's/^/| /' conftest.$ac_ext >&5
29351
29352 for ac_dir in $ac_x_header_dirs; do
ca5c6ac3 29353 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29354 ac_x_includes=$ac_dir
29355 break
29356 fi
29357done
29358fi
29359rm -f conftest.err conftest.$ac_ext
29360fi # $ac_x_includes = no
29361
29362if test "$ac_x_libraries" = no; then
29363 # Check for the libraries.
29364 # See if we find them without any special options.
29365 # Don't add to $LIBS permanently.
29366 ac_save_LIBS=$LIBS
ca5c6ac3 29367 LIBS="-lX11 $LIBS"
a848cd7e
SC
29368 cat >conftest.$ac_ext <<_ACEOF
29369/* confdefs.h. */
29370_ACEOF
29371cat confdefs.h >>conftest.$ac_ext
29372cat >>conftest.$ac_ext <<_ACEOF
29373/* end confdefs.h. */
ca5c6ac3 29374#include <X11/Xlib.h>
a848cd7e
SC
29375int
29376main ()
29377{
ca5c6ac3 29378XrmInitialize ()
a848cd7e
SC
29379 ;
29380 return 0;
29381}
29382_ACEOF
29383rm -f conftest.$ac_objext conftest$ac_exeext
29384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29385 (eval $ac_link) 2>conftest.er1
a848cd7e 29386 ac_status=$?
ac1cb8d3
VS
29387 grep -v '^ *+' conftest.er1 >conftest.err
29388 rm -f conftest.er1
29389 cat conftest.err >&5
a848cd7e
SC
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } &&
ca5c6ac3 29392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29404 LIBS=$ac_save_LIBS
29405# We can link X programs with no special library path.
29406ac_x_libraries=
29407else
29408 echo "$as_me: failed program was:" >&5
29409sed 's/^/| /' conftest.$ac_ext >&5
29410
29411LIBS=$ac_save_LIBS
29412for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29413do
29414 # Don't even attempt the hair of trying to link an X program!
29415 for ac_extension in a so sl; do
ca5c6ac3 29416 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29417 ac_x_libraries=$ac_dir
29418 break 2
29419 fi
29420 done
29421done
29422fi
ac1cb8d3
VS
29423rm -f conftest.err conftest.$ac_objext \
29424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29425fi # $ac_x_libraries = no
29426
29427if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29428 # Didn't find X anywhere. Cache the known absence of X.
29429 ac_cv_have_x="have_x=no"
29430else
29431 # Record where we found X for the cache.
29432 ac_cv_have_x="have_x=yes \
ac1cb8d3 29433 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29434fi
29435fi
29436
29437 fi
29438 eval "$ac_cv_have_x"
29439fi # $with_x != no
29440
29441if test "$have_x" != yes; then
29442 echo "$as_me:$LINENO: result: $have_x" >&5
29443echo "${ECHO_T}$have_x" >&6
29444 no_x=yes
29445else
29446 # If each of the values was on the command line, it overrides each guess.
29447 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29448 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29449 # Update the cache value to reflect the command line values.
29450 ac_cv_have_x="have_x=yes \
29451 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ca5c6ac3
VZ
29452 # It might be that x_includes is empty (headers are found in the
29453 # standard search path. Then output the corresponding message
29454 ac_out_x_includes=$x_includes
29455 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29456 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29457echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29458fi
29459
ca5c6ac3 29460fi
a848cd7e
SC
29461if test "$no_x" = yes; then
29462 # Not all programs may use this symbol, but it does not hurt to define it.
29463
29464cat >>confdefs.h <<\_ACEOF
29465#define X_DISPLAY_MISSING 1
29466_ACEOF
29467
29468 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29469else
29470 if test -n "$x_includes"; then
29471 X_CFLAGS="$X_CFLAGS -I$x_includes"
29472 fi
29473
29474 # It would also be nice to do this for all -L options, not just this one.
29475 if test -n "$x_libraries"; then
29476 X_LIBS="$X_LIBS -L$x_libraries"
29477 # For Solaris; some versions of Sun CC require a space after -R and
29478 # others require no space. Words are not sufficient . . . .
29479 case `(uname -sr) 2>/dev/null` in
29480 "SunOS 5"*)
29481 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29482echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29483 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29484 cat >conftest.$ac_ext <<_ACEOF
29485/* confdefs.h. */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h. */
29490
29491int
29492main ()
29493{
29494
29495 ;
29496 return 0;
29497}
29498_ACEOF
29499rm -f conftest.$ac_objext conftest$ac_exeext
29500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29501 (eval $ac_link) 2>conftest.er1
a848cd7e 29502 ac_status=$?
ac1cb8d3
VS
29503 grep -v '^ *+' conftest.er1 >conftest.err
29504 rm -f conftest.er1
29505 cat conftest.err >&5
a848cd7e
SC
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } &&
ca5c6ac3 29508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510 (eval $ac_try) 2>&5
29511 ac_status=$?
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); }; } &&
29514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29516 (eval $ac_try) 2>&5
29517 ac_status=$?
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; }; then
29520 ac_R_nospace=yes
29521else
29522 echo "$as_me: failed program was:" >&5
29523sed 's/^/| /' conftest.$ac_ext >&5
29524
29525ac_R_nospace=no
29526fi
ac1cb8d3
VS
29527rm -f conftest.err conftest.$ac_objext \
29528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29529 if test $ac_R_nospace = yes; then
29530 echo "$as_me:$LINENO: result: no" >&5
29531echo "${ECHO_T}no" >&6
29532 X_LIBS="$X_LIBS -R$x_libraries"
29533 else
29534 LIBS="$ac_xsave_LIBS -R $x_libraries"
29535 cat >conftest.$ac_ext <<_ACEOF
29536/* confdefs.h. */
29537_ACEOF
29538cat confdefs.h >>conftest.$ac_ext
29539cat >>conftest.$ac_ext <<_ACEOF
29540/* end confdefs.h. */
29541
29542int
29543main ()
29544{
29545
29546 ;
29547 return 0;
29548}
29549_ACEOF
29550rm -f conftest.$ac_objext conftest$ac_exeext
29551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29552 (eval $ac_link) 2>conftest.er1
a848cd7e 29553 ac_status=$?
ac1cb8d3
VS
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
a848cd7e
SC
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
ca5c6ac3 29559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ac_R_space=yes
29572else
29573 echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
29576ac_R_space=no
29577fi
ac1cb8d3
VS
29578rm -f conftest.err conftest.$ac_objext \
29579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29580 if test $ac_R_space = yes; then
29581 echo "$as_me:$LINENO: result: yes" >&5
29582echo "${ECHO_T}yes" >&6
29583 X_LIBS="$X_LIBS -R $x_libraries"
29584 else
29585 echo "$as_me:$LINENO: result: neither works" >&5
29586echo "${ECHO_T}neither works" >&6
29587 fi
29588 fi
29589 LIBS=$ac_xsave_LIBS
29590 esac
29591 fi
29592
29593 # Check for system-dependent libraries X programs must link with.
29594 # Do this before checking for the system-independent R6 libraries
29595 # (-lICE), since we may need -lsocket or whatever for X linking.
29596
29597 if test "$ISC" = yes; then
29598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29599 else
29600 # Martyn Johnson says this is needed for Ultrix, if the X
29601 # libraries were built with DECnet support. And Karl Berry says
29602 # the Alpha needs dnet_stub (dnet does not exist).
29603 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29604 cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
29610
29611/* Override any gcc2 internal prototype to avoid an error. */
29612#ifdef __cplusplus
29613extern "C"
29614#endif
29615/* We use char because int might match the return type of a gcc2
29616 builtin and then its argument prototype would still apply. */
29617char XOpenDisplay ();
29618int
29619main ()
29620{
29621XOpenDisplay ();
29622 ;
29623 return 0;
29624}
29625_ACEOF
29626rm -f conftest.$ac_objext conftest$ac_exeext
29627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29628 (eval $ac_link) 2>conftest.er1
a848cd7e 29629 ac_status=$?
ac1cb8d3
VS
29630 grep -v '^ *+' conftest.er1 >conftest.err
29631 rm -f conftest.er1
29632 cat conftest.err >&5
a848cd7e
SC
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } &&
ca5c6ac3 29635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29637 (eval $ac_try) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; } &&
29641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; }; then
29647 :
29648else
29649 echo "$as_me: failed program was:" >&5
29650sed 's/^/| /' conftest.$ac_ext >&5
29651
29652echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29653echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29654if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
29657 ac_check_lib_save_LIBS=$LIBS
29658LIBS="-ldnet $LIBS"
29659cat >conftest.$ac_ext <<_ACEOF
29660/* confdefs.h. */
29661_ACEOF
29662cat confdefs.h >>conftest.$ac_ext
29663cat >>conftest.$ac_ext <<_ACEOF
29664/* end confdefs.h. */
29665
29666/* Override any gcc2 internal prototype to avoid an error. */
29667#ifdef __cplusplus
29668extern "C"
29669#endif
29670/* We use char because int might match the return type of a gcc2
29671 builtin and then its argument prototype would still apply. */
29672char dnet_ntoa ();
29673int
29674main ()
29675{
29676dnet_ntoa ();
29677 ;
29678 return 0;
29679}
29680_ACEOF
29681rm -f conftest.$ac_objext conftest$ac_exeext
29682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29683 (eval $ac_link) 2>conftest.er1
a848cd7e 29684 ac_status=$?
ac1cb8d3
VS
29685 grep -v '^ *+' conftest.er1 >conftest.err
29686 rm -f conftest.er1
29687 cat conftest.err >&5
a848cd7e
SC
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } &&
ca5c6ac3 29690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29692 (eval $ac_try) 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698 (eval $ac_try) 2>&5
29699 ac_status=$?
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); }; }; then
29702 ac_cv_lib_dnet_dnet_ntoa=yes
29703else
29704 echo "$as_me: failed program was:" >&5
29705sed 's/^/| /' conftest.$ac_ext >&5
29706
29707ac_cv_lib_dnet_dnet_ntoa=no
29708fi
ac1cb8d3
VS
29709rm -f conftest.err conftest.$ac_objext \
29710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29711LIBS=$ac_check_lib_save_LIBS
29712fi
29713echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29714echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29715if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29716 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29717fi
29718
29719 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29720 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29721echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29722if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29724else
29725 ac_check_lib_save_LIBS=$LIBS
29726LIBS="-ldnet_stub $LIBS"
29727cat >conftest.$ac_ext <<_ACEOF
29728/* confdefs.h. */
29729_ACEOF
29730cat confdefs.h >>conftest.$ac_ext
29731cat >>conftest.$ac_ext <<_ACEOF
29732/* end confdefs.h. */
29733
29734/* Override any gcc2 internal prototype to avoid an error. */
29735#ifdef __cplusplus
29736extern "C"
29737#endif
29738/* We use char because int might match the return type of a gcc2
29739 builtin and then its argument prototype would still apply. */
29740char dnet_ntoa ();
29741int
29742main ()
29743{
29744dnet_ntoa ();
29745 ;
29746 return 0;
29747}
29748_ACEOF
29749rm -f conftest.$ac_objext conftest$ac_exeext
29750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29751 (eval $ac_link) 2>conftest.er1
a848cd7e 29752 ac_status=$?
ac1cb8d3
VS
29753 grep -v '^ *+' conftest.er1 >conftest.err
29754 rm -f conftest.er1
29755 cat conftest.err >&5
a848cd7e
SC
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); } &&
ca5c6ac3 29758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29761 ac_status=$?
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29771else
29772 echo "$as_me: failed program was:" >&5
29773sed 's/^/| /' conftest.$ac_ext >&5
29774
29775ac_cv_lib_dnet_stub_dnet_ntoa=no
29776fi
ac1cb8d3
VS
29777rm -f conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29779LIBS=$ac_check_lib_save_LIBS
29780fi
29781echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29782echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29783if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29784 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29785fi
29786
29787 fi
29788fi
ac1cb8d3
VS
29789rm -f conftest.err conftest.$ac_objext \
29790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29791 LIBS="$ac_xsave_LIBS"
29792
29793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29794 # to get the SysV transport functions.
29795 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29796 # needs -lnsl.
29797 # The nsl library prevents programs from opening the X display
29798 # on Irix 5.2, according to T.E. Dickey.
29799 # The functions gethostbyname, getservbyname, and inet_addr are
29800 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29801 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29803if test "${ac_cv_func_gethostbyname+set}" = set; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806 cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
ac1cb8d3
VS
29812/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29814#define gethostbyname innocuous_gethostbyname
29815
a848cd7e
SC
29816/* System header to define __stub macros and hopefully few prototypes,
29817 which can conflict with char gethostbyname (); below.
29818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29820
a848cd7e
SC
29821#ifdef __STDC__
29822# include <limits.h>
29823#else
29824# include <assert.h>
29825#endif
ac1cb8d3
VS
29826
29827#undef gethostbyname
29828
a848cd7e
SC
29829/* Override any gcc2 internal prototype to avoid an error. */
29830#ifdef __cplusplus
29831extern "C"
29832{
29833#endif
29834/* We use char because int might match the return type of a gcc2
29835 builtin and then its argument prototype would still apply. */
29836char gethostbyname ();
29837/* The GNU C library defines this for functions which it implements
29838 to always fail with ENOSYS. Some functions are actually named
29839 something starting with __ and the normal name is an alias. */
29840#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29841choke me
29842#else
29843char (*f) () = gethostbyname;
29844#endif
29845#ifdef __cplusplus
29846}
29847#endif
29848
29849int
29850main ()
29851{
29852return f != gethostbyname;
29853 ;
29854 return 0;
29855}
29856_ACEOF
29857rm -f conftest.$ac_objext conftest$ac_exeext
29858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29859 (eval $ac_link) 2>conftest.er1
a848cd7e 29860 ac_status=$?
ac1cb8d3
VS
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
a848cd7e
SC
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
ca5c6ac3 29866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; } &&
29872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 ac_cv_func_gethostbyname=yes
29879else
29880 echo "$as_me: failed program was:" >&5
29881sed 's/^/| /' conftest.$ac_ext >&5
29882
29883ac_cv_func_gethostbyname=no
29884fi
ac1cb8d3
VS
29885rm -f conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29887fi
29888echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29889echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29890
29891 if test $ac_cv_func_gethostbyname = no; then
29892 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29893echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29894if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29895 echo $ECHO_N "(cached) $ECHO_C" >&6
29896else
29897 ac_check_lib_save_LIBS=$LIBS
29898LIBS="-lnsl $LIBS"
29899cat >conftest.$ac_ext <<_ACEOF
29900/* confdefs.h. */
29901_ACEOF
29902cat confdefs.h >>conftest.$ac_ext
29903cat >>conftest.$ac_ext <<_ACEOF
29904/* end confdefs.h. */
29905
29906/* Override any gcc2 internal prototype to avoid an error. */
29907#ifdef __cplusplus
29908extern "C"
29909#endif
29910/* We use char because int might match the return type of a gcc2
29911 builtin and then its argument prototype would still apply. */
29912char gethostbyname ();
29913int
29914main ()
29915{
29916gethostbyname ();
29917 ;
29918 return 0;
29919}
29920_ACEOF
29921rm -f conftest.$ac_objext conftest$ac_exeext
29922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29923 (eval $ac_link) 2>conftest.er1
29924 ac_status=$?
29925 grep -v '^ *+' conftest.er1 >conftest.err
29926 rm -f conftest.er1
29927 cat conftest.err >&5
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } &&
ca5c6ac3 29930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; } &&
29936 { ac_try='test -s conftest$ac_exeext'
29937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938 (eval $ac_try) 2>&5
29939 ac_status=$?
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; }; then
29942 ac_cv_lib_nsl_gethostbyname=yes
29943else
29944 echo "$as_me: failed program was:" >&5
29945sed 's/^/| /' conftest.$ac_ext >&5
29946
29947ac_cv_lib_nsl_gethostbyname=no
29948fi
29949rm -f conftest.err conftest.$ac_objext \
29950 conftest$ac_exeext conftest.$ac_ext
29951LIBS=$ac_check_lib_save_LIBS
29952fi
29953echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29954echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29955if test $ac_cv_lib_nsl_gethostbyname = yes; then
29956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29957fi
29958
29959 if test $ac_cv_lib_nsl_gethostbyname = no; then
29960 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29961echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29962if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29963 echo $ECHO_N "(cached) $ECHO_C" >&6
29964else
29965 ac_check_lib_save_LIBS=$LIBS
29966LIBS="-lbsd $LIBS"
29967cat >conftest.$ac_ext <<_ACEOF
29968/* confdefs.h. */
29969_ACEOF
29970cat confdefs.h >>conftest.$ac_ext
29971cat >>conftest.$ac_ext <<_ACEOF
29972/* end confdefs.h. */
29973
29974/* Override any gcc2 internal prototype to avoid an error. */
29975#ifdef __cplusplus
29976extern "C"
29977#endif
29978/* We use char because int might match the return type of a gcc2
29979 builtin and then its argument prototype would still apply. */
29980char gethostbyname ();
29981int
29982main ()
29983{
29984gethostbyname ();
29985 ;
29986 return 0;
29987}
29988_ACEOF
29989rm -f conftest.$ac_objext conftest$ac_exeext
29990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29991 (eval $ac_link) 2>conftest.er1
a848cd7e 29992 ac_status=$?
ac1cb8d3
VS
29993 grep -v '^ *+' conftest.er1 >conftest.err
29994 rm -f conftest.er1
29995 cat conftest.err >&5
a848cd7e
SC
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); } &&
ca5c6ac3 29998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_lib_bsd_gethostbyname=yes
30011else
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015ac_cv_lib_bsd_gethostbyname=no
30016fi
ac1cb8d3
VS
30017rm -f conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30019LIBS=$ac_check_lib_save_LIBS
30020fi
30021echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30022echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30023if test $ac_cv_lib_bsd_gethostbyname = yes; then
30024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30025fi
30026
30027 fi
30028 fi
30029
30030 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30031 # socket/setsockopt and other routines are undefined under SCO ODT
30032 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30033 # on later versions), says Simon Leinen: it contains gethostby*
30034 # variants that don't use the name server (or something). -lsocket
30035 # must be given before -lnsl if both are needed. We assume that
30036 # if connect needs -lnsl, so does gethostbyname.
30037 echo "$as_me:$LINENO: checking for connect" >&5
30038echo $ECHO_N "checking for connect... $ECHO_C" >&6
30039if test "${ac_cv_func_connect+set}" = set; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30041else
30042 cat >conftest.$ac_ext <<_ACEOF
30043/* confdefs.h. */
30044_ACEOF
30045cat confdefs.h >>conftest.$ac_ext
30046cat >>conftest.$ac_ext <<_ACEOF
30047/* end confdefs.h. */
ac1cb8d3
VS
30048/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30050#define connect innocuous_connect
30051
a848cd7e
SC
30052/* System header to define __stub macros and hopefully few prototypes,
30053 which can conflict with char connect (); below.
30054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30056
a848cd7e
SC
30057#ifdef __STDC__
30058# include <limits.h>
30059#else
30060# include <assert.h>
30061#endif
ac1cb8d3
VS
30062
30063#undef connect
30064
a848cd7e
SC
30065/* Override any gcc2 internal prototype to avoid an error. */
30066#ifdef __cplusplus
30067extern "C"
30068{
30069#endif
30070/* We use char because int might match the return type of a gcc2
30071 builtin and then its argument prototype would still apply. */
30072char connect ();
30073/* The GNU C library defines this for functions which it implements
30074 to always fail with ENOSYS. Some functions are actually named
30075 something starting with __ and the normal name is an alias. */
30076#if defined (__stub_connect) || defined (__stub___connect)
30077choke me
30078#else
30079char (*f) () = connect;
30080#endif
30081#ifdef __cplusplus
30082}
30083#endif
30084
30085int
30086main ()
30087{
30088return f != connect;
30089 ;
30090 return 0;
30091}
30092_ACEOF
30093rm -f conftest.$ac_objext conftest$ac_exeext
30094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30095 (eval $ac_link) 2>conftest.er1
a848cd7e 30096 ac_status=$?
ac1cb8d3
VS
30097 grep -v '^ *+' conftest.er1 >conftest.err
30098 rm -f conftest.er1
30099 cat conftest.err >&5
a848cd7e
SC
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } &&
ca5c6ac3 30102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; } &&
30108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; }; then
30114 ac_cv_func_connect=yes
30115else
30116 echo "$as_me: failed program was:" >&5
30117sed 's/^/| /' conftest.$ac_ext >&5
30118
30119ac_cv_func_connect=no
30120fi
ac1cb8d3
VS
30121rm -f conftest.err conftest.$ac_objext \
30122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30123fi
30124echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30125echo "${ECHO_T}$ac_cv_func_connect" >&6
30126
30127 if test $ac_cv_func_connect = no; then
30128 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30129echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30130if test "${ac_cv_lib_socket_connect+set}" = set; then
30131 echo $ECHO_N "(cached) $ECHO_C" >&6
30132else
30133 ac_check_lib_save_LIBS=$LIBS
30134LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30135cat >conftest.$ac_ext <<_ACEOF
30136/* confdefs.h. */
30137_ACEOF
30138cat confdefs.h >>conftest.$ac_ext
30139cat >>conftest.$ac_ext <<_ACEOF
30140/* end confdefs.h. */
30141
30142/* Override any gcc2 internal prototype to avoid an error. */
30143#ifdef __cplusplus
30144extern "C"
30145#endif
30146/* We use char because int might match the return type of a gcc2
30147 builtin and then its argument prototype would still apply. */
30148char connect ();
30149int
30150main ()
30151{
30152connect ();
30153 ;
30154 return 0;
30155}
30156_ACEOF
30157rm -f conftest.$ac_objext conftest$ac_exeext
30158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30159 (eval $ac_link) 2>conftest.er1
a848cd7e 30160 ac_status=$?
ac1cb8d3
VS
30161 grep -v '^ *+' conftest.er1 >conftest.err
30162 rm -f conftest.er1
30163 cat conftest.err >&5
a848cd7e
SC
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } &&
ca5c6ac3 30166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168 (eval $ac_try) 2>&5
30169 ac_status=$?
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; } &&
30172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30175 ac_status=$?
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; }; then
30178 ac_cv_lib_socket_connect=yes
30179else
30180 echo "$as_me: failed program was:" >&5
30181sed 's/^/| /' conftest.$ac_ext >&5
30182
30183ac_cv_lib_socket_connect=no
30184fi
ac1cb8d3
VS
30185rm -f conftest.err conftest.$ac_objext \
30186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30187LIBS=$ac_check_lib_save_LIBS
30188fi
30189echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30190echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30191if test $ac_cv_lib_socket_connect = yes; then
30192 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30193fi
30194
30195 fi
30196
30197 # Guillermo Gomez says -lposix is necessary on A/UX.
30198 echo "$as_me:$LINENO: checking for remove" >&5
30199echo $ECHO_N "checking for remove... $ECHO_C" >&6
30200if test "${ac_cv_func_remove+set}" = set; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202else
30203 cat >conftest.$ac_ext <<_ACEOF
30204/* confdefs.h. */
30205_ACEOF
30206cat confdefs.h >>conftest.$ac_ext
30207cat >>conftest.$ac_ext <<_ACEOF
30208/* end confdefs.h. */
ac1cb8d3
VS
30209/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211#define remove innocuous_remove
30212
a848cd7e
SC
30213/* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char remove (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30217
a848cd7e
SC
30218#ifdef __STDC__
30219# include <limits.h>
30220#else
30221# include <assert.h>
30222#endif
ac1cb8d3
VS
30223
30224#undef remove
30225
a848cd7e
SC
30226/* Override any gcc2 internal prototype to avoid an error. */
30227#ifdef __cplusplus
30228extern "C"
30229{
30230#endif
30231/* We use char because int might match the return type of a gcc2
30232 builtin and then its argument prototype would still apply. */
30233char remove ();
30234/* The GNU C library defines this for functions which it implements
30235 to always fail with ENOSYS. Some functions are actually named
30236 something starting with __ and the normal name is an alias. */
30237#if defined (__stub_remove) || defined (__stub___remove)
30238choke me
30239#else
30240char (*f) () = remove;
30241#endif
30242#ifdef __cplusplus
30243}
30244#endif
30245
30246int
30247main ()
30248{
30249return f != remove;
30250 ;
30251 return 0;
30252}
30253_ACEOF
30254rm -f conftest.$ac_objext conftest$ac_exeext
30255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30256 (eval $ac_link) 2>conftest.er1
a848cd7e 30257 ac_status=$?
ac1cb8d3
VS
30258 grep -v '^ *+' conftest.er1 >conftest.err
30259 rm -f conftest.er1
30260 cat conftest.err >&5
a848cd7e
SC
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } &&
ca5c6ac3 30263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; } &&
30269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; }; then
30275 ac_cv_func_remove=yes
30276else
30277 echo "$as_me: failed program was:" >&5
30278sed 's/^/| /' conftest.$ac_ext >&5
30279
30280ac_cv_func_remove=no
30281fi
ac1cb8d3
VS
30282rm -f conftest.err conftest.$ac_objext \
30283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30284fi
30285echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30286echo "${ECHO_T}$ac_cv_func_remove" >&6
30287
30288 if test $ac_cv_func_remove = no; then
30289 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30290echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30291if test "${ac_cv_lib_posix_remove+set}" = set; then
30292 echo $ECHO_N "(cached) $ECHO_C" >&6
30293else
30294 ac_check_lib_save_LIBS=$LIBS
30295LIBS="-lposix $LIBS"
30296cat >conftest.$ac_ext <<_ACEOF
30297/* confdefs.h. */
30298_ACEOF
30299cat confdefs.h >>conftest.$ac_ext
30300cat >>conftest.$ac_ext <<_ACEOF
30301/* end confdefs.h. */
30302
30303/* Override any gcc2 internal prototype to avoid an error. */
30304#ifdef __cplusplus
30305extern "C"
30306#endif
30307/* We use char because int might match the return type of a gcc2
30308 builtin and then its argument prototype would still apply. */
30309char remove ();
30310int
30311main ()
30312{
30313remove ();
30314 ;
30315 return 0;
30316}
30317_ACEOF
30318rm -f conftest.$ac_objext conftest$ac_exeext
30319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30320 (eval $ac_link) 2>conftest.er1
a848cd7e 30321 ac_status=$?
ac1cb8d3
VS
30322 grep -v '^ *+' conftest.er1 >conftest.err
30323 rm -f conftest.er1
30324 cat conftest.err >&5
a848cd7e
SC
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } &&
ca5c6ac3 30327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; } &&
30333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30335 (eval $ac_try) 2>&5
30336 ac_status=$?
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); }; }; then
30339 ac_cv_lib_posix_remove=yes
30340else
30341 echo "$as_me: failed program was:" >&5
30342sed 's/^/| /' conftest.$ac_ext >&5
30343
30344ac_cv_lib_posix_remove=no
30345fi
ac1cb8d3
VS
30346rm -f conftest.err conftest.$ac_objext \
30347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30348LIBS=$ac_check_lib_save_LIBS
30349fi
30350echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30351echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30352if test $ac_cv_lib_posix_remove = yes; then
30353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30354fi
30355
30356 fi
30357
30358 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30359 echo "$as_me:$LINENO: checking for shmat" >&5
30360echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30361if test "${ac_cv_func_shmat+set}" = set; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30363else
30364 cat >conftest.$ac_ext <<_ACEOF
30365/* confdefs.h. */
30366_ACEOF
30367cat confdefs.h >>conftest.$ac_ext
30368cat >>conftest.$ac_ext <<_ACEOF
30369/* end confdefs.h. */
ac1cb8d3
VS
30370/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30372#define shmat innocuous_shmat
30373
a848cd7e
SC
30374/* System header to define __stub macros and hopefully few prototypes,
30375 which can conflict with char shmat (); below.
30376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30378
a848cd7e
SC
30379#ifdef __STDC__
30380# include <limits.h>
30381#else
30382# include <assert.h>
30383#endif
ac1cb8d3
VS
30384
30385#undef shmat
30386
a848cd7e
SC
30387/* Override any gcc2 internal prototype to avoid an error. */
30388#ifdef __cplusplus
30389extern "C"
30390{
30391#endif
30392/* We use char because int might match the return type of a gcc2
30393 builtin and then its argument prototype would still apply. */
30394char shmat ();
30395/* The GNU C library defines this for functions which it implements
30396 to always fail with ENOSYS. Some functions are actually named
30397 something starting with __ and the normal name is an alias. */
30398#if defined (__stub_shmat) || defined (__stub___shmat)
30399choke me
30400#else
30401char (*f) () = shmat;
30402#endif
30403#ifdef __cplusplus
30404}
30405#endif
30406
30407int
30408main ()
30409{
30410return f != shmat;
30411 ;
30412 return 0;
30413}
30414_ACEOF
30415rm -f conftest.$ac_objext conftest$ac_exeext
30416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30417 (eval $ac_link) 2>conftest.er1
a848cd7e 30418 ac_status=$?
ac1cb8d3
VS
30419 grep -v '^ *+' conftest.er1 >conftest.err
30420 rm -f conftest.er1
30421 cat conftest.err >&5
a848cd7e
SC
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } &&
ca5c6ac3 30424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432 (eval $ac_try) 2>&5
30433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; }; then
30436 ac_cv_func_shmat=yes
30437else
30438 echo "$as_me: failed program was:" >&5
30439sed 's/^/| /' conftest.$ac_ext >&5
30440
30441ac_cv_func_shmat=no
30442fi
ac1cb8d3
VS
30443rm -f conftest.err conftest.$ac_objext \
30444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30445fi
30446echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30447echo "${ECHO_T}$ac_cv_func_shmat" >&6
30448
30449 if test $ac_cv_func_shmat = no; then
30450 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30451echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30452if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454else
30455 ac_check_lib_save_LIBS=$LIBS
30456LIBS="-lipc $LIBS"
30457cat >conftest.$ac_ext <<_ACEOF
30458/* confdefs.h. */
30459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h. */
30463
30464/* Override any gcc2 internal prototype to avoid an error. */
30465#ifdef __cplusplus
30466extern "C"
30467#endif
30468/* We use char because int might match the return type of a gcc2
30469 builtin and then its argument prototype would still apply. */
30470char shmat ();
30471int
30472main ()
30473{
30474shmat ();
30475 ;
30476 return 0;
30477}
30478_ACEOF
30479rm -f conftest.$ac_objext conftest$ac_exeext
30480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30481 (eval $ac_link) 2>conftest.er1
a848cd7e 30482 ac_status=$?
ac1cb8d3
VS
30483 grep -v '^ *+' conftest.er1 >conftest.err
30484 rm -f conftest.er1
30485 cat conftest.err >&5
a848cd7e
SC
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } &&
ca5c6ac3 30488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30490 (eval $ac_try) 2>&5
30491 ac_status=$?
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); }; } &&
30494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496 (eval $ac_try) 2>&5
30497 ac_status=$?
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_cv_lib_ipc_shmat=yes
30501else
30502 echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
30505ac_cv_lib_ipc_shmat=no
30506fi
ac1cb8d3
VS
30507rm -f conftest.err conftest.$ac_objext \
30508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30509LIBS=$ac_check_lib_save_LIBS
30510fi
30511echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30512echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30513if test $ac_cv_lib_ipc_shmat = yes; then
30514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30515fi
30516
30517 fi
30518 fi
30519
30520 # Check for libraries that X11R6 Xt/Xaw programs need.
30521 ac_save_LDFLAGS=$LDFLAGS
30522 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30523 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30524 # check for ICE first), but we must link in the order -lSM -lICE or
30525 # we get undefined symbols. So assume we have SM if we have ICE.
30526 # These have to be linked with before -lX11, unlike the other
30527 # libraries we check for below, so use a different variable.
30528 # John Interrante, Karl Berry
30529 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30530echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30531if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30533else
30534 ac_check_lib_save_LIBS=$LIBS
30535LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30536cat >conftest.$ac_ext <<_ACEOF
30537/* confdefs.h. */
30538_ACEOF
30539cat confdefs.h >>conftest.$ac_ext
30540cat >>conftest.$ac_ext <<_ACEOF
30541/* end confdefs.h. */
30542
30543/* Override any gcc2 internal prototype to avoid an error. */
30544#ifdef __cplusplus
30545extern "C"
30546#endif
30547/* We use char because int might match the return type of a gcc2
30548 builtin and then its argument prototype would still apply. */
30549char IceConnectionNumber ();
30550int
30551main ()
30552{
30553IceConnectionNumber ();
30554 ;
30555 return 0;
30556}
30557_ACEOF
30558rm -f conftest.$ac_objext conftest$ac_exeext
30559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30560 (eval $ac_link) 2>conftest.er1
a848cd7e 30561 ac_status=$?
ac1cb8d3
VS
30562 grep -v '^ *+' conftest.er1 >conftest.err
30563 rm -f conftest.er1
30564 cat conftest.err >&5
a848cd7e
SC
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } &&
ca5c6ac3 30567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30569 (eval $ac_try) 2>&5
30570 ac_status=$?
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); }; } &&
30573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30575 (eval $ac_try) 2>&5
30576 ac_status=$?
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578 (exit $ac_status); }; }; then
30579 ac_cv_lib_ICE_IceConnectionNumber=yes
30580else
30581 echo "$as_me: failed program was:" >&5
30582sed 's/^/| /' conftest.$ac_ext >&5
30583
30584ac_cv_lib_ICE_IceConnectionNumber=no
30585fi
ac1cb8d3
VS
30586rm -f conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30588LIBS=$ac_check_lib_save_LIBS
30589fi
30590echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30591echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30592if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30593 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30594fi
30595
30596 LDFLAGS=$ac_save_LDFLAGS
30597
30598fi
30599
30600
30601 if test "$no_x" = "yes"; then
89d90d6d
VZ
30602 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30603echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30604 { (exit 1); exit 1; }; }
a848cd7e
SC
30605 fi
30606
74b84332
VS
30607 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30608 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30609 AFMINSTALL=afminstall
30610 COMPILED_X_PROGRAM=0
30611
74b84332
VS
30612 fi
30613
30614 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30615 if test "$wxUSE_NANOX" = "yes"; then
30616 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30617echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30618 if test "x$MICROWIN" = x ; then
30619 echo "$as_me:$LINENO: result: not found" >&5
30620echo "${ECHO_T}not found" >&6
30621 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30622echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30623 { (exit 1); exit 1; }; }
30624 else
30625 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30626echo "${ECHO_T}$MICROWIN" >&6
30627 cat >>confdefs.h <<\_ACEOF
30628#define wxUSE_NANOX 1
30629_ACEOF
30630
30631 fi
30632 fi
30633
30634 if test "$wxUSE_UNICODE" = "yes"; then
30635
3ecd9f92
MW
30636pkg_failed=no
30637echo "$as_me:$LINENO: checking for PANGOX" >&5
30638echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30639
3ecd9f92
MW
30640if test -n "$PKG_CONFIG"; then
30641 if test -n "$PANGOX_CFLAGS"; then
30642 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30643 else
30644 if test -n "$PKG_CONFIG" && \
30645 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30646 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); }; then
30650 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30651else
30652 pkg_failed=yes
30653fi
30654 fi
30655else
30656 pkg_failed=untried
30657fi
30658if test -n "$PKG_CONFIG"; then
30659 if test -n "$PANGOX_LIBS"; then
30660 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30661 else
30662 if test -n "$PKG_CONFIG" && \
30663 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30664 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30665 ac_status=$?
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); }; then
30668 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30669else
30670 pkg_failed=yes
30671fi
30672 fi
30673else
30674 pkg_failed=untried
30675fi
30676
30677
30678
30679if test $pkg_failed = yes; then
30680
30681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30682 _pkg_short_errors_supported=yes
30683else
30684 _pkg_short_errors_supported=no
30685fi
30686 if test $_pkg_short_errors_supported = yes; then
30687 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30688 else
30689 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30690 fi
3ecd9f92
MW
30691 # Put the nasty error message in config.log where it belongs
30692 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30693
30694
3ecd9f92
MW
30695 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30696echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30697 { (exit 1); exit 1; }; }
a848cd7e 30698
a848cd7e 30699
3ecd9f92 30700elif test $pkg_failed = untried; then
a848cd7e 30701
3ecd9f92
MW
30702 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30703echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30704 { (exit 1); exit 1; }; }
30705
30706
30707else
30708 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30709 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30710 echo "$as_me:$LINENO: result: yes" >&5
30711echo "${ECHO_T}yes" >&6
30712
30713 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30714 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30715
30716fi
30717
30718pkg_failed=no
30719echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30720echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30721
30722if test -n "$PKG_CONFIG"; then
30723 if test -n "$PANGOFT2_CFLAGS"; then
30724 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30725 else
30726 if test -n "$PKG_CONFIG" && \
30727 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30728 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; then
30732 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30733else
30734 pkg_failed=yes
30735fi
30736 fi
30737else
30738 pkg_failed=untried
30739fi
30740if test -n "$PKG_CONFIG"; then
30741 if test -n "$PANGOFT2_LIBS"; then
30742 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30743 else
30744 if test -n "$PKG_CONFIG" && \
30745 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30746 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30747 ac_status=$?
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); }; then
30750 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30751else
30752 pkg_failed=yes
30753fi
30754 fi
30755else
30756 pkg_failed=untried
30757fi
30758
30759
30760
30761if test $pkg_failed = yes; then
30762
30763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30764 _pkg_short_errors_supported=yes
30765else
30766 _pkg_short_errors_supported=no
30767fi
30768 if test $_pkg_short_errors_supported = yes; then
30769 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30770 else
30771 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30772 fi
30773 # Put the nasty error message in config.log where it belongs
30774 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30775
a848cd7e
SC
30776
30777 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30778echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30779 wxUSE_PRINTING_ARCHITECTURE="no"
30780
30781
3ecd9f92 30782elif test $pkg_failed = untried; then
a848cd7e 30783
3ecd9f92
MW
30784 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30785echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30786 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30787
a848cd7e 30788
a848cd7e 30789else
3ecd9f92
MW
30790 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30791 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30792 echo "$as_me:$LINENO: result: yes" >&5
30793echo "${ECHO_T}yes" >&6
30794
30795 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30796 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30797
a848cd7e 30798fi
3ecd9f92
MW
30799
30800pkg_failed=no
30801echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30802echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30803
30804if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30805 if test -n "$PANGOXFT_CFLAGS"; then
30806 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30807 else
30808 if test -n "$PKG_CONFIG" && \
30809 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30810 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; then
30814 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30815else
3ecd9f92
MW
30816 pkg_failed=yes
30817fi
30818 fi
30819else
30820 pkg_failed=untried
30821fi
30822if test -n "$PKG_CONFIG"; then
30823 if test -n "$PANGOXFT_LIBS"; then
30824 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30825 else
30826 if test -n "$PKG_CONFIG" && \
30827 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30828 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; then
30832 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30833else
30834 pkg_failed=yes
30835fi
30836 fi
30837else
30838 pkg_failed=untried
a848cd7e
SC
30839fi
30840
a848cd7e 30841
a848cd7e 30842
3ecd9f92 30843if test $pkg_failed = yes; then
a848cd7e 30844
3ecd9f92
MW
30845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30846 _pkg_short_errors_supported=yes
30847else
30848 _pkg_short_errors_supported=no
30849fi
30850 if test $_pkg_short_errors_supported = yes; then
30851 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30852 else
30853 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30854 fi
3ecd9f92
MW
30855 # Put the nasty error message in config.log where it belongs
30856 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30857
30858
3ecd9f92
MW
30859 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30860echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30861
a848cd7e 30862
3ecd9f92 30863elif test $pkg_failed = untried; then
a848cd7e 30864
3ecd9f92
MW
30865 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30866echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30867
30868
30869else
30870 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30871 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30872 echo "$as_me:$LINENO: result: yes" >&5
30873echo "${ECHO_T}yes" >&6
a848cd7e 30874
4ae1af05
MB
30875 cat >>confdefs.h <<\_ACEOF
30876#define HAVE_PANGO_XFT 1
30877_ACEOF
30878
c92ad099 30879 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30880 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30881
3ecd9f92 30882fi
e56f4f9e 30883 save_CXXFLAGS="$CXXFLAGS"
304205f1 30884 save_LIBS="$LIBS"
e56f4f9e 30885 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30886 LIBS="$LIBS $PANGOX_LIBS"
30887
30888for ac_func in pango_font_family_is_monospace
30889do
30890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30891echo "$as_me:$LINENO: checking for $ac_func" >&5
30892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30893if eval "test \"\${$as_ac_var+set}\" = set"; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30895else
30896 cat >conftest.$ac_ext <<_ACEOF
30897/* confdefs.h. */
30898_ACEOF
30899cat confdefs.h >>conftest.$ac_ext
30900cat >>conftest.$ac_ext <<_ACEOF
30901/* end confdefs.h. */
30902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30904#define $ac_func innocuous_$ac_func
30905
30906/* System header to define __stub macros and hopefully few prototypes,
30907 which can conflict with char $ac_func (); below.
30908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30909 <limits.h> exists even on freestanding compilers. */
30910
30911#ifdef __STDC__
30912# include <limits.h>
30913#else
30914# include <assert.h>
30915#endif
30916
30917#undef $ac_func
30918
30919/* Override any gcc2 internal prototype to avoid an error. */
30920#ifdef __cplusplus
30921extern "C"
30922{
30923#endif
30924/* We use char because int might match the return type of a gcc2
30925 builtin and then its argument prototype would still apply. */
30926char $ac_func ();
30927/* The GNU C library defines this for functions which it implements
30928 to always fail with ENOSYS. Some functions are actually named
30929 something starting with __ and the normal name is an alias. */
30930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30931choke me
30932#else
30933char (*f) () = $ac_func;
30934#endif
30935#ifdef __cplusplus
30936}
30937#endif
30938
30939int
30940main ()
30941{
30942return f != $ac_func;
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947rm -f conftest.$ac_objext conftest$ac_exeext
30948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30949 (eval $ac_link) 2>conftest.er1
30950 ac_status=$?
30951 grep -v '^ *+' conftest.er1 >conftest.err
30952 rm -f conftest.er1
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } &&
ca5c6ac3 30956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; } &&
30962 { ac_try='test -s conftest$ac_exeext'
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
30968 eval "$as_ac_var=yes"
30969else
30970 echo "$as_me: failed program was:" >&5
30971sed 's/^/| /' conftest.$ac_ext >&5
30972
30973eval "$as_ac_var=no"
30974fi
30975rm -f conftest.err conftest.$ac_objext \
30976 conftest$ac_exeext conftest.$ac_ext
30977fi
30978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30980if test `eval echo '${'$as_ac_var'}'` = yes; then
30981 cat >>confdefs.h <<_ACEOF
30982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30983_ACEOF
30984
30985fi
30986done
30987
e56f4f9e 30988 CXXFLAGS="$save_CXXFLAGS"
304205f1 30989 LIBS="$save_LIBS"
a848cd7e
SC
30990 fi
30991
30992 wxUSE_UNIVERSAL="yes"
30993
30994 if test "$wxUSE_NANOX" = "yes"; then
30995 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30996 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"
30997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30998 else
30999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31000 fi
31001
a848cd7e
SC
31002 TOOLKIT=X11
31003 GUIDIST=X11_DIST
31004 fi
31005
31006 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31007 if test "$wxUSE_UNICODE" = "yes"; then
31008 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31009echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31010 { (exit 1); exit 1; }; }
31011 fi
31012
74b84332
VS
31013 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31014echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31015
74b84332
VS
31016ac_find_includes=
31017for ac_dir in $SEARCH_INCLUDE /usr/include;
31018 do
31019 if test -f "$ac_dir/Xm/Xm.h"; then
31020 ac_find_includes=$ac_dir
31021 break
31022 fi
31023 done
a848cd7e 31024
74b84332
VS
31025 if test "$ac_find_includes" != "" ; then
31026 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31027echo "${ECHO_T}found in $ac_find_includes" >&6
31028
31029 if test "x$ac_find_includes" = "x/usr/include"; then
31030 ac_path_to_include=""
31031 else
31032 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31033 result=$?
31034 if test $result = 0; then
31035 ac_path_to_include=""
31036 else
31037 ac_path_to_include=" -I$ac_find_includes"
31038 fi
a848cd7e
SC
31039 fi
31040
74b84332
VS
31041 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31042 else
e56f4f9e
VZ
31043 save_CXXFLAGS=$CXXFLAGS
31044 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31045
74b84332 31046 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31047/* confdefs.h. */
31048_ACEOF
31049cat confdefs.h >>conftest.$ac_ext
31050cat >>conftest.$ac_ext <<_ACEOF
31051/* end confdefs.h. */
31052
74b84332
VS
31053 #include <Xm/Xm.h>
31054
a848cd7e
SC
31055int
31056main ()
31057{
31058
74b84332
VS
31059 int version;
31060 version = xmUseVersion;
31061
a848cd7e
SC
31062 ;
31063 return 0;
31064}
31065_ACEOF
74b84332
VS
31066rm -f conftest.$ac_objext
31067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31068 (eval $ac_compile) 2>conftest.er1
a848cd7e 31069 ac_status=$?
ac1cb8d3
VS
31070 grep -v '^ *+' conftest.er1 >conftest.err
31071 rm -f conftest.er1
31072 cat conftest.err >&5
a848cd7e
SC
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); } &&
ca5c6ac3 31075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077 (eval $ac_try) 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; } &&
74b84332 31081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083 (eval $ac_try) 2>&5
31084 ac_status=$?
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; }; then
74b84332
VS
31087
31088 echo "$as_me:$LINENO: result: found in default search path" >&5
31089echo "${ECHO_T}found in default search path" >&6
31090 COMPILED_X_PROGRAM=1
31091
a848cd7e
SC
31092else
31093 echo "$as_me: failed program was:" >&5
31094sed 's/^/| /' conftest.$ac_ext >&5
31095
a848cd7e 31096
74b84332
VS
31097 echo "$as_me:$LINENO: result: no" >&5
31098echo "${ECHO_T}no" >&6
e051b34e
MW
31099 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31100echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31101 { (exit 1); exit 1; }; }
a848cd7e 31102
a848cd7e 31103
a848cd7e 31104fi
74b84332 31105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31106
e56f4f9e 31107 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31108 fi
31109
0ad5d837
VZ
31110
31111 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31112echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31113
0ad5d837
VZ
31114 ac_find_libraries=
31115 for ac_dir in $SEARCH_LIB;
74b84332 31116 do
3eca31dc 31117 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31118 if test -f "$ac_dir/libXm.$ac_extension"; then
31119 ac_find_libraries=$ac_dir
31120 break 2
a848cd7e 31121 fi
74b84332
VS
31122 done
31123 done
a848cd7e 31124
0ad5d837
VZ
31125
31126 if test "x$ac_find_libraries" != "x" ; then
31127 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31128echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31129
74b84332 31130
0ad5d837 31131 if test "$ac_find_libraries" = "default location"; then
74b84332 31132 ac_path_to_link=""
a848cd7e 31133 else
0ad5d837
VZ
31134 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31135 result=$?
31136 if test $result = 0; then
31137 ac_path_to_link=""
31138 else
31139 ac_path_to_link=" -L$ac_find_libraries"
31140 fi
74b84332
VS
31141 fi
31142
0ad5d837
VZ
31143 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31144 else
e56f4f9e
VZ
31145 save_CXXFLAGS=$CXXFLAGS
31146 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31147 save_LIBS="$LIBS"
31148 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31149
0ad5d837 31150 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31151/* confdefs.h. */
31152_ACEOF
31153cat confdefs.h >>conftest.$ac_ext
31154cat >>conftest.$ac_ext <<_ACEOF
31155/* end confdefs.h. */
31156
0ad5d837 31157 #include <Xm/Xm.h>
74b84332 31158
a848cd7e
SC
31159int
31160main ()
31161{
74b84332 31162
0ad5d837
VZ
31163 int version;
31164 version = xmUseVersion;
74b84332 31165
a848cd7e
SC
31166 ;
31167 return 0;
31168}
31169_ACEOF
0ad5d837
VZ
31170rm -f conftest.$ac_objext conftest$ac_exeext
31171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31172 (eval $ac_link) 2>conftest.er1
a848cd7e 31173 ac_status=$?
ac1cb8d3
VS
31174 grep -v '^ *+' conftest.er1 >conftest.err
31175 rm -f conftest.er1
31176 cat conftest.err >&5
a848cd7e
SC
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); } &&
ca5c6ac3 31179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31181 (eval $ac_try) 2>&5
31182 ac_status=$?
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; } &&
0ad5d837 31185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187 (eval $ac_try) 2>&5
31188 ac_status=$?
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; }; then
74b84332 31191
0ad5d837 31192 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31193echo "${ECHO_T}found in default search path" >&6
0ad5d837 31194 COMPILED_X_PROGRAM=1
74b84332 31195
a848cd7e
SC
31196else
31197 echo "$as_me: failed program was:" >&5
31198sed 's/^/| /' conftest.$ac_ext >&5
31199
74b84332 31200
6f9cf1e6 31201 echo "$as_me:$LINENO: result: no" >&5
74b84332 31202echo "${ECHO_T}no" >&6
6f9cf1e6 31203 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31204echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31205 { (exit 1); exit 1; }; }
31206
31207
31208fi
0ad5d837
VZ
31209rm -f conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
74b84332 31211
e56f4f9e 31212 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31213 LIBS="$save_LIBS"
74b84332
VS
31214 fi
31215
31216 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31217echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31218 libp_link=""
31219 libsm_ice_link=""
31220 libs_found=0
31221 for libp in "" " -lXp"; do
31222 if test "$libs_found" = "0"; then
31223 for libsm_ice in "" " -lSM -lICE"; do
31224 if test "$libs_found" = "0"; then
31225 save_LIBS="$LIBS"
31226 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31227 save_CXXFLAGS=$CXXFLAGS
31228 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31229
31230 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31231/* confdefs.h. */
31232_ACEOF
31233cat confdefs.h >>conftest.$ac_ext
31234cat >>conftest.$ac_ext <<_ACEOF
31235/* end confdefs.h. */
31236
74b84332
VS
31237 #include <Xm/Xm.h>
31238 #include <Xm/List.h>
31239
a848cd7e
SC
31240int
31241main ()
31242{
74b84332
VS
31243
31244 XmString string = NULL;
31245 Widget w = NULL;
31246 int position = 0;
31247 XmListAddItem(w, string, position);
31248
a848cd7e
SC
31249 ;
31250 return 0;
31251}
31252_ACEOF
31253rm -f conftest.$ac_objext conftest$ac_exeext
31254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31255 (eval $ac_link) 2>conftest.er1
a848cd7e 31256 ac_status=$?
ac1cb8d3
VS
31257 grep -v '^ *+' conftest.er1 >conftest.err
31258 rm -f conftest.er1
31259 cat conftest.err >&5
a848cd7e
SC
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); } &&
ca5c6ac3 31262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31264 (eval $ac_try) 2>&5
31265 ac_status=$?
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); }; } &&
31268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270 (eval $ac_try) 2>&5
31271 ac_status=$?
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; }; then
31274
31275 libp_link="$libp"
31276 libsm_ice_link="$libsm_ice"
31277 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31278echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31279 libs_found=1
31280
31281else
31282 echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285
31286
31287fi
ac1cb8d3
VS
31288rm -f conftest.err conftest.$ac_objext \
31289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31290
31291 LIBS="$save_LIBS"
e56f4f9e 31292 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31293 fi
31294 done
31295 fi
31296 done
31297
31298 if test "$libs_found" = "0"; then
31299 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31300echo "${ECHO_T}can't find the right libraries" >&6
31301 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31302echo "$as_me: error: can't link a simple motif program" >&2;}
31303 { (exit 1); exit 1; }; }
31304 fi
31305
62fa8b3a
MW
31306 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31307echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31308if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31310else
31311 ac_check_lib_save_LIBS=$LIBS
31312LIBS="-lSgm $LIBS"
31313cat >conftest.$ac_ext <<_ACEOF
31314/* confdefs.h. */
31315_ACEOF
31316cat confdefs.h >>conftest.$ac_ext
31317cat >>conftest.$ac_ext <<_ACEOF
31318/* end confdefs.h. */
31319
31320/* Override any gcc2 internal prototype to avoid an error. */
31321#ifdef __cplusplus
31322extern "C"
31323#endif
31324/* We use char because int might match the return type of a gcc2
31325 builtin and then its argument prototype would still apply. */
31326char SgCreateList ();
31327int
31328main ()
31329{
31330SgCreateList ();
31331 ;
31332 return 0;
31333}
31334_ACEOF
31335rm -f conftest.$ac_objext conftest$ac_exeext
31336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31337 (eval $ac_link) 2>conftest.er1
31338 ac_status=$?
31339 grep -v '^ *+' conftest.er1 >conftest.err
31340 rm -f conftest.er1
31341 cat conftest.err >&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } &&
ca5c6ac3 31344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; }; then
31356 ac_cv_lib_Sgm_SgCreateList=yes
31357else
31358 echo "$as_me: failed program was:" >&5
31359sed 's/^/| /' conftest.$ac_ext >&5
31360
31361ac_cv_lib_Sgm_SgCreateList=no
31362fi
31363rm -f conftest.err conftest.$ac_objext \
31364 conftest$ac_exeext conftest.$ac_ext
31365LIBS=$ac_check_lib_save_LIBS
31366fi
31367echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31368echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31369if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31370 libsgm_link=" -lSgm"
31371fi
31372
31373
e56f4f9e
VZ
31374 save_CXXFLAGS=$CXXFLAGS
31375 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31376
a848cd7e
SC
31377 echo "$as_me:$LINENO: checking for Motif 2" >&5
31378echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31379if test "${wx_cv_lib_motif2+set}" = set; then
31380 echo $ECHO_N "(cached) $ECHO_C" >&6
31381else
31382 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31383/* confdefs.h. */
31384_ACEOF
31385cat confdefs.h >>conftest.$ac_ext
31386cat >>conftest.$ac_ext <<_ACEOF
31387/* end confdefs.h. */
31388
0ad5d837 31389 #include <Xm/Xm.h>
a848cd7e
SC
31390
31391int
31392main ()
31393{
31394
0ad5d837
VZ
31395 #if XmVersion < 2000
31396 Not Motif 2
31397 #endif
a848cd7e
SC
31398
31399 ;
31400 return 0;
31401}
31402_ACEOF
31403rm -f conftest.$ac_objext
31404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31405 (eval $ac_compile) 2>conftest.er1
a848cd7e 31406 ac_status=$?
ac1cb8d3
VS
31407 grep -v '^ *+' conftest.er1 >conftest.err
31408 rm -f conftest.er1
31409 cat conftest.err >&5
a848cd7e
SC
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } &&
ca5c6ac3 31412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414 (eval $ac_try) 2>&5
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); }; } &&
31418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31421 ac_status=$?
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; }; then
0ad5d837 31424 wx_cv_lib_motif2="yes"
a848cd7e
SC
31425else
31426 echo "$as_me: failed program was:" >&5
31427sed 's/^/| /' conftest.$ac_ext >&5
31428
0ad5d837
VZ
31429wx_cv_lib_motif2="no"
31430fi
31431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31432fi
31433echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31434echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31435 if test "$wx_cv_lib_motif2" = "yes"; then
31436 cat >>confdefs.h <<\_ACEOF
31437#define __WXMOTIF20__ 1
31438_ACEOF
a848cd7e 31439
0ad5d837
VZ
31440 else
31441 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31442#define __WXMOTIF20__ 0
31443_ACEOF
31444
0ad5d837 31445 fi
2113bc77
MW
31446
31447 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31448echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31449if test "${wx_cv_lib_lesstif+set}" = set; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31451else
31452 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
31458
0ad5d837 31459 #include <Xm/Xm.h>
2113bc77
MW
31460
31461int
31462main ()
31463{
31464
0ad5d837
VZ
31465 #if !defined(LesstifVersion) || LesstifVersion <= 0
31466 Not Lesstif
31467 #endif
2113bc77
MW
31468
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473rm -f conftest.$ac_objext
31474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31475 (eval $ac_compile) 2>conftest.er1
31476 ac_status=$?
31477 grep -v '^ *+' conftest.er1 >conftest.err
31478 rm -f conftest.er1
31479 cat conftest.err >&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } &&
ca5c6ac3 31482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; } &&
31488 { ac_try='test -s conftest.$ac_objext'
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31491 ac_status=$?
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
0ad5d837 31494 wx_cv_lib_lesstif="yes"
2113bc77
MW
31495else
31496 echo "$as_me: failed program was:" >&5
31497sed 's/^/| /' conftest.$ac_ext >&5
31498
0ad5d837
VZ
31499wx_cv_lib_lesstif="no"
31500fi
31501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31502
0ad5d837
VZ
31503fi
31504echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31505echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31506 if test "$wx_cv_lib_lesstif" = "yes"; then
31507 cat >>confdefs.h <<\_ACEOF
31508#define __WXLESSTIF__ 1
31509_ACEOF
31510
31511 else
31512 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31513#define __WXLESSTIF__ 0
31514_ACEOF
31515
0ad5d837 31516 fi
2113bc77 31517
e56f4f9e 31518 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31519
62fa8b3a 31520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31521 TOOLKIT=MOTIF
31522 GUIDIST=MOTIF_DIST
31523 fi
31524
74b84332 31525 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31526 if test "$wxUSE_LIBXPM" = "sys"; then
31527 echo "$as_me:$LINENO: checking for Xpm library" >&5
31528echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31529
0ad5d837
VZ
31530 ac_find_libraries=
31531 for ac_dir in $SEARCH_LIB;
a848cd7e 31532 do
3eca31dc 31533 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31534 if test -f "$ac_dir/libXpm.$ac_extension"; then
31535 ac_find_libraries=$ac_dir
31536 break 2
31537 fi
31538 done
31539 done
31540
31541 if test "$ac_find_libraries" != "" ; then
31542
0ad5d837 31543 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31544 ac_path_to_link=""
31545 else
0ad5d837
VZ
31546 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31547 result=$?
31548 if test $result = 0; then
31549 ac_path_to_link=""
31550 else
31551 ac_path_to_link=" -L$ac_find_libraries"
31552 fi
a848cd7e
SC
31553 fi
31554
31555 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31556 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31557echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31558
31559 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31560echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31561if test "${wx_cv_x11_xpm_h+set}" = set; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31563else
31564
e56f4f9e
VZ
31565 save_CXXFLAGS=$CXXFLAGS
31566 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31567
31568 cat >conftest.$ac_ext <<_ACEOF
31569/* confdefs.h. */
31570_ACEOF
31571cat confdefs.h >>conftest.$ac_ext
31572cat >>conftest.$ac_ext <<_ACEOF
31573/* end confdefs.h. */
31574
31575 #include <X11/xpm.h>
31576
31577int
31578main ()
31579{
31580
31581 int version;
31582 version = XpmLibraryVersion();
31583
31584 ;
31585 return 0;
31586}
31587_ACEOF
31588rm -f conftest.$ac_objext
31589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31590 (eval $ac_compile) 2>conftest.er1
a848cd7e 31591 ac_status=$?
ac1cb8d3
VS
31592 grep -v '^ *+' conftest.er1 >conftest.err
31593 rm -f conftest.er1
31594 cat conftest.err >&5
a848cd7e
SC
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); } &&
ca5c6ac3 31597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31599 (eval $ac_try) 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31606 ac_status=$?
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
31609 wx_cv_x11_xpm_h=yes
31610else
31611 echo "$as_me: failed program was:" >&5
31612sed 's/^/| /' conftest.$ac_ext >&5
31613
31614wx_cv_x11_xpm_h=no
31615
31616fi
ac1cb8d3 31617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31618
e56f4f9e 31619 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31620
31621
31622fi
31623echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31624echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31625
31626 if test $wx_cv_x11_xpm_h = "yes"; then
31627 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31628 cat >>confdefs.h <<\_ACEOF
31629#define wxHAVE_LIB_XPM 1
31630_ACEOF
31631
31632 else
31633 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31634echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31635 fi
31636 fi
31637
31638 fi
31639
31640 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31641echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31642if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644else
31645 ac_check_lib_save_LIBS=$LIBS
31646LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31647cat >conftest.$ac_ext <<_ACEOF
31648/* confdefs.h. */
31649_ACEOF
31650cat confdefs.h >>conftest.$ac_ext
31651cat >>conftest.$ac_ext <<_ACEOF
31652/* end confdefs.h. */
31653
31654/* Override any gcc2 internal prototype to avoid an error. */
31655#ifdef __cplusplus
31656extern "C"
31657#endif
31658/* We use char because int might match the return type of a gcc2
31659 builtin and then its argument prototype would still apply. */
31660char XShapeQueryExtension ();
31661int
31662main ()
31663{
31664XShapeQueryExtension ();
31665 ;
31666 return 0;
31667}
31668_ACEOF
31669rm -f conftest.$ac_objext conftest$ac_exeext
31670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31671 (eval $ac_link) 2>conftest.er1
a848cd7e 31672 ac_status=$?
ac1cb8d3
VS
31673 grep -v '^ *+' conftest.er1 >conftest.err
31674 rm -f conftest.er1
31675 cat conftest.err >&5
a848cd7e
SC
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); } &&
ca5c6ac3 31678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680 (eval $ac_try) 2>&5
31681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31686 (eval $ac_try) 2>&5
31687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; }; then
31690 ac_cv_lib_Xext_XShapeQueryExtension=yes
31691else
31692 echo "$as_me: failed program was:" >&5
31693sed 's/^/| /' conftest.$ac_ext >&5
31694
31695ac_cv_lib_Xext_XShapeQueryExtension=no
31696fi
ac1cb8d3
VS
31697rm -f conftest.err conftest.$ac_objext \
31698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31699LIBS=$ac_check_lib_save_LIBS
31700fi
31701echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31702echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31703if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31704
31705 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31706 wxHAVE_XEXT_LIB=1
31707
31708fi
31709
31710
31711 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31712 save_CXXFLAGS="$CXXFLAGS"
31713 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31714
31715 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31716echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
31723
31724 #include <X11/Xlib.h>
31725 #include <X11/extensions/shape.h>
31726
31727int
31728main ()
31729{
31730
31731 int dummy1, dummy2;
31732 XShapeQueryExtension((Display*)NULL,
31733 (int*)NULL, (int*)NULL);
31734
31735 ;
31736 return 0;
31737}
31738_ACEOF
31739rm -f conftest.$ac_objext
31740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31741 (eval $ac_compile) 2>conftest.er1
a848cd7e 31742 ac_status=$?
ac1cb8d3
VS
31743 grep -v '^ *+' conftest.er1 >conftest.err
31744 rm -f conftest.er1
31745 cat conftest.err >&5
a848cd7e
SC
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } &&
ca5c6ac3 31748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750 (eval $ac_try) 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; } &&
31754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31756 (eval $ac_try) 2>&5
31757 ac_status=$?
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760
31761 cat >>confdefs.h <<\_ACEOF
31762#define HAVE_XSHAPE 1
31763_ACEOF
31764
31765 echo "$as_me:$LINENO: result: found" >&5
31766echo "${ECHO_T}found" >&6
31767
31768else
31769 echo "$as_me: failed program was:" >&5
31770sed 's/^/| /' conftest.$ac_ext >&5
31771
31772
31773 echo "$as_me:$LINENO: result: not found" >&5
31774echo "${ECHO_T}not found" >&6
31775
31776fi
ac1cb8d3 31777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31778 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31779
31780 fi
31781 fi
31782
31783 if test "$wxUSE_MAC" = 1; then
31784 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31785echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31786 if test "$GCC" = yes; then
31787 echo "$as_me:$LINENO: result: gcc" >&5
31788echo "${ECHO_T}gcc" >&6
31789 CPPFLAGS_PASCAL="-fpascal-strings"
31790 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31791 echo "$as_me:$LINENO: result: xlc" >&5
31792echo "${ECHO_T}xlc" >&6
31793 CPPFLAGS_PASCAL="-qmacpstr"
31794 else
31795 echo "$as_me:$LINENO: result: none" >&5
31796echo "${ECHO_T}none" >&6
31797 fi
31798
1e9e8aba 31799 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31800 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31801 else
c92ad099 31802 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31803 fi
a848cd7e 31804
a848cd7e
SC
31805 TOOLKIT=MAC
31806 GUIDIST=MACX_DIST
dd21ced8 31807 WXBASEPORT="_carbon"
a848cd7e
SC
31808 fi
31809
31810 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31811 TOOLKIT=COCOA
31812 GUIDIST=COCOA_DIST
31813 fi
31814
31815 if test "$wxUSE_PM" = 1; then
31816 TOOLKIT=PM
de59c161
RD
31817 GUIDIST=PM_DIST
31818 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31819echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31820if test "${wx_cv_spbcdata+set}" = set; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31822else
31823
31824 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31825/* confdefs.h. */
31826_ACEOF
31827cat confdefs.h >>conftest.$ac_ext
31828cat >>conftest.$ac_ext <<_ACEOF
31829/* end confdefs.h. */
31830
31831 #define INCL_PM
31832 #include <os2.h>
31833
31834int
31835main ()
31836{
31837
31838 SPBCDATA test;
31839
31840 ;
31841 return 0;
31842}
31843_ACEOF
31844rm -f conftest.$ac_objext
31845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31846 (eval $ac_compile) 2>conftest.er1
de59c161 31847 ac_status=$?
ac1cb8d3
VS
31848 grep -v '^ *+' conftest.er1 >conftest.err
31849 rm -f conftest.er1
31850 cat conftest.err >&5
de59c161
RD
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } &&
ca5c6ac3 31853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31855 (eval $ac_try) 2>&5
31856 ac_status=$?
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; } &&
31859 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31861 (eval $ac_try) 2>&5
31862 ac_status=$?
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); }; }; then
31865 wx_cv_spbcdata=yes
31866else
31867 echo "$as_me: failed program was:" >&5
31868sed 's/^/| /' conftest.$ac_ext >&5
31869
31870wx_cv_spbcdata=no
31871
31872fi
ac1cb8d3 31873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31874
31875
31876fi
31877echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31878echo "${ECHO_T}$wx_cv_spbcdata" >&6
31879
31880 if test $wx_cv_spbcdata = "yes"; then
31881 cat >>confdefs.h <<\_ACEOF
31882#define HAVE_SPBCDATA 1
31883_ACEOF
31884
31885 fi
a848cd7e
SC
31886 fi
31887
31888 if test "$TOOLKIT" = "PM" ; then
31889 TOOLKIT_DIR="os2"
31890 else
31891 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31892 fi
31893
a848cd7e 31894 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31895 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31896 WIDGET_SET=univ
a848cd7e
SC
31897 fi
31898
31899 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31900 DISTDIR="wx\$(TOOLKIT)"
31901else
31902 USE_GUI=0
31903
31904 TOOLKIT_DIR="base"
31905
31906 if test "$USE_WIN32" = 1 ; then
a848cd7e 31907 TOOLKIT="MSW"
a848cd7e
SC
31908 fi
31909
a848cd7e
SC
31910 GUIDIST="BASE_DIST"
31911 DISTDIR="wxBase"
31912fi
31913
31914
d12aef51
VZ
31915if test "$wxUSE_GUI" = "yes"; then
31916 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31917
31918for ac_header in X11/Xlib.h
31919do
31920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31921if eval "test \"\${$as_ac_Header+set}\" = set"; then
31922 echo "$as_me:$LINENO: checking for $ac_header" >&5
31923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31924if eval "test \"\${$as_ac_Header+set}\" = set"; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31926fi
31927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31929else
31930 # Is the header compilable?
31931echo "$as_me:$LINENO: checking $ac_header usability" >&5
31932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31933cat >conftest.$ac_ext <<_ACEOF
31934/* confdefs.h. */
31935_ACEOF
31936cat confdefs.h >>conftest.$ac_ext
31937cat >>conftest.$ac_ext <<_ACEOF
31938/* end confdefs.h. */
31939$ac_includes_default
31940#include <$ac_header>
31941_ACEOF
31942rm -f conftest.$ac_objext
31943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31944 (eval $ac_compile) 2>conftest.er1
31945 ac_status=$?
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
ca5c6ac3 31951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
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_objext'
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 ac_header_compiler=yes
31964else
31965 echo "$as_me: failed program was:" >&5
31966sed 's/^/| /' conftest.$ac_ext >&5
31967
31968ac_header_compiler=no
31969fi
31970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31972echo "${ECHO_T}$ac_header_compiler" >&6
31973
31974# Is the header present?
31975echo "$as_me:$LINENO: checking $ac_header presence" >&5
31976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31977cat >conftest.$ac_ext <<_ACEOF
31978/* confdefs.h. */
31979_ACEOF
31980cat confdefs.h >>conftest.$ac_ext
31981cat >>conftest.$ac_ext <<_ACEOF
31982/* end confdefs.h. */
31983#include <$ac_header>
31984_ACEOF
31985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31987 ac_status=$?
31988 grep -v '^ *+' conftest.er1 >conftest.err
31989 rm -f conftest.er1
31990 cat conftest.err >&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } >/dev/null; then
31993 if test -s conftest.err; then
5d7b7554
VZ
31994 ac_cpp_err=$ac_cxx_preproc_warn_flag
31995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31996 else
31997 ac_cpp_err=
31998 fi
31999else
32000 ac_cpp_err=yes
32001fi
32002if test -z "$ac_cpp_err"; then
32003 ac_header_preproc=yes
32004else
32005 echo "$as_me: failed program was:" >&5
32006sed 's/^/| /' conftest.$ac_ext >&5
32007
32008 ac_header_preproc=no
32009fi
32010rm -f conftest.err conftest.$ac_ext
32011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32012echo "${ECHO_T}$ac_header_preproc" >&6
32013
32014# So? What about this header?
5d7b7554 32015case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32016 yes:no: )
32017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32020echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32021 ac_header_preproc=yes
32022 ;;
32023 no:yes:* )
32024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32027echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32029echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32031echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32035echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32036 (
32037 cat <<\_ASBOX
32038## ----------------------------------------- ##
32039## Report this to wx-dev@lists.wxwidgets.org ##
32040## ----------------------------------------- ##
32041_ASBOX
32042 ) |
32043 sed "s/^/$as_me: WARNING: /" >&2
32044 ;;
32045esac
32046echo "$as_me:$LINENO: checking for $ac_header" >&5
32047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32048if eval "test \"\${$as_ac_Header+set}\" = set"; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32050else
32051 eval "$as_ac_Header=\$ac_header_preproc"
32052fi
32053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32055
32056fi
32057if test `eval echo '${'$as_ac_Header'}'` = yes; then
32058 cat >>confdefs.h <<_ACEOF
32059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32060_ACEOF
32061
32062fi
32063
32064done
32065
32066
32067for ac_header in X11/XKBlib.h
32068do
32069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32070echo "$as_me:$LINENO: checking for $ac_header" >&5
32071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32072if eval "test \"\${$as_ac_Header+set}\" = set"; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32074else
32075 cat >conftest.$ac_ext <<_ACEOF
32076/* confdefs.h. */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h. */
32081
32082 #if HAVE_X11_XLIB_H
32083 #include <X11/Xlib.h>
32084 #endif
32085
32086
32087#include <$ac_header>
32088_ACEOF
32089rm -f conftest.$ac_objext
32090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32091 (eval $ac_compile) 2>conftest.er1
32092 ac_status=$?
32093 grep -v '^ *+' conftest.er1 >conftest.err
32094 rm -f conftest.er1
32095 cat conftest.err >&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); } &&
ca5c6ac3 32098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32100 (eval $ac_try) 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; } &&
32104 { ac_try='test -s conftest.$ac_objext'
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
32110 eval "$as_ac_Header=yes"
32111else
32112 echo "$as_me: failed program was:" >&5
32113sed 's/^/| /' conftest.$ac_ext >&5
32114
32115eval "$as_ac_Header=no"
32116fi
32117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32118fi
32119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32121if test `eval echo '${'$as_ac_Header'}'` = yes; then
32122 cat >>confdefs.h <<_ACEOF
32123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32124_ACEOF
32125
32126fi
32127
32128done
32129
32130 fi
32131fi
32132
a848cd7e
SC
32133
32134
32135IODBC_C_SRC=""
32136
32137
32138if test "$TOOLKIT" != "MSW" ; then
32139
32140 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32141
32142 if test "${ac_cv_header_sql_h+set}" = set; then
32143 echo "$as_me:$LINENO: checking for sql.h" >&5
32144echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32145if test "${ac_cv_header_sql_h+set}" = set; then
32146 echo $ECHO_N "(cached) $ECHO_C" >&6
32147fi
32148echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32149echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32150else
32151 # Is the header compilable?
32152echo "$as_me:$LINENO: checking sql.h usability" >&5
32153echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32154cat >conftest.$ac_ext <<_ACEOF
32155/* confdefs.h. */
32156_ACEOF
32157cat confdefs.h >>conftest.$ac_ext
32158cat >>conftest.$ac_ext <<_ACEOF
32159/* end confdefs.h. */
32160$ac_includes_default
32161#include <sql.h>
32162_ACEOF
32163rm -f conftest.$ac_objext
32164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32165 (eval $ac_compile) 2>conftest.er1
a848cd7e 32166 ac_status=$?
ac1cb8d3
VS
32167 grep -v '^ *+' conftest.er1 >conftest.err
32168 rm -f conftest.er1
32169 cat conftest.err >&5
a848cd7e
SC
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); } &&
ca5c6ac3 32172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; }; then
32184 ac_header_compiler=yes
32185else
32186 echo "$as_me: failed program was:" >&5
32187sed 's/^/| /' conftest.$ac_ext >&5
32188
32189ac_header_compiler=no
32190fi
ac1cb8d3 32191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32193echo "${ECHO_T}$ac_header_compiler" >&6
32194
32195# Is the header present?
32196echo "$as_me:$LINENO: checking sql.h presence" >&5
32197echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32198cat >conftest.$ac_ext <<_ACEOF
32199/* confdefs.h. */
32200_ACEOF
32201cat confdefs.h >>conftest.$ac_ext
32202cat >>conftest.$ac_ext <<_ACEOF
32203/* end confdefs.h. */
32204#include <sql.h>
32205_ACEOF
32206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32208 ac_status=$?
32209 grep -v '^ *+' conftest.er1 >conftest.err
32210 rm -f conftest.er1
32211 cat conftest.err >&5
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); } >/dev/null; then
32214 if test -s conftest.err; then
5d7b7554
VZ
32215 ac_cpp_err=$ac_cxx_preproc_warn_flag
32216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32217 else
32218 ac_cpp_err=
32219 fi
32220else
32221 ac_cpp_err=yes
32222fi
32223if test -z "$ac_cpp_err"; then
32224 ac_header_preproc=yes
32225else
32226 echo "$as_me: failed program was:" >&5
32227sed 's/^/| /' conftest.$ac_ext >&5
32228
32229 ac_header_preproc=no
32230fi
32231rm -f conftest.err conftest.$ac_ext
32232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32233echo "${ECHO_T}$ac_header_preproc" >&6
32234
32235# So? What about this header?
5d7b7554 32236case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32237 yes:no: )
a848cd7e
SC
32238 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32239echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32240 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32241echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32242 ac_header_preproc=yes
a848cd7e 32243 ;;
ac1cb8d3 32244 no:yes:* )
a848cd7e
SC
32245 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32246echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32247 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32248echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32249 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32250echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32251 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32252echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32253 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32254echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32255 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32256echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32257 (
32258 cat <<\_ASBOX
ac1cb8d3
VS
32259## ----------------------------------------- ##
32260## Report this to wx-dev@lists.wxwidgets.org ##
32261## ----------------------------------------- ##
a848cd7e
SC
32262_ASBOX
32263 ) |
32264 sed "s/^/$as_me: WARNING: /" >&2
32265 ;;
32266esac
32267echo "$as_me:$LINENO: checking for sql.h" >&5
32268echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32269if test "${ac_cv_header_sql_h+set}" = set; then
32270 echo $ECHO_N "(cached) $ECHO_C" >&6
32271else
32272 ac_cv_header_sql_h=$ac_header_preproc
32273fi
32274echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32275echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32276
32277fi
32278if test $ac_cv_header_sql_h = yes; then
32279 found_sql_h=1
32280fi
32281
32282
32283 if test "x$found_sql_h" = "x1" ; then
32284 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32285echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32286if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32287 echo $ECHO_N "(cached) $ECHO_C" >&6
32288else
32289 ac_check_lib_save_LIBS=$LIBS
32290LIBS="-liodbc $LIBS"
32291cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h. */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h. */
32297
32298/* Override any gcc2 internal prototype to avoid an error. */
32299#ifdef __cplusplus
32300extern "C"
32301#endif
32302/* We use char because int might match the return type of a gcc2
32303 builtin and then its argument prototype would still apply. */
32304char SQLAllocEnv ();
32305int
32306main ()
32307{
32308SQLAllocEnv ();
32309 ;
32310 return 0;
32311}
32312_ACEOF
32313rm -f conftest.$ac_objext conftest$ac_exeext
32314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32315 (eval $ac_link) 2>conftest.er1
a848cd7e 32316 ac_status=$?
ac1cb8d3
VS
32317 grep -v '^ *+' conftest.er1 >conftest.err
32318 rm -f conftest.er1
32319 cat conftest.err >&5
a848cd7e
SC
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
ca5c6ac3 32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; } &&
32328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 ac_cv_lib_iodbc_SQLAllocEnv=yes
32335else
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
32339ac_cv_lib_iodbc_SQLAllocEnv=no
32340fi
ac1cb8d3
VS
32341rm -f conftest.err conftest.$ac_objext \
32342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32343LIBS=$ac_check_lib_save_LIBS
32344fi
32345echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32346echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32347if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32348 ODBC_LINK=" -liodbc"
32349else
32350
32351 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32352echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32353if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32355else
32356 ac_check_lib_save_LIBS=$LIBS
32357LIBS="-lunixodbc $LIBS"
32358cat >conftest.$ac_ext <<_ACEOF
32359/* confdefs.h. */
32360_ACEOF
32361cat confdefs.h >>conftest.$ac_ext
32362cat >>conftest.$ac_ext <<_ACEOF
32363/* end confdefs.h. */
32364
32365/* Override any gcc2 internal prototype to avoid an error. */
32366#ifdef __cplusplus
32367extern "C"
32368#endif
32369/* We use char because int might match the return type of a gcc2
32370 builtin and then its argument prototype would still apply. */
32371char SQLAllocEnv ();
32372int
32373main ()
32374{
32375SQLAllocEnv ();
32376 ;
32377 return 0;
32378}
32379_ACEOF
32380rm -f conftest.$ac_objext conftest$ac_exeext
32381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32382 (eval $ac_link) 2>conftest.er1
a848cd7e 32383 ac_status=$?
ac1cb8d3
VS
32384 grep -v '^ *+' conftest.er1 >conftest.err
32385 rm -f conftest.er1
32386 cat conftest.err >&5
a848cd7e
SC
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } &&
ca5c6ac3 32389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32392 ac_status=$?
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; } &&
32395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397 (eval $ac_try) 2>&5
32398 ac_status=$?
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
32401 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32402else
32403 echo "$as_me: failed program was:" >&5
32404sed 's/^/| /' conftest.$ac_ext >&5
32405
32406ac_cv_lib_unixodbc_SQLAllocEnv=no
32407fi
ac1cb8d3
VS
32408rm -f conftest.err conftest.$ac_objext \
32409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32410LIBS=$ac_check_lib_save_LIBS
32411fi
32412echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32413echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32414if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32415 ODBC_LINK=" -lunixodbc"
32416else
32417
32418 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32419echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32420if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32421 echo $ECHO_N "(cached) $ECHO_C" >&6
32422else
32423 ac_check_lib_save_LIBS=$LIBS
32424LIBS="-lodbc $LIBS"
32425cat >conftest.$ac_ext <<_ACEOF
32426/* confdefs.h. */
32427_ACEOF
32428cat confdefs.h >>conftest.$ac_ext
32429cat >>conftest.$ac_ext <<_ACEOF
32430/* end confdefs.h. */
32431
32432/* Override any gcc2 internal prototype to avoid an error. */
32433#ifdef __cplusplus
32434extern "C"
32435#endif
32436/* We use char because int might match the return type of a gcc2
32437 builtin and then its argument prototype would still apply. */
32438char SQLAllocEnv ();
32439int
32440main ()
32441{
32442SQLAllocEnv ();
32443 ;
32444 return 0;
32445}
32446_ACEOF
32447rm -f conftest.$ac_objext conftest$ac_exeext
32448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32449 (eval $ac_link) 2>conftest.er1
a848cd7e 32450 ac_status=$?
ac1cb8d3
VS
32451 grep -v '^ *+' conftest.er1 >conftest.err
32452 rm -f conftest.er1
32453 cat conftest.err >&5
a848cd7e
SC
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); } &&
ca5c6ac3 32456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32458 (eval $ac_try) 2>&5
32459 ac_status=$?
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); }; } &&
32462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32464 (eval $ac_try) 2>&5
32465 ac_status=$?
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); }; }; then
32468 ac_cv_lib_odbc_SQLAllocEnv=yes
32469else
32470 echo "$as_me: failed program was:" >&5
32471sed 's/^/| /' conftest.$ac_ext >&5
32472
32473ac_cv_lib_odbc_SQLAllocEnv=no
32474fi
ac1cb8d3
VS
32475rm -f conftest.err conftest.$ac_objext \
32476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32477LIBS=$ac_check_lib_save_LIBS
32478fi
32479echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32480echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32481if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32482 ODBC_LINK=" -lodbc"
32483fi
32484
32485
32486fi
32487
32488
32489fi
32490
32491 fi
32492 if test "x$ODBC_LINK" = "x" ; then
32493 if test "$wxUSE_ODBC" = "sys" ; then
32494 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32495echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32496 { (exit 1); exit 1; }; }
32497 else
32498 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32499echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32500 wxUSE_ODBC=builtin
32501 fi
32502 else
32503 wxUSE_ODBC=sys
32504 fi
32505 fi
a848cd7e 32506
2da0c077
RD
32507 if test "$wxUSE_ODBC" = "builtin" ; then
32508 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32509#define wxUSE_BUILTIN_IODBC 1
32510_ACEOF
32511
a848cd7e
SC
32512 fi
32513fi
32514
2da0c077
RD
32515if test "$wxUSE_ODBC" != "no" ; then
32516 cat >>confdefs.h <<\_ACEOF
32517#define wxUSE_ODBC 1
32518_ACEOF
32519
32520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32521
5ff751d6 32522 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32523fi
a848cd7e 32524
01cb68df 32525
a848cd7e 32526if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32527 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32528 echo "$as_me:$LINENO: checking for Xinerama" >&5
32529echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32530
0ad5d837
VZ
32531 ac_find_libraries=
32532 for ac_dir in $SEARCH_LIB;
32533 do
32534 for ac_extension in a so sl dylib dll.a; do
32535 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32536 ac_find_libraries=$ac_dir
32537 break 2
32538 fi
32539 done
32540 done
32541
a848cd7e
SC
32542 if test "$ac_find_libraries" != "" ; then
32543
0ad5d837 32544 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32545 ac_path_to_link=""
32546 else
0ad5d837
VZ
32547 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32548 result=$?
32549 if test $result = 0; then
32550 ac_path_to_link=""
32551 else
32552 ac_path_to_link=" -L$ac_find_libraries"
32553 fi
a848cd7e
SC
32554 fi
32555
32556 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32557 LDFLAGS="$LDFLAGS $ac_path_to_link"
32558 fi
32559 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32560 echo "$as_me:$LINENO: result: yes" >&5
32561echo "${ECHO_T}yes" >&6
32562
32563 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32564echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32565
0ad5d837
VZ
32566 ac_find_libraries=
32567 for ac_dir in $SEARCH_LIB;
a848cd7e 32568 do
3eca31dc 32569 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32570 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32571 ac_find_libraries=$ac_dir
32572 break 2
32573 fi
32574 done
32575 done
32576
32577 if test "$ac_find_libraries" != "" ; then
32578 echo "$as_me:$LINENO: result: yes" >&5
32579echo "${ECHO_T}yes" >&6
32580
32581for ac_header in X11/extensions/xf86vmode.h
32582do
32583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32584echo "$as_me:$LINENO: checking for $ac_header" >&5
32585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32586if eval "test \"\${$as_ac_Header+set}\" = set"; then
32587 echo $ECHO_N "(cached) $ECHO_C" >&6
32588else
32589 cat >conftest.$ac_ext <<_ACEOF
32590/* confdefs.h. */
32591_ACEOF
32592cat confdefs.h >>conftest.$ac_ext
32593cat >>conftest.$ac_ext <<_ACEOF
32594/* end confdefs.h. */
32595
32596 #if HAVE_X11_XLIB_H
32597 #include <X11/Xlib.h>
32598 #endif
32599
32600
32601#include <$ac_header>
32602_ACEOF
32603rm -f conftest.$ac_objext
32604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32605 (eval $ac_compile) 2>conftest.er1
a848cd7e 32606 ac_status=$?
ac1cb8d3
VS
32607 grep -v '^ *+' conftest.er1 >conftest.err
32608 rm -f conftest.er1
32609 cat conftest.err >&5
a848cd7e
SC
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } &&
ca5c6ac3 32612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32614 (eval $ac_try) 2>&5
32615 ac_status=$?
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); }; } &&
32618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620 (eval $ac_try) 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 eval "$as_ac_Header=yes"
32625else
32626 echo "$as_me: failed program was:" >&5
32627sed 's/^/| /' conftest.$ac_ext >&5
32628
32629eval "$as_ac_Header=no"
32630fi
ac1cb8d3 32631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32632fi
32633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32635if test `eval echo '${'$as_ac_Header'}'` = yes; then
32636 cat >>confdefs.h <<_ACEOF
32637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32638_ACEOF
32639
32640 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32641
32642fi
32643
32644done
32645
32646 else
32647 echo "$as_me:$LINENO: result: no" >&5
32648echo "${ECHO_T}no" >&6
32649 fi
32650
32651 else
32652 echo "$as_me:$LINENO: result: no" >&5
32653echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32654 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32655echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32656 wxUSE_DISPLAY="no"
32657 fi
01cb68df
RG
32658 elif test "$wxUSE_MSW" = 1; then
32659
e5efa97e 32660for ac_header in ddraw.h
01cb68df
RG
32661do
32662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32663echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32665if eval "test \"\${$as_ac_Header+set}\" = set"; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32667else
5294a27e 32668 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32669/* confdefs.h. */
32670_ACEOF
32671cat confdefs.h >>conftest.$ac_ext
32672cat >>conftest.$ac_ext <<_ACEOF
32673/* end confdefs.h. */
5294a27e
VZ
32674#include <windows.h>
32675
01cb68df
RG
32676#include <$ac_header>
32677_ACEOF
32678rm -f conftest.$ac_objext
32679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32680 (eval $ac_compile) 2>conftest.er1
01cb68df 32681 ac_status=$?
ac1cb8d3
VS
32682 grep -v '^ *+' conftest.er1 >conftest.err
32683 rm -f conftest.er1
32684 cat conftest.err >&5
01cb68df
RG
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); } &&
ca5c6ac3 32687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; } &&
32693 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695 (eval $ac_try) 2>&5
32696 ac_status=$?
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; }; then
5294a27e 32699 eval "$as_ac_Header=yes"
01cb68df
RG
32700else
32701 echo "$as_me: failed program was:" >&5
32702sed 's/^/| /' conftest.$ac_ext >&5
32703
5294a27e 32704eval "$as_ac_Header=no"
01cb68df 32705fi
ac1cb8d3 32706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32707fi
32708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32710if test `eval echo '${'$as_ac_Header'}'` = yes; then
32711 cat >>confdefs.h <<_ACEOF
32712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32713_ACEOF
32714
01cb68df
RG
32715fi
32716
32717done
32718
a848cd7e
SC
32719 fi
32720fi
32721
32722
32723USE_OPENGL=0
32724if test "$wxUSE_OPENGL" = "yes"; then
32725 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32726 OPENGL_LIBS="-framework OpenGL -framework AGL"
32727 elif test "$wxUSE_MSW" = 1; then
32728 OPENGL_LIBS="-lopengl32 -lglu32"
32729 else
32730
32731
32732ac_find_includes=
32733for ac_dir in $SEARCH_INCLUDE /usr/include;
32734 do
32735 if test -f "$ac_dir/GL/gl.h"; then
32736 ac_find_includes=$ac_dir
32737 break
32738 fi
32739 done
32740
32741 if test "$ac_find_includes" != "" ; then
32742 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32743echo "${ECHO_T}found in $ac_find_includes" >&6
32744
32745 if test "x$ac_find_includes" = "x/usr/include"; then
32746 ac_path_to_include=""
32747 else
32748 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32749 result=$?
32750 if test $result = 0; then
32751 ac_path_to_include=""
32752 else
32753 ac_path_to_include=" -I$ac_find_includes"
32754 fi
32755 fi
32756
c92ad099 32757 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32758 fi
32759
32760 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32761 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32762echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32763if test "${ac_cv_header_GL_gl_h+set}" = set; then
32764 echo $ECHO_N "(cached) $ECHO_C" >&6
32765fi
32766echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32767echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32768else
32769 # Is the header compilable?
32770echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32771echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32772cat >conftest.$ac_ext <<_ACEOF
32773/* confdefs.h. */
32774_ACEOF
32775cat confdefs.h >>conftest.$ac_ext
32776cat >>conftest.$ac_ext <<_ACEOF
32777/* end confdefs.h. */
32778$ac_includes_default
32779#include <GL/gl.h>
32780_ACEOF
32781rm -f conftest.$ac_objext
32782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32783 (eval $ac_compile) 2>conftest.er1
a848cd7e 32784 ac_status=$?
ac1cb8d3
VS
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
a848cd7e
SC
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } &&
ca5c6ac3 32790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32792 (eval $ac_try) 2>&5
32793 ac_status=$?
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); }; } &&
32796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32798 (eval $ac_try) 2>&5
32799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; }; then
32802 ac_header_compiler=yes
32803else
32804 echo "$as_me: failed program was:" >&5
32805sed 's/^/| /' conftest.$ac_ext >&5
32806
32807ac_header_compiler=no
32808fi
ac1cb8d3 32809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32811echo "${ECHO_T}$ac_header_compiler" >&6
32812
32813# Is the header present?
32814echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32815echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32816cat >conftest.$ac_ext <<_ACEOF
32817/* confdefs.h. */
32818_ACEOF
32819cat confdefs.h >>conftest.$ac_ext
32820cat >>conftest.$ac_ext <<_ACEOF
32821/* end confdefs.h. */
32822#include <GL/gl.h>
32823_ACEOF
32824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32826 ac_status=$?
32827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } >/dev/null; then
32832 if test -s conftest.err; then
5d7b7554
VZ
32833 ac_cpp_err=$ac_cxx_preproc_warn_flag
32834 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32835 else
32836 ac_cpp_err=
32837 fi
32838else
32839 ac_cpp_err=yes
32840fi
32841if test -z "$ac_cpp_err"; then
32842 ac_header_preproc=yes
32843else
32844 echo "$as_me: failed program was:" >&5
32845sed 's/^/| /' conftest.$ac_ext >&5
32846
32847 ac_header_preproc=no
32848fi
32849rm -f conftest.err conftest.$ac_ext
32850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32851echo "${ECHO_T}$ac_header_preproc" >&6
32852
32853# So? What about this header?
5d7b7554 32854case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32855 yes:no: )
a848cd7e
SC
32856 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32857echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32858 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32859echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32860 ac_header_preproc=yes
a848cd7e 32861 ;;
ac1cb8d3 32862 no:yes:* )
a848cd7e
SC
32863 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32864echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32865 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32866echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32867 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32868echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32869 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32870echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32871 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32872echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32873 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32874echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32875 (
32876 cat <<\_ASBOX
ac1cb8d3
VS
32877## ----------------------------------------- ##
32878## Report this to wx-dev@lists.wxwidgets.org ##
32879## ----------------------------------------- ##
a848cd7e
SC
32880_ASBOX
32881 ) |
32882 sed "s/^/$as_me: WARNING: /" >&2
32883 ;;
32884esac
32885echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32886echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32887if test "${ac_cv_header_GL_gl_h+set}" = set; then
32888 echo $ECHO_N "(cached) $ECHO_C" >&6
32889else
32890 ac_cv_header_GL_gl_h=$ac_header_preproc
32891fi
32892echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32893echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32894
32895fi
32896if test $ac_cv_header_GL_gl_h = yes; then
32897
32898 found_gl=0
32899
32900 echo "$as_me:$LINENO: checking for -lGL" >&5
32901echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32902
0ad5d837
VZ
32903 ac_find_libraries=
32904 for ac_dir in $SEARCH_LIB;
a848cd7e 32905 do
3eca31dc 32906 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32907 if test -f "$ac_dir/libGL.$ac_extension"; then
32908 ac_find_libraries=$ac_dir
32909 break 2
32910 fi
32911 done
32912 done
32913
32914 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32915 echo "$as_me:$LINENO: result: yes" >&5
32916echo "${ECHO_T}yes" >&6
32917
a848cd7e 32918
0ad5d837 32919 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32920 ac_path_to_link=""
32921 else
0ad5d837
VZ
32922 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32923 result=$?
32924 if test $result = 0; then
32925 ac_path_to_link=""
32926 else
32927 ac_path_to_link=" -L$ac_find_libraries"
32928 fi
a848cd7e
SC
32929 fi
32930
32931 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32932 LDFLAGS_GL="$ac_path_to_link"
32933 fi
32934
69120ee4
VZ
32935 echo "$as_me:$LINENO: checking for -lGLU" >&5
32936echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32937
0ad5d837
VZ
32938 ac_find_libraries=
32939 for ac_dir in $SEARCH_LIB;
32940 do
32941 for ac_extension in a so sl dylib dll.a; do
32942 if test -f "$ac_dir/libGLU.$ac_extension"; then
32943 ac_find_libraries=$ac_dir
32944 break 2
32945 fi
32946 done
32947 done
32948
a848cd7e
SC
32949 if test "$ac_find_libraries" != "" ; then
32950
0ad5d837 32951 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32952 ac_path_to_link=""
32953 else
0ad5d837
VZ
32954 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32955 result=$?
32956 if test $result = 0; then
32957 ac_path_to_link=""
32958 else
32959 ac_path_to_link=" -L$ac_find_libraries"
32960 fi
a848cd7e
SC
32961 fi
32962
32963 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32964 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32965 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32966 fi
32967
32968 found_gl=1
32969 OPENGL_LIBS="-lGL -lGLU"
32970 echo "$as_me:$LINENO: result: yes" >&5
32971echo "${ECHO_T}yes" >&6
69120ee4
VZ
32972 else
32973 echo "$as_me:$LINENO: result: no" >&5
32974echo "${ECHO_T}no" >&6
a848cd7e 32975 fi
69120ee4
VZ
32976 else
32977 echo "$as_me:$LINENO: result: no" >&5
32978echo "${ECHO_T}no" >&6
a848cd7e
SC
32979 fi
32980
32981 if test "$found_gl" != 1; then
a848cd7e
SC
32982 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32983echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32984
0ad5d837
VZ
32985 ac_find_libraries=
32986 for ac_dir in $SEARCH_LIB;
a848cd7e 32987 do
3eca31dc 32988 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32989 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32990 ac_find_libraries=$ac_dir
32991 break 2
32992 fi
32993 done
32994 done
32995
32996 if test "$ac_find_libraries" != "" ; then
32997
0ad5d837 32998 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32999 ac_path_to_link=""
33000 else
0ad5d837
VZ
33001 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33002 result=$?
33003 if test $result = 0; then
33004 ac_path_to_link=""
33005 else
33006 ac_path_to_link=" -L$ac_find_libraries"
33007 fi
a848cd7e
SC
33008 fi
33009
33010 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33011 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33012 echo "$as_me:$LINENO: result: yes" >&5
33013echo "${ECHO_T}yes" >&6
33014 else
33015 echo "$as_me:$LINENO: result: no" >&5
33016echo "${ECHO_T}no" >&6
33017 fi
33018 fi
33019
33020fi
33021
33022
33023
33024 if test "x$OPENGL_LIBS" = "x"; then
33025 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33026echo "$as_me: error: OpenGL libraries not available" >&2;}
33027 { (exit 1); exit 1; }; }
33028 fi
33029 fi
33030
33031 if test "$wxUSE_OPENGL" = "yes"; then
33032 USE_OPENGL=1
33033 cat >>confdefs.h <<\_ACEOF
33034#define wxUSE_OPENGL 1
33035_ACEOF
33036
33037 cat >>confdefs.h <<\_ACEOF
33038#define wxUSE_GLCANVAS 1
33039_ACEOF
33040
33041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33042 fi
33043fi
33044
a848cd7e
SC
33045
33046if test -n "$TOOLKIT" ; then
33047 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33048fi
33049
a848cd7e
SC
33050
33051
33052if test "$wxUSE_SHARED" = "yes"; then
33053 case "${host}" in
33054 *-pc-msdosdjgpp )
33055 wxUSE_SHARED=no
33056 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33057echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33058 ;;
33059 esac
33060fi
33061
a848cd7e 33062if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33063
33064
33065 found_versioning=no
33066
33067
33068 if test $found_versioning = no ; then
33069 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33070echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33071if test "${wx_cv_version_script+set}" = set; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33073else
33074
33075 echo "VER_1 { *; };" >conftest.sym
33076 echo "int main() { return 0; }" >conftest.cpp
33077
33078 if { ac_try='
33079 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33080 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; } ; then
33086 if test -s conftest.stderr ; then
33087 wx_cv_version_script=no
33088 else
33089 wx_cv_version_script=yes
33090 fi
33091 else
33092 wx_cv_version_script=no
33093 fi
e5d4b470
MW
33094
33095 if test $wx_cv_version_script = yes
33096 then
33097 echo "struct B { virtual ~B() { } }; \
33098 struct D : public B { }; \
33099 void F() { D d; }" > conftest.cpp
33100
33101 if { ac_try='
33102 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33103 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; } &&
33109 { ac_try='
33110 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33111 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }
33117 then
33118 if { ac_try='
33119 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33120 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }
33126 then
33127 wx_cv_version_script=yes
33128 else
33129 wx_cv_version_script=no
33130 fi
33131 fi
33132 fi
33133
a848cd7e 33134 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33135 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33136
33137fi
33138echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33139echo "${ECHO_T}$wx_cv_version_script" >&6
33140 if test $wx_cv_version_script = yes ; then
33141 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33142 fi
33143 fi
33144
33145
33146 case "${host}" in
33147 *-*-linux* | *-*-gnu* )
33148 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33149 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33150 ;;
a848cd7e
SC
33151
33152 *-*-solaris2* )
33153 if test "$GCC" = yes ; then
c92ad099 33154 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33155
33156 saveLdflags="$LDFLAGS"
33157 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33158 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33159echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33160 cat >conftest.$ac_ext <<_ACEOF
33161/* confdefs.h. */
33162_ACEOF
33163cat confdefs.h >>conftest.$ac_ext
33164cat >>conftest.$ac_ext <<_ACEOF
33165/* end confdefs.h. */
33166
33167int
33168main ()
33169{
33170
33171 ;
33172 return 0;
33173}
33174_ACEOF
33175rm -f conftest.$ac_objext conftest$ac_exeext
33176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33177 (eval $ac_link) 2>conftest.er1
a848cd7e 33178 ac_status=$?
ac1cb8d3
VS
33179 grep -v '^ *+' conftest.er1 >conftest.err
33180 rm -f conftest.er1
33181 cat conftest.err >&5
a848cd7e
SC
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); } &&
ca5c6ac3 33184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186 (eval $ac_try) 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; } &&
33190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196
33197 echo "$as_me:$LINENO: result: yes" >&5
33198echo "${ECHO_T}yes" >&6
33199 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33200 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33201
33202else
33203 echo "$as_me: failed program was:" >&5
33204sed 's/^/| /' conftest.$ac_ext >&5
33205
33206
33207 echo "$as_me:$LINENO: result: no" >&5
33208echo "${ECHO_T}no" >&6
33209 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33210echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33211 LDFLAGS="$saveLdflags -Wl,-R,/"
33212 cat >conftest.$ac_ext <<_ACEOF
33213/* confdefs.h. */
33214_ACEOF
33215cat confdefs.h >>conftest.$ac_ext
33216cat >>conftest.$ac_ext <<_ACEOF
33217/* end confdefs.h. */
33218
33219int
33220main ()
33221{
33222
33223 ;
33224 return 0;
33225}
33226_ACEOF
33227rm -f conftest.$ac_objext conftest$ac_exeext
33228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33229 (eval $ac_link) 2>conftest.er1
a848cd7e 33230 ac_status=$?
ac1cb8d3
VS
33231 grep -v '^ *+' conftest.er1 >conftest.err
33232 rm -f conftest.er1
33233 cat conftest.err >&5
a848cd7e
SC
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } &&
ca5c6ac3 33236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; } &&
33242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248
ffa0583f 33249 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33250echo "${ECHO_T}yes" >&6
ffa0583f
RL
33251 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33252 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33253
a848cd7e
SC
33254else
33255 echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
33258
33259 echo "$as_me:$LINENO: result: no" >&5
33260echo "${ECHO_T}no" >&6
33261
33262fi
ac1cb8d3
VS
33263rm -f conftest.err conftest.$ac_objext \
33264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33265
33266fi
ac1cb8d3
VS
33267rm -f conftest.err conftest.$ac_objext \
33268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33269 LDFLAGS="$saveLdflags"
33270 else
a848cd7e 33271 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33272 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33273 fi
33274 ;;
33275
cfda0ea8 33276 *-*-darwin* )
0caebc27
MW
33277 install_name_tool=`which install_name_tool`
33278 if test "$install_name_tool" -a -x "$install_name_tool"; then
33279 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33280 cat <<EOF >change-install-names
a848cd7e
SC
33281#!/bin/sh
33282libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33283inst_cmd="install_name_tool "
33284for i in \${libnames} ; do
33285 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33286done
33287\${inst_cmd} \${3}
33288EOF
0caebc27
MW
33289 chmod +x change-install-names
33290 fi
a848cd7e
SC
33291 ;;
33292
33293 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33294 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33295 ;;
a848cd7e 33296
81f90336
MW
33297 *-*-hpux* )
33298 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33299 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33300 ;;
81f90336 33301
a848cd7e 33302 esac
ceec2216 33303
ffa0583f
RL
33304 if test $wxUSE_RPATH = "no"; then
33305 SAMPLES_RPATH_FLAG=''
33306 SAMPLES_RPATH_POSTLINK=''
33307 WXCONFIG_RPATH=''
33308 fi
33309
33310 SHARED=1
33311
33312else
33313
ceec2216
RL
33314 config_linkage_component="-static"
33315 SHARED=0
ffa0583f 33316
ceec2216 33317fi
a848cd7e 33318
a848cd7e 33319
ceec2216
RL
33320UNICODE=0
33321lib_unicode_suffix=
33322WX_CHARTYPE="ansi"
33323if test "$wxUSE_UNICODE" = "yes"; then
33324 lib_unicode_suffix=u
33325 WX_CHARTYPE="unicode"
33326 UNICODE=1
a848cd7e
SC
33327fi
33328
ceec2216
RL
33329lib_debug_suffix=
33330WX_DEBUGTYPE="release"
33331DEBUG_FLAG=0
33332if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33333 lib_debug_suffix=d
33334 WX_DEBUGTYPE="debug"
33335 DEBUG_FLAG=1
33336fi
a848cd7e 33337
ceec2216
RL
33338WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33339WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33340
ceec2216
RL
33341DEBUG_INFO=0
33342if test "$wxUSE_DEBUG_INFO" = "yes"; then
33343 DEBUG_INFO=1
33344fi
a848cd7e 33345
ceec2216 33346WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33347
ceec2216 33348TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33349
ceec2216 33350TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33351
ceec2216
RL
33352if test "$cross_compiling" = "yes"; then
33353 HOST_SUFFIX="-$host_alias"
33354 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33355 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33356fi
33357
dd21ced8 33358WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33359if test "${TOOLKIT_DIR}" = "os2"; then
33360 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33361else
33362 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33363fi
ceec2216
RL
33364
33365
33366
1d1af5ea
DE
33367if test "$wxUSE_COCOA" = 1; then
33368
33369
33370 ac_ext=c
33371ac_cpp='$CPP $CPPFLAGS'
33372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33374ac_compiler_gnu=$ac_cv_c_compiler_gnu
33375
33376ac_ext=m
33377
33378 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33379echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33380 cat >conftest.$ac_ext <<_ACEOF
33381/* confdefs.h. */
33382_ACEOF
33383cat confdefs.h >>conftest.$ac_ext
33384cat >>conftest.$ac_ext <<_ACEOF
33385/* end confdefs.h. */
33386#include <AppKit/NSEvent.h>
33387#include <CoreFoundation/CoreFoundation.h>
33388
33389int
33390main ()
33391{
33392
33393 ;
33394 return 0;
33395}
33396_ACEOF
33397rm -f conftest.$ac_objext
33398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33399 (eval $ac_compile) 2>conftest.er1
33400 ac_status=$?
33401 grep -v '^ *+' conftest.er1 >conftest.err
33402 rm -f conftest.er1
33403 cat conftest.err >&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
ca5c6ac3 33406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; } &&
33412 { ac_try='test -s conftest.$ac_objext'
33413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33414 (eval $ac_try) 2>&5
33415 ac_status=$?
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); }; }; then
33418 echo "$as_me:$LINENO: result: no" >&5
33419echo "${ECHO_T}no" >&6
33420else
33421 echo "$as_me: failed program was:" >&5
33422sed 's/^/| /' conftest.$ac_ext >&5
33423
33424echo "$as_me:$LINENO: result: yes" >&5
33425echo "${ECHO_T}yes" >&6
33426 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33427echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33428 cat >conftest.$ac_ext <<_ACEOF
33429/* confdefs.h. */
33430_ACEOF
33431cat confdefs.h >>conftest.$ac_ext
33432cat >>conftest.$ac_ext <<_ACEOF
33433/* end confdefs.h. */
33434#define __Point__ 1
33435#include <AppKit/NSEvent.h>
33436#include <CoreFoundation/CoreFoundation.h>
33437
33438int
33439main ()
33440{
33441
33442 ;
33443 return 0;
33444}
33445_ACEOF
33446rm -f conftest.$ac_objext
33447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33448 (eval $ac_compile) 2>conftest.er1
33449 ac_status=$?
33450 grep -v '^ *+' conftest.er1 >conftest.err
33451 rm -f conftest.er1
33452 cat conftest.err >&5
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); } &&
ca5c6ac3 33455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33457 (eval $ac_try) 2>&5
33458 ac_status=$?
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; } &&
33461 { ac_try='test -s conftest.$ac_objext'
33462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33463 (eval $ac_try) 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); }; }; then
33467 echo "$as_me:$LINENO: result: yes" >&5
33468echo "${ECHO_T}yes" >&6
33469 cat >>confdefs.h <<\_ACEOF
33470#define __Point__ 1
33471_ACEOF
33472
33473
33474else
33475 echo "$as_me: failed program was:" >&5
33476sed 's/^/| /' conftest.$ac_ext >&5
33477
33478{ { echo "$as_me:$LINENO: error: no
33479See \`config.log' for more details." >&5
33480echo "$as_me: error: no
33481See \`config.log' for more details." >&2;}
33482 { (exit 1); exit 1; }; }
33483
33484fi
33485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33486
33487fi
33488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33489 ac_ext=cc
33490ac_cpp='$CXXCPP $CPPFLAGS'
33491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33494
33495fi
33496
a848cd7e 33497if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33498 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33499 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33500
a848cd7e 33501 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33502
33503 # Extract the first word of "Rez", so it can be a program name with args.
33504set dummy Rez; ac_word=$2
33505echo "$as_me:$LINENO: checking for $ac_word" >&5
33506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33507if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33508 echo $ECHO_N "(cached) $ECHO_C" >&6
33509else
8ced02f6
DE
33510 if test -n "$REZ"; then
33511 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33512else
33513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33514for as_dir in $PATH
33515do
33516 IFS=$as_save_IFS
33517 test -z "$as_dir" && as_dir=.
33518 for ac_exec_ext in '' $ac_executable_extensions; do
33519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33520 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33522 break 2
33523 fi
33524done
33525done
33526
8ced02f6 33527 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33528fi
33529fi
8ced02f6
DE
33530REZ=$ac_cv_prog_REZ
33531if test -n "$REZ"; then
33532 echo "$as_me:$LINENO: result: $REZ" >&5
33533echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33534else
33535 echo "$as_me:$LINENO: result: no" >&5
33536echo "${ECHO_T}no" >&6
33537fi
33538
33539 # Extract the first word of "DeRez", so it can be a program name with args.
33540set dummy DeRez; ac_word=$2
33541echo "$as_me:$LINENO: checking for $ac_word" >&5
33542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33543if test "${ac_cv_prog_DEREZ+set}" = set; then
33544 echo $ECHO_N "(cached) $ECHO_C" >&6
33545else
33546 if test -n "$DEREZ"; then
33547 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33548else
33549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33550for as_dir in $PATH
33551do
33552 IFS=$as_save_IFS
33553 test -z "$as_dir" && as_dir=.
33554 for ac_exec_ext in '' $ac_executable_extensions; do
33555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33556 ac_cv_prog_DEREZ="DeRez"
33557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33558 break 2
33559 fi
33560done
33561done
33562
33563 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33564fi
33565fi
33566DEREZ=$ac_cv_prog_DEREZ
33567if test -n "$DEREZ"; then
33568 echo "$as_me:$LINENO: result: $DEREZ" >&5
33569echo "${ECHO_T}$DEREZ" >&6
33570else
33571 echo "$as_me:$LINENO: result: no" >&5
33572echo "${ECHO_T}no" >&6
33573fi
33574
33575 # Extract the first word of "SetFile", so it can be a program name with args.
33576set dummy SetFile; ac_word=$2
33577echo "$as_me:$LINENO: checking for $ac_word" >&5
33578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33579if test "${ac_cv_prog_SETFILE+set}" = set; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33581else
33582 if test -n "$SETFILE"; then
33583 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33584else
33585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33586for as_dir in $PATH
33587do
33588 IFS=$as_save_IFS
33589 test -z "$as_dir" && as_dir=.
33590 for ac_exec_ext in '' $ac_executable_extensions; do
33591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33592 ac_cv_prog_SETFILE="SetFile"
33593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33594 break 2
33595 fi
33596done
33597done
33598
33599 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33600fi
33601fi
33602SETFILE=$ac_cv_prog_SETFILE
33603if test -n "$SETFILE"; then
33604 echo "$as_me:$LINENO: result: $SETFILE" >&5
33605echo "${ECHO_T}$SETFILE" >&6
33606else
33607 echo "$as_me:$LINENO: result: no" >&5
33608echo "${ECHO_T}no" >&6
33609fi
33610
33611
33612 MACSETFILE="\$(SETFILE)"
33613
33614 if test "$wxUSE_MAC" = 1; then
8ced02f6 33615 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33616 RESCOMP="$REZ"
33617 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33618 else
004ee6da
RL
33619 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33620 RESCOMP="echo -n \| $REZ"
33621 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33622 fi
004ee6da 33623
a848cd7e 33624else
ffa0583f 33625 MACSETFILE="@true"
a848cd7e 33626
8ced02f6 33627 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33628 RESCOMP="emxbind"
33629 WXCONFIG_RESFLAGS="-ep"
33630
33631 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33632 else
8ced02f6 33633 POSTLINK_COMMAND="@true"
a848cd7e 33634 fi
004ee6da 33635
a848cd7e
SC
33636fi
33637
33638
33639
33640echo "$as_me:$LINENO: checking for mode_t" >&5
33641echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33642if test "${ac_cv_type_mode_t+set}" = set; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33644else
33645 cat >conftest.$ac_ext <<_ACEOF
33646/* confdefs.h. */
33647_ACEOF
33648cat confdefs.h >>conftest.$ac_ext
33649cat >>conftest.$ac_ext <<_ACEOF
33650/* end confdefs.h. */
33651$ac_includes_default
33652int
33653main ()
33654{
33655if ((mode_t *) 0)
33656 return 0;
33657if (sizeof (mode_t))
33658 return 0;
33659 ;
33660 return 0;
33661}
33662_ACEOF
33663rm -f conftest.$ac_objext
33664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33665 (eval $ac_compile) 2>conftest.er1
a848cd7e 33666 ac_status=$?
ac1cb8d3
VS
33667 grep -v '^ *+' conftest.er1 >conftest.err
33668 rm -f conftest.er1
33669 cat conftest.err >&5
a848cd7e
SC
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } &&
ca5c6ac3 33672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674 (eval $ac_try) 2>&5
33675 ac_status=$?
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; } &&
33678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 ac_cv_type_mode_t=yes
33685else
33686 echo "$as_me: failed program was:" >&5
33687sed 's/^/| /' conftest.$ac_ext >&5
33688
33689ac_cv_type_mode_t=no
33690fi
ac1cb8d3 33691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33692fi
33693echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33694echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33695if test $ac_cv_type_mode_t = yes; then
33696 :
33697else
33698
33699cat >>confdefs.h <<_ACEOF
33700#define mode_t int
33701_ACEOF
33702
33703fi
33704
33705echo "$as_me:$LINENO: checking for off_t" >&5
33706echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33707if test "${ac_cv_type_off_t+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709else
33710 cat >conftest.$ac_ext <<_ACEOF
33711/* confdefs.h. */
33712_ACEOF
33713cat confdefs.h >>conftest.$ac_ext
33714cat >>conftest.$ac_ext <<_ACEOF
33715/* end confdefs.h. */
33716$ac_includes_default
33717int
33718main ()
33719{
33720if ((off_t *) 0)
33721 return 0;
33722if (sizeof (off_t))
33723 return 0;
33724 ;
33725 return 0;
33726}
33727_ACEOF
33728rm -f conftest.$ac_objext
33729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33730 (eval $ac_compile) 2>conftest.er1
a848cd7e 33731 ac_status=$?
ac1cb8d3
VS
33732 grep -v '^ *+' conftest.er1 >conftest.err
33733 rm -f conftest.er1
33734 cat conftest.err >&5
a848cd7e
SC
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); } &&
ca5c6ac3 33737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33739 (eval $ac_try) 2>&5
33740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); }; } &&
33743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33749 ac_cv_type_off_t=yes
33750else
33751 echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
33753
33754ac_cv_type_off_t=no
33755fi
ac1cb8d3 33756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33757fi
33758echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33759echo "${ECHO_T}$ac_cv_type_off_t" >&6
33760if test $ac_cv_type_off_t = yes; then
33761 :
33762else
33763
33764cat >>confdefs.h <<_ACEOF
33765#define off_t long
33766_ACEOF
33767
33768fi
33769
33770echo "$as_me:$LINENO: checking for pid_t" >&5
33771echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33772if test "${ac_cv_type_pid_t+set}" = set; then
33773 echo $ECHO_N "(cached) $ECHO_C" >&6
33774else
33775 cat >conftest.$ac_ext <<_ACEOF
33776/* confdefs.h. */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h. */
33781$ac_includes_default
33782int
33783main ()
33784{
33785if ((pid_t *) 0)
33786 return 0;
33787if (sizeof (pid_t))
33788 return 0;
33789 ;
33790 return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext
33794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33795 (eval $ac_compile) 2>conftest.er1
a848cd7e 33796 ac_status=$?
ac1cb8d3
VS
33797 grep -v '^ *+' conftest.er1 >conftest.err
33798 rm -f conftest.er1
33799 cat conftest.err >&5
a848cd7e
SC
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
ca5c6ac3 33802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; } &&
33808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33811 ac_status=$?
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 ac_cv_type_pid_t=yes
33815else
33816 echo "$as_me: failed program was:" >&5
33817sed 's/^/| /' conftest.$ac_ext >&5
33818
33819ac_cv_type_pid_t=no
33820fi
ac1cb8d3 33821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33822fi
33823echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33824echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33825if test $ac_cv_type_pid_t = yes; then
33826 :
33827else
33828
33829cat >>confdefs.h <<_ACEOF
33830#define pid_t int
33831_ACEOF
33832
33833fi
33834
33835echo "$as_me:$LINENO: checking for size_t" >&5
33836echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33837if test "${ac_cv_type_size_t+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
33840 cat >conftest.$ac_ext <<_ACEOF
33841/* confdefs.h. */
33842_ACEOF
33843cat confdefs.h >>conftest.$ac_ext
33844cat >>conftest.$ac_ext <<_ACEOF
33845/* end confdefs.h. */
33846$ac_includes_default
33847int
33848main ()
33849{
33850if ((size_t *) 0)
33851 return 0;
33852if (sizeof (size_t))
33853 return 0;
33854 ;
33855 return 0;
33856}
33857_ACEOF
33858rm -f conftest.$ac_objext
33859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33860 (eval $ac_compile) 2>conftest.er1
a848cd7e 33861 ac_status=$?
ac1cb8d3
VS
33862 grep -v '^ *+' conftest.er1 >conftest.err
33863 rm -f conftest.er1
33864 cat conftest.err >&5
a848cd7e
SC
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); } &&
ca5c6ac3 33867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33870 ac_status=$?
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; } &&
33873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875 (eval $ac_try) 2>&5
33876 ac_status=$?
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; }; then
33879 ac_cv_type_size_t=yes
33880else
33881 echo "$as_me: failed program was:" >&5
33882sed 's/^/| /' conftest.$ac_ext >&5
33883
33884ac_cv_type_size_t=no
33885fi
ac1cb8d3 33886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33887fi
33888echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33889echo "${ECHO_T}$ac_cv_type_size_t" >&6
33890if test $ac_cv_type_size_t = yes; then
33891 :
33892else
33893
33894cat >>confdefs.h <<_ACEOF
33895#define size_t unsigned
33896_ACEOF
33897
33898fi
33899
33900echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33901echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33902if test "${ac_cv_type_uid_t+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904else
33905 cat >conftest.$ac_ext <<_ACEOF
33906/* confdefs.h. */
33907_ACEOF
33908cat confdefs.h >>conftest.$ac_ext
33909cat >>conftest.$ac_ext <<_ACEOF
33910/* end confdefs.h. */
33911#include <sys/types.h>
33912
33913_ACEOF
33914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33915 $EGREP "uid_t" >/dev/null 2>&1; then
33916 ac_cv_type_uid_t=yes
33917else
33918 ac_cv_type_uid_t=no
33919fi
33920rm -f conftest*
33921
33922fi
33923echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33924echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33925if test $ac_cv_type_uid_t = no; then
33926
33927cat >>confdefs.h <<\_ACEOF
33928#define uid_t int
33929_ACEOF
33930
33931
33932cat >>confdefs.h <<\_ACEOF
33933#define gid_t int
33934_ACEOF
33935
33936fi
33937
33938
d51253e8
RL
33939echo "$as_me:$LINENO: checking for ssize_t" >&5
33940echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33941if test "${ac_cv_type_ssize_t+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 cat >conftest.$ac_ext <<_ACEOF
33945/* confdefs.h. */
33946_ACEOF
33947cat confdefs.h >>conftest.$ac_ext
33948cat >>conftest.$ac_ext <<_ACEOF
33949/* end confdefs.h. */
33950$ac_includes_default
33951int
33952main ()
33953{
33954if ((ssize_t *) 0)
33955 return 0;
33956if (sizeof (ssize_t))
33957 return 0;
33958 ;
33959 return 0;
33960}
33961_ACEOF
33962rm -f conftest.$ac_objext
33963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33964 (eval $ac_compile) 2>conftest.er1
33965 ac_status=$?
33966 grep -v '^ *+' conftest.er1 >conftest.err
33967 rm -f conftest.er1
33968 cat conftest.err >&5
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); } &&
ca5c6ac3 33971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973 (eval $ac_try) 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; } &&
33977 { ac_try='test -s conftest.$ac_objext'
33978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979 (eval $ac_try) 2>&5
33980 ac_status=$?
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); }; }; then
33983 ac_cv_type_ssize_t=yes
33984else
33985 echo "$as_me: failed program was:" >&5
33986sed 's/^/| /' conftest.$ac_ext >&5
33987
33988ac_cv_type_ssize_t=no
33989fi
33990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33991fi
33992echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33993echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33994if test $ac_cv_type_ssize_t = yes; then
33995
33996cat >>confdefs.h <<_ACEOF
33997#define HAVE_SSIZE_T 1
33998_ACEOF
33999
34000
34001fi
34002
34003
a848cd7e
SC
34004echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34005echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34006if test "${wx_cv_size_t_is_uint+set}" = set; then
34007 echo $ECHO_N "(cached) $ECHO_C" >&6
34008else
34009
34010 cat >conftest.$ac_ext <<_ACEOF
34011/* confdefs.h. */
34012_ACEOF
34013cat confdefs.h >>conftest.$ac_ext
34014cat >>conftest.$ac_ext <<_ACEOF
34015/* end confdefs.h. */
34016#include <stddef.h>
34017int
34018main ()
34019{
34020
34021 return 0; }
34022
34023 struct Foo { void foo(size_t); void foo(unsigned int); };
34024
34025 int bar() {
34026
34027 ;
34028 return 0;
34029}
34030_ACEOF
34031rm -f conftest.$ac_objext
34032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34033 (eval $ac_compile) 2>conftest.er1
a848cd7e 34034 ac_status=$?
ac1cb8d3
VS
34035 grep -v '^ *+' conftest.er1 >conftest.err
34036 rm -f conftest.er1
34037 cat conftest.err >&5
a848cd7e
SC
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } &&
ca5c6ac3 34040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042 (eval $ac_try) 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; } &&
34046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 (eval $ac_try) 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 wx_cv_size_t_is_uint=no
34053else
34054 echo "$as_me: failed program was:" >&5
34055sed 's/^/| /' conftest.$ac_ext >&5
34056
34057wx_cv_size_t_is_uint=yes
34058
34059fi
ac1cb8d3 34060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34061
34062
34063fi
34064echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34065echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34066
34067if test "$wx_cv_size_t_is_uint" = "yes"; then
34068 cat >>confdefs.h <<\_ACEOF
34069#define wxSIZE_T_IS_UINT 1
34070_ACEOF
34071
34072else
34073 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34074echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34075if test "${wx_cv_size_t_is_ulong+set}" = set; then
34076 echo $ECHO_N "(cached) $ECHO_C" >&6
34077else
34078 cat >conftest.$ac_ext <<_ACEOF
34079/* confdefs.h. */
34080_ACEOF
34081cat confdefs.h >>conftest.$ac_ext
34082cat >>conftest.$ac_ext <<_ACEOF
34083/* end confdefs.h. */
34084#include <stddef.h>
34085int
34086main ()
34087{
34088
34089 return 0; }
34090
34091 struct Foo { void foo(size_t); void foo(unsigned long); };
34092
34093 int bar() {
34094
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext
34100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34101 (eval $ac_compile) 2>conftest.er1
a848cd7e 34102 ac_status=$?
ac1cb8d3
VS
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
a848cd7e
SC
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
ca5c6ac3 34108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 wx_cv_size_t_is_ulong=no
34121else
34122 echo "$as_me: failed program was:" >&5
34123sed 's/^/| /' conftest.$ac_ext >&5
34124
34125wx_cv_size_t_is_ulong=yes
34126
34127fi
ac1cb8d3 34128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34129
34130fi
34131echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34132echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34133
34134 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34135 cat >>confdefs.h <<\_ACEOF
34136#define wxSIZE_T_IS_ULONG 1
34137_ACEOF
34138
34139 fi
34140fi
34141
a848cd7e
SC
34142
34143echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34144echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34145if test "${wx_cv_struct_pw_gecos+set}" = set; then
34146 echo $ECHO_N "(cached) $ECHO_C" >&6
34147else
34148
34149 cat >conftest.$ac_ext <<_ACEOF
34150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
34155#include <pwd.h>
34156int
34157main ()
34158{
34159
34160 char *p;
34161 struct passwd *pw;
34162 p = pw->pw_gecos;
34163
34164 ;
34165 return 0;
34166}
34167_ACEOF
34168rm -f conftest.$ac_objext
34169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34170 (eval $ac_compile) 2>conftest.er1
a848cd7e 34171 ac_status=$?
ac1cb8d3
VS
34172 grep -v '^ *+' conftest.er1 >conftest.err
34173 rm -f conftest.er1
34174 cat conftest.err >&5
a848cd7e
SC
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); } &&
ca5c6ac3 34177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179 (eval $ac_try) 2>&5
34180 ac_status=$?
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; } &&
34183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34186 ac_status=$?
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; }; then
34189
34190 wx_cv_struct_pw_gecos=yes
34191
34192else
34193 echo "$as_me: failed program was:" >&5
34194sed 's/^/| /' conftest.$ac_ext >&5
34195
34196
34197 wx_cv_struct_pw_gecos=no
34198
34199
34200fi
ac1cb8d3 34201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34202
34203
34204fi
34205echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34206echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34207
34208if test "$wx_cv_struct_pw_gecos" = "yes"; then
34209 cat >>confdefs.h <<\_ACEOF
34210#define HAVE_PW_GECOS 1
34211_ACEOF
34212
34213fi
34214
34215
47a7e797 34216if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34217 cat >>confdefs.h <<\_ACEOF
34218#define wxUSE_WCHAR_T 1
34219_ACEOF
34220
34221
34222 WCSLEN_FOUND=0
34223 WCHAR_LINK=
34224
34225for ac_func in wcslen
34226do
34227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34228echo "$as_me:$LINENO: checking for $ac_func" >&5
34229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34230if eval "test \"\${$as_ac_var+set}\" = set"; then
34231 echo $ECHO_N "(cached) $ECHO_C" >&6
34232else
34233 cat >conftest.$ac_ext <<_ACEOF
34234/* confdefs.h. */
34235_ACEOF
34236cat confdefs.h >>conftest.$ac_ext
34237cat >>conftest.$ac_ext <<_ACEOF
34238/* end confdefs.h. */
ac1cb8d3
VS
34239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34241#define $ac_func innocuous_$ac_func
34242
a848cd7e
SC
34243/* System header to define __stub macros and hopefully few prototypes,
34244 which can conflict with char $ac_func (); below.
34245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34247
a848cd7e
SC
34248#ifdef __STDC__
34249# include <limits.h>
34250#else
34251# include <assert.h>
34252#endif
ac1cb8d3
VS
34253
34254#undef $ac_func
34255
a848cd7e
SC
34256/* Override any gcc2 internal prototype to avoid an error. */
34257#ifdef __cplusplus
34258extern "C"
34259{
34260#endif
34261/* We use char because int might match the return type of a gcc2
34262 builtin and then its argument prototype would still apply. */
34263char $ac_func ();
34264/* The GNU C library defines this for functions which it implements
34265 to always fail with ENOSYS. Some functions are actually named
34266 something starting with __ and the normal name is an alias. */
34267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34268choke me
34269#else
34270char (*f) () = $ac_func;
34271#endif
34272#ifdef __cplusplus
34273}
34274#endif
34275
34276int
34277main ()
34278{
34279return f != $ac_func;
34280 ;
34281 return 0;
34282}
34283_ACEOF
34284rm -f conftest.$ac_objext conftest$ac_exeext
34285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34286 (eval $ac_link) 2>conftest.er1
a848cd7e 34287 ac_status=$?
ac1cb8d3
VS
34288 grep -v '^ *+' conftest.er1 >conftest.err
34289 rm -f conftest.er1
34290 cat conftest.err >&5
a848cd7e
SC
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); } &&
ca5c6ac3 34293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34295 (eval $ac_try) 2>&5
34296 ac_status=$?
34297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34298 (exit $ac_status); }; } &&
34299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34301 (eval $ac_try) 2>&5
34302 ac_status=$?
34303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304 (exit $ac_status); }; }; then
34305 eval "$as_ac_var=yes"
34306else
34307 echo "$as_me: failed program was:" >&5
34308sed 's/^/| /' conftest.$ac_ext >&5
34309
34310eval "$as_ac_var=no"
34311fi
ac1cb8d3
VS
34312rm -f conftest.err conftest.$ac_objext \
34313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34314fi
34315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34317if test `eval echo '${'$as_ac_var'}'` = yes; then
34318 cat >>confdefs.h <<_ACEOF
34319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34320_ACEOF
34321 WCSLEN_FOUND=1
34322fi
34323done
34324
34325
34326 if test "$WCSLEN_FOUND" = 0; then
34327 if test "$TOOLKIT" = "MSW"; then
34328 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34329echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34330if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34331 echo $ECHO_N "(cached) $ECHO_C" >&6
34332else
34333 ac_check_lib_save_LIBS=$LIBS
34334LIBS="-lmsvcrt $LIBS"
34335cat >conftest.$ac_ext <<_ACEOF
34336/* confdefs.h. */
34337_ACEOF
34338cat confdefs.h >>conftest.$ac_ext
34339cat >>conftest.$ac_ext <<_ACEOF
34340/* end confdefs.h. */
34341
34342/* Override any gcc2 internal prototype to avoid an error. */
34343#ifdef __cplusplus
34344extern "C"
34345#endif
34346/* We use char because int might match the return type of a gcc2
34347 builtin and then its argument prototype would still apply. */
34348char wcslen ();
34349int
34350main ()
34351{
34352wcslen ();
34353 ;
34354 return 0;
34355}
34356_ACEOF
34357rm -f conftest.$ac_objext conftest$ac_exeext
34358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34359 (eval $ac_link) 2>conftest.er1
a848cd7e 34360 ac_status=$?
ac1cb8d3
VS
34361 grep -v '^ *+' conftest.er1 >conftest.err
34362 rm -f conftest.er1
34363 cat conftest.err >&5
a848cd7e
SC
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); } &&
ca5c6ac3 34366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; } &&
34372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
34378 ac_cv_lib_msvcrt_wcslen=yes
34379else
34380 echo "$as_me: failed program was:" >&5
34381sed 's/^/| /' conftest.$ac_ext >&5
34382
34383ac_cv_lib_msvcrt_wcslen=no
34384fi
ac1cb8d3
VS
34385rm -f conftest.err conftest.$ac_objext \
34386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34387LIBS=$ac_check_lib_save_LIBS
34388fi
34389echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34390echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34391if test $ac_cv_lib_msvcrt_wcslen = yes; then
34392 WCHAR_OK=1
34393fi
34394
34395 else
34396 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34397echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34398if test "${ac_cv_lib_w_wcslen+set}" = set; then
34399 echo $ECHO_N "(cached) $ECHO_C" >&6
34400else
34401 ac_check_lib_save_LIBS=$LIBS
34402LIBS="-lw $LIBS"
34403cat >conftest.$ac_ext <<_ACEOF
34404/* confdefs.h. */
34405_ACEOF
34406cat confdefs.h >>conftest.$ac_ext
34407cat >>conftest.$ac_ext <<_ACEOF
34408/* end confdefs.h. */
34409
34410/* Override any gcc2 internal prototype to avoid an error. */
34411#ifdef __cplusplus
34412extern "C"
34413#endif
34414/* We use char because int might match the return type of a gcc2
34415 builtin and then its argument prototype would still apply. */
34416char wcslen ();
34417int
34418main ()
34419{
34420wcslen ();
34421 ;
34422 return 0;
34423}
34424_ACEOF
34425rm -f conftest.$ac_objext conftest$ac_exeext
34426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34427 (eval $ac_link) 2>conftest.er1
a848cd7e 34428 ac_status=$?
ac1cb8d3
VS
34429 grep -v '^ *+' conftest.er1 >conftest.err
34430 rm -f conftest.er1
34431 cat conftest.err >&5
a848cd7e
SC
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
ca5c6ac3 34434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; } &&
34440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34442 (eval $ac_try) 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; }; then
34446 ac_cv_lib_w_wcslen=yes
34447else
34448 echo "$as_me: failed program was:" >&5
34449sed 's/^/| /' conftest.$ac_ext >&5
34450
34451ac_cv_lib_w_wcslen=no
34452fi
ac1cb8d3
VS
34453rm -f conftest.err conftest.$ac_objext \
34454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34455LIBS=$ac_check_lib_save_LIBS
34456fi
34457echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34458echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34459if test $ac_cv_lib_w_wcslen = yes; then
34460
34461 WCHAR_LINK=" -lw"
34462 WCSLEN_FOUND=1
34463
34464fi
34465
34466 fi
34467 fi
34468
34469 if test "$WCSLEN_FOUND" = 1; then
34470 cat >>confdefs.h <<\_ACEOF
34471#define HAVE_WCSLEN 1
34472_ACEOF
34473
34474 fi
34475
efdf6afe 34476 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34477 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34478 fi
34479
efdf6afe
VZ
34480 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34481echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34482if test "${ac_cv_type_mbstate_t+set}" = set; then
34483 echo $ECHO_N "(cached) $ECHO_C" >&6
34484else
34485 cat >conftest.$ac_ext <<_ACEOF
34486/* confdefs.h. */
34487_ACEOF
34488cat confdefs.h >>conftest.$ac_ext
34489cat >>conftest.$ac_ext <<_ACEOF
34490/* end confdefs.h. */
34491#include <wchar.h>
34492
34493int
34494main ()
34495{
34496if ((mbstate_t *) 0)
34497 return 0;
34498if (sizeof (mbstate_t))
34499 return 0;
34500 ;
34501 return 0;
34502}
34503_ACEOF
34504rm -f conftest.$ac_objext
34505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34506 (eval $ac_compile) 2>conftest.er1
34507 ac_status=$?
34508 grep -v '^ *+' conftest.er1 >conftest.err
34509 rm -f conftest.er1
34510 cat conftest.err >&5
34511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); } &&
ca5c6ac3 34513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515 (eval $ac_try) 2>&5
34516 ac_status=$?
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); }; } &&
34519 { ac_try='test -s conftest.$ac_objext'
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; }; then
34525 ac_cv_type_mbstate_t=yes
34526else
34527 echo "$as_me: failed program was:" >&5
34528sed 's/^/| /' conftest.$ac_ext >&5
34529
34530ac_cv_type_mbstate_t=no
34531fi
34532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34533fi
34534echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34535echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34536if test $ac_cv_type_mbstate_t = yes; then
34537
34538cat >>confdefs.h <<_ACEOF
34539#define HAVE_MBSTATE_T 1
34540_ACEOF
34541
a848cd7e
SC
34542
34543for ac_func in wcsrtombs
34544do
34545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34546echo "$as_me:$LINENO: checking for $ac_func" >&5
34547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34548if eval "test \"\${$as_ac_var+set}\" = set"; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
34550else
34551 cat >conftest.$ac_ext <<_ACEOF
34552/* confdefs.h. */
34553_ACEOF
34554cat confdefs.h >>conftest.$ac_ext
34555cat >>conftest.$ac_ext <<_ACEOF
34556/* end confdefs.h. */
ac1cb8d3
VS
34557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34559#define $ac_func innocuous_$ac_func
34560
a848cd7e
SC
34561/* System header to define __stub macros and hopefully few prototypes,
34562 which can conflict with char $ac_func (); below.
34563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34565
a848cd7e
SC
34566#ifdef __STDC__
34567# include <limits.h>
34568#else
34569# include <assert.h>
34570#endif
ac1cb8d3
VS
34571
34572#undef $ac_func
34573
a848cd7e
SC
34574/* Override any gcc2 internal prototype to avoid an error. */
34575#ifdef __cplusplus
34576extern "C"
34577{
34578#endif
34579/* We use char because int might match the return type of a gcc2
34580 builtin and then its argument prototype would still apply. */
34581char $ac_func ();
34582/* The GNU C library defines this for functions which it implements
34583 to always fail with ENOSYS. Some functions are actually named
34584 something starting with __ and the normal name is an alias. */
34585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34586choke me
34587#else
34588char (*f) () = $ac_func;
34589#endif
34590#ifdef __cplusplus
34591}
34592#endif
34593
34594int
34595main ()
34596{
34597return f != $ac_func;
34598 ;
34599 return 0;
34600}
34601_ACEOF
34602rm -f conftest.$ac_objext conftest$ac_exeext
34603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34604 (eval $ac_link) 2>conftest.er1
a848cd7e 34605 ac_status=$?
ac1cb8d3
VS
34606 grep -v '^ *+' conftest.er1 >conftest.err
34607 rm -f conftest.er1
34608 cat conftest.err >&5
a848cd7e
SC
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
ca5c6ac3 34611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; }; then
34623 eval "$as_ac_var=yes"
34624else
34625 echo "$as_me: failed program was:" >&5
34626sed 's/^/| /' conftest.$ac_ext >&5
34627
34628eval "$as_ac_var=no"
34629fi
ac1cb8d3
VS
34630rm -f conftest.err conftest.$ac_objext \
34631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34632fi
34633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34635if test `eval echo '${'$as_ac_var'}'` = yes; then
34636 cat >>confdefs.h <<_ACEOF
34637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34638_ACEOF
34639
34640fi
34641done
34642
efdf6afe
VZ
34643fi
34644
a848cd7e
SC
34645else
34646 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34647echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34648fi
34649
a848cd7e 34650
4a767dd5
VZ
34651
34652for ac_func in snprintf vsnprintf
a848cd7e
SC
34653do
34654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34655echo "$as_me:$LINENO: checking for $ac_func" >&5
34656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34657if eval "test \"\${$as_ac_var+set}\" = set"; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659else
34660 cat >conftest.$ac_ext <<_ACEOF
34661/* confdefs.h. */
34662_ACEOF
34663cat confdefs.h >>conftest.$ac_ext
34664cat >>conftest.$ac_ext <<_ACEOF
34665/* end confdefs.h. */
ac1cb8d3
VS
34666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34668#define $ac_func innocuous_$ac_func
34669
a848cd7e
SC
34670/* System header to define __stub macros and hopefully few prototypes,
34671 which can conflict with char $ac_func (); below.
34672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34673 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34674
a848cd7e
SC
34675#ifdef __STDC__
34676# include <limits.h>
34677#else
34678# include <assert.h>
34679#endif
ac1cb8d3
VS
34680
34681#undef $ac_func
34682
a848cd7e
SC
34683/* Override any gcc2 internal prototype to avoid an error. */
34684#ifdef __cplusplus
34685extern "C"
34686{
34687#endif
34688/* We use char because int might match the return type of a gcc2
34689 builtin and then its argument prototype would still apply. */
34690char $ac_func ();
34691/* The GNU C library defines this for functions which it implements
34692 to always fail with ENOSYS. Some functions are actually named
34693 something starting with __ and the normal name is an alias. */
34694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34695choke me
34696#else
34697char (*f) () = $ac_func;
34698#endif
34699#ifdef __cplusplus
34700}
34701#endif
34702
34703int
34704main ()
34705{
34706return f != $ac_func;
34707 ;
34708 return 0;
34709}
34710_ACEOF
34711rm -f conftest.$ac_objext conftest$ac_exeext
34712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34713 (eval $ac_link) 2>conftest.er1
a848cd7e 34714 ac_status=$?
ac1cb8d3
VS
34715 grep -v '^ *+' conftest.er1 >conftest.err
34716 rm -f conftest.er1
34717 cat conftest.err >&5
a848cd7e
SC
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } &&
ca5c6ac3 34720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722 (eval $ac_try) 2>&5
34723 ac_status=$?
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; } &&
34726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728 (eval $ac_try) 2>&5
34729 ac_status=$?
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); }; }; then
34732 eval "$as_ac_var=yes"
34733else
34734 echo "$as_me: failed program was:" >&5
34735sed 's/^/| /' conftest.$ac_ext >&5
34736
34737eval "$as_ac_var=no"
34738fi
ac1cb8d3
VS
34739rm -f conftest.err conftest.$ac_objext \
34740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34741fi
34742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34744if test `eval echo '${'$as_ac_var'}'` = yes; then
34745 cat >>confdefs.h <<_ACEOF
34746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34747_ACEOF
34748
34749fi
34750done
34751
34752
34753if test "$ac_cv_func_vsnprintf" = "yes"; then
34754 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34755echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34756if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34757 echo $ECHO_N "(cached) $ECHO_C" >&6
34758else
34759
efdf6afe 34760 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34761/* confdefs.h. */
34762_ACEOF
34763cat confdefs.h >>conftest.$ac_ext
34764cat >>conftest.$ac_ext <<_ACEOF
34765/* end confdefs.h. */
34766
34767 #include <stdio.h>
34768 #include <stdarg.h>
efdf6afe
VZ
34769 #ifdef __MSL__
34770 #if __MSL__ >= 0x6000
34771 namespace std {}
34772 using namespace std;
34773 #endif
34774 #endif
a848cd7e
SC
34775
34776int
34777main ()
34778{
34779
34780 char *buf;
34781 va_list ap;
62fa8b3a 34782 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34783
34784 ;
34785 return 0;
34786}
34787_ACEOF
34788rm -f conftest.$ac_objext
34789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34790 (eval $ac_compile) 2>conftest.er1
34791 ac_status=$?
34792 grep -v '^ *+' conftest.er1 >conftest.err
34793 rm -f conftest.er1
34794 cat conftest.err >&5
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); } &&
ca5c6ac3 34797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; } &&
34803 { ac_try='test -s conftest.$ac_objext'
34804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805 (eval $ac_try) 2>&5
34806 ac_status=$?
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); }; }; then
34809 wx_cv_func_vsnprintf_decl=yes
34810else
34811 echo "$as_me: failed program was:" >&5
34812sed 's/^/| /' conftest.$ac_ext >&5
34813
a848cd7e
SC
34814wx_cv_func_vsnprintf_decl=no
34815
34816fi
ac1cb8d3 34817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34818
34819
34820fi
34821echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34822echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34823
34824 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34825 cat >>confdefs.h <<\_ACEOF
34826#define HAVE_VSNPRINTF_DECL 1
34827_ACEOF
34828
62fa8b3a
MW
34829
34830 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34831echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34832if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34833 echo $ECHO_N "(cached) $ECHO_C" >&6
34834else
34835
34836 cat >conftest.$ac_ext <<_ACEOF
34837/* confdefs.h. */
34838_ACEOF
34839cat confdefs.h >>conftest.$ac_ext
34840cat >>conftest.$ac_ext <<_ACEOF
34841/* end confdefs.h. */
34842
34843 #include <stdio.h>
34844 #include <stdarg.h>
34845 #ifdef __MSL__
34846 #if __MSL__ >= 0x6000
34847 namespace std {}
34848 using namespace std;
34849 #endif
34850 #endif
34851
34852int
34853main ()
34854{
34855
34856 char *buf;
34857 va_list ap;
34858 const char *fmt = "%s";
34859 vsnprintf(buf, 10u, fmt, ap);
34860
34861 ;
34862 return 0;
34863}
34864_ACEOF
34865rm -f conftest.$ac_objext
34866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867 (eval $ac_compile) 2>conftest.er1
34868 ac_status=$?
34869 grep -v '^ *+' conftest.er1 >conftest.err
34870 rm -f conftest.er1
34871 cat conftest.err >&5
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); } &&
ca5c6ac3 34874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 (eval $ac_try) 2>&5
34877 ac_status=$?
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); }; } &&
34880 { ac_try='test -s conftest.$ac_objext'
34881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882 (eval $ac_try) 2>&5
34883 ac_status=$?
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); }; }; then
34886 wx_cv_func_broken_vsnprintf_decl=no
34887else
34888 echo "$as_me: failed program was:" >&5
34889sed 's/^/| /' conftest.$ac_ext >&5
34890
34891wx_cv_func_broken_vsnprintf_decl=yes
34892
34893fi
34894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34895
34896
34897fi
34898echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34899echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34900
34901 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34902 cat >>confdefs.h <<\_ACEOF
34903#define HAVE_BROKEN_VSNPRINTF_DECL 1
34904_ACEOF
34905
34906 fi
a848cd7e
SC
34907 fi
34908fi
34909
4a767dd5
VZ
34910if test "$ac_cv_func_snprintf" = "yes"; then
34911 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34912echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34913if test "${wx_cv_func_snprintf_decl+set}" = set; then
34914 echo $ECHO_N "(cached) $ECHO_C" >&6
34915else
34916
34917 cat >conftest.$ac_ext <<_ACEOF
34918/* confdefs.h. */
34919_ACEOF
34920cat confdefs.h >>conftest.$ac_ext
34921cat >>conftest.$ac_ext <<_ACEOF
34922/* end confdefs.h. */
34923
34924 #include <stdio.h>
34925 #include <stdarg.h>
34926 #ifdef __MSL__
34927 #if __MSL__ >= 0x6000
34928 namespace std {}
34929 using namespace std;
34930 #endif
34931 #endif
34932
34933int
34934main ()
34935{
34936
34937 char *buf;
62fa8b3a 34938 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34939
34940 ;
34941 return 0;
34942}
34943_ACEOF
34944rm -f conftest.$ac_objext
34945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34946 (eval $ac_compile) 2>conftest.er1
34947 ac_status=$?
34948 grep -v '^ *+' conftest.er1 >conftest.err
34949 rm -f conftest.er1
34950 cat conftest.err >&5
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); } &&
ca5c6ac3 34953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest.$ac_objext'
34960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961 (eval $ac_try) 2>&5
34962 ac_status=$?
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); }; }; then
34965 wx_cv_func_snprintf_decl=yes
34966else
34967 echo "$as_me: failed program was:" >&5
34968sed 's/^/| /' conftest.$ac_ext >&5
34969
34970wx_cv_func_snprintf_decl=no
34971
34972fi
34973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34974
34975
34976fi
34977echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34978echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34979
34980 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34981 cat >>confdefs.h <<\_ACEOF
34982#define HAVE_SNPRINTF_DECL 1
34983_ACEOF
34984
62fa8b3a
MW
34985
34986 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34987echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34988if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34989 echo $ECHO_N "(cached) $ECHO_C" >&6
34990else
34991
34992 cat >conftest.$ac_ext <<_ACEOF
34993/* confdefs.h. */
34994_ACEOF
34995cat confdefs.h >>conftest.$ac_ext
34996cat >>conftest.$ac_ext <<_ACEOF
34997/* end confdefs.h. */
34998
34999 #include <stdio.h>
35000 #include <stdarg.h>
35001 #ifdef __MSL__
35002 #if __MSL__ >= 0x6000
35003 namespace std {}
35004 using namespace std;
35005 #endif
35006 #endif
35007
35008int
35009main ()
35010{
35011
35012 char *buf;
35013 const char *fmt = "%s";
35014 snprintf(buf, 10u, fmt, "wx");
35015
35016 ;
35017 return 0;
35018}
35019_ACEOF
35020rm -f conftest.$ac_objext
35021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35022 (eval $ac_compile) 2>conftest.er1
35023 ac_status=$?
35024 grep -v '^ *+' conftest.er1 >conftest.err
35025 rm -f conftest.er1
35026 cat conftest.err >&5
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); } &&
ca5c6ac3 35029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031 (eval $ac_try) 2>&5
35032 ac_status=$?
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest.$ac_objext'
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35038 ac_status=$?
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; }; then
35041 wx_cv_func_broken_snprintf_decl=no
35042else
35043 echo "$as_me: failed program was:" >&5
35044sed 's/^/| /' conftest.$ac_ext >&5
35045
35046wx_cv_func_broken_snprintf_decl=yes
35047
35048fi
35049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35050
35051
35052fi
35053echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35054echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35055
35056 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35057 cat >>confdefs.h <<\_ACEOF
35058#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35059_ACEOF
35060
35061 fi
35062 fi
35063
35064 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35065
35066 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35067echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35068if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35070else
35071
35072 if test "$cross_compiling" = yes; then
5039a2df
VZ
35073
35074 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35075define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35076echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35077define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35078 wx_cv_func_snprintf_pos_params=no
35079
35080
8b6682b9
JS
35081else
35082 cat >conftest.$ac_ext <<_ACEOF
35083/* confdefs.h. */
35084_ACEOF
35085cat confdefs.h >>conftest.$ac_ext
35086cat >>conftest.$ac_ext <<_ACEOF
35087/* end confdefs.h. */
35088
35089 #include <stdio.h>
35090
35091 int main (void)
35092 {
35093 char buffer[128];
35094 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35095 if (strcmp ("2 3 1", buffer) == 0)
35096 exit (0);
35097 exit (1);
35098 }
35099
35100_ACEOF
35101rm -f conftest$ac_exeext
35102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35103 (eval $ac_link) 2>&5
35104 ac_status=$?
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 wx_cv_func_snprintf_pos_params=no
35113else
35114 echo "$as_me: program exited with status $ac_status" >&5
35115echo "$as_me: failed program was:" >&5
35116sed 's/^/| /' conftest.$ac_ext >&5
35117
35118( exit $ac_status )
35119wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35120fi
35121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35122fi
35123
35124
35125fi
35126echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35127echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35128
35129 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35130 cat >>confdefs.h <<\_ACEOF
35131#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35132_ACEOF
35133
35134 fi
4a767dd5
VZ
35135 fi
35136fi
35137
a848cd7e
SC
35138if test "$wxUSE_UNICODE" = yes; then
35139
35140
6a5c9b3f
RR
35141for ac_func in swprintf
35142do
35143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35144echo "$as_me:$LINENO: checking for $ac_func" >&5
35145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35146if eval "test \"\${$as_ac_var+set}\" = set"; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35148else
35149 cat >conftest.$ac_ext <<_ACEOF
35150/* confdefs.h. */
35151_ACEOF
35152cat confdefs.h >>conftest.$ac_ext
35153cat >>conftest.$ac_ext <<_ACEOF
35154/* end confdefs.h. */
35155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35157#define $ac_func innocuous_$ac_func
35158
35159/* System header to define __stub macros and hopefully few prototypes,
35160 which can conflict with char $ac_func (); below.
35161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35162 <limits.h> exists even on freestanding compilers. */
35163
35164#ifdef __STDC__
35165# include <limits.h>
35166#else
35167# include <assert.h>
35168#endif
35169
35170#undef $ac_func
35171
35172/* Override any gcc2 internal prototype to avoid an error. */
35173#ifdef __cplusplus
35174extern "C"
35175{
35176#endif
35177/* We use char because int might match the return type of a gcc2
35178 builtin and then its argument prototype would still apply. */
35179char $ac_func ();
35180/* The GNU C library defines this for functions which it implements
35181 to always fail with ENOSYS. Some functions are actually named
35182 something starting with __ and the normal name is an alias. */
35183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35184choke me
35185#else
35186char (*f) () = $ac_func;
35187#endif
35188#ifdef __cplusplus
35189}
35190#endif
35191
35192int
35193main ()
35194{
35195return f != $ac_func;
35196 ;
35197 return 0;
35198}
35199_ACEOF
35200rm -f conftest.$ac_objext conftest$ac_exeext
35201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35202 (eval $ac_link) 2>conftest.er1
35203 ac_status=$?
35204 grep -v '^ *+' conftest.er1 >conftest.err
35205 rm -f conftest.er1
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } &&
ca5c6ac3 35209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35211 (eval $ac_try) 2>&5
35212 ac_status=$?
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); }; } &&
35215 { ac_try='test -s conftest$ac_exeext'
35216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35217 (eval $ac_try) 2>&5
35218 ac_status=$?
35219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); }; }; then
35221 eval "$as_ac_var=yes"
35222else
35223 echo "$as_me: failed program was:" >&5
35224sed 's/^/| /' conftest.$ac_ext >&5
35225
35226eval "$as_ac_var=no"
35227fi
35228rm -f conftest.err conftest.$ac_objext \
35229 conftest$ac_exeext conftest.$ac_ext
35230fi
35231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35233if test `eval echo '${'$as_ac_var'}'` = yes; then
35234 cat >>confdefs.h <<_ACEOF
35235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35236_ACEOF
35237
35238fi
35239done
35240
35241
35242 if test "$ac_cv_func_swprintf" = "yes"; then
35243 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35244echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35245if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35246 echo $ECHO_N "(cached) $ECHO_C" >&6
35247else
35248
35249 cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h. */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h. */
35255
35256 #include <stdio.h>
35257 #include <stdarg.h>
35258 #include <wchar.h>
35259
35260int
35261main ()
35262{
35263
35264 wchar_t *buf;
35265 const wchar_t *fmt = L"test";
35266 swprintf(buf, 10u, fmt);
35267
35268 ;
35269 return 0;
35270}
35271_ACEOF
35272rm -f conftest.$ac_objext
35273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35274 (eval $ac_compile) 2>conftest.er1
35275 ac_status=$?
35276 grep -v '^ *+' conftest.er1 >conftest.err
35277 rm -f conftest.er1
35278 cat conftest.err >&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } &&
ca5c6ac3 35281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 (eval $ac_try) 2>&5
35284 ac_status=$?
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); }; } &&
35287 { ac_try='test -s conftest.$ac_objext'
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; }; then
35293 wx_cv_func_broken_swprintf_decl=no
35294else
35295 echo "$as_me: failed program was:" >&5
35296sed 's/^/| /' conftest.$ac_ext >&5
35297
35298wx_cv_func_broken_swprintf_decl=yes
35299
35300fi
35301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35302
35303
35304fi
35305echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35306echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35307
35308 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35309 cat >>confdefs.h <<\_ACEOF
35310#define HAVE_BROKEN_SWPRINTF_DECL 1
35311_ACEOF
35312
35313 fi
35314 fi
35315
35316
35317
a848cd7e 35318
fbe47c7b
VS
35319
35320
35321
35322for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35323do
35324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35325echo "$as_me:$LINENO: checking for $ac_func" >&5
35326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35327if eval "test \"\${$as_ac_var+set}\" = set"; then
35328 echo $ECHO_N "(cached) $ECHO_C" >&6
35329else
35330 cat >conftest.$ac_ext <<_ACEOF
35331/* confdefs.h. */
35332_ACEOF
35333cat confdefs.h >>conftest.$ac_ext
35334cat >>conftest.$ac_ext <<_ACEOF
35335/* end confdefs.h. */
ac1cb8d3
VS
35336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35338#define $ac_func innocuous_$ac_func
35339
a848cd7e
SC
35340/* System header to define __stub macros and hopefully few prototypes,
35341 which can conflict with char $ac_func (); below.
35342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35343 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35344
a848cd7e
SC
35345#ifdef __STDC__
35346# include <limits.h>
35347#else
35348# include <assert.h>
35349#endif
ac1cb8d3
VS
35350
35351#undef $ac_func
35352
a848cd7e
SC
35353/* Override any gcc2 internal prototype to avoid an error. */
35354#ifdef __cplusplus
35355extern "C"
35356{
35357#endif
35358/* We use char because int might match the return type of a gcc2
35359 builtin and then its argument prototype would still apply. */
35360char $ac_func ();
35361/* The GNU C library defines this for functions which it implements
35362 to always fail with ENOSYS. Some functions are actually named
35363 something starting with __ and the normal name is an alias. */
35364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35365choke me
35366#else
35367char (*f) () = $ac_func;
35368#endif
35369#ifdef __cplusplus
35370}
35371#endif
35372
35373int
35374main ()
35375{
35376return f != $ac_func;
35377 ;
35378 return 0;
35379}
35380_ACEOF
35381rm -f conftest.$ac_objext conftest$ac_exeext
35382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35383 (eval $ac_link) 2>conftest.er1
a848cd7e 35384 ac_status=$?
ac1cb8d3
VS
35385 grep -v '^ *+' conftest.er1 >conftest.err
35386 rm -f conftest.er1
35387 cat conftest.err >&5
a848cd7e
SC
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); } &&
ca5c6ac3 35390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35393 ac_status=$?
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; } &&
35396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35399 ac_status=$?
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; }; then
35402 eval "$as_ac_var=yes"
35403else
35404 echo "$as_me: failed program was:" >&5
35405sed 's/^/| /' conftest.$ac_ext >&5
35406
35407eval "$as_ac_var=no"
35408fi
ac1cb8d3
VS
35409rm -f conftest.err conftest.$ac_objext \
35410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35411fi
35412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35414if test `eval echo '${'$as_ac_var'}'` = yes; then
35415 cat >>confdefs.h <<_ACEOF
35416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35417_ACEOF
35418
35419fi
35420done
35421
35422
35423 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35424echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35425 cat >conftest.$ac_ext <<_ACEOF
35426/* confdefs.h. */
35427_ACEOF
35428cat confdefs.h >>conftest.$ac_ext
35429cat >>conftest.$ac_ext <<_ACEOF
35430/* end confdefs.h. */
35431#include <wchar.h>
35432int
35433main ()
35434{
35435&_vsnwprintf;
35436 ;
35437 return 0;
35438}
35439_ACEOF
35440rm -f conftest.$ac_objext
35441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35442 (eval $ac_compile) 2>conftest.er1
a848cd7e 35443 ac_status=$?
ac1cb8d3
VS
35444 grep -v '^ *+' conftest.er1 >conftest.err
35445 rm -f conftest.er1
35446 cat conftest.err >&5
a848cd7e
SC
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); } &&
ca5c6ac3 35449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451 (eval $ac_try) 2>&5
35452 ac_status=$?
35453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454 (exit $ac_status); }; } &&
35455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35457 (eval $ac_try) 2>&5
35458 ac_status=$?
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); }; }; then
35461 echo "$as_me:$LINENO: result: yes" >&5
35462echo "${ECHO_T}yes" >&6
35463 cat >>confdefs.h <<\_ACEOF
35464#define HAVE__VSNWPRINTF 1
35465_ACEOF
35466
35467else
35468 echo "$as_me: failed program was:" >&5
35469sed 's/^/| /' conftest.$ac_ext >&5
35470
35471echo "$as_me:$LINENO: result: no" >&5
35472echo "${ECHO_T}no" >&6
35473fi
ac1cb8d3 35474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35475fi
35476
6ebeb4c7
VZ
35477if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35478
35479for ac_func in fnmatch
35480do
35481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35482echo "$as_me:$LINENO: checking for $ac_func" >&5
35483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35484if eval "test \"\${$as_ac_var+set}\" = set"; then
35485 echo $ECHO_N "(cached) $ECHO_C" >&6
35486else
35487 cat >conftest.$ac_ext <<_ACEOF
35488/* confdefs.h. */
35489_ACEOF
35490cat confdefs.h >>conftest.$ac_ext
35491cat >>conftest.$ac_ext <<_ACEOF
35492/* end confdefs.h. */
35493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35495#define $ac_func innocuous_$ac_func
35496
35497/* System header to define __stub macros and hopefully few prototypes,
35498 which can conflict with char $ac_func (); below.
35499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35500 <limits.h> exists even on freestanding compilers. */
35501
35502#ifdef __STDC__
35503# include <limits.h>
35504#else
35505# include <assert.h>
35506#endif
35507
35508#undef $ac_func
35509
35510/* Override any gcc2 internal prototype to avoid an error. */
35511#ifdef __cplusplus
35512extern "C"
35513{
35514#endif
35515/* We use char because int might match the return type of a gcc2
35516 builtin and then its argument prototype would still apply. */
35517char $ac_func ();
35518/* The GNU C library defines this for functions which it implements
35519 to always fail with ENOSYS. Some functions are actually named
35520 something starting with __ and the normal name is an alias. */
35521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35522choke me
35523#else
35524char (*f) () = $ac_func;
35525#endif
35526#ifdef __cplusplus
35527}
35528#endif
35529
35530int
35531main ()
35532{
35533return f != $ac_func;
35534 ;
35535 return 0;
35536}
35537_ACEOF
35538rm -f conftest.$ac_objext conftest$ac_exeext
35539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35540 (eval $ac_link) 2>conftest.er1
35541 ac_status=$?
35542 grep -v '^ *+' conftest.er1 >conftest.err
35543 rm -f conftest.er1
35544 cat conftest.err >&5
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); } &&
ca5c6ac3 35547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549 (eval $ac_try) 2>&5
35550 ac_status=$?
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); }; } &&
35553 { ac_try='test -s conftest$ac_exeext'
35554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); }; }; then
35559 eval "$as_ac_var=yes"
35560else
35561 echo "$as_me: failed program was:" >&5
35562sed 's/^/| /' conftest.$ac_ext >&5
35563
35564eval "$as_ac_var=no"
35565fi
35566rm -f conftest.err conftest.$ac_objext \
35567 conftest$ac_exeext conftest.$ac_ext
35568fi
35569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35571if test `eval echo '${'$as_ac_var'}'` = yes; then
35572 cat >>confdefs.h <<_ACEOF
35573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35574_ACEOF
35575
35576fi
35577done
35578
35579fi
35580
35581if test "$wxUSE_FILE" = "yes"; then
35582
35583for ac_func in fsync
35584do
35585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35586echo "$as_me:$LINENO: checking for $ac_func" >&5
35587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35588if eval "test \"\${$as_ac_var+set}\" = set"; then
35589 echo $ECHO_N "(cached) $ECHO_C" >&6
35590else
35591 cat >conftest.$ac_ext <<_ACEOF
35592/* confdefs.h. */
35593_ACEOF
35594cat confdefs.h >>conftest.$ac_ext
35595cat >>conftest.$ac_ext <<_ACEOF
35596/* end confdefs.h. */
35597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35599#define $ac_func innocuous_$ac_func
35600
35601/* System header to define __stub macros and hopefully few prototypes,
35602 which can conflict with char $ac_func (); below.
35603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35604 <limits.h> exists even on freestanding compilers. */
35605
35606#ifdef __STDC__
35607# include <limits.h>
35608#else
35609# include <assert.h>
35610#endif
35611
35612#undef $ac_func
35613
35614/* Override any gcc2 internal prototype to avoid an error. */
35615#ifdef __cplusplus
35616extern "C"
35617{
35618#endif
35619/* We use char because int might match the return type of a gcc2
35620 builtin and then its argument prototype would still apply. */
35621char $ac_func ();
35622/* The GNU C library defines this for functions which it implements
35623 to always fail with ENOSYS. Some functions are actually named
35624 something starting with __ and the normal name is an alias. */
35625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35626choke me
35627#else
35628char (*f) () = $ac_func;
35629#endif
35630#ifdef __cplusplus
35631}
35632#endif
35633
35634int
35635main ()
35636{
35637return f != $ac_func;
35638 ;
35639 return 0;
35640}
35641_ACEOF
35642rm -f conftest.$ac_objext conftest$ac_exeext
35643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35644 (eval $ac_link) 2>conftest.er1
35645 ac_status=$?
35646 grep -v '^ *+' conftest.er1 >conftest.err
35647 rm -f conftest.er1
35648 cat conftest.err >&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); } &&
ca5c6ac3 35651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35654 ac_status=$?
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; } &&
35657 { ac_try='test -s conftest$ac_exeext'
35658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35659 (eval $ac_try) 2>&5
35660 ac_status=$?
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); }; }; then
35663 eval "$as_ac_var=yes"
35664else
35665 echo "$as_me: failed program was:" >&5
35666sed 's/^/| /' conftest.$ac_ext >&5
35667
35668eval "$as_ac_var=no"
35669fi
35670rm -f conftest.err conftest.$ac_objext \
35671 conftest$ac_exeext conftest.$ac_ext
35672fi
35673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35675if test `eval echo '${'$as_ac_var'}'` = yes; then
35676 cat >>confdefs.h <<_ACEOF
35677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35678_ACEOF
35679
35680fi
35681done
35682
35683fi
a848cd7e
SC
35684
35685
c2e9ada4
VZ
35686for ac_func in round
35687do
35688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35689echo "$as_me:$LINENO: checking for $ac_func" >&5
35690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35691if eval "test \"\${$as_ac_var+set}\" = set"; then
35692 echo $ECHO_N "(cached) $ECHO_C" >&6
35693else
35694 cat >conftest.$ac_ext <<_ACEOF
35695/* confdefs.h. */
35696_ACEOF
35697cat confdefs.h >>conftest.$ac_ext
35698cat >>conftest.$ac_ext <<_ACEOF
35699/* end confdefs.h. */
35700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35702#define $ac_func innocuous_$ac_func
35703
35704/* System header to define __stub macros and hopefully few prototypes,
35705 which can conflict with char $ac_func (); below.
35706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35707 <limits.h> exists even on freestanding compilers. */
35708
35709#ifdef __STDC__
35710# include <limits.h>
35711#else
35712# include <assert.h>
35713#endif
35714
35715#undef $ac_func
35716
35717/* Override any gcc2 internal prototype to avoid an error. */
35718#ifdef __cplusplus
35719extern "C"
35720{
35721#endif
35722/* We use char because int might match the return type of a gcc2
35723 builtin and then its argument prototype would still apply. */
35724char $ac_func ();
35725/* The GNU C library defines this for functions which it implements
35726 to always fail with ENOSYS. Some functions are actually named
35727 something starting with __ and the normal name is an alias. */
35728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35729choke me
35730#else
35731char (*f) () = $ac_func;
35732#endif
35733#ifdef __cplusplus
35734}
35735#endif
35736
35737int
35738main ()
35739{
35740return f != $ac_func;
35741 ;
35742 return 0;
35743}
35744_ACEOF
35745rm -f conftest.$ac_objext conftest$ac_exeext
35746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35747 (eval $ac_link) 2>conftest.er1
35748 ac_status=$?
35749 grep -v '^ *+' conftest.er1 >conftest.err
35750 rm -f conftest.er1
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } &&
ca5c6ac3 35754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35757 ac_status=$?
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; } &&
35760 { ac_try='test -s conftest$ac_exeext'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35763 ac_status=$?
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 eval "$as_ac_var=yes"
35767else
35768 echo "$as_me: failed program was:" >&5
35769sed 's/^/| /' conftest.$ac_ext >&5
35770
35771eval "$as_ac_var=no"
35772fi
35773rm -f conftest.err conftest.$ac_objext \
35774 conftest$ac_exeext conftest.$ac_ext
35775fi
35776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35778if test `eval echo '${'$as_ac_var'}'` = yes; then
35779 cat >>confdefs.h <<_ACEOF
35780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35781_ACEOF
35782
35783fi
35784done
35785
35786if test "$ac_cv_func_round" = yes; then
35787 echo "$as_me:$LINENO: checking whether round is declared" >&5
35788echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35789if test "${ac_cv_have_decl_round+set}" = set; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35791else
35792 cat >conftest.$ac_ext <<_ACEOF
35793/* confdefs.h. */
35794_ACEOF
35795cat confdefs.h >>conftest.$ac_ext
35796cat >>conftest.$ac_ext <<_ACEOF
35797/* end confdefs.h. */
35798#include <math.h>
35799
35800int
35801main ()
35802{
35803#ifndef round
35804 char *p = (char *) round;
35805#endif
35806
35807 ;
35808 return 0;
35809}
35810_ACEOF
35811rm -f conftest.$ac_objext
35812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35813 (eval $ac_compile) 2>conftest.er1
35814 ac_status=$?
35815 grep -v '^ *+' conftest.er1 >conftest.err
35816 rm -f conftest.er1
35817 cat conftest.err >&5
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); } &&
ca5c6ac3 35820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; } &&
35826 { ac_try='test -s conftest.$ac_objext'
35827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35828 (eval $ac_try) 2>&5
35829 ac_status=$?
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); }; }; then
35832 ac_cv_have_decl_round=yes
35833else
35834 echo "$as_me: failed program was:" >&5
35835sed 's/^/| /' conftest.$ac_ext >&5
35836
35837ac_cv_have_decl_round=no
35838fi
35839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35840fi
35841echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35842echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35843if test $ac_cv_have_decl_round = yes; then
35844
35845cat >>confdefs.h <<_ACEOF
35846#define HAVE_DECL_ROUND 1
35847_ACEOF
35848
35849
35850else
35851 cat >>confdefs.h <<_ACEOF
35852#define HAVE_DECL_ROUND 0
35853_ACEOF
35854
35855
35856fi
35857
35858
35859fi
35860
35861
a848cd7e
SC
35862if test "$TOOLKIT" != "MSW"; then
35863
35864
a848cd7e
SC
35865
35866
35867
35868# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35869if test "${with_libiconv_prefix+set}" = set; then
35870 withval="$with_libiconv_prefix"
35871
35872 for dir in `echo "$withval" | tr : ' '`; do
35873 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35874 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35875 done
35876
35877fi;
35878
35879 echo "$as_me:$LINENO: checking for iconv" >&5
35880echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35881if test "${am_cv_func_iconv+set}" = set; then
35882 echo $ECHO_N "(cached) $ECHO_C" >&6
35883else
35884
35885 am_cv_func_iconv="no, consider installing GNU libiconv"
35886 am_cv_lib_iconv=no
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#include <stdlib.h>
35894#include <iconv.h>
35895int
35896main ()
35897{
35898iconv_t cd = iconv_open("","");
35899 iconv(cd,NULL,NULL,NULL,NULL);
35900 iconv_close(cd);
35901 ;
35902 return 0;
35903}
35904_ACEOF
35905rm -f conftest.$ac_objext conftest$ac_exeext
35906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35907 (eval $ac_link) 2>conftest.er1
a848cd7e 35908 ac_status=$?
ac1cb8d3
VS
35909 grep -v '^ *+' conftest.er1 >conftest.err
35910 rm -f conftest.er1
35911 cat conftest.err >&5
a848cd7e
SC
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); } &&
ca5c6ac3 35914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35916 (eval $ac_try) 2>&5
35917 ac_status=$?
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); }; } &&
35920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35922 (eval $ac_try) 2>&5
35923 ac_status=$?
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); }; }; then
35926 am_cv_func_iconv=yes
35927else
35928 echo "$as_me: failed program was:" >&5
35929sed 's/^/| /' conftest.$ac_ext >&5
35930
35931fi
ac1cb8d3
VS
35932rm -f conftest.err conftest.$ac_objext \
35933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35934 if test "$am_cv_func_iconv" != yes; then
35935 am_save_LIBS="$LIBS"
35936 LIBS="$LIBS -liconv"
35937 cat >conftest.$ac_ext <<_ACEOF
35938/* confdefs.h. */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h. */
35943#include <stdlib.h>
35944#include <iconv.h>
35945int
35946main ()
35947{
35948iconv_t cd = iconv_open("","");
35949 iconv(cd,NULL,NULL,NULL,NULL);
35950 iconv_close(cd);
35951 ;
35952 return 0;
35953}
35954_ACEOF
35955rm -f conftest.$ac_objext conftest$ac_exeext
35956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35957 (eval $ac_link) 2>conftest.er1
a848cd7e 35958 ac_status=$?
ac1cb8d3
VS
35959 grep -v '^ *+' conftest.er1 >conftest.err
35960 rm -f conftest.er1
35961 cat conftest.err >&5
a848cd7e
SC
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); } &&
ca5c6ac3 35964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966 (eval $ac_try) 2>&5
35967 ac_status=$?
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); }; } &&
35970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972 (eval $ac_try) 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); }; }; then
35976 am_cv_lib_iconv=yes
35977 am_cv_func_iconv=yes
35978else
35979 echo "$as_me: failed program was:" >&5
35980sed 's/^/| /' conftest.$ac_ext >&5
35981
35982fi
ac1cb8d3
VS
35983rm -f conftest.err conftest.$ac_objext \
35984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35985 LIBS="$am_save_LIBS"
35986 fi
35987
35988fi
35989echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35990echo "${ECHO_T}$am_cv_func_iconv" >&6
35991 if test "$am_cv_func_iconv" = yes; then
35992
35993cat >>confdefs.h <<\_ACEOF
35994#define HAVE_ICONV 1
35995_ACEOF
35996
35997 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35998echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35999if test "${wx_cv_func_iconv_const+set}" = set; then
36000 echo $ECHO_N "(cached) $ECHO_C" >&6
36001else
36002 cat >conftest.$ac_ext <<_ACEOF
36003/* confdefs.h. */
36004_ACEOF
36005cat confdefs.h >>conftest.$ac_ext
36006cat >>conftest.$ac_ext <<_ACEOF
36007/* end confdefs.h. */
36008
36009#include <stdlib.h>
36010#include <iconv.h>
36011extern
36012#ifdef __cplusplus
36013"C"
36014#endif
36015#if defined(__STDC__) || defined(__cplusplus)
36016size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36017#else
36018size_t iconv();
36019#endif
36020
36021int
36022main ()
36023{
36024
36025 ;
36026 return 0;
36027}
36028_ACEOF
36029rm -f conftest.$ac_objext
36030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36031 (eval $ac_compile) 2>conftest.er1
a848cd7e 36032 ac_status=$?
ac1cb8d3
VS
36033 grep -v '^ *+' conftest.er1 >conftest.err
36034 rm -f conftest.er1
36035 cat conftest.err >&5
a848cd7e
SC
36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037 (exit $ac_status); } &&
ca5c6ac3 36038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36040 (eval $ac_try) 2>&5
36041 ac_status=$?
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); }; } &&
36044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046 (eval $ac_try) 2>&5
36047 ac_status=$?
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); }; }; then
36050 wx_cv_func_iconv_const="no"
36051else
36052 echo "$as_me: failed program was:" >&5
36053sed 's/^/| /' conftest.$ac_ext >&5
36054
36055wx_cv_func_iconv_const="yes"
36056
36057fi
ac1cb8d3 36058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36059
36060fi
36061echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36062echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36063
36064 iconv_const=
36065 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36066 iconv_const="const"
36067 fi
36068
36069
36070cat >>confdefs.h <<_ACEOF
36071#define ICONV_CONST $iconv_const
36072_ACEOF
36073
36074 fi
36075 LIBICONV=
36076 if test "$am_cv_lib_iconv" = yes; then
36077 LIBICONV="-liconv"
36078 fi
36079
36080
36081LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36082
36083if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36084
36085for ac_func in sigaction
36086do
36087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36088echo "$as_me:$LINENO: checking for $ac_func" >&5
36089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36090if eval "test \"\${$as_ac_var+set}\" = set"; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36092else
36093 cat >conftest.$ac_ext <<_ACEOF
36094/* confdefs.h. */
36095_ACEOF
36096cat confdefs.h >>conftest.$ac_ext
36097cat >>conftest.$ac_ext <<_ACEOF
36098/* end confdefs.h. */
ac1cb8d3
VS
36099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36101#define $ac_func innocuous_$ac_func
36102
a848cd7e
SC
36103/* System header to define __stub macros and hopefully few prototypes,
36104 which can conflict with char $ac_func (); below.
36105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36106 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36107
a848cd7e
SC
36108#ifdef __STDC__
36109# include <limits.h>
36110#else
36111# include <assert.h>
36112#endif
ac1cb8d3
VS
36113
36114#undef $ac_func
36115
a848cd7e
SC
36116/* Override any gcc2 internal prototype to avoid an error. */
36117#ifdef __cplusplus
36118extern "C"
36119{
36120#endif
36121/* We use char because int might match the return type of a gcc2
36122 builtin and then its argument prototype would still apply. */
36123char $ac_func ();
36124/* The GNU C library defines this for functions which it implements
36125 to always fail with ENOSYS. Some functions are actually named
36126 something starting with __ and the normal name is an alias. */
36127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36128choke me
36129#else
36130char (*f) () = $ac_func;
36131#endif
36132#ifdef __cplusplus
36133}
36134#endif
36135
36136int
36137main ()
36138{
36139return f != $ac_func;
36140 ;
36141 return 0;
36142}
36143_ACEOF
36144rm -f conftest.$ac_objext conftest$ac_exeext
36145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36146 (eval $ac_link) 2>conftest.er1
a848cd7e 36147 ac_status=$?
ac1cb8d3
VS
36148 grep -v '^ *+' conftest.er1 >conftest.err
36149 rm -f conftest.er1
36150 cat conftest.err >&5
a848cd7e
SC
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } &&
ca5c6ac3 36153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36155 (eval $ac_try) 2>&5
36156 ac_status=$?
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); }; } &&
36159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36161 (eval $ac_try) 2>&5
36162 ac_status=$?
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); }; }; then
36165 eval "$as_ac_var=yes"
36166else
36167 echo "$as_me: failed program was:" >&5
36168sed 's/^/| /' conftest.$ac_ext >&5
36169
36170eval "$as_ac_var=no"
36171fi
ac1cb8d3
VS
36172rm -f conftest.err conftest.$ac_objext \
36173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36174fi
36175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36177if test `eval echo '${'$as_ac_var'}'` = yes; then
36178 cat >>confdefs.h <<_ACEOF
36179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36180_ACEOF
36181
36182fi
36183done
36184
36185
36186 if test "$ac_cv_func_sigaction" = "no"; then
36187 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36188echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36189 wxUSE_ON_FATAL_EXCEPTION=no
36190 fi
36191
36192 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36193 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36194echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36195if test "${wx_cv_type_sa_handler+set}" = set; then
36196 echo $ECHO_N "(cached) $ECHO_C" >&6
36197else
36198
36199 cat >conftest.$ac_ext <<_ACEOF
36200/* confdefs.h. */
36201_ACEOF
36202cat confdefs.h >>conftest.$ac_ext
36203cat >>conftest.$ac_ext <<_ACEOF
36204/* end confdefs.h. */
36205#include <signal.h>
36206int
36207main ()
36208{
36209
36210 extern void testSigHandler(int);
36211
36212 struct sigaction sa;
36213 sa.sa_handler = testSigHandler;
36214
36215 ;
36216 return 0;
36217}
36218_ACEOF
36219rm -f conftest.$ac_objext
36220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36221 (eval $ac_compile) 2>conftest.er1
a848cd7e 36222 ac_status=$?
ac1cb8d3
VS
36223 grep -v '^ *+' conftest.er1 >conftest.err
36224 rm -f conftest.er1
36225 cat conftest.err >&5
a848cd7e
SC
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); } &&
ca5c6ac3 36228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; } &&
36234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236 (eval $ac_try) 2>&5
36237 ac_status=$?
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); }; }; then
36240
36241 wx_cv_type_sa_handler=int
36242
36243else
36244 echo "$as_me: failed program was:" >&5
36245sed 's/^/| /' conftest.$ac_ext >&5
36246
36247
36248 wx_cv_type_sa_handler=void
36249
36250fi
ac1cb8d3 36251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36252
36253fi
36254echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36255echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36256
a848cd7e
SC
36257 cat >>confdefs.h <<_ACEOF
36258#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36259_ACEOF
36260
36261 fi
36262fi
36263
eaff0f0d 36264if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36265 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36266echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36267if test "${wx_cv_func_backtrace+set}" = set; then
36268 echo $ECHO_N "(cached) $ECHO_C" >&6
36269else
36270
36271 cat >conftest.$ac_ext <<_ACEOF
36272/* confdefs.h. */
36273_ACEOF
36274cat confdefs.h >>conftest.$ac_ext
36275cat >>conftest.$ac_ext <<_ACEOF
36276/* end confdefs.h. */
36277#include <execinfo.h>
36278int
36279main ()
36280{
36281
36282 void *trace[1];
36283 char **messages;
36284
36285 backtrace(trace, 1);
36286 messages = backtrace_symbols(trace, 1);
36287
36288 ;
36289 return 0;
36290}
36291_ACEOF
36292rm -f conftest.$ac_objext
36293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36294 (eval $ac_compile) 2>conftest.er1
36295 ac_status=$?
36296 grep -v '^ *+' conftest.er1 >conftest.err
36297 rm -f conftest.er1
36298 cat conftest.err >&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } &&
ca5c6ac3 36301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36304 ac_status=$?
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; } &&
36307 { ac_try='test -s conftest.$ac_objext'
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36310 ac_status=$?
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; }; then
36313 wx_cv_func_backtrace=yes
36314else
36315 echo "$as_me: failed program was:" >&5
36316sed 's/^/| /' conftest.$ac_ext >&5
36317
36318wx_cv_func_backtrace=no
36319
36320fi
36321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36322
36323
36324fi
36325echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36326echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36327
36328
36329 if test "$wx_cv_func_backtrace" = "no"; then
36330 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36331echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36332 wxUSE_STACKWALKER=no
36333 else
36334 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36335echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36336if test "${wx_cv_func_cxa_demangle+set}" = set; then
36337 echo $ECHO_N "(cached) $ECHO_C" >&6
36338else
36339
36340 cat >conftest.$ac_ext <<_ACEOF
36341/* confdefs.h. */
36342_ACEOF
36343cat confdefs.h >>conftest.$ac_ext
36344cat >>conftest.$ac_ext <<_ACEOF
36345/* end confdefs.h. */
36346#include <cxxabi.h>
36347int
36348main ()
36349{
36350
36351 int rc;
36352 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36353
36354 ;
36355 return 0;
36356}
36357_ACEOF
dfe0c803
JS
36358rm -f conftest.$ac_objext conftest$ac_exeext
36359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36360 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36361 ac_status=$?
36362 grep -v '^ *+' conftest.er1 >conftest.err
36363 rm -f conftest.er1
36364 cat conftest.err >&5
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); } &&
ca5c6ac3 36367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36369 (eval $ac_try) 2>&5
36370 ac_status=$?
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); }; } &&
dfe0c803 36373 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375 (eval $ac_try) 2>&5
36376 ac_status=$?
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); }; }; then
36379 wx_cv_func_cxa_demangle=yes
36380else
36381 echo "$as_me: failed program was:" >&5
36382sed 's/^/| /' conftest.$ac_ext >&5
36383
36384wx_cv_func_cxa_demangle=no
36385
36386fi
dfe0c803
JS
36387rm -f conftest.err conftest.$ac_objext \
36388 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36389
36390
36391fi
36392echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36393echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36394
36395 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36396 cat >>confdefs.h <<\_ACEOF
36397#define HAVE_CXA_DEMANGLE 1
36398_ACEOF
36399
36400 fi
36401 fi
eaff0f0d
VZ
36402fi
36403
898beab1
DE
36404if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36405 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36406echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36407 wxUSE_STACKWALKER=no
36408fi
36409
36410
a848cd7e
SC
36411
36412
36413for ac_func in mkstemp mktemp
36414do
36415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36416echo "$as_me:$LINENO: checking for $ac_func" >&5
36417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36418if eval "test \"\${$as_ac_var+set}\" = set"; then
36419 echo $ECHO_N "(cached) $ECHO_C" >&6
36420else
36421 cat >conftest.$ac_ext <<_ACEOF
36422/* confdefs.h. */
36423_ACEOF
36424cat confdefs.h >>conftest.$ac_ext
36425cat >>conftest.$ac_ext <<_ACEOF
36426/* end confdefs.h. */
ac1cb8d3
VS
36427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36429#define $ac_func innocuous_$ac_func
36430
a848cd7e
SC
36431/* System header to define __stub macros and hopefully few prototypes,
36432 which can conflict with char $ac_func (); below.
36433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36434 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36435
a848cd7e
SC
36436#ifdef __STDC__
36437# include <limits.h>
36438#else
36439# include <assert.h>
36440#endif
ac1cb8d3
VS
36441
36442#undef $ac_func
36443
a848cd7e
SC
36444/* Override any gcc2 internal prototype to avoid an error. */
36445#ifdef __cplusplus
36446extern "C"
36447{
36448#endif
36449/* We use char because int might match the return type of a gcc2
36450 builtin and then its argument prototype would still apply. */
36451char $ac_func ();
36452/* The GNU C library defines this for functions which it implements
36453 to always fail with ENOSYS. Some functions are actually named
36454 something starting with __ and the normal name is an alias. */
36455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36456choke me
36457#else
36458char (*f) () = $ac_func;
36459#endif
36460#ifdef __cplusplus
36461}
36462#endif
36463
36464int
36465main ()
36466{
36467return f != $ac_func;
36468 ;
36469 return 0;
36470}
36471_ACEOF
36472rm -f conftest.$ac_objext conftest$ac_exeext
36473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36474 (eval $ac_link) 2>conftest.er1
a848cd7e 36475 ac_status=$?
ac1cb8d3
VS
36476 grep -v '^ *+' conftest.er1 >conftest.err
36477 rm -f conftest.er1
36478 cat conftest.err >&5
a848cd7e
SC
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); } &&
ca5c6ac3 36481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 (eval $ac_try) 2>&5
36484 ac_status=$?
36485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 (exit $ac_status); }; } &&
36487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 (eval $ac_try) 2>&5
36490 ac_status=$?
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); }; }; then
36493 eval "$as_ac_var=yes"
36494else
36495 echo "$as_me: failed program was:" >&5
36496sed 's/^/| /' conftest.$ac_ext >&5
36497
36498eval "$as_ac_var=no"
36499fi
ac1cb8d3
VS
36500rm -f conftest.err conftest.$ac_objext \
36501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36502fi
36503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36505if test `eval echo '${'$as_ac_var'}'` = yes; then
36506 cat >>confdefs.h <<_ACEOF
36507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36508_ACEOF
36509 break
36510fi
36511done
36512
36513
36514echo "$as_me:$LINENO: checking for statfs" >&5
36515echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36516if test "${wx_cv_func_statfs+set}" = set; then
36517 echo $ECHO_N "(cached) $ECHO_C" >&6
36518else
36519 cat >conftest.$ac_ext <<_ACEOF
36520/* confdefs.h. */
36521_ACEOF
36522cat confdefs.h >>conftest.$ac_ext
36523cat >>conftest.$ac_ext <<_ACEOF
36524/* end confdefs.h. */
36525
36526 #if defined(__BSD__)
84ae7ca4
VZ
36527 #include <sys/param.h>
36528 #include <sys/mount.h>
a848cd7e 36529 #else
84ae7ca4 36530 #include <sys/vfs.h>
a848cd7e
SC
36531 #endif
36532
36533int
36534main ()
36535{
36536
36537 long l;
36538 struct statfs fs;
36539 statfs("/", &fs);
36540 l = fs.f_bsize;
36541 l += fs.f_blocks;
36542 l += fs.f_bavail;
36543
36544 ;
36545 return 0;
36546}
36547_ACEOF
36548rm -f conftest.$ac_objext
36549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36550 (eval $ac_compile) 2>conftest.er1
a848cd7e 36551 ac_status=$?
ac1cb8d3
VS
36552 grep -v '^ *+' conftest.er1 >conftest.err
36553 rm -f conftest.er1
36554 cat conftest.err >&5
a848cd7e
SC
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); } &&
ca5c6ac3 36557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36559 (eval $ac_try) 2>&5
36560 ac_status=$?
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); }; } &&
36563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36566 ac_status=$?
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; }; then
84ae7ca4 36569 wx_cv_func_statfs=yes
a848cd7e
SC
36570else
36571 echo "$as_me: failed program was:" >&5
36572sed 's/^/| /' conftest.$ac_ext >&5
36573
84ae7ca4 36574wx_cv_func_statfs=no
a848cd7e
SC
36575
36576fi
ac1cb8d3 36577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36578
36579fi
36580echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36581echo "${ECHO_T}$wx_cv_func_statfs" >&6
36582
36583if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36584 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36585echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36586if test "${wx_cv_func_statfs_decl+set}" = set; then
36587 echo $ECHO_N "(cached) $ECHO_C" >&6
36588else
0683aca6
VZ
36589 cat >conftest.$ac_ext <<_ACEOF
36590/* confdefs.h. */
36591_ACEOF
36592cat confdefs.h >>conftest.$ac_ext
36593cat >>conftest.$ac_ext <<_ACEOF
36594/* end confdefs.h. */
84ae7ca4 36595
0683aca6
VZ
36596 #if defined(__BSD__)
36597 #include <sys/param.h>
36598 #include <sys/mount.h>
36599 #else
36600 #include <sys/vfs.h>
36601 #endif
36602
36603int
36604main ()
36605{
36606
36607 struct statfs fs;
36608 statfs("", &fs);
36609
36610 ;
36611 return 0;
36612}
36613_ACEOF
36614rm -f conftest.$ac_objext
36615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36616 (eval $ac_compile) 2>conftest.er1
36617 ac_status=$?
36618 grep -v '^ *+' conftest.er1 >conftest.err
36619 rm -f conftest.er1
36620 cat conftest.err >&5
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); } &&
ca5c6ac3 36623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; } &&
36629 { ac_try='test -s conftest.$ac_objext'
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36632 ac_status=$?
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; }; then
36635 wx_cv_func_statfs_decl=yes
36636else
36637 echo "$as_me: failed program was:" >&5
36638sed 's/^/| /' conftest.$ac_ext >&5
36639
36640wx_cv_func_statfs_decl=no
36641
36642fi
36643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36644
36645fi
36646echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36647echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36648
36649 if test "$wx_cv_func_statfs_decl" = "yes"; then
36650 cat >>confdefs.h <<\_ACEOF
36651#define HAVE_STATFS_DECL 1
36652_ACEOF
36653
36654 fi
36655
a848cd7e
SC
36656 wx_cv_type_statvfs_t="struct statfs"
36657 cat >>confdefs.h <<\_ACEOF
36658#define HAVE_STATFS 1
36659_ACEOF
36660
36661else
36662 echo "$as_me:$LINENO: checking for statvfs" >&5
36663echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36664if test "${wx_cv_func_statvfs+set}" = set; then
36665 echo $ECHO_N "(cached) $ECHO_C" >&6
36666else
36667 cat >conftest.$ac_ext <<_ACEOF
36668/* confdefs.h. */
36669_ACEOF
36670cat confdefs.h >>conftest.$ac_ext
36671cat >>conftest.$ac_ext <<_ACEOF
36672/* end confdefs.h. */
36673
36674 #include <stddef.h>
36675 #include <sys/statvfs.h>
36676
36677int
36678main ()
36679{
36680
36681 statvfs("/", NULL);
36682
36683 ;
36684 return 0;
36685}
36686_ACEOF
36687rm -f conftest.$ac_objext
36688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36689 (eval $ac_compile) 2>conftest.er1
a848cd7e 36690 ac_status=$?
ac1cb8d3
VS
36691 grep -v '^ *+' conftest.er1 >conftest.err
36692 rm -f conftest.er1
36693 cat conftest.err >&5
a848cd7e
SC
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); } &&
ca5c6ac3 36696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698 (eval $ac_try) 2>&5
36699 ac_status=$?
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); }; } &&
36702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36708 wx_cv_func_statvfs=yes
36709else
36710 echo "$as_me: failed program was:" >&5
36711sed 's/^/| /' conftest.$ac_ext >&5
36712
36713wx_cv_func_statvfs=no
36714
36715fi
ac1cb8d3 36716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36717
36718fi
36719echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36720echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36721
36722 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36723 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36724echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36725if test "${wx_cv_type_statvfs_t+set}" = set; then
36726 echo $ECHO_N "(cached) $ECHO_C" >&6
36727else
36728 cat >conftest.$ac_ext <<_ACEOF
36729/* confdefs.h. */
36730_ACEOF
36731cat confdefs.h >>conftest.$ac_ext
36732cat >>conftest.$ac_ext <<_ACEOF
36733/* end confdefs.h. */
36734
36735 #include <sys/statvfs.h>
36736
36737int
36738main ()
36739{
36740
36741 long l;
36742 statvfs_t fs;
36743 statvfs("/", &fs);
36744 l = fs.f_bsize;
36745 l += fs.f_blocks;
36746 l += fs.f_bavail;
36747
36748 ;
36749 return 0;
36750}
36751_ACEOF
36752rm -f conftest.$ac_objext
36753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36754 (eval $ac_compile) 2>conftest.er1
a848cd7e 36755 ac_status=$?
ac1cb8d3
VS
36756 grep -v '^ *+' conftest.er1 >conftest.err
36757 rm -f conftest.er1
36758 cat conftest.err >&5
a848cd7e
SC
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); } &&
ca5c6ac3 36761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36764 ac_status=$?
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; } &&
36767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36770 ac_status=$?
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; }; then
36773 wx_cv_type_statvfs_t=statvfs_t
36774else
36775 echo "$as_me: failed program was:" >&5
36776sed 's/^/| /' conftest.$ac_ext >&5
36777
36778
36779 cat >conftest.$ac_ext <<_ACEOF
36780/* confdefs.h. */
36781_ACEOF
36782cat confdefs.h >>conftest.$ac_ext
36783cat >>conftest.$ac_ext <<_ACEOF
36784/* end confdefs.h. */
36785
36786 #include <sys/statvfs.h>
36787
36788int
36789main ()
36790{
36791
36792 long l;
36793 struct statvfs fs;
36794 statvfs("/", &fs);
36795 l = fs.f_bsize;
36796 l += fs.f_blocks;
36797 l += fs.f_bavail;
36798
36799 ;
36800 return 0;
36801}
36802_ACEOF
36803rm -f conftest.$ac_objext
36804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36805 (eval $ac_compile) 2>conftest.er1
a848cd7e 36806 ac_status=$?
ac1cb8d3
VS
36807 grep -v '^ *+' conftest.er1 >conftest.err
36808 rm -f conftest.er1
36809 cat conftest.err >&5
a848cd7e
SC
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); } &&
ca5c6ac3 36812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36814 (eval $ac_try) 2>&5
36815 ac_status=$?
36816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817 (exit $ac_status); }; } &&
36818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36820 (eval $ac_try) 2>&5
36821 ac_status=$?
36822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823 (exit $ac_status); }; }; then
36824 wx_cv_type_statvfs_t="struct statvfs"
36825else
36826 echo "$as_me: failed program was:" >&5
36827sed 's/^/| /' conftest.$ac_ext >&5
36828
36829wx_cv_type_statvfs_t="unknown"
36830
36831fi
ac1cb8d3 36832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36833
36834
36835fi
ac1cb8d3 36836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36837
36838fi
36839echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36840echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36841
a848cd7e
SC
36842 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define HAVE_STATVFS 1
36845_ACEOF
36846
36847 fi
36848 else
36849 wx_cv_type_statvfs_t="unknown"
36850 fi
36851fi
36852
36853if test "$wx_cv_type_statvfs_t" != "unknown"; then
36854 cat >>confdefs.h <<_ACEOF
36855#define WX_STATFS_T $wx_cv_type_statvfs_t
36856_ACEOF
36857
36858else
36859 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36860echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36861fi
36862
36863if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36864
36865
36866for ac_func in fcntl flock
36867do
36868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36869echo "$as_me:$LINENO: checking for $ac_func" >&5
36870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36871if eval "test \"\${$as_ac_var+set}\" = set"; then
36872 echo $ECHO_N "(cached) $ECHO_C" >&6
36873else
36874 cat >conftest.$ac_ext <<_ACEOF
36875/* confdefs.h. */
36876_ACEOF
36877cat confdefs.h >>conftest.$ac_ext
36878cat >>conftest.$ac_ext <<_ACEOF
36879/* end confdefs.h. */
ac1cb8d3
VS
36880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36882#define $ac_func innocuous_$ac_func
36883
a848cd7e
SC
36884/* System header to define __stub macros and hopefully few prototypes,
36885 which can conflict with char $ac_func (); below.
36886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36887 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36888
a848cd7e
SC
36889#ifdef __STDC__
36890# include <limits.h>
36891#else
36892# include <assert.h>
36893#endif
ac1cb8d3
VS
36894
36895#undef $ac_func
36896
a848cd7e
SC
36897/* Override any gcc2 internal prototype to avoid an error. */
36898#ifdef __cplusplus
36899extern "C"
36900{
36901#endif
36902/* We use char because int might match the return type of a gcc2
36903 builtin and then its argument prototype would still apply. */
36904char $ac_func ();
36905/* The GNU C library defines this for functions which it implements
36906 to always fail with ENOSYS. Some functions are actually named
36907 something starting with __ and the normal name is an alias. */
36908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36909choke me
36910#else
36911char (*f) () = $ac_func;
36912#endif
36913#ifdef __cplusplus
36914}
36915#endif
36916
36917int
36918main ()
36919{
36920return f != $ac_func;
36921 ;
36922 return 0;
36923}
36924_ACEOF
36925rm -f conftest.$ac_objext conftest$ac_exeext
36926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36927 (eval $ac_link) 2>conftest.er1
a848cd7e 36928 ac_status=$?
ac1cb8d3
VS
36929 grep -v '^ *+' conftest.er1 >conftest.err
36930 rm -f conftest.er1
36931 cat conftest.err >&5
a848cd7e
SC
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); } &&
ca5c6ac3 36934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936 (eval $ac_try) 2>&5
36937 ac_status=$?
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); }; } &&
36940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36942 (eval $ac_try) 2>&5
36943 ac_status=$?
36944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36945 (exit $ac_status); }; }; then
36946 eval "$as_ac_var=yes"
36947else
36948 echo "$as_me: failed program was:" >&5
36949sed 's/^/| /' conftest.$ac_ext >&5
36950
36951eval "$as_ac_var=no"
36952fi
ac1cb8d3
VS
36953rm -f conftest.err conftest.$ac_objext \
36954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36955fi
36956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36958if test `eval echo '${'$as_ac_var'}'` = yes; then
36959 cat >>confdefs.h <<_ACEOF
36960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36961_ACEOF
36962 break
36963fi
36964done
36965
36966
36967 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36968 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36969echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36970 wxUSE_SNGLINST_CHECKER=no
36971 fi
36972fi
36973
36974
36975for ac_func in timegm
36976do
36977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36978echo "$as_me:$LINENO: checking for $ac_func" >&5
36979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36980if eval "test \"\${$as_ac_var+set}\" = set"; then
36981 echo $ECHO_N "(cached) $ECHO_C" >&6
36982else
36983 cat >conftest.$ac_ext <<_ACEOF
36984/* confdefs.h. */
36985_ACEOF
36986cat confdefs.h >>conftest.$ac_ext
36987cat >>conftest.$ac_ext <<_ACEOF
36988/* end confdefs.h. */
ac1cb8d3
VS
36989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36991#define $ac_func innocuous_$ac_func
36992
a848cd7e
SC
36993/* System header to define __stub macros and hopefully few prototypes,
36994 which can conflict with char $ac_func (); below.
36995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36997
a848cd7e
SC
36998#ifdef __STDC__
36999# include <limits.h>
37000#else
37001# include <assert.h>
37002#endif
ac1cb8d3
VS
37003
37004#undef $ac_func
37005
a848cd7e
SC
37006/* Override any gcc2 internal prototype to avoid an error. */
37007#ifdef __cplusplus
37008extern "C"
37009{
37010#endif
37011/* We use char because int might match the return type of a gcc2
37012 builtin and then its argument prototype would still apply. */
37013char $ac_func ();
37014/* The GNU C library defines this for functions which it implements
37015 to always fail with ENOSYS. Some functions are actually named
37016 something starting with __ and the normal name is an alias. */
37017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37018choke me
37019#else
37020char (*f) () = $ac_func;
37021#endif
37022#ifdef __cplusplus
37023}
37024#endif
37025
37026int
37027main ()
37028{
37029return f != $ac_func;
37030 ;
37031 return 0;
37032}
37033_ACEOF
37034rm -f conftest.$ac_objext conftest$ac_exeext
37035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37036 (eval $ac_link) 2>conftest.er1
a848cd7e 37037 ac_status=$?
ac1cb8d3
VS
37038 grep -v '^ *+' conftest.er1 >conftest.err
37039 rm -f conftest.er1
37040 cat conftest.err >&5
a848cd7e
SC
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); } &&
ca5c6ac3 37043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37046 ac_status=$?
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; } &&
37049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37052 ac_status=$?
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; }; then
37055 eval "$as_ac_var=yes"
37056else
37057 echo "$as_me: failed program was:" >&5
37058sed 's/^/| /' conftest.$ac_ext >&5
37059
37060eval "$as_ac_var=no"
37061fi
ac1cb8d3
VS
37062rm -f conftest.err conftest.$ac_objext \
37063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37064fi
37065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37067if test `eval echo '${'$as_ac_var'}'` = yes; then
37068 cat >>confdefs.h <<_ACEOF
37069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37070_ACEOF
37071
37072fi
37073done
37074
37075
37076
37077
37078for ac_func in putenv setenv
37079do
37080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37081echo "$as_me:$LINENO: checking for $ac_func" >&5
37082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37083if eval "test \"\${$as_ac_var+set}\" = set"; then
37084 echo $ECHO_N "(cached) $ECHO_C" >&6
37085else
37086 cat >conftest.$ac_ext <<_ACEOF
37087/* confdefs.h. */
37088_ACEOF
37089cat confdefs.h >>conftest.$ac_ext
37090cat >>conftest.$ac_ext <<_ACEOF
37091/* end confdefs.h. */
ac1cb8d3
VS
37092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37094#define $ac_func innocuous_$ac_func
37095
a848cd7e
SC
37096/* System header to define __stub macros and hopefully few prototypes,
37097 which can conflict with char $ac_func (); below.
37098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37100
a848cd7e
SC
37101#ifdef __STDC__
37102# include <limits.h>
37103#else
37104# include <assert.h>
37105#endif
ac1cb8d3
VS
37106
37107#undef $ac_func
37108
a848cd7e
SC
37109/* Override any gcc2 internal prototype to avoid an error. */
37110#ifdef __cplusplus
37111extern "C"
37112{
37113#endif
37114/* We use char because int might match the return type of a gcc2
37115 builtin and then its argument prototype would still apply. */
37116char $ac_func ();
37117/* The GNU C library defines this for functions which it implements
37118 to always fail with ENOSYS. Some functions are actually named
37119 something starting with __ and the normal name is an alias. */
37120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37121choke me
37122#else
37123char (*f) () = $ac_func;
37124#endif
37125#ifdef __cplusplus
37126}
37127#endif
37128
37129int
37130main ()
37131{
37132return f != $ac_func;
37133 ;
37134 return 0;
37135}
37136_ACEOF
37137rm -f conftest.$ac_objext conftest$ac_exeext
37138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37139 (eval $ac_link) 2>conftest.er1
a848cd7e 37140 ac_status=$?
ac1cb8d3
VS
37141 grep -v '^ *+' conftest.er1 >conftest.err
37142 rm -f conftest.er1
37143 cat conftest.err >&5
a848cd7e
SC
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } &&
ca5c6ac3 37146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148 (eval $ac_try) 2>&5
37149 ac_status=$?
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; } &&
37152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; }; then
37158 eval "$as_ac_var=yes"
37159else
37160 echo "$as_me: failed program was:" >&5
37161sed 's/^/| /' conftest.$ac_ext >&5
37162
37163eval "$as_ac_var=no"
37164fi
ac1cb8d3
VS
37165rm -f conftest.err conftest.$ac_objext \
37166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37167fi
37168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37170if test `eval echo '${'$as_ac_var'}'` = yes; then
37171 cat >>confdefs.h <<_ACEOF
37172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37173_ACEOF
37174 break
37175fi
37176done
37177
37178
37179HAVE_SOME_SLEEP_FUNC=0
37180if test "$USE_BEOS" = 1; then
37181 cat >>confdefs.h <<\_ACEOF
37182#define HAVE_SLEEP 1
37183_ACEOF
37184
37185 HAVE_SOME_SLEEP_FUNC=1
37186fi
37187
37188if test "$USE_DARWIN" = 1; then
37189 cat >>confdefs.h <<\_ACEOF
37190#define HAVE_USLEEP 1
37191_ACEOF
37192
37193 HAVE_SOME_SLEEP_FUNC=1
37194fi
37195
37196if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37197 POSIX4_LINK=
37198
37199for ac_func in nanosleep
37200do
37201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37202echo "$as_me:$LINENO: checking for $ac_func" >&5
37203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37204if eval "test \"\${$as_ac_var+set}\" = set"; then
37205 echo $ECHO_N "(cached) $ECHO_C" >&6
37206else
37207 cat >conftest.$ac_ext <<_ACEOF
37208/* confdefs.h. */
37209_ACEOF
37210cat confdefs.h >>conftest.$ac_ext
37211cat >>conftest.$ac_ext <<_ACEOF
37212/* end confdefs.h. */
ac1cb8d3
VS
37213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37215#define $ac_func innocuous_$ac_func
37216
a848cd7e
SC
37217/* System header to define __stub macros and hopefully few prototypes,
37218 which can conflict with char $ac_func (); below.
37219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37220 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37221
a848cd7e
SC
37222#ifdef __STDC__
37223# include <limits.h>
37224#else
37225# include <assert.h>
37226#endif
ac1cb8d3
VS
37227
37228#undef $ac_func
37229
a848cd7e
SC
37230/* Override any gcc2 internal prototype to avoid an error. */
37231#ifdef __cplusplus
37232extern "C"
37233{
37234#endif
37235/* We use char because int might match the return type of a gcc2
37236 builtin and then its argument prototype would still apply. */
37237char $ac_func ();
37238/* The GNU C library defines this for functions which it implements
37239 to always fail with ENOSYS. Some functions are actually named
37240 something starting with __ and the normal name is an alias. */
37241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37242choke me
37243#else
37244char (*f) () = $ac_func;
37245#endif
37246#ifdef __cplusplus
37247}
37248#endif
37249
37250int
37251main ()
37252{
37253return f != $ac_func;
37254 ;
37255 return 0;
37256}
37257_ACEOF
37258rm -f conftest.$ac_objext conftest$ac_exeext
37259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37260 (eval $ac_link) 2>conftest.er1
a848cd7e 37261 ac_status=$?
ac1cb8d3
VS
37262 grep -v '^ *+' conftest.er1 >conftest.err
37263 rm -f conftest.er1
37264 cat conftest.err >&5
a848cd7e
SC
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } &&
ca5c6ac3 37267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269 (eval $ac_try) 2>&5
37270 ac_status=$?
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); }; } &&
37273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275 (eval $ac_try) 2>&5
37276 ac_status=$?
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); }; }; then
37279 eval "$as_ac_var=yes"
37280else
37281 echo "$as_me: failed program was:" >&5
37282sed 's/^/| /' conftest.$ac_ext >&5
37283
37284eval "$as_ac_var=no"
37285fi
ac1cb8d3
VS
37286rm -f conftest.err conftest.$ac_objext \
37287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37288fi
37289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37291if test `eval echo '${'$as_ac_var'}'` = yes; then
37292 cat >>confdefs.h <<_ACEOF
37293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37294_ACEOF
37295 cat >>confdefs.h <<\_ACEOF
37296#define HAVE_NANOSLEEP 1
37297_ACEOF
37298
37299else
37300
37301 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37302echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37303if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37304 echo $ECHO_N "(cached) $ECHO_C" >&6
37305else
37306 ac_check_lib_save_LIBS=$LIBS
37307LIBS="-lposix4 $LIBS"
37308cat >conftest.$ac_ext <<_ACEOF
37309/* confdefs.h. */
37310_ACEOF
37311cat confdefs.h >>conftest.$ac_ext
37312cat >>conftest.$ac_ext <<_ACEOF
37313/* end confdefs.h. */
37314
37315/* Override any gcc2 internal prototype to avoid an error. */
37316#ifdef __cplusplus
37317extern "C"
37318#endif
37319/* We use char because int might match the return type of a gcc2
37320 builtin and then its argument prototype would still apply. */
37321char nanosleep ();
37322int
37323main ()
37324{
37325nanosleep ();
37326 ;
37327 return 0;
37328}
37329_ACEOF
37330rm -f conftest.$ac_objext conftest$ac_exeext
37331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37332 (eval $ac_link) 2>conftest.er1
a848cd7e 37333 ac_status=$?
ac1cb8d3
VS
37334 grep -v '^ *+' conftest.er1 >conftest.err
37335 rm -f conftest.er1
37336 cat conftest.err >&5
a848cd7e
SC
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); } &&
ca5c6ac3 37339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37341 (eval $ac_try) 2>&5
37342 ac_status=$?
37343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344 (exit $ac_status); }; } &&
37345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347 (eval $ac_try) 2>&5
37348 ac_status=$?
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); }; }; then
37351 ac_cv_lib_posix4_nanosleep=yes
37352else
37353 echo "$as_me: failed program was:" >&5
37354sed 's/^/| /' conftest.$ac_ext >&5
37355
37356ac_cv_lib_posix4_nanosleep=no
37357fi
ac1cb8d3
VS
37358rm -f conftest.err conftest.$ac_objext \
37359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37360LIBS=$ac_check_lib_save_LIBS
37361fi
37362echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37363echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37364if test $ac_cv_lib_posix4_nanosleep = yes; then
37365
37366 cat >>confdefs.h <<\_ACEOF
37367#define HAVE_NANOSLEEP 1
37368_ACEOF
37369
37370 POSIX4_LINK=" -lposix4"
37371
37372else
37373
37374
37375for ac_func in usleep
37376do
37377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37378echo "$as_me:$LINENO: checking for $ac_func" >&5
37379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37380if eval "test \"\${$as_ac_var+set}\" = set"; then
37381 echo $ECHO_N "(cached) $ECHO_C" >&6
37382else
37383 cat >conftest.$ac_ext <<_ACEOF
37384/* confdefs.h. */
37385_ACEOF
37386cat confdefs.h >>conftest.$ac_ext
37387cat >>conftest.$ac_ext <<_ACEOF
37388/* end confdefs.h. */
ac1cb8d3
VS
37389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37391#define $ac_func innocuous_$ac_func
37392
a848cd7e
SC
37393/* System header to define __stub macros and hopefully few prototypes,
37394 which can conflict with char $ac_func (); below.
37395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37396 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37397
a848cd7e
SC
37398#ifdef __STDC__
37399# include <limits.h>
37400#else
37401# include <assert.h>
37402#endif
ac1cb8d3
VS
37403
37404#undef $ac_func
37405
a848cd7e
SC
37406/* Override any gcc2 internal prototype to avoid an error. */
37407#ifdef __cplusplus
37408extern "C"
37409{
37410#endif
37411/* We use char because int might match the return type of a gcc2
37412 builtin and then its argument prototype would still apply. */
37413char $ac_func ();
37414/* The GNU C library defines this for functions which it implements
37415 to always fail with ENOSYS. Some functions are actually named
37416 something starting with __ and the normal name is an alias. */
37417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37418choke me
37419#else
37420char (*f) () = $ac_func;
37421#endif
37422#ifdef __cplusplus
37423}
37424#endif
37425
37426int
37427main ()
37428{
37429return f != $ac_func;
37430 ;
37431 return 0;
37432}
37433_ACEOF
37434rm -f conftest.$ac_objext conftest$ac_exeext
37435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37436 (eval $ac_link) 2>conftest.er1
a848cd7e 37437 ac_status=$?
ac1cb8d3
VS
37438 grep -v '^ *+' conftest.er1 >conftest.err
37439 rm -f conftest.er1
37440 cat conftest.err >&5
a848cd7e
SC
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); } &&
ca5c6ac3 37443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445 (eval $ac_try) 2>&5
37446 ac_status=$?
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); }; } &&
37449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37452 ac_status=$?
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; }; then
37455 eval "$as_ac_var=yes"
37456else
37457 echo "$as_me: failed program was:" >&5
37458sed 's/^/| /' conftest.$ac_ext >&5
37459
37460eval "$as_ac_var=no"
37461fi
ac1cb8d3
VS
37462rm -f conftest.err conftest.$ac_objext \
37463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37464fi
37465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37467if test `eval echo '${'$as_ac_var'}'` = yes; then
37468 cat >>confdefs.h <<_ACEOF
37469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37470_ACEOF
37471 cat >>confdefs.h <<\_ACEOF
37472#define HAVE_USLEEP 1
37473_ACEOF
37474
37475else
37476 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37477echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37478
37479fi
37480done
37481
37482
37483
37484fi
37485
37486
37487
37488fi
37489done
37490
37491fi
37492
37493
37494
37495for ac_func in uname gethostname
37496do
37497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37498echo "$as_me:$LINENO: checking for $ac_func" >&5
37499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37500if eval "test \"\${$as_ac_var+set}\" = set"; then
37501 echo $ECHO_N "(cached) $ECHO_C" >&6
37502else
37503 cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h. */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h. */
ac1cb8d3
VS
37509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37511#define $ac_func innocuous_$ac_func
37512
a848cd7e
SC
37513/* System header to define __stub macros and hopefully few prototypes,
37514 which can conflict with char $ac_func (); below.
37515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37517
a848cd7e
SC
37518#ifdef __STDC__
37519# include <limits.h>
37520#else
37521# include <assert.h>
37522#endif
ac1cb8d3
VS
37523
37524#undef $ac_func
37525
a848cd7e
SC
37526/* Override any gcc2 internal prototype to avoid an error. */
37527#ifdef __cplusplus
37528extern "C"
37529{
37530#endif
37531/* We use char because int might match the return type of a gcc2
37532 builtin and then its argument prototype would still apply. */
37533char $ac_func ();
37534/* The GNU C library defines this for functions which it implements
37535 to always fail with ENOSYS. Some functions are actually named
37536 something starting with __ and the normal name is an alias. */
37537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37538choke me
37539#else
37540char (*f) () = $ac_func;
37541#endif
37542#ifdef __cplusplus
37543}
37544#endif
37545
37546int
37547main ()
37548{
37549return f != $ac_func;
37550 ;
37551 return 0;
37552}
37553_ACEOF
37554rm -f conftest.$ac_objext conftest$ac_exeext
37555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37556 (eval $ac_link) 2>conftest.er1
a848cd7e 37557 ac_status=$?
ac1cb8d3
VS
37558 grep -v '^ *+' conftest.er1 >conftest.err
37559 rm -f conftest.er1
37560 cat conftest.err >&5
a848cd7e
SC
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
ca5c6ac3 37563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565 (eval $ac_try) 2>&5
37566 ac_status=$?
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); }; } &&
37569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37571 (eval $ac_try) 2>&5
37572 ac_status=$?
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); }; }; then
37575 eval "$as_ac_var=yes"
37576else
37577 echo "$as_me: failed program was:" >&5
37578sed 's/^/| /' conftest.$ac_ext >&5
37579
37580eval "$as_ac_var=no"
37581fi
ac1cb8d3
VS
37582rm -f conftest.err conftest.$ac_objext \
37583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37584fi
37585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37587if test `eval echo '${'$as_ac_var'}'` = yes; then
37588 cat >>confdefs.h <<_ACEOF
37589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37590_ACEOF
37591 break
37592fi
37593done
37594
37595
56632e81
MW
37596
37597 for wx_func in strtok_r
37598 do
37599 echo "$as_me:$LINENO: checking for $wx_func" >&5
37600echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37601if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37602 echo $ECHO_N "(cached) $ECHO_C" >&6
37603else
56632e81
MW
37604
37605 cat >conftest.$ac_ext <<_ACEOF
37606
37607 /* confdefs.h. */
a848cd7e
SC
37608_ACEOF
37609cat confdefs.h >>conftest.$ac_ext
37610cat >>conftest.$ac_ext <<_ACEOF
37611/* end confdefs.h. */
56632e81
MW
37612
37613 #define _REENTRANT
37614 $ac_includes_default
37615
a848cd7e
SC
37616int
37617main ()
37618{
56632e81
MW
37619
37620 #ifndef $wx_func
37621 &$wx_func;
37622 #endif
37623
5acfd58d 37624
a848cd7e
SC
37625 ;
37626 return 0;
37627}
56632e81 37628
a848cd7e 37629_ACEOF
56632e81
MW
37630rm -f conftest.$ac_objext conftest$ac_exeext
37631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37632 (eval $ac_link) 2>conftest.er1
a848cd7e 37633 ac_status=$?
ac1cb8d3
VS
37634 grep -v '^ *+' conftest.er1 >conftest.err
37635 rm -f conftest.er1
37636 cat conftest.err >&5
a848cd7e
SC
37637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638 (exit $ac_status); } &&
ca5c6ac3 37639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37641 (eval $ac_try) 2>&5
37642 ac_status=$?
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); }; } &&
56632e81 37645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37648 ac_status=$?
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; }; then
56632e81 37651 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37652else
37653 echo "$as_me: failed program was:" >&5
37654sed 's/^/| /' conftest.$ac_ext >&5
37655
56632e81 37656eval wx_cv_func_$wx_func=no
a848cd7e 37657fi
56632e81
MW
37658rm -f conftest.err conftest.$ac_objext \
37659 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37660
56632e81
MW
37661fi
37662echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37663echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37664
56632e81
MW
37665 if eval test \$wx_cv_func_$wx_func = yes
37666 then
37667 cat >>confdefs.h <<_ACEOF
37668#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37669_ACEOF
37670
37671
56632e81
MW
37672 else
37673 :
5acfd58d 37674
56632e81
MW
37675 fi
37676 done
5acfd58d 37677
a848cd7e 37678
a848cd7e
SC
37679INET_LINK=
37680
37681for ac_func in inet_addr
37682do
37683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37684echo "$as_me:$LINENO: checking for $ac_func" >&5
37685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37686if eval "test \"\${$as_ac_var+set}\" = set"; then
37687 echo $ECHO_N "(cached) $ECHO_C" >&6
37688else
37689 cat >conftest.$ac_ext <<_ACEOF
37690/* confdefs.h. */
37691_ACEOF
37692cat confdefs.h >>conftest.$ac_ext
37693cat >>conftest.$ac_ext <<_ACEOF
37694/* end confdefs.h. */
ac1cb8d3
VS
37695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37697#define $ac_func innocuous_$ac_func
37698
a848cd7e
SC
37699/* System header to define __stub macros and hopefully few prototypes,
37700 which can conflict with char $ac_func (); below.
37701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37703
a848cd7e
SC
37704#ifdef __STDC__
37705# include <limits.h>
37706#else
37707# include <assert.h>
37708#endif
ac1cb8d3
VS
37709
37710#undef $ac_func
37711
a848cd7e
SC
37712/* Override any gcc2 internal prototype to avoid an error. */
37713#ifdef __cplusplus
37714extern "C"
37715{
37716#endif
37717/* We use char because int might match the return type of a gcc2
37718 builtin and then its argument prototype would still apply. */
37719char $ac_func ();
37720/* The GNU C library defines this for functions which it implements
37721 to always fail with ENOSYS. Some functions are actually named
37722 something starting with __ and the normal name is an alias. */
37723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37724choke me
37725#else
37726char (*f) () = $ac_func;
37727#endif
37728#ifdef __cplusplus
37729}
37730#endif
37731
37732int
37733main ()
37734{
37735return f != $ac_func;
37736 ;
37737 return 0;
37738}
37739_ACEOF
37740rm -f conftest.$ac_objext conftest$ac_exeext
37741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37742 (eval $ac_link) 2>conftest.er1
a848cd7e 37743 ac_status=$?
ac1cb8d3
VS
37744 grep -v '^ *+' conftest.er1 >conftest.err
37745 rm -f conftest.er1
37746 cat conftest.err >&5
a848cd7e
SC
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); } &&
ca5c6ac3 37749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37752 ac_status=$?
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; } &&
37755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757 (eval $ac_try) 2>&5
37758 ac_status=$?
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); }; }; then
37761 eval "$as_ac_var=yes"
37762else
37763 echo "$as_me: failed program was:" >&5
37764sed 's/^/| /' conftest.$ac_ext >&5
37765
37766eval "$as_ac_var=no"
37767fi
ac1cb8d3
VS
37768rm -f conftest.err conftest.$ac_objext \
37769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37770fi
37771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37773if test `eval echo '${'$as_ac_var'}'` = yes; then
37774 cat >>confdefs.h <<_ACEOF
37775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37776_ACEOF
37777 cat >>confdefs.h <<\_ACEOF
37778#define HAVE_INET_ADDR 1
37779_ACEOF
37780
37781else
37782
37783 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37784echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37785if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37786 echo $ECHO_N "(cached) $ECHO_C" >&6
37787else
37788 ac_check_lib_save_LIBS=$LIBS
37789LIBS="-lnsl $LIBS"
37790cat >conftest.$ac_ext <<_ACEOF
37791/* confdefs.h. */
37792_ACEOF
37793cat confdefs.h >>conftest.$ac_ext
37794cat >>conftest.$ac_ext <<_ACEOF
37795/* end confdefs.h. */
37796
37797/* Override any gcc2 internal prototype to avoid an error. */
37798#ifdef __cplusplus
37799extern "C"
37800#endif
37801/* We use char because int might match the return type of a gcc2
37802 builtin and then its argument prototype would still apply. */
37803char inet_addr ();
37804int
37805main ()
37806{
37807inet_addr ();
37808 ;
37809 return 0;
37810}
37811_ACEOF
37812rm -f conftest.$ac_objext conftest$ac_exeext
37813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37814 (eval $ac_link) 2>conftest.er1
a848cd7e 37815 ac_status=$?
ac1cb8d3
VS
37816 grep -v '^ *+' conftest.er1 >conftest.err
37817 rm -f conftest.er1
37818 cat conftest.err >&5
a848cd7e
SC
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); } &&
ca5c6ac3 37821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823 (eval $ac_try) 2>&5
37824 ac_status=$?
37825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826 (exit $ac_status); }; } &&
37827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37829 (eval $ac_try) 2>&5
37830 ac_status=$?
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); }; }; then
37833 ac_cv_lib_nsl_inet_addr=yes
37834else
37835 echo "$as_me: failed program was:" >&5
37836sed 's/^/| /' conftest.$ac_ext >&5
37837
37838ac_cv_lib_nsl_inet_addr=no
37839fi
ac1cb8d3
VS
37840rm -f conftest.err conftest.$ac_objext \
37841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37842LIBS=$ac_check_lib_save_LIBS
37843fi
37844echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37845echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37846if test $ac_cv_lib_nsl_inet_addr = yes; then
37847 INET_LINK="nsl"
37848else
37849
37850 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37851echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37852if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37853 echo $ECHO_N "(cached) $ECHO_C" >&6
37854else
37855 ac_check_lib_save_LIBS=$LIBS
37856LIBS="-lresolv $LIBS"
37857cat >conftest.$ac_ext <<_ACEOF
37858/* confdefs.h. */
37859_ACEOF
37860cat confdefs.h >>conftest.$ac_ext
37861cat >>conftest.$ac_ext <<_ACEOF
37862/* end confdefs.h. */
37863
37864/* Override any gcc2 internal prototype to avoid an error. */
37865#ifdef __cplusplus
37866extern "C"
37867#endif
37868/* We use char because int might match the return type of a gcc2
37869 builtin and then its argument prototype would still apply. */
37870char inet_addr ();
37871int
37872main ()
37873{
37874inet_addr ();
37875 ;
37876 return 0;
37877}
37878_ACEOF
37879rm -f conftest.$ac_objext conftest$ac_exeext
37880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37881 (eval $ac_link) 2>conftest.er1
a848cd7e 37882 ac_status=$?
ac1cb8d3
VS
37883 grep -v '^ *+' conftest.er1 >conftest.err
37884 rm -f conftest.er1
37885 cat conftest.err >&5
a848cd7e
SC
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); } &&
ca5c6ac3 37888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890 (eval $ac_try) 2>&5
37891 ac_status=$?
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); }; } &&
37894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37896 (eval $ac_try) 2>&5
37897 ac_status=$?
37898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899 (exit $ac_status); }; }; then
37900 ac_cv_lib_resolv_inet_addr=yes
37901else
37902 echo "$as_me: failed program was:" >&5
37903sed 's/^/| /' conftest.$ac_ext >&5
37904
37905ac_cv_lib_resolv_inet_addr=no
37906fi
ac1cb8d3
VS
37907rm -f conftest.err conftest.$ac_objext \
37908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37909LIBS=$ac_check_lib_save_LIBS
37910fi
37911echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37912echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37913if test $ac_cv_lib_resolv_inet_addr = yes; then
37914 INET_LINK="resolv"
37915else
37916
37917 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37918echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37919if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37920 echo $ECHO_N "(cached) $ECHO_C" >&6
37921else
37922 ac_check_lib_save_LIBS=$LIBS
37923LIBS="-lsocket $LIBS"
37924cat >conftest.$ac_ext <<_ACEOF
37925/* confdefs.h. */
37926_ACEOF
37927cat confdefs.h >>conftest.$ac_ext
37928cat >>conftest.$ac_ext <<_ACEOF
37929/* end confdefs.h. */
37930
37931/* Override any gcc2 internal prototype to avoid an error. */
37932#ifdef __cplusplus
37933extern "C"
37934#endif
37935/* We use char because int might match the return type of a gcc2
37936 builtin and then its argument prototype would still apply. */
37937char inet_addr ();
37938int
37939main ()
37940{
37941inet_addr ();
37942 ;
37943 return 0;
37944}
37945_ACEOF
37946rm -f conftest.$ac_objext conftest$ac_exeext
37947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37948 (eval $ac_link) 2>conftest.er1
a848cd7e 37949 ac_status=$?
ac1cb8d3
VS
37950 grep -v '^ *+' conftest.er1 >conftest.err
37951 rm -f conftest.er1
37952 cat conftest.err >&5
a848cd7e
SC
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); } &&
ca5c6ac3 37955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957 (eval $ac_try) 2>&5
37958 ac_status=$?
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; } &&
37961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37963 (eval $ac_try) 2>&5
37964 ac_status=$?
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); }; }; then
37967 ac_cv_lib_socket_inet_addr=yes
37968else
37969 echo "$as_me: failed program was:" >&5
37970sed 's/^/| /' conftest.$ac_ext >&5
37971
37972ac_cv_lib_socket_inet_addr=no
37973fi
ac1cb8d3
VS
37974rm -f conftest.err conftest.$ac_objext \
37975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37976LIBS=$ac_check_lib_save_LIBS
37977fi
37978echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37979echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37980if test $ac_cv_lib_socket_inet_addr = yes; then
37981 INET_LINK="socket"
37982
37983fi
37984
37985
37986
37987fi
37988
37989
37990
37991fi
37992
37993
37994
37995fi
37996done
37997
37998
37999
38000for ac_func in inet_aton
38001do
38002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38003echo "$as_me:$LINENO: checking for $ac_func" >&5
38004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38005if eval "test \"\${$as_ac_var+set}\" = set"; then
38006 echo $ECHO_N "(cached) $ECHO_C" >&6
38007else
38008 cat >conftest.$ac_ext <<_ACEOF
38009/* confdefs.h. */
38010_ACEOF
38011cat confdefs.h >>conftest.$ac_ext
38012cat >>conftest.$ac_ext <<_ACEOF
38013/* end confdefs.h. */
ac1cb8d3
VS
38014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38016#define $ac_func innocuous_$ac_func
38017
a848cd7e
SC
38018/* System header to define __stub macros and hopefully few prototypes,
38019 which can conflict with char $ac_func (); below.
38020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38022
a848cd7e
SC
38023#ifdef __STDC__
38024# include <limits.h>
38025#else
38026# include <assert.h>
38027#endif
ac1cb8d3
VS
38028
38029#undef $ac_func
38030
a848cd7e
SC
38031/* Override any gcc2 internal prototype to avoid an error. */
38032#ifdef __cplusplus
38033extern "C"
38034{
38035#endif
38036/* We use char because int might match the return type of a gcc2
38037 builtin and then its argument prototype would still apply. */
38038char $ac_func ();
38039/* The GNU C library defines this for functions which it implements
38040 to always fail with ENOSYS. Some functions are actually named
38041 something starting with __ and the normal name is an alias. */
38042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38043choke me
38044#else
38045char (*f) () = $ac_func;
38046#endif
38047#ifdef __cplusplus
38048}
38049#endif
38050
38051int
38052main ()
38053{
38054return f != $ac_func;
38055 ;
38056 return 0;
38057}
38058_ACEOF
38059rm -f conftest.$ac_objext conftest$ac_exeext
38060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38061 (eval $ac_link) 2>conftest.er1
a848cd7e 38062 ac_status=$?
ac1cb8d3
VS
38063 grep -v '^ *+' conftest.er1 >conftest.err
38064 rm -f conftest.er1
38065 cat conftest.err >&5
a848cd7e
SC
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); } &&
ca5c6ac3 38068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38071 ac_status=$?
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; } &&
38074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38076 (eval $ac_try) 2>&5
38077 ac_status=$?
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); }; }; then
38080 eval "$as_ac_var=yes"
38081else
38082 echo "$as_me: failed program was:" >&5
38083sed 's/^/| /' conftest.$ac_ext >&5
38084
38085eval "$as_ac_var=no"
38086fi
ac1cb8d3
VS
38087rm -f conftest.err conftest.$ac_objext \
38088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38089fi
38090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38092if test `eval echo '${'$as_ac_var'}'` = yes; then
38093 cat >>confdefs.h <<_ACEOF
38094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38095_ACEOF
38096 cat >>confdefs.h <<\_ACEOF
38097#define HAVE_INET_ATON 1
38098_ACEOF
38099
38100else
38101
38102 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38103echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38104echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38105if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38106 echo $ECHO_N "(cached) $ECHO_C" >&6
38107else
38108 ac_check_lib_save_LIBS=$LIBS
38109LIBS="-l$INET_LINK $LIBS"
38110cat >conftest.$ac_ext <<_ACEOF
38111/* confdefs.h. */
38112_ACEOF
38113cat confdefs.h >>conftest.$ac_ext
38114cat >>conftest.$ac_ext <<_ACEOF
38115/* end confdefs.h. */
38116
38117/* Override any gcc2 internal prototype to avoid an error. */
38118#ifdef __cplusplus
38119extern "C"
38120#endif
38121/* We use char because int might match the return type of a gcc2
38122 builtin and then its argument prototype would still apply. */
38123char inet_aton ();
38124int
38125main ()
38126{
38127inet_aton ();
38128 ;
38129 return 0;
38130}
38131_ACEOF
38132rm -f conftest.$ac_objext conftest$ac_exeext
38133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38134 (eval $ac_link) 2>conftest.er1
a848cd7e 38135 ac_status=$?
ac1cb8d3
VS
38136 grep -v '^ *+' conftest.er1 >conftest.err
38137 rm -f conftest.er1
38138 cat conftest.err >&5
a848cd7e
SC
38139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); } &&
ca5c6ac3 38141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38143 (eval $ac_try) 2>&5
38144 ac_status=$?
38145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); }; } &&
38147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38149 (eval $ac_try) 2>&5
38150 ac_status=$?
38151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38152 (exit $ac_status); }; }; then
38153 eval "$as_ac_Lib=yes"
38154else
38155 echo "$as_me: failed program was:" >&5
38156sed 's/^/| /' conftest.$ac_ext >&5
38157
38158eval "$as_ac_Lib=no"
38159fi
ac1cb8d3
VS
38160rm -f conftest.err conftest.$ac_objext \
38161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38162LIBS=$ac_check_lib_save_LIBS
38163fi
38164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38165echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38166if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38167 cat >>confdefs.h <<\_ACEOF
38168#define HAVE_INET_ATON 1
38169_ACEOF
38170
38171fi
38172
38173
38174fi
38175done
38176
38177
38178if test "x$INET_LINK" != "x"; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define HAVE_INET_ADDR 1
38181_ACEOF
38182
38183 INET_LINK=" -l$INET_LINK"
38184fi
38185
38186fi
38187
38188
38189
38190EXTRALIBS_ESD=
38191echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38192echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38193if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38194 echo $ECHO_N "(cached) $ECHO_C" >&6
38195else
38196 ac_check_lib_save_LIBS=$LIBS
38197LIBS="-lesd $LIBS"
38198cat >conftest.$ac_ext <<_ACEOF
38199/* confdefs.h. */
38200_ACEOF
38201cat confdefs.h >>conftest.$ac_ext
38202cat >>conftest.$ac_ext <<_ACEOF
38203/* end confdefs.h. */
38204
38205/* Override any gcc2 internal prototype to avoid an error. */
38206#ifdef __cplusplus
38207extern "C"
38208#endif
38209/* We use char because int might match the return type of a gcc2
38210 builtin and then its argument prototype would still apply. */
38211char esd_close ();
38212int
38213main ()
38214{
38215esd_close ();
38216 ;
38217 return 0;
38218}
38219_ACEOF
38220rm -f conftest.$ac_objext conftest$ac_exeext
38221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38222 (eval $ac_link) 2>conftest.er1
a848cd7e 38223 ac_status=$?
ac1cb8d3
VS
38224 grep -v '^ *+' conftest.er1 >conftest.err
38225 rm -f conftest.er1
38226 cat conftest.err >&5
a848cd7e
SC
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); } &&
ca5c6ac3 38229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38231 (eval $ac_try) 2>&5
38232 ac_status=$?
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); }; } &&
38235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38238 ac_status=$?
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; }; then
38241 ac_cv_lib_esd_esd_close=yes
38242else
38243 echo "$as_me: failed program was:" >&5
38244sed 's/^/| /' conftest.$ac_ext >&5
38245
38246ac_cv_lib_esd_esd_close=no
38247fi
ac1cb8d3
VS
38248rm -f conftest.err conftest.$ac_objext \
38249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38250LIBS=$ac_check_lib_save_LIBS
38251fi
38252echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38253echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38254if test $ac_cv_lib_esd_esd_close = yes; then
38255
38256
38257for ac_header in esd.h
38258do
38259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38260if eval "test \"\${$as_ac_Header+set}\" = set"; then
38261 echo "$as_me:$LINENO: checking for $ac_header" >&5
38262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38263if eval "test \"\${$as_ac_Header+set}\" = set"; then
38264 echo $ECHO_N "(cached) $ECHO_C" >&6
38265fi
38266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38268else
38269 # Is the header compilable?
38270echo "$as_me:$LINENO: checking $ac_header usability" >&5
38271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38272cat >conftest.$ac_ext <<_ACEOF
38273/* confdefs.h. */
38274_ACEOF
38275cat confdefs.h >>conftest.$ac_ext
38276cat >>conftest.$ac_ext <<_ACEOF
38277/* end confdefs.h. */
38278$ac_includes_default
38279#include <$ac_header>
38280_ACEOF
38281rm -f conftest.$ac_objext
38282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38283 (eval $ac_compile) 2>conftest.er1
a848cd7e 38284 ac_status=$?
ac1cb8d3
VS
38285 grep -v '^ *+' conftest.er1 >conftest.err
38286 rm -f conftest.er1
38287 cat conftest.err >&5
a848cd7e
SC
38288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); } &&
ca5c6ac3 38290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292 (eval $ac_try) 2>&5
38293 ac_status=$?
38294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295 (exit $ac_status); }; } &&
38296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298 (eval $ac_try) 2>&5
38299 ac_status=$?
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); }; }; then
38302 ac_header_compiler=yes
38303else
38304 echo "$as_me: failed program was:" >&5
38305sed 's/^/| /' conftest.$ac_ext >&5
38306
38307ac_header_compiler=no
38308fi
ac1cb8d3 38309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38311echo "${ECHO_T}$ac_header_compiler" >&6
38312
38313# Is the header present?
38314echo "$as_me:$LINENO: checking $ac_header presence" >&5
38315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38316cat >conftest.$ac_ext <<_ACEOF
38317/* confdefs.h. */
38318_ACEOF
38319cat confdefs.h >>conftest.$ac_ext
38320cat >>conftest.$ac_ext <<_ACEOF
38321/* end confdefs.h. */
38322#include <$ac_header>
38323_ACEOF
38324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38326 ac_status=$?
38327 grep -v '^ *+' conftest.er1 >conftest.err
38328 rm -f conftest.er1
38329 cat conftest.err >&5
38330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331 (exit $ac_status); } >/dev/null; then
38332 if test -s conftest.err; then
5d7b7554
VZ
38333 ac_cpp_err=$ac_cxx_preproc_warn_flag
38334 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38335 else
38336 ac_cpp_err=
38337 fi
38338else
38339 ac_cpp_err=yes
38340fi
38341if test -z "$ac_cpp_err"; then
38342 ac_header_preproc=yes
38343else
38344 echo "$as_me: failed program was:" >&5
38345sed 's/^/| /' conftest.$ac_ext >&5
38346
38347 ac_header_preproc=no
38348fi
38349rm -f conftest.err conftest.$ac_ext
38350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38351echo "${ECHO_T}$ac_header_preproc" >&6
38352
38353# So? What about this header?
5d7b7554 38354case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38355 yes:no: )
a848cd7e
SC
38356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38360 ac_header_preproc=yes
a848cd7e 38361 ;;
ac1cb8d3 38362 no:yes:* )
a848cd7e
SC
38363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38375 (
38376 cat <<\_ASBOX
ac1cb8d3
VS
38377## ----------------------------------------- ##
38378## Report this to wx-dev@lists.wxwidgets.org ##
38379## ----------------------------------------- ##
a848cd7e
SC
38380_ASBOX
38381 ) |
38382 sed "s/^/$as_me: WARNING: /" >&2
38383 ;;
38384esac
38385echo "$as_me:$LINENO: checking for $ac_header" >&5
38386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38387if eval "test \"\${$as_ac_Header+set}\" = set"; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38389else
ac1cb8d3 38390 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38391fi
38392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38394
38395fi
38396if test `eval echo '${'$as_ac_Header'}'` = yes; then
38397 cat >>confdefs.h <<_ACEOF
38398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38399_ACEOF
38400
38401 EXTRALIBS_ESD="-lesd"
38402
38403fi
38404
38405done
38406
38407
38408fi
38409
38410
38411
38412echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38413echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38414cat >conftest.$ac_ext <<_ACEOF
38415/* confdefs.h. */
38416_ACEOF
38417cat confdefs.h >>conftest.$ac_ext
38418cat >>conftest.$ac_ext <<_ACEOF
38419/* end confdefs.h. */
38420#ifdef __linux__
38421 #include <linux/cdrom.h>
38422 #else
38423 /* For Solaris */
38424 #include <sys/cdio.h>
38425 #endif
38426
38427int
38428main ()
38429{
38430struct cdrom_tocentry entry, old_entry;
38431 ;
38432 return 0;
38433}
38434_ACEOF
38435rm -f conftest.$ac_objext
38436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38437 (eval $ac_compile) 2>conftest.er1
a848cd7e 38438 ac_status=$?
ac1cb8d3
VS
38439 grep -v '^ *+' conftest.er1 >conftest.err
38440 rm -f conftest.er1
38441 cat conftest.err >&5
a848cd7e
SC
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); } &&
ca5c6ac3 38444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; } &&
38450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38452 (eval $ac_try) 2>&5
38453 ac_status=$?
38454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); }; }; then
38456 echo "$as_me:$LINENO: result: yes" >&5
38457echo "${ECHO_T}yes" >&6
38458 cat >>confdefs.h <<\_ACEOF
38459#define HAVE_KNOWN_CDROM_INTERFACE 1
38460_ACEOF
38461
38462else
38463 echo "$as_me: failed program was:" >&5
38464sed 's/^/| /' conftest.$ac_ext >&5
38465
38466echo "$as_me:$LINENO: result: no" >&5
38467echo "${ECHO_T}no" >&6
38468fi
ac1cb8d3 38469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38470
38471
38472cat >confcache <<\_ACEOF
38473# This file is a shell script that caches the results of configure
38474# tests run on this system so they can be shared between configure
38475# scripts and configure runs, see configure's option --config-cache.
38476# It is not useful on other systems. If it contains results you don't
38477# want to keep, you may remove or edit it.
38478#
38479# config.status only pays attention to the cache file if you give it
38480# the --recheck option to rerun configure.
38481#
38482# `ac_cv_env_foo' variables (set or unset) will be overridden when
38483# loading this file, other *unset* `ac_cv_foo' will be assigned the
38484# following values.
38485
38486_ACEOF
38487
38488# The following way of writing the cache mishandles newlines in values,
38489# but we know of no workaround that is simple, portable, and efficient.
38490# So, don't put newlines in cache variables' values.
38491# Ultrix sh set writes to stderr and can't be redirected directly,
38492# and sets the high bit in the cache file unless we assign to the vars.
38493{
38494 (set) 2>&1 |
38495 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38496 *ac_space=\ *)
38497 # `set' does not quote correctly, so add quotes (double-quote
38498 # substitution turns \\\\ into \\, and sed turns \\ into \).
38499 sed -n \
ac1cb8d3
VS
38500 "s/'/'\\\\''/g;
38501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38502 ;;
38503 *)
38504 # `set' quotes correctly as required by POSIX, so do not add quotes.
38505 sed -n \
ac1cb8d3 38506 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38507 ;;
38508 esac;
38509} |
38510 sed '
38511 t clear
38512 : clear
38513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38514 t end
38515 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38516 : end' >>confcache
38517if diff $cache_file confcache >/dev/null 2>&1; then :; else
38518 if test -w $cache_file; then
38519 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38520 cat confcache >$cache_file
38521 else
38522 echo "not updating unwritable cache $cache_file"
38523 fi
38524fi
38525rm -f confcache
38526
38527
a848cd7e
SC
38528if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38529
38530
38531 THREADS_LINK=
e56f4f9e 38532 THREADS_CXXFLAGS=
a848cd7e
SC
38533
38534 if test "$wxUSE_THREADS" = "yes" ; then
38535 if test "$USE_BEOS" = 1; then
38536 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38537echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38538 wxUSE_THREADS="no"
38539 fi
38540 fi
38541
38542 if test "$wxUSE_THREADS" = "yes" ; then
38543
38544
38545 THREAD_OPTS="-pthread"
38546 case "${host}" in
38547 *-*-solaris2* | *-*-sunos4* )
38548 if test "x$GCC" = "xyes"; then
38549 THREAD_OPTS="-pthreads $THREAD_OPTS"
38550 else
38551 THREAD_OPTS="-mt $THREAD_OPTS"
38552 fi
38553 ;;
38554 *-*-freebsd*)
38555 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38556 ;;
38557 *-*-darwin* | *-*-cygwin* )
38558 THREAD_OPTS=""
38559 ;;
38560 *-*-aix*)
38561 THREAD_OPTS="pthreads"
38562 ;;
38563 *-hp-hpux* )
00421666
MW
38564 if test "x$GCC" = "xyes"; then
38565 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38566 THREAD_OPTS=""
38567 else
0093c2fc 38568 THREAD_OPTS="-mt"
a848cd7e
SC
38569 fi
38570 ;;
38571
38572 *-*-irix* )
38573 if test "x$GCC" = "xyes"; then
38574 THREAD_OPTS=""
38575 fi
38576 ;;
38577
38578 *-*-*UnixWare*)
38579 if test "x$GCC" != "xyes"; then
38580 THREAD_OPTS="-Ethread"
38581 fi
38582 ;;
38583 esac
38584
38585 THREAD_OPTS="$THREAD_OPTS pthread none"
38586
38587 THREADS_OK=no
38588 for flag in $THREAD_OPTS; do
38589 case $flag in
38590 none)
38591 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38592echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38593 ;;
38594
38595 -*)
38596 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38597echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38598 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38599 ;;
38600
38601 *)
38602 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38603echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38604 THREADS_LINK="-l$flag"
38605 ;;
38606 esac
38607
38608 save_LIBS="$LIBS"
e56f4f9e 38609 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38610 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38611 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38612
38613 cat >conftest.$ac_ext <<_ACEOF
38614/* confdefs.h. */
38615_ACEOF
38616cat confdefs.h >>conftest.$ac_ext
38617cat >>conftest.$ac_ext <<_ACEOF
38618/* end confdefs.h. */
38619#include <pthread.h>
38620int
38621main ()
38622{
38623pthread_create(0,0,0,0);
38624 ;
38625 return 0;
38626}
38627_ACEOF
38628rm -f conftest.$ac_objext conftest$ac_exeext
38629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38630 (eval $ac_link) 2>conftest.er1
a848cd7e 38631 ac_status=$?
ac1cb8d3
VS
38632 grep -v '^ *+' conftest.er1 >conftest.err
38633 rm -f conftest.er1
38634 cat conftest.err >&5
a848cd7e
SC
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); } &&
ca5c6ac3 38637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38639 (eval $ac_try) 2>&5
38640 ac_status=$?
38641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38642 (exit $ac_status); }; } &&
38643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38645 (eval $ac_try) 2>&5
38646 ac_status=$?
38647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648 (exit $ac_status); }; }; then
38649 THREADS_OK=yes
38650else
38651 echo "$as_me: failed program was:" >&5
38652sed 's/^/| /' conftest.$ac_ext >&5
38653
38654fi
ac1cb8d3
VS
38655rm -f conftest.err conftest.$ac_objext \
38656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38657
38658 LIBS="$save_LIBS"
e56f4f9e 38659 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38660
38661 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38662echo "${ECHO_T}$THREADS_OK" >&6
38663 if test "x$THREADS_OK" = "xyes"; then
38664 break;
38665 fi
38666
38667 THREADS_LINK=""
e56f4f9e 38668 THREADS_CXXFLAGS=""
a848cd7e
SC
38669 done
38670
38671 if test "x$THREADS_OK" != "xyes"; then
38672 wxUSE_THREADS=no
38673 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38674echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38675 else
e56f4f9e 38676 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38677 LIBS="$THREADS_LINK $LIBS"
38678
38679 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38680echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38681 flag=no
38682 case "${host}" in
38683 *-aix*)
38684 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38685 flag="-D_THREAD_SAFE"
38686 ;;
38687 *-freebsd*)
38688 flag="-D_THREAD_SAFE"
38689 ;;
38690 *-hp-hpux* )
38691 flag="-D_REENTRANT"
38692 if test "x$GCC" != "xyes"; then
38693 flag="$flag -D_RWSTD_MULTI_THREAD"
38694 fi
38695 ;;
38696 *solaris* | alpha*-osf*)
38697 flag="-D_REENTRANT"
38698 ;;
38699 esac
38700 echo "$as_me:$LINENO: result: ${flag}" >&5
38701echo "${ECHO_T}${flag}" >&6
38702 if test "x$flag" != xno; then
e56f4f9e 38703 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38704 fi
38705
e56f4f9e 38706 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38707 fi
38708 fi
38709
38710 if test "$wxUSE_THREADS" = "yes" ; then
38711
38712for ac_func in thr_setconcurrency
38713do
38714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38715echo "$as_me:$LINENO: checking for $ac_func" >&5
38716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38717if eval "test \"\${$as_ac_var+set}\" = set"; then
38718 echo $ECHO_N "(cached) $ECHO_C" >&6
38719else
38720 cat >conftest.$ac_ext <<_ACEOF
38721/* confdefs.h. */
38722_ACEOF
38723cat confdefs.h >>conftest.$ac_ext
38724cat >>conftest.$ac_ext <<_ACEOF
38725/* end confdefs.h. */
ac1cb8d3
VS
38726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38728#define $ac_func innocuous_$ac_func
38729
a848cd7e
SC
38730/* System header to define __stub macros and hopefully few prototypes,
38731 which can conflict with char $ac_func (); below.
38732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38733 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38734
a848cd7e
SC
38735#ifdef __STDC__
38736# include <limits.h>
38737#else
38738# include <assert.h>
38739#endif
ac1cb8d3
VS
38740
38741#undef $ac_func
38742
a848cd7e
SC
38743/* Override any gcc2 internal prototype to avoid an error. */
38744#ifdef __cplusplus
38745extern "C"
38746{
38747#endif
38748/* We use char because int might match the return type of a gcc2
38749 builtin and then its argument prototype would still apply. */
38750char $ac_func ();
38751/* The GNU C library defines this for functions which it implements
38752 to always fail with ENOSYS. Some functions are actually named
38753 something starting with __ and the normal name is an alias. */
38754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38755choke me
38756#else
38757char (*f) () = $ac_func;
38758#endif
38759#ifdef __cplusplus
38760}
38761#endif
38762
38763int
38764main ()
38765{
38766return f != $ac_func;
38767 ;
38768 return 0;
38769}
38770_ACEOF
38771rm -f conftest.$ac_objext conftest$ac_exeext
38772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38773 (eval $ac_link) 2>conftest.er1
a848cd7e 38774 ac_status=$?
ac1cb8d3
VS
38775 grep -v '^ *+' conftest.er1 >conftest.err
38776 rm -f conftest.er1
38777 cat conftest.err >&5
a848cd7e
SC
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } &&
ca5c6ac3 38780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; } &&
38786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38788 (eval $ac_try) 2>&5
38789 ac_status=$?
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); }; }; then
38792 eval "$as_ac_var=yes"
38793else
38794 echo "$as_me: failed program was:" >&5
38795sed 's/^/| /' conftest.$ac_ext >&5
38796
38797eval "$as_ac_var=no"
38798fi
ac1cb8d3
VS
38799rm -f conftest.err conftest.$ac_objext \
38800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38801fi
38802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38804if test `eval echo '${'$as_ac_var'}'` = yes; then
38805 cat >>confdefs.h <<_ACEOF
38806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38807_ACEOF
38808
38809fi
38810done
38811
38812
6ebeb4c7
VZ
38813 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38814echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38815if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38816 echo $ECHO_N "(cached) $ECHO_C" >&6
38817else
38818
38819 cat >conftest.$ac_ext <<_ACEOF
38820/* confdefs.h. */
38821_ACEOF
38822cat confdefs.h >>conftest.$ac_ext
38823cat >>conftest.$ac_ext <<_ACEOF
38824/* end confdefs.h. */
38825#include <pthread.h>
38826 void ThreadCleanupFunc(void *p);
38827
38828int
38829main ()
38830{
38831
38832 void *p;
38833 pthread_cleanup_push(ThreadCleanupFunc, p);
38834 pthread_cleanup_pop(0);
38835
38836 ;
38837 return 0;
38838}
38839_ACEOF
38840rm -f conftest.$ac_objext
38841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38842 (eval $ac_compile) 2>conftest.er1
38843 ac_status=$?
38844 grep -v '^ *+' conftest.er1 >conftest.err
38845 rm -f conftest.er1
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
ca5c6ac3 38849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851 (eval $ac_try) 2>&5
38852 ac_status=$?
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); }; } &&
38855 { ac_try='test -s conftest.$ac_objext'
38856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857 (eval $ac_try) 2>&5
38858 ac_status=$?
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); }; }; then
38861
38862 wx_cv_func_pthread_cleanup=yes
38863
38864else
38865 echo "$as_me: failed program was:" >&5
38866sed 's/^/| /' conftest.$ac_ext >&5
38867
38868
38869 wx_cv_func_pthread_cleanup=no
38870
38871
38872fi
38873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38874
38875fi
38876echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38877echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38878 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38879 cat >>confdefs.h <<\_ACEOF
38880#define wxHAVE_PTHREAD_CLEANUP 1
38881_ACEOF
38882
38883 fi
38884
a848cd7e
SC
38885
38886for ac_header in sched.h
38887do
38888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38889if eval "test \"\${$as_ac_Header+set}\" = set"; then
38890 echo "$as_me:$LINENO: checking for $ac_header" >&5
38891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38892if eval "test \"\${$as_ac_Header+set}\" = set"; then
38893 echo $ECHO_N "(cached) $ECHO_C" >&6
38894fi
38895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38897else
38898 # Is the header compilable?
38899echo "$as_me:$LINENO: checking $ac_header usability" >&5
38900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38901cat >conftest.$ac_ext <<_ACEOF
38902/* confdefs.h. */
38903_ACEOF
38904cat confdefs.h >>conftest.$ac_ext
38905cat >>conftest.$ac_ext <<_ACEOF
38906/* end confdefs.h. */
38907$ac_includes_default
38908#include <$ac_header>
38909_ACEOF
38910rm -f conftest.$ac_objext
38911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38912 (eval $ac_compile) 2>conftest.er1
a848cd7e 38913 ac_status=$?
ac1cb8d3
VS
38914 grep -v '^ *+' conftest.er1 >conftest.err
38915 rm -f conftest.er1
38916 cat conftest.err >&5
a848cd7e
SC
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); } &&
ca5c6ac3 38919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921 (eval $ac_try) 2>&5
38922 ac_status=$?
38923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; } &&
38925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927 (eval $ac_try) 2>&5
38928 ac_status=$?
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); }; }; then
38931 ac_header_compiler=yes
38932else
38933 echo "$as_me: failed program was:" >&5
38934sed 's/^/| /' conftest.$ac_ext >&5
38935
38936ac_header_compiler=no
38937fi
ac1cb8d3 38938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38940echo "${ECHO_T}$ac_header_compiler" >&6
38941
38942# Is the header present?
38943echo "$as_me:$LINENO: checking $ac_header presence" >&5
38944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38945cat >conftest.$ac_ext <<_ACEOF
38946/* confdefs.h. */
38947_ACEOF
38948cat confdefs.h >>conftest.$ac_ext
38949cat >>conftest.$ac_ext <<_ACEOF
38950/* end confdefs.h. */
38951#include <$ac_header>
38952_ACEOF
38953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38955 ac_status=$?
38956 grep -v '^ *+' conftest.er1 >conftest.err
38957 rm -f conftest.er1
38958 cat conftest.err >&5
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); } >/dev/null; then
38961 if test -s conftest.err; then
5d7b7554
VZ
38962 ac_cpp_err=$ac_cxx_preproc_warn_flag
38963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38964 else
38965 ac_cpp_err=
38966 fi
38967else
38968 ac_cpp_err=yes
38969fi
38970if test -z "$ac_cpp_err"; then
38971 ac_header_preproc=yes
38972else
38973 echo "$as_me: failed program was:" >&5
38974sed 's/^/| /' conftest.$ac_ext >&5
38975
38976 ac_header_preproc=no
38977fi
38978rm -f conftest.err conftest.$ac_ext
38979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38980echo "${ECHO_T}$ac_header_preproc" >&6
38981
38982# So? What about this header?
5d7b7554 38983case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38984 yes:no: )
a848cd7e
SC
38985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38989 ac_header_preproc=yes
a848cd7e 38990 ;;
ac1cb8d3 38991 no:yes:* )
a848cd7e
SC
38992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39004 (
39005 cat <<\_ASBOX
ac1cb8d3
VS
39006## ----------------------------------------- ##
39007## Report this to wx-dev@lists.wxwidgets.org ##
39008## ----------------------------------------- ##
a848cd7e
SC
39009_ASBOX
39010 ) |
39011 sed "s/^/$as_me: WARNING: /" >&2
39012 ;;
39013esac
39014echo "$as_me:$LINENO: checking for $ac_header" >&5
39015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39016if eval "test \"\${$as_ac_Header+set}\" = set"; then
39017 echo $ECHO_N "(cached) $ECHO_C" >&6
39018else
ac1cb8d3 39019 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39020fi
39021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39023
39024fi
39025if test `eval echo '${'$as_ac_Header'}'` = yes; then
39026 cat >>confdefs.h <<_ACEOF
39027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39028_ACEOF
39029
39030fi
39031
39032done
39033
39034 if test "$ac_cv_header_sched_h" = "yes"; then
39035 echo "$as_me:$LINENO: checking for sched_yield" >&5
39036echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39037if test "${ac_cv_func_sched_yield+set}" = set; then
39038 echo $ECHO_N "(cached) $ECHO_C" >&6
39039else
39040 cat >conftest.$ac_ext <<_ACEOF
39041/* confdefs.h. */
39042_ACEOF
39043cat confdefs.h >>conftest.$ac_ext
39044cat >>conftest.$ac_ext <<_ACEOF
39045/* end confdefs.h. */
ac1cb8d3
VS
39046/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39048#define sched_yield innocuous_sched_yield
39049
a848cd7e
SC
39050/* System header to define __stub macros and hopefully few prototypes,
39051 which can conflict with char sched_yield (); below.
39052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39054
a848cd7e
SC
39055#ifdef __STDC__
39056# include <limits.h>
39057#else
39058# include <assert.h>
39059#endif
ac1cb8d3
VS
39060
39061#undef sched_yield
39062
a848cd7e
SC
39063/* Override any gcc2 internal prototype to avoid an error. */
39064#ifdef __cplusplus
39065extern "C"
39066{
39067#endif
39068/* We use char because int might match the return type of a gcc2
39069 builtin and then its argument prototype would still apply. */
39070char sched_yield ();
39071/* The GNU C library defines this for functions which it implements
39072 to always fail with ENOSYS. Some functions are actually named
39073 something starting with __ and the normal name is an alias. */
39074#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39075choke me
39076#else
39077char (*f) () = sched_yield;
39078#endif
39079#ifdef __cplusplus
39080}
39081#endif
39082
39083int
39084main ()
39085{
39086return f != sched_yield;
39087 ;
39088 return 0;
39089}
39090_ACEOF
39091rm -f conftest.$ac_objext conftest$ac_exeext
39092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39093 (eval $ac_link) 2>conftest.er1
a848cd7e 39094 ac_status=$?
ac1cb8d3
VS
39095 grep -v '^ *+' conftest.er1 >conftest.err
39096 rm -f conftest.er1
39097 cat conftest.err >&5
a848cd7e
SC
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); } &&
ca5c6ac3 39100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39102 (eval $ac_try) 2>&5
39103 ac_status=$?
39104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105 (exit $ac_status); }; } &&
39106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108 (eval $ac_try) 2>&5
39109 ac_status=$?
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); }; }; then
39112 ac_cv_func_sched_yield=yes
39113else
39114 echo "$as_me: failed program was:" >&5
39115sed 's/^/| /' conftest.$ac_ext >&5
39116
39117ac_cv_func_sched_yield=no
39118fi
ac1cb8d3
VS
39119rm -f conftest.err conftest.$ac_objext \
39120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39121fi
39122echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39123echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39124if test $ac_cv_func_sched_yield = yes; then
39125 cat >>confdefs.h <<\_ACEOF
39126#define HAVE_SCHED_YIELD 1
39127_ACEOF
39128
39129else
39130
39131 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39132echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39133if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39134 echo $ECHO_N "(cached) $ECHO_C" >&6
39135else
39136 ac_check_lib_save_LIBS=$LIBS
39137LIBS="-lposix4 $LIBS"
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
39145/* Override any gcc2 internal prototype to avoid an error. */
39146#ifdef __cplusplus
39147extern "C"
39148#endif
39149/* We use char because int might match the return type of a gcc2
39150 builtin and then its argument prototype would still apply. */
39151char sched_yield ();
39152int
39153main ()
39154{
39155sched_yield ();
39156 ;
39157 return 0;
39158}
39159_ACEOF
39160rm -f conftest.$ac_objext conftest$ac_exeext
39161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39162 (eval $ac_link) 2>conftest.er1
a848cd7e 39163 ac_status=$?
ac1cb8d3
VS
39164 grep -v '^ *+' conftest.er1 >conftest.err
39165 rm -f conftest.er1
39166 cat conftest.err >&5
a848cd7e
SC
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); } &&
ca5c6ac3 39169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39171 (eval $ac_try) 2>&5
39172 ac_status=$?
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); }; } &&
39175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39177 (eval $ac_try) 2>&5
39178 ac_status=$?
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); }; }; then
39181 ac_cv_lib_posix4_sched_yield=yes
39182else
39183 echo "$as_me: failed program was:" >&5
39184sed 's/^/| /' conftest.$ac_ext >&5
39185
39186ac_cv_lib_posix4_sched_yield=no
39187fi
ac1cb8d3
VS
39188rm -f conftest.err conftest.$ac_objext \
39189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39190LIBS=$ac_check_lib_save_LIBS
39191fi
39192echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39193echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39194if test $ac_cv_lib_posix4_sched_yield = yes; then
39195 cat >>confdefs.h <<\_ACEOF
39196#define HAVE_SCHED_YIELD 1
39197_ACEOF
39198 POSIX4_LINK=" -lposix4"
39199else
39200 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39201echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39202
39203fi
39204
39205
39206
39207fi
39208
39209 fi
39210
39211 HAVE_PRIOR_FUNCS=0
39212 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39213echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39214if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39215 echo $ECHO_N "(cached) $ECHO_C" >&6
39216else
39217 cat >conftest.$ac_ext <<_ACEOF
39218/* confdefs.h. */
39219_ACEOF
39220cat confdefs.h >>conftest.$ac_ext
39221cat >>conftest.$ac_ext <<_ACEOF
39222/* end confdefs.h. */
ac1cb8d3
VS
39223/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39225#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39226
a848cd7e
SC
39227/* System header to define __stub macros and hopefully few prototypes,
39228 which can conflict with char pthread_attr_getschedpolicy (); below.
39229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39231
a848cd7e
SC
39232#ifdef __STDC__
39233# include <limits.h>
39234#else
39235# include <assert.h>
39236#endif
ac1cb8d3
VS
39237
39238#undef pthread_attr_getschedpolicy
39239
a848cd7e
SC
39240/* Override any gcc2 internal prototype to avoid an error. */
39241#ifdef __cplusplus
39242extern "C"
39243{
39244#endif
39245/* We use char because int might match the return type of a gcc2
39246 builtin and then its argument prototype would still apply. */
39247char pthread_attr_getschedpolicy ();
39248/* The GNU C library defines this for functions which it implements
39249 to always fail with ENOSYS. Some functions are actually named
39250 something starting with __ and the normal name is an alias. */
39251#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39252choke me
39253#else
39254char (*f) () = pthread_attr_getschedpolicy;
39255#endif
39256#ifdef __cplusplus
39257}
39258#endif
39259
39260int
39261main ()
39262{
39263return f != pthread_attr_getschedpolicy;
39264 ;
39265 return 0;
39266}
39267_ACEOF
39268rm -f conftest.$ac_objext conftest$ac_exeext
39269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39270 (eval $ac_link) 2>conftest.er1
a848cd7e 39271 ac_status=$?
ac1cb8d3
VS
39272 grep -v '^ *+' conftest.er1 >conftest.err
39273 rm -f conftest.er1
39274 cat conftest.err >&5
a848cd7e
SC
39275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); } &&
ca5c6ac3 39277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279 (eval $ac_try) 2>&5
39280 ac_status=$?
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); }; } &&
39283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39285 (eval $ac_try) 2>&5
39286 ac_status=$?
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); }; }; then
39289 ac_cv_func_pthread_attr_getschedpolicy=yes
39290else
39291 echo "$as_me: failed program was:" >&5
39292sed 's/^/| /' conftest.$ac_ext >&5
39293
39294ac_cv_func_pthread_attr_getschedpolicy=no
39295fi
ac1cb8d3
VS
39296rm -f conftest.err conftest.$ac_objext \
39297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39298fi
39299echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39300echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39301if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39302 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39303echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39304if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39305 echo $ECHO_N "(cached) $ECHO_C" >&6
39306else
39307 cat >conftest.$ac_ext <<_ACEOF
39308/* confdefs.h. */
39309_ACEOF
39310cat confdefs.h >>conftest.$ac_ext
39311cat >>conftest.$ac_ext <<_ACEOF
39312/* end confdefs.h. */
ac1cb8d3
VS
39313/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39315#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39316
a848cd7e
SC
39317/* System header to define __stub macros and hopefully few prototypes,
39318 which can conflict with char pthread_attr_setschedparam (); below.
39319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39320 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39321
a848cd7e
SC
39322#ifdef __STDC__
39323# include <limits.h>
39324#else
39325# include <assert.h>
39326#endif
ac1cb8d3
VS
39327
39328#undef pthread_attr_setschedparam
39329
a848cd7e
SC
39330/* Override any gcc2 internal prototype to avoid an error. */
39331#ifdef __cplusplus
39332extern "C"
39333{
39334#endif
39335/* We use char because int might match the return type of a gcc2
39336 builtin and then its argument prototype would still apply. */
39337char pthread_attr_setschedparam ();
39338/* The GNU C library defines this for functions which it implements
39339 to always fail with ENOSYS. Some functions are actually named
39340 something starting with __ and the normal name is an alias. */
39341#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39342choke me
39343#else
39344char (*f) () = pthread_attr_setschedparam;
39345#endif
39346#ifdef __cplusplus
39347}
39348#endif
39349
39350int
39351main ()
39352{
39353return f != pthread_attr_setschedparam;
39354 ;
39355 return 0;
39356}
39357_ACEOF
39358rm -f conftest.$ac_objext conftest$ac_exeext
39359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39360 (eval $ac_link) 2>conftest.er1
a848cd7e 39361 ac_status=$?
ac1cb8d3
VS
39362 grep -v '^ *+' conftest.er1 >conftest.err
39363 rm -f conftest.er1
39364 cat conftest.err >&5
a848cd7e
SC
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); } &&
ca5c6ac3 39367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369 (eval $ac_try) 2>&5
39370 ac_status=$?
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); }; } &&
39373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39375 (eval $ac_try) 2>&5
39376 ac_status=$?
39377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378 (exit $ac_status); }; }; then
39379 ac_cv_func_pthread_attr_setschedparam=yes
39380else
39381 echo "$as_me: failed program was:" >&5
39382sed 's/^/| /' conftest.$ac_ext >&5
39383
39384ac_cv_func_pthread_attr_setschedparam=no
39385fi
ac1cb8d3
VS
39386rm -f conftest.err conftest.$ac_objext \
39387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39388fi
39389echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39390echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39391if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39392 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39393echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39394if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39395 echo $ECHO_N "(cached) $ECHO_C" >&6
39396else
39397 cat >conftest.$ac_ext <<_ACEOF
39398/* confdefs.h. */
39399_ACEOF
39400cat confdefs.h >>conftest.$ac_ext
39401cat >>conftest.$ac_ext <<_ACEOF
39402/* end confdefs.h. */
ac1cb8d3
VS
39403/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39405#define sched_get_priority_max innocuous_sched_get_priority_max
39406
a848cd7e
SC
39407/* System header to define __stub macros and hopefully few prototypes,
39408 which can conflict with char sched_get_priority_max (); below.
39409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39411
a848cd7e
SC
39412#ifdef __STDC__
39413# include <limits.h>
39414#else
39415# include <assert.h>
39416#endif
ac1cb8d3
VS
39417
39418#undef sched_get_priority_max
39419
a848cd7e
SC
39420/* Override any gcc2 internal prototype to avoid an error. */
39421#ifdef __cplusplus
39422extern "C"
39423{
39424#endif
39425/* We use char because int might match the return type of a gcc2
39426 builtin and then its argument prototype would still apply. */
39427char sched_get_priority_max ();
39428/* The GNU C library defines this for functions which it implements
39429 to always fail with ENOSYS. Some functions are actually named
39430 something starting with __ and the normal name is an alias. */
39431#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39432choke me
39433#else
39434char (*f) () = sched_get_priority_max;
39435#endif
39436#ifdef __cplusplus
39437}
39438#endif
39439
39440int
39441main ()
39442{
39443return f != sched_get_priority_max;
39444 ;
39445 return 0;
39446}
39447_ACEOF
39448rm -f conftest.$ac_objext conftest$ac_exeext
39449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39450 (eval $ac_link) 2>conftest.er1
a848cd7e 39451 ac_status=$?
ac1cb8d3
VS
39452 grep -v '^ *+' conftest.er1 >conftest.err
39453 rm -f conftest.er1
39454 cat conftest.err >&5
a848cd7e
SC
39455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); } &&
ca5c6ac3 39457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39459 (eval $ac_try) 2>&5
39460 ac_status=$?
39461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462 (exit $ac_status); }; } &&
39463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39465 (eval $ac_try) 2>&5
39466 ac_status=$?
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); }; }; then
39469 ac_cv_func_sched_get_priority_max=yes
39470else
39471 echo "$as_me: failed program was:" >&5
39472sed 's/^/| /' conftest.$ac_ext >&5
39473
39474ac_cv_func_sched_get_priority_max=no
39475fi
ac1cb8d3
VS
39476rm -f conftest.err conftest.$ac_objext \
39477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39478fi
39479echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39480echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39481if test $ac_cv_func_sched_get_priority_max = yes; then
39482 HAVE_PRIOR_FUNCS=1
39483else
39484 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39485echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39486if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39487 echo $ECHO_N "(cached) $ECHO_C" >&6
39488else
39489 ac_check_lib_save_LIBS=$LIBS
39490LIBS="-lposix4 $LIBS"
39491cat >conftest.$ac_ext <<_ACEOF
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
39497
39498/* Override any gcc2 internal prototype to avoid an error. */
39499#ifdef __cplusplus
39500extern "C"
39501#endif
39502/* We use char because int might match the return type of a gcc2
39503 builtin and then its argument prototype would still apply. */
39504char sched_get_priority_max ();
39505int
39506main ()
39507{
39508sched_get_priority_max ();
39509 ;
39510 return 0;
39511}
39512_ACEOF
39513rm -f conftest.$ac_objext conftest$ac_exeext
39514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39515 (eval $ac_link) 2>conftest.er1
a848cd7e 39516 ac_status=$?
ac1cb8d3
VS
39517 grep -v '^ *+' conftest.er1 >conftest.err
39518 rm -f conftest.er1
39519 cat conftest.err >&5
a848cd7e
SC
39520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39521 (exit $ac_status); } &&
ca5c6ac3 39522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524 (eval $ac_try) 2>&5
39525 ac_status=$?
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; } &&
39528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530 (eval $ac_try) 2>&5
39531 ac_status=$?
39532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533 (exit $ac_status); }; }; then
39534 ac_cv_lib_posix4_sched_get_priority_max=yes
39535else
39536 echo "$as_me: failed program was:" >&5
39537sed 's/^/| /' conftest.$ac_ext >&5
39538
39539ac_cv_lib_posix4_sched_get_priority_max=no
39540fi
ac1cb8d3
VS
39541rm -f conftest.err conftest.$ac_objext \
39542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39543LIBS=$ac_check_lib_save_LIBS
39544fi
39545echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39546echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39547if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39548
39549 HAVE_PRIOR_FUNCS=1
39550 POSIX4_LINK=" -lposix4"
39551
39552fi
39553
39554
39555fi
39556
39557
39558fi
39559
39560
39561fi
39562
39563
39564 if test "$HAVE_PRIOR_FUNCS" = 1; then
39565 cat >>confdefs.h <<\_ACEOF
39566#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39567_ACEOF
39568
39569 else
39570 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39571echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39572 fi
39573
39574 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39575echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39576if test "${ac_cv_func_pthread_cancel+set}" = set; then
39577 echo $ECHO_N "(cached) $ECHO_C" >&6
39578else
39579 cat >conftest.$ac_ext <<_ACEOF
39580/* confdefs.h. */
39581_ACEOF
39582cat confdefs.h >>conftest.$ac_ext
39583cat >>conftest.$ac_ext <<_ACEOF
39584/* end confdefs.h. */
ac1cb8d3
VS
39585/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39587#define pthread_cancel innocuous_pthread_cancel
39588
a848cd7e
SC
39589/* System header to define __stub macros and hopefully few prototypes,
39590 which can conflict with char pthread_cancel (); below.
39591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39593
a848cd7e
SC
39594#ifdef __STDC__
39595# include <limits.h>
39596#else
39597# include <assert.h>
39598#endif
ac1cb8d3
VS
39599
39600#undef pthread_cancel
39601
a848cd7e
SC
39602/* Override any gcc2 internal prototype to avoid an error. */
39603#ifdef __cplusplus
39604extern "C"
39605{
39606#endif
39607/* We use char because int might match the return type of a gcc2
39608 builtin and then its argument prototype would still apply. */
39609char pthread_cancel ();
39610/* The GNU C library defines this for functions which it implements
39611 to always fail with ENOSYS. Some functions are actually named
39612 something starting with __ and the normal name is an alias. */
39613#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39614choke me
39615#else
39616char (*f) () = pthread_cancel;
39617#endif
39618#ifdef __cplusplus
39619}
39620#endif
39621
39622int
39623main ()
39624{
39625return f != pthread_cancel;
39626 ;
39627 return 0;
39628}
39629_ACEOF
39630rm -f conftest.$ac_objext conftest$ac_exeext
39631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39632 (eval $ac_link) 2>conftest.er1
a848cd7e 39633 ac_status=$?
ac1cb8d3
VS
39634 grep -v '^ *+' conftest.er1 >conftest.err
39635 rm -f conftest.er1
39636 cat conftest.err >&5
a848cd7e
SC
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); } &&
ca5c6ac3 39639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39641 (eval $ac_try) 2>&5
39642 ac_status=$?
39643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644 (exit $ac_status); }; } &&
39645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39647 (eval $ac_try) 2>&5
39648 ac_status=$?
39649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650 (exit $ac_status); }; }; then
39651 ac_cv_func_pthread_cancel=yes
39652else
39653 echo "$as_me: failed program was:" >&5
39654sed 's/^/| /' conftest.$ac_ext >&5
39655
39656ac_cv_func_pthread_cancel=no
39657fi
ac1cb8d3
VS
39658rm -f conftest.err conftest.$ac_objext \
39659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39660fi
39661echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39662echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39663if test $ac_cv_func_pthread_cancel = yes; then
39664 cat >>confdefs.h <<\_ACEOF
39665#define HAVE_PTHREAD_CANCEL 1
39666_ACEOF
39667
39668else
39669 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39670echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39671fi
39672
39673
abc736fd
MW
39674 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39675echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39676if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39678else
39679 cat >conftest.$ac_ext <<_ACEOF
39680/* confdefs.h. */
39681_ACEOF
39682cat confdefs.h >>conftest.$ac_ext
39683cat >>conftest.$ac_ext <<_ACEOF
39684/* end confdefs.h. */
39685/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39687#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39688
39689/* System header to define __stub macros and hopefully few prototypes,
39690 which can conflict with char pthread_attr_setstacksize (); below.
39691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39692 <limits.h> exists even on freestanding compilers. */
39693
39694#ifdef __STDC__
39695# include <limits.h>
39696#else
39697# include <assert.h>
39698#endif
39699
39700#undef pthread_attr_setstacksize
39701
39702/* Override any gcc2 internal prototype to avoid an error. */
39703#ifdef __cplusplus
39704extern "C"
39705{
39706#endif
39707/* We use char because int might match the return type of a gcc2
39708 builtin and then its argument prototype would still apply. */
39709char pthread_attr_setstacksize ();
39710/* The GNU C library defines this for functions which it implements
39711 to always fail with ENOSYS. Some functions are actually named
39712 something starting with __ and the normal name is an alias. */
39713#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39714choke me
39715#else
39716char (*f) () = pthread_attr_setstacksize;
39717#endif
39718#ifdef __cplusplus
39719}
39720#endif
39721
39722int
39723main ()
39724{
39725return f != pthread_attr_setstacksize;
39726 ;
39727 return 0;
39728}
39729_ACEOF
39730rm -f conftest.$ac_objext conftest$ac_exeext
39731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39732 (eval $ac_link) 2>conftest.er1
39733 ac_status=$?
39734 grep -v '^ *+' conftest.er1 >conftest.err
39735 rm -f conftest.er1
39736 cat conftest.err >&5
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } &&
ca5c6ac3 39739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39742 ac_status=$?
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest$ac_exeext'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751 ac_cv_func_pthread_attr_setstacksize=yes
39752else
39753 echo "$as_me: failed program was:" >&5
39754sed 's/^/| /' conftest.$ac_ext >&5
39755
39756ac_cv_func_pthread_attr_setstacksize=no
39757fi
39758rm -f conftest.err conftest.$ac_objext \
39759 conftest$ac_exeext conftest.$ac_ext
39760fi
39761echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39762echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39763if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39764 cat >>confdefs.h <<\_ACEOF
39765#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39766_ACEOF
39767
39768fi
39769
a848cd7e
SC
39770
39771
39772 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39773echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39774if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39775 echo $ECHO_N "(cached) $ECHO_C" >&6
39776else
39777
39778 cat >conftest.$ac_ext <<_ACEOF
39779/* confdefs.h. */
39780_ACEOF
39781cat confdefs.h >>conftest.$ac_ext
39782cat >>conftest.$ac_ext <<_ACEOF
39783/* end confdefs.h. */
39784#include <pthread.h>
39785int
39786main ()
39787{
39788
39789 pthread_mutexattr_t attr;
39790 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39791
39792 ;
39793 return 0;
39794}
39795_ACEOF
39796rm -f conftest.$ac_objext
39797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39798 (eval $ac_compile) 2>conftest.er1
a848cd7e 39799 ac_status=$?
ac1cb8d3
VS
39800 grep -v '^ *+' conftest.er1 >conftest.err
39801 rm -f conftest.er1
39802 cat conftest.err >&5
a848cd7e
SC
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); } &&
ca5c6ac3 39805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807 (eval $ac_try) 2>&5
39808 ac_status=$?
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); }; } &&
39811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39813 (eval $ac_try) 2>&5
39814 ac_status=$?
39815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816 (exit $ac_status); }; }; then
123dca7d 39817 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39818else
39819 echo "$as_me: failed program was:" >&5
39820sed 's/^/| /' conftest.$ac_ext >&5
39821
123dca7d 39822wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39823
39824fi
ac1cb8d3 39825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39826
39827fi
39828echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39829echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39830
39831 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39832 cat >>confdefs.h <<\_ACEOF
39833#define HAVE_PTHREAD_MUTEXATTR_T 1
39834_ACEOF
39835
123dca7d
VZ
39836
39837 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39838echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39839if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39840 echo $ECHO_N "(cached) $ECHO_C" >&6
39841else
39842
39843 cat >conftest.$ac_ext <<_ACEOF
39844/* confdefs.h. */
39845_ACEOF
39846cat confdefs.h >>conftest.$ac_ext
39847cat >>conftest.$ac_ext <<_ACEOF
39848/* end confdefs.h. */
39849#include <pthread.h>
39850int
39851main ()
39852{
39853
39854 pthread_mutexattr_t attr;
39855 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39856
39857 ;
39858 return 0;
39859}
39860_ACEOF
39861rm -f conftest.$ac_objext
39862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39863 (eval $ac_compile) 2>conftest.er1
39864 ac_status=$?
39865 grep -v '^ *+' conftest.er1 >conftest.err
39866 rm -f conftest.er1
39867 cat conftest.err >&5
39868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869 (exit $ac_status); } &&
ca5c6ac3 39870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872 (eval $ac_try) 2>&5
39873 ac_status=$?
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); }; } &&
39876 { ac_try='test -s conftest.$ac_objext'
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; }; then
39882 wx_cv_func_pthread_mutexattr_settype_decl=yes
39883else
39884 echo "$as_me: failed program was:" >&5
39885sed 's/^/| /' conftest.$ac_ext >&5
39886
39887wx_cv_func_pthread_mutexattr_settype_decl=no
39888
39889fi
39890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39891
39892fi
39893echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39894echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39895 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39896 cat >>confdefs.h <<\_ACEOF
39897#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39898_ACEOF
39899
39900 fi
a848cd7e
SC
39901 else
39902 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39903echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39904if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39905 echo $ECHO_N "(cached) $ECHO_C" >&6
39906else
39907
39908 cat >conftest.$ac_ext <<_ACEOF
39909/* confdefs.h. */
39910_ACEOF
39911cat confdefs.h >>conftest.$ac_ext
39912cat >>conftest.$ac_ext <<_ACEOF
39913/* end confdefs.h. */
39914#include <pthread.h>
39915int
39916main ()
39917{
39918
39919 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39920
39921 ;
39922 return 0;
39923}
39924_ACEOF
39925rm -f conftest.$ac_objext
39926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39927 (eval $ac_compile) 2>conftest.er1
a848cd7e 39928 ac_status=$?
ac1cb8d3
VS
39929 grep -v '^ *+' conftest.er1 >conftest.err
39930 rm -f conftest.er1
39931 cat conftest.err >&5
a848cd7e
SC
39932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39933 (exit $ac_status); } &&
ca5c6ac3 39934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39936 (eval $ac_try) 2>&5
39937 ac_status=$?
39938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939 (exit $ac_status); }; } &&
39940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942 (eval $ac_try) 2>&5
39943 ac_status=$?
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); }; }; then
39946
39947 wx_cv_type_pthread_rec_mutex_init=yes
39948
39949else
39950 echo "$as_me: failed program was:" >&5
39951sed 's/^/| /' conftest.$ac_ext >&5
39952
39953
39954 wx_cv_type_pthread_rec_mutex_init=no
39955
39956
39957fi
ac1cb8d3 39958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39959
39960fi
39961echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39962echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39963 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39964 cat >>confdefs.h <<\_ACEOF
39965#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39966_ACEOF
39967
39968 else
39969 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39970echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39971 fi
39972 fi
39973 fi
39974
39975else
39976 if test "$wxUSE_THREADS" = "yes" ; then
39977 case "${host}" in
39978 *-*-mingw32* )
39979 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39980echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39981if test "${wx_cv_cflags_mthread+set}" = set; then
39982 echo $ECHO_N "(cached) $ECHO_C" >&6
39983else
39984
e56f4f9e
VZ
39985 CXXFLAGS_OLD="$CXXFLAGS"
39986 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39987 cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h. */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h. */
39993
39994int
39995main ()
39996{
39997
39998 ;
39999 return 0;
40000}
40001_ACEOF
40002rm -f conftest.$ac_objext
40003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40004 (eval $ac_compile) 2>conftest.er1
a848cd7e 40005 ac_status=$?
ac1cb8d3
VS
40006 grep -v '^ *+' conftest.er1 >conftest.err
40007 rm -f conftest.er1
40008 cat conftest.err >&5
a848cd7e
SC
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); } &&
ca5c6ac3 40011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40013 (eval $ac_try) 2>&5
40014 ac_status=$?
40015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016 (exit $ac_status); }; } &&
40017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40019 (eval $ac_try) 2>&5
40020 ac_status=$?
40021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022 (exit $ac_status); }; }; then
40023 wx_cv_cflags_mthread=yes
40024else
40025 echo "$as_me: failed program was:" >&5
40026sed 's/^/| /' conftest.$ac_ext >&5
40027
40028wx_cv_cflags_mthread=no
40029
40030fi
ac1cb8d3 40031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40032
40033
40034fi
40035echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40036echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40037
40038 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40039 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40040 LDFLAGS="$LDFLAGS -mthreads"
40041 else
e56f4f9e 40042 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40043 fi
40044 ;;
40045 *-pc-os2*emx )
5ff751d6
VZ
40046 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40047 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40048 LDFLAGS="$LDFLAGS -Zmt"
40049 ;;
40050 esac
40051 fi
40052fi
40053
004ee6da
RL
40054echo "$as_me:$LINENO: checking for localtime_r" >&5
40055echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40056if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40057 echo $ECHO_N "(cached) $ECHO_C" >&6
40058else
40059 cat >conftest.$ac_ext <<_ACEOF
40060/* confdefs.h. */
40061_ACEOF
40062cat confdefs.h >>conftest.$ac_ext
40063cat >>conftest.$ac_ext <<_ACEOF
40064/* end confdefs.h. */
004ee6da 40065/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40067#define localtime_r innocuous_localtime_r
ac1cb8d3 40068
a848cd7e 40069/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40070 which can conflict with char localtime_r (); below.
a848cd7e
SC
40071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40072 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40073
a848cd7e
SC
40074#ifdef __STDC__
40075# include <limits.h>
40076#else
40077# include <assert.h>
40078#endif
ac1cb8d3 40079
004ee6da 40080#undef localtime_r
ac1cb8d3 40081
a848cd7e
SC
40082/* Override any gcc2 internal prototype to avoid an error. */
40083#ifdef __cplusplus
40084extern "C"
40085{
40086#endif
40087/* We use char because int might match the return type of a gcc2
40088 builtin and then its argument prototype would still apply. */
004ee6da 40089char localtime_r ();
a848cd7e
SC
40090/* The GNU C library defines this for functions which it implements
40091 to always fail with ENOSYS. Some functions are actually named
40092 something starting with __ and the normal name is an alias. */
004ee6da 40093#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40094choke me
40095#else
004ee6da 40096char (*f) () = localtime_r;
a848cd7e
SC
40097#endif
40098#ifdef __cplusplus
40099}
40100#endif
40101
40102int
40103main ()
40104{
004ee6da
RL
40105return f != localtime_r;
40106 ;
40107 return 0;
40108}
40109_ACEOF
40110rm -f conftest.$ac_objext conftest$ac_exeext
40111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40112 (eval $ac_link) 2>conftest.er1
40113 ac_status=$?
40114 grep -v '^ *+' conftest.er1 >conftest.err
40115 rm -f conftest.er1
40116 cat conftest.err >&5
40117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); } &&
ca5c6ac3 40119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40121 (eval $ac_try) 2>&5
40122 ac_status=$?
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); }; } &&
40125 { ac_try='test -s conftest$ac_exeext'
40126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127 (eval $ac_try) 2>&5
40128 ac_status=$?
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); }; }; then
40131 ac_cv_func_localtime_r=yes
40132else
40133 echo "$as_me: failed program was:" >&5
40134sed 's/^/| /' conftest.$ac_ext >&5
40135
40136ac_cv_func_localtime_r=no
40137fi
40138rm -f conftest.err conftest.$ac_objext \
40139 conftest$ac_exeext conftest.$ac_ext
40140fi
40141echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40142echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40143if test $ac_cv_func_localtime_r = yes; then
40144 cat >>confdefs.h <<\_ACEOF
40145#define HAVE_LOCALTIME_R 1
40146_ACEOF
40147
40148fi
40149
40150echo "$as_me:$LINENO: checking for gmtime_r" >&5
40151echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40152if test "${ac_cv_func_gmtime_r+set}" = set; then
40153 echo $ECHO_N "(cached) $ECHO_C" >&6
40154else
40155 cat >conftest.$ac_ext <<_ACEOF
40156/* confdefs.h. */
40157_ACEOF
40158cat confdefs.h >>conftest.$ac_ext
40159cat >>conftest.$ac_ext <<_ACEOF
40160/* end confdefs.h. */
40161/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40163#define gmtime_r innocuous_gmtime_r
40164
40165/* System header to define __stub macros and hopefully few prototypes,
40166 which can conflict with char gmtime_r (); below.
40167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40168 <limits.h> exists even on freestanding compilers. */
40169
40170#ifdef __STDC__
40171# include <limits.h>
40172#else
40173# include <assert.h>
40174#endif
40175
40176#undef gmtime_r
40177
40178/* Override any gcc2 internal prototype to avoid an error. */
40179#ifdef __cplusplus
40180extern "C"
40181{
40182#endif
40183/* We use char because int might match the return type of a gcc2
40184 builtin and then its argument prototype would still apply. */
40185char gmtime_r ();
40186/* The GNU C library defines this for functions which it implements
40187 to always fail with ENOSYS. Some functions are actually named
40188 something starting with __ and the normal name is an alias. */
40189#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40190choke me
40191#else
40192char (*f) () = gmtime_r;
40193#endif
40194#ifdef __cplusplus
40195}
40196#endif
40197
40198int
40199main ()
40200{
40201return f != gmtime_r;
40202 ;
40203 return 0;
40204}
40205_ACEOF
40206rm -f conftest.$ac_objext conftest$ac_exeext
40207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40208 (eval $ac_link) 2>conftest.er1
40209 ac_status=$?
40210 grep -v '^ *+' conftest.er1 >conftest.err
40211 rm -f conftest.er1
40212 cat conftest.err >&5
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); } &&
ca5c6ac3 40215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40217 (eval $ac_try) 2>&5
40218 ac_status=$?
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); }; } &&
40221 { ac_try='test -s conftest$ac_exeext'
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40224 ac_status=$?
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; }; then
40227 ac_cv_func_gmtime_r=yes
40228else
40229 echo "$as_me: failed program was:" >&5
40230sed 's/^/| /' conftest.$ac_ext >&5
40231
40232ac_cv_func_gmtime_r=no
40233fi
40234rm -f conftest.err conftest.$ac_objext \
40235 conftest$ac_exeext conftest.$ac_ext
40236fi
40237echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40238echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40239if test $ac_cv_func_gmtime_r = yes; then
40240 cat >>confdefs.h <<\_ACEOF
40241#define HAVE_GMTIME_R 1
40242_ACEOF
40243
40244fi
40245
40246echo "$as_me:$LINENO: checking for readdir_r" >&5
40247echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40248if test "${ac_cv_func_readdir_r+set}" = set; then
40249 echo $ECHO_N "(cached) $ECHO_C" >&6
40250else
40251 cat >conftest.$ac_ext <<_ACEOF
40252/* confdefs.h. */
40253_ACEOF
40254cat confdefs.h >>conftest.$ac_ext
40255cat >>conftest.$ac_ext <<_ACEOF
40256/* end confdefs.h. */
40257/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40259#define readdir_r innocuous_readdir_r
40260
40261/* System header to define __stub macros and hopefully few prototypes,
40262 which can conflict with char readdir_r (); below.
40263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40264 <limits.h> exists even on freestanding compilers. */
40265
40266#ifdef __STDC__
40267# include <limits.h>
40268#else
40269# include <assert.h>
40270#endif
40271
40272#undef readdir_r
40273
40274/* Override any gcc2 internal prototype to avoid an error. */
40275#ifdef __cplusplus
40276extern "C"
40277{
40278#endif
40279/* We use char because int might match the return type of a gcc2
40280 builtin and then its argument prototype would still apply. */
40281char readdir_r ();
40282/* The GNU C library defines this for functions which it implements
40283 to always fail with ENOSYS. Some functions are actually named
40284 something starting with __ and the normal name is an alias. */
40285#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40286choke me
40287#else
40288char (*f) () = readdir_r;
40289#endif
40290#ifdef __cplusplus
40291}
40292#endif
40293
40294int
40295main ()
40296{
40297return f != readdir_r;
40298 ;
40299 return 0;
40300}
40301_ACEOF
40302rm -f conftest.$ac_objext conftest$ac_exeext
40303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40304 (eval $ac_link) 2>conftest.er1
40305 ac_status=$?
40306 grep -v '^ *+' conftest.er1 >conftest.err
40307 rm -f conftest.er1
40308 cat conftest.err >&5
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); } &&
ca5c6ac3 40311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40314 ac_status=$?
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; } &&
40317 { ac_try='test -s conftest$ac_exeext'
40318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319 (eval $ac_try) 2>&5
40320 ac_status=$?
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); }; }; then
40323 ac_cv_func_readdir_r=yes
40324else
40325 echo "$as_me: failed program was:" >&5
40326sed 's/^/| /' conftest.$ac_ext >&5
40327
40328ac_cv_func_readdir_r=no
40329fi
40330rm -f conftest.err conftest.$ac_objext \
40331 conftest$ac_exeext conftest.$ac_ext
40332fi
40333echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40334echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40335if test $ac_cv_func_readdir_r = yes; then
40336 cat >>confdefs.h <<\_ACEOF
40337#define HAVE_READDIR_R 1
40338_ACEOF
40339
40340fi
40341
004ee6da 40342
004ee6da
RL
40343
40344
40345 ac_ext=c
40346ac_cpp='$CPP $CPPFLAGS'
40347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40349ac_compiler_gnu=$ac_cv_c_compiler_gnu
40350
40351 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40352echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40353
40354 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40355 echo $ECHO_N "(cached) $ECHO_C" >&6
40356else
40357
40358
2f6c5bb5 40359################################################################
004ee6da
RL
40360
40361ac_cv_func_which_gethostbyname_r=unknown
40362
40363#
40364# ONE ARGUMENT (sanity check)
40365#
40366
40367# This should fail, as there is no variant of gethostbyname_r() that takes
40368# a single argument. If it actually compiles, then we can assume that
40369# netdb.h is not declaring the function, and the compiler is thereby
40370# assuming an implicit prototype. In which case, we're out of luck.
40371#
40372cat >conftest.$ac_ext <<_ACEOF
40373/* confdefs.h. */
40374_ACEOF
40375cat confdefs.h >>conftest.$ac_ext
40376cat >>conftest.$ac_ext <<_ACEOF
40377/* end confdefs.h. */
40378#include <netdb.h>
40379int
40380main ()
40381{
40382
40383 char *name = "www.gnu.org";
40384 (void)gethostbyname_r(name) /* ; */
40385
40386 ;
40387 return 0;
40388}
40389_ACEOF
40390rm -f conftest.$ac_objext
40391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40392 (eval $ac_compile) 2>conftest.er1
40393 ac_status=$?
40394 grep -v '^ *+' conftest.er1 >conftest.err
40395 rm -f conftest.er1
40396 cat conftest.err >&5
40397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398 (exit $ac_status); } &&
ca5c6ac3 40399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40402 ac_status=$?
40403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; } &&
40405 { ac_try='test -s conftest.$ac_objext'
40406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40407 (eval $ac_try) 2>&5
40408 ac_status=$?
40409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40410 (exit $ac_status); }; }; then
40411 ac_cv_func_which_gethostbyname_r=no
40412else
40413 echo "$as_me: failed program was:" >&5
40414sed 's/^/| /' conftest.$ac_ext >&5
40415
40416fi
40417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40418
40419#
40420# SIX ARGUMENTS
40421# (e.g. Linux)
40422#
40423
40424if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40425
40426cat >conftest.$ac_ext <<_ACEOF
40427/* confdefs.h. */
40428_ACEOF
40429cat confdefs.h >>conftest.$ac_ext
40430cat >>conftest.$ac_ext <<_ACEOF
40431/* end confdefs.h. */
40432#include <netdb.h>
40433int
40434main ()
40435{
40436
40437 char *name = "www.gnu.org";
40438 struct hostent ret, *retp;
40439 char buf[1024];
40440 int buflen = 1024;
40441 int my_h_errno;
40442 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40443
40444 ;
40445 return 0;
40446}
40447_ACEOF
40448rm -f conftest.$ac_objext
40449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40450 (eval $ac_compile) 2>conftest.er1
40451 ac_status=$?
40452 grep -v '^ *+' conftest.er1 >conftest.err
40453 rm -f conftest.er1
40454 cat conftest.err >&5
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); } &&
ca5c6ac3 40457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40459 (eval $ac_try) 2>&5
40460 ac_status=$?
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); }; } &&
40463 { ac_try='test -s conftest.$ac_objext'
40464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40465 (eval $ac_try) 2>&5
40466 ac_status=$?
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); }; }; then
40469 ac_cv_func_which_gethostbyname_r=six
40470else
40471 echo "$as_me: failed program was:" >&5
40472sed 's/^/| /' conftest.$ac_ext >&5
40473
40474fi
40475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40476
40477fi
40478
40479#
40480# FIVE ARGUMENTS
40481# (e.g. Solaris)
40482#
40483
40484if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40485
40486cat >conftest.$ac_ext <<_ACEOF
40487/* confdefs.h. */
40488_ACEOF
40489cat confdefs.h >>conftest.$ac_ext
40490cat >>conftest.$ac_ext <<_ACEOF
40491/* end confdefs.h. */
40492#include <netdb.h>
40493int
40494main ()
40495{
40496
40497 char *name = "www.gnu.org";
40498 struct hostent ret;
40499 char buf[1024];
40500 int buflen = 1024;
40501 int my_h_errno;
40502 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40503
40504 ;
40505 return 0;
40506}
40507_ACEOF
40508rm -f conftest.$ac_objext
40509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40510 (eval $ac_compile) 2>conftest.er1
40511 ac_status=$?
40512 grep -v '^ *+' conftest.er1 >conftest.err
40513 rm -f conftest.er1
40514 cat conftest.err >&5
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); } &&
ca5c6ac3 40517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40519 (eval $ac_try) 2>&5
40520 ac_status=$?
40521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); }; } &&
40523 { ac_try='test -s conftest.$ac_objext'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40526 ac_status=$?
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; }; then
40529 ac_cv_func_which_gethostbyname_r=five
40530else
40531 echo "$as_me: failed program was:" >&5
40532sed 's/^/| /' conftest.$ac_ext >&5
40533
40534fi
40535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40536
40537fi
40538
40539#
40540# THREE ARGUMENTS
40541# (e.g. AIX, HP-UX, Tru64)
40542#
40543
40544if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40545
40546cat >conftest.$ac_ext <<_ACEOF
40547/* confdefs.h. */
40548_ACEOF
40549cat confdefs.h >>conftest.$ac_ext
40550cat >>conftest.$ac_ext <<_ACEOF
40551/* end confdefs.h. */
40552#include <netdb.h>
40553int
40554main ()
40555{
40556
40557 char *name = "www.gnu.org";
40558 struct hostent ret;
40559 struct hostent_data data;
40560 (void)gethostbyname_r(name, &ret, &data) /* ; */
40561
40562 ;
40563 return 0;
40564}
40565_ACEOF
40566rm -f conftest.$ac_objext
40567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40568 (eval $ac_compile) 2>conftest.er1
40569 ac_status=$?
40570 grep -v '^ *+' conftest.er1 >conftest.err
40571 rm -f conftest.er1
40572 cat conftest.err >&5
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); } &&
ca5c6ac3 40575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577 (eval $ac_try) 2>&5
40578 ac_status=$?
40579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580 (exit $ac_status); }; } &&
40581 { ac_try='test -s conftest.$ac_objext'
40582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40583 (eval $ac_try) 2>&5
40584 ac_status=$?
40585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40586 (exit $ac_status); }; }; then
40587 ac_cv_func_which_gethostbyname_r=three
40588else
40589 echo "$as_me: failed program was:" >&5
40590sed 's/^/| /' conftest.$ac_ext >&5
40591
40592fi
40593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40594
40595fi
40596
2f6c5bb5 40597################################################################
004ee6da
RL
40598
40599
40600fi
40601
40602case "$ac_cv_func_which_gethostbyname_r" in
40603 three)
40604 echo "$as_me:$LINENO: result: three" >&5
40605echo "${ECHO_T}three" >&6
40606 cat >>confdefs.h <<\_ACEOF
40607#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40608_ACEOF
40609
40610 ;;
40611
40612 five)
40613 echo "$as_me:$LINENO: result: five" >&5
40614echo "${ECHO_T}five" >&6
40615 cat >>confdefs.h <<\_ACEOF
40616#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40617_ACEOF
40618
40619 ;;
40620
40621 six)
40622 echo "$as_me:$LINENO: result: six" >&5
40623echo "${ECHO_T}six" >&6
40624 cat >>confdefs.h <<\_ACEOF
40625#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40626_ACEOF
40627
40628 ;;
40629
40630 no)
40631 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40632echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40633 ;;
40634
40635 unknown)
40636 echo "$as_me:$LINENO: result: can't tell" >&5
40637echo "${ECHO_T}can't tell" >&6
40638 ;;
40639
40640 *)
40641 { { echo "$as_me:$LINENO: error: internal error" >&5
40642echo "$as_me: error: internal error" >&2;}
40643 { (exit 1); exit 1; }; }
40644 ;;
40645esac
40646
5ec3bc43
JS
40647ac_ext=cc
40648ac_cpp='$CXXCPP $CPPFLAGS'
40649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40652
40653
40654
40655 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40656 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40657 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40658echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40659if test "${ac_cv_func_gethostbyname+set}" = set; then
40660 echo $ECHO_N "(cached) $ECHO_C" >&6
40661else
40662 cat >conftest.$ac_ext <<_ACEOF
40663/* confdefs.h. */
40664_ACEOF
40665cat confdefs.h >>conftest.$ac_ext
40666cat >>conftest.$ac_ext <<_ACEOF
40667/* end confdefs.h. */
40668/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40670#define gethostbyname innocuous_gethostbyname
40671
40672/* System header to define __stub macros and hopefully few prototypes,
40673 which can conflict with char gethostbyname (); below.
40674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40675 <limits.h> exists even on freestanding compilers. */
40676
40677#ifdef __STDC__
40678# include <limits.h>
40679#else
40680# include <assert.h>
40681#endif
40682
40683#undef gethostbyname
40684
40685/* Override any gcc2 internal prototype to avoid an error. */
40686#ifdef __cplusplus
40687extern "C"
40688{
40689#endif
40690/* We use char because int might match the return type of a gcc2
40691 builtin and then its argument prototype would still apply. */
40692char gethostbyname ();
40693/* The GNU C library defines this for functions which it implements
40694 to always fail with ENOSYS. Some functions are actually named
40695 something starting with __ and the normal name is an alias. */
40696#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40697choke me
40698#else
40699char (*f) () = gethostbyname;
40700#endif
40701#ifdef __cplusplus
40702}
40703#endif
40704
40705int
40706main ()
40707{
40708return f != gethostbyname;
40709 ;
40710 return 0;
40711}
40712_ACEOF
40713rm -f conftest.$ac_objext conftest$ac_exeext
40714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40715 (eval $ac_link) 2>conftest.er1
40716 ac_status=$?
40717 grep -v '^ *+' conftest.er1 >conftest.err
40718 rm -f conftest.er1
40719 cat conftest.err >&5
40720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721 (exit $ac_status); } &&
ca5c6ac3 40722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40724 (eval $ac_try) 2>&5
40725 ac_status=$?
40726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40727 (exit $ac_status); }; } &&
40728 { ac_try='test -s conftest$ac_exeext'
40729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40730 (eval $ac_try) 2>&5
40731 ac_status=$?
40732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733 (exit $ac_status); }; }; then
40734 ac_cv_func_gethostbyname=yes
40735else
40736 echo "$as_me: failed program was:" >&5
40737sed 's/^/| /' conftest.$ac_ext >&5
40738
40739ac_cv_func_gethostbyname=no
40740fi
40741rm -f conftest.err conftest.$ac_objext \
40742 conftest$ac_exeext conftest.$ac_ext
40743fi
40744echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40745echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40746if test $ac_cv_func_gethostbyname = yes; then
40747 cat >>confdefs.h <<\_ACEOF
40748#define HAVE_GETHOSTBYNAME 1
40749_ACEOF
40750
40751fi
40752
40753 fi
40754 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40755echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40756if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40757 echo $ECHO_N "(cached) $ECHO_C" >&6
40758else
40759
40760echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40761echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40762if test "${ac_cv_func_getservbyname_r+set}" = set; then
40763 echo $ECHO_N "(cached) $ECHO_C" >&6
40764else
40765 cat >conftest.$ac_ext <<_ACEOF
40766/* confdefs.h. */
40767_ACEOF
40768cat confdefs.h >>conftest.$ac_ext
40769cat >>conftest.$ac_ext <<_ACEOF
40770/* end confdefs.h. */
40771/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40773#define getservbyname_r innocuous_getservbyname_r
40774
40775/* System header to define __stub macros and hopefully few prototypes,
40776 which can conflict with char getservbyname_r (); below.
40777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40778 <limits.h> exists even on freestanding compilers. */
40779
40780#ifdef __STDC__
40781# include <limits.h>
40782#else
40783# include <assert.h>
40784#endif
40785
40786#undef getservbyname_r
40787
40788/* Override any gcc2 internal prototype to avoid an error. */
40789#ifdef __cplusplus
40790extern "C"
40791{
40792#endif
40793/* We use char because int might match the return type of a gcc2
40794 builtin and then its argument prototype would still apply. */
40795char getservbyname_r ();
40796/* The GNU C library defines this for functions which it implements
40797 to always fail with ENOSYS. Some functions are actually named
40798 something starting with __ and the normal name is an alias. */
40799#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40800choke me
40801#else
40802char (*f) () = getservbyname_r;
40803#endif
40804#ifdef __cplusplus
40805}
40806#endif
40807
40808int
40809main ()
40810{
40811return f != getservbyname_r;
40812 ;
40813 return 0;
40814}
40815_ACEOF
40816rm -f conftest.$ac_objext conftest$ac_exeext
40817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40818 (eval $ac_link) 2>conftest.er1
40819 ac_status=$?
40820 grep -v '^ *+' conftest.er1 >conftest.err
40821 rm -f conftest.er1
40822 cat conftest.err >&5
40823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824 (exit $ac_status); } &&
ca5c6ac3 40825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40827 (eval $ac_try) 2>&5
40828 ac_status=$?
40829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830 (exit $ac_status); }; } &&
40831 { ac_try='test -s conftest$ac_exeext'
40832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40833 (eval $ac_try) 2>&5
40834 ac_status=$?
40835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40836 (exit $ac_status); }; }; then
40837 ac_cv_func_getservbyname_r=yes
40838else
40839 echo "$as_me: failed program was:" >&5
40840sed 's/^/| /' conftest.$ac_ext >&5
40841
40842ac_cv_func_getservbyname_r=no
40843fi
40844rm -f conftest.err conftest.$ac_objext \
40845 conftest$ac_exeext conftest.$ac_ext
40846fi
40847echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40848echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40849if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40850
40851 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40852/* confdefs.h. */
40853_ACEOF
40854cat confdefs.h >>conftest.$ac_ext
40855cat >>conftest.$ac_ext <<_ACEOF
40856/* end confdefs.h. */
3ecd9f92
MW
40857
40858# include <netdb.h>
40859
004ee6da
RL
40860int
40861main ()
40862{
40863
3ecd9f92
MW
40864
40865 char *name;
40866 char *proto;
40867 struct servent *se;
40868 struct servent_data data;
40869 (void) getservbyname_r(name, proto, se, &data);
40870
004ee6da
RL
40871
40872 ;
40873 return 0;
40874}
40875_ACEOF
40876rm -f conftest.$ac_objext
40877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40878 (eval $ac_compile) 2>conftest.er1
40879 ac_status=$?
40880 grep -v '^ *+' conftest.er1 >conftest.err
40881 rm -f conftest.er1
40882 cat conftest.err >&5
40883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884 (exit $ac_status); } &&
ca5c6ac3 40885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40887 (eval $ac_try) 2>&5
40888 ac_status=$?
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); }; } &&
40891 { ac_try='test -s conftest.$ac_objext'
40892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893 (eval $ac_try) 2>&5
40894 ac_status=$?
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; }; then
40897 ac_cv_func_which_getservbyname_r=four
40898else
40899 echo "$as_me: failed program was:" >&5
40900sed 's/^/| /' conftest.$ac_ext >&5
40901
3ecd9f92
MW
40902
40903 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40904/* confdefs.h. */
40905_ACEOF
40906cat confdefs.h >>conftest.$ac_ext
40907cat >>conftest.$ac_ext <<_ACEOF
40908/* end confdefs.h. */
3ecd9f92
MW
40909
40910# include <netdb.h>
40911
004ee6da
RL
40912int
40913main ()
40914{
40915
3ecd9f92
MW
40916 char *name;
40917 char *proto;
40918 struct servent *se, *res;
40919 char buffer[2048];
40920 int buflen = 2048;
40921 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40922
40923 ;
40924 return 0;
40925}
40926_ACEOF
40927rm -f conftest.$ac_objext
40928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40929 (eval $ac_compile) 2>conftest.er1
40930 ac_status=$?
40931 grep -v '^ *+' conftest.er1 >conftest.err
40932 rm -f conftest.er1
40933 cat conftest.err >&5
40934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935 (exit $ac_status); } &&
ca5c6ac3 40936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938 (eval $ac_try) 2>&5
40939 ac_status=$?
40940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941 (exit $ac_status); }; } &&
40942 { ac_try='test -s conftest.$ac_objext'
40943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944 (eval $ac_try) 2>&5
40945 ac_status=$?
40946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); }; }; then
40948 ac_cv_func_which_getservbyname_r=six
40949else
40950 echo "$as_me: failed program was:" >&5
40951sed 's/^/| /' conftest.$ac_ext >&5
40952
3ecd9f92
MW
40953
40954 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40955/* confdefs.h. */
40956_ACEOF
40957cat confdefs.h >>conftest.$ac_ext
40958cat >>conftest.$ac_ext <<_ACEOF
40959/* end confdefs.h. */
3ecd9f92
MW
40960
40961# include <netdb.h>
40962
004ee6da
RL
40963int
40964main ()
40965{
40966
3ecd9f92
MW
40967 char *name;
40968 char *proto;
40969 struct servent *se;
40970 char buffer[2048];
40971 int buflen = 2048;
40972 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40973
40974 ;
40975 return 0;
40976}
40977_ACEOF
40978rm -f conftest.$ac_objext
40979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40980 (eval $ac_compile) 2>conftest.er1
40981 ac_status=$?
40982 grep -v '^ *+' conftest.er1 >conftest.err
40983 rm -f conftest.er1
40984 cat conftest.err >&5
40985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986 (exit $ac_status); } &&
ca5c6ac3 40987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989 (eval $ac_try) 2>&5
40990 ac_status=$?
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); }; } &&
40993 { ac_try='test -s conftest.$ac_objext'
40994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995 (eval $ac_try) 2>&5
40996 ac_status=$?
40997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998 (exit $ac_status); }; }; then
40999 ac_cv_func_which_getservbyname_r=five
41000else
41001 echo "$as_me: failed program was:" >&5
41002sed 's/^/| /' conftest.$ac_ext >&5
41003
41004ac_cv_func_which_getservbyname_r=no
41005fi
41006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41007
3ecd9f92
MW
41008
41009
41010
004ee6da
RL
41011fi
41012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41013
3ecd9f92 41014
004ee6da
RL
41015fi
41016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41017
004ee6da
RL
41018else
41019 ac_cv_func_which_getservbyname_r=no
41020fi
41021
3ecd9f92
MW
41022fi
41023echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41024echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41025
41026if test $ac_cv_func_which_getservbyname_r = six; then
41027 cat >>confdefs.h <<\_ACEOF
41028#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41029_ACEOF
41030
41031elif test $ac_cv_func_which_getservbyname_r = five; then
41032 cat >>confdefs.h <<\_ACEOF
41033#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41034_ACEOF
41035
41036elif test $ac_cv_func_which_getservbyname_r = four; then
41037 cat >>confdefs.h <<\_ACEOF
41038#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41039_ACEOF
41040
3ecd9f92 41041
004ee6da
RL
41042fi
41043
41044
41045 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41046 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41047
41048for ac_func in getservbyname
41049do
41050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41051echo "$as_me:$LINENO: checking for $ac_func" >&5
41052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41053if eval "test \"\${$as_ac_var+set}\" = set"; then
41054 echo $ECHO_N "(cached) $ECHO_C" >&6
41055else
41056 cat >conftest.$ac_ext <<_ACEOF
41057/* confdefs.h. */
41058_ACEOF
41059cat confdefs.h >>conftest.$ac_ext
41060cat >>conftest.$ac_ext <<_ACEOF
41061/* end confdefs.h. */
41062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41064#define $ac_func innocuous_$ac_func
41065
41066/* System header to define __stub macros and hopefully few prototypes,
41067 which can conflict with char $ac_func (); below.
41068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41069 <limits.h> exists even on freestanding compilers. */
41070
41071#ifdef __STDC__
41072# include <limits.h>
41073#else
41074# include <assert.h>
41075#endif
41076
41077#undef $ac_func
41078
41079/* Override any gcc2 internal prototype to avoid an error. */
41080#ifdef __cplusplus
41081extern "C"
41082{
41083#endif
41084/* We use char because int might match the return type of a gcc2
41085 builtin and then its argument prototype would still apply. */
41086char $ac_func ();
41087/* The GNU C library defines this for functions which it implements
41088 to always fail with ENOSYS. Some functions are actually named
41089 something starting with __ and the normal name is an alias. */
41090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41091choke me
41092#else
41093char (*f) () = $ac_func;
41094#endif
41095#ifdef __cplusplus
41096}
41097#endif
41098
41099int
41100main ()
41101{
41102return f != $ac_func;
41103 ;
41104 return 0;
41105}
41106_ACEOF
41107rm -f conftest.$ac_objext conftest$ac_exeext
41108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41109 (eval $ac_link) 2>conftest.er1
41110 ac_status=$?
41111 grep -v '^ *+' conftest.er1 >conftest.err
41112 rm -f conftest.er1
41113 cat conftest.err >&5
41114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115 (exit $ac_status); } &&
ca5c6ac3 41116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41118 (eval $ac_try) 2>&5
41119 ac_status=$?
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); }; } &&
41122 { ac_try='test -s conftest$ac_exeext'
41123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41124 (eval $ac_try) 2>&5
41125 ac_status=$?
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); }; }; then
41128 eval "$as_ac_var=yes"
41129else
41130 echo "$as_me: failed program was:" >&5
41131sed 's/^/| /' conftest.$ac_ext >&5
41132
41133eval "$as_ac_var=no"
41134fi
41135rm -f conftest.err conftest.$ac_objext \
41136 conftest$ac_exeext conftest.$ac_ext
41137fi
41138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41140if test `eval echo '${'$as_ac_var'}'` = yes; then
41141 cat >>confdefs.h <<_ACEOF
41142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41143_ACEOF
41144 cat >>confdefs.h <<\_ACEOF
41145#define HAVE_GETSERVBYNAME 1
41146_ACEOF
41147
41148fi
41149done
41150
41151 fi
41152
004ee6da
RL
41153if test "$wxUSE_THREADS" = "yes"; then
41154 cat >>confdefs.h <<\_ACEOF
41155#define wxUSE_THREADS 1
41156_ACEOF
41157
41158
41159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41160else
56632e81 41161 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41162 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41163echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41164 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41165 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41166 echo "$as_me:$LINENO: result: yes" >&5
41167echo "${ECHO_T}yes" >&6
41168 else
41169 echo "$as_me:$LINENO: result: no" >&5
41170echo "${ECHO_T}no" >&6
41171 fi
41172 fi
41173fi
41174
41175if test "$WXGTK20" = 1 ; then
41176 cat >>confdefs.h <<_ACEOF
41177#define __WXGTK20__ $WXGTK20
41178_ACEOF
41179
41180 WXGTK12=1
41181fi
41182
41183if test "$WXGTK12" = 1 ; then
41184 cat >>confdefs.h <<_ACEOF
41185#define __WXGTK12__ $WXGTK12
41186_ACEOF
41187
41188fi
41189
41190if test "$WXGTK127" = 1 ; then
41191 cat >>confdefs.h <<_ACEOF
41192#define __WXGTK127__ $WXGTK127
41193_ACEOF
41194
41195fi
41196
41197if test "$WXGPE" = 1 ; then
41198 cat >>confdefs.h <<_ACEOF
41199#define __WXGPE__ $WXGPE
41200_ACEOF
41201
41202fi
41203
41204DEBUG_CFLAGS=
41205if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41206 DEBUG_CFLAGS="-g"
41207 wxUSE_OPTIMISE=no
41208fi
41209
41210if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41211 wxUSE_DEBUG_INFO=yes
41212 if test "$GCC" = yes; then
41213 DEBUG_CFLAGS="-ggdb"
41214 fi
41215fi
41216
41217if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41218 cat >>confdefs.h <<\_ACEOF
41219#define WXDEBUG 1
41220_ACEOF
41221
41222 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41223else
41224 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41225 if test "x$wxGTK_VERSION" = "x1" ; then
41226 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41227 fi
004ee6da
RL
41228 fi
41229fi
41230
41231if test "$wxUSE_MEM_TRACING" = "yes" ; then
41232 cat >>confdefs.h <<\_ACEOF
41233#define wxUSE_MEMORY_TRACING 1
41234_ACEOF
41235
41236 cat >>confdefs.h <<\_ACEOF
41237#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41238_ACEOF
41239
41240 cat >>confdefs.h <<\_ACEOF
41241#define wxUSE_DEBUG_NEW_ALWAYS 1
41242_ACEOF
41243
41244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41245fi
41246
41247if test "$wxUSE_DMALLOC" = "yes" ; then
41248 DMALLOC_LIBS="-ldmallocthcxx"
41249fi
41250
41251PROFILE_FLAGS=
41252if test "$wxUSE_PROFILE" = "yes" ; then
41253 PROFILE_FLAGS=" -pg"
41254fi
41255
41256if test "$GCC" = "yes" ; then
41257 if test "$wxUSE_NO_RTTI" = "yes" ; then
41258 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41259 fi
41260 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41261 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41262 fi
41263 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41264 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41265 fi
41266
41267 case "${host}" in
41268 powerpc*-*-aix* )
41269 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41270 ;;
41271 *-hppa* )
41272 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41273 ;;
41274 esac
41275fi
41276
41277OPTIMISE_CFLAGS=
41278if test "$wxUSE_OPTIMISE" = "no" ; then
41279 if test "$GCC" = yes ; then
41280 OPTIMISE_CFLAGS="-O0"
41281 fi
41282else
41283 if test "$GCC" = yes ; then
e5efa97e
VZ
41284 case "${host}" in
41285 *-pc-os2_emx | *-pc-os2-emx )
41286 OPTIMISE_CFLAGS="-O2"
41287 ;;
41288 *)
41289 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41290 ;;
41291 esac
004ee6da
RL
41292 else
41293 OPTIMISE_CFLAGS="-O"
41294 fi
41295fi
41296
41297
41298if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41299 cat >>confdefs.h <<\_ACEOF
41300#define WXWIN_COMPATIBILITY_2_4 1
41301_ACEOF
41302
41303
41304 WXWIN_COMPATIBILITY_2_6="yes"
41305fi
41306
41307if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41308 cat >>confdefs.h <<\_ACEOF
41309#define WXWIN_COMPATIBILITY_2_6 1
41310_ACEOF
41311
41312fi
41313
41314
41315if test "$wxUSE_GUI" = "yes"; then
41316 cat >>confdefs.h <<\_ACEOF
41317#define wxUSE_GUI 1
41318_ACEOF
41319
41320
41321 fi
41322
41323
41324if test "$wxUSE_UNIX" = "yes"; then
41325 cat >>confdefs.h <<\_ACEOF
41326#define wxUSE_UNIX 1
41327_ACEOF
41328
41329fi
41330
41331
41332if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41333
41334 HAVE_DL_FUNCS=0
41335 HAVE_SHL_FUNCS=0
41336 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41337 if test "$USE_DARWIN" = 1; then
41338 HAVE_DL_FUNCS=1
41339 elif test "$USE_DOS" = 1; then
41340 HAVE_DL_FUNCS=0
41341 else
41342
41343for ac_func in dlopen
41344do
41345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41346echo "$as_me:$LINENO: checking for $ac_func" >&5
41347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41348if eval "test \"\${$as_ac_var+set}\" = set"; then
41349 echo $ECHO_N "(cached) $ECHO_C" >&6
41350else
41351 cat >conftest.$ac_ext <<_ACEOF
41352/* confdefs.h. */
41353_ACEOF
41354cat confdefs.h >>conftest.$ac_ext
41355cat >>conftest.$ac_ext <<_ACEOF
41356/* end confdefs.h. */
41357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41359#define $ac_func innocuous_$ac_func
41360
41361/* System header to define __stub macros and hopefully few prototypes,
41362 which can conflict with char $ac_func (); below.
41363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41364 <limits.h> exists even on freestanding compilers. */
41365
41366#ifdef __STDC__
41367# include <limits.h>
41368#else
41369# include <assert.h>
41370#endif
41371
41372#undef $ac_func
41373
41374/* Override any gcc2 internal prototype to avoid an error. */
41375#ifdef __cplusplus
41376extern "C"
41377{
41378#endif
41379/* We use char because int might match the return type of a gcc2
41380 builtin and then its argument prototype would still apply. */
41381char $ac_func ();
41382/* The GNU C library defines this for functions which it implements
41383 to always fail with ENOSYS. Some functions are actually named
41384 something starting with __ and the normal name is an alias. */
41385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41386choke me
41387#else
41388char (*f) () = $ac_func;
41389#endif
41390#ifdef __cplusplus
41391}
41392#endif
41393
41394int
41395main ()
41396{
41397return f != $ac_func;
a848cd7e
SC
41398 ;
41399 return 0;
41400}
41401_ACEOF
41402rm -f conftest.$ac_objext conftest$ac_exeext
41403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41404 (eval $ac_link) 2>conftest.er1
a848cd7e 41405 ac_status=$?
ac1cb8d3
VS
41406 grep -v '^ *+' conftest.er1 >conftest.err
41407 rm -f conftest.er1
41408 cat conftest.err >&5
a848cd7e
SC
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); } &&
ca5c6ac3 41411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41413 (eval $ac_try) 2>&5
41414 ac_status=$?
41415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41416 (exit $ac_status); }; } &&
41417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41419 (eval $ac_try) 2>&5
41420 ac_status=$?
41421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422 (exit $ac_status); }; }; then
41423 eval "$as_ac_var=yes"
41424else
41425 echo "$as_me: failed program was:" >&5
41426sed 's/^/| /' conftest.$ac_ext >&5
41427
41428eval "$as_ac_var=no"
41429fi
ac1cb8d3
VS
41430rm -f conftest.err conftest.$ac_objext \
41431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41432fi
41433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41435if test `eval echo '${'$as_ac_var'}'` = yes; then
41436 cat >>confdefs.h <<_ACEOF
41437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41438_ACEOF
41439
41440 cat >>confdefs.h <<\_ACEOF
41441#define HAVE_DLOPEN 1
41442_ACEOF
41443
41444 HAVE_DL_FUNCS=1
41445
41446else
41447
41448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41449echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41450if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41451 echo $ECHO_N "(cached) $ECHO_C" >&6
41452else
41453 ac_check_lib_save_LIBS=$LIBS
41454LIBS="-ldl $LIBS"
41455cat >conftest.$ac_ext <<_ACEOF
41456/* confdefs.h. */
41457_ACEOF
41458cat confdefs.h >>conftest.$ac_ext
41459cat >>conftest.$ac_ext <<_ACEOF
41460/* end confdefs.h. */
41461
41462/* Override any gcc2 internal prototype to avoid an error. */
41463#ifdef __cplusplus
41464extern "C"
41465#endif
41466/* We use char because int might match the return type of a gcc2
41467 builtin and then its argument prototype would still apply. */
41468char dlopen ();
41469int
41470main ()
41471{
41472dlopen ();
41473 ;
41474 return 0;
41475}
41476_ACEOF
41477rm -f conftest.$ac_objext conftest$ac_exeext
41478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41479 (eval $ac_link) 2>conftest.er1
a848cd7e 41480 ac_status=$?
ac1cb8d3
VS
41481 grep -v '^ *+' conftest.er1 >conftest.err
41482 rm -f conftest.er1
41483 cat conftest.err >&5
a848cd7e
SC
41484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); } &&
ca5c6ac3 41486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41488 (eval $ac_try) 2>&5
41489 ac_status=$?
41490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491 (exit $ac_status); }; } &&
41492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41494 (eval $ac_try) 2>&5
41495 ac_status=$?
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); }; }; then
41498 ac_cv_lib_dl_dlopen=yes
41499else
41500 echo "$as_me: failed program was:" >&5
41501sed 's/^/| /' conftest.$ac_ext >&5
41502
41503ac_cv_lib_dl_dlopen=no
41504fi
ac1cb8d3
VS
41505rm -f conftest.err conftest.$ac_objext \
41506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41507LIBS=$ac_check_lib_save_LIBS
41508fi
41509echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41510echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41511if test $ac_cv_lib_dl_dlopen = yes; then
41512
41513 cat >>confdefs.h <<\_ACEOF
41514#define HAVE_DLOPEN 1
41515_ACEOF
41516
41517 HAVE_DL_FUNCS=1
41518 DL_LINK=" -ldl$DL_LINK"
41519
41520else
41521
41522
41523for ac_func in shl_load
41524do
41525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41526echo "$as_me:$LINENO: checking for $ac_func" >&5
41527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41528if eval "test \"\${$as_ac_var+set}\" = set"; then
41529 echo $ECHO_N "(cached) $ECHO_C" >&6
41530else
41531 cat >conftest.$ac_ext <<_ACEOF
41532/* confdefs.h. */
41533_ACEOF
41534cat confdefs.h >>conftest.$ac_ext
41535cat >>conftest.$ac_ext <<_ACEOF
41536/* end confdefs.h. */
ac1cb8d3
VS
41537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41539#define $ac_func innocuous_$ac_func
41540
a848cd7e
SC
41541/* System header to define __stub macros and hopefully few prototypes,
41542 which can conflict with char $ac_func (); below.
41543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41544 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41545
a848cd7e
SC
41546#ifdef __STDC__
41547# include <limits.h>
41548#else
41549# include <assert.h>
41550#endif
ac1cb8d3
VS
41551
41552#undef $ac_func
41553
a848cd7e
SC
41554/* Override any gcc2 internal prototype to avoid an error. */
41555#ifdef __cplusplus
41556extern "C"
41557{
41558#endif
41559/* We use char because int might match the return type of a gcc2
41560 builtin and then its argument prototype would still apply. */
41561char $ac_func ();
41562/* The GNU C library defines this for functions which it implements
41563 to always fail with ENOSYS. Some functions are actually named
41564 something starting with __ and the normal name is an alias. */
41565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41566choke me
41567#else
41568char (*f) () = $ac_func;
41569#endif
41570#ifdef __cplusplus
41571}
41572#endif
41573
41574int
41575main ()
41576{
41577return f != $ac_func;
41578 ;
41579 return 0;
41580}
41581_ACEOF
41582rm -f conftest.$ac_objext conftest$ac_exeext
41583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41584 (eval $ac_link) 2>conftest.er1
a848cd7e 41585 ac_status=$?
ac1cb8d3
VS
41586 grep -v '^ *+' conftest.er1 >conftest.err
41587 rm -f conftest.er1
41588 cat conftest.err >&5
a848cd7e
SC
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); } &&
ca5c6ac3 41591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593 (eval $ac_try) 2>&5
41594 ac_status=$?
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); }; } &&
41597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599 (eval $ac_try) 2>&5
41600 ac_status=$?
41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); }; }; then
41603 eval "$as_ac_var=yes"
41604else
41605 echo "$as_me: failed program was:" >&5
41606sed 's/^/| /' conftest.$ac_ext >&5
41607
41608eval "$as_ac_var=no"
41609fi
ac1cb8d3
VS
41610rm -f conftest.err conftest.$ac_objext \
41611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41612fi
41613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41615if test `eval echo '${'$as_ac_var'}'` = yes; then
41616 cat >>confdefs.h <<_ACEOF
41617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41618_ACEOF
41619
41620 cat >>confdefs.h <<\_ACEOF
41621#define HAVE_SHL_LOAD 1
41622_ACEOF
41623
41624 HAVE_SHL_FUNCS=1
41625
41626else
41627
41628 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41629echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41630if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41631 echo $ECHO_N "(cached) $ECHO_C" >&6
41632else
41633 ac_check_lib_save_LIBS=$LIBS
41634LIBS="-lshl_load $LIBS"
41635cat >conftest.$ac_ext <<_ACEOF
41636/* confdefs.h. */
41637_ACEOF
41638cat confdefs.h >>conftest.$ac_ext
41639cat >>conftest.$ac_ext <<_ACEOF
41640/* end confdefs.h. */
41641
41642/* Override any gcc2 internal prototype to avoid an error. */
41643#ifdef __cplusplus
41644extern "C"
41645#endif
41646/* We use char because int might match the return type of a gcc2
41647 builtin and then its argument prototype would still apply. */
41648char dld ();
41649int
41650main ()
41651{
41652dld ();
41653 ;
41654 return 0;
41655}
41656_ACEOF
41657rm -f conftest.$ac_objext conftest$ac_exeext
41658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41659 (eval $ac_link) 2>conftest.er1
a848cd7e 41660 ac_status=$?
ac1cb8d3
VS
41661 grep -v '^ *+' conftest.er1 >conftest.err
41662 rm -f conftest.er1
41663 cat conftest.err >&5
a848cd7e
SC
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); } &&
ca5c6ac3 41666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41668 (eval $ac_try) 2>&5
41669 ac_status=$?
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); }; } &&
41672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41674 (eval $ac_try) 2>&5
41675 ac_status=$?
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); }; }; then
41678 ac_cv_lib_shl_load_dld=yes
41679else
41680 echo "$as_me: failed program was:" >&5
41681sed 's/^/| /' conftest.$ac_ext >&5
41682
41683ac_cv_lib_shl_load_dld=no
41684fi
ac1cb8d3
VS
41685rm -f conftest.err conftest.$ac_objext \
41686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41687LIBS=$ac_check_lib_save_LIBS
41688fi
41689echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41690echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41691if test $ac_cv_lib_shl_load_dld = yes; then
41692
41693 HAVE_SHL_FUNCS=1
41694 DL_LINK=" -ldld$DL_LINK"
41695
41696fi
41697
41698
41699fi
41700done
41701
41702
41703fi
41704
41705
41706fi
41707done
41708
41709
41710 if test "$HAVE_DL_FUNCS" = 1; then
41711
41712for ac_func in dlerror
41713do
41714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41715echo "$as_me:$LINENO: checking for $ac_func" >&5
41716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41717if eval "test \"\${$as_ac_var+set}\" = set"; then
41718 echo $ECHO_N "(cached) $ECHO_C" >&6
41719else
41720 cat >conftest.$ac_ext <<_ACEOF
41721/* confdefs.h. */
41722_ACEOF
41723cat confdefs.h >>conftest.$ac_ext
41724cat >>conftest.$ac_ext <<_ACEOF
41725/* end confdefs.h. */
ac1cb8d3
VS
41726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41728#define $ac_func innocuous_$ac_func
41729
a848cd7e
SC
41730/* System header to define __stub macros and hopefully few prototypes,
41731 which can conflict with char $ac_func (); below.
41732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41733 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41734
a848cd7e
SC
41735#ifdef __STDC__
41736# include <limits.h>
41737#else
41738# include <assert.h>
41739#endif
ac1cb8d3
VS
41740
41741#undef $ac_func
41742
a848cd7e
SC
41743/* Override any gcc2 internal prototype to avoid an error. */
41744#ifdef __cplusplus
41745extern "C"
41746{
41747#endif
41748/* We use char because int might match the return type of a gcc2
41749 builtin and then its argument prototype would still apply. */
41750char $ac_func ();
41751/* The GNU C library defines this for functions which it implements
41752 to always fail with ENOSYS. Some functions are actually named
41753 something starting with __ and the normal name is an alias. */
41754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41755choke me
41756#else
41757char (*f) () = $ac_func;
41758#endif
41759#ifdef __cplusplus
41760}
41761#endif
41762
41763int
41764main ()
41765{
41766return f != $ac_func;
41767 ;
41768 return 0;
41769}
41770_ACEOF
41771rm -f conftest.$ac_objext conftest$ac_exeext
41772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41773 (eval $ac_link) 2>conftest.er1
a848cd7e 41774 ac_status=$?
ac1cb8d3
VS
41775 grep -v '^ *+' conftest.er1 >conftest.err
41776 rm -f conftest.er1
41777 cat conftest.err >&5
a848cd7e
SC
41778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41779 (exit $ac_status); } &&
ca5c6ac3 41780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41782 (eval $ac_try) 2>&5
41783 ac_status=$?
41784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41785 (exit $ac_status); }; } &&
41786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41788 (eval $ac_try) 2>&5
41789 ac_status=$?
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); }; }; then
41792 eval "$as_ac_var=yes"
41793else
41794 echo "$as_me: failed program was:" >&5
41795sed 's/^/| /' conftest.$ac_ext >&5
41796
41797eval "$as_ac_var=no"
41798fi
ac1cb8d3
VS
41799rm -f conftest.err conftest.$ac_objext \
41800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41801fi
41802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41804if test `eval echo '${'$as_ac_var'}'` = yes; then
41805 cat >>confdefs.h <<_ACEOF
41806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41807_ACEOF
41808 cat >>confdefs.h <<\_ACEOF
41809#define HAVE_DLERROR 1
41810_ACEOF
41811
41812else
41813
41814 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41815echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41816if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41817 echo $ECHO_N "(cached) $ECHO_C" >&6
41818else
41819 ac_check_lib_save_LIBS=$LIBS
41820LIBS="-ldl $LIBS"
41821cat >conftest.$ac_ext <<_ACEOF
41822/* confdefs.h. */
41823_ACEOF
41824cat confdefs.h >>conftest.$ac_ext
41825cat >>conftest.$ac_ext <<_ACEOF
41826/* end confdefs.h. */
41827
41828/* Override any gcc2 internal prototype to avoid an error. */
41829#ifdef __cplusplus
41830extern "C"
41831#endif
41832/* We use char because int might match the return type of a gcc2
41833 builtin and then its argument prototype would still apply. */
41834char dlerror ();
41835int
41836main ()
41837{
41838dlerror ();
41839 ;
41840 return 0;
41841}
41842_ACEOF
41843rm -f conftest.$ac_objext conftest$ac_exeext
41844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41845 (eval $ac_link) 2>conftest.er1
a848cd7e 41846 ac_status=$?
ac1cb8d3
VS
41847 grep -v '^ *+' conftest.er1 >conftest.err
41848 rm -f conftest.er1
41849 cat conftest.err >&5
a848cd7e
SC
41850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851 (exit $ac_status); } &&
ca5c6ac3 41852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41854 (eval $ac_try) 2>&5
41855 ac_status=$?
41856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857 (exit $ac_status); }; } &&
41858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41860 (eval $ac_try) 2>&5
41861 ac_status=$?
41862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41863 (exit $ac_status); }; }; then
41864 ac_cv_lib_dl_dlerror=yes
41865else
41866 echo "$as_me: failed program was:" >&5
41867sed 's/^/| /' conftest.$ac_ext >&5
41868
41869ac_cv_lib_dl_dlerror=no
41870fi
ac1cb8d3
VS
41871rm -f conftest.err conftest.$ac_objext \
41872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41873LIBS=$ac_check_lib_save_LIBS
41874fi
41875echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41876echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41877if test $ac_cv_lib_dl_dlerror = yes; then
41878 cat >>confdefs.h <<\_ACEOF
41879#define HAVE_DLERROR 1
41880_ACEOF
41881
41882fi
41883
41884
41885
41886fi
41887done
41888
41889 fi
41890 fi
41891
41892 if test "$HAVE_DL_FUNCS" = 0; then
41893 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41894 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41895 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41896echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41897 wxUSE_DYNAMIC_LOADER=no
41898 wxUSE_DYNLIB_CLASS=no
41899 else
41900 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41901echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41902 fi
41903 fi
41904 fi
41905 fi
41906fi
41907
41908if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41909 cat >>confdefs.h <<\_ACEOF
41910#define wxUSE_DYNAMIC_LOADER 1
41911_ACEOF
41912
41913fi
41914if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41915 cat >>confdefs.h <<\_ACEOF
41916#define wxUSE_DYNLIB_CLASS 1
41917_ACEOF
41918
41919fi
41920
41921
41922
41923if test "$wxUSE_PLUGINS" = "yes" ; then
41924 if test "$wxUSE_SHARED" = "no" ; then
41925 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41926echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41927 wxUSE_PLUGINS=no
41928 fi
41929 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41930 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41931echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41932 wxUSE_PLUGINS=no
41933 fi
41934 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41935 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41936echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41937 wxUSE_PLUGINS=no
41938 fi
41939 if test "$wxUSE_PLUGINS" = "yes" ; then
41940 cat >>confdefs.h <<\_ACEOF
41941#define wxUSE_PLUGINS 1
41942_ACEOF
41943
41944 fi
41945fi
41946
41947
41948if test "$wxUSE_STL" = "yes"; then
41949 cat >>confdefs.h <<\_ACEOF
41950#define wxUSE_STL 1
41951_ACEOF
41952
41953fi
41954
41955if test "$wxUSE_APPLE_IEEE" = "yes"; then
41956 cat >>confdefs.h <<\_ACEOF
41957#define wxUSE_APPLE_IEEE 1
41958_ACEOF
41959
41960fi
41961
41962if test "$wxUSE_TIMER" = "yes"; then
41963 cat >>confdefs.h <<\_ACEOF
41964#define wxUSE_TIMER 1
41965_ACEOF
41966
41967fi
41968
9c112555 41969if test "$USE_UNIX" = "1" ; then
31714590
VZ
41970 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41971echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41972if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41973 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41974else
d12aef51
VZ
41975
41976 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41977/* confdefs.h. */
41978_ACEOF
41979cat confdefs.h >>conftest.$ac_ext
41980cat >>conftest.$ac_ext <<_ACEOF
41981/* end confdefs.h. */
d12aef51 41982
31714590 41983 #include <sys/ioctl.h>
d12aef51
VZ
41984 #include <sys/soundcard.h>
41985
41986int
41987main ()
41988{
41989
31714590 41990 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41991
41992 ;
41993 return 0;
41994}
a848cd7e 41995_ACEOF
d12aef51
VZ
41996rm -f conftest.$ac_objext conftest$ac_exeext
41997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41998 (eval $ac_link) 2>conftest.er1
a848cd7e 41999 ac_status=$?
ac1cb8d3
VS
42000 grep -v '^ *+' conftest.er1 >conftest.err
42001 rm -f conftest.er1
42002 cat conftest.err >&5
a848cd7e
SC
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); } &&
ca5c6ac3 42005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42008 ac_status=$?
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; } &&
d12aef51 42011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
d12aef51 42017 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42018else
42019 echo "$as_me: failed program was:" >&5
42020sed 's/^/| /' conftest.$ac_ext >&5
42021
a848cd7e 42022
d12aef51
VZ
42023 saveLibs="$LIBS"
42024 LIBS="$saveLibs -lossaudio"
42025 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42026/* confdefs.h. */
42027_ACEOF
42028cat confdefs.h >>conftest.$ac_ext
42029cat >>conftest.$ac_ext <<_ACEOF
42030/* end confdefs.h. */
d12aef51 42031
31714590 42032 #include <sys/ioctl.h>
d12aef51
VZ
42033 #include <sys/soundcard.h>
42034
42035int
42036main ()
42037{
42038
31714590 42039 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42040
42041 ;
42042 return 0;
42043}
a848cd7e 42044_ACEOF
d12aef51
VZ
42045rm -f conftest.$ac_objext conftest$ac_exeext
42046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42047 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42048 ac_status=$?
42049 grep -v '^ *+' conftest.er1 >conftest.err
42050 rm -f conftest.er1
42051 cat conftest.err >&5
42052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42053 (exit $ac_status); } &&
ca5c6ac3 42054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42056 (eval $ac_try) 2>&5
42057 ac_status=$?
42058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42059 (exit $ac_status); }; } &&
42060 { ac_try='test -s conftest$ac_exeext'
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42063 ac_status=$?
42064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; }; then
42066 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42067else
42068 echo "$as_me: failed program was:" >&5
42069sed 's/^/| /' conftest.$ac_ext >&5
42070
a848cd7e 42071
d12aef51
VZ
42072 LIBS="$saveLibs"
42073 ac_cv_header_sys_soundcard=no
42074
42075
a848cd7e 42076fi
d12aef51
VZ
42077rm -f conftest.err conftest.$ac_objext \
42078 conftest$ac_exeext conftest.$ac_ext
42079
a848cd7e
SC
42080
42081fi
d12aef51
VZ
42082rm -f conftest.err conftest.$ac_objext \
42083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42084
42085fi
d12aef51
VZ
42086echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42087echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42088
d12aef51
VZ
42089 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42090 cat >>confdefs.h <<\_ACEOF
42091#define HAVE_SYS_SOUNDCARD_H 1
42092_ACEOF
a848cd7e 42093
d12aef51
VZ
42094 else
42095 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42096 fi
9c112555
MW
42097fi
42098WITH_PLUGIN_SDL=0
42099if test "$wxUSE_SOUND" = "yes"; then
42100 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42101 if test "$wxUSE_LIBSDL" != "no"; then
42102
42103# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42104if test "${with_sdl_prefix+set}" = set; then
42105 withval="$with_sdl_prefix"
42106 sdl_prefix="$withval"
42107else
42108 sdl_prefix=""
42109fi;
42110
42111# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42112if test "${with_sdl_exec_prefix+set}" = set; then
42113 withval="$with_sdl_exec_prefix"
42114 sdl_exec_prefix="$withval"
42115else
42116 sdl_exec_prefix=""
42117fi;
42118# Check whether --enable-sdltest or --disable-sdltest was given.
42119if test "${enable_sdltest+set}" = set; then
42120 enableval="$enable_sdltest"
42121
42122else
42123 enable_sdltest=yes
42124fi;
42125
42126 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42127 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42128 if test x${SDL_CONFIG+set} != xset ; then
42129 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42130 fi
a848cd7e
SC
42131 fi
42132 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42133 sdl_args="$sdl_args --prefix=$sdl_prefix"
42134 if test x${SDL_CONFIG+set} != xset ; then
42135 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42136 fi
a848cd7e
SC
42137 fi
42138
3ecd9f92
MW
42139 if test "x$prefix" != xNONE; then
42140 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42141 fi
a848cd7e
SC
42142 # Extract the first word of "sdl-config", so it can be a program name with args.
42143set dummy sdl-config; ac_word=$2
42144echo "$as_me:$LINENO: checking for $ac_word" >&5
42145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42146if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42147 echo $ECHO_N "(cached) $ECHO_C" >&6
42148else
42149 case $SDL_CONFIG in
42150 [\\/]* | ?:[\\/]*)
42151 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42152 ;;
42153 *)
42154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42155for as_dir in $PATH
42156do
42157 IFS=$as_save_IFS
42158 test -z "$as_dir" && as_dir=.
42159 for ac_exec_ext in '' $ac_executable_extensions; do
42160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42161 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42163 break 2
42164 fi
42165done
42166done
42167
42168 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42169 ;;
42170esac
42171fi
42172SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42173
42174if test -n "$SDL_CONFIG"; then
42175 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42176echo "${ECHO_T}$SDL_CONFIG" >&6
42177else
42178 echo "$as_me:$LINENO: result: no" >&5
42179echo "${ECHO_T}no" >&6
42180fi
42181
42182 min_sdl_version=1.2.0
42183 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42184echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42185 no_sdl=""
42186 if test "$SDL_CONFIG" = "no" ; then
42187 no_sdl=yes
42188 else
42189 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42190 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42191
42192 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42193 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42194 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42196 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42198 if test "x$enable_sdltest" = "xyes" ; then
42199 ac_save_CFLAGS="$CFLAGS"
94acd38e 42200 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42201 ac_save_LIBS="$LIBS"
42202 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42203 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42204 LIBS="$LIBS $SDL_LIBS"
42205 rm -f conf.sdltest
42206 if test "$cross_compiling" = yes; then
42207 echo $ac_n "cross compiling; assumed OK... $ac_c"
42208else
42209 cat >conftest.$ac_ext <<_ACEOF
42210/* confdefs.h. */
42211_ACEOF
42212cat confdefs.h >>conftest.$ac_ext
42213cat >>conftest.$ac_ext <<_ACEOF
42214/* end confdefs.h. */
42215
42216#include <stdio.h>
42217#include <stdlib.h>
42218#include <string.h>
42219#include "SDL.h"
42220
42221char*
42222my_strdup (char *str)
42223{
42224 char *new_str;
42225
42226 if (str)
42227 {
42228 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42229 strcpy (new_str, str);
42230 }
42231 else
42232 new_str = NULL;
42233
42234 return new_str;
42235}
42236
42237int main (int argc, char *argv[])
42238{
42239 int major, minor, micro;
42240 char *tmp_version;
42241
42242 /* This hangs on some systems (?)
42243 system ("touch conf.sdltest");
42244 */
42245 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42246
42247 /* HP/UX 9 (%@#!) writes to sscanf strings */
42248 tmp_version = my_strdup("$min_sdl_version");
42249 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42250 printf("%s, bad version string\n", "$min_sdl_version");
42251 exit(1);
42252 }
42253
42254 if (($sdl_major_version > major) ||
42255 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42256 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42257 {
42258 return 0;
42259 }
42260 else
42261 {
42262 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42263 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42264 printf("*** best to upgrade to the required version.\n");
42265 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42266 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42267 printf("*** config.cache before re-running configure\n");
42268 return 1;
42269 }
42270}
42271
42272
42273_ACEOF
42274rm -f conftest$ac_exeext
42275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42276 (eval $ac_link) 2>&5
42277 ac_status=$?
42278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42281 (eval $ac_try) 2>&5
42282 ac_status=$?
42283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42284 (exit $ac_status); }; }; then
42285 :
42286else
42287 echo "$as_me: program exited with status $ac_status" >&5
42288echo "$as_me: failed program was:" >&5
42289sed 's/^/| /' conftest.$ac_ext >&5
42290
42291( exit $ac_status )
42292no_sdl=yes
42293fi
ac1cb8d3 42294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42295fi
42296 CFLAGS="$ac_save_CFLAGS"
94acd38e 42297 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42298 LIBS="$ac_save_LIBS"
42299 fi
42300 fi
42301 if test "x$no_sdl" = x ; then
42302 echo "$as_me:$LINENO: result: yes" >&5
42303echo "${ECHO_T}yes" >&6
42304
42305 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42306 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42307 cat >>confdefs.h <<\_ACEOF
42308#define wxUSE_LIBSDL 1
42309_ACEOF
42310
42311
42312 else
42313 echo "$as_me:$LINENO: result: no" >&5
42314echo "${ECHO_T}no" >&6
42315 if test "$SDL_CONFIG" = "no" ; then
42316 echo "*** The sdl-config script installed by SDL could not be found"
42317 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42318 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42319 echo "*** full path to sdl-config."
42320 else
42321 if test -f conf.sdltest ; then
42322 :
42323 else
42324 echo "*** Could not run SDL test program, checking why..."
42325 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42326 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42327 LIBS="$LIBS $SDL_LIBS"
42328 cat >conftest.$ac_ext <<_ACEOF
42329/* confdefs.h. */
42330_ACEOF
42331cat confdefs.h >>conftest.$ac_ext
42332cat >>conftest.$ac_ext <<_ACEOF
42333/* end confdefs.h. */
42334
42335#include <stdio.h>
42336#include "SDL.h"
42337
42338int main(int argc, char *argv[])
42339{ return 0; }
42340#undef main
42341#define main K_and_R_C_main
42342
42343int
42344main ()
42345{
42346 return 0;
42347 ;
42348 return 0;
42349}
42350_ACEOF
42351rm -f conftest.$ac_objext conftest$ac_exeext
42352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42353 (eval $ac_link) 2>conftest.er1
a848cd7e 42354 ac_status=$?
ac1cb8d3
VS
42355 grep -v '^ *+' conftest.er1 >conftest.err
42356 rm -f conftest.er1
42357 cat conftest.err >&5
a848cd7e
SC
42358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42359 (exit $ac_status); } &&
ca5c6ac3 42360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42362 (eval $ac_try) 2>&5
42363 ac_status=$?
42364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); }; } &&
42366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42368 (eval $ac_try) 2>&5
42369 ac_status=$?
42370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42371 (exit $ac_status); }; }; then
42372 echo "*** The test program compiled, but did not run. This usually means"
42373 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42374 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42375 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42376 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42377 echo "*** is required on your system"
42378 echo "***"
42379 echo "*** If you have an old version installed, it is best to remove it, although"
42380 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42381else
42382 echo "$as_me: failed program was:" >&5
42383sed 's/^/| /' conftest.$ac_ext >&5
42384
42385 echo "*** The test program failed to compile or link. See the file config.log for the"
42386 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42387 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42388 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42389fi
ac1cb8d3
VS
42390rm -f conftest.err conftest.$ac_objext \
42391 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42392 CFLAGS="$ac_save_CFLAGS"
94acd38e 42393 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42394 LIBS="$ac_save_LIBS"
42395 fi
42396 fi
42397 SDL_CFLAGS=""
42398 SDL_LIBS=""
42399 wxUSE_LIBSDL="no"
42400 fi
42401
42402
42403 rm -f conf.sdltest
42404
42405 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42406 WITH_PLUGIN_SDL=1
42407 fi
42408 fi
42409 fi
42410
42411 cat >>confdefs.h <<\_ACEOF
42412#define wxUSE_SOUND 1
42413_ACEOF
42414
42415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42416fi
42417
d1c38808
VZ
42418if test "$WXGTK20" = 1; then
42419 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42420 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42421
42422
3ecd9f92
MW
42423pkg_failed=no
42424echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42425echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42426
3ecd9f92
MW
42427if test -n "$PKG_CONFIG"; then
42428 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42429 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42430 else
42431 if test -n "$PKG_CONFIG" && \
42432 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42433 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42434 ac_status=$?
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); }; then
42437 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42438else
3ecd9f92
MW
42439 pkg_failed=yes
42440fi
42441 fi
42442else
42443 pkg_failed=untried
d1c38808 42444fi
d1c38808 42445if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42446 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42447 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42448 else
42449 if test -n "$PKG_CONFIG" && \
42450 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42451 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42452 ac_status=$?
42453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42454 (exit $ac_status); }; then
42455 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42456else
3ecd9f92
MW
42457 pkg_failed=yes
42458fi
42459 fi
42460else
42461 pkg_failed=untried
d1c38808
VZ
42462fi
42463
d1c38808 42464
d1c38808 42465
3ecd9f92 42466if test $pkg_failed = yes; then
d1c38808 42467
3ecd9f92
MW
42468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42469 _pkg_short_errors_supported=yes
42470else
42471 _pkg_short_errors_supported=no
42472fi
42473 if test $_pkg_short_errors_supported = yes; then
42474 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42475 else
42476 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42477 fi
3ecd9f92
MW
42478 # Put the nasty error message in config.log where it belongs
42479 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42480
42481
3ecd9f92
MW
42482 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42483echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42484 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42485
42486
3ecd9f92 42487elif test $pkg_failed = untried; then
d1c38808
VZ
42488
42489 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42490echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42491 wxUSE_LIBGNOMEPRINT="no"
42492
42493
3ecd9f92
MW
42494else
42495 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42496 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42497 echo "$as_me:$LINENO: result: yes" >&5
42498echo "${ECHO_T}yes" >&6
d1c38808 42499
3ecd9f92
MW
42500 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42501 cat >>confdefs.h <<\_ACEOF
42502#define wxUSE_LIBGNOMEPRINT 1
42503_ACEOF
42504
42505
42506fi
d1c38808
VZ
42507 fi
42508 fi
42509fi
42510
2b850ae1
RR
42511if test "$WXGTK20" = 1; then
42512 if test "$wxUSE_MIMETYPE" = "yes" ; then
42513 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42514
42515
3ecd9f92
MW
42516pkg_failed=no
42517echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42518echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42519
3ecd9f92
MW
42520if test -n "$PKG_CONFIG"; then
42521 if test -n "$GNOMEVFS_CFLAGS"; then
42522 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42523 else
42524 if test -n "$PKG_CONFIG" && \
42525 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42526 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42527 ac_status=$?
42528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42529 (exit $ac_status); }; then
42530 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42531else
3ecd9f92
MW
42532 pkg_failed=yes
42533fi
42534 fi
42535else
42536 pkg_failed=untried
2b850ae1 42537fi
2b850ae1 42538if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42539 if test -n "$GNOMEVFS_LIBS"; then
42540 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42541 else
42542 if test -n "$PKG_CONFIG" && \
42543 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42544 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42545 ac_status=$?
42546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42547 (exit $ac_status); }; then
42548 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42549else
3ecd9f92
MW
42550 pkg_failed=yes
42551fi
42552 fi
42553else
42554 pkg_failed=untried
2b850ae1
RR
42555fi
42556
2b850ae1 42557
2b850ae1 42558
3ecd9f92 42559if test $pkg_failed = yes; then
2b850ae1 42560
3ecd9f92
MW
42561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42562 _pkg_short_errors_supported=yes
42563else
42564 _pkg_short_errors_supported=no
42565fi
42566 if test $_pkg_short_errors_supported = yes; then
42567 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42568 else
42569 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42570 fi
3ecd9f92
MW
42571 # Put the nasty error message in config.log where it belongs
42572 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42573
42574
3ecd9f92
MW
42575 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42576echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42577 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42578
42579
3ecd9f92 42580elif test $pkg_failed = untried; then
2b850ae1
RR
42581
42582 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42583echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42584 wxUSE_LIBGNOMEVFS="no"
42585
42586
3ecd9f92
MW
42587else
42588 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42589 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42590 echo "$as_me:$LINENO: result: yes" >&5
42591echo "${ECHO_T}yes" >&6
2b850ae1 42592
3ecd9f92
MW
42593 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42594 cat >>confdefs.h <<\_ACEOF
42595#define wxUSE_LIBGNOMEVFS 1
42596_ACEOF
42597
42598
42599fi
2b850ae1
RR
42600 fi
42601 fi
42602fi
42603
3565d135
RR
42604if test "$WXGTK20" = 1; then
42605 if test "$wxUSE_LIBHILDON" = "yes" ; then
42606
3ecd9f92
MW
42607pkg_failed=no
42608echo "$as_me:$LINENO: checking for HILDON" >&5
42609echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42610
3ecd9f92
MW
42611if test -n "$PKG_CONFIG"; then
42612 if test -n "$HILDON_CFLAGS"; then
42613 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42614 else
42615 if test -n "$PKG_CONFIG" && \
42616 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42617 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42618 ac_status=$?
42619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620 (exit $ac_status); }; then
42621 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42622else
3ecd9f92
MW
42623 pkg_failed=yes
42624fi
42625 fi
42626else
42627 pkg_failed=untried
3565d135 42628fi
3565d135 42629if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42630 if test -n "$HILDON_LIBS"; then
42631 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42632 else
42633 if test -n "$PKG_CONFIG" && \
42634 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42635 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42636 ac_status=$?
42637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638 (exit $ac_status); }; then
42639 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42640else
3ecd9f92
MW
42641 pkg_failed=yes
42642fi
42643 fi
42644else
42645 pkg_failed=untried
3565d135
RR
42646fi
42647
3565d135 42648
3565d135 42649
3ecd9f92 42650if test $pkg_failed = yes; then
3565d135 42651
3ecd9f92
MW
42652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42653 _pkg_short_errors_supported=yes
42654else
42655 _pkg_short_errors_supported=no
42656fi
42657 if test $_pkg_short_errors_supported = yes; then
42658 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42659 else
42660 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42661 fi
3ecd9f92
MW
42662 # Put the nasty error message in config.log where it belongs
42663 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42664
42665
3ecd9f92
MW
42666 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42667echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42668 wxUSE_LIBHILDON="no"
3565d135 42669
3565d135 42670
3ecd9f92
MW
42671elif test $pkg_failed = untried; then
42672
42673 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42674echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42675 wxUSE_LIBHILDON="no"
42676
42677
42678else
42679 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42680 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42681 echo "$as_me:$LINENO: result: yes" >&5
42682echo "${ECHO_T}yes" >&6
3565d135
RR
42683
42684 EXTRALIBS_HILDON="$HILDON_LIBS"
42685 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42686 cat >>confdefs.h <<\_ACEOF
42687#define wxUSE_LIBHILDON 1
42688_ACEOF
42689
42690
3ecd9f92 42691fi
3565d135
RR
42692 fi
42693fi
d1c38808 42694
a848cd7e
SC
42695if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42696 cat >>confdefs.h <<\_ACEOF
42697#define wxUSE_CMDLINE_PARSER 1
42698_ACEOF
42699
42700fi
42701
42702if test "$wxUSE_STOPWATCH" = "yes"; then
42703 cat >>confdefs.h <<\_ACEOF
42704#define wxUSE_STOPWATCH 1
42705_ACEOF
42706
42707fi
42708
42709if test "$wxUSE_DATETIME" = "yes"; then
42710 cat >>confdefs.h <<\_ACEOF
42711#define wxUSE_DATETIME 1
42712_ACEOF
42713
42714fi
42715
42716if test "$wxUSE_FILE" = "yes"; then
42717 cat >>confdefs.h <<\_ACEOF
42718#define wxUSE_FILE 1
42719_ACEOF
42720
42721fi
42722
42723if test "$wxUSE_FFILE" = "yes"; then
42724 cat >>confdefs.h <<\_ACEOF
42725#define wxUSE_FFILE 1
42726_ACEOF
42727
42728fi
42729
42730if test "$wxUSE_FILESYSTEM" = "yes"; then
42731 cat >>confdefs.h <<\_ACEOF
42732#define wxUSE_FILESYSTEM 1
42733_ACEOF
42734
42735fi
42736
42737if test "$wxUSE_FS_ZIP" = "yes"; then
42738 cat >>confdefs.h <<\_ACEOF
42739#define wxUSE_FS_ZIP 1
42740_ACEOF
42741
42742fi
42743
9e8e867f 42744if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42745 cat >>confdefs.h <<\_ACEOF
9e8e867f 42746#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42747_ACEOF
42748
42749fi
42750
42751if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42752 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42753 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42754echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42755 elif test "$wxUSE_ZLIB" = "no"; then
42756 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42757echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42758 else
42759 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42760#define wxUSE_ZIPSTREAM 1
42761_ACEOF
42762
81f90336 42763 fi
a848cd7e
SC
42764fi
42765
a848cd7e 42766if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42767 if test "$USE_UNIX" != 1; then
42768 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42769echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42770 wxUSE_ON_FATAL_EXCEPTION=no
42771 else
42772 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42773#define wxUSE_ON_FATAL_EXCEPTION 1
42774_ACEOF
42775
18228ab4 42776 fi
a848cd7e
SC
42777fi
42778
eaff0f0d
VZ
42779if test "$wxUSE_STACKWALKER" = "yes"; then
42780 cat >>confdefs.h <<\_ACEOF
42781#define wxUSE_STACKWALKER 1
42782_ACEOF
42783
42784fi
42785
36b6448c 42786if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42787 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42788 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42789echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42790 wxUSE_DEBUGREPORT=no
42791 else
42792 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42793#define wxUSE_DEBUGREPORT 1
42794_ACEOF
42795
21dfc162
MW
42796 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42798 fi
dfe0c803 42799 fi
36b6448c
VZ
42800fi
42801
a848cd7e
SC
42802if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42803 cat >>confdefs.h <<\_ACEOF
42804#define wxUSE_SNGLINST_CHECKER 1
42805_ACEOF
42806
42807fi
42808
42809if test "$wxUSE_BUSYINFO" = "yes"; then
42810 cat >>confdefs.h <<\_ACEOF
42811#define wxUSE_BUSYINFO 1
42812_ACEOF
42813
42814fi
42815
42816if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42817 cat >>confdefs.h <<\_ACEOF
42818#define wxUSE_STD_IOSTREAM 1
42819_ACEOF
42820
42821fi
42822
59746b65
MW
42823if test "$wxUSE_STD_STRING" = "yes"; then
42824 cat >>confdefs.h <<\_ACEOF
42825#define wxUSE_STD_STRING 1
42826_ACEOF
42827
42828fi
42829
07158944
VZ
42830if test "$wxUSE_STDPATHS" = "yes"; then
42831 cat >>confdefs.h <<\_ACEOF
42832#define wxUSE_STDPATHS 1
42833_ACEOF
42834
42835fi
42836
a848cd7e
SC
42837if test "$wxUSE_TEXTBUFFER" = "yes"; then
42838 cat >>confdefs.h <<\_ACEOF
42839#define wxUSE_TEXTBUFFER 1
42840_ACEOF
42841
42842fi
42843
42844if test "$wxUSE_TEXTFILE" = "yes"; then
42845 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42846 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42847echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42848 else
42849 cat >>confdefs.h <<\_ACEOF
42850#define wxUSE_TEXTFILE 1
42851_ACEOF
42852
42853 fi
42854fi
42855
42856if test "$wxUSE_CONFIG" = "yes" ; then
42857 if test "$wxUSE_TEXTFILE" != "yes"; then
42858 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42859echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42860 else
42861 cat >>confdefs.h <<\_ACEOF
42862#define wxUSE_CONFIG 1
89be85c2
VS
42863_ACEOF
42864
42865 cat >>confdefs.h <<\_ACEOF
42866#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42867_ACEOF
42868
42869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42870 fi
42871fi
42872
42873if test "$wxUSE_INTL" = "yes" ; then
42874 if test "$wxUSE_FILE" != "yes"; then
42875 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42876echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42877 else
42878 cat >>confdefs.h <<\_ACEOF
42879#define wxUSE_INTL 1
42880_ACEOF
42881
42882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42883 GUIDIST="$GUIDIST INTL_DIST"
42884 fi
42885fi
42886
42887if test "$wxUSE_LOG" = "yes"; then
42888 cat >>confdefs.h <<\_ACEOF
42889#define wxUSE_LOG 1
42890_ACEOF
42891
42892
42893 if test "$wxUSE_LOGGUI" = "yes"; then
42894 cat >>confdefs.h <<\_ACEOF
42895#define wxUSE_LOGGUI 1
42896_ACEOF
42897
42898 fi
42899
42900 if test "$wxUSE_LOGWINDOW" = "yes"; then
42901 cat >>confdefs.h <<\_ACEOF
42902#define wxUSE_LOGWINDOW 1
42903_ACEOF
42904
42905 fi
42906
42907 if test "$wxUSE_LOGDIALOG" = "yes"; then
42908 cat >>confdefs.h <<\_ACEOF
42909#define wxUSE_LOG_DIALOG 1
42910_ACEOF
42911
42912 fi
0b78747f
MW
42913
42914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42915fi
42916
42917if test "$wxUSE_LONGLONG" = "yes"; then
42918 cat >>confdefs.h <<\_ACEOF
42919#define wxUSE_LONGLONG 1
42920_ACEOF
42921
42922fi
42923
42924if test "$wxUSE_GEOMETRY" = "yes"; then
42925 cat >>confdefs.h <<\_ACEOF
42926#define wxUSE_GEOMETRY 1
42927_ACEOF
42928
42929fi
42930
a848cd7e
SC
42931if test "$wxUSE_STREAMS" = "yes" ; then
42932 cat >>confdefs.h <<\_ACEOF
42933#define wxUSE_STREAMS 1
42934_ACEOF
42935
42936fi
42937
8b6682b9
JS
42938if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42939 cat >>confdefs.h <<\_ACEOF
42940#define wxUSE_PRINTF_POS_PARAMS 1
42941_ACEOF
42942
42943fi
42944
42945
a848cd7e
SC
42946
42947if test "$wxUSE_DATETIME" = "yes"; then
42948
42949for ac_func in strptime
42950do
42951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42952echo "$as_me:$LINENO: checking for $ac_func" >&5
42953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42954if eval "test \"\${$as_ac_var+set}\" = set"; then
42955 echo $ECHO_N "(cached) $ECHO_C" >&6
42956else
42957 cat >conftest.$ac_ext <<_ACEOF
42958/* confdefs.h. */
42959_ACEOF
42960cat confdefs.h >>conftest.$ac_ext
42961cat >>conftest.$ac_ext <<_ACEOF
42962/* end confdefs.h. */
ac1cb8d3
VS
42963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42965#define $ac_func innocuous_$ac_func
42966
a848cd7e
SC
42967/* System header to define __stub macros and hopefully few prototypes,
42968 which can conflict with char $ac_func (); below.
42969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42970 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42971
a848cd7e
SC
42972#ifdef __STDC__
42973# include <limits.h>
42974#else
42975# include <assert.h>
42976#endif
ac1cb8d3
VS
42977
42978#undef $ac_func
42979
a848cd7e
SC
42980/* Override any gcc2 internal prototype to avoid an error. */
42981#ifdef __cplusplus
42982extern "C"
42983{
42984#endif
42985/* We use char because int might match the return type of a gcc2
42986 builtin and then its argument prototype would still apply. */
42987char $ac_func ();
42988/* The GNU C library defines this for functions which it implements
42989 to always fail with ENOSYS. Some functions are actually named
42990 something starting with __ and the normal name is an alias. */
42991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42992choke me
42993#else
42994char (*f) () = $ac_func;
42995#endif
42996#ifdef __cplusplus
42997}
42998#endif
42999
43000int
43001main ()
43002{
43003return f != $ac_func;
43004 ;
43005 return 0;
43006}
43007_ACEOF
43008rm -f conftest.$ac_objext conftest$ac_exeext
43009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43010 (eval $ac_link) 2>conftest.er1
a848cd7e 43011 ac_status=$?
ac1cb8d3
VS
43012 grep -v '^ *+' conftest.er1 >conftest.err
43013 rm -f conftest.er1
43014 cat conftest.err >&5
a848cd7e
SC
43015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43016 (exit $ac_status); } &&
ca5c6ac3 43017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43019 (eval $ac_try) 2>&5
43020 ac_status=$?
43021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43022 (exit $ac_status); }; } &&
43023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43025 (eval $ac_try) 2>&5
43026 ac_status=$?
43027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028 (exit $ac_status); }; }; then
43029 eval "$as_ac_var=yes"
43030else
43031 echo "$as_me: failed program was:" >&5
43032sed 's/^/| /' conftest.$ac_ext >&5
43033
43034eval "$as_ac_var=no"
43035fi
ac1cb8d3
VS
43036rm -f conftest.err conftest.$ac_objext \
43037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43038fi
43039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43040echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43041if test `eval echo '${'$as_ac_var'}'` = yes; then
43042 cat >>confdefs.h <<_ACEOF
43043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43044_ACEOF
43045
43046fi
43047done
43048
f536f005
VZ
43049 if test "$ac_cv_func_strptime" = "yes"; then
43050 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43051echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43052if test "${wx_cv_func_strptime_decl+set}" = set; then
43053 echo $ECHO_N "(cached) $ECHO_C" >&6
43054else
43055
f536f005
VZ
43056 cat >conftest.$ac_ext <<_ACEOF
43057/* confdefs.h. */
43058_ACEOF
43059cat confdefs.h >>conftest.$ac_ext
43060cat >>conftest.$ac_ext <<_ACEOF
43061/* end confdefs.h. */
43062
43063 #include <time.h>
43064
43065int
43066main ()
43067{
43068
43069 struct tm t;
43070 strptime("foo", "bar", &t);
43071
43072 ;
43073 return 0;
43074}
43075_ACEOF
43076rm -f conftest.$ac_objext
43077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43078 (eval $ac_compile) 2>conftest.er1
43079 ac_status=$?
43080 grep -v '^ *+' conftest.er1 >conftest.err
43081 rm -f conftest.er1
43082 cat conftest.err >&5
43083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084 (exit $ac_status); } &&
ca5c6ac3 43085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
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); }; } &&
43091 { ac_try='test -s conftest.$ac_objext'
43092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43093 (eval $ac_try) 2>&5
43094 ac_status=$?
43095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43096 (exit $ac_status); }; }; then
43097 wx_cv_func_strptime_decl=yes
43098else
43099 echo "$as_me: failed program was:" >&5
43100sed 's/^/| /' conftest.$ac_ext >&5
43101
43102wx_cv_func_strptime_decl=no
43103
43104fi
43105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43106
43107
43108fi
43109echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43110echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43111 fi
43112 if test "$wx_cv_func_strptime_decl" = "yes"; then
43113 cat >>confdefs.h <<\_ACEOF
43114#define HAVE_STRPTIME_DECL 1
43115_ACEOF
43116
43117 fi
a848cd7e
SC
43118
43119 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43120echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43121if test "${wx_cv_var_timezone+set}" = set; then
43122 echo $ECHO_N "(cached) $ECHO_C" >&6
43123else
43124
43125 cat >conftest.$ac_ext <<_ACEOF
43126/* confdefs.h. */
43127_ACEOF
43128cat confdefs.h >>conftest.$ac_ext
43129cat >>conftest.$ac_ext <<_ACEOF
43130/* end confdefs.h. */
43131
43132 #include <time.h>
43133
43134int
43135main ()
43136{
43137
43138 int tz;
43139 tz = timezone;
43140
43141 ;
43142 return 0;
43143}
43144_ACEOF
43145rm -f conftest.$ac_objext
43146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43147 (eval $ac_compile) 2>conftest.er1
a848cd7e 43148 ac_status=$?
ac1cb8d3
VS
43149 grep -v '^ *+' conftest.er1 >conftest.err
43150 rm -f conftest.er1
43151 cat conftest.err >&5
a848cd7e
SC
43152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43153 (exit $ac_status); } &&
ca5c6ac3 43154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43156 (eval $ac_try) 2>&5
43157 ac_status=$?
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); }; } &&
43160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162 (eval $ac_try) 2>&5
43163 ac_status=$?
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); }; }; then
43166
43167 wx_cv_var_timezone=timezone
43168
43169else
43170 echo "$as_me: failed program was:" >&5
43171sed 's/^/| /' conftest.$ac_ext >&5
43172
43173
43174 cat >conftest.$ac_ext <<_ACEOF
43175/* confdefs.h. */
43176_ACEOF
43177cat confdefs.h >>conftest.$ac_ext
43178cat >>conftest.$ac_ext <<_ACEOF
43179/* end confdefs.h. */
43180
43181 #include <time.h>
43182
43183int
43184main ()
43185{
43186
43187 int tz;
43188 tz = _timezone;
43189
43190 ;
43191 return 0;
43192}
43193_ACEOF
43194rm -f conftest.$ac_objext
43195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43196 (eval $ac_compile) 2>conftest.er1
a848cd7e 43197 ac_status=$?
ac1cb8d3
VS
43198 grep -v '^ *+' conftest.er1 >conftest.err
43199 rm -f conftest.er1
43200 cat conftest.err >&5
a848cd7e
SC
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); } &&
ca5c6ac3 43203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205 (eval $ac_try) 2>&5
43206 ac_status=$?
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); }; } &&
43209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; }; then
43215
43216 wx_cv_var_timezone=_timezone
43217
43218else
43219 echo "$as_me: failed program was:" >&5
43220sed 's/^/| /' conftest.$ac_ext >&5
43221
43222
43223 cat >conftest.$ac_ext <<_ACEOF
43224/* confdefs.h. */
43225_ACEOF
43226cat confdefs.h >>conftest.$ac_ext
43227cat >>conftest.$ac_ext <<_ACEOF
43228/* end confdefs.h. */
43229
43230 #include <time.h>
43231
43232int
43233main ()
43234{
43235
43236 int tz;
43237 tz = __timezone;
43238
43239 ;
43240 return 0;
43241}
43242_ACEOF
43243rm -f conftest.$ac_objext
43244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43245 (eval $ac_compile) 2>conftest.er1
a848cd7e 43246 ac_status=$?
ac1cb8d3
VS
43247 grep -v '^ *+' conftest.er1 >conftest.err
43248 rm -f conftest.er1
43249 cat conftest.err >&5
a848cd7e
SC
43250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251 (exit $ac_status); } &&
ca5c6ac3 43252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43254 (eval $ac_try) 2>&5
43255 ac_status=$?
43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257 (exit $ac_status); }; } &&
43258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43260 (eval $ac_try) 2>&5
43261 ac_status=$?
43262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43263 (exit $ac_status); }; }; then
43264
43265 wx_cv_var_timezone=__timezone
43266
43267else
43268 echo "$as_me: failed program was:" >&5
43269sed 's/^/| /' conftest.$ac_ext >&5
43270
43271
43272 if test "$USE_DOS" = 0 ; then
43273 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43274echo "$as_me: WARNING: no timezone variable" >&2;}
43275 fi
43276
43277
43278fi
ac1cb8d3 43279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43280
43281
43282fi
ac1cb8d3 43283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43284
43285
43286fi
ac1cb8d3 43287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43288
43289
43290fi
43291echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43292echo "${ECHO_T}$wx_cv_var_timezone" >&6
43293
43294 if test "x$wx_cv_var_timezone" != x ; then
43295 cat >>confdefs.h <<_ACEOF
43296#define WX_TIMEZONE $wx_cv_var_timezone
43297_ACEOF
43298
43299 fi
43300
43301
43302for ac_func in localtime
43303do
43304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43305echo "$as_me:$LINENO: checking for $ac_func" >&5
43306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43307if eval "test \"\${$as_ac_var+set}\" = set"; then
43308 echo $ECHO_N "(cached) $ECHO_C" >&6
43309else
43310 cat >conftest.$ac_ext <<_ACEOF
43311/* confdefs.h. */
43312_ACEOF
43313cat confdefs.h >>conftest.$ac_ext
43314cat >>conftest.$ac_ext <<_ACEOF
43315/* end confdefs.h. */
ac1cb8d3
VS
43316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43318#define $ac_func innocuous_$ac_func
43319
a848cd7e
SC
43320/* System header to define __stub macros and hopefully few prototypes,
43321 which can conflict with char $ac_func (); below.
43322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43324
a848cd7e
SC
43325#ifdef __STDC__
43326# include <limits.h>
43327#else
43328# include <assert.h>
43329#endif
ac1cb8d3
VS
43330
43331#undef $ac_func
43332
a848cd7e
SC
43333/* Override any gcc2 internal prototype to avoid an error. */
43334#ifdef __cplusplus
43335extern "C"
43336{
43337#endif
43338/* We use char because int might match the return type of a gcc2
43339 builtin and then its argument prototype would still apply. */
43340char $ac_func ();
43341/* The GNU C library defines this for functions which it implements
43342 to always fail with ENOSYS. Some functions are actually named
43343 something starting with __ and the normal name is an alias. */
43344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43345choke me
43346#else
43347char (*f) () = $ac_func;
43348#endif
43349#ifdef __cplusplus
43350}
43351#endif
43352
43353int
43354main ()
43355{
43356return f != $ac_func;
43357 ;
43358 return 0;
43359}
43360_ACEOF
43361rm -f conftest.$ac_objext conftest$ac_exeext
43362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43363 (eval $ac_link) 2>conftest.er1
a848cd7e 43364 ac_status=$?
ac1cb8d3
VS
43365 grep -v '^ *+' conftest.er1 >conftest.err
43366 rm -f conftest.er1
43367 cat conftest.err >&5
a848cd7e
SC
43368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43369 (exit $ac_status); } &&
ca5c6ac3 43370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43372 (eval $ac_try) 2>&5
43373 ac_status=$?
43374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43375 (exit $ac_status); }; } &&
43376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43379 ac_status=$?
43380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
43382 eval "$as_ac_var=yes"
43383else
43384 echo "$as_me: failed program was:" >&5
43385sed 's/^/| /' conftest.$ac_ext >&5
43386
43387eval "$as_ac_var=no"
43388fi
ac1cb8d3
VS
43389rm -f conftest.err conftest.$ac_objext \
43390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43391fi
43392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43394if test `eval echo '${'$as_ac_var'}'` = yes; then
43395 cat >>confdefs.h <<_ACEOF
43396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43397_ACEOF
43398
43399fi
43400done
43401
43402
43403 if test "$ac_cv_func_localtime" = "yes"; then
43404 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43405echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43406if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43407 echo $ECHO_N "(cached) $ECHO_C" >&6
43408else
43409
43410 cat >conftest.$ac_ext <<_ACEOF
43411/* confdefs.h. */
43412_ACEOF
43413cat confdefs.h >>conftest.$ac_ext
43414cat >>conftest.$ac_ext <<_ACEOF
43415/* end confdefs.h. */
43416
43417 #include <time.h>
43418
43419int
43420main ()
43421{
43422
43423 struct tm tm;
43424 tm.tm_gmtoff++;
43425
43426 ;
43427 return 0;
43428}
43429_ACEOF
43430rm -f conftest.$ac_objext
43431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43432 (eval $ac_compile) 2>conftest.er1
a848cd7e 43433 ac_status=$?
ac1cb8d3
VS
43434 grep -v '^ *+' conftest.er1 >conftest.err
43435 rm -f conftest.er1
43436 cat conftest.err >&5
a848cd7e
SC
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); } &&
ca5c6ac3 43439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441 (eval $ac_try) 2>&5
43442 ac_status=$?
43443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444 (exit $ac_status); }; } &&
43445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43447 (eval $ac_try) 2>&5
43448 ac_status=$?
43449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43450 (exit $ac_status); }; }; then
43451
43452 wx_cv_struct_tm_has_gmtoff=yes
43453
43454else
43455 echo "$as_me: failed program was:" >&5
43456sed 's/^/| /' conftest.$ac_ext >&5
43457
43458wx_cv_struct_tm_has_gmtoff=no
43459
43460fi
ac1cb8d3 43461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43462
43463fi
43464echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43465echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43466 fi
43467
43468 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43469 cat >>confdefs.h <<\_ACEOF
43470#define WX_GMTOFF_IN_TM 1
43471_ACEOF
43472
43473 fi
43474
43475
43476
43477for ac_func in gettimeofday ftime
43478do
43479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43480echo "$as_me:$LINENO: checking for $ac_func" >&5
43481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43482if eval "test \"\${$as_ac_var+set}\" = set"; then
43483 echo $ECHO_N "(cached) $ECHO_C" >&6
43484else
43485 cat >conftest.$ac_ext <<_ACEOF
43486/* confdefs.h. */
43487_ACEOF
43488cat confdefs.h >>conftest.$ac_ext
43489cat >>conftest.$ac_ext <<_ACEOF
43490/* end confdefs.h. */
ac1cb8d3
VS
43491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43493#define $ac_func innocuous_$ac_func
43494
a848cd7e
SC
43495/* System header to define __stub macros and hopefully few prototypes,
43496 which can conflict with char $ac_func (); below.
43497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43498 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43499
a848cd7e
SC
43500#ifdef __STDC__
43501# include <limits.h>
43502#else
43503# include <assert.h>
43504#endif
ac1cb8d3
VS
43505
43506#undef $ac_func
43507
a848cd7e
SC
43508/* Override any gcc2 internal prototype to avoid an error. */
43509#ifdef __cplusplus
43510extern "C"
43511{
43512#endif
43513/* We use char because int might match the return type of a gcc2
43514 builtin and then its argument prototype would still apply. */
43515char $ac_func ();
43516/* The GNU C library defines this for functions which it implements
43517 to always fail with ENOSYS. Some functions are actually named
43518 something starting with __ and the normal name is an alias. */
43519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43520choke me
43521#else
43522char (*f) () = $ac_func;
43523#endif
43524#ifdef __cplusplus
43525}
43526#endif
43527
43528int
43529main ()
43530{
43531return f != $ac_func;
43532 ;
43533 return 0;
43534}
43535_ACEOF
43536rm -f conftest.$ac_objext conftest$ac_exeext
43537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43538 (eval $ac_link) 2>conftest.er1
a848cd7e 43539 ac_status=$?
ac1cb8d3
VS
43540 grep -v '^ *+' conftest.er1 >conftest.err
43541 rm -f conftest.er1
43542 cat conftest.err >&5
a848cd7e
SC
43543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544 (exit $ac_status); } &&
ca5c6ac3 43545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43547 (eval $ac_try) 2>&5
43548 ac_status=$?
43549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43550 (exit $ac_status); }; } &&
43551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43553 (eval $ac_try) 2>&5
43554 ac_status=$?
43555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43556 (exit $ac_status); }; }; then
43557 eval "$as_ac_var=yes"
43558else
43559 echo "$as_me: failed program was:" >&5
43560sed 's/^/| /' conftest.$ac_ext >&5
43561
43562eval "$as_ac_var=no"
43563fi
ac1cb8d3
VS
43564rm -f conftest.err conftest.$ac_objext \
43565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43566fi
43567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43569if test `eval echo '${'$as_ac_var'}'` = yes; then
43570 cat >>confdefs.h <<_ACEOF
43571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43572_ACEOF
43573 break
43574fi
43575done
43576
43577
43578 if test "$ac_cv_func_gettimeofday" = "yes"; then
43579 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43580echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43581if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43582 echo $ECHO_N "(cached) $ECHO_C" >&6
43583else
43584
5d7b7554 43585 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43586/* confdefs.h. */
43587_ACEOF
43588cat confdefs.h >>conftest.$ac_ext
43589cat >>conftest.$ac_ext <<_ACEOF
43590/* end confdefs.h. */
43591
43592 #include <sys/time.h>
43593 #include <unistd.h>
43594
43595int
43596main ()
43597{
43598
43599 struct timeval tv;
43600 gettimeofday(&tv, NULL);
43601
43602 ;
43603 return 0;
43604}
43605_ACEOF
43606rm -f conftest.$ac_objext
43607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43608 (eval $ac_compile) 2>conftest.er1
a848cd7e 43609 ac_status=$?
ac1cb8d3
VS
43610 grep -v '^ *+' conftest.er1 >conftest.err
43611 rm -f conftest.er1
43612 cat conftest.err >&5
a848cd7e
SC
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); } &&
ca5c6ac3 43615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617 (eval $ac_try) 2>&5
43618 ac_status=$?
43619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620 (exit $ac_status); }; } &&
43621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43623 (eval $ac_try) 2>&5
43624 ac_status=$?
43625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626 (exit $ac_status); }; }; then
43627 wx_cv_func_gettimeofday_has_2_args=yes
43628else
43629 echo "$as_me: failed program was:" >&5
43630sed 's/^/| /' conftest.$ac_ext >&5
43631
43632cat >conftest.$ac_ext <<_ACEOF
43633/* confdefs.h. */
43634_ACEOF
43635cat confdefs.h >>conftest.$ac_ext
43636cat >>conftest.$ac_ext <<_ACEOF
43637/* end confdefs.h. */
43638
43639 #include <sys/time.h>
43640 #include <unistd.h>
43641
43642int
43643main ()
43644{
43645
43646 struct timeval tv;
43647 gettimeofday(&tv);
43648
43649 ;
43650 return 0;
43651}
43652_ACEOF
43653rm -f conftest.$ac_objext
43654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43655 (eval $ac_compile) 2>conftest.er1
a848cd7e 43656 ac_status=$?
ac1cb8d3
VS
43657 grep -v '^ *+' conftest.er1 >conftest.err
43658 rm -f conftest.er1
43659 cat conftest.err >&5
a848cd7e
SC
43660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661 (exit $ac_status); } &&
ca5c6ac3 43662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664 (eval $ac_try) 2>&5
43665 ac_status=$?
43666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); }; } &&
43668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43670 (eval $ac_try) 2>&5
43671 ac_status=$?
43672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43673 (exit $ac_status); }; }; then
43674 wx_cv_func_gettimeofday_has_2_args=no
43675else
43676 echo "$as_me: failed program was:" >&5
43677sed 's/^/| /' conftest.$ac_ext >&5
43678
43679
43680 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43681echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43682 wx_cv_func_gettimeofday_has_2_args=unknown
43683
43684
43685fi
ac1cb8d3 43686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43687
43688fi
ac1cb8d3 43689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43690
43691fi
43692echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43693echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43694
43695 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43696 cat >>confdefs.h <<\_ACEOF
43697#define WX_GETTIMEOFDAY_NO_TZ 1
43698_ACEOF
43699
43700 fi
43701 fi
43702
43703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43704fi
43705
43706
43707if test "$wxUSE_SOCKETS" = "yes"; then
43708 if test "$wxUSE_MGL" = "1"; then
43709 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43710echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43711 wxUSE_SOCKETS="no"
43712 fi
43713fi
43714
43715if test "$wxUSE_SOCKETS" = "yes"; then
43716 if test "$TOOLKIT" != "MSW"; then
43717 echo "$as_me:$LINENO: checking for socket" >&5
43718echo $ECHO_N "checking for socket... $ECHO_C" >&6
43719if test "${ac_cv_func_socket+set}" = set; then
43720 echo $ECHO_N "(cached) $ECHO_C" >&6
43721else
43722 cat >conftest.$ac_ext <<_ACEOF
43723/* confdefs.h. */
43724_ACEOF
43725cat confdefs.h >>conftest.$ac_ext
43726cat >>conftest.$ac_ext <<_ACEOF
43727/* end confdefs.h. */
ac1cb8d3
VS
43728/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43730#define socket innocuous_socket
43731
a848cd7e
SC
43732/* System header to define __stub macros and hopefully few prototypes,
43733 which can conflict with char socket (); below.
43734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43736
a848cd7e
SC
43737#ifdef __STDC__
43738# include <limits.h>
43739#else
43740# include <assert.h>
43741#endif
ac1cb8d3
VS
43742
43743#undef socket
43744
a848cd7e
SC
43745/* Override any gcc2 internal prototype to avoid an error. */
43746#ifdef __cplusplus
43747extern "C"
43748{
43749#endif
43750/* We use char because int might match the return type of a gcc2
43751 builtin and then its argument prototype would still apply. */
43752char socket ();
43753/* The GNU C library defines this for functions which it implements
43754 to always fail with ENOSYS. Some functions are actually named
43755 something starting with __ and the normal name is an alias. */
43756#if defined (__stub_socket) || defined (__stub___socket)
43757choke me
43758#else
43759char (*f) () = socket;
43760#endif
43761#ifdef __cplusplus
43762}
43763#endif
43764
43765int
43766main ()
43767{
43768return f != socket;
43769 ;
43770 return 0;
43771}
43772_ACEOF
43773rm -f conftest.$ac_objext conftest$ac_exeext
43774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43775 (eval $ac_link) 2>conftest.er1
a848cd7e 43776 ac_status=$?
ac1cb8d3
VS
43777 grep -v '^ *+' conftest.er1 >conftest.err
43778 rm -f conftest.er1
43779 cat conftest.err >&5
a848cd7e
SC
43780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781 (exit $ac_status); } &&
ca5c6ac3 43782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43784 (eval $ac_try) 2>&5
43785 ac_status=$?
43786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787 (exit $ac_status); }; } &&
43788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43790 (eval $ac_try) 2>&5
43791 ac_status=$?
43792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793 (exit $ac_status); }; }; then
43794 ac_cv_func_socket=yes
43795else
43796 echo "$as_me: failed program was:" >&5
43797sed 's/^/| /' conftest.$ac_ext >&5
43798
43799ac_cv_func_socket=no
43800fi
ac1cb8d3
VS
43801rm -f conftest.err conftest.$ac_objext \
43802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43803fi
43804echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43805echo "${ECHO_T}$ac_cv_func_socket" >&6
43806if test $ac_cv_func_socket = yes; then
43807 :
43808else
43809
43810 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43811echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43812if test "${ac_cv_lib_socket_socket+set}" = set; then
43813 echo $ECHO_N "(cached) $ECHO_C" >&6
43814else
43815 ac_check_lib_save_LIBS=$LIBS
43816LIBS="-lsocket $LIBS"
43817cat >conftest.$ac_ext <<_ACEOF
43818/* confdefs.h. */
43819_ACEOF
43820cat confdefs.h >>conftest.$ac_ext
43821cat >>conftest.$ac_ext <<_ACEOF
43822/* end confdefs.h. */
43823
43824/* Override any gcc2 internal prototype to avoid an error. */
43825#ifdef __cplusplus
43826extern "C"
43827#endif
43828/* We use char because int might match the return type of a gcc2
43829 builtin and then its argument prototype would still apply. */
43830char socket ();
43831int
43832main ()
43833{
43834socket ();
43835 ;
43836 return 0;
43837}
43838_ACEOF
43839rm -f conftest.$ac_objext conftest$ac_exeext
43840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43841 (eval $ac_link) 2>conftest.er1
a848cd7e 43842 ac_status=$?
ac1cb8d3
VS
43843 grep -v '^ *+' conftest.er1 >conftest.err
43844 rm -f conftest.er1
43845 cat conftest.err >&5
a848cd7e
SC
43846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847 (exit $ac_status); } &&
ca5c6ac3 43848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850 (eval $ac_try) 2>&5
43851 ac_status=$?
43852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853 (exit $ac_status); }; } &&
43854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856 (eval $ac_try) 2>&5
43857 ac_status=$?
43858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859 (exit $ac_status); }; }; then
43860 ac_cv_lib_socket_socket=yes
43861else
43862 echo "$as_me: failed program was:" >&5
43863sed 's/^/| /' conftest.$ac_ext >&5
43864
43865ac_cv_lib_socket_socket=no
43866fi
ac1cb8d3
VS
43867rm -f conftest.err conftest.$ac_objext \
43868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43869LIBS=$ac_check_lib_save_LIBS
43870fi
43871echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43872echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43873if test $ac_cv_lib_socket_socket = yes; then
43874 if test "$INET_LINK" != " -lsocket"; then
43875 INET_LINK="$INET_LINK -lsocket"
43876 fi
43877else
43878
43879 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43880echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43881 wxUSE_SOCKETS=no
43882
43883
43884fi
43885
43886
43887
43888fi
43889
43890 fi
43891fi
43892
43893if test "$wxUSE_SOCKETS" = "yes" ; then
43894 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43895 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43896echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43897if test "${wx_cv_type_getsockname3+set}" = set; then
43898 echo $ECHO_N "(cached) $ECHO_C" >&6
43899else
43900
43901 cat >conftest.$ac_ext <<_ACEOF
43902/* confdefs.h. */
43903_ACEOF
43904cat confdefs.h >>conftest.$ac_ext
43905cat >>conftest.$ac_ext <<_ACEOF
43906/* end confdefs.h. */
43907
43908 #include <sys/types.h>
43909 #include <sys/socket.h>
43910
43911int
43912main ()
43913{
43914
43915 socklen_t len;
43916 getsockname(0, 0, &len);
43917
43918 ;
43919 return 0;
43920}
43921_ACEOF
43922rm -f conftest.$ac_objext
43923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43924 (eval $ac_compile) 2>conftest.er1
a848cd7e 43925 ac_status=$?
ac1cb8d3
VS
43926 grep -v '^ *+' conftest.er1 >conftest.err
43927 rm -f conftest.er1
43928 cat conftest.err >&5
a848cd7e
SC
43929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43930 (exit $ac_status); } &&
ca5c6ac3 43931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43933 (eval $ac_try) 2>&5
43934 ac_status=$?
43935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43936 (exit $ac_status); }; } &&
43937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43939 (eval $ac_try) 2>&5
43940 ac_status=$?
43941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); }; }; then
43943 wx_cv_type_getsockname3=socklen_t
43944else
43945 echo "$as_me: failed program was:" >&5
43946sed 's/^/| /' conftest.$ac_ext >&5
43947
43948
6459a506 43949 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43950 if test "$GCC" = yes ; then
c92ad099 43951 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43952 fi
43953
43954 cat >conftest.$ac_ext <<_ACEOF
43955/* confdefs.h. */
43956_ACEOF
43957cat confdefs.h >>conftest.$ac_ext
43958cat >>conftest.$ac_ext <<_ACEOF
43959/* end confdefs.h. */
43960
43961 #include <sys/types.h>
43962 #include <sys/socket.h>
43963
43964int
43965main ()
43966{
43967
43968 size_t len;
43969 getsockname(0, 0, &len);
43970
43971 ;
43972 return 0;
43973}
43974_ACEOF
43975rm -f conftest.$ac_objext
43976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43977 (eval $ac_compile) 2>conftest.er1
a848cd7e 43978 ac_status=$?
ac1cb8d3
VS
43979 grep -v '^ *+' conftest.er1 >conftest.err
43980 rm -f conftest.er1
43981 cat conftest.err >&5
a848cd7e
SC
43982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43983 (exit $ac_status); } &&
ca5c6ac3 43984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986 (eval $ac_try) 2>&5
43987 ac_status=$?
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); }; } &&
43990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992 (eval $ac_try) 2>&5
43993 ac_status=$?
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); }; }; then
43996 wx_cv_type_getsockname3=size_t
43997else
43998 echo "$as_me: failed program was:" >&5
43999sed 's/^/| /' conftest.$ac_ext >&5
44000
44001cat >conftest.$ac_ext <<_ACEOF
44002/* confdefs.h. */
44003_ACEOF
44004cat confdefs.h >>conftest.$ac_ext
44005cat >>conftest.$ac_ext <<_ACEOF
44006/* end confdefs.h. */
44007
44008 #include <sys/types.h>
44009 #include <sys/socket.h>
44010
44011int
44012main ()
44013{
44014
44015 int len;
44016 getsockname(0, 0, &len);
44017
44018 ;
44019 return 0;
44020}
44021_ACEOF
44022rm -f conftest.$ac_objext
44023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44024 (eval $ac_compile) 2>conftest.er1
a848cd7e 44025 ac_status=$?
ac1cb8d3
VS
44026 grep -v '^ *+' conftest.er1 >conftest.err
44027 rm -f conftest.er1
44028 cat conftest.err >&5
a848cd7e
SC
44029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 (exit $ac_status); } &&
ca5c6ac3 44031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033 (eval $ac_try) 2>&5
44034 ac_status=$?
44035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 (exit $ac_status); }; } &&
44037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44039 (eval $ac_try) 2>&5
44040 ac_status=$?
44041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44042 (exit $ac_status); }; }; then
44043 wx_cv_type_getsockname3=int
44044else
44045 echo "$as_me: failed program was:" >&5
44046sed 's/^/| /' conftest.$ac_ext >&5
44047
44048wx_cv_type_getsockname3=unknown
44049
44050fi
ac1cb8d3 44051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44052
44053fi
ac1cb8d3 44054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44055
6459a506 44056 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44057
44058
44059fi
ac1cb8d3 44060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44061
44062fi
44063echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44064echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44065
44066 if test "$wx_cv_type_getsockname3" = "unknown"; then
44067 wxUSE_SOCKETS=no
44068 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44069echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44070 else
44071 cat >>confdefs.h <<_ACEOF
9e03e02d 44072#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44073_ACEOF
44074
44075 fi
44076 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44077echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44078if test "${wx_cv_type_getsockopt5+set}" = set; then
44079 echo $ECHO_N "(cached) $ECHO_C" >&6
44080else
44081
44082 cat >conftest.$ac_ext <<_ACEOF
44083/* confdefs.h. */
44084_ACEOF
44085cat confdefs.h >>conftest.$ac_ext
44086cat >>conftest.$ac_ext <<_ACEOF
44087/* end confdefs.h. */
44088
44089 #include <sys/types.h>
44090 #include <sys/socket.h>
44091
44092int
44093main ()
44094{
44095
44096 socklen_t len;
44097 getsockopt(0, 0, 0, 0, &len);
44098
44099 ;
44100 return 0;
44101}
44102_ACEOF
44103rm -f conftest.$ac_objext
44104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44105 (eval $ac_compile) 2>conftest.er1
44106 ac_status=$?
44107 grep -v '^ *+' conftest.er1 >conftest.err
44108 rm -f conftest.er1
44109 cat conftest.err >&5
44110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44111 (exit $ac_status); } &&
ca5c6ac3 44112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44114 (eval $ac_try) 2>&5
44115 ac_status=$?
44116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44117 (exit $ac_status); }; } &&
44118 { ac_try='test -s conftest.$ac_objext'
44119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44120 (eval $ac_try) 2>&5
44121 ac_status=$?
44122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44123 (exit $ac_status); }; }; then
44124 wx_cv_type_getsockopt5=socklen_t
44125else
44126 echo "$as_me: failed program was:" >&5
44127sed 's/^/| /' conftest.$ac_ext >&5
44128
44129
6459a506 44130 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44131 if test "$GCC" = yes ; then
c92ad099 44132 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44133 fi
44134
44135 cat >conftest.$ac_ext <<_ACEOF
44136/* confdefs.h. */
44137_ACEOF
44138cat confdefs.h >>conftest.$ac_ext
44139cat >>conftest.$ac_ext <<_ACEOF
44140/* end confdefs.h. */
44141
44142 #include <sys/types.h>
44143 #include <sys/socket.h>
44144
44145int
44146main ()
44147{
44148
44149 size_t len;
44150 getsockopt(0, 0, 0, 0, &len);
44151
44152 ;
44153 return 0;
44154}
44155_ACEOF
44156rm -f conftest.$ac_objext
44157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44158 (eval $ac_compile) 2>conftest.er1
44159 ac_status=$?
44160 grep -v '^ *+' conftest.er1 >conftest.err
44161 rm -f conftest.er1
44162 cat conftest.err >&5
44163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164 (exit $ac_status); } &&
ca5c6ac3 44165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44167 (eval $ac_try) 2>&5
44168 ac_status=$?
44169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44170 (exit $ac_status); }; } &&
44171 { ac_try='test -s conftest.$ac_objext'
44172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44173 (eval $ac_try) 2>&5
44174 ac_status=$?
44175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176 (exit $ac_status); }; }; then
44177 wx_cv_type_getsockopt5=size_t
44178else
44179 echo "$as_me: failed program was:" >&5
44180sed 's/^/| /' conftest.$ac_ext >&5
44181
44182cat >conftest.$ac_ext <<_ACEOF
44183/* confdefs.h. */
44184_ACEOF
44185cat confdefs.h >>conftest.$ac_ext
44186cat >>conftest.$ac_ext <<_ACEOF
44187/* end confdefs.h. */
44188
44189 #include <sys/types.h>
44190 #include <sys/socket.h>
44191
44192int
44193main ()
44194{
44195
44196 int len;
44197 getsockopt(0, 0, 0, 0, &len);
44198
44199 ;
44200 return 0;
44201}
44202_ACEOF
44203rm -f conftest.$ac_objext
44204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44205 (eval $ac_compile) 2>conftest.er1
44206 ac_status=$?
44207 grep -v '^ *+' conftest.er1 >conftest.err
44208 rm -f conftest.er1
44209 cat conftest.err >&5
44210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44211 (exit $ac_status); } &&
ca5c6ac3 44212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44214 (eval $ac_try) 2>&5
44215 ac_status=$?
44216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217 (exit $ac_status); }; } &&
44218 { ac_try='test -s conftest.$ac_objext'
44219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44220 (eval $ac_try) 2>&5
44221 ac_status=$?
44222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44223 (exit $ac_status); }; }; then
44224 wx_cv_type_getsockopt5=int
44225else
44226 echo "$as_me: failed program was:" >&5
44227sed 's/^/| /' conftest.$ac_ext >&5
44228
44229wx_cv_type_getsockopt5=unknown
44230
44231fi
44232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44233
44234fi
44235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44236
6459a506 44237 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44238
44239
44240fi
44241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44242
44243fi
44244echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44245echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44246
44247 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44248 wxUSE_SOCKETS=no
44249 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44250echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44251 else
44252 cat >>confdefs.h <<_ACEOF
44253#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44254_ACEOF
44255
44256 fi
44257 fi
44258fi
44259
44260if test "$wxUSE_SOCKETS" = "yes" ; then
44261 cat >>confdefs.h <<\_ACEOF
44262#define wxUSE_SOCKETS 1
44263_ACEOF
44264
44265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44266fi
44267
44268if test "$wxUSE_PROTOCOL" = "yes"; then
44269 if test "$wxUSE_SOCKETS" != "yes"; then
44270 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44271echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44272 wxUSE_PROTOCOL=no
44273 fi
44274fi
44275
44276if test "$wxUSE_PROTOCOL" = "yes"; then
44277 cat >>confdefs.h <<\_ACEOF
44278#define wxUSE_PROTOCOL 1
44279_ACEOF
44280
44281
44282 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44283 cat >>confdefs.h <<\_ACEOF
44284#define wxUSE_PROTOCOL_HTTP 1
44285_ACEOF
44286
44287 fi
44288 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44289 cat >>confdefs.h <<\_ACEOF
44290#define wxUSE_PROTOCOL_FTP 1
44291_ACEOF
44292
44293 fi
44294 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44295 cat >>confdefs.h <<\_ACEOF
44296#define wxUSE_PROTOCOL_FILE 1
44297_ACEOF
44298
44299 fi
44300else
44301 if test "$wxUSE_FS_INET" = "yes"; then
44302 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44303echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44304 wxUSE_FS_INET="no"
44305 fi
44306fi
44307
44308if test "$wxUSE_URL" = "yes"; then
44309 if test "$wxUSE_PROTOCOL" != "yes"; then
44310 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44311echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44312 wxUSE_URL=no
44313 fi
44314 if test "$wxUSE_URL" = "yes"; then
44315 cat >>confdefs.h <<\_ACEOF
44316#define wxUSE_URL 1
44317_ACEOF
44318
44319 fi
44320fi
44321
ca5c6ac3
VZ
44322if test "$wxUSE_VARIANT" = "yes"; then
44323 cat >>confdefs.h <<\_ACEOF
44324#define wxUSE_VARIANT 1
44325_ACEOF
44326
44327fi
44328
a848cd7e
SC
44329if test "$wxUSE_FS_INET" = "yes"; then
44330 cat >>confdefs.h <<\_ACEOF
44331#define wxUSE_FS_INET 1
44332_ACEOF
44333
44334fi
44335
44336
ee45c548
MW
44337if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44338 wxUSE_JOYSTICK=no
44339
44340 if test "$TOOLKIT" = "MSW"; then
44341 wxUSE_JOYSTICK=yes
44342
44343 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44344 if test "$USE_DARWIN" = 1; then
44345 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44346echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44347 cat >conftest.$ac_ext <<_ACEOF
44348/* confdefs.h. */
44349_ACEOF
44350cat confdefs.h >>conftest.$ac_ext
44351cat >>conftest.$ac_ext <<_ACEOF
44352/* end confdefs.h. */
44353 #include <IOKit/hid/IOHIDLib.h>
44354int
44355main ()
44356{
44357 IOHIDQueueInterface *qi = NULL;
44358 IOHIDCallbackFunction cb = NULL;
44359 qi->setEventCallout(NULL, cb, NULL, NULL);
44360 ;
44361 return 0;
44362}
44363_ACEOF
44364rm -f conftest.$ac_objext
44365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44366 (eval $ac_compile) 2>conftest.er1
44367 ac_status=$?
44368 grep -v '^ *+' conftest.er1 >conftest.err
44369 rm -f conftest.er1
44370 cat conftest.err >&5
44371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372 (exit $ac_status); } &&
ca5c6ac3 44373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44375 (eval $ac_try) 2>&5
44376 ac_status=$?
44377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44378 (exit $ac_status); }; } &&
44379 { ac_try='test -s conftest.$ac_objext'
44380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44381 (eval $ac_try) 2>&5
44382 ac_status=$?
44383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384 (exit $ac_status); }; }; then
44385 wxUSE_JOYSTICK=yes
a848cd7e 44386
ee45c548
MW
44387else
44388 echo "$as_me: failed program was:" >&5
44389sed 's/^/| /' conftest.$ac_ext >&5
44390
44391fi
44392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44393 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44394echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44395 fi
44396
44397 else
a848cd7e
SC
44398
44399for ac_header in linux/joystick.h
44400do
44401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44402if eval "test \"\${$as_ac_Header+set}\" = set"; then
44403 echo "$as_me:$LINENO: checking for $ac_header" >&5
44404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44405if eval "test \"\${$as_ac_Header+set}\" = set"; then
44406 echo $ECHO_N "(cached) $ECHO_C" >&6
44407fi
44408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44410else
44411 # Is the header compilable?
44412echo "$as_me:$LINENO: checking $ac_header usability" >&5
44413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44414cat >conftest.$ac_ext <<_ACEOF
44415/* confdefs.h. */
44416_ACEOF
44417cat confdefs.h >>conftest.$ac_ext
44418cat >>conftest.$ac_ext <<_ACEOF
44419/* end confdefs.h. */
44420$ac_includes_default
44421#include <$ac_header>
44422_ACEOF
44423rm -f conftest.$ac_objext
44424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44425 (eval $ac_compile) 2>conftest.er1
a848cd7e 44426 ac_status=$?
ac1cb8d3
VS
44427 grep -v '^ *+' conftest.er1 >conftest.err
44428 rm -f conftest.er1
44429 cat conftest.err >&5
a848cd7e
SC
44430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44431 (exit $ac_status); } &&
ca5c6ac3 44432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44434 (eval $ac_try) 2>&5
44435 ac_status=$?
44436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44437 (exit $ac_status); }; } &&
44438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44440 (eval $ac_try) 2>&5
44441 ac_status=$?
44442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44443 (exit $ac_status); }; }; then
44444 ac_header_compiler=yes
44445else
44446 echo "$as_me: failed program was:" >&5
44447sed 's/^/| /' conftest.$ac_ext >&5
44448
44449ac_header_compiler=no
44450fi
ac1cb8d3 44451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44453echo "${ECHO_T}$ac_header_compiler" >&6
44454
44455# Is the header present?
44456echo "$as_me:$LINENO: checking $ac_header presence" >&5
44457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44458cat >conftest.$ac_ext <<_ACEOF
44459/* confdefs.h. */
44460_ACEOF
44461cat confdefs.h >>conftest.$ac_ext
44462cat >>conftest.$ac_ext <<_ACEOF
44463/* end confdefs.h. */
44464#include <$ac_header>
44465_ACEOF
44466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44468 ac_status=$?
44469 grep -v '^ *+' conftest.er1 >conftest.err
44470 rm -f conftest.er1
44471 cat conftest.err >&5
44472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44473 (exit $ac_status); } >/dev/null; then
44474 if test -s conftest.err; then
5d7b7554
VZ
44475 ac_cpp_err=$ac_cxx_preproc_warn_flag
44476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44477 else
44478 ac_cpp_err=
44479 fi
44480else
44481 ac_cpp_err=yes
44482fi
44483if test -z "$ac_cpp_err"; then
44484 ac_header_preproc=yes
44485else
44486 echo "$as_me: failed program was:" >&5
44487sed 's/^/| /' conftest.$ac_ext >&5
44488
44489 ac_header_preproc=no
44490fi
44491rm -f conftest.err conftest.$ac_ext
44492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44493echo "${ECHO_T}$ac_header_preproc" >&6
44494
44495# So? What about this header?
5d7b7554 44496case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44497 yes:no: )
a848cd7e
SC
44498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44502 ac_header_preproc=yes
a848cd7e 44503 ;;
ac1cb8d3 44504 no:yes:* )
a848cd7e
SC
44505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44517 (
44518 cat <<\_ASBOX
ac1cb8d3
VS
44519## ----------------------------------------- ##
44520## Report this to wx-dev@lists.wxwidgets.org ##
44521## ----------------------------------------- ##
a848cd7e
SC
44522_ASBOX
44523 ) |
44524 sed "s/^/$as_me: WARNING: /" >&2
44525 ;;
44526esac
44527echo "$as_me:$LINENO: checking for $ac_header" >&5
44528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44529if eval "test \"\${$as_ac_Header+set}\" = set"; then
44530 echo $ECHO_N "(cached) $ECHO_C" >&6
44531else
ac1cb8d3 44532 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44533fi
44534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44536
44537fi
44538if test `eval echo '${'$as_ac_Header'}'` = yes; then
44539 cat >>confdefs.h <<_ACEOF
44540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44541_ACEOF
ee45c548 44542 wxUSE_JOYSTICK=yes
a848cd7e
SC
44543fi
44544
44545done
44546
ee45c548 44547 fi
4cb1d3da 44548
ee45c548
MW
44549 if test "$wxUSE_JOYSTICK" = "yes"; then
44550 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44551#define wxUSE_JOYSTICK 1
44552_ACEOF
44553
ee45c548
MW
44554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44555 else
44556 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44557echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44558 fi
44559fi
44560
44561
44562
44563if test "$wxUSE_FONTMAP" = "yes" ; then
44564 cat >>confdefs.h <<\_ACEOF
44565#define wxUSE_FONTMAP 1
44566_ACEOF
44567
44568fi
44569
44570if test "$wxUSE_UNICODE" = "yes" ; then
44571 cat >>confdefs.h <<\_ACEOF
44572#define wxUSE_UNICODE 1
44573_ACEOF
44574
44575
44576 if test "$USE_WIN32" != 1; then
44577 wxUSE_UNICODE_MSLU=no
44578 fi
44579
44580 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44581 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44582echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44583if test "${ac_cv_lib_unicows_main+set}" = set; then
44584 echo $ECHO_N "(cached) $ECHO_C" >&6
44585else
44586 ac_check_lib_save_LIBS=$LIBS
44587LIBS="-lunicows $LIBS"
44588cat >conftest.$ac_ext <<_ACEOF
44589/* confdefs.h. */
44590_ACEOF
44591cat confdefs.h >>conftest.$ac_ext
44592cat >>conftest.$ac_ext <<_ACEOF
44593/* end confdefs.h. */
44594
44595
44596int
44597main ()
44598{
44599main ();
44600 ;
44601 return 0;
44602}
44603_ACEOF
44604rm -f conftest.$ac_objext conftest$ac_exeext
44605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44606 (eval $ac_link) 2>conftest.er1
a848cd7e 44607 ac_status=$?
ac1cb8d3
VS
44608 grep -v '^ *+' conftest.er1 >conftest.err
44609 rm -f conftest.er1
44610 cat conftest.err >&5
a848cd7e
SC
44611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44612 (exit $ac_status); } &&
ca5c6ac3 44613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44615 (eval $ac_try) 2>&5
44616 ac_status=$?
44617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44618 (exit $ac_status); }; } &&
44619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44621 (eval $ac_try) 2>&5
44622 ac_status=$?
44623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624 (exit $ac_status); }; }; then
44625 ac_cv_lib_unicows_main=yes
44626else
44627 echo "$as_me: failed program was:" >&5
44628sed 's/^/| /' conftest.$ac_ext >&5
44629
44630ac_cv_lib_unicows_main=no
44631fi
ac1cb8d3
VS
44632rm -f conftest.err conftest.$ac_objext \
44633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44634LIBS=$ac_check_lib_save_LIBS
44635fi
44636echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44637echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44638if test $ac_cv_lib_unicows_main = yes; then
44639
44640 cat >>confdefs.h <<\_ACEOF
44641#define wxUSE_UNICODE_MSLU 1
44642_ACEOF
44643
44644
44645else
44646
44647 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44648 Applications will only run on Windows NT/2000/XP!" >&5
44649echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44650 Applications will only run on Windows NT/2000/XP!" >&2;}
44651 wxUSE_UNICODE_MSLU=no
44652
44653fi
44654
44655 fi
44656fi
44657
44658if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44659 cat >>confdefs.h <<\_ACEOF
44660#define wxUSE_EXPERIMENTAL_PRINTF 1
44661_ACEOF
44662
44663fi
44664
44665
44666if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44667 cat >>confdefs.h <<\_ACEOF
44668#define wxUSE_POSTSCRIPT 1
44669_ACEOF
44670
44671fi
44672
44673cat >>confdefs.h <<\_ACEOF
44674#define wxUSE_AFM_FOR_POSTSCRIPT 1
44675_ACEOF
44676
44677
44678cat >>confdefs.h <<\_ACEOF
44679#define wxUSE_NORMALIZED_PS_FONTS 1
44680_ACEOF
44681
44682
44683
44684if test "$wxUSE_CONSTRAINTS" = "yes"; then
44685 cat >>confdefs.h <<\_ACEOF
44686#define wxUSE_CONSTRAINTS 1
44687_ACEOF
44688
44689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44690fi
44691
8a7b1113
VZ
44692if test "$wxUSE_MDI" = "yes"; then
44693 cat >>confdefs.h <<\_ACEOF
44694#define wxUSE_MDI 1
44695_ACEOF
44696
44697
44698 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44699 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44700#define wxUSE_MDI_ARCHITECTURE 1
44701_ACEOF
44702
8a7b1113
VZ
44703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44704 fi
a848cd7e
SC
44705fi
44706
44707if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44708 cat >>confdefs.h <<\_ACEOF
44709#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44710_ACEOF
44711
44712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44713 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44715 fi
44716fi
44717
44718if test "$wxUSE_HELP" = "yes"; then
44719 cat >>confdefs.h <<\_ACEOF
44720#define wxUSE_HELP 1
44721_ACEOF
44722
44723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44724
44725 if test "$wxUSE_MSW" = 1; then
44726 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44727 cat >>confdefs.h <<\_ACEOF
44728#define wxUSE_MS_HTML_HELP 1
44729_ACEOF
44730
44731 fi
44732 fi
44733
44734 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44735 if test "$wxUSE_HTML" = "yes"; then
44736 cat >>confdefs.h <<\_ACEOF
44737#define wxUSE_WXHTML_HELP 1
44738_ACEOF
44739
44740 else
44741 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44742echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44743 wxUSE_WXHTML_HELP=no
44744 fi
44745 fi
44746fi
44747
44748if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44749 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44750 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44751echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44752 else
44753 cat >>confdefs.h <<\_ACEOF
44754#define wxUSE_PRINTING_ARCHITECTURE 1
44755_ACEOF
44756
44757 fi
44758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44759fi
44760
44761if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44762 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44763echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44764 { (exit 1); exit 1; }; }
44765fi
44766
44767
efdf6afe
VZ
44768if test "$wxUSE_METAFILE" = "yes"; then
44769 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44770 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44771echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44772 wxUSE_METAFILE=no
44773 fi
44774fi
44775
44776
a848cd7e
SC
44777if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44778 -o "$wxUSE_CLIPBOARD" = "yes" \
44779 -o "$wxUSE_OLE" = "yes" \
44780 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44781
44782for ac_header in ole2.h
44783do
44784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44785if eval "test \"\${$as_ac_Header+set}\" = set"; then
44786 echo "$as_me:$LINENO: checking for $ac_header" >&5
44787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44788if eval "test \"\${$as_ac_Header+set}\" = set"; then
44789 echo $ECHO_N "(cached) $ECHO_C" >&6
44790fi
44791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44793else
44794 # Is the header compilable?
44795echo "$as_me:$LINENO: checking $ac_header usability" >&5
44796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44797cat >conftest.$ac_ext <<_ACEOF
44798/* confdefs.h. */
44799_ACEOF
44800cat confdefs.h >>conftest.$ac_ext
44801cat >>conftest.$ac_ext <<_ACEOF
44802/* end confdefs.h. */
44803$ac_includes_default
44804#include <$ac_header>
44805_ACEOF
44806rm -f conftest.$ac_objext
44807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44808 (eval $ac_compile) 2>conftest.er1
a848cd7e 44809 ac_status=$?
ac1cb8d3
VS
44810 grep -v '^ *+' conftest.er1 >conftest.err
44811 rm -f conftest.er1
44812 cat conftest.err >&5
a848cd7e
SC
44813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44814 (exit $ac_status); } &&
ca5c6ac3 44815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44817 (eval $ac_try) 2>&5
44818 ac_status=$?
44819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44820 (exit $ac_status); }; } &&
44821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44823 (eval $ac_try) 2>&5
44824 ac_status=$?
44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826 (exit $ac_status); }; }; then
44827 ac_header_compiler=yes
44828else
44829 echo "$as_me: failed program was:" >&5
44830sed 's/^/| /' conftest.$ac_ext >&5
44831
44832ac_header_compiler=no
44833fi
ac1cb8d3 44834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44836echo "${ECHO_T}$ac_header_compiler" >&6
44837
44838# Is the header present?
44839echo "$as_me:$LINENO: checking $ac_header presence" >&5
44840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44841cat >conftest.$ac_ext <<_ACEOF
44842/* confdefs.h. */
44843_ACEOF
44844cat confdefs.h >>conftest.$ac_ext
44845cat >>conftest.$ac_ext <<_ACEOF
44846/* end confdefs.h. */
44847#include <$ac_header>
44848_ACEOF
44849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44851 ac_status=$?
44852 grep -v '^ *+' conftest.er1 >conftest.err
44853 rm -f conftest.er1
44854 cat conftest.err >&5
44855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44856 (exit $ac_status); } >/dev/null; then
44857 if test -s conftest.err; then
5d7b7554
VZ
44858 ac_cpp_err=$ac_cxx_preproc_warn_flag
44859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44860 else
44861 ac_cpp_err=
44862 fi
44863else
44864 ac_cpp_err=yes
44865fi
44866if test -z "$ac_cpp_err"; then
44867 ac_header_preproc=yes
44868else
44869 echo "$as_me: failed program was:" >&5
44870sed 's/^/| /' conftest.$ac_ext >&5
44871
44872 ac_header_preproc=no
44873fi
44874rm -f conftest.err conftest.$ac_ext
44875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44876echo "${ECHO_T}$ac_header_preproc" >&6
44877
44878# So? What about this header?
5d7b7554 44879case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44880 yes:no: )
a848cd7e
SC
44881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44885 ac_header_preproc=yes
a848cd7e 44886 ;;
ac1cb8d3 44887 no:yes:* )
a848cd7e
SC
44888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44900 (
44901 cat <<\_ASBOX
ac1cb8d3
VS
44902## ----------------------------------------- ##
44903## Report this to wx-dev@lists.wxwidgets.org ##
44904## ----------------------------------------- ##
a848cd7e
SC
44905_ASBOX
44906 ) |
44907 sed "s/^/$as_me: WARNING: /" >&2
44908 ;;
44909esac
44910echo "$as_me:$LINENO: checking for $ac_header" >&5
44911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44912if eval "test \"\${$as_ac_Header+set}\" = set"; then
44913 echo $ECHO_N "(cached) $ECHO_C" >&6
44914else
ac1cb8d3 44915 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44916fi
44917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44919
44920fi
44921if test `eval echo '${'$as_ac_Header'}'` = yes; then
44922 cat >>confdefs.h <<_ACEOF
44923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44924_ACEOF
44925
44926fi
44927
44928done
44929
44930
44931 if test "$ac_cv_header_ole2_h" = "yes" ; then
44932 if test "$GCC" = yes ; then
a848cd7e
SC
44933 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44934echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44935 cat >conftest.$ac_ext <<_ACEOF
44936/* confdefs.h. */
44937_ACEOF
44938cat confdefs.h >>conftest.$ac_ext
44939cat >>conftest.$ac_ext <<_ACEOF
44940/* end confdefs.h. */
44941#include <windows.h>
44942 #include <ole2.h>
44943int
44944main ()
44945{
44946
44947 ;
44948 return 0;
44949}
44950_ACEOF
44951rm -f conftest.$ac_objext
44952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44953 (eval $ac_compile) 2>conftest.er1
a848cd7e 44954 ac_status=$?
ac1cb8d3
VS
44955 grep -v '^ *+' conftest.er1 >conftest.err
44956 rm -f conftest.er1
44957 cat conftest.err >&5
a848cd7e
SC
44958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959 (exit $ac_status); } &&
ca5c6ac3 44960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962 (eval $ac_try) 2>&5
44963 ac_status=$?
44964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965 (exit $ac_status); }; } &&
44966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44968 (eval $ac_try) 2>&5
44969 ac_status=$?
44970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44971 (exit $ac_status); }; }; then
44972 echo "$as_me:$LINENO: result: no" >&5
44973echo "${ECHO_T}no" >&6
44974else
44975 echo "$as_me: failed program was:" >&5
44976sed 's/^/| /' conftest.$ac_ext >&5
44977
44978echo "$as_me:$LINENO: result: yes" >&5
44979echo "${ECHO_T}yes" >&6
5ff751d6 44980 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44981fi
ac1cb8d3 44982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44983 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44984 if test "$wxUSE_OLE" = "yes" ; then
44985 cat >>confdefs.h <<\_ACEOF
44986#define wxUSE_OLE 1
44987_ACEOF
44988
0b78747f 44989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44990 fi
44991 fi
44992
44993 if test "$wxUSE_DATAOBJ" = "yes" ; then
44994 cat >>confdefs.h <<\_ACEOF
44995#define wxUSE_DATAOBJ 1
44996_ACEOF
44997
44998 fi
44999 else
45000 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45001echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45002
45003 wxUSE_CLIPBOARD=no
45004 wxUSE_DRAG_AND_DROP=no
45005 wxUSE_DATAOBJ=no
45006 wxUSE_OLE=no
45007 fi
45008
45009 if test "$wxUSE_METAFILE" = "yes"; then
45010 cat >>confdefs.h <<\_ACEOF
45011#define wxUSE_METAFILE 1
45012_ACEOF
45013
45014
45015 cat >>confdefs.h <<\_ACEOF
45016#define wxUSE_ENH_METAFILE 1
45017_ACEOF
45018
45019 fi
45020fi
45021
45022if test "$wxUSE_IPC" = "yes"; then
0b78747f 45023 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45024 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45025echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45026 wxUSE_IPC=no
a848cd7e
SC
45027 fi
45028
0b78747f
MW
45029 if test "$wxUSE_IPC" = "yes"; then
45030 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45031#define wxUSE_IPC 1
45032_ACEOF
45033
0b78747f
MW
45034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45035 fi
a848cd7e
SC
45036fi
45037
eb730a0c 45038if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45039 if test "$wxUSE_MGL" = 1; then
45040 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45041echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45042 wxUSE_DATAOBJ=no
45043 else
45044 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45045#define wxUSE_DATAOBJ 1
45046_ACEOF
45047
2113bc77 45048 fi
eb730a0c
JS
45049else
45050 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45051echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45052 wxUSE_CLIPBOARD=no
45053 wxUSE_DRAG_AND_DROP=no
45054fi
45055
a848cd7e
SC
45056if test "$wxUSE_CLIPBOARD" = "yes"; then
45057 if test "$wxUSE_MGL" = 1; then
45058 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45059echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45060 wxUSE_CLIPBOARD=no
45061 fi
45062
45063 if test "$wxUSE_CLIPBOARD" = "yes"; then
45064 cat >>confdefs.h <<\_ACEOF
45065#define wxUSE_CLIPBOARD 1
45066_ACEOF
45067
a848cd7e
SC
45068 fi
45069fi
45070
45071if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45072 if test "$wxUSE_GTK" = 1; then
45073 if test "$WXGTK12" != 1; then
45074 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45075echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45076 wxUSE_DRAG_AND_DROP=no
45077 fi
45078 fi
45079
45080 if test "$wxUSE_MOTIF" = 1; then
45081 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45082echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45083 wxUSE_DRAG_AND_DROP=no
45084 fi
45085
45086 if test "$wxUSE_X11" = 1; then
45087 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45088echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45089 wxUSE_DRAG_AND_DROP=no
45090 fi
45091
45092 if test "$wxUSE_MGL" = 1; then
45093 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45094echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45095 wxUSE_DRAG_AND_DROP=no
45096 fi
45097
45098 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45099 cat >>confdefs.h <<\_ACEOF
45100#define wxUSE_DRAG_AND_DROP 1
45101_ACEOF
45102
45103 fi
45104
45105fi
45106
45107if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45109fi
45110
45111if test "$wxUSE_SPLINES" = "yes" ; then
45112 cat >>confdefs.h <<\_ACEOF
45113#define wxUSE_SPLINES 1
45114_ACEOF
45115
45116fi
45117
fbe2ca43
SN
45118if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45119 cat >>confdefs.h <<\_ACEOF
45120#define wxUSE_MOUSEWHEEL 1
45121_ACEOF
45122
45123fi
45124
a848cd7e
SC
45125
45126USES_CONTROLS=0
45127if test "$wxUSE_CONTROLS" = "yes"; then
45128 USES_CONTROLS=1
45129fi
45130
45131if test "$wxUSE_ACCEL" = "yes"; then
45132 cat >>confdefs.h <<\_ACEOF
45133#define wxUSE_ACCEL 1
45134_ACEOF
45135
45136 USES_CONTROLS=1
45137fi
45138
45139if test "$wxUSE_BUTTON" = "yes"; then
45140 cat >>confdefs.h <<\_ACEOF
45141#define wxUSE_BUTTON 1
45142_ACEOF
45143
45144 USES_CONTROLS=1
45145fi
45146
45147if test "$wxUSE_BMPBUTTON" = "yes"; then
45148 cat >>confdefs.h <<\_ACEOF
45149#define wxUSE_BMPBUTTON 1
45150_ACEOF
45151
45152 USES_CONTROLS=1
45153fi
45154
45155if test "$wxUSE_CALCTRL" = "yes"; then
45156 cat >>confdefs.h <<\_ACEOF
45157#define wxUSE_CALENDARCTRL 1
45158_ACEOF
45159
45160 USES_CONTROLS=1
45161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45162fi
45163
45164if test "$wxUSE_CARET" = "yes"; then
45165 cat >>confdefs.h <<\_ACEOF
45166#define wxUSE_CARET 1
45167_ACEOF
45168
45169 USES_CONTROLS=1
45170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45171fi
45172
45173if test "$wxUSE_COMBOBOX" = "yes"; then
45174 cat >>confdefs.h <<\_ACEOF
45175#define wxUSE_COMBOBOX 1
45176_ACEOF
45177
45178 USES_CONTROLS=1
45179fi
45180
a57d600f 45181if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45182 cat >>confdefs.h <<\_ACEOF
a57d600f 45183#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45184_ACEOF
45185
45186 USES_CONTROLS=1
45187fi
45188
a848cd7e
SC
45189if test "$wxUSE_CHOICE" = "yes"; then
45190 cat >>confdefs.h <<\_ACEOF
45191#define wxUSE_CHOICE 1
45192_ACEOF
45193
45194 USES_CONTROLS=1
45195fi
45196
92bbdbcd
WS
45197if test "$wxUSE_CHOICEBOOK" = "yes"; then
45198 cat >>confdefs.h <<\_ACEOF
45199#define wxUSE_CHOICEBOOK 1
45200_ACEOF
45201
45202 USES_CONTROLS=1
45203fi
45204
a848cd7e
SC
45205if test "$wxUSE_CHECKBOX" = "yes"; then
45206 cat >>confdefs.h <<\_ACEOF
45207#define wxUSE_CHECKBOX 1
45208_ACEOF
45209
45210 USES_CONTROLS=1
45211fi
45212
45213if test "$wxUSE_CHECKLST" = "yes"; then
45214 cat >>confdefs.h <<\_ACEOF
45215#define wxUSE_CHECKLISTBOX 1
45216_ACEOF
45217
45218 USES_CONTROLS=1
45219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45220fi
45221
e9263684
VZ
45222if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45223 cat >>confdefs.h <<\_ACEOF
45224#define wxUSE_COLOURPICKERCTRL 1
45225_ACEOF
45226
45227 USES_CONTROLS=1
45228fi
45229
da98e9be
VZ
45230if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45231 cat >>confdefs.h <<\_ACEOF
45232#define wxUSE_DATEPICKCTRL 1
45233_ACEOF
45234
45235 USES_CONTROLS=1
45236fi
45237
e9263684
VZ
45238if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45239 cat >>confdefs.h <<\_ACEOF
45240#define wxUSE_DIRPICKERCTRL 1
45241_ACEOF
45242
45243 USES_CONTROLS=1
45244fi
45245
45246if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45247 cat >>confdefs.h <<\_ACEOF
45248#define wxUSE_FILEPICKERCTRL 1
45249_ACEOF
45250
45251 USES_CONTROLS=1
45252fi
45253
45254if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_FONTPICKERCTRL 1
45257_ACEOF
45258
45259 USES_CONTROLS=1
45260fi
45261
a848cd7e
SC
45262if test "$wxUSE_DISPLAY" = "yes"; then
45263 cat >>confdefs.h <<\_ACEOF
45264#define wxUSE_DISPLAY 1
45265_ACEOF
45266
0b78747f 45267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45268fi
45269
45270if test "$wxUSE_GAUGE" = "yes"; then
45271 cat >>confdefs.h <<\_ACEOF
45272#define wxUSE_GAUGE 1
45273_ACEOF
45274
45275 USES_CONTROLS=1
45276fi
45277
45278if test "$wxUSE_GRID" = "yes"; then
45279 cat >>confdefs.h <<\_ACEOF
45280#define wxUSE_GRID 1
45281_ACEOF
45282
45283 USES_CONTROLS=1
45284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45285fi
45286
6954625c
VZ
45287if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45288 cat >>confdefs.h <<\_ACEOF
45289#define wxUSE_HYPERLINKCTRL 1
45290_ACEOF
45291
45292 USES_CONTROLS=1
45293fi
45294
95a46303
RR
45295if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45296 cat >>confdefs.h <<\_ACEOF
45297#define wxUSE_BITMAPCOMBOBOX 1
45298_ACEOF
45299
45300 USES_CONTROLS=1
45301fi
45302
20e34ecc
RR
45303if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45304 cat >>confdefs.h <<\_ACEOF
45305#define wxUSE_DATAVIEWCTRL 1
45306_ACEOF
45307
45308 USES_CONTROLS=1
45309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45310fi
45311
a848cd7e
SC
45312if test "$wxUSE_IMAGLIST" = "yes"; then
45313 cat >>confdefs.h <<\_ACEOF
45314#define wxUSE_IMAGLIST 1
45315_ACEOF
45316
45317fi
45318
45319if test "$wxUSE_LISTBOOK" = "yes"; then
45320 cat >>confdefs.h <<\_ACEOF
45321#define wxUSE_LISTBOOK 1
45322_ACEOF
45323
45324 USES_CONTROLS=1
45325fi
45326
45327if test "$wxUSE_LISTBOX" = "yes"; then
45328 cat >>confdefs.h <<\_ACEOF
45329#define wxUSE_LISTBOX 1
45330_ACEOF
45331
45332 USES_CONTROLS=1
0b78747f 45333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45334fi
45335
45336if test "$wxUSE_LISTCTRL" = "yes"; then
45337 if test "$wxUSE_IMAGLIST" = "yes"; then
45338 cat >>confdefs.h <<\_ACEOF
45339#define wxUSE_LISTCTRL 1
45340_ACEOF
45341
45342 USES_CONTROLS=1
45343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45344 else
45345 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45346echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45347 fi
45348fi
45349
45350if test "$wxUSE_NOTEBOOK" = "yes"; then
45351 cat >>confdefs.h <<\_ACEOF
45352#define wxUSE_NOTEBOOK 1
45353_ACEOF
45354
45355 USES_CONTROLS=1
45356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45357fi
45358
a57d600f 45359if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45360 cat >>confdefs.h <<\_ACEOF
a57d600f 45361#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45362_ACEOF
45363
45364 USES_CONTROLS=1
45365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45366fi
45367
a848cd7e
SC
45368
45369if test "$wxUSE_RADIOBOX" = "yes"; then
45370 cat >>confdefs.h <<\_ACEOF
45371#define wxUSE_RADIOBOX 1
45372_ACEOF
45373
45374 USES_CONTROLS=1
45375fi
45376
45377if test "$wxUSE_RADIOBTN" = "yes"; then
45378 cat >>confdefs.h <<\_ACEOF
45379#define wxUSE_RADIOBTN 1
45380_ACEOF
45381
45382 USES_CONTROLS=1
45383fi
45384
45385if test "$wxUSE_SASH" = "yes"; then
45386 cat >>confdefs.h <<\_ACEOF
45387#define wxUSE_SASH 1
45388_ACEOF
45389
45390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45391fi
45392
45393if test "$wxUSE_SCROLLBAR" = "yes"; then
45394 cat >>confdefs.h <<\_ACEOF
45395#define wxUSE_SCROLLBAR 1
45396_ACEOF
45397
45398 USES_CONTROLS=1
45399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45400fi
45401
45402if test "$wxUSE_SLIDER" = "yes"; then
45403 cat >>confdefs.h <<\_ACEOF
45404#define wxUSE_SLIDER 1
45405_ACEOF
45406
45407 USES_CONTROLS=1
45408fi
45409
45410if test "$wxUSE_SPINBTN" = "yes"; then
45411 cat >>confdefs.h <<\_ACEOF
45412#define wxUSE_SPINBTN 1
45413_ACEOF
45414
45415 USES_CONTROLS=1
45416fi
45417
45418if test "$wxUSE_SPINCTRL" = "yes"; then
45419 cat >>confdefs.h <<\_ACEOF
45420#define wxUSE_SPINCTRL 1
45421_ACEOF
45422
45423 USES_CONTROLS=1
45424fi
45425
45426if test "$wxUSE_SPLITTER" = "yes"; then
45427 cat >>confdefs.h <<\_ACEOF
45428#define wxUSE_SPLITTER 1
45429_ACEOF
45430
45431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45432fi
45433
45434if test "$wxUSE_STATBMP" = "yes"; then
45435 cat >>confdefs.h <<\_ACEOF
45436#define wxUSE_STATBMP 1
45437_ACEOF
45438
45439 USES_CONTROLS=1
45440fi
45441
45442if test "$wxUSE_STATBOX" = "yes"; then
45443 cat >>confdefs.h <<\_ACEOF
45444#define wxUSE_STATBOX 1
45445_ACEOF
45446
45447 USES_CONTROLS=1
45448fi
45449
45450if test "$wxUSE_STATTEXT" = "yes"; then
45451 cat >>confdefs.h <<\_ACEOF
45452#define wxUSE_STATTEXT 1
45453_ACEOF
45454
45455 USES_CONTROLS=1
45456fi
45457
45458if test "$wxUSE_STATLINE" = "yes"; then
45459 cat >>confdefs.h <<\_ACEOF
45460#define wxUSE_STATLINE 1
45461_ACEOF
45462
45463 USES_CONTROLS=1
45464fi
45465
45466if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45467 cat >>confdefs.h <<\_ACEOF
45468#define wxUSE_NATIVE_STATUSBAR 1
45469_ACEOF
45470
a848cd7e
SC
45471 cat >>confdefs.h <<\_ACEOF
45472#define wxUSE_STATUSBAR 1
45473_ACEOF
45474
45475 USES_CONTROLS=1
45476
45477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45478fi
45479
f10e38c4 45480if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45481 cat >>confdefs.h <<\_ACEOF
45482#define wxUSE_TAB_DIALOG 1
45483_ACEOF
45484
a848cd7e
SC
45485fi
45486
45487if test "$wxUSE_TEXTCTRL" = "yes"; then
45488 cat >>confdefs.h <<\_ACEOF
45489#define wxUSE_TEXTCTRL 1
45490_ACEOF
45491
45492 USES_CONTROLS=1
45493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45494fi
45495
45496if test "$wxUSE_TOGGLEBTN" = "yes"; then
45497 if test "$wxUSE_COCOA" = 1 ; then
45498 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45499echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45500 wxUSE_TOGGLEBTN=no
45501 fi
a848cd7e
SC
45502
45503 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45504 cat >>confdefs.h <<\_ACEOF
45505#define wxUSE_TOGGLEBTN 1
45506_ACEOF
45507
45508 USES_CONTROLS=1
45509 fi
45510fi
45511
a848cd7e
SC
45512if test "$wxUSE_TOOLBAR" = "yes"; then
45513 cat >>confdefs.h <<\_ACEOF
45514#define wxUSE_TOOLBAR 1
45515_ACEOF
45516
45517 USES_CONTROLS=1
45518
452b6243
VS
45519 if test "$wxUSE_UNIVERSAL" = "yes"; then
45520 wxUSE_TOOLBAR_NATIVE="no"
45521 else
45522 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45523 cat >>confdefs.h <<\_ACEOF
45524#define wxUSE_TOOLBAR_NATIVE 1
45525_ACEOF
45526
a848cd7e
SC
45527 fi
45528
45529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45530fi
45531
45532if test "$wxUSE_TOOLTIPS" = "yes"; then
45533 if test "$wxUSE_MOTIF" = 1; then
45534 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45535echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45536 else
45537 if test "$wxUSE_UNIVERSAL" = "yes"; then
45538 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45539echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45540 else
45541 cat >>confdefs.h <<\_ACEOF
45542#define wxUSE_TOOLTIPS 1
45543_ACEOF
45544
45545 fi
45546 fi
45547fi
45548
0093c2fc
VZ
45549if test "$wxUSE_TREEBOOK" = "yes"; then
45550 cat >>confdefs.h <<\_ACEOF
45551#define wxUSE_TREEBOOK 1
45552_ACEOF
45553
45554 USES_CONTROLS=1
45555fi
45556
5ec3bc43
JS
45557if test "$wxUSE_TOOLBOOK" = "yes"; then
45558 cat >>confdefs.h <<\_ACEOF
45559#define wxUSE_TOOLBOOK 1
45560_ACEOF
45561
45562 USES_CONTROLS=1
45563fi
45564
a848cd7e
SC
45565if test "$wxUSE_TREECTRL" = "yes"; then
45566 if test "$wxUSE_IMAGLIST" = "yes"; then
45567 cat >>confdefs.h <<\_ACEOF
45568#define wxUSE_TREECTRL 1
45569_ACEOF
45570
45571 USES_CONTROLS=1
45572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45573 else
45574 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45575echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45576 fi
45577fi
45578
45579if test "$wxUSE_POPUPWIN" = "yes"; then
45580 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45581 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45582echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45583 else
45584 if test "$wxUSE_PM" = 1; then
45585 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45586echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45587 else
45588 cat >>confdefs.h <<\_ACEOF
45589#define wxUSE_POPUPWIN 1
45590_ACEOF
45591
0b78747f 45592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45593
45594 USES_CONTROLS=1
45595 fi
45596 fi
45597fi
45598
0dcd06dd 45599if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45600 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45601 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45602echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45603 else
45604 cat >>confdefs.h <<\_ACEOF
45605#define wxUSE_DIALUP_MANAGER 1
45606_ACEOF
45607
45608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45609 fi
45610fi
45611
a848cd7e
SC
45612if test "$wxUSE_TIPWINDOW" = "yes"; then
45613 if test "$wxUSE_PM" = 1; then
45614 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45615echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45616 else
45617 cat >>confdefs.h <<\_ACEOF
45618#define wxUSE_TIPWINDOW 1
45619_ACEOF
45620
45621 fi
45622fi
45623
45624if test "$USES_CONTROLS" = 1; then
45625 cat >>confdefs.h <<\_ACEOF
45626#define wxUSE_CONTROLS 1
45627_ACEOF
45628
45629fi
45630
45631
45632if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45633 cat >>confdefs.h <<\_ACEOF
45634#define wxUSE_ACCESSIBILITY 1
45635_ACEOF
45636
45637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45638fi
45639
38b4a946
VZ
45640if test "$wxUSE_DC_CACHEING" = "yes"; then
45641 cat >>confdefs.h <<\_ACEOF
45642#define wxUSE_DC_CACHEING 1
45643_ACEOF
45644
45645fi
45646
a848cd7e
SC
45647if test "$wxUSE_DRAGIMAGE" = "yes"; then
45648 cat >>confdefs.h <<\_ACEOF
45649#define wxUSE_DRAGIMAGE 1
45650_ACEOF
45651
45652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45653fi
45654
45655if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45656 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45657 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45658echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45659 else
45660 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45661#define wxUSE_EXCEPTIONS 1
45662_ACEOF
45663
07bea8f0
VS
45664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45665 fi
a848cd7e
SC
45666fi
45667
45668USE_HTML=0
45669if test "$wxUSE_HTML" = "yes"; then
45670 cat >>confdefs.h <<\_ACEOF
45671#define wxUSE_HTML 1
45672_ACEOF
45673
45674 USE_HTML=1
45675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45676 if test "$wxUSE_MAC" = 1; then
45677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45678 fi
a848cd7e 45679fi
646b6ec1 45680if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45681 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45682 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45683 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45684 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45685echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45686if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45687 echo $ECHO_N "(cached) $ECHO_C" >&6
45688else
45689 cat >conftest.$ac_ext <<_ACEOF
45690/* confdefs.h. */
45691_ACEOF
45692cat confdefs.h >>conftest.$ac_ext
45693cat >>conftest.$ac_ext <<_ACEOF
45694/* end confdefs.h. */
45695#include <Carbon/Carbon.h>
45696
45697#include <WebKit/HIWebView.h>
45698_ACEOF
45699rm -f conftest.$ac_objext
45700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45701 (eval $ac_compile) 2>conftest.er1
45702 ac_status=$?
45703 grep -v '^ *+' conftest.er1 >conftest.err
45704 rm -f conftest.er1
45705 cat conftest.err >&5
45706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45707 (exit $ac_status); } &&
ca5c6ac3 45708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45710 (eval $ac_try) 2>&5
45711 ac_status=$?
45712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45713 (exit $ac_status); }; } &&
45714 { ac_try='test -s conftest.$ac_objext'
45715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45716 (eval $ac_try) 2>&5
45717 ac_status=$?
45718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719 (exit $ac_status); }; }; then
45720 ac_cv_header_WebKit_HIWebView_h=yes
45721else
45722 echo "$as_me: failed program was:" >&5
45723sed 's/^/| /' conftest.$ac_ext >&5
45724
45725ac_cv_header_WebKit_HIWebView_h=no
45726fi
45727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45728fi
45729echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45730echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45731if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45732
45733 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45734#define wxUSE_WEBKIT 1
45735_ACEOF
45736
07bea8f0
VS
45737 WEBKIT_LINK="-framework WebKit"
45738
45739else
45740
45741 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45742echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45743 wxUSE_WEBKIT=no
45744
646b6ec1
VS
45745fi
45746
07bea8f0
VS
45747
45748 CPPFLAGS="$old_CPPFLAGS"
45749 elif test "$wxUSE_COCOA" = 1; then
45750 cat >>confdefs.h <<\_ACEOF
45751#define wxUSE_WEBKIT 1
45752_ACEOF
45753
45754 else
45755 wxUSE_WEBKIT=no
45756 fi
45757fi
45758
9a8f0513
VS
45759USE_XRC=0
45760if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45761 if test "$wxUSE_XML" != "yes"; then
45762 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45763echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45764 wxUSE_XRC=no
45765 else
45766 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45767#define wxUSE_XRC 1
45768_ACEOF
45769
d2ebf0b7
VS
45770 USE_XRC=1
45771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45772 fi
9a8f0513 45773fi
07bea8f0 45774
3f60522a
JS
45775USE_AUI=0
45776if test "$wxUSE_AUI" = "yes"; then
45777 cat >>confdefs.h <<\_ACEOF
45778#define wxUSE_AUI 1
45779_ACEOF
45780
45781 USE_AUI=1
45782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45783fi
45784
a848cd7e
SC
45785if test "$wxUSE_MENUS" = "yes"; then
45786 cat >>confdefs.h <<\_ACEOF
45787#define wxUSE_MENUS 1
45788_ACEOF
45789
45790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45791fi
45792
45793if test "$wxUSE_METAFILE" = "yes"; then
45794 cat >>confdefs.h <<\_ACEOF
45795#define wxUSE_METAFILE 1
45796_ACEOF
45797
45798fi
45799
45800if test "$wxUSE_MIMETYPE" = "yes"; then
45801 cat >>confdefs.h <<\_ACEOF
45802#define wxUSE_MIMETYPE 1
45803_ACEOF
45804
45805fi
45806
45807if test "$wxUSE_MINIFRAME" = "yes"; then
45808 cat >>confdefs.h <<\_ACEOF
45809#define wxUSE_MINIFRAME 1
45810_ACEOF
45811
45812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45813fi
45814
45815if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45816 cat >>confdefs.h <<\_ACEOF
45817#define wxUSE_SYSTEM_OPTIONS 1
45818_ACEOF
45819
45820 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45821 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45823 fi
45824fi
45825
45826
45827if test "$wxUSE_VALIDATORS" = "yes"; then
45828 cat >>confdefs.h <<\_ACEOF
45829#define wxUSE_VALIDATORS 1
45830_ACEOF
45831
45832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45833fi
45834
45835if test "$wxUSE_PALETTE" = "yes" ; then
45836 cat >>confdefs.h <<\_ACEOF
45837#define wxUSE_PALETTE 1
45838_ACEOF
45839
45840fi
45841
45842if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45843 LIBS=" -lunicows $LIBS"
45844fi
45845
91dea314
MW
45846USE_RICHTEXT=0
45847if test "$wxUSE_RICHTEXT" = "yes"; then
45848 cat >>confdefs.h <<\_ACEOF
45849#define wxUSE_RICHTEXT 1
45850_ACEOF
45851
45852 USE_RICHTEXT=1
45853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45854fi
45855
a848cd7e
SC
45856
45857if test "$wxUSE_IMAGE" = "yes" ; then
45858 cat >>confdefs.h <<\_ACEOF
45859#define wxUSE_IMAGE 1
45860_ACEOF
45861
45862
45863 if test "$wxUSE_GIF" = "yes" ; then
45864 cat >>confdefs.h <<\_ACEOF
45865#define wxUSE_GIF 1
45866_ACEOF
45867
45868 fi
45869
45870 if test "$wxUSE_PCX" = "yes" ; then
45871 cat >>confdefs.h <<\_ACEOF
45872#define wxUSE_PCX 1
45873_ACEOF
45874
45875 fi
45876
45877 if test "$wxUSE_IFF" = "yes" ; then
45878 cat >>confdefs.h <<\_ACEOF
45879#define wxUSE_IFF 1
45880_ACEOF
45881
45882 fi
45883
45884 if test "$wxUSE_PNM" = "yes" ; then
45885 cat >>confdefs.h <<\_ACEOF
45886#define wxUSE_PNM 1
45887_ACEOF
45888
45889 fi
45890
45891 if test "$wxUSE_XPM" = "yes" ; then
45892 cat >>confdefs.h <<\_ACEOF
45893#define wxUSE_XPM 1
45894_ACEOF
45895
45896 fi
45897
45898 if test "$wxUSE_ICO_CUR" = "yes" ; then
45899 cat >>confdefs.h <<\_ACEOF
45900#define wxUSE_ICO_CUR 1
45901_ACEOF
45902
45903 fi
45904fi
45905
45906
45907if test "$wxUSE_CHOICEDLG" = "yes"; then
45908 cat >>confdefs.h <<\_ACEOF
45909#define wxUSE_CHOICEDLG 1
45910_ACEOF
45911
45912fi
45913
45914if test "$wxUSE_COLOURDLG" = "yes"; then
45915 cat >>confdefs.h <<\_ACEOF
45916#define wxUSE_COLOURDLG 1
45917_ACEOF
45918
45919fi
45920
45921if test "$wxUSE_FILEDLG" = "yes"; then
45922 cat >>confdefs.h <<\_ACEOF
45923#define wxUSE_FILEDLG 1
45924_ACEOF
45925
45926fi
45927
45928if test "$wxUSE_FINDREPLDLG" = "yes"; then
45929 cat >>confdefs.h <<\_ACEOF
45930#define wxUSE_FINDREPLDLG 1
45931_ACEOF
45932
45933fi
45934
45935if test "$wxUSE_FONTDLG" = "yes"; then
45936 cat >>confdefs.h <<\_ACEOF
45937#define wxUSE_FONTDLG 1
45938_ACEOF
45939
45940fi
45941
45942if test "$wxUSE_DIRDLG" = "yes"; then
45943 if test "$wxUSE_TREECTRL" != "yes"; then
45944 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45945echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45946 else
45947 cat >>confdefs.h <<\_ACEOF
45948#define wxUSE_DIRDLG 1
45949_ACEOF
45950
45951 fi
45952fi
45953
45954if test "$wxUSE_MSGDLG" = "yes"; then
45955 cat >>confdefs.h <<\_ACEOF
45956#define wxUSE_MSGDLG 1
45957_ACEOF
45958
45959fi
45960
45961if test "$wxUSE_NUMBERDLG" = "yes"; then
45962 cat >>confdefs.h <<\_ACEOF
45963#define wxUSE_NUMBERDLG 1
45964_ACEOF
45965
45966fi
45967
45968if test "$wxUSE_PROGRESSDLG" = "yes"; then
45969 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45970 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45971echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45972 else
45973 cat >>confdefs.h <<\_ACEOF
45974#define wxUSE_PROGRESSDLG 1
45975_ACEOF
45976
45977 fi
45978fi
45979
45980if test "$wxUSE_SPLASH" = "yes"; then
45981 cat >>confdefs.h <<\_ACEOF
45982#define wxUSE_SPLASH 1
45983_ACEOF
45984
2057db16 45985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45986fi
45987
45988if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45989 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45990 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45991echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45992 else
45993 cat >>confdefs.h <<\_ACEOF
45994#define wxUSE_STARTUP_TIPS 1
45995_ACEOF
45996
45997 fi
45998fi
45999
46000if test "$wxUSE_TEXTDLG" = "yes"; then
46001 cat >>confdefs.h <<\_ACEOF
46002#define wxUSE_TEXTDLG 1
46003_ACEOF
46004
46005fi
46006
46007if test "$wxUSE_WIZARDDLG" = "yes"; then
46008 cat >>confdefs.h <<\_ACEOF
46009#define wxUSE_WIZARDDLG 1
46010_ACEOF
46011
46012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46013fi
46014
46015
f10e38c4
VZ
46016USE_MEDIA=0
46017
ce756cb0 46018if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46019 USE_MEDIA=1
46020
ce756cb0 46021 if test "$wxUSE_GTK" = 1; then
c9a66001 46022 wxUSE_GSTREAMER="no"
ce756cb0 46023
f10e38c4
VZ
46024 GST_VERSION_MAJOR=0
46025 GST_VERSION_MINOR=10
2f6c5bb5 46026 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46027
46028 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46029
3ecd9f92
MW
46030pkg_failed=no
46031echo "$as_me:$LINENO: checking for GST" >&5
46032echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46033
3ecd9f92
MW
46034if test -n "$PKG_CONFIG"; then
46035 if test -n "$GST_CFLAGS"; then
46036 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46037 else
46038 if test -n "$PKG_CONFIG" && \
46039 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46040 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46041 ac_status=$?
46042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46043 (exit $ac_status); }; then
46044 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46045else
3ecd9f92
MW
46046 pkg_failed=yes
46047fi
46048 fi
46049else
46050 pkg_failed=untried
dae87f93 46051fi
dae87f93 46052if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46053 if test -n "$GST_LIBS"; then
46054 pkg_cv_GST_LIBS="$GST_LIBS"
46055 else
46056 if test -n "$PKG_CONFIG" && \
46057 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46058 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46059 ac_status=$?
46060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061 (exit $ac_status); }; then
46062 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46063else
3ecd9f92
MW
46064 pkg_failed=yes
46065fi
46066 fi
46067else
46068 pkg_failed=untried
dae87f93
RN
46069fi
46070
dae87f93 46071
2f6c5bb5 46072
3ecd9f92 46073if test $pkg_failed = yes; then
ce756cb0 46074
3ecd9f92
MW
46075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46076 _pkg_short_errors_supported=yes
46077else
46078 _pkg_short_errors_supported=no
46079fi
46080 if test $_pkg_short_errors_supported = yes; then
46081 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46082 else
46083 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46084 fi
3ecd9f92
MW
46085 # Put the nasty error message in config.log where it belongs
46086 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46087
46088
3ecd9f92
MW
46089 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46090echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46091 GST_VERSION_MINOR=8
dae87f93 46092
ce756cb0 46093
3ecd9f92 46094elif test $pkg_failed = untried; then
dae87f93 46095
2f6c5bb5
VZ
46096 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46097echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46098 GST_VERSION_MINOR=8
dae87f93 46099
2f6c5bb5 46100
3ecd9f92
MW
46101else
46102 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46103 GST_LIBS=$pkg_cv_GST_LIBS
46104 echo "$as_me:$LINENO: result: yes" >&5
46105echo "${ECHO_T}yes" >&6
46106
46107 wxUSE_GSTREAMER="yes"
46108 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46109
3ecd9f92 46110fi
2f6c5bb5
VZ
46111 else
46112 GST_VERSION_MINOR=8
f10e38c4 46113 fi
dae87f93 46114
2f6c5bb5
VZ
46115 if test $GST_VERSION_MINOR = "8"; then
46116 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46117
3ecd9f92
MW
46118pkg_failed=no
46119echo "$as_me:$LINENO: checking for GST" >&5
46120echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46121
3ecd9f92
MW
46122if test -n "$PKG_CONFIG"; then
46123 if test -n "$GST_CFLAGS"; then
46124 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46125 else
46126 if test -n "$PKG_CONFIG" && \
46127 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46128 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46129 ac_status=$?
46130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131 (exit $ac_status); }; then
46132 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46133else
3ecd9f92
MW
46134 pkg_failed=yes
46135fi
46136 fi
46137else
46138 pkg_failed=untried
dae87f93 46139fi
f10e38c4 46140if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46141 if test -n "$GST_LIBS"; then
46142 pkg_cv_GST_LIBS="$GST_LIBS"
46143 else
46144 if test -n "$PKG_CONFIG" && \
46145 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46146 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46147 ac_status=$?
46148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46149 (exit $ac_status); }; then
46150 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46151else
3ecd9f92
MW
46152 pkg_failed=yes
46153fi
46154 fi
46155else
46156 pkg_failed=untried
dae87f93
RN
46157fi
46158
ce756cb0 46159
2f6c5bb5 46160
3ecd9f92 46161if test $pkg_failed = yes; then
dae87f93 46162
3ecd9f92
MW
46163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46164 _pkg_short_errors_supported=yes
46165else
46166 _pkg_short_errors_supported=no
46167fi
46168 if test $_pkg_short_errors_supported = yes; then
46169 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46170 else
46171 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46172 fi
3ecd9f92
MW
46173 # Put the nasty error message in config.log where it belongs
46174 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46175
46176
3ecd9f92
MW
46177 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46178echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46179
3ecd9f92 46180elif test $pkg_failed = untried; then
ce756cb0 46181
2f6c5bb5
VZ
46182 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46183echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46184
3ecd9f92
MW
46185else
46186 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46187 GST_LIBS=$pkg_cv_GST_LIBS
46188 echo "$as_me:$LINENO: result: yes" >&5
46189echo "${ECHO_T}yes" >&6
46190 wxUSE_GSTREAMER="yes"
46191fi
dae87f93 46192 fi
ce756cb0 46193
f10e38c4 46194
dae87f93 46195 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46196 case "${host}" in
46197 *-*-solaris2* )
46198 if "$GCC" = yes; then
46199 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46200 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46201 fi
46202 esac
46203
46204 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46205 LIBS="$GST_LIBS $LIBS"
46206
dae87f93 46207 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46208#define wxUSE_GSTREAMER 1
46209_ACEOF
46210
2f6c5bb5
VZ
46211 else
46212 USE_MEDIA=0
ce756cb0
RN
46213 fi
46214 fi
2f6c5bb5
VZ
46215
46216 if test $USE_MEDIA = 1; then
46217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46218 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46219#define wxUSE_MEDIACTRL 1
46220_ACEOF
46221
2f6c5bb5 46222 fi
ce756cb0
RN
46223fi
46224
46225
a848cd7e
SC
46226if test "$cross_compiling" = "yes"; then
46227 OSINFO="\"$host\""
46228else
46229 OSINFO=`uname -s -r -m`
46230 OSINFO="\"$OSINFO\""
46231fi
46232
46233cat >>confdefs.h <<_ACEOF
46234#define WXWIN_OS_DESCRIPTION $OSINFO
46235_ACEOF
46236
46237
46238
46239if test "x$prefix" != "xNONE"; then
46240 wxPREFIX=$prefix
46241else
46242 wxPREFIX=$ac_default_prefix
46243fi
46244
46245cat >>confdefs.h <<_ACEOF
46246#define wxINSTALL_PREFIX "$wxPREFIX"
46247_ACEOF
46248
46249
a848cd7e
SC
46250
46251
46252CORE_BASE_LIBS="net base"
46253CORE_GUI_LIBS="adv core"
46254
46255if test "$wxUSE_XML" = "yes" ; then
46256 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46257fi
46258if test "$wxUSE_ODBC" != "no" ; then
46259 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46260 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46261fi
46262if test "$wxUSE_HTML" = "yes" ; then
46263 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46264fi
61639efb
VZ
46265if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46266 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46267fi
9a8f0513
VS
46268if test "$wxUSE_XRC" = "yes" ; then
46269 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46270fi
3f60522a
JS
46271if test "$wxUSE_AUI" = "yes" ; then
46272 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46273fi
a848cd7e
SC
46274
46275if test "$wxUSE_GUI" != "yes"; then
46276 CORE_GUI_LIBS=""
46277fi
46278
46279
46280
46281
46282
5d7b7554
VZ
46283ac_ext=c
46284ac_cpp='$CPP $CPPFLAGS'
46285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46287ac_compiler_gnu=$ac_cv_c_compiler_gnu
46288
a848cd7e
SC
46289
46290
a848cd7e 46291if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46292 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46293 if test "$USE_DARWIN" = 1; then
46294 LDFLAGS="$LDFLAGS -framework QuickTime"
46295 else
46296 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46297 fi
07bea8f0 46298 fi
5dcf30a0 46299 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46300 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46301 else
46302 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46303 fi
a848cd7e
SC
46304fi
46305if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46306 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46307 if test "$wxUSE_MEDIACTRL" = "yes"; then
46308 LDFLAGS="$LDFLAGS -framework QuickTime"
46309 fi
a848cd7e 46310fi
19b27e78
MW
46311if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46312 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46313fi
a848cd7e 46314
a848cd7e
SC
46315LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46316
a848cd7e
SC
46317if test "$wxUSE_GUI" = "yes"; then
46318
46319
8bce5cda
MW
46320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46321 dynamic erase event exec font image minimal mobile \
46322 mobile/wxedit mobile/styles propsize render \
9e39d889 46323 rotate shaped vscroll widgets"
a848cd7e
SC
46324
46325 if test "$wxUSE_MONOLITHIC" != "yes"; then
46326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46327 fi
0b78747f 46328 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46330 if test "$wxUSE_UNIVERSAL" != "yes"; then
46331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46332 fi
46333 fi
46334 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46336 fi
a848cd7e
SC
46337else
46338 SAMPLES_SUBDIRS="console"
46339fi
46340
46341
48f625bc 46342if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46343 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46344elif test "$GCC" = yes ; then
46345 CWARNINGS="-Wall -Wundef"
46346fi
46347
48f625bc 46348if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46349 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46350elif test "$GXX" = yes ; then
46351 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46352fi
a848cd7e 46353
a848cd7e 46354
5ff751d6
VZ
46355WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46356WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46357
46358
c92ad099 46359CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46360 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46361 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46362 $CPPFLAGS `
5ff751d6 46363
8aeeb05c 46364C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46365CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46366CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46367
46368WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46369
a848cd7e 46370
95986553
DE
46371if test "x$MWCC" = "xyes"; then
46372
46373 CC="$CC -cwd source -I-"
46374 CXX="$CXX -cwd source -I-"
46375fi
46376
a848cd7e 46377
0c3c69fc 46378LIBS=`echo $LIBS`
a848cd7e
SC
46379EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46380EXTRALIBS_XML="$EXPAT_LINK"
46381EXTRALIBS_HTML="$MSPACK_LINK"
46382EXTRALIBS_ODBC="$ODBC_LINK"
46383if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46384 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46385fi
46386if test "$wxUSE_OPENGL" = "yes"; then
46387 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46388fi
46389
8aeeb05c 46390LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46391
5ff751d6 46392WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46393
46394if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46395 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46396fi
46397if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46398 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46399fi
46400if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46401 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46402fi
46403if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46404 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46405fi
46406if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46407 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46408fi
46409if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46410 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46411fi
46412if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46413 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46414fi
46415
46416for i in $wxconfig_3rdparty ; do
5ff751d6 46417 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46418done
46419
46420
46421if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46422 WXUNIV=1
46423else
46424 WXUNIV=0
46425fi
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435if test $wxUSE_MONOLITHIC = "yes" ; then
46436 MONOLITHIC=1
46437else
46438 MONOLITHIC=0
46439fi
46440
46441if test $wxUSE_PLUGINS = "yes" ; then
46442 USE_PLUGINS=1
46443else
46444 USE_PLUGINS=0
46445fi
46446
46447if test $wxUSE_ODBC != "no" ; then
46448 USE_ODBC=1
46449else
46450 USE_ODBC=0
46451fi
46452
16358932
VZ
46453if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46454 USE_QA=1
46455else
46456 USE_QA=0
46457fi
46458
a848cd7e
SC
46459if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46460 OFFICIAL_BUILD=1
46461else
46462 OFFICIAL_BUILD=0
46463fi
46464
46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477
46478
46479
46480
46481
46482
ceec2216 46483
d1c38808 46484
3565d135 46485
2b850ae1 46486
a848cd7e
SC
46487
46488
46489TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46490
46491
46492
46493
46494
46495
46496
46497
4d4ff94c
VZ
46498case "$TOOLKIT" in
46499 GTK)
c2e9ada4 46500 TOOLKIT_DESC="GTK+"
4d4ff94c 46501 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46502 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46503 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46504 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46505 fi
46506 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46507 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46508 fi
46509 if test "$wxUSE_LIBHILDON" = "yes"; then
46510 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46511 fi
46512
46513 if test "$TOOLKIT_EXTRA" != ""; then
46514 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46515 fi
4d4ff94c 46516 fi
9a8f0513 46517 ;;
4d4ff94c 46518
c2e9ada4
VZ
46519 ?*)
46520 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46521 ;;
46522
4d4ff94c 46523 *)
c2e9ada4 46524 TOOLKIT_DESC="base only"
9a8f0513 46525 ;;
4d4ff94c 46526esac
a848cd7e 46527
fb00f58d
JS
46528if test "$wxUSE_WINE" = "yes"; then
46529 BAKEFILE_FORCE_PLATFORM=win32
46530fi
46531
7afc46ab 46532if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46533 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46534 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46535 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46536 else
46537 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46538 fi
46539 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46540 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46541 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46542 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46543 bk_use_pch=no
46544 fi
46545 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46546 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46547fi
46548
9a8f0513 46549
1e9e8aba
DE
46550
46551
a848cd7e 46552 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46553 if test "x${host}" = "x" ; then
46554 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46555echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46556 { (exit 1); exit 1; }; }
46557 fi
46558
a848cd7e
SC
46559 BAKEFILE_HOST="${host}"
46560 fi
46561
46562 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46563
46564 if test -n "$ac_tool_prefix"; then
46565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46566set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46567echo "$as_me:$LINENO: checking for $ac_word" >&5
46568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46569if test "${ac_cv_prog_RANLIB+set}" = set; then
46570 echo $ECHO_N "(cached) $ECHO_C" >&6
46571else
46572 if test -n "$RANLIB"; then
46573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46574else
46575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46576for as_dir in $PATH
46577do
46578 IFS=$as_save_IFS
46579 test -z "$as_dir" && as_dir=.
46580 for ac_exec_ext in '' $ac_executable_extensions; do
46581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46584 break 2
46585 fi
46586done
46587done
46588
46589fi
46590fi
46591RANLIB=$ac_cv_prog_RANLIB
46592if test -n "$RANLIB"; then
46593 echo "$as_me:$LINENO: result: $RANLIB" >&5
46594echo "${ECHO_T}$RANLIB" >&6
46595else
46596 echo "$as_me:$LINENO: result: no" >&5
46597echo "${ECHO_T}no" >&6
46598fi
46599
46600fi
46601if test -z "$ac_cv_prog_RANLIB"; then
46602 ac_ct_RANLIB=$RANLIB
46603 # Extract the first word of "ranlib", so it can be a program name with args.
46604set dummy ranlib; ac_word=$2
46605echo "$as_me:$LINENO: checking for $ac_word" >&5
46606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46607if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46608 echo $ECHO_N "(cached) $ECHO_C" >&6
46609else
46610 if test -n "$ac_ct_RANLIB"; then
46611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46612else
46613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46614for as_dir in $PATH
46615do
46616 IFS=$as_save_IFS
46617 test -z "$as_dir" && as_dir=.
46618 for ac_exec_ext in '' $ac_executable_extensions; do
46619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46620 ac_cv_prog_ac_ct_RANLIB="ranlib"
46621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46622 break 2
46623 fi
46624done
46625done
46626
46627 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46628fi
46629fi
46630ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46631if test -n "$ac_ct_RANLIB"; then
46632 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46633echo "${ECHO_T}$ac_ct_RANLIB" >&6
46634else
46635 echo "$as_me:$LINENO: result: no" >&5
46636echo "${ECHO_T}no" >&6
46637fi
46638
46639 RANLIB=$ac_ct_RANLIB
46640else
46641 RANLIB="$ac_cv_prog_RANLIB"
46642fi
46643
46644 # Find a good install program. We prefer a C program (faster),
46645# so one script is as good as another. But avoid the broken or
46646# incompatible versions:
46647# SysV /etc/install, /usr/sbin/install
46648# SunOS /usr/etc/install
46649# IRIX /sbin/install
46650# AIX /bin/install
46651# AmigaOS /C/install, which installs bootblocks on floppy discs
46652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46655# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46656# ./install, which can be erroneously created by make from ./install.sh.
46657echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46658echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46659if test -z "$INSTALL"; then
46660if test "${ac_cv_path_install+set}" = set; then
46661 echo $ECHO_N "(cached) $ECHO_C" >&6
46662else
46663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46664for as_dir in $PATH
46665do
46666 IFS=$as_save_IFS
46667 test -z "$as_dir" && as_dir=.
46668 # Account for people who put trailing slashes in PATH elements.
46669case $as_dir/ in
46670 ./ | .// | /cC/* | \
46671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46673 /usr/ucb/* ) ;;
46674 *)
46675 # OSF1 and SCO ODT 3.0 have their own names for install.
46676 # Don't use installbsd from OSF since it installs stuff as root
46677 # by default.
46678 for ac_prog in ginstall scoinst install; do
46679 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46680 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46681 if test $ac_prog = install &&
46682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46683 # AIX install. It has an incompatible calling convention.
46684 :
46685 elif test $ac_prog = install &&
46686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46687 # program-specific install script used by HP pwplus--don't use.
46688 :
46689 else
46690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46691 break 3
46692 fi
46693 fi
a848cd7e
SC
46694 done
46695 done
46696 ;;
46697esac
46698done
46699
46700
46701fi
46702 if test "${ac_cv_path_install+set}" = set; then
46703 INSTALL=$ac_cv_path_install
46704 else
46705 # As a last resort, use the slow shell script. We don't cache a
46706 # path for INSTALL within a source directory, because that will
46707 # break other packages using the cache if that directory is
46708 # removed, or if the path is relative.
46709 INSTALL=$ac_install_sh
46710 fi
46711fi
46712echo "$as_me:$LINENO: result: $INSTALL" >&5
46713echo "${ECHO_T}$INSTALL" >&6
46714
46715# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46716# It thinks the first close brace ends the variable substitution.
46717test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46718
46719test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46720
46721test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46722
46723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46724echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46725LN_S=$as_ln_s
46726if test "$LN_S" = "ln -s"; then
46727 echo "$as_me:$LINENO: result: yes" >&5
46728echo "${ECHO_T}yes" >&6
46729else
46730 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46731echo "${ECHO_T}no, using $LN_S" >&6
46732fi
46733
46734
46735 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46736echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46737set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46738if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46739 echo $ECHO_N "(cached) $ECHO_C" >&6
46740else
46741 cat >conftest.make <<\_ACEOF
46742all:
46743 @echo 'ac_maketemp="$(MAKE)"'
46744_ACEOF
46745# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46746eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46747if test -n "$ac_maketemp"; then
46748 eval ac_cv_prog_make_${ac_make}_set=yes
46749else
46750 eval ac_cv_prog_make_${ac_make}_set=no
46751fi
46752rm -f conftest.make
46753fi
46754if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46755 echo "$as_me:$LINENO: result: yes" >&5
46756echo "${ECHO_T}yes" >&6
46757 SET_MAKE=
46758else
46759 echo "$as_me:$LINENO: result: no" >&5
46760echo "${ECHO_T}no" >&6
46761 SET_MAKE="MAKE=${MAKE-make}"
46762fi
46763
46764
46765
46766 if test -n "$ac_tool_prefix"; then
46767 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46768set dummy ${ac_tool_prefix}ar; ac_word=$2
46769echo "$as_me:$LINENO: checking for $ac_word" >&5
46770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46771if test "${ac_cv_prog_AR+set}" = set; then
46772 echo $ECHO_N "(cached) $ECHO_C" >&6
46773else
46774 if test -n "$AR"; then
46775 ac_cv_prog_AR="$AR" # Let the user override the test.
46776else
46777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46778for as_dir in $PATH
46779do
46780 IFS=$as_save_IFS
46781 test -z "$as_dir" && as_dir=.
46782 for ac_exec_ext in '' $ac_executable_extensions; do
46783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46784 ac_cv_prog_AR="${ac_tool_prefix}ar"
46785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46786 break 2
46787 fi
46788done
46789done
46790
46791fi
46792fi
46793AR=$ac_cv_prog_AR
46794if test -n "$AR"; then
46795 echo "$as_me:$LINENO: result: $AR" >&5
46796echo "${ECHO_T}$AR" >&6
46797else
46798 echo "$as_me:$LINENO: result: no" >&5
46799echo "${ECHO_T}no" >&6
46800fi
46801
46802fi
46803if test -z "$ac_cv_prog_AR"; then
46804 ac_ct_AR=$AR
46805 # Extract the first word of "ar", so it can be a program name with args.
46806set dummy ar; ac_word=$2
46807echo "$as_me:$LINENO: checking for $ac_word" >&5
46808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46809if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46810 echo $ECHO_N "(cached) $ECHO_C" >&6
46811else
46812 if test -n "$ac_ct_AR"; then
46813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46814else
46815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46816for as_dir in $PATH
46817do
46818 IFS=$as_save_IFS
46819 test -z "$as_dir" && as_dir=.
46820 for ac_exec_ext in '' $ac_executable_extensions; do
46821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46822 ac_cv_prog_ac_ct_AR="ar"
46823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46824 break 2
46825 fi
46826done
46827done
46828
46829 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46830fi
46831fi
46832ac_ct_AR=$ac_cv_prog_ac_ct_AR
46833if test -n "$ac_ct_AR"; then
46834 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46835echo "${ECHO_T}$ac_ct_AR" >&6
46836else
46837 echo "$as_me:$LINENO: result: no" >&5
46838echo "${ECHO_T}no" >&6
46839fi
46840
46841 AR=$ac_ct_AR
46842else
46843 AR="$ac_cv_prog_AR"
46844fi
46845
46846 if test -n "$ac_tool_prefix"; then
46847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46848set dummy ${ac_tool_prefix}strip; ac_word=$2
46849echo "$as_me:$LINENO: checking for $ac_word" >&5
46850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46851if test "${ac_cv_prog_STRIP+set}" = set; then
46852 echo $ECHO_N "(cached) $ECHO_C" >&6
46853else
46854 if test -n "$STRIP"; then
46855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46856else
46857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46858for as_dir in $PATH
46859do
46860 IFS=$as_save_IFS
46861 test -z "$as_dir" && as_dir=.
46862 for ac_exec_ext in '' $ac_executable_extensions; do
46863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46866 break 2
46867 fi
46868done
46869done
46870
46871fi
46872fi
46873STRIP=$ac_cv_prog_STRIP
46874if test -n "$STRIP"; then
46875 echo "$as_me:$LINENO: result: $STRIP" >&5
46876echo "${ECHO_T}$STRIP" >&6
46877else
46878 echo "$as_me:$LINENO: result: no" >&5
46879echo "${ECHO_T}no" >&6
46880fi
46881
46882fi
46883if test -z "$ac_cv_prog_STRIP"; then
46884 ac_ct_STRIP=$STRIP
46885 # Extract the first word of "strip", so it can be a program name with args.
46886set dummy strip; ac_word=$2
46887echo "$as_me:$LINENO: checking for $ac_word" >&5
46888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46890 echo $ECHO_N "(cached) $ECHO_C" >&6
46891else
46892 if test -n "$ac_ct_STRIP"; then
46893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46894else
46895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46896for as_dir in $PATH
46897do
46898 IFS=$as_save_IFS
46899 test -z "$as_dir" && as_dir=.
46900 for ac_exec_ext in '' $ac_executable_extensions; do
46901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46902 ac_cv_prog_ac_ct_STRIP="strip"
46903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46904 break 2
46905 fi
46906done
46907done
46908
46909 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46910fi
46911fi
46912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46913if test -n "$ac_ct_STRIP"; then
46914 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46915echo "${ECHO_T}$ac_ct_STRIP" >&6
46916else
46917 echo "$as_me:$LINENO: result: no" >&5
46918echo "${ECHO_T}no" >&6
46919fi
46920
46921 STRIP=$ac_ct_STRIP
46922else
46923 STRIP="$ac_cv_prog_STRIP"
46924fi
46925
46926 if test -n "$ac_tool_prefix"; then
46927 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46928set dummy ${ac_tool_prefix}nm; ac_word=$2
46929echo "$as_me:$LINENO: checking for $ac_word" >&5
46930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46931if test "${ac_cv_prog_NM+set}" = set; then
46932 echo $ECHO_N "(cached) $ECHO_C" >&6
46933else
46934 if test -n "$NM"; then
46935 ac_cv_prog_NM="$NM" # Let the user override the test.
46936else
46937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46938for as_dir in $PATH
46939do
46940 IFS=$as_save_IFS
46941 test -z "$as_dir" && as_dir=.
46942 for ac_exec_ext in '' $ac_executable_extensions; do
46943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46944 ac_cv_prog_NM="${ac_tool_prefix}nm"
46945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46946 break 2
46947 fi
46948done
46949done
46950
46951fi
46952fi
46953NM=$ac_cv_prog_NM
46954if test -n "$NM"; then
46955 echo "$as_me:$LINENO: result: $NM" >&5
46956echo "${ECHO_T}$NM" >&6
46957else
46958 echo "$as_me:$LINENO: result: no" >&5
46959echo "${ECHO_T}no" >&6
46960fi
46961
46962fi
46963if test -z "$ac_cv_prog_NM"; then
46964 ac_ct_NM=$NM
46965 # Extract the first word of "nm", so it can be a program name with args.
46966set dummy nm; ac_word=$2
46967echo "$as_me:$LINENO: checking for $ac_word" >&5
46968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46969if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46970 echo $ECHO_N "(cached) $ECHO_C" >&6
46971else
46972 if test -n "$ac_ct_NM"; then
46973 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46974else
46975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46976for as_dir in $PATH
46977do
46978 IFS=$as_save_IFS
46979 test -z "$as_dir" && as_dir=.
46980 for ac_exec_ext in '' $ac_executable_extensions; do
46981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46982 ac_cv_prog_ac_ct_NM="nm"
46983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46984 break 2
46985 fi
46986done
46987done
46988
46989 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46990fi
46991fi
46992ac_ct_NM=$ac_cv_prog_ac_ct_NM
46993if test -n "$ac_ct_NM"; then
46994 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46995echo "${ECHO_T}$ac_ct_NM" >&6
46996else
46997 echo "$as_me:$LINENO: result: no" >&5
46998echo "${ECHO_T}no" >&6
46999fi
47000
47001 NM=$ac_ct_NM
47002else
47003 NM="$ac_cv_prog_NM"
47004fi
47005
47006
47007 case ${BAKEFILE_HOST} in
47008 *-hp-hpux* )
1e9e8aba 47009 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47010 ;;
47011 *) INSTALL_DIR="$INSTALL -d"
47012 ;;
47013 esac
47014
47015
47016 LDFLAGS_GUI=
47017 case ${BAKEFILE_HOST} in
47018 *-*-cygwin* | *-*-mingw32* )
47019 LDFLAGS_GUI="-mwindows"
47020 esac
47021
47022
47023 fi
47024
47025 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47026echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47027if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47028 echo $ECHO_N "(cached) $ECHO_C" >&6
47029else
47030
47031 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47032 egrep -s GNU > /dev/null); then
47033 bakefile_cv_prog_makeisgnu="yes"
47034 else
47035 bakefile_cv_prog_makeisgnu="no"
47036 fi
47037
47038fi
47039echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47040echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47041
47042 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47043 IF_GNU_MAKE=""
47044 else
47045 IF_GNU_MAKE="#"
47046 fi
47047
47048
47049
47050 PLATFORM_UNIX=0
47051 PLATFORM_WIN32=0
47052 PLATFORM_MSDOS=0
47053 PLATFORM_MAC=0
1e9e8aba 47054 PLATFORM_MACOS=0
a848cd7e
SC
47055 PLATFORM_MACOSX=0
47056 PLATFORM_OS2=0
1e9e8aba 47057 PLATFORM_BEOS=0
a848cd7e
SC
47058
47059 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47060 case "${BAKEFILE_HOST}" in
810b94f0 47061 *-*-mingw32* )
a848cd7e
SC
47062 PLATFORM_WIN32=1
47063 ;;
47064 *-pc-msdosdjgpp )
47065 PLATFORM_MSDOS=1
47066 ;;
47067 *-pc-os2_emx | *-pc-os2-emx )
47068 PLATFORM_OS2=1
47069 ;;
47bd5406 47070 *-*-darwin* )
a848cd7e
SC
47071 PLATFORM_MAC=1
47072 PLATFORM_MACOSX=1
47073 ;;
1e9e8aba
DE
47074 *-*-beos* )
47075 PLATFORM_BEOS=1
47076 ;;
47077 powerpc-apple-macos* )
47078 PLATFORM_MAC=1
47079 PLATFORM_MACOS=1
47080 ;;
a848cd7e
SC
47081 * )
47082 PLATFORM_UNIX=1
47083 ;;
47084 esac
47085 else
47086 case "$BAKEFILE_FORCE_PLATFORM" in
47087 win32 )
47088 PLATFORM_WIN32=1
47089 ;;
47090 msdos )
47091 PLATFORM_MSDOS=1
47092 ;;
47093 os2 )
47094 PLATFORM_OS2=1
47095 ;;
47096 darwin )
47097 PLATFORM_MAC=1
47098 PLATFORM_MACOSX=1
47099 ;;
47100 unix )
47101 PLATFORM_UNIX=1
47102 ;;
1e9e8aba
DE
47103 beos )
47104 PLATFORM_BEOS=1
47105 ;;
a848cd7e
SC
47106 * )
47107 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47108echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47109 { (exit 1); exit 1; }; }
47110 ;;
47111 esac
47112 fi
47113
47114
47115
47116
47117
47118
47119
47120
47121
1e9e8aba
DE
47122
47123
a848cd7e
SC
47124 # Check whether --enable-omf or --disable-omf was given.
47125if test "${enable_omf+set}" = set; then
47126 enableval="$enable_omf"
47127 bk_os2_use_omf="$enableval"
47128fi;
47129
47130 case "${BAKEFILE_HOST}" in
47131 *-*-darwin* )
47bd5406
VZ
47132 if test "x$GCC" = "xyes"; then
47133 CFLAGS="$CFLAGS -fno-common"
47134 CXXFLAGS="$CXXFLAGS -fno-common"
47135 fi
47136 if test "x$XLCC" = "xyes"; then
47137 CFLAGS="$CFLAGS -qnocommon"
47138 CXXFLAGS="$CXXFLAGS -qnocommon"
47139 fi
a848cd7e
SC
47140 ;;
47141
47142 *-pc-os2_emx | *-pc-os2-emx )
47143 if test "x$bk_os2_use_omf" = "xyes" ; then
47144 AR=emxomfar
47145 RANLIB=:
47146 LDFLAGS="-Zomf $LDFLAGS"
47147 CFLAGS="-Zomf $CFLAGS"
47148 CXXFLAGS="-Zomf $CXXFLAGS"
47149 OS2_LIBEXT="lib"
47150 else
47151 OS2_LIBEXT="a"
47152 fi
47153 ;;
1e9e8aba
DE
47154
47155 i*86-*-beos* )
47156 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47157 ;;
a848cd7e
SC
47158 esac
47159
47160
47161 SO_SUFFIX="so"
47162 SO_SUFFIX_MODULE="so"
47163 EXEEXT=""
47164 LIBPREFIX="lib"
47165 LIBEXT=".a"
47166 DLLPREFIX="lib"
47167 DLLPREFIX_MODULE=""
47168 DLLIMP_SUFFIX=""
810b94f0 47169 dlldir="$libdir"
a848cd7e
SC
47170
47171 case "${BAKEFILE_HOST}" in
47172 *-hp-hpux* )
47173 SO_SUFFIX="sl"
47174 SO_SUFFIX_MODULE="sl"
47175 ;;
47176 *-*-aix* )
47177 SO_SUFFIX="a"
47178 SO_SUFFIX_MODULE="a"
47179 ;;
810b94f0
MW
47180 *-*-cygwin* )
47181 SO_SUFFIX="dll"
47182 SO_SUFFIX_MODULE="dll"
47183 DLLIMP_SUFFIX="dll.a"
47184 EXEEXT=".exe"
47185 DLLPREFIX="cyg"
47186 dlldir="$bindir"
47187 ;;
47188 *-*-mingw32* )
a848cd7e
SC
47189 SO_SUFFIX="dll"
47190 SO_SUFFIX_MODULE="dll"
47191 DLLIMP_SUFFIX="dll.a"
47192 EXEEXT=".exe"
47193 DLLPREFIX=""
810b94f0 47194 dlldir="$bindir"
a848cd7e
SC
47195 ;;
47196 *-pc-msdosdjgpp )
47197 EXEEXT=".exe"
47198 DLLPREFIX=""
810b94f0 47199 dlldir="$bindir"
a848cd7e
SC
47200 ;;
47201 *-pc-os2_emx | *-pc-os2-emx )
47202 SO_SUFFIX="dll"
47203 SO_SUFFIX_MODULE="dll"
47204 DLLIMP_SUFFIX=$OS2_LIBEXT
47205 EXEEXT=".exe"
47206 DLLPREFIX=""
47207 LIBPREFIX=""
47208 LIBEXT=".$OS2_LIBEXT"
810b94f0 47209 dlldir="$bindir"
a848cd7e 47210 ;;
47bd5406 47211 *-*-darwin* )
a848cd7e
SC
47212 SO_SUFFIX="dylib"
47213 SO_SUFFIX_MODULE="bundle"
47214 ;;
47215 esac
47216
47217 if test "x$DLLIMP_SUFFIX" = "x" ; then
47218 DLLIMP_SUFFIX="$SO_SUFFIX"
47219 fi
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
810b94f0 47231
1e9e8aba
DE
47232 PIC_FLAG=""
47233 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47234 PIC_FLAG="-fPIC"
47235 fi
47236
1e9e8aba
DE
47237 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47238 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47239 WINDOWS_IMPLIB=0
1e9e8aba 47240
a848cd7e
SC
47241 case "${BAKEFILE_HOST}" in
47242 *-hp-hpux* )
1e9e8aba 47243 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47244 LDFLAGS="$LDFLAGS -L/usr/lib"
47245
47246 SHARED_LD_CC="${CC} -b -o"
47247 SHARED_LD_CXX="${CXX} -b -o"
47248 PIC_FLAG="+Z"
47249 fi
47250 ;;
47251
47252 *-*-linux* )
47253 if test "x$GCC" != "xyes"; then
47254 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47255echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47256if test "${bakefile_cv_prog_icc+set}" = set; then
47257 echo $ECHO_N "(cached) $ECHO_C" >&6
47258else
47259
47260 cat >conftest.$ac_ext <<_ACEOF
47261/* confdefs.h. */
47262_ACEOF
47263cat confdefs.h >>conftest.$ac_ext
47264cat >>conftest.$ac_ext <<_ACEOF
47265/* end confdefs.h. */
47266
47267int
47268main ()
47269{
47270
47271 #ifndef __INTEL_COMPILER
e5efa97e 47272 This is not ICC
a848cd7e
SC
47273 #endif
47274
47275 ;
47276 return 0;
47277}
47278_ACEOF
47279rm -f conftest.$ac_objext
47280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47281 (eval $ac_compile) 2>conftest.er1
a848cd7e 47282 ac_status=$?
ac1cb8d3
VS
47283 grep -v '^ *+' conftest.er1 >conftest.err
47284 rm -f conftest.er1
47285 cat conftest.err >&5
a848cd7e
SC
47286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47287 (exit $ac_status); } &&
ca5c6ac3 47288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47290 (eval $ac_try) 2>&5
47291 ac_status=$?
47292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47293 (exit $ac_status); }; } &&
47294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47296 (eval $ac_try) 2>&5
47297 ac_status=$?
47298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47299 (exit $ac_status); }; }; then
47300 bakefile_cv_prog_icc=yes
47301else
47302 echo "$as_me: failed program was:" >&5
47303sed 's/^/| /' conftest.$ac_ext >&5
47304
47305bakefile_cv_prog_icc=no
47306
47307fi
ac1cb8d3 47308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47309
47310fi
47311echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47312echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47313 if test "$bakefile_cv_prog_icc" = "yes"; then
47314 PIC_FLAG="-KPIC"
47315 fi
47316 fi
47317 ;;
47318
47319 *-*-solaris2* )
47320 if test "x$GCC" != xyes ; then
47321 SHARED_LD_CC="${CC} -G -o"
47322 SHARED_LD_CXX="${CXX} -G -o"
47323 PIC_FLAG="-KPIC"
47324 fi
47325 ;;
47326
47327 *-*-darwin* )
47328
473276a9
VS
47329D='$'
47330cat <<EOF >shared-ld-sh
a848cd7e
SC
47331#!/bin/sh
47332#-----------------------------------------------------------------------------
47333#-- Name: distrib/mac/shared-ld-sh
47334#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47335#-- Author: Gilles Depeyrot
47336#-- Copyright: (c) 2002 Gilles Depeyrot
47337#-- Licence: any use permitted
47338#-----------------------------------------------------------------------------
47339
47340verbose=0
47341args=""
47342objects=""
47343linking_flag="-dynamiclib"
810b94f0 47344ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47345
473276a9
VS
47346while test ${D}# -gt 0; do
47347 case ${D}1 in
a848cd7e
SC
47348
47349 -v)
47350 verbose=1
47351 ;;
47352
47353 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47354 # collect these options and values
473276a9 47355 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47356 shift
47357 ;;
47358
810b94f0
MW
47359 -s|-Wl,*)
47360 # collect these load args
47361 ldargs="${D}{ldargs} ${D}1"
2113bc77 47362 ;;
810b94f0
MW
47363
47364 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47365 # collect these options
473276a9 47366 args="${D}{args} ${D}1"
a848cd7e
SC
47367 ;;
47368
47369 -dynamiclib|-bundle)
473276a9 47370 linking_flag="${D}1"
a848cd7e
SC
47371 ;;
47372
47373 -*)
473276a9 47374 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47375 exit 1
47376 ;;
47377
47378 *.o | *.a | *.dylib)
47379 # collect object files
473276a9 47380 objects="${D}{objects} ${D}1"
a848cd7e
SC
47381 ;;
47382
47383 *)
473276a9 47384 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47385 exit 1
47386 ;;
47387
47388 esac
47389 shift
47390done
47391
810b94f0
MW
47392status=0
47393
a848cd7e
SC
47394#
47395# Link one module containing all the others
47396#
473276a9 47397if test ${D}{verbose} = 1; then
810b94f0 47398 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47399fi
810b94f0 47400c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47401status=${D}?
a848cd7e
SC
47402
47403#
810b94f0
MW
47404# Link the shared library from the single module created, but only if the
47405# previous command didn't fail:
a848cd7e 47406#
810b94f0
MW
47407if test ${D}{status} = 0; then
47408 if test ${D}{verbose} = 1; then
47409 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47410 fi
47411 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47412 status=${D}?
a848cd7e
SC
47413fi
47414
47415#
47416# Remove intermediate module
47417#
473276a9 47418rm -f master.${D}${D}.o
a848cd7e 47419
810b94f0 47420exit ${D}status
a848cd7e 47421EOF
473276a9 47422
583d6b4b
VZ
47423 chmod +x shared-ld-sh
47424
47425 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47426 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47427
47428
47429 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47430echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47431if test "${bakefile_cv_gcc31+set}" = set; then
47432 echo $ECHO_N "(cached) $ECHO_C" >&6
47433else
47434
47435 cat >conftest.$ac_ext <<_ACEOF
47436/* confdefs.h. */
47437_ACEOF
47438cat confdefs.h >>conftest.$ac_ext
47439cat >>conftest.$ac_ext <<_ACEOF
47440/* end confdefs.h. */
47441
47442int
47443main ()
47444{
47445
47446 #if (__GNUC__ < 3) || \
47447 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47448 This is old gcc
583d6b4b 47449 #endif
a848cd7e 47450
583d6b4b
VZ
47451 ;
47452 return 0;
47453}
47454_ACEOF
47455rm -f conftest.$ac_objext
47456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47457 (eval $ac_compile) 2>conftest.er1
47458 ac_status=$?
47459 grep -v '^ *+' conftest.er1 >conftest.err
47460 rm -f conftest.er1
47461 cat conftest.err >&5
47462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47463 (exit $ac_status); } &&
ca5c6ac3 47464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47466 (eval $ac_try) 2>&5
47467 ac_status=$?
47468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47469 (exit $ac_status); }; } &&
47470 { ac_try='test -s conftest.$ac_objext'
47471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47472 (eval $ac_try) 2>&5
47473 ac_status=$?
47474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47475 (exit $ac_status); }; }; then
47476
47477 bakefile_cv_gcc31=yes
47478
47479else
47480 echo "$as_me: failed program was:" >&5
47481sed 's/^/| /' conftest.$ac_ext >&5
47482
47483
47484 bakefile_cv_gcc31=no
47485
47486
47487fi
47488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47489
47490fi
47491echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47492echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47493 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47494 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47495 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47496 else
47497 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47498 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47499 fi
47500
47bd5406
VZ
47501 if test "x$GCC" == "xyes"; then
47502 PIC_FLAG="-dynamic -fPIC"
47503 fi
47504 if test "x$XLCC" = "xyes"; then
47505 PIC_FLAG="-dynamic -DPIC"
47506 fi
a848cd7e
SC
47507 ;;
47508
47509 *-*-aix* )
f6b50c59 47510 if test "x$GCC" = "xyes"; then
583d6b4b 47511 PIC_FLAG=""
f6b50c59 47512
583d6b4b
VZ
47513 case "${BAKEFILE_HOST}" in
47514 *-*-aix5* )
47515 LD_EXPFULL="-Wl,-bexpfull"
47516 ;;
47517 esac
f6b50c59 47518
583d6b4b
VZ
47519 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47520 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47521 else
47522 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47523set dummy makeC++SharedLib; ac_word=$2
47524echo "$as_me:$LINENO: checking for $ac_word" >&5
47525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47526if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47527 echo $ECHO_N "(cached) $ECHO_C" >&6
47528else
47529 if test -n "$AIX_CXX_LD"; then
47530 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47531else
47532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47533for as_dir in $PATH
47534do
47535 IFS=$as_save_IFS
47536 test -z "$as_dir" && as_dir=.
47537 for ac_exec_ext in '' $ac_executable_extensions; do
47538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47539 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47541 break 2
47542 fi
47543done
47544done
47545
47546 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47547fi
47548fi
47549AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47550if test -n "$AIX_CXX_LD"; then
47551 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47552echo "${ECHO_T}$AIX_CXX_LD" >&6
47553else
47554 echo "$as_me:$LINENO: result: no" >&5
47555echo "${ECHO_T}no" >&6
47556fi
47557
f6b50c59 47558 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47559 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47560 fi
47561 ;;
47562
47563 *-*-beos* )
1e9e8aba
DE
47564 SHARED_LD_CC="${LD} -nostart -o"
47565 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47566 ;;
47567
47568 *-*-irix* )
47569 if test "x$GCC" != "xyes"; then
47570 PIC_FLAG="-KPIC"
47571 fi
47572 ;;
47573
47574 *-*-cygwin* | *-*-mingw32* )
47575 PIC_FLAG=""
1e9e8aba
DE
47576 SHARED_LD_CC="\$(CC) -shared -o"
47577 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47578 WINDOWS_IMPLIB=1
a848cd7e
SC
47579 ;;
47580
47581 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47582 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47583 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47584 PIC_FLAG=""
473276a9
VS
47585
47586D='$'
47587cat <<EOF >dllar.sh
47588#!/bin/sh
47589#
47590# dllar - a tool to build both a .dll and an .a file
47591# from a set of object (.o) files for EMX/OS2.
47592#
47593# Written by Andrew Zabolotny, bit@freya.etu.ru
47594# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47595#
47596# This script will accept a set of files on the command line.
47597# All the public symbols from the .o files will be exported into
47598# a .DEF file, then linker will be run (through gcc) against them to
47599# build a shared library consisting of all given .o files. All libraries
47600# (.a) will be first decompressed into component .o files then act as
47601# described above. You can optionally give a description (-d "description")
47602# which will be put into .DLL. To see the list of accepted options (as well
47603# as command-line format) simply run this program without options. The .DLL
47604# is built to be imported by name (there is no guarantee that new versions
47605# of the library you build will have same ordinals for same symbols).
47606#
47607# dllar is free software; you can redistribute it and/or modify
47608# it under the terms of the GNU General Public License as published by
47609# the Free Software Foundation; either version 2, or (at your option)
47610# any later version.
47611#
47612# dllar is distributed in the hope that it will be useful,
47613# but WITHOUT ANY WARRANTY; without even the implied warranty of
47614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47615# GNU General Public License for more details.
47616#
47617# You should have received a copy of the GNU General Public License
47618# along with dllar; see the file COPYING. If not, write to the Free
47619# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47620# 02111-1307, USA.
47621
47622# To successfuly run this program you will need:
47623# - Current drive should have LFN support (HPFS, ext2, network, etc)
47624# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47625# - gcc
47626# (used to build the .dll)
47627# - emxexp
47628# (used to create .def file from .o files)
47629# - emximp
47630# (used to create .a file from .def file)
47631# - GNU text utilites (cat, sort, uniq)
47632# used to process emxexp output
47633# - GNU file utilities (mv, rm)
47634# - GNU sed
47635# - lxlite (optional, see flag below)
47636# (used for general .dll cleanup)
47637#
47638
47639flag_USE_LXLITE=1;
47640
47641#
47642# helper functions
47643# basnam, variant of basename, which does _not_ remove the path, _iff_
47644# second argument (suffix to remove) is given
47645basnam(){
47646 case ${D}# in
47647 1)
1e9e8aba 47648 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47649 ;;
47650 2)
47651 echo ${D}1 | sed 's/'${D}2'${D}//'
47652 ;;
47653 *)
47654 echo "error in basnam ${D}*"
47655 exit 8
47656 ;;
47657 esac
47658}
47659
47660# Cleanup temporary files and output
47661CleanUp() {
47662 cd ${D}curDir
47663 for i in ${D}inputFiles ; do
47664 case ${D}i in
47665 *!)
47666 rm -rf \`basnam ${D}i !\`
47667 ;;
47668 *)
47669 ;;
47670 esac
47671 done
47672
47673 # Kill result in case of failure as there is just to many stupid make/nmake
47674 # things out there which doesn't do this.
1e9e8aba 47675 if [ ${D}# -eq 0 ]; then
473276a9
VS
47676 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47677 fi
47678}
47679
47680# Print usage and exit script with rc=1.
47681PrintHelp() {
b1d22ded
DE
47682 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47683 echo ' [-name-mangler-script script.sh]'
47684 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47685 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47686 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47687 echo ' [*.o] [*.a]'
473276a9
VS
47688 echo '*> "output_file" should have no extension.'
47689 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47690 echo ' The import library name is derived from this and is set to "name".a,'
47691 echo ' unless overridden by -import'
47692 echo '*> "importlib_name" should have no extension.'
47693 echo ' If it has the .o, or .a extension, it is automatically removed.'
47694 echo ' This name is used as the import library name and may be longer and'
47695 echo ' more descriptive than the DLL name which has to follow the old '
47696 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47697 echo '*> "script.sh may be given to override the output_file name by a'
47698 echo ' different name. It is mainly useful if the regular make process'
47699 echo ' of some package does not take into account OS/2 restriction of'
47700 echo ' DLL name lengths. It takes the importlib name as input and is'
47701 echo ' supposed to procude a shorter name as output. The script should'
47702 echo ' expect to get importlib_name without extension and should produce'
47703 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47704 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47705 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47706 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47707 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47708 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47709 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47710 echo ' If the last character of a symbol is "*", all symbols beginning'
47711 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47712 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47713 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47714 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47715 echo ' C runtime DLLs.'
b1d22ded 47716 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47717 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47718 echo ' unchanged to GCC at the end of command line.'
47719 echo '*> If you create a DLL from a library and you do not specify -o,'
47720 echo ' the basename for DLL and import library will be set to library name,'
47721 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47722 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47723 echo ' library will be renamed into gcc_s.a.'
47724 echo '--------'
47725 echo 'Example:'
47726 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47727 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47728 CleanUp
47729 exit 1
47730}
47731
47732# Execute a command.
47733# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47734# @Uses Whatever CleanUp() uses.
47735doCommand() {
47736 echo "${D}*"
47737 eval ${D}*
47738 rcCmd=${D}?
47739
1e9e8aba 47740 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47741 echo "command failed, exit code="${D}rcCmd
47742 CleanUp
47743 exit ${D}rcCmd
47744 fi
47745}
47746
47747# main routine
47748# setup globals
47749cmdLine=${D}*
47750outFile=""
47751outimpFile=""
47752inputFiles=""
b1d22ded 47753renameScript=""
473276a9
VS
47754description=""
47755CC=gcc.exe
47756CFLAGS="-s -Zcrtdll"
47757EXTRA_CFLAGS=""
47758EXPORT_BY_ORDINALS=0
47759exclude_symbols=""
47760library_flags=""
47761curDir=\`pwd\`
47762curDirS=curDir
47763case ${D}curDirS in
47764*/)
47765 ;;
47766*)
47767 curDirS=${D}{curDirS}"/"
47768 ;;
47769esac
47770# Parse commandline
47771libsToLink=0
b1d22ded 47772omfLinking=0
1e9e8aba 47773while [ ${D}1 ]; do
473276a9
VS
47774 case ${D}1 in
47775 -ord*)
47776 EXPORT_BY_ORDINALS=1;
47777 ;;
47778 -o*)
47779 shift
47780 outFile=${D}1
47781 ;;
47782 -i*)
47783 shift
47784 outimpFile=${D}1
47785 ;;
b1d22ded
DE
47786 -name-mangler-script)
47787 shift
47788 renameScript=${D}1
47789 ;;
473276a9
VS
47790 -d*)
47791 shift
47792 description=${D}1
47793 ;;
47794 -f*)
47795 shift
47796 CFLAGS=${D}1
47797 ;;
47798 -c*)
47799 shift
47800 CC=${D}1
47801 ;;
47802 -h*)
47803 PrintHelp
47804 ;;
47805 -ex*)
47806 shift
47807 exclude_symbols=${D}{exclude_symbols}${D}1" "
47808 ;;
47809 -libf*)
47810 shift
47811 library_flags=${D}{library_flags}${D}1" "
47812 ;;
47813 -nocrt*)
47814 CFLAGS="-s"
47815 ;;
47816 -nolxl*)
47817 flag_USE_LXLITE=0
47818 ;;
47819 -* | /*)
47820 case ${D}1 in
47821 -L* | -l*)
47822 libsToLink=1
47823 ;;
b1d22ded
DE
47824 -Zomf)
47825 omfLinking=1
47826 ;;
473276a9
VS
47827 *)
47828 ;;
47829 esac
47830 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47831 ;;
b1d22ded
DE
47832 *.dll)
47833 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47834 if [ ${D}omfLinking -eq 1 ]; then
47835 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47836 else
47837 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47838 fi
47839 ;;
473276a9
VS
47840 *)
47841 found=0;
1e9e8aba 47842 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47843 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47844 else
47845 for file in ${D}1 ; do
1e9e8aba 47846 if [ -f ${D}file ]; then
473276a9
VS
47847 inputFiles="${D}{inputFiles} ${D}file"
47848 found=1
47849 fi
47850 done
1e9e8aba 47851 if [ ${D}found -eq 0 ]; then
473276a9
VS
47852 echo "ERROR: No file(s) found: "${D}1
47853 exit 8
47854 fi
47855 fi
47856 ;;
47857 esac
47858 shift
47859done # iterate cmdline words
47860
47861#
1e9e8aba 47862if [ -z "${D}inputFiles" ]; then
473276a9
VS
47863 echo "dllar: no input files"
47864 PrintHelp
47865fi
47866
47867# Now extract all .o files from .a files
47868newInputFiles=""
47869for file in ${D}inputFiles ; do
47870 case ${D}file in
47871 *.a | *.lib)
47872 case ${D}file in
47873 *.a)
47874 suffix=".a"
47875 AR="ar"
47876 ;;
47877 *.lib)
47878 suffix=".lib"
47879 AR="emxomfar"
47880 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47881 ;;
47882 *)
47883 ;;
47884 esac
47885 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47886 mkdir ${D}dirname
1e9e8aba 47887 if [ ${D}? -ne 0 ]; then
473276a9
VS
47888 echo "Failed to create subdirectory ./${D}dirname"
47889 CleanUp
47890 exit 8;
47891 fi
47892 # Append '!' to indicate archive
47893 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47894 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47895 cd ${D}curDir
47896 found=0;
47897 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47898 if [ -f ${D}subfile ]; then
473276a9 47899 found=1
1e9e8aba 47900 if [ -s ${D}subfile ]; then
473276a9
VS
47901 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47902 newInputFiles="${D}newInputFiles ${D}subfile"
47903 fi
47904 fi
47905 done
1e9e8aba
DE
47906 if [ ${D}found -eq 0 ]; then
47907 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47908 fi
47909 ;;
47910 *)
47911 newInputFiles="${D}{newInputFiles} ${D}file"
47912 ;;
47913 esac
47914done
47915inputFiles="${D}newInputFiles"
47916
47917# Output filename(s).
47918do_backup=0;
1e9e8aba 47919if [ -z ${D}outFile ]; then
473276a9
VS
47920 do_backup=1;
47921 set outFile ${D}inputFiles; outFile=${D}2
47922fi
47923
47924# If it is an archive, remove the '!' and the '_%' suffixes
47925case ${D}outFile in
47926*_%!)
47927 outFile=\`basnam ${D}outFile _%!\`
47928 ;;
47929*)
47930 ;;
47931esac
47932case ${D}outFile in
47933*.dll)
47934 outFile=\`basnam ${D}outFile .dll\`
47935 ;;
47936*.DLL)
47937 outFile=\`basnam ${D}outFile .DLL\`
47938 ;;
47939*.o)
47940 outFile=\`basnam ${D}outFile .o\`
47941 ;;
47942*.obj)
47943 outFile=\`basnam ${D}outFile .obj\`
47944 ;;
47945*.a)
47946 outFile=\`basnam ${D}outFile .a\`
47947 ;;
47948*.lib)
47949 outFile=\`basnam ${D}outFile .lib\`
47950 ;;
47951*)
47952 ;;
47953esac
47954case ${D}outimpFile in
47955*.a)
47956 outimpFile=\`basnam ${D}outimpFile .a\`
47957 ;;
47958*.lib)
47959 outimpFile=\`basnam ${D}outimpFile .lib\`
47960 ;;
47961*)
47962 ;;
47963esac
1e9e8aba 47964if [ -z ${D}outimpFile ]; then
473276a9
VS
47965 outimpFile=${D}outFile
47966fi
47967defFile="${D}{outFile}.def"
47968arcFile="${D}{outimpFile}.a"
47969arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47970
47971#create ${D}dllFile as something matching 8.3 restrictions,
47972if [ -z ${D}renameScript ] ; then
47973 dllFile="${D}outFile"
47974else
47975 dllFile=\`${D}renameScript ${D}outimpFile\`
47976fi
473276a9 47977
1e9e8aba
DE
47978if [ ${D}do_backup -ne 0 ] ; then
47979 if [ -f ${D}arcFile ] ; then
473276a9
VS
47980 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47981 fi
1e9e8aba 47982 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47983 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47984 fi
47985fi
47986
47987# Extract public symbols from all the object files.
47988tmpdefFile=${D}{defFile}_%
47989rm -f ${D}tmpdefFile
47990for file in ${D}inputFiles ; do
47991 case ${D}file in
47992 *!)
47993 ;;
47994 *)
47995 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47996 ;;
47997 esac
47998done
47999
48000# Create the def file.
48001rm -f ${D}defFile
48002echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48003dllFile="${D}{dllFile}.dll"
48004if [ ! -z ${D}description ]; then
1e9e8aba 48005 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48006fi
48007echo "EXPORTS" >> ${D}defFile
48008
48009doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48010grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48011
48012# Checks if the export is ok or not.
48013for word in ${D}exclude_symbols; do
48014 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48015 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48016done
48017
48018
1e9e8aba
DE
48019if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48020 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48021 sed '
48022 N
48023 : loop
1e9e8aba 48024 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48025 t loop
48026 ' > ${D}{tmpdefFile}%
48027 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48028else
48029 rm -f ${D}{tmpdefFile}%
48030fi
48031cat ${D}tmpdefFile >> ${D}defFile
48032rm -f ${D}tmpdefFile
48033
48034# Do linking, create implib, and apply lxlite.
48035gccCmdl="";
48036for file in ${D}inputFiles ; do
48037 case ${D}file in
48038 *!)
48039 ;;
48040 *)
48041 gccCmdl="${D}gccCmdl ${D}file"
48042 ;;
48043 esac
48044done
48045doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48046touch "${D}{outFile}.dll"
48047
48048doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48049if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48050 add_flags="";
1e9e8aba 48051 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48052 add_flags="-ynd"
48053 fi
48054 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48055fi
48056doCommand "emxomf -s -l ${D}arcFile"
48057
48058# Successful exit.
48059CleanUp 1
48060exit 0
48061EOF
48062
48063 chmod +x dllar.sh
a848cd7e
SC
48064 ;;
48065
1e9e8aba 48066 powerpc-apple-macos* | \
0ad5d837 48067 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48068 *-*-sunos4* | \
48069 *-*-osf* | \
48070 *-*-dgux5* | \
47a7e797
MW
48071 *-*-sysv5* | \
48072 *-pc-msdosdjgpp )
a848cd7e
SC
48073 ;;
48074
48075 *)
3ecd9f92 48076 esac
a848cd7e 48077
2057db16
VS
48078 if test "x$PIC_FLAG" != "x" ; then
48079 PIC_FLAG="$PIC_FLAG -DPIC"
48080 fi
48081
a848cd7e
SC
48082 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48083 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48084 fi
48085 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48086 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48087 fi
48088
48089
48090
48091
48092
48093
48094
48095
810b94f0 48096
a848cd7e
SC
48097 USE_SOVERSION=0
48098 USE_SOVERLINUX=0
48099 USE_SOVERSOLARIS=0
810b94f0 48100 USE_SOVERCYGWIN=0
a848cd7e
SC
48101 USE_SOSYMLINKS=0
48102 USE_MACVERSION=0
48103 SONAME_FLAG=
48104
48105 case "${BAKEFILE_HOST}" in
0ad5d837 48106 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48107 SONAME_FLAG="-Wl,-soname,"
48108 USE_SOVERSION=1
48109 USE_SOVERLINUX=1
48110 USE_SOSYMLINKS=1
48111 ;;
48112
a848cd7e
SC
48113 *-*-solaris2* )
48114 SONAME_FLAG="-h "
48115 USE_SOVERSION=1
48116 USE_SOVERSOLARIS=1
48117 USE_SOSYMLINKS=1
48118 ;;
48119
48120 *-*-darwin* )
48121 USE_MACVERSION=1
48122 USE_SOVERSION=1
48123 USE_SOSYMLINKS=1
48124 ;;
810b94f0
MW
48125
48126 *-*-cygwin* )
48127 USE_SOVERSION=1
48128 USE_SOVERCYGWIN=1
48129 ;;
a848cd7e
SC
48130 esac
48131
48132
48133
48134
48135
48136
48137
48138
48139
810b94f0 48140
f10e38c4
VZ
48141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48142if test "${enable_dependency_tracking+set}" = set; then
48143 enableval="$enable_dependency_tracking"
48144 bk_use_trackdeps="$enableval"
48145fi;
48146
a848cd7e
SC
48147 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48148echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48149
f10e38c4
VZ
48150 if test "x$bk_use_trackdeps" = "xno" ; then
48151 DEPS_TRACKING=0
48152 echo "$as_me:$LINENO: result: disabled" >&5
48153echo "${ECHO_T}disabled" >&6
48154 else
48155 DEPS_TRACKING=1
48156
48157 if test "x$GCC" = "xyes"; then
48158 DEPSMODE=gcc
48159 case "${BAKEFILE_HOST}" in
48160 *-*-darwin* )
48161 DEPSFLAG="-no-cpp-precomp -MMD"
48162 ;;
48163 * )
48164 DEPSFLAG="-MMD"
48165 ;;
48166 esac
48167 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48168echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48169 elif test "x$MWCC" = "xyes"; then
48170 DEPSMODE=mwcc
48171 DEPSFLAG="-MM"
48172 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48173echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48174 elif test "x$SUNCC" = "xyes"; then
48175 DEPSMODE=unixcc
48176 DEPSFLAG="-xM1"
48177 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48178echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48179 elif test "x$SGICC" = "xyes"; then
48180 DEPSMODE=unixcc
48181 DEPSFLAG="-M"
48182 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48183echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48184 elif test "x$HPCC" = "xyes"; then
48185 DEPSMODE=unixcc
48186 DEPSFLAG="+make"
48187 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48188echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48189 elif test "x$COMPAQCC" = "xyes"; then
48190 DEPSMODE=gcc
48191 DEPSFLAG="-MD"
48192 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48193echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48194 else
48195 DEPS_TRACKING=0
48196 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48197echo "${ECHO_T}none" >&6
f10e38c4 48198 fi
a848cd7e 48199
f10e38c4 48200 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48201
48202D='$'
48203cat <<EOF >bk-deps
a848cd7e
SC
48204#!/bin/sh
48205
48206# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48207# script. It is used to track C/C++ files dependencies in portable way.
48208#
48209# Permission is given to use this file in any way.
48210
473276a9 48211DEPSMODE=${DEPSMODE}
a848cd7e 48212DEPSDIR=.deps
0ad5d837 48213DEPSFLAG="${DEPSFLAG}"
a848cd7e 48214
473276a9 48215mkdir -p ${D}DEPSDIR
a848cd7e 48216
473276a9 48217if test ${D}DEPSMODE = gcc ; then
0ad5d837 48218 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48219 status=${D}?
48220 if test ${D}{status} != 0 ; then
48221 exit ${D}{status}
a848cd7e
SC
48222 fi
48223 # move created file to the location we want it in:
473276a9
VS
48224 while test ${D}# -gt 0; do
48225 case "${D}1" in
a848cd7e
SC
48226 -o )
48227 shift
473276a9 48228 objfile=${D}1
a848cd7e
SC
48229 ;;
48230 -* )
48231 ;;
48232 * )
473276a9 48233 srcfile=${D}1
a848cd7e
SC
48234 ;;
48235 esac
48236 shift
48237 done
1e9e8aba
DE
48238 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48239 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48240 if test -f ${D}depfile ; then
48241 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48242 rm -f ${D}depfile
a848cd7e 48243 else
a1aa0349 48244 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48245 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48246 if test ! -f ${D}depfile ; then
48247 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48248 depfile="${D}objfile.d"
48249 fi
473276a9
VS
48250 if test -f ${D}depfile ; then
48251 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48252 rm -f ${D}depfile
a848cd7e
SC
48253 fi
48254 fi
48255 exit 0
81f90336 48256elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48257 ${D}* || exit ${D}?
81f90336
MW
48258 # Run mwcc again with -MM and redirect into the dep file we want
48259 # NOTE: We can't use shift here because we need ${D}* to be valid
48260 prevarg=
48261 for arg in ${D}* ; do
48262 if test "${D}prevarg" = "-o"; then
48263 objfile=${D}arg
48264 else
48265 case "${D}arg" in
48266 -* )
48267 ;;
48268 * )
48269 srcfile=${D}arg
48270 ;;
48271 esac
48272 fi
48273 prevarg="${D}arg"
48274 done
0ad5d837 48275 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48276 exit 0
0ad5d837 48277elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48278 ${D}* || exit ${D}?
a9e5b1f0
MW
48279 # Run compiler again with deps flag and redirect into the dep file.
48280 # It doesn't work if the '-o FILE' option is used, but without it the
48281 # dependency file will contain the wrong name for the object. So it is
48282 # removed from the command line, and the dep file is fixed with sed.
48283 cmd=""
48284 while test ${D}# -gt 0; do
48285 case "${D}1" in
48286 -o )
48287 shift
48288 objfile=${D}1
48289 ;;
48290 * )
48291 eval arg${D}#=\\${D}1
48292 cmd="${D}cmd \\${D}arg${D}#"
48293 ;;
48294 esac
48295 shift
48296 done
0ad5d837 48297 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48298 exit 0
a848cd7e 48299else
473276a9
VS
48300 ${D}*
48301 exit ${D}?
a848cd7e
SC
48302fi
48303EOF
473276a9 48304
f10e38c4
VZ
48305 chmod +x bk-deps
48306 fi
a848cd7e
SC
48307 fi
48308
48309
48310
48311
a848cd7e
SC
48312 case ${BAKEFILE_HOST} in
48313 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48314 if test -n "$ac_tool_prefix"; then
48315 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48316set dummy ${ac_tool_prefix}windres; ac_word=$2
48317echo "$as_me:$LINENO: checking for $ac_word" >&5
48318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48319if test "${ac_cv_prog_WINDRES+set}" = set; then
48320 echo $ECHO_N "(cached) $ECHO_C" >&6
48321else
48322 if test -n "$WINDRES"; then
48323 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48324else
48325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48326for as_dir in $PATH
48327do
48328 IFS=$as_save_IFS
48329 test -z "$as_dir" && as_dir=.
48330 for ac_exec_ext in '' $ac_executable_extensions; do
48331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48332 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48334 break 2
48335 fi
48336done
48337done
48338
48339fi
48340fi
48341WINDRES=$ac_cv_prog_WINDRES
48342if test -n "$WINDRES"; then
48343 echo "$as_me:$LINENO: result: $WINDRES" >&5
48344echo "${ECHO_T}$WINDRES" >&6
48345else
48346 echo "$as_me:$LINENO: result: no" >&5
48347echo "${ECHO_T}no" >&6
48348fi
48349
48350fi
48351if test -z "$ac_cv_prog_WINDRES"; then
48352 ac_ct_WINDRES=$WINDRES
48353 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48354set dummy windres; ac_word=$2
48355echo "$as_me:$LINENO: checking for $ac_word" >&5
48356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48357if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48358 echo $ECHO_N "(cached) $ECHO_C" >&6
48359else
8ced02f6
DE
48360 if test -n "$ac_ct_WINDRES"; then
48361 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48362else
48363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48364for as_dir in $PATH
48365do
48366 IFS=$as_save_IFS
48367 test -z "$as_dir" && as_dir=.
48368 for ac_exec_ext in '' $ac_executable_extensions; do
48369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48370 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48372 break 2
48373 fi
48374done
48375done
48376
a848cd7e
SC
48377fi
48378fi
8ced02f6
DE
48379ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48380if test -n "$ac_ct_WINDRES"; then
48381 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48382echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48383else
48384 echo "$as_me:$LINENO: result: no" >&5
48385echo "${ECHO_T}no" >&6
48386fi
48387
8ced02f6
DE
48388 WINDRES=$ac_ct_WINDRES
48389else
48390 WINDRES="$ac_cv_prog_WINDRES"
48391fi
48392
a848cd7e
SC
48393 ;;
48394
1e9e8aba 48395 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48396 # Extract the first word of "Rez", so it can be a program name with args.
48397set dummy Rez; ac_word=$2
48398echo "$as_me:$LINENO: checking for $ac_word" >&5
48399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48400if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48401 echo $ECHO_N "(cached) $ECHO_C" >&6
48402else
8ced02f6
DE
48403 if test -n "$REZ"; then
48404 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48405else
48406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48407for as_dir in $PATH
48408do
48409 IFS=$as_save_IFS
48410 test -z "$as_dir" && as_dir=.
48411 for ac_exec_ext in '' $ac_executable_extensions; do
48412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48413 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48415 break 2
48416 fi
48417done
48418done
48419
8ced02f6 48420 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48421fi
48422fi
8ced02f6
DE
48423REZ=$ac_cv_prog_REZ
48424if test -n "$REZ"; then
48425 echo "$as_me:$LINENO: result: $REZ" >&5
48426echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48427else
48428 echo "$as_me:$LINENO: result: no" >&5
48429echo "${ECHO_T}no" >&6
48430fi
48431
48432 # Extract the first word of "SetFile", so it can be a program name with args.
48433set dummy SetFile; ac_word=$2
48434echo "$as_me:$LINENO: checking for $ac_word" >&5
48435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48436if test "${ac_cv_prog_SETFILE+set}" = set; then
48437 echo $ECHO_N "(cached) $ECHO_C" >&6
48438else
48439 if test -n "$SETFILE"; then
48440 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48441else
48442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48443for as_dir in $PATH
48444do
48445 IFS=$as_save_IFS
48446 test -z "$as_dir" && as_dir=.
48447 for ac_exec_ext in '' $ac_executable_extensions; do
48448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48449 ac_cv_prog_SETFILE="SetFile"
48450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48451 break 2
48452 fi
48453done
48454done
48455
48456 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48457fi
48458fi
48459SETFILE=$ac_cv_prog_SETFILE
48460if test -n "$SETFILE"; then
48461 echo "$as_me:$LINENO: result: $SETFILE" >&5
48462echo "${ECHO_T}$SETFILE" >&6
48463else
48464 echo "$as_me:$LINENO: result: no" >&5
48465echo "${ECHO_T}no" >&6
48466fi
48467
48468 ;;
48469 esac
48470
48471
48472
48473
48474
8ced02f6 48475
f10e38c4 48476 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48477
dcc1b6ad 48478
f10e38c4 48479BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48480
646b6ec1 48481
74b84332 48482
a848cd7e
SC
48483 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48484if test "${enable_precomp_headers+set}" = set; then
48485 enableval="$enable_precomp_headers"
48486 bk_use_pch="$enableval"
48487fi;
48488
48489 GCC_PCH=0
f10e38c4
VZ
48490 ICC_PCH=0
48491 USE_PCH=0
a848cd7e 48492
5c60e845
MW
48493 case ${BAKEFILE_HOST} in
48494 *-*-cygwin* )
48495 bk_use_pch="no"
48496 ;;
48497 esac
48498
a848cd7e
SC
48499 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48500 if test "x$GCC" = "xyes"; then
48501 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48502echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48503 cat >conftest.$ac_ext <<_ACEOF
48504/* confdefs.h. */
48505_ACEOF
48506cat confdefs.h >>conftest.$ac_ext
48507cat >>conftest.$ac_ext <<_ACEOF
48508/* end confdefs.h. */
48509
48510int
48511main ()
48512{
48513
48514 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48515 There is no PCH support
a848cd7e
SC
48516 #endif
48517 #if (__GNUC__ < 3)
e5efa97e 48518 There is no PCH support
a848cd7e
SC
48519 #endif
48520 #if (__GNUC__ == 3) && \
48521 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48522 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48523 ( defined(__INTEL_COMPILER) )
e5efa97e 48524 There is no PCH support
a848cd7e
SC
48525 #endif
48526
48527 ;
48528 return 0;
48529}
48530_ACEOF
48531rm -f conftest.$ac_objext
48532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48533 (eval $ac_compile) 2>conftest.er1
a848cd7e 48534 ac_status=$?
ac1cb8d3
VS
48535 grep -v '^ *+' conftest.er1 >conftest.err
48536 rm -f conftest.er1
48537 cat conftest.err >&5
a848cd7e
SC
48538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48539 (exit $ac_status); } &&
ca5c6ac3 48540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48542 (eval $ac_try) 2>&5
48543 ac_status=$?
48544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48545 (exit $ac_status); }; } &&
48546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48548 (eval $ac_try) 2>&5
48549 ac_status=$?
48550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48551 (exit $ac_status); }; }; then
48552
48553 echo "$as_me:$LINENO: result: yes" >&5
48554echo "${ECHO_T}yes" >&6
a848cd7e
SC
48555 GCC_PCH=1
48556
48557else
48558 echo "$as_me: failed program was:" >&5
48559sed 's/^/| /' conftest.$ac_ext >&5
48560
48561
f10e38c4
VZ
48562 cat >conftest.$ac_ext <<_ACEOF
48563/* confdefs.h. */
48564_ACEOF
48565cat confdefs.h >>conftest.$ac_ext
48566cat >>conftest.$ac_ext <<_ACEOF
48567/* end confdefs.h. */
48568
48569int
48570main ()
48571{
48572
48573 #if !defined(__INTEL_COMPILER) || \
48574 (__INTEL_COMPILER < 800)
e5efa97e 48575 There is no PCH support
f10e38c4
VZ
48576 #endif
48577
48578 ;
48579 return 0;
48580}
48581_ACEOF
48582rm -f conftest.$ac_objext
48583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48584 (eval $ac_compile) 2>conftest.er1
48585 ac_status=$?
48586 grep -v '^ *+' conftest.er1 >conftest.err
48587 rm -f conftest.er1
48588 cat conftest.err >&5
48589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48590 (exit $ac_status); } &&
ca5c6ac3 48591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48593 (eval $ac_try) 2>&5
48594 ac_status=$?
48595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48596 (exit $ac_status); }; } &&
48597 { ac_try='test -s conftest.$ac_objext'
48598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48599 (eval $ac_try) 2>&5
48600 ac_status=$?
48601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48602 (exit $ac_status); }; }; then
48603
48604 echo "$as_me:$LINENO: result: yes" >&5
48605echo "${ECHO_T}yes" >&6
48606 ICC_PCH=1
48607
48608else
48609 echo "$as_me: failed program was:" >&5
48610sed 's/^/| /' conftest.$ac_ext >&5
48611
48612
48613 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48614echo "${ECHO_T}no" >&6
48615
48616fi
ac1cb8d3 48617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48618
48619fi
48620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48621 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48622 USE_PCH=1
1e9e8aba
DE
48623
48624D='$'
48625cat <<EOF >bk-make-pch
a848cd7e
SC
48626#!/bin/sh
48627
48628# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48629# script. It is used to generated precompiled headers.
48630#
48631# Permission is given to use this file in any way.
48632
1e9e8aba
DE
48633outfile="${D}{1}"
48634header="${D}{2}"
a848cd7e
SC
48635shift
48636shift
48637
f10e38c4
VZ
48638compiler=""
48639headerfile=""
48640
1e9e8aba 48641while test ${D}{#} -gt 0; do
f10e38c4 48642 add_to_cmdline=1
1e9e8aba 48643 case "${D}{1}" in
a848cd7e 48644 -I* )
1e9e8aba
DE
48645 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48646 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48647 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48648 fi
48649 ;;
f10e38c4
VZ
48650 -use-pch|-use_pch )
48651 shift
48652 add_to_cmdline=0
48653 ;;
a848cd7e 48654 esac
f10e38c4
VZ
48655 if test ${D}add_to_cmdline = 1 ; then
48656 compiler="${D}{compiler} ${D}{1}"
48657 fi
a848cd7e
SC
48658 shift
48659done
48660
1e9e8aba 48661if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48662 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48663else
1e9e8aba
DE
48664 if test -f ${D}{outfile} ; then
48665 rm -f ${D}{outfile}
a848cd7e 48666 else
1e9e8aba 48667 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48668 fi
1e9e8aba 48669 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48670 mkdir -p .deps
f10e38c4
VZ
48671 if test "x${GCC_PCH}" = "x1" ; then
48672 # can do this because gcc is >= 3.4:
48673 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48674 elif test "x${ICC_PCH}" = "x1" ; then
48675 filename=pch_gen-${D}${D}
48676 file=${D}{filename}.c
48677 dfile=${D}{filename}.d
48678 cat > ${D}file <<EOT
48679#include "${D}header"
48680EOT
48681 # using -MF icc complains about differing command lines in creation/use
48682 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48683 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48684 rm -f ${D}file ${D}dfile ${D}{filename}.o
48685 fi
1e9e8aba 48686 exit ${D}{?}
a848cd7e
SC
48687fi
48688EOF
1e9e8aba 48689
a848cd7e
SC
48690 chmod +x bk-make-pch
48691 fi
48692 fi
48693 fi
48694
48695
48696
f10e38c4 48697
a848cd7e
SC
48698 COND_BUILD_DEBUG="#"
48699 if test "x$BUILD" = "xdebug" ; then
48700 COND_BUILD_DEBUG=""
48701 fi
48702
48703 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48704 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48705 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48706 fi
48707
48708 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48709 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48710 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48711 fi
48712
48713 COND_BUILD_DEBUG_UNICODE_0="#"
48714 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48715 COND_BUILD_DEBUG_UNICODE_0=""
48716 fi
48717
48718 COND_BUILD_DEBUG_UNICODE_1="#"
48719 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48720 COND_BUILD_DEBUG_UNICODE_1=""
48721 fi
48722
48723 COND_BUILD_RELEASE="#"
48724 if test "x$BUILD" = "xrelease" ; then
48725 COND_BUILD_RELEASE=""
48726 fi
48727
48728 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48729 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48730 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48731 fi
48732
48733 COND_BUILD_RELEASE_UNICODE_0="#"
48734 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48735 COND_BUILD_RELEASE_UNICODE_0=""
48736 fi
48737
48738 COND_BUILD_RELEASE_UNICODE_1="#"
48739 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48740 COND_BUILD_RELEASE_UNICODE_1=""
48741 fi
48742
48743 COND_DEBUG_FLAG_1="#"
48744 if test "x$DEBUG_FLAG" = "x1" ; then
48745 COND_DEBUG_FLAG_1=""
48746 fi
48747
48748 COND_DEBUG_INFO_0="#"
48749 if test "x$DEBUG_INFO" = "x0" ; then
48750 COND_DEBUG_INFO_0=""
48751 fi
48752
48753 COND_DEBUG_INFO_1="#"
48754 if test "x$DEBUG_INFO" = "x1" ; then
48755 COND_DEBUG_INFO_1=""
48756 fi
48757
48758 COND_DEPS_TRACKING_0="#"
48759 if test "x$DEPS_TRACKING" = "x0" ; then
48760 COND_DEPS_TRACKING_0=""
48761 fi
48762
48763 COND_DEPS_TRACKING_1="#"
48764 if test "x$DEPS_TRACKING" = "x1" ; then
48765 COND_DEPS_TRACKING_1=""
48766 fi
48767
48768 COND_GCC_PCH_1="#"
48769 if test "x$GCC_PCH" = "x1" ; then
48770 COND_GCC_PCH_1=""
48771 fi
48772
f10e38c4
VZ
48773 COND_ICC_PCH_1="#"
48774 if test "x$ICC_PCH" = "x1" ; then
48775 COND_ICC_PCH_1=""
48776 fi
48777
a848cd7e
SC
48778 COND_MONOLITHIC_0="#"
48779 if test "x$MONOLITHIC" = "x0" ; then
48780 COND_MONOLITHIC_0=""
48781 fi
48782
48783 COND_MONOLITHIC_0_SHARED_0="#"
48784 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48785 COND_MONOLITHIC_0_SHARED_0=""
48786 fi
48787
3f60522a
JS
48788 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48789 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48790 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48791 fi
48792
a848cd7e
SC
48793 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48794 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48795 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48796 fi
48797
90970d69
DE
48798 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48799 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48800 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48801 fi
48802
f10e38c4
VZ
48803 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48804 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48805 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48806 fi
48807
a848cd7e
SC
48808 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48809 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48810 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48811 fi
48812
6671c68b
VZ
48813 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48814 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48815 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48816 fi
48817
a848cd7e
SC
48818 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48819 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48820 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48821 fi
48822
8b6682b9
JS
48823 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48824 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48825 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48826 fi
48827
ceec2216
RL
48828 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48829 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48830 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48831 fi
48832
a848cd7e
SC
48833 COND_MONOLITHIC_0_SHARED_1="#"
48834 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48835 COND_MONOLITHIC_0_SHARED_1=""
48836 fi
48837
3f60522a
JS
48838 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48839 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48841 fi
48842
a848cd7e
SC
48843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48844 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48846 fi
48847
90970d69
DE
48848 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48849 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48850 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48851 fi
48852
f10e38c4
VZ
48853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48854 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48856 fi
48857
a848cd7e
SC
48858 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48859 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48861 fi
48862
6671c68b
VZ
48863 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48864 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48865 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48866 fi
48867
a848cd7e
SC
48868 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48869 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48870 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48871 fi
48872
8b6682b9
JS
48873 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48874 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48875 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48876 fi
48877
ceec2216
RL
48878 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48879 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48880 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48881 fi
48882
e5efa97e
VZ
48883 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48884 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48885 COND_MONOLITHIC_0_USE_MEDIA_1=""
48886 fi
48887
a848cd7e
SC
48888 COND_MONOLITHIC_0_USE_ODBC_1="#"
48889 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48890 COND_MONOLITHIC_0_USE_ODBC_1=""
48891 fi
48892
48893 COND_MONOLITHIC_1="#"
48894 if test "x$MONOLITHIC" = "x1" ; then
48895 COND_MONOLITHIC_1=""
48896 fi
48897
48898 COND_MONOLITHIC_1_SHARED_0="#"
48899 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48900 COND_MONOLITHIC_1_SHARED_0=""
48901 fi
48902
48903 COND_MONOLITHIC_1_SHARED_1="#"
48904 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48905 COND_MONOLITHIC_1_SHARED_1=""
48906 fi
48907
48908 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48909 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48910 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48911 fi
48912
48913 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48914 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48915 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48916 fi
48917
eb730a0c
JS
48918 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48919 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48920 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48921 fi
48922
a848cd7e
SC
48923 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48924 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48925 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48926 fi
48927
48928 COND_PLATFORM_MACOSX_1="#"
48929 if test "x$PLATFORM_MACOSX" = "x1" ; then
48930 COND_PLATFORM_MACOSX_1=""
48931 fi
48932
a30f955f
VS
48933 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48934 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48935 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48936 fi
48937
a848cd7e
SC
48938 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48939 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48940 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48941 fi
48942
48943 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48944 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48945 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48946 fi
48947
48948 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48949 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48950 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48951 fi
48952
fc480dc1
DE
48953 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48954 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48955 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48956 fi
48957
1e9e8aba
DE
48958 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48959 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48960 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48961 fi
48962
ebee3cd0
VS
48963 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48964 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48965 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48966 fi
48967
48968 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48969 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48970 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48971 fi
48972
a848cd7e
SC
48973 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48974 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48975 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48976 fi
48977
48978 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48979 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48980 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48981 fi
48982
b48a2016
DE
48983 COND_PLATFORM_MACOS_1="#"
48984 if test "x$PLATFORM_MACOS" = "x1" ; then
48985 COND_PLATFORM_MACOS_1=""
48986 fi
48987
083508af
MW
48988 COND_PLATFORM_MAC_1="#"
48989 if test "x$PLATFORM_MAC" = "x1" ; then
48990 COND_PLATFORM_MAC_1=""
48991 fi
48992
e5efa97e
VZ
48993 COND_PLATFORM_MSDOS_0="#"
48994 if test "x$PLATFORM_MSDOS" = "x0" ; then
48995 COND_PLATFORM_MSDOS_0=""
48996 fi
48997
83d8eb47
MW
48998 COND_PLATFORM_MSDOS_1="#"
48999 if test "x$PLATFORM_MSDOS" = "x1" ; then
49000 COND_PLATFORM_MSDOS_1=""
49001 fi
49002
a848cd7e
SC
49003 COND_PLATFORM_OS2_1="#"
49004 if test "x$PLATFORM_OS2" = "x1" ; then
49005 COND_PLATFORM_OS2_1=""
49006 fi
49007
49008 COND_PLATFORM_UNIX_0="#"
49009 if test "x$PLATFORM_UNIX" = "x0" ; then
49010 COND_PLATFORM_UNIX_0=""
49011 fi
49012
49013 COND_PLATFORM_UNIX_1="#"
49014 if test "x$PLATFORM_UNIX" = "x1" ; then
49015 COND_PLATFORM_UNIX_1=""
49016 fi
49017
49018 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49019 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49020 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49021 fi
49022
49023 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49024 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49025 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49026 fi
49027
49028 COND_PLATFORM_WIN32_0="#"
49029 if test "x$PLATFORM_WIN32" = "x0" ; then
49030 COND_PLATFORM_WIN32_0=""
49031 fi
49032
49033 COND_PLATFORM_WIN32_1="#"
49034 if test "x$PLATFORM_WIN32" = "x1" ; then
49035 COND_PLATFORM_WIN32_1=""
49036 fi
49037
49038 COND_SHARED_0="#"
49039 if test "x$SHARED" = "x0" ; then
49040 COND_SHARED_0=""
49041 fi
49042
083508af
MW
49043 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49044 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49045 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49046 fi
49047
49048 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49049 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49050 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49051 fi
49052
49053 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49054 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49055 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49056 fi
49057
a848cd7e
SC
49058 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49059 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49060 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49061 fi
49062
49063 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49064 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49065 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49066 fi
49067
49068 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49069 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49070 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49071 fi
49072
49073 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49074 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49075 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49076 fi
49077
083508af
MW
49078 COND_SHARED_0_USE_XRC_1="#"
49079 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49080 COND_SHARED_0_USE_XRC_1=""
49081 fi
49082
a848cd7e
SC
49083 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49084 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49085 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49086 fi
49087
49088 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49089 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49090 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49091 fi
49092
49093 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49094 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49095 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49096 fi
49097
49098 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49099 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49100 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49101 fi
49102
49103 COND_SHARED_1="#"
49104 if test "x$SHARED" = "x1" ; then
49105 COND_SHARED_1=""
49106 fi
49107
49108 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49109 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49110 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49111 fi
49112
083508af
MW
49113 COND_SHARED_1_USE_XRC_1="#"
49114 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49115 COND_SHARED_1_USE_XRC_1=""
49116 fi
49117
a30f955f
VS
49118 COND_TOOLKIT_="#"
49119 if test "x$TOOLKIT" = "x" ; then
49120 COND_TOOLKIT_=""
49121 fi
49122
a848cd7e
SC
49123 COND_TOOLKIT_COCOA="#"
49124 if test "x$TOOLKIT" = "xCOCOA" ; then
49125 COND_TOOLKIT_COCOA=""
49126 fi
49127
a49baeab
DE
49128 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49129 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49130 COND_TOOLKIT_COCOA_USE_GUI_1=""
49131 fi
49132
a848cd7e
SC
49133 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49134 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49135 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49136 fi
49137
b3c86150
VS
49138 COND_TOOLKIT_DFB="#"
49139 if test "x$TOOLKIT" = "xDFB" ; then
49140 COND_TOOLKIT_DFB=""
49141 fi
49142
49143 COND_TOOLKIT_DFB_USE_GUI_1="#"
49144 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49145 COND_TOOLKIT_DFB_USE_GUI_1=""
49146 fi
49147
a848cd7e
SC
49148 COND_TOOLKIT_GTK="#"
49149 if test "x$TOOLKIT" = "xGTK" ; then
49150 COND_TOOLKIT_GTK=""
49151 fi
49152
d044deea
MW
49153 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49154 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49155 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49156 fi
49157
49158 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49159 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49160 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49161 fi
49162
49163 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49164 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49165 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49166 fi
49167
49168 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49169 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49170 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49171 fi
49172
49173 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49174 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49175 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49176 fi
49177
49178 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49179 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49180 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49181 fi
49182
a848cd7e
SC
49183 COND_TOOLKIT_GTK_USE_GUI_1="#"
49184 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49185 COND_TOOLKIT_GTK_USE_GUI_1=""
49186 fi
49187
a848cd7e
SC
49188 COND_TOOLKIT_MAC="#"
49189 if test "x$TOOLKIT" = "xMAC" ; then
49190 COND_TOOLKIT_MAC=""
49191 fi
49192
49193 COND_TOOLKIT_MAC_USE_GUI_1="#"
49194 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49195 COND_TOOLKIT_MAC_USE_GUI_1=""
49196 fi
49197
49198 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49199 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49200 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49201 fi
49202
49203 COND_TOOLKIT_MGL="#"
49204 if test "x$TOOLKIT" = "xMGL" ; then
49205 COND_TOOLKIT_MGL=""
49206 fi
49207
49208 COND_TOOLKIT_MGL_USE_GUI_1="#"
49209 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49210 COND_TOOLKIT_MGL_USE_GUI_1=""
49211 fi
49212
49213 COND_TOOLKIT_MOTIF="#"
49214 if test "x$TOOLKIT" = "xMOTIF" ; then
49215 COND_TOOLKIT_MOTIF=""
49216 fi
49217
49218 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49219 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49220 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49221 fi
49222
49223 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49224 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49225 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49226 fi
49227
49228 COND_TOOLKIT_MSW="#"
49229 if test "x$TOOLKIT" = "xMSW" ; then
49230 COND_TOOLKIT_MSW=""
49231 fi
49232
49233 COND_TOOLKIT_MSW_USE_GUI_1="#"
49234 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49235 COND_TOOLKIT_MSW_USE_GUI_1=""
49236 fi
49237
49238 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49239 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49240 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49241 fi
49242
0ee4059d
DE
49243 COND_TOOLKIT_MSW_WXUNIV_0="#"
49244 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49245 COND_TOOLKIT_MSW_WXUNIV_0=""
49246 fi
49247
a848cd7e
SC
49248 COND_TOOLKIT_PM="#"
49249 if test "x$TOOLKIT" = "xPM" ; then
49250 COND_TOOLKIT_PM=""
49251 fi
49252
49253 COND_TOOLKIT_PM_USE_GUI_1="#"
49254 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49255 COND_TOOLKIT_PM_USE_GUI_1=""
49256 fi
49257
49258 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49259 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49260 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49261 fi
49262
3fd9c298
DE
49263 COND_TOOLKIT_WINCE="#"
49264 if test "x$TOOLKIT" = "xWINCE" ; then
49265 COND_TOOLKIT_WINCE=""
49266 fi
49267
49268 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49269 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49270 COND_TOOLKIT_WINCE_USE_GUI_1=""
49271 fi
49272
49273 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49274 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49275 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49276 fi
49277
0ee4059d
DE
49278 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49279 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49280 COND_TOOLKIT_WINCE_WXUNIV_0=""
49281 fi
49282
a848cd7e
SC
49283 COND_TOOLKIT_X11="#"
49284 if test "x$TOOLKIT" = "xX11" ; then
49285 COND_TOOLKIT_X11=""
49286 fi
49287
49288 COND_TOOLKIT_X11_USE_GUI_1="#"
49289 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49290 COND_TOOLKIT_X11_USE_GUI_1=""
49291 fi
49292
49293 COND_UNICODE_1="#"
49294 if test "x$UNICODE" = "x1" ; then
49295 COND_UNICODE_1=""
49296 fi
49297
49298 COND_USE_EXCEPTIONS_0="#"
49299 if test "x$USE_EXCEPTIONS" = "x0" ; then
49300 COND_USE_EXCEPTIONS_0=""
49301 fi
49302
49303 COND_USE_EXCEPTIONS_1="#"
49304 if test "x$USE_EXCEPTIONS" = "x1" ; then
49305 COND_USE_EXCEPTIONS_1=""
49306 fi
49307
49308 COND_USE_GUI_0="#"
49309 if test "x$USE_GUI" = "x0" ; then
49310 COND_USE_GUI_0=""
49311 fi
49312
49313 COND_USE_GUI_1="#"
49314 if test "x$USE_GUI" = "x1" ; then
49315 COND_USE_GUI_1=""
49316 fi
49317
49318 COND_USE_GUI_1_WXUNIV_0="#"
49319 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49320 COND_USE_GUI_1_WXUNIV_0=""
49321 fi
49322
49323 COND_USE_GUI_1_WXUNIV_1="#"
49324 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49325 COND_USE_GUI_1_WXUNIV_1=""
49326 fi
49327
49328 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49329 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49330 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49331 fi
49332
49333 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49334 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49335 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49336 fi
49337
49338 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49339 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49340 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49341 fi
49342
083508af
MW
49343 COND_USE_ODBC_1="#"
49344 if test "x$USE_ODBC" = "x1" ; then
49345 COND_USE_ODBC_1=""
49346 fi
49347
49348 COND_USE_OPENGL_1="#"
49349 if test "x$USE_OPENGL" = "x1" ; then
49350 COND_USE_OPENGL_1=""
49351 fi
49352
f10e38c4
VZ
49353 COND_USE_PCH_1="#"
49354 if test "x$USE_PCH" = "x1" ; then
49355 COND_USE_PCH_1=""
49356 fi
49357
a848cd7e
SC
49358 COND_USE_PLUGINS_0="#"
49359 if test "x$USE_PLUGINS" = "x0" ; then
49360 COND_USE_PLUGINS_0=""
49361 fi
49362
0b78747f
MW
49363 COND_USE_RTTI_0="#"
49364 if test "x$USE_RTTI" = "x0" ; then
49365 COND_USE_RTTI_0=""
49366 fi
49367
49368 COND_USE_RTTI_1="#"
49369 if test "x$USE_RTTI" = "x1" ; then
49370 COND_USE_RTTI_1=""
49371 fi
49372
a848cd7e
SC
49373 COND_USE_SOSYMLINKS_1="#"
49374 if test "x$USE_SOSYMLINKS" = "x1" ; then
49375 COND_USE_SOSYMLINKS_1=""
49376 fi
49377
eb730a0c
JS
49378 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49379 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49380 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49381 fi
49382
a848cd7e
SC
49383 COND_USE_SOVERLINUX_1="#"
49384 if test "x$USE_SOVERLINUX" = "x1" ; then
49385 COND_USE_SOVERLINUX_1=""
49386 fi
49387
49388 COND_USE_SOVERSION_0="#"
49389 if test "x$USE_SOVERSION" = "x0" ; then
49390 COND_USE_SOVERSION_0=""
49391 fi
49392
49393 COND_USE_SOVERSOLARIS_1="#"
49394 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49395 COND_USE_SOVERSOLARIS_1=""
49396 fi
49397
0b78747f
MW
49398 COND_USE_THREADS_0="#"
49399 if test "x$USE_THREADS" = "x0" ; then
49400 COND_USE_THREADS_0=""
49401 fi
49402
49403 COND_USE_THREADS_1="#"
49404 if test "x$USE_THREADS" = "x1" ; then
49405 COND_USE_THREADS_1=""
49406 fi
49407
a13a7f89
RL
49408 COND_USE_XRC_1="#"
49409 if test "x$USE_XRC" = "x1" ; then
49410 COND_USE_XRC_1=""
49411 fi
49412
eb730a0c
JS
49413 COND_WINDOWS_IMPLIB_1="#"
49414 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49415 COND_WINDOWS_IMPLIB_1=""
49416 fi
49417
a848cd7e
SC
49418 COND_WITH_PLUGIN_SDL_1="#"
49419 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49420 COND_WITH_PLUGIN_SDL_1=""
49421 fi
49422
1e6eb025
VZ
49423 COND_WXUNIV_0="#"
49424 if test "x$WXUNIV" = "x0" ; then
49425 COND_WXUNIV_0=""
49426 fi
49427
a848cd7e
SC
49428 COND_WXUNIV_1="#"
49429 if test "x$WXUNIV" = "x1" ; then
49430 COND_WXUNIV_1=""
49431 fi
49432
49433 COND_WXUSE_EXPAT_BUILTIN="#"
49434 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49435 COND_WXUSE_EXPAT_BUILTIN=""
49436 fi
49437
49438 COND_WXUSE_LIBJPEG_BUILTIN="#"
49439 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49440 COND_WXUSE_LIBJPEG_BUILTIN=""
49441 fi
49442
49443 COND_WXUSE_LIBPNG_BUILTIN="#"
49444 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49445 COND_WXUSE_LIBPNG_BUILTIN=""
49446 fi
49447
49448 COND_WXUSE_LIBTIFF_BUILTIN="#"
49449 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49450 COND_WXUSE_LIBTIFF_BUILTIN=""
49451 fi
49452
49453 COND_WXUSE_ODBC_BUILTIN="#"
49454 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49455 COND_WXUSE_ODBC_BUILTIN=""
49456 fi
49457
49458 COND_WXUSE_REGEX_BUILTIN="#"
49459 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49460 COND_WXUSE_REGEX_BUILTIN=""
49461 fi
49462
49463 COND_WXUSE_ZLIB_BUILTIN="#"
49464 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49465 COND_WXUSE_ZLIB_BUILTIN=""
49466 fi
49467
49468
49469
810b94f0
MW
49470 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49471 { { 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
49472echo "$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;}
49473 { (exit 1); exit 1; }; }
49474 fi
49475
2057db16
VS
49476 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49477 { { 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
49478echo "$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;}
49479 { (exit 1); exit 1; }; }
49480 fi
49481
a848cd7e 49482
7afc46ab
KO
49483
49484if test "$wxUSE_MAC" = 1 ; then
95768535 49485 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49486 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49487 mv temp bk-deps
49488 chmod +x bk-deps
49489 fi
49490fi
49491
ceec2216
RL
49492if test "$wxUSE_SHARED" = "yes"; then
49493
49494 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49495 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49496
5b674b9d
DE
49497 case "${host}" in
49498 *-pc-os2_emx | *-pc-os2-emx )
49499 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49500 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49501 cp -p ${srcdir}/src/os2/dllnames.sh .
49502 cp -p ${srcdir}/src/os2/dllar.sh .
49503 ;;
49504 esac
ceec2216
RL
49505else
49506
49507 EXE_LINKER="$CXX -o"
49508
49509fi
69120ee4
VZ
49510if test "$wxUSE_OMF" = "yes"; then
49511 case "${host}" in
49512 *-pc-os2_emx | *-pc-os2-emx )
49513 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49514 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49515 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49516 ;;
49517 esac
49518fi
a848cd7e 49519
c08ebc62 49520if test $GCC_PCH = 1 ; then
254e8e29 49521 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49522fi
a848cd7e 49523
5ff751d6 49524WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49525
49526SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
49545
49546
49547
49548
49549
49550
49551
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
a848cd7e
SC
49569
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
a848cd7e
SC
49581
49582
ddd14b14 49583
370d2fd7 49584
8ced02f6 49585
a848cd7e
SC
49586
49587
49588echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49590set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49591if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49592 echo $ECHO_N "(cached) $ECHO_C" >&6
49593else
49594 cat >conftest.make <<\_ACEOF
49595all:
49596 @echo 'ac_maketemp="$(MAKE)"'
49597_ACEOF
49598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49599eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49600if test -n "$ac_maketemp"; then
49601 eval ac_cv_prog_make_${ac_make}_set=yes
49602else
49603 eval ac_cv_prog_make_${ac_make}_set=no
49604fi
49605rm -f conftest.make
49606fi
49607if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49608 echo "$as_me:$LINENO: result: yes" >&5
49609echo "${ECHO_T}yes" >&6
49610 SET_MAKE=
49611else
49612 echo "$as_me:$LINENO: result: no" >&5
49613echo "${ECHO_T}no" >&6
49614 SET_MAKE="MAKE=${MAKE-make}"
49615fi
49616
49617
a848cd7e 49618
ceec2216
RL
49619 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49620
a848cd7e 49621
5c60e845
MW
49622if test "$USE_WIN32" = 1; then
49623 ac_config_commands="$ac_config_commands
49624 rcdefs.h
49625 "
49626
49627fi
49628
ceec2216 49629 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49630
a848cd7e 49631
ceec2216 49632 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49633
ceec2216
RL
49634
49635 ac_config_files="$ac_config_files version-script Makefile"
49636
49637
5c60e845 49638 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49639
49640
9103d280 49641
1c14217d 49642if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49643if test "$wxUSE_GUI" = "yes"; then
49644 SUBDIRS="samples demos utils contrib"
49645else SUBDIRS="samples utils"
49646fi
49647
49648
49649
49650# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49651if test "${with_cppunit_prefix+set}" = set; then
49652 withval="$with_cppunit_prefix"
49653 cppunit_config_prefix="$withval"
49654else
49655 cppunit_config_prefix=""
49656fi;
49657
49658# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49659if test "${with_cppunit_exec_prefix+set}" = set; then
49660 withval="$with_cppunit_exec_prefix"
49661 cppunit_config_exec_prefix="$withval"
49662else
49663 cppunit_config_exec_prefix=""
49664fi;
49665
49666 if test x$cppunit_config_exec_prefix != x ; then
49667 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49668 if test x${CPPUNIT_CONFIG+set} != xset ; then
49669 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49670 fi
49671 fi
49672 if test x$cppunit_config_prefix != x ; then
49673 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49674 if test x${CPPUNIT_CONFIG+set} != xset ; then
49675 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49676 fi
49677 fi
49678
49679 # Extract the first word of "cppunit-config", so it can be a program name with args.
49680set dummy cppunit-config; ac_word=$2
49681echo "$as_me:$LINENO: checking for $ac_word" >&5
49682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49683if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49684 echo $ECHO_N "(cached) $ECHO_C" >&6
49685else
49686 case $CPPUNIT_CONFIG in
49687 [\\/]* | ?:[\\/]*)
49688 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49689 ;;
49690 *)
49691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49692for as_dir in $PATH
49693do
49694 IFS=$as_save_IFS
49695 test -z "$as_dir" && as_dir=.
49696 for ac_exec_ext in '' $ac_executable_extensions; do
49697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49698 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49700 break 2
49701 fi
49702done
49703done
49704
49705 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49706 ;;
49707esac
49708fi
49709CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49710
49711if test -n "$CPPUNIT_CONFIG"; then
49712 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49713echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49714else
49715 echo "$as_me:$LINENO: result: no" >&5
49716echo "${ECHO_T}no" >&6
49717fi
49718
49719 cppunit_version_min=1.8.0
49720
49721 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49722echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49723 no_cppunit=""
49724 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49725 echo "$as_me:$LINENO: result: no" >&5
49726echo "${ECHO_T}no" >&6
a848cd7e
SC
49727 no_cppunit=yes
49728 else
49729 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49730 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49731 cppunit_version=`$CPPUNIT_CONFIG --version`
49732
49733 cppunit_major_version=`echo $cppunit_version | \
49734 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49735 cppunit_minor_version=`echo $cppunit_version | \
49736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49737 cppunit_micro_version=`echo $cppunit_version | \
49738 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49739
49740 cppunit_major_min=`echo $cppunit_version_min | \
49741 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49742 cppunit_minor_min=`echo $cppunit_version_min | \
49743 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49744 cppunit_micro_min=`echo $cppunit_version_min | \
49745 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49746
49747 cppunit_version_proper=`expr \
49748 $cppunit_major_version \> $cppunit_major_min \| \
49749 $cppunit_major_version \= $cppunit_major_min \& \
49750 $cppunit_minor_version \> $cppunit_minor_min \| \
49751 $cppunit_major_version \= $cppunit_major_min \& \
49752 $cppunit_minor_version \= $cppunit_minor_min \& \
49753 $cppunit_micro_version \>= $cppunit_micro_min `
49754
49755 if test "$cppunit_version_proper" = "1" ; then
49756 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49757echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49758 else
49759 echo "$as_me:$LINENO: result: no" >&5
49760echo "${ECHO_T}no" >&6
49761 no_cppunit=yes
49762 fi
49763 fi
49764
49765 if test "x$no_cppunit" = x ; then
c2218763 49766 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49767 else
49768 CPPUNIT_CFLAGS=""
49769 CPPUNIT_LIBS=""
c2218763 49770 :
a848cd7e
SC
49771 fi
49772
49773
49774
49775
49776
49777for subdir in `echo $SUBDIRS`; do
49778 if test -d ${srcdir}/${subdir} ; then
49779 if test "$wxUSE_GUI" = "yes"; then
49780 if test ${subdir} = "samples"; then
49781 makefiles="samples/Makefile.in $makefiles"
49782 for sample in `echo $SAMPLES_SUBDIRS`; do
49783 if test -d $srcdir/samples/$sample; then
49784 makefiles="samples/$sample/Makefile.in $makefiles"
49785 fi
49786 done
9c112555
MW
49787 else
49788 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49789 eval "disabled=\$$disabled_var"
49790 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49791 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49792 fi
49793 else if test ${subdir} = "samples"; then
49794 makefiles="samples/Makefile.in samples/console/Makefile.in"
49795 elif test ${subdir} = "utils"; then
6537ccf8
VS
49796 makefiles=""
49797 for util in HelpGen tex2rtf ; do
49798 if test -d $srcdir/utils/$util ; then
49799 makefiles="utils/$util/Makefile.in \
49800 utils/$util/src/Makefile.in \
49801 $makefiles"
49802 fi
49803 done
a848cd7e
SC
49804 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49805 fi
49806 fi
49807
49808 for mkin in $makefiles ; do
49809 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49810 ac_config_files="$ac_config_files $mk"
49811
49812 done
49813 fi
49814done
1c14217d 49815fi
a848cd7e
SC
49816cat >confcache <<\_ACEOF
49817# This file is a shell script that caches the results of configure
49818# tests run on this system so they can be shared between configure
49819# scripts and configure runs, see configure's option --config-cache.
49820# It is not useful on other systems. If it contains results you don't
49821# want to keep, you may remove or edit it.
49822#
49823# config.status only pays attention to the cache file if you give it
49824# the --recheck option to rerun configure.
49825#
49826# `ac_cv_env_foo' variables (set or unset) will be overridden when
49827# loading this file, other *unset* `ac_cv_foo' will be assigned the
49828# following values.
49829
49830_ACEOF
49831
49832# The following way of writing the cache mishandles newlines in values,
49833# but we know of no workaround that is simple, portable, and efficient.
49834# So, don't put newlines in cache variables' values.
49835# Ultrix sh set writes to stderr and can't be redirected directly,
49836# and sets the high bit in the cache file unless we assign to the vars.
49837{
49838 (set) 2>&1 |
49839 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49840 *ac_space=\ *)
49841 # `set' does not quote correctly, so add quotes (double-quote
49842 # substitution turns \\\\ into \\, and sed turns \\ into \).
49843 sed -n \
ac1cb8d3
VS
49844 "s/'/'\\\\''/g;
49845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49846 ;;
49847 *)
49848 # `set' quotes correctly as required by POSIX, so do not add quotes.
49849 sed -n \
ac1cb8d3 49850 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49851 ;;
49852 esac;
49853} |
49854 sed '
49855 t clear
49856 : clear
49857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49858 t end
49859 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49860 : end' >>confcache
49861if diff $cache_file confcache >/dev/null 2>&1; then :; else
49862 if test -w $cache_file; then
49863 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49864 cat confcache >$cache_file
49865 else
49866 echo "not updating unwritable cache $cache_file"
49867 fi
49868fi
49869rm -f confcache
49870
49871test "x$prefix" = xNONE && prefix=$ac_default_prefix
49872# Let make expand exec_prefix.
49873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49874
49875# VPATH may cause trouble with some makes, so we remove $(srcdir),
49876# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49877# trailing colons and then remove the whole line if VPATH becomes empty
49878# (actually we leave an empty line to preserve line numbers).
49879if test "x$srcdir" = x.; then
ac1cb8d3 49880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49881s/:*\$(srcdir):*/:/;
49882s/:*\${srcdir}:*/:/;
49883s/:*@srcdir@:*/:/;
ac1cb8d3 49884s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49885s/:*$//;
ac1cb8d3 49886s/^[^=]*=[ ]*$//;
a848cd7e
SC
49887}'
49888fi
49889
49890DEFS=-DHAVE_CONFIG_H
49891
49892ac_libobjs=
49893ac_ltlibobjs=
49894for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49895 # 1. Remove the extension, and $U if already installed.
49896 ac_i=`echo "$ac_i" |
ac1cb8d3 49897 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49898 # 2. Add them.
49899 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49900 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49901done
49902LIBOBJS=$ac_libobjs
49903
49904LTLIBOBJS=$ac_ltlibobjs
49905
49906
49907
49908: ${CONFIG_STATUS=./config.status}
49909ac_clean_files_save=$ac_clean_files
49910ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49911{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49912echo "$as_me: creating $CONFIG_STATUS" >&6;}
49913cat >$CONFIG_STATUS <<_ACEOF
49914#! $SHELL
49915# Generated by $as_me.
49916# Run this file to recreate the current configuration.
49917# Compiler output produced by configure, useful for debugging
49918# configure, is in config.log if it exists.
49919
49920debug=false
49921ac_cs_recheck=false
49922ac_cs_silent=false
49923SHELL=\${CONFIG_SHELL-$SHELL}
49924_ACEOF
49925
49926cat >>$CONFIG_STATUS <<\_ACEOF
49927## --------------------- ##
49928## M4sh Initialization. ##
49929## --------------------- ##
49930
49931# Be Bourne compatible
49932if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49933 emulate sh
49934 NULLCMD=:
49935 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49936 # is contrary to our usage. Disable this feature.
49937 alias -g '${1+"$@"}'='"$@"'
49938elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49939 set -o posix
49940fi
ac1cb8d3 49941DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49942
49943# Support unset when possible.
ac1cb8d3 49944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49945 as_unset=unset
49946else
49947 as_unset=false
49948fi
49949
49950
49951# Work around bugs in pre-3.0 UWIN ksh.
49952$as_unset ENV MAIL MAILPATH
49953PS1='$ '
49954PS2='> '
49955PS4='+ '
49956
49957# NLS nuisances.
49958for as_var in \
49959 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49960 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49961 LC_TELEPHONE LC_TIME
49962do
ac1cb8d3 49963 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49964 eval $as_var=C; export $as_var
49965 else
49966 $as_unset $as_var
49967 fi
49968done
49969
49970# Required to use basename.
49971if expr a : '\(a\)' >/dev/null 2>&1; then
49972 as_expr=expr
49973else
49974 as_expr=false
49975fi
49976
49977if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49978 as_basename=basename
49979else
49980 as_basename=false
49981fi
49982
49983
49984# Name of the executable.
49985as_me=`$as_basename "$0" ||
49986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49987 X"$0" : 'X\(//\)$' \| \
49988 X"$0" : 'X\(/\)$' \| \
49989 . : '\(.\)' 2>/dev/null ||
49990echo X/"$0" |
49991 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49992 /^X\/\(\/\/\)$/{ s//\1/; q; }
49993 /^X\/\(\/\).*/{ s//\1/; q; }
49994 s/.*/./; q'`
49995
49996
49997# PATH needs CR, and LINENO needs CR and PATH.
49998# Avoid depending upon Character Ranges.
49999as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50000as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50001as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50002as_cr_digits='0123456789'
50003as_cr_alnum=$as_cr_Letters$as_cr_digits
50004
50005# The user is always right.
50006if test "${PATH_SEPARATOR+set}" != set; then
50007 echo "#! /bin/sh" >conf$$.sh
50008 echo "exit 0" >>conf$$.sh
50009 chmod +x conf$$.sh
50010 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50011 PATH_SEPARATOR=';'
50012 else
50013 PATH_SEPARATOR=:
50014 fi
50015 rm -f conf$$.sh
50016fi
50017
50018
50019 as_lineno_1=$LINENO
50020 as_lineno_2=$LINENO
50021 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50022 test "x$as_lineno_1" != "x$as_lineno_2" &&
50023 test "x$as_lineno_3" = "x$as_lineno_2" || {
50024 # Find who we are. Look in the path if we contain no path at all
50025 # relative or not.
50026 case $0 in
50027 *[\\/]* ) as_myself=$0 ;;
50028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50029for as_dir in $PATH
50030do
50031 IFS=$as_save_IFS
50032 test -z "$as_dir" && as_dir=.
50033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50034done
50035
50036 ;;
50037 esac
50038 # We did not find ourselves, most probably we were run as `sh COMMAND'
50039 # in which case we are not to be found in the path.
50040 if test "x$as_myself" = x; then
50041 as_myself=$0
50042 fi
50043 if test ! -f "$as_myself"; then
50044 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50045echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50046 { (exit 1); exit 1; }; }
50047 fi
50048 case $CONFIG_SHELL in
50049 '')
50050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50051for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50052do
50053 IFS=$as_save_IFS
50054 test -z "$as_dir" && as_dir=.
50055 for as_base in sh bash ksh sh5; do
50056 case $as_dir in
50057 /*)
50058 if ("$as_dir/$as_base" -c '
50059 as_lineno_1=$LINENO
50060 as_lineno_2=$LINENO
50061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50062 test "x$as_lineno_1" != "x$as_lineno_2" &&
50063 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50064 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50065 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50066 CONFIG_SHELL=$as_dir/$as_base
50067 export CONFIG_SHELL
50068 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50069 fi;;
50070 esac
50071 done
50072done
50073;;
50074 esac
50075
50076 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50077 # uniformly replaced by the line number. The first 'sed' inserts a
50078 # line-number line before each line; the second 'sed' does the real
50079 # work. The second script uses 'N' to pair each line-number line
50080 # with the numbered line, and appends trailing '-' during
50081 # substitution so that $LINENO is not a special case at line end.
50082 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50083 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50084 sed '=' <$as_myself |
50085 sed '
50086 N
50087 s,$,-,
50088 : loop
50089 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50090 t loop
50091 s,-$,,
50092 s,^['$as_cr_digits']*\n,,
50093 ' >$as_me.lineno &&
50094 chmod +x $as_me.lineno ||
50095 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50096echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50097 { (exit 1); exit 1; }; }
50098
50099 # Don't try to exec as it changes $[0], causing all sort of problems
50100 # (the dirname of $[0] is not the place where we might find the
50101 # original and so on. Autoconf is especially sensible to this).
50102 . ./$as_me.lineno
50103 # Exit status is that of the last command.
50104 exit
50105}
50106
50107
50108case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50109 *c*,-n*) ECHO_N= ECHO_C='
50110' ECHO_T=' ' ;;
50111 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50112 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50113esac
50114
50115if expr a : '\(a\)' >/dev/null 2>&1; then
50116 as_expr=expr
50117else
50118 as_expr=false
50119fi
50120
50121rm -f conf$$ conf$$.exe conf$$.file
50122echo >conf$$.file
50123if ln -s conf$$.file conf$$ 2>/dev/null; then
50124 # We could just check for DJGPP; but this test a) works b) is more generic
50125 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50126 if test -f conf$$.exe; then
50127 # Don't use ln at all; we don't have any links
50128 as_ln_s='cp -p'
50129 else
50130 as_ln_s='ln -s'
50131 fi
50132elif ln conf$$.file conf$$ 2>/dev/null; then
50133 as_ln_s=ln
50134else
50135 as_ln_s='cp -p'
50136fi
50137rm -f conf$$ conf$$.exe conf$$.file
50138
50139if mkdir -p . 2>/dev/null; then
50140 as_mkdir_p=:
50141else
ac1cb8d3 50142 test -d ./-p && rmdir ./-p
a848cd7e
SC
50143 as_mkdir_p=false
50144fi
50145
50146as_executable_p="test -f"
50147
50148# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50149as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50150
50151# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50152as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50153
50154
50155# IFS
50156# We need space, tab and new line, in precisely that order.
50157as_nl='
50158'
50159IFS=" $as_nl"
50160
50161# CDPATH.
50162$as_unset CDPATH
50163
50164exec 6>&1
50165
50166# Open the log real soon, to keep \$[0] and so on meaningful, and to
50167# report actual input values of CONFIG_FILES etc. instead of their
50168# values after options handling. Logging --version etc. is OK.
50169exec 5>>config.log
50170{
50171 echo
50172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50173## Running $as_me. ##
50174_ASBOX
50175} >&5
50176cat >&5 <<_CSEOF
50177
dd8df4fc 50178This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 50179generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50180
50181 CONFIG_FILES = $CONFIG_FILES
50182 CONFIG_HEADERS = $CONFIG_HEADERS
50183 CONFIG_LINKS = $CONFIG_LINKS
50184 CONFIG_COMMANDS = $CONFIG_COMMANDS
50185 $ $0 $@
50186
50187_CSEOF
50188echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50189echo >&5
50190_ACEOF
50191
50192# Files that config.status was made for.
50193if test -n "$ac_config_files"; then
50194 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50195fi
50196
50197if test -n "$ac_config_headers"; then
50198 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50199fi
50200
50201if test -n "$ac_config_links"; then
50202 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50203fi
50204
50205if test -n "$ac_config_commands"; then
50206 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50207fi
50208
50209cat >>$CONFIG_STATUS <<\_ACEOF
50210
50211ac_cs_usage="\
50212\`$as_me' instantiates files from templates according to the
50213current configuration.
50214
50215Usage: $0 [OPTIONS] [FILE]...
50216
50217 -h, --help print this help, then exit
50218 -V, --version print version number, then exit
50219 -q, --quiet do not print progress messages
50220 -d, --debug don't remove temporary files
50221 --recheck update $as_me by reconfiguring in the same conditions
50222 --file=FILE[:TEMPLATE]
ac1cb8d3 50223 instantiate the configuration file FILE
a848cd7e 50224 --header=FILE[:TEMPLATE]
ac1cb8d3 50225 instantiate the configuration header FILE
a848cd7e
SC
50226
50227Configuration files:
50228$config_files
50229
50230Configuration headers:
50231$config_headers
50232
50233Configuration commands:
50234$config_commands
50235
50236Report bugs to <bug-autoconf@gnu.org>."
50237_ACEOF
50238
50239cat >>$CONFIG_STATUS <<_ACEOF
50240ac_cs_version="\\
dd8df4fc 50241wxWidgets config.status 2.7.0
ac1cb8d3 50242configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50243 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50244
ac1cb8d3 50245Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50246This config.status script is free software; the Free Software Foundation
50247gives unlimited permission to copy, distribute and modify it."
50248srcdir=$srcdir
50249INSTALL="$INSTALL"
50250_ACEOF
50251
50252cat >>$CONFIG_STATUS <<\_ACEOF
50253# If no file are specified by the user, then we need to provide default
50254# value. By we need to know if files were specified by the user.
50255ac_need_defaults=:
50256while test $# != 0
50257do
50258 case $1 in
50259 --*=*)
50260 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50261 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50262 ac_shift=:
50263 ;;
50264 -*)
50265 ac_option=$1
50266 ac_optarg=$2
50267 ac_shift=shift
50268 ;;
50269 *) # This is not an option, so the user has probably given explicit
50270 # arguments.
50271 ac_option=$1
50272 ac_need_defaults=false;;
50273 esac
50274
50275 case $ac_option in
50276 # Handling of the options.
50277_ACEOF
50278cat >>$CONFIG_STATUS <<\_ACEOF
50279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50280 ac_cs_recheck=: ;;
50281 --version | --vers* | -V )
50282 echo "$ac_cs_version"; exit 0 ;;
50283 --he | --h)
50284 # Conflict between --help and --header
50285 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50286Try \`$0 --help' for more information." >&5
50287echo "$as_me: error: ambiguous option: $1
50288Try \`$0 --help' for more information." >&2;}
50289 { (exit 1); exit 1; }; };;
50290 --help | --hel | -h )
50291 echo "$ac_cs_usage"; exit 0 ;;
50292 --debug | --d* | -d )
50293 debug=: ;;
50294 --file | --fil | --fi | --f )
50295 $ac_shift
50296 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50297 ac_need_defaults=false;;
50298 --header | --heade | --head | --hea )
50299 $ac_shift
50300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50301 ac_need_defaults=false;;
50302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50304 ac_cs_silent=: ;;
50305
50306 # This is an error.
50307 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50308Try \`$0 --help' for more information." >&5
50309echo "$as_me: error: unrecognized option: $1
50310Try \`$0 --help' for more information." >&2;}
50311 { (exit 1); exit 1; }; } ;;
50312
50313 *) ac_config_targets="$ac_config_targets $1" ;;
50314
50315 esac
50316 shift
50317done
50318
50319ac_configure_extra_args=
50320
50321if $ac_cs_silent; then
50322 exec 6>/dev/null
50323 ac_configure_extra_args="$ac_configure_extra_args --silent"
50324fi
50325
50326_ACEOF
50327cat >>$CONFIG_STATUS <<_ACEOF
50328if \$ac_cs_recheck; then
50329 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50330 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50331fi
50332
50333_ACEOF
50334
50335cat >>$CONFIG_STATUS <<_ACEOF
50336#
50337# INIT-COMMANDS section.
50338#
50339
5c60e845
MW
50340
50341 CPP="$CPP"
50342 infile="$srcdir/include/wx/msw/genrcdefs.h"
50343 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50344
50345
ceec2216
RL
50346 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50347 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50348 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50349 LN_S="${LN_S}"
a848cd7e
SC
50350
50351
50352_ACEOF
50353
50354
50355
50356cat >>$CONFIG_STATUS <<\_ACEOF
50357for ac_config_target in $ac_config_targets
50358do
50359 case "$ac_config_target" in
50360 # Handling of arguments.
ceec2216
RL
50361 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50362 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50363 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50364 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50365 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50366 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50367 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50368 "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
50369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50370echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50371 { (exit 1); exit 1; }; };;
50372 esac
50373done
50374
50375# If the user did not use the arguments to specify the items to instantiate,
50376# then the envvar interface is used. Set only those that are not.
50377# We use the long form for the default assignment because of an extremely
50378# bizarre bug on SunOS 4.1.3.
50379if $ac_need_defaults; then
50380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50383fi
50384
50385# Have a temporary directory for convenience. Make it in the build tree
50386# simply because there is no reason to put it here, and in addition,
50387# creating and moving files from /tmp can sometimes cause problems.
50388# Create a temporary directory, and hook for its removal unless debugging.
50389$debug ||
50390{
50391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50392 trap '{ (exit 1); exit 1; }' 1 2 13 15
50393}
50394
50395# Create a (secure) tmp directory for tmp files.
50396
50397{
50398 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50399 test -n "$tmp" && test -d "$tmp"
50400} ||
50401{
50402 tmp=./confstat$$-$RANDOM
50403 (umask 077 && mkdir $tmp)
50404} ||
50405{
50406 echo "$me: cannot create a temporary directory in ." >&2
50407 { (exit 1); exit 1; }
50408}
50409
50410_ACEOF
50411
50412cat >>$CONFIG_STATUS <<_ACEOF
50413
50414#
50415# CONFIG_FILES section.
50416#
50417
50418# No need to generate the scripts if there are no CONFIG_FILES.
50419# This happens for instance when ./config.status config.h
50420if test -n "\$CONFIG_FILES"; then
50421 # Protect against being on the right side of a sed subst in config.status.
50422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50424s,@SHELL@,$SHELL,;t t
50425s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50426s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50427s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50428s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50429s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50430s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50431s,@exec_prefix@,$exec_prefix,;t t
50432s,@prefix@,$prefix,;t t
50433s,@program_transform_name@,$program_transform_name,;t t
50434s,@bindir@,$bindir,;t t
50435s,@sbindir@,$sbindir,;t t
50436s,@libexecdir@,$libexecdir,;t t
50437s,@datadir@,$datadir,;t t
50438s,@sysconfdir@,$sysconfdir,;t t
50439s,@sharedstatedir@,$sharedstatedir,;t t
50440s,@localstatedir@,$localstatedir,;t t
50441s,@libdir@,$libdir,;t t
50442s,@includedir@,$includedir,;t t
50443s,@oldincludedir@,$oldincludedir,;t t
50444s,@infodir@,$infodir,;t t
50445s,@mandir@,$mandir,;t t
50446s,@build_alias@,$build_alias,;t t
50447s,@host_alias@,$host_alias,;t t
50448s,@target_alias@,$target_alias,;t t
50449s,@DEFS@,$DEFS,;t t
50450s,@ECHO_C@,$ECHO_C,;t t
50451s,@ECHO_N@,$ECHO_N,;t t
50452s,@ECHO_T@,$ECHO_T,;t t
50453s,@LIBS@,$LIBS,;t t
50454s,@build@,$build,;t t
50455s,@build_cpu@,$build_cpu,;t t
50456s,@build_vendor@,$build_vendor,;t t
50457s,@build_os@,$build_os,;t t
50458s,@host@,$host,;t t
50459s,@host_cpu@,$host_cpu,;t t
50460s,@host_vendor@,$host_vendor,;t t
50461s,@host_os@,$host_os,;t t
50462s,@target@,$target,;t t
50463s,@target_cpu@,$target_cpu,;t t
50464s,@target_vendor@,$target_vendor,;t t
50465s,@target_os@,$target_os,;t t
50466s,@CC@,$CC,;t t
50467s,@CFLAGS@,$CFLAGS,;t t
50468s,@LDFLAGS@,$LDFLAGS,;t t
50469s,@CPPFLAGS@,$CPPFLAGS,;t t
50470s,@ac_ct_CC@,$ac_ct_CC,;t t
50471s,@EXEEXT@,$EXEEXT,;t t
50472s,@OBJEXT@,$OBJEXT,;t t
50473s,@CPP@,$CPP,;t t
50474s,@EGREP@,$EGREP,;t t
50475s,@CXX@,$CXX,;t t
50476s,@CXXFLAGS@,$CXXFLAGS,;t t
50477s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50478s,@RANLIB@,$RANLIB,;t t
50479s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50480s,@AR@,$AR,;t t
8c80d384 50481s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50482s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50483s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50484s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50485s,@STRIP@,$STRIP,;t t
8c80d384 50486s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50487s,@WINDRES@,$WINDRES,;t t
50488s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50489s,@DLLTOOL@,$DLLTOOL,;t t
50490s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50491s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50492s,@LN_S@,$LN_S,;t t
50493s,@CXXCPP@,$CXXCPP,;t t
50494s,@subdirs@,$subdirs,;t t
50495s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50496s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50497s,@GTK_LIBS@,$GTK_LIBS,;t t
50498s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50499s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50500s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50501s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50502s,@X_CFLAGS@,$X_CFLAGS,;t t
50503s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50504s,@X_LIBS@,$X_LIBS,;t t
50505s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50506s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50507s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50508s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50509s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50510s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50511s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50512s,@REZ@,$REZ,;t t
a848cd7e
SC
50513s,@DEREZ@,$DEREZ,;t t
50514s,@SETFILE@,$SETFILE,;t t
50515s,@LIBICONV@,$LIBICONV,;t t
50516s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50517s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50518s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50519s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50520s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50521s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50522s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50523s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50524s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50525s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50526s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50527s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50528s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50529s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50530s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50531s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50532s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50533s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50534s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50535s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50536s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50537s,@VENDOR@,$VENDOR,;t t
50538s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50539s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50540s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50541s,@WXUNIV@,$WXUNIV,;t t
50542s,@MONOLITHIC@,$MONOLITHIC,;t t
50543s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50544s,@EXTRALIBS@,$EXTRALIBS,;t t
50545s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50546s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50547s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50548s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50549s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50550s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50551s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50552s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50553s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50554s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50555s,@UNICODE@,$UNICODE,;t t
50556s,@BUILD@,$BUILD,;t t
50557s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50558s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50559s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50560s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50561s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50562s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50563s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50564s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50565s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50566s,@SET_MAKE@,$SET_MAKE,;t t
50567s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50568s,@NM@,$NM,;t t
50569s,@ac_ct_NM@,$ac_ct_NM,;t t
50570s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50571s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50572s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50573s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50574s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50575s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50576s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50577s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50578s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50579s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50580s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50581s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50582s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50583s,@LIBPREFIX@,$LIBPREFIX,;t t
50584s,@LIBEXT@,$LIBEXT,;t t
50585s,@DLLPREFIX@,$DLLPREFIX,;t t
50586s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50587s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50588s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50589s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50590s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50591s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50592s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50593s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50594s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50595s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50596s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50597s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50598s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50599s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50600s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50601s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50602s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50603s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50604s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50605s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50606s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50607s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50608s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50609s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50610s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50611s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50612s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50613s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50614s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50615s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50616s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50617s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50618s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50619s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50620s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50621s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50622s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50623s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50624s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50625s,@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 50626s,@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 50627s,@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 50628s,@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 50629s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50630s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50631s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50632s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50633s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50634s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50635s,@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 50636s,@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 50637s,@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 50638s,@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 50639s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50640s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50641s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50642s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50643s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50644s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50645s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50646s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50647s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50648s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50649s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50650s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50651s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50652s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50653s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50654s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50655s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50656s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50657s,@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
50658s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50659s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50660s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50661s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50662s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50663s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50664s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50665s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50666s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50667s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50668s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50669s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50670s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50671s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50672s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50673s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50674s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50675s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50676s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50677s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50678s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50679s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50680s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50681s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50682s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50683s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50684s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50685s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50686s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50687s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50688s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50689s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50690s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50691s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50692s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50693s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50694s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50695s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50696s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50697s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50698s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50699s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50700s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50701s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50702s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50703s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50704s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50705s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50706s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50707s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50708s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50709s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50710s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50711s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50712s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50713s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50714s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50715s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50716s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50717s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50718s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50719s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50720s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50721s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50722s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50723s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50724s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50725s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50726s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50727s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50728s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50729s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50730s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50731s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50732s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50733s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50734s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50735s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50736s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50737s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50738s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50739s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50740s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50741s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50742s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50743s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50744s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50745s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50746s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50747s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50748s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50749s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50750s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50751s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50752s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50753s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50754s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50755s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50756s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50757s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50758s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50759s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50760s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50761s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50762s,@USE_GUI@,$USE_GUI,;t t
50763s,@AFMINSTALL@,$AFMINSTALL,;t t
50764s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50765s,@TOOLKIT@,$TOOLKIT,;t t
50766s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50767s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50768s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50769s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50770s,@WIDGET_SET@,$WIDGET_SET,;t t
50771s,@WX_RELEASE@,$WX_RELEASE,;t t
50772s,@WX_VERSION@,$WX_VERSION,;t t
50773s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50774s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50775s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50776s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50777s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50778s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50779s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50780s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50781s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50782s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50783s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50784s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50785s,@DISTDIR@,$DISTDIR,;t t
50786s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50787s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50788s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50789s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50790s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50791s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50792s,@RESFLAGS@,$RESFLAGS,;t t
50793s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50794s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50795s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50796s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50797s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50798s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50799s,@GCC@,$GCC,;t t
a848cd7e
SC
50800s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50801s,@LIBOBJS@,$LIBOBJS,;t t
50802s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50803CEOF
50804
50805_ACEOF
50806
50807 cat >>$CONFIG_STATUS <<\_ACEOF
50808 # Split the substitutions into bite-sized pieces for seds with
50809 # small command number limits, like on Digital OSF/1 and HP-UX.
50810 ac_max_sed_lines=48
50811 ac_sed_frag=1 # Number of current file.
50812 ac_beg=1 # First line for current file.
50813 ac_end=$ac_max_sed_lines # Line after last line for current file.
50814 ac_more_lines=:
50815 ac_sed_cmds=
50816 while $ac_more_lines; do
50817 if test $ac_beg -gt 1; then
50818 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50819 else
50820 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50821 fi
50822 if test ! -s $tmp/subs.frag; then
50823 ac_more_lines=false
50824 else
50825 # The purpose of the label and of the branching condition is to
50826 # speed up the sed processing (if there are no `@' at all, there
50827 # is no need to browse any of the substitutions).
50828 # These are the two extra sed commands mentioned above.
50829 (echo ':t
50830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50831 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50832 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50833 else
ac1cb8d3 50834 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50835 fi
50836 ac_sed_frag=`expr $ac_sed_frag + 1`
50837 ac_beg=$ac_end
50838 ac_end=`expr $ac_end + $ac_max_sed_lines`
50839 fi
50840 done
50841 if test -z "$ac_sed_cmds"; then
50842 ac_sed_cmds=cat
50843 fi
50844fi # test -n "$CONFIG_FILES"
50845
50846_ACEOF
50847cat >>$CONFIG_STATUS <<\_ACEOF
50848for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50850 case $ac_file in
50851 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50852 cat >$tmp/stdin
50853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50857 * ) ac_file_in=$ac_file.in ;;
50858 esac
50859
50860 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50861 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50862$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50863 X"$ac_file" : 'X\(//\)[^/]' \| \
50864 X"$ac_file" : 'X\(//\)$' \| \
50865 X"$ac_file" : 'X\(/\)' \| \
50866 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50867echo X"$ac_file" |
50868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50870 /^X\(\/\/\)$/{ s//\1/; q; }
50871 /^X\(\/\).*/{ s//\1/; q; }
50872 s/.*/./; q'`
50873 { if $as_mkdir_p; then
50874 mkdir -p "$ac_dir"
50875 else
50876 as_dir="$ac_dir"
50877 as_dirs=
50878 while test ! -d "$as_dir"; do
50879 as_dirs="$as_dir $as_dirs"
50880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50882 X"$as_dir" : 'X\(//\)[^/]' \| \
50883 X"$as_dir" : 'X\(//\)$' \| \
50884 X"$as_dir" : 'X\(/\)' \| \
50885 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50886echo X"$as_dir" |
50887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50889 /^X\(\/\/\)$/{ s//\1/; q; }
50890 /^X\(\/\).*/{ s//\1/; q; }
50891 s/.*/./; q'`
50892 done
50893 test ! -n "$as_dirs" || mkdir $as_dirs
50894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50895echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50896 { (exit 1); exit 1; }; }; }
50897
50898 ac_builddir=.
50899
50900if test "$ac_dir" != .; then
50901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50902 # A "../" for each directory in $ac_dir_suffix.
50903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50904else
50905 ac_dir_suffix= ac_top_builddir=
50906fi
50907
50908case $srcdir in
50909 .) # No --srcdir option. We are building in place.
50910 ac_srcdir=.
50911 if test -z "$ac_top_builddir"; then
50912 ac_top_srcdir=.
50913 else
50914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50915 fi ;;
50916 [\\/]* | ?:[\\/]* ) # Absolute path.
50917 ac_srcdir=$srcdir$ac_dir_suffix;
50918 ac_top_srcdir=$srcdir ;;
50919 *) # Relative path.
50920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50922esac
ac1cb8d3
VS
50923
50924# Do not use `cd foo && pwd` to compute absolute paths, because
50925# the directories may not exist.
50926case `pwd` in
50927.) ac_abs_builddir="$ac_dir";;
50928*)
50929 case "$ac_dir" in
50930 .) ac_abs_builddir=`pwd`;;
50931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50933 esac;;
50934esac
50935case $ac_abs_builddir in
50936.) ac_abs_top_builddir=${ac_top_builddir}.;;
50937*)
50938 case ${ac_top_builddir}. in
50939 .) ac_abs_top_builddir=$ac_abs_builddir;;
50940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50942 esac;;
50943esac
50944case $ac_abs_builddir in
50945.) ac_abs_srcdir=$ac_srcdir;;
50946*)
50947 case $ac_srcdir in
50948 .) ac_abs_srcdir=$ac_abs_builddir;;
50949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50951 esac;;
50952esac
50953case $ac_abs_builddir in
50954.) ac_abs_top_srcdir=$ac_top_srcdir;;
50955*)
50956 case $ac_top_srcdir in
50957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50960 esac;;
50961esac
a848cd7e
SC
50962
50963
50964 case $INSTALL in
50965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50966 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50967 esac
50968
a848cd7e
SC
50969 # Let's still pretend it is `configure' which instantiates (i.e., don't
50970 # use $as_me), people would be surprised to read:
50971 # /* config.h. Generated by config.status. */
50972 if test x"$ac_file" = x-; then
50973 configure_input=
50974 else
50975 configure_input="$ac_file. "
50976 fi
50977 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50978 sed 's,.*/,,'` by configure."
a848cd7e
SC
50979
50980 # First look for the input files in the build tree, otherwise in the
50981 # src tree.
50982 ac_file_inputs=`IFS=:
50983 for f in $ac_file_in; do
50984 case $f in
50985 -) echo $tmp/stdin ;;
50986 [\\/$]*)
ac1cb8d3
VS
50987 # Absolute (can't be DOS-style, as IFS=:)
50988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50989echo "$as_me: error: cannot find input file: $f" >&2;}
50990 { (exit 1); exit 1; }; }
ac1cb8d3 50991 echo "$f";;
a848cd7e 50992 *) # Relative
ac1cb8d3
VS
50993 if test -f "$f"; then
50994 # Build tree
50995 echo "$f"
50996 elif test -f "$srcdir/$f"; then
50997 # Source tree
50998 echo "$srcdir/$f"
50999 else
51000 # /dev/null tree
51001 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51002echo "$as_me: error: cannot find input file: $f" >&2;}
51003 { (exit 1); exit 1; }; }
ac1cb8d3 51004 fi;;
a848cd7e
SC
51005 esac
51006 done` || { (exit 1); exit 1; }
ca5c6ac3
VZ
51007
51008 if test x"$ac_file" != x-; then
51009 { echo "$as_me:$LINENO: creating $ac_file" >&5
51010echo "$as_me: creating $ac_file" >&6;}
51011 rm -f "$ac_file"
51012 fi
a848cd7e
SC
51013_ACEOF
51014cat >>$CONFIG_STATUS <<_ACEOF
51015 sed "$ac_vpsub
51016$extrasub
51017_ACEOF
51018cat >>$CONFIG_STATUS <<\_ACEOF
51019:t
51020/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51021s,@configure_input@,$configure_input,;t t
51022s,@srcdir@,$ac_srcdir,;t t
51023s,@abs_srcdir@,$ac_abs_srcdir,;t t
51024s,@top_srcdir@,$ac_top_srcdir,;t t
51025s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51026s,@builddir@,$ac_builddir,;t t
51027s,@abs_builddir@,$ac_abs_builddir,;t t
51028s,@top_builddir@,$ac_top_builddir,;t t
51029s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51030s,@INSTALL@,$ac_INSTALL,;t t
51031" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51032 rm -f $tmp/stdin
51033 if test x"$ac_file" != x-; then
51034 mv $tmp/out $ac_file
51035 else
51036 cat $tmp/out
51037 rm -f $tmp/out
51038 fi
51039
ceec2216
RL
51040 # Run the commands associated with the file.
51041 case $ac_file in
51042 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51043 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51044 esac
a848cd7e
SC
51045done
51046_ACEOF
51047cat >>$CONFIG_STATUS <<\_ACEOF
51048
51049#
51050# CONFIG_HEADER section.
51051#
51052
51053# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51054# NAME is the cpp macro being defined and VALUE is the value it is being given.
51055#
51056# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51057ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51058ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51059ac_dC=' '
51060ac_dD=',;t'
51061# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51062ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51063ac_uB='$,\1#\2define\3'
51064ac_uC=' '
51065ac_uD=',;t'
51066
51067for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51069 case $ac_file in
51070 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51071 cat >$tmp/stdin
51072 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51074 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51076 * ) ac_file_in=$ac_file.in ;;
51077 esac
51078
51079 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51080echo "$as_me: creating $ac_file" >&6;}
51081
51082 # First look for the input files in the build tree, otherwise in the
51083 # src tree.
51084 ac_file_inputs=`IFS=:
51085 for f in $ac_file_in; do
51086 case $f in
51087 -) echo $tmp/stdin ;;
51088 [\\/$]*)
ac1cb8d3
VS
51089 # Absolute (can't be DOS-style, as IFS=:)
51090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51091echo "$as_me: error: cannot find input file: $f" >&2;}
51092 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51093 # Do quote $f, to prevent DOS paths from being IFS'd.
51094 echo "$f";;
a848cd7e 51095 *) # Relative
ac1cb8d3
VS
51096 if test -f "$f"; then
51097 # Build tree
51098 echo "$f"
51099 elif test -f "$srcdir/$f"; then
51100 # Source tree
51101 echo "$srcdir/$f"
51102 else
51103 # /dev/null tree
51104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51105echo "$as_me: error: cannot find input file: $f" >&2;}
51106 { (exit 1); exit 1; }; }
ac1cb8d3 51107 fi;;
a848cd7e
SC
51108 esac
51109 done` || { (exit 1); exit 1; }
51110 # Remove the trailing spaces.
ac1cb8d3 51111 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51112
51113_ACEOF
51114
51115# Transform confdefs.h into two sed scripts, `conftest.defines' and
51116# `conftest.undefs', that substitutes the proper values into
51117# config.h.in to produce config.h. The first handles `#define'
51118# templates, and the second `#undef' templates.
51119# And first: Protect against being on the right side of a sed subst in
51120# config.status. Protect against being in an unquoted here document
51121# in config.status.
51122rm -f conftest.defines conftest.undefs
51123# Using a here document instead of a string reduces the quoting nightmare.
51124# Putting comments in sed scripts is not portable.
51125#
51126# `end' is used to avoid that the second main sed command (meant for
51127# 0-ary CPP macros) applies to n-ary macro definitions.
51128# See the Autoconf documentation for `clear'.
51129cat >confdef2sed.sed <<\_ACEOF
51130s/[\\&,]/\\&/g
51131s,[\\$`],\\&,g
51132t clear
51133: clear
ac1cb8d3 51134s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51135t end
ac1cb8d3 51136s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51137: end
51138_ACEOF
51139# If some macros were called several times there might be several times
51140# the same #defines, which is useless. Nevertheless, we may not want to
51141# sort them, since we want the *last* AC-DEFINE to be honored.
51142uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51143sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51144rm -f confdef2sed.sed
51145
51146# This sed command replaces #undef with comments. This is necessary, for
51147# example, in the case of _POSIX_SOURCE, which is predefined and required
51148# on some systems where configure will not decide to define it.
51149cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51150s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51151_ACEOF
51152
51153# Break up conftest.defines because some shells have a limit on the size
51154# of here documents, and old seds have small limits too (100 cmds).
51155echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51156echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51157echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51158echo ' :' >>$CONFIG_STATUS
51159rm -f conftest.tail
51160while grep . conftest.defines >/dev/null
51161do
51162 # Write a limited-size here document to $tmp/defines.sed.
51163 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51164 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51165 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51166 # Work around the forget-to-reset-the-flag bug.
51167 echo 't clr' >>$CONFIG_STATUS
51168 echo ': clr' >>$CONFIG_STATUS
51169 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51170 echo 'CEOF
51171 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51172 rm -f $tmp/in
51173 mv $tmp/out $tmp/in
51174' >>$CONFIG_STATUS
51175 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51176 rm -f conftest.defines
51177 mv conftest.tail conftest.defines
51178done
51179rm -f conftest.defines
51180echo ' fi # grep' >>$CONFIG_STATUS
51181echo >>$CONFIG_STATUS
51182
51183# Break up conftest.undefs because some shells have a limit on the size
51184# of here documents, and old seds have small limits too (100 cmds).
51185echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51186rm -f conftest.tail
51187while grep . conftest.undefs >/dev/null
51188do
51189 # Write a limited-size here document to $tmp/undefs.sed.
51190 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51191 # Speed up: don't consider the non `#undef'
ac1cb8d3 51192 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51193 # Work around the forget-to-reset-the-flag bug.
51194 echo 't clr' >>$CONFIG_STATUS
51195 echo ': clr' >>$CONFIG_STATUS
51196 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51197 echo 'CEOF
51198 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51199 rm -f $tmp/in
51200 mv $tmp/out $tmp/in
51201' >>$CONFIG_STATUS
51202 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51203 rm -f conftest.undefs
51204 mv conftest.tail conftest.undefs
51205done
51206rm -f conftest.undefs
51207
51208cat >>$CONFIG_STATUS <<\_ACEOF
51209 # Let's still pretend it is `configure' which instantiates (i.e., don't
51210 # use $as_me), people would be surprised to read:
51211 # /* config.h. Generated by config.status. */
51212 if test x"$ac_file" = x-; then
51213 echo "/* Generated by configure. */" >$tmp/config.h
51214 else
51215 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51216 fi
51217 cat $tmp/in >>$tmp/config.h
51218 rm -f $tmp/in
51219 if test x"$ac_file" != x-; then
51220 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51221 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51222echo "$as_me: $ac_file is unchanged" >&6;}
51223 else
51224 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51226 X"$ac_file" : 'X\(//\)[^/]' \| \
51227 X"$ac_file" : 'X\(//\)$' \| \
51228 X"$ac_file" : 'X\(/\)' \| \
51229 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51230echo X"$ac_file" |
51231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51233 /^X\(\/\/\)$/{ s//\1/; q; }
51234 /^X\(\/\).*/{ s//\1/; q; }
51235 s/.*/./; q'`
51236 { if $as_mkdir_p; then
51237 mkdir -p "$ac_dir"
51238 else
51239 as_dir="$ac_dir"
51240 as_dirs=
51241 while test ! -d "$as_dir"; do
51242 as_dirs="$as_dir $as_dirs"
51243 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51245 X"$as_dir" : 'X\(//\)[^/]' \| \
51246 X"$as_dir" : 'X\(//\)$' \| \
51247 X"$as_dir" : 'X\(/\)' \| \
51248 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51249echo X"$as_dir" |
51250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51252 /^X\(\/\/\)$/{ s//\1/; q; }
51253 /^X\(\/\).*/{ s//\1/; q; }
51254 s/.*/./; q'`
51255 done
51256 test ! -n "$as_dirs" || mkdir $as_dirs
51257 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51258echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51259 { (exit 1); exit 1; }; }; }
51260
51261 rm -f $ac_file
51262 mv $tmp/config.h $ac_file
51263 fi
51264 else
51265 cat $tmp/config.h
51266 rm -f $tmp/config.h
51267 fi
51268done
51269_ACEOF
51270cat >>$CONFIG_STATUS <<\_ACEOF
51271
51272#
51273# CONFIG_COMMANDS section.
51274#
51275for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51276 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51277 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51278 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51279$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51280 X"$ac_dest" : 'X\(//\)[^/]' \| \
51281 X"$ac_dest" : 'X\(//\)$' \| \
51282 X"$ac_dest" : 'X\(/\)' \| \
51283 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51284echo X"$ac_dest" |
51285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51287 /^X\(\/\/\)$/{ s//\1/; q; }
51288 /^X\(\/\).*/{ s//\1/; q; }
51289 s/.*/./; q'`
ac1cb8d3
VS
51290 { if $as_mkdir_p; then
51291 mkdir -p "$ac_dir"
51292 else
51293 as_dir="$ac_dir"
51294 as_dirs=
51295 while test ! -d "$as_dir"; do
51296 as_dirs="$as_dir $as_dirs"
51297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51299 X"$as_dir" : 'X\(//\)[^/]' \| \
51300 X"$as_dir" : 'X\(//\)$' \| \
51301 X"$as_dir" : 'X\(/\)' \| \
51302 . : '\(.\)' 2>/dev/null ||
51303echo X"$as_dir" |
51304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51306 /^X\(\/\/\)$/{ s//\1/; q; }
51307 /^X\(\/\).*/{ s//\1/; q; }
51308 s/.*/./; q'`
51309 done
51310 test ! -n "$as_dirs" || mkdir $as_dirs
51311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51312echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51313 { (exit 1); exit 1; }; }; }
51314
a848cd7e
SC
51315 ac_builddir=.
51316
51317if test "$ac_dir" != .; then
51318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51319 # A "../" for each directory in $ac_dir_suffix.
51320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51321else
51322 ac_dir_suffix= ac_top_builddir=
51323fi
51324
51325case $srcdir in
51326 .) # No --srcdir option. We are building in place.
51327 ac_srcdir=.
51328 if test -z "$ac_top_builddir"; then
51329 ac_top_srcdir=.
51330 else
51331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51332 fi ;;
51333 [\\/]* | ?:[\\/]* ) # Absolute path.
51334 ac_srcdir=$srcdir$ac_dir_suffix;
51335 ac_top_srcdir=$srcdir ;;
51336 *) # Relative path.
51337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51339esac
ac1cb8d3
VS
51340
51341# Do not use `cd foo && pwd` to compute absolute paths, because
51342# the directories may not exist.
51343case `pwd` in
51344.) ac_abs_builddir="$ac_dir";;
51345*)
51346 case "$ac_dir" in
51347 .) ac_abs_builddir=`pwd`;;
51348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51349 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51350 esac;;
51351esac
51352case $ac_abs_builddir in
51353.) ac_abs_top_builddir=${ac_top_builddir}.;;
51354*)
51355 case ${ac_top_builddir}. in
51356 .) ac_abs_top_builddir=$ac_abs_builddir;;
51357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51359 esac;;
51360esac
51361case $ac_abs_builddir in
51362.) ac_abs_srcdir=$ac_srcdir;;
51363*)
51364 case $ac_srcdir in
51365 .) ac_abs_srcdir=$ac_abs_builddir;;
51366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51368 esac;;
51369esac
51370case $ac_abs_builddir in
51371.) ac_abs_top_srcdir=$ac_top_srcdir;;
51372*)
51373 case $ac_top_srcdir in
51374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51377 esac;;
51378esac
a848cd7e
SC
51379
51380
51381 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51382echo "$as_me: executing $ac_dest commands" >&6;}
51383 case $ac_dest in
5c60e845
MW
51384 rcdefs.h )
51385 mkdir -p $outdir &&
51386 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51387 ;;
ceec2216
RL
51388 wx-config ) rm -f wx-config
51389 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51390 ;;
a848cd7e
SC
51391 esac
51392done
51393_ACEOF
51394
51395cat >>$CONFIG_STATUS <<\_ACEOF
51396
51397{ (exit 0); exit 0; }
51398_ACEOF
51399chmod +x $CONFIG_STATUS
51400ac_clean_files=$ac_clean_files_save
51401
51402
51403# configure is writing to config.log, and then calls config.status.
51404# config.status does its own redirection, appending to config.log.
51405# Unfortunately, on DOS this fails, as config.log is still kept open
51406# by configure, so config.status won't be able to write to it; its
51407# output is simply discarded. So we exec the FD to /dev/null,
51408# effectively closing config.log, so it can be properly (re)opened and
51409# appended to by config.status. When coming back to configure, we
51410# need to make the FD available again.
51411if test "$no_create" != yes; then
51412 ac_cs_success=:
51413 ac_config_status_args=
51414 test "$silent" = yes &&
51415 ac_config_status_args="$ac_config_status_args --quiet"
51416 exec 5>/dev/null
51417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51418 exec 5>>config.log
51419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51420 # would make configure fail if this is the last instruction.
51421 $ac_cs_success || { (exit 1); exit 1; }
51422fi
51423
51424#
51425# CONFIG_SUBDIRS section.
51426#
51427if test "$no_recursion" != yes; then
51428
51429 # Remove --cache-file and --srcdir arguments so they do not pile up.
51430 ac_sub_configure_args=
51431 ac_prev=
51432 for ac_arg in $ac_configure_args; do
51433 if test -n "$ac_prev"; then
51434 ac_prev=
51435 continue
51436 fi
51437 case $ac_arg in
51438 -cache-file | --cache-file | --cache-fil | --cache-fi \
51439 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51440 ac_prev=cache_file ;;
51441 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51442 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51443 | --c=*)
51444 ;;
51445 --config-cache | -C)
51446 ;;
51447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51448 ac_prev=srcdir ;;
51449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51450 ;;
51451 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51452 ac_prev=prefix ;;
51453 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51454 ;;
51455 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51456 esac
51457 done
51458
51459 # Always prepend --prefix to ensure using the same prefix
51460 # in subdir configurations.
51461 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51462
51463 ac_popdir=`pwd`
51464 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51465
51466 # Do not complain, so a configure script can configure whichever
51467 # parts of a large source tree are present.
51468 test -d $srcdir/$ac_dir || continue
51469
51470 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51471echo "$as_me: configuring in $ac_dir" >&6;}
51472 { if $as_mkdir_p; then
51473 mkdir -p "$ac_dir"
51474 else
51475 as_dir="$ac_dir"
51476 as_dirs=
51477 while test ! -d "$as_dir"; do
51478 as_dirs="$as_dir $as_dirs"
51479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51481 X"$as_dir" : 'X\(//\)[^/]' \| \
51482 X"$as_dir" : 'X\(//\)$' \| \
51483 X"$as_dir" : 'X\(/\)' \| \
51484 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51485echo X"$as_dir" |
51486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51488 /^X\(\/\/\)$/{ s//\1/; q; }
51489 /^X\(\/\).*/{ s//\1/; q; }
51490 s/.*/./; q'`
51491 done
51492 test ! -n "$as_dirs" || mkdir $as_dirs
51493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51495 { (exit 1); exit 1; }; }; }
51496
51497 ac_builddir=.
51498
51499if test "$ac_dir" != .; then
51500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51501 # A "../" for each directory in $ac_dir_suffix.
51502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51503else
51504 ac_dir_suffix= ac_top_builddir=
51505fi
51506
51507case $srcdir in
51508 .) # No --srcdir option. We are building in place.
51509 ac_srcdir=.
51510 if test -z "$ac_top_builddir"; then
51511 ac_top_srcdir=.
51512 else
51513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51514 fi ;;
51515 [\\/]* | ?:[\\/]* ) # Absolute path.
51516 ac_srcdir=$srcdir$ac_dir_suffix;
51517 ac_top_srcdir=$srcdir ;;
51518 *) # Relative path.
51519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51521esac
ac1cb8d3
VS
51522
51523# Do not use `cd foo && pwd` to compute absolute paths, because
51524# the directories may not exist.
51525case `pwd` in
51526.) ac_abs_builddir="$ac_dir";;
51527*)
51528 case "$ac_dir" in
51529 .) ac_abs_builddir=`pwd`;;
51530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51532 esac;;
51533esac
51534case $ac_abs_builddir in
51535.) ac_abs_top_builddir=${ac_top_builddir}.;;
51536*)
51537 case ${ac_top_builddir}. in
51538 .) ac_abs_top_builddir=$ac_abs_builddir;;
51539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51541 esac;;
51542esac
51543case $ac_abs_builddir in
51544.) ac_abs_srcdir=$ac_srcdir;;
51545*)
51546 case $ac_srcdir in
51547 .) ac_abs_srcdir=$ac_abs_builddir;;
51548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51550 esac;;
51551esac
51552case $ac_abs_builddir in
51553.) ac_abs_top_srcdir=$ac_top_srcdir;;
51554*)
51555 case $ac_top_srcdir in
51556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51559 esac;;
51560esac
a848cd7e
SC
51561
51562
51563 cd $ac_dir
51564
51565 # Check for guested configure; otherwise get Cygnus style configure.
51566 if test -f $ac_srcdir/configure.gnu; then
51567 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51568 elif test -f $ac_srcdir/configure; then
51569 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51570 elif test -f $ac_srcdir/configure.in; then
51571 ac_sub_configure=$ac_configure
51572 else
51573 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51574echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51575 ac_sub_configure=
51576 fi
51577
51578 # The recursion is here.
51579 if test -n "$ac_sub_configure"; then
51580 # Make the cache file name correct relative to the subdirectory.
51581 case $cache_file in
51582 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51583 *) # Relative path.
ac1cb8d3 51584 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51585 esac
51586
51587 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51588echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51589 # The eval makes quoting arguments work.
51590 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51591 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51592 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51593echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51594 { (exit 1); exit 1; }; }
51595 fi
51596
ca5c6ac3 51597 cd "$ac_popdir"
a848cd7e
SC
51598 done
51599fi
51600
51601
51602echo
77ffb593 51603echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51604echo ""
c2e9ada4 51605echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51606echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51607
77ffb593
JS
51608echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51609echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51610echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51611
77ffb593 51612echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51613echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51614echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51615
77ffb593 51616echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51617echo " jpeg ${wxUSE_LIBJPEG-none}"
51618echo " png ${wxUSE_LIBPNG-none}"
51619echo " regex ${wxUSE_REGEX}"
51620echo " tiff ${wxUSE_LIBTIFF-none}"
51621if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51622echo " xpm ${wxUSE_LIBXPM-none}"
51623fi
51624echo " zlib ${wxUSE_ZLIB}"
51625echo " odbc ${wxUSE_ODBC}"
51626echo " expat ${wxUSE_EXPAT}"
51627echo " libmspack ${wxUSE_LIBMSPACK}"
51628echo " sdl ${wxUSE_LIBSDL}"
51629
51630echo ""
51631